SLUUCD5 January 2023 BQ27427
The following example illustrates how to change the chemistry profile from the default profile that is provided. In this example, the chemistry profile is changed from the default 4.35 V (3230) to 4.4 V (3142).
Step | Description | Pseudo Code |
---|---|---|
1 | If the device has been previously SEALED, UNSEAL it by sending the appropriate keys to Control() (0x00 and 0x01). Write the first 2 bytes of the UNSEAL key using the Control(0x8000) command. Without writing any other bytes to the device, write the second (identical) 2 bytes of the UNSEAL key using the Control(0x8000) command. Note: The remaining steps in this table will use this single-packet method when writing multiple bytes. |
|
2 | Read Current Chem ID. |
|
3 | Send SET_CFGUPDATE subcommand, Control(0x0013). |
|
4 | Confirm CFGUPDATE mode by polling Flags() register until bit 4 is set. The host should wait for 1 second to ensure IT processing has been stopped. |
|
5 | Change Chemistry to CHEM_C (chem ID = 3142, 4.4 V). |
|
6 | Exit CFGUPDATE mode by sending the SOFT_RESET subcommand. |
|
7 | Confirm CFGUPDATE has been exited by polling Flags() register until bit 4 is cleared. (This may take up to 1 second.) SOC will be valid after 2 seconds |
|
8 | Read Current Chem ID to see if it is updated. |
|
9 | If the device was previously SEALED, return to SEALED mode by sending the Control(0x0020) subcommand. |
|