SDAA183 December   2025 CC2340R5

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. 1Introduction
    1. 1.1 CC2340R5
    2. 1.2 Seven Segment LCD
  5. 2Hardware Setup
    1. 2.1 LCD Schematic
    2. 2.2 CC2340R5 Connection Diagram
  6. 3Running the Example
    1. 3.1 Dependencies
    2. 3.2 Loading Firmware
  7. 4Firmware Design
    1. 4.1 Code Description
    2. 4.2 Timer ISRs
      1. 4.2.1 lightUpdateHandler
      2. 4.2.2 lcdUpdateHandler
      3. 4.2.3 tempUpdateHandler
    3. 4.3 Hardware Callbacks
      1. 4.3.1 deltaNotificationFxn
      2. 4.3.2 gpioButtonFxn
  8. 5Tests and Results
  9. 6Summary
  10. 7References

deltaNotificationFxn

When the batter monitor notices that the voltage supply of the CC2340R5 has increased or decreased by THRESHOLD_DELTA_MILLIVOLT mV since the last reading, this function is used to evaluate the current voltage level, adjust the contrast dead-time of the LCD, and re-register the voltage range for the next notification.