SLAAEB3A May   2023  – July 2024 MSPM0G3507 , MSPM0L1106 , MSPM0L1306

PRODUCTION DATA  

  1.   1
  2.   Abstract
  3.   Trademarks
  4. 1Introduction
  5. 2Hardware Connection
  6. 3Software Structure and Important Functions
    1. 3.1 System Initialization
    2. 3.2 Low-Level Command Control
    3. 3.3 High-Level Function
  7. 4Test Result of Important Functions
    1. 4.1 Read Alarm Status
    2. 4.2 Read Safety Status
    3. 4.3 Read PF Status
    4. 4.4 Read Current
    5. 4.5 Read All Temperatures
    6. 4.6 Read All Voltages
  8. 5References
  9. 6Revision History

Read All Temperatures

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℃.

Table 4-5 TS Temperature Command Description
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.
 I2C Waveform for TS
                    Temperature Reading Figure 4-5 I2C Waveform for TS Temperature Reading
 Register Values for TS
                    Temperature Reading Figure 4-6 Register Values for TS Temperature Reading