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

Seven Segment LCD

A 1/3 duty, 1/3 bias LCD with three COM and seven segment lines was selected as the demonstration for this document. As such, there are 21 individual LCD segments which can be controlled on this device including two seven-segment characters and seven single-segment ancillary symbols. Two additional control pins are required for the resistive network, and an additional pin is needed to drive the backlight. Thus the total number of GPIOs for controlling this LCD totals 13, and more would be needed for further LCD segment expansion.

 Seven-Segment LCD Pin Array Figure 1-2 Seven-Segment LCD Pin Array