Post Go back to editing

Shutdown control

Category: Datasheet/Specs
Product Number: MAX17260

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?

  • To set the timeout period between 45s and 1.6h, set the THR bits of the ShdnTimer register according to the formula: 
    • Shutdown Time-Out Period = 175.8ms × 2(8+THR)
  • To achieve shutdown in less than 45s, you can skip a portion of the timeout period by writing to the ShdnTimer register. When the SHDN command is sent, the CTR bits of ShdnTimer begin counting at 0 in 1.4s increments, and the shutdown is triggered one cycle after the count matches the threshold set by the THR bits. The default THR value of 0 corresponds to a count of 0x1F. To trigger a faster shutdown, follow this sequence:
    1. Set the SHDN bit in the Config register to begin the shutdown timer
    2. Write the ShdnTimer register to 0x001F - [delay(seconds) / 1.4]. Writing ShdnTimer to 0x001F triggers the fastest possible shutdown in about 1.4s.
    3. Ensure that ther is no I2C activity after the shutdown timer expires, or the fuel gauge will re-enter active mode

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.

Before You Switch


Switching languages will make ADI Explorer unavailable. Resume your session by switching back to English and reopening ADI Explorer.