SWCU193A April 2023 – August 2024 CC2340R2 , CC2340R5 , CC2340R5-Q1
The battery monitor is a 7-bit SAR-like ADC running at 125kHz that performs alternate measurements of the supply voltage and the temperature. When the battery monitor has settled on the first measurement, the ADC stops working in SAR mode and starts linear tracking of voltage and temperature. A small digital core transforms these measurements to voltage and temperature in °C, which are read directly from the PMUD:BAT and PMUD:TEMP registers.
When a change in supply voltage or temperature is detected, the battery monitor solely tracks the voltage until the voltage has settled on a new constant level. The resolution of the ADC and the 125 kHz clock speed limits the battery monitor's capability of measuring voltage spikes. Due to the battery monitor not only alternating between temperature and battery voltage but also between checking if there has been a positive or negative change since the last read, there can be a delay of 6 clock cycles between a voltage dip and the time when the ADC can detect that the temperature or voltage has changed. Due to the prioritization of voltage tracking upon detection of voltage changes, temperature changes can be detected with more delays if the voltage is also changing at the same time. This is important to keep in mind because the battery monitor is designed to measure the battery voltage; the battery monitor is not designed to measure voltage spurs due to short periods of higher current consumption.
The module also includes an event register, PMUD.EVENT, which includes six event bits:
These events must be cleared by writing to the PMUD:EVENT register. The events are asserted again if the conditions for the events are met (assertion of the new events takes precedence over the clearing of the events). In addition to the individual events listed previously, the battery monitor module has a combined event that is connected to the CPU as an interrupt line. The mask register, PMUD.EVENTMASK, can be used to select which of the events in PMUD.EVENT contribute to the combined event. This combined event is connected to the AON event fabric. For details, see Section 4.3.