SLUAAL4 August   2022 BQ21040

 

  1.   Abstract
  2.   Trademarks
  3. 1Introduction
  4. 2How Temperature Sensing Works on the BQ21040
    1. 2.1 With Adapter Present
    2. 2.2 Without Adapter Present
  5. 3Example Application
    1. 3.1 Required Devices
    2. 3.2 Setup
  6. 4Procedure
    1. 4.1 Detecting Adapter Removal
    2. 4.2 Detecting Adapter Insertion
    3. 4.3 Logical Flowchart
  7. 5Summary
  8. 6References

Setup

Prior to making any temperature measurements with or without an adapter, the appropriate connections should be made to the NTC from both the BQ21040 and the MCU. The TS pin will connect to one side of the NTC while the other will be grounded as can be seen in the BQ21040 data sheet. Similarly, two GPIO pins from the MCU will be connected to the same side of the NTC as TS. One GPIO pin from the MCU will be used as a current source and the other will be used to monitor the voltage across the NTC. Also ensure that GND from the MCU shares the same GND connection from the BQ21040. A simplified schematic of these connections are shown in Figure 3-1.

Figure 3-1 Simplified Schematic