Interfacing an LCD to the MC9S08LC60, Rev. 0
Interfacing the LCD MCU to an LCD Glass
Freescale Semiconductor
12
(for COM4 and LCD pin 37), one finds that FP15BP3 is connected to
, the label “K2” is associated with the snowflake icon segment. Using this
approach, all the relationships between the LCD display segments and the MCU LCD RAM registers can
be established. Powering individual segments on and off is a matter of toggling the correct bit associated
with the segment. For example, when the FP15BP3 bit is set to 1, the corresponding segment (the snow
flake icon) will become visible on the LCD glass. When the FP15BP3 bit is set to 0, the segment is not
displayed.
3.3
Mapping the MCU LCD RAM to Alphanumeric Segment Groups
Using the procedure above, turning individual segments on and off is very straightforward. For the
alphanumeric displays (the DEMO9S08LC60 contains 13-segment displays), the procedure is basically
the same except that individual segments are grouped and modified together depending on the
alphanumeric character that is specified to be activated in the display.
Table 4. MCU LCD RAM
0x1848
LCDRAM0
FP
1
BP
3
FP
1
BP
2
FP
1
BP
1
FP
1
BP
0
FP
0
BP
3
FP
0
BP
2
FP
0
BP
1
FP
0
BP
0
0x1849
LCDRAM1
FP
3
BP
3
FP
3
BP
2
FP
3
BP
1
FP
3
BP
0
FP
2
BP
3
FP
2
BP
2
FP
2
BP
1
FP
2
BP
0
0x184A
LCDRAM2
FP
5
BP
3
FP
5
BP
2
FP
5
BP
1
FP
5
BP
0
FP
4
BP
3
FP
4
BP
2
FP
4
BP
1
FP
4
BP
0
0x184B
LCDRAM3
FP
7
BP
3
FP
7
BP
2
FP
7
BP
1
FP
7
BP
0
FP
6
BP
3
FP
6
BP
2
FP
6
BP
1
FP
6
BP
0
0x184C
LCDRAM4
FP
9
BP
3
FP
9
BP
2
FP
9
BP
1
FP
9
BP
0
FP
8
BP
3
FP
8
BP
2
FP
8
BP
1
FP
8
BP
0
0x184D
LCDRAM5
FP
11
BP
3
FP
11
BP
2
FP
11
BP
1
FP
11
BP
0
FP
10
BP
3
FP
10
BP
2
FP
10
BP
1
FP
10
BP
0
0x184E
LCDRAM6
FP
13
BP
3
FP
13
BP
2
FP
13
BP
1
FP
13
BP
0
FP
12
BP
3
FP
12
BP
2
FP
12
BP
1
FP
12
BP
0
0x184F
LCDRAM7
FP
15
BP
3
FP
15
BP
2
FP
15
BP
1
FP
15
BP
0
FP
14
BP
3
FP
14
BP
2
FP
14
BP
1
FP
14
BP
0
0x1850
LCDRAM8
FP1
7
BP
3
FP1
7
BP
2
FP
17
BP
1
FP
17
BP
0
FP
16
BP
3
FP
16
BP
2
FP
16
BP
1
FP
16
BP
0
0x1851
LCDRAM9
FP
19
BP
3
FP
19
BP
2
FP
19
BP
1
FP
19
BP
0
FP
18
BP
3
FP
18
BP
2
FP
18
BP
1
FP
18
BP
0
0x1852
LCDRAM10
FP
21
BP
3
FP
21
BP
2
FP
21
BP
1
FP
21
BP
0
FP
20
BP
3
FP
20
BP
2
FP
20
BP
1
FP
20
BP
0
0x1853
LCDRAM11
FP
23
BP
3
FP
23
BP
2
FP
23
BP
1
FP
23
BP
0
FP
22
BP
3
FP
22
BP
2
FP
22
BP
1
FP
22
BP
0
0x1854
LCDRAM12
FP
25
BP
3
FP
25
BP
2
FP
25
BP
1
FP
25
BP
0
FP
24
BP
3
FP
24
BP
2
FP
24
BP
1
FP
24
BP
0
0x1855
LCDRAM13
FP
27
BP
3
FP
27
BP
2
FP
27
BP
1
FP
27
BP
0
FP
26
BP
3
FP
26
BP
2
FP
26
BP
1
FP
26
BP
0
0x1856
LCDRAM14
FP
29
BP
3
FP
29
BP
2
FP
29
BP
1
FP
29
BP
0
FP
28
BP
3
FP
28
BP
2
FP
28
BP
1
FP
28
BP
0
0x1857
LCDRAM15
FP
31
BP
3
FP
31
BP
2
FP
31
BP
1
FP
31
BP
0
FP
30
BP
3
FP
30
BP
2
FP
30
BP
1
FP
30
BP
0
0x1858
LCDRAM16
FP
33
BP
3
FP
33
BP
2
FP
33
BP
1
FP
33
BP
0
FP
32
BP
3
FP
32
BP
2
FP
32
BP
1
FP
32
BP
0
0x1859
LCDRAM17
FP
35
BP
3
FP
35
BP
2
FP
35
BP
1
FP
35
BP
0
FP
34
BP
3
FP
34
BP
2
FP
34
BP
1
FP
34
BP
0
0x185A
LCDRAM18
FP
37
BP
3
FP
37
BP
2
FP
37
BP
1
FP
37
BP
0
FP
36
BP
3
FP
36
BP
2
FP
36
BP
1
FP
36
BP
0
0x185B
LCDRAM19
FP
39
BP
3
FP
39
BP
2
FP
39
BP
1
FP
39
BP
0
FP
38
BP
3
FP
38
BP
2
FP
38
BP
1
FP
38
BP
0
0x185C
LCDRAM20
0
0
0
0
FP
40
BP
3
FP
40
BP
2
FP
40
BP
1
FP
40
BP
0