| SLA Status | Assignee | Support Status |
|---|---|---|
| ⚠ 5868 hours | Open | |
MAX17260
Production
The MAX17260 is an ultra-low power fuel gauge IC which implements the Maxim ModelGaugeâ„¢ m5 algorithm. The IC monitors a single-cell battery pack and...
Datasheet
MAX17260 on Analog.com
I'm trying to make the MAX17260 Shutdown as fast as possible. The datasheet/userguide:
https://www.analog.com/media/en/technical-documentation/user-guides/max1726x-modelgauge-m5-ez-user-guide.pdf
says for the shutdown timer register:
Table 22.
ShdnTimer (3Fh) Format D15 D14 D13 D12 D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0
THR(3 bits) CTR (13 bits)
CTR:
Shutdown Counter. This register counts the total amount of elapsed time since the shutdown trigger event. This counter value stops and resets to 0 when the shutdown time-out completes. The counter LSb is 1.4s.
THR:
Sets the shutdown time-out period from a minimum of 45s to a maximum of 1.6h. The default POR value of 0h gives a shutdown delay of 45s. The equation setting the period is: Shutdown Time-Out Period = 175.8ms × 2(8+THR)
I have also found this on AD's website:
How Do I Adjust the Shutdown Timer in ModelGauge m5 Fuel Gauges?
I am unable to make sense of much of this:
"Shutdown Time-Out Period = 175.8ms × 2(8+THR)" evaluated at the min and max values are, respectively: 2812.8 ms and 5.274 ms.
1.4s* 8191 (the max value that could be held in CTR) is approximately 3.18 hrs. (approximately twice the stated max of 1.6 hrs)
"The default THR value of 0 corresponds to a count of 0x1F." This statement seems to imply that the perhaps the 3 bit value of THR , when used as the exponent of 2, enables extra bits in the counter's comparator. So:
THR=0, count to 0x1F
THR=1, count to 0x3F
THR=2, count to 0x7F
THR=3, count to 0xFF
THR=4, count to 0x1FF
THR=5, count to 0x3FF
THR=6, count to 0x7FF
THR=7, count to 0xFFF
This would match the times mentioned as:
32*1.4 = 45 secs
4096*1.4 = 1.6 hrs
This seems to imply that it might be accurate to say that the time-out period is then:
(175.8*8)*(2^(5+THR))
or
175.8*2^(8+THR)
WTH. That's it. The document should have an exponent symbol.