![NXP Semiconductors MC9S08LG16 Reference Manual Download Page 191](http://html1.mh-extra.com/html/nxp-semiconductors/mc9s08lg16/mc9s08lg16_reference-manual_1721837191.webp)
Chapter 8 LCD Module (S08LCDLPV1)
MC9S08LG32 MCU Series, Rev. 5
Freescale Semiconductor
191
The table below lists the setup values required to initialize the LCD as specified by Example 1:
1
5.0 V
External
32.768 kHz
5 V
128
30 Hz
None
WAIT: on
STOP: on
Power via
V
LL3
(CPump)
Table 9-23. Initialization Register Values for Example 1
Register
bit or
bit field
Binary
Value
Comment
LCDSUPPLY
1-00--11
CPSEL
1
Enable charge pump
LADJ[1:0]
00
Configure LCD charge pump clock source
VSUPPLY[1:0]
11
When VSUPPLY[1:0] = 11, the LCD must be externally powered via V
LL3
(see
). For 5V glass, the nominal value of V
LL3
should be 5V.
LCDC1
0------00
LCDIEN
0
LCD frame interrupts disabled
LCDWAI
0
LCD is “on” in WAIT mode
LCDSTP
0
LCD is “on” in STOP mode
LCDC0
00101111
LCDEN
0
Initialization is done before initializing the LCD module
SOURCE
0
Selects the external clock reference as the LCD clock input (OSCOUT)
LCLK[2:0]
101
For 1/8 duty cycle, select closest value to the desired 30 Hz LCD frame frequency
(see
DUTY[2:0]
111
For 128 segments (8x16), select 1/8 duty cycle
LCDBCTL
0XX-XXXX
BLINK
0
No blinking
ALT
X
Alternate bit is configured during LCD operation
BLANK
X
Blank bit is configured during LCD operation
BMODE
X
N/A; Blink Blank = 0; Blink Alternate = 1
BRATE[2:0]
XXX
N/A
LCDPEN[5:0]
LCDPEN0
LCDPEN1
LCDPEN2
LCDPEN3
11111111
11111111
11111111
00000000
Only 24 LCD pins need to be enabled.
Note:
Any of the 45 LCD pins can be used, this allows flexibility in the hardware
design.
LCDBPEN[5:0]
LCDBPEN0
LCDBPEN1
LCDBPEN2
LCDBPEN3
11111111
00000000
00000000
00000000
Eight backplane pins needed.
Note:
Any enabled LCD pin can be enabled to operate as a backplane.
LCDWF[44:0]
LCDWF0
LCDWF1
LCDWF2
LCDWF3
LCDWF4
LCDWF5
LCDWF6
LCDWF7
00000001
00000010
00000100
00001000
00010000
00100000
01000000
10000000
Configure which phase the eight backplane pins will be active in. This
configuration sets LCD[0] to be active in Phase A, LCD[1] to be active in Phase
B...etc
Note:
Any backplane pin can be active in any phase.
Table 9-22. LCD Setup Requirements for Example 1
Summary of Contents for MC9S08LG16
Page 2: ......
Page 4: ......
Page 8: ......
Page 20: ......
Page 26: ...Chapter 1 Device Overview MC9S08LG32 MCU Series Rev 5 26 Freescale Semiconductor...
Page 40: ...Chapter 2 Pins and Connections MC9S08LG32 MCU Series Rev 5 40 Freescale Semiconductor...
Page 372: ......