Tool/software:
I'm looking at https://www.ti.com/lit/ug/sluucd5/sluucd5.pdf, JANUARY 2023, trying to work out the fastest way to adjust the chemistry configuration, and verify my understanding of the delays required in two different sections.
Section 4.2 Chemistry Profile Change Example, steps 3: "Send SET_CFGUPDATE subcommand, Control(0x0013).". Step 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."
Section 5.1.9 SET_CFGUPDATE: 0x0013 Instructs the fuel gauge to set the Flags() [CFGUPMODE] bit to 1 and enter CONFIG UPDATE mode. This command is only available when the fuel gauge is UNSEALED. After the command is sent, the host must wait a minimum of 1100ms to start modifying any parameters.
Does SET_CFGUPDATE need 1100ms before polling Flags() to confirm CFGUPDATE mode? Or is the 1100ms a safe way to wait for CFGUPDATE mode without polling Flags()?
Are there any delays in this sequence for section 4.2, steps 3+4 that could be safely removed?
- Send SET_CFGUPDATE subcommand, Control(0x0013).
- Wait 1100ms (from Section 5.1.9)
- Poll CFGUPDATE mode by polling Flags() register until bit 4 is set.
- Wait 1 second to ensure IT processing has been stopped.