Ain register (27h), Temperature register (08h), Averagetemperature register (16h) – Rainbow Electronics MAX17047 User Manual
Page 39: Maxmintemperature register (1ah), Figure 56. ain register format (output), Figure 57. temperature register format

���������������������������������������������������������������� Maxim Integrated Products 39
MAX17047
ModelGauge m3 Fuel Gauge
Figure 56. AIN Register Format (Output)
Figure 57. Temperature Register Format (Input/Output)
When Tex = 1 in the CONFIG register, the device does
not update the Temperature register based on results
from the AIN pin A/D. Instead, host software must peri-
odically write the Temperature register with the known
application temperature to keep the fuel gauge accurate.
AIN Register (27h)
While in active mode and Ten = 1 in the CONFIG register,
the device periodically measures the voltage between
pins AIN and CSP and compares the result to the voltage
of the THRM pin. The device stores the result, a ratiomet-
ric value from 0 to 100%. The resulting data is placed
in the AIN register every 1.4s with an LSB of 0.0122%.
Contents of the AIN register are indeterminate for the
first conversion cycle time period after device power-up.
The last value of the Temperature register is maintained
when the device enters shutdown mode or if Ten = 0 in
the CONFIG register.
format.
Temperature Register (08h)
While in active mode and Tex = 0 and Ten = 1 in the
CONFIG register, the device converts the AIN regis-
ter value into a signed two’s-complement temperature
value. See the TGAIN and TOFF configuration registers.
The resulting data is placed in the Temperature register
every 1.4s with a resolution of +0.0039NC. If an 8-bit
temperature reading is desired, the host can read only
the upper byte of the Temperature register with a resolu-
tion of +1.0NC. Contents of the Temperature register are
indeterminate for the first conversion cycle time period
after device power-up. The last value of the Temperature
register is maintained when the device enters shutdown
mode.
shows the Temperature register format.
AverageTemperature Register (16h)
The AverageTemperature register reports an average
of temperature register readings over a configurable
6min to 12h time period. See the FilterCFG register (29h)
description for details on setting the time filter. The result-
ing average is placed in the AverageTemperature regis-
ter with an LSb value of 0.0039NC. The first Temperature
register reading after device power-up sets the starting
point of the AverageTemperature filter. The last value of
the AverageTemperature register is maintained when
the device enters shutdown mode.
AverageTemperature register format.
MaxMinTemperature Register (1Ah)
The MaxMinTemperature register maintains the maxi-
mum and minimum Temperature register values since
the last fuel-gauge reset or until cleared by host software.
Each time the Temperature register updates, it is com-
pared against these values. If the reading is larger than
Figure 56
MSB—ADDRESS 27h
LSB—ADDRESS 27h
2
-1
2
-2
2
-3
2
-4
2
-5
2
-6
2
-7
2
-8
2
-9
2
-10
2
-11
2
-12
2
-13
X
X
X
MSb
LSb
MSb
LSb
2
-13
UNITS: 0.0122%
Figure 57
MSB—ADDRESS 08h
LSB—ADDRESS 08h
S
2
6
2
5
2
4
2
3
2
2
2
1
2
0
2
-1
2
-2
2
-3
2
-4
2
-5
2
-6
2
-7
2
-8
MSb
LSb
MSb
LSb
2
-8
UNITS: +0.0039NC
2
0
UNITS: +1.0NC