SLAAEB3 may   2023 MSPM0L1106 , MSPM0L1106

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

Read All Temperatures

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

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 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.
GUID-8F95DBFC-5AF0-4B84-9AD4-27E02DB9549D-low.png Figure 4-5 I2C Waveform for TS Temperature Reading
GUID-05712FAB-7525-4FF1-954D-C9672925D314-low.png Figure 4-6 Register values for TS Temperature Reading