SLAAEB3A May 2023 – July 2024 MSPM0G3507 , MSPM0L1106 , MSPM0L1306
PRODUCTION DATA
Read All Temperature takes in three commands as
shown in Table 4-5 and reads them with the DirectCommands
function, finally
returning the float value. Table 4-5 shows how to read the TS Temperature of BQ76952. In this sample code, only TS1
and TS3 are configured, so only those two have returned values. In the following
example, the reading of TS1 is 0x0B9D, representing a decimal value of 2973
(297.3K), then converts the value to about 24.15℃. The reading of TS3 is 0x0B9A,
representing a decimal value of 2970 (297.0K), and then converts the value to about
23.85℃.
Command | Name | Unit | Type | Description |
---|---|---|---|---|
0x70 | TS1 Temperature | 0.1K | I2 | When the TS1 pin is configured as a thermistor input, this reports the most recent temperature measurement. When configured as ADCIN, this instead reports the measured voltage at the TS1 pin in millivolts. |
0x72 | TS2 Temperature | 0.1K | I2 | When the TS2 pin is configured as a thermistor input, this reports the most recent temperature measurement. When configured as ADCIN, this instead reports the measured voltage at the TS2 pin in millivolts. |
0x74 | TS3 Temperature | 0.1K | I2 | When the TS3 pin is configured as a thermistor input, this reports the most recent temperature measurement. When configured as ADCIN, this instead reports the measured voltage at the TS3 pin in millivolts. |