Interfacing the LCD MCU to an LCD Glass
Interfacing an LCD to the MC9S08LC60, Rev. 0
Freescale Semiconductor
11
3.2
Mapping LCD Glass Segments to the MCU LCD RAM Registers
After the relationship between the individual segments and the LCD pins is understood, the relationship
between the LCD pins and the MCU pins and MCU LCD RAM registers needs to be established. The
MCU and LCD pins are wired together, making sure that the respective backplane and frontplane pins are
matched.
shows connections between the GP3980P and the MC9S08LC60 for the
DEMO9S08LC60.
Figure 7. MCU-to-LCD pin connections
With the MCU pins connected to the LCD glass pins, a simple relationship between the LCD display
segments and the MCU LCD RAM registers can be established. The mapping is determined by both the
MCU-to-LCD pin connections (
) and the LCD pin out specification (
MCU RAM registers is mapped to an individual segment on the LCD glass.
shows the MCU LCD RAM registers, where the individual bits are labelled FPxBPy.
shows both the “BPy” and the “FPx” relationships between the MCU pinout and LCD panel pins. For
example:
•
BP3 is connected to the LCD pin 4. (It is important to note this is COM4.)
•
FP15 is connected to LCD pin 37.
BP0
BP1
BP2
BP3
FP0
FP1
FP2
FP3
FP4
FP5
FP6
FP7
FP24
FP25
FP26
FP27
FP28
FP29
FP30
FP31
FP32
FP33
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FP8
FP9
FP10
FP11
FP12
FP13
FP14
FP15
FP16
FP17
FP18
FP19
FP20
FP21
FP22
FP23
FP39
FP38
FP37
FP36
FP35
FP34
44
43
42
41
40
39
38
37
36
35
34
33
32
31
30
29
28
27
26
25
24
23