Datasheet

Chapter 9 Liquid Crystal Display Driver (S08LCDV1)
MC9S08LC60 Series Data Sheet: Technical Data, Rev. 4
162 Freescale Semiconductor
9.5.2.4 Initialization Example 4
Example 3 LCD setup requirements are reiterated in the table below:
Table 9-25 lists the required setup values required to initialize the LCD as specified by Example 4:
Example
Operating
Voltage,
V
DD
LCD Clock
Source
LCD Glass
Operating
Voltage
Required
LCD
segments
LCD
Frame
Rate
Blinking
Mode/Rate
Behavior in
STOP3 and
WAIT modes
LCD
Power
Input
4 1.8-V External
32.768 kHz
5-V 123 30 Hz all segment
2.0 Hz
WAIT: off
STOP3: off
Power
via
V
LCD
Table 9-25. Initialization Register Values for Example 4
Register Bit/bit field
Binary
Value
Comment
LCDCLKS
00000000
SOURCE 0 Selects the external clock reference as the LCD clock input
External clock reference = 0; Bus clock = 1
DIV16 0 Adjusts the LCD clock input (see table 9-12)
CLKADJ[5:0] 000000 Adjusts the LCD clock input (see table 9-12)
LCDSUPPLY
1100XX10
LCDCPEN 1 Enable the charge pump
LCDCPMS 1 For 3-V LCD glass, select tripler mode
Doubler mode = 0; Tripler mode = 1
HDRVBUF X High drive buffer
CPCADJ[1:0] 00 Configure LCD charge pump clock source
BBYPASS X Buffer Bypass; Buffer mode = 0; Unbuffered mode = 1
VSUPPLY[1:0] 10 When VSUPPLY[1:0] = 10, the LCD must be externally powered via V
LCD
(see
table 9-16). For 5-V glass, the nominal value of V
LCD
should be 1.67-V.
LCDCR1
XXXXXX00
LCDWAI 0 LCD is “off” in WAIT mode
LCDSTP3 0 LCD is “off” in STOP3 mode
LCDCR0
0X010X11
LCLK[2:0] 010 For 1/3 duty cycle, select the closest value to the desired 30 Hz LCD frame
frequency (see table 9-13). Note the LCD base frequency - 128.1 Hz
LPWAVE X Low power waveform
DUTY[1:0] 10 For 123 segments (3x41), select 1/3 duty cycle (see table 9-11)
LCDBCTL
0XXX1001
BLKMODE 1 Blink all segments; Blink Segments = 0; Blink All = 1
BRATE[2:0] 001 Using the LCD base frequency for the selected LCD frame frequency, select 2.0
Hz blink frequency (see table 9-15).
FPENR[5:0] FPENR0
FPENR1
FPENR2
FPENR3
FPENR4
FPENR5
11111111
11111111
11111111
11111111
11111111
XXXXXXX1
All 41 LCD frontplanes need to be enabled.