SLAAEB3 may 2023 MSPM0L1106 , MSPM0L1106
PRODUCTION DATA
Read All Temperature is taking in three command which shown in Table 4-5, and read them with the DirectCommands function. And lastly return the float value of them. 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 convert to about 24.15℃. The reading of TS3 is 0x0B9A, representing a decimal value of 2970 (297.0K), then converts 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 its 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 its 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 its most recent temperature measurement. When configured as ADCIN, this instead reports the measured voltage at the TS3 pin in millivolts. |