SLAAEO3 September   2024 MSPM0L2227 , MSPM0L2228

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. 1Introduction: MSPM0 and LCD End Applications
  5. 2MSPM0 LCD Portfolio
  6. 3Segmented LCD Operation
    1. 3.1 LCD Structure (Simplified)
    2. 3.2 LCD Drive Basics
  7. 4MSPM0 LCD Features
    1. 4.1 Muxing
      1. 4.1.1 Muxing Example
    2. 4.2 Voltage Generation
      1. 4.2.1 Charge Pump
      2. 4.2.2 Contrast Control
    3. 4.3 LCD Clocking
    4. 4.4 LCD Memory and Blinking Mode
      1. 4.4.1 LCD Memory Organization
      2. 4.4.2 Blinking
    5. 4.5 LCD Output Pin Configuration
    6. 4.6 Low Power Mode Feature
  8. 5LCD Layout and Software Considerations
    1. 5.1 LCD Layout Tips
      1. 5.1.1 Hardware-Driven Layout
      2. 5.1.2 Software-Driven Layout
      3. 5.1.3 General Layout Rules
    2. 5.2 LCD Software Tips
      1. 5.2.1 Create a Look-up Table
      2. 5.2.2 Use of #defines
      3. 5.2.3 Efficient Clearing of the LCD Memory
      4. 5.2.4 Double-buffering of the Display Buffer Using Dual Display Memory
  9. 6Additional Resources

LCD Layout Tips

Depending on the muxing used, multiple Sx pins are required to display an entire digit or character on the screen. Which display areas are muxed together depends on the particular LCD glass and how the LCD has mapped these segments to drive pins. Choosing the right LCD display makes software less complex. For example, if a display has the Sx pins mapped to segments that allow the segment to display any numerical digit using only one or two Sx pins, the code is easier to write. The mapping of pins to LCD segments is found in the LCD data sheet.

Figure 5-1 shows some information from the data sheet for the LCD glass on the LP-MSPM0L2228 Launchpad Development Kit, which has a 4-mux display. This display allows for showing alphanumeric characters in addition to simple digits. The pin mapping found in the display data sheet, shows that the segments required to display any digit 0-9 require two Sx pins – pin 1 and 2 of the LCD. To display any alphabet character, use 4 segment pins.

MSPM0L222x 4-Mux Display Data Sheet ExampleFigure 5-1 4-Mux Display Data Sheet Example

In addition to the mapping of the LCD glass, careful selection of which Sx segment pins on the MSPM0 to connect to which LCD segment pins on the LCD glass has a big impact on layout and software.