Datasheet
Chapter 9 Liquid Crystal Display Driver (S08LCDV1)
MC9S08LC60 Series Data Sheet: Technical Data, Rev. 4
Freescale Semiconductor 161
9.5.2.3 Initialization Example 3
Example 3 LCD setup requirements are reiterated in the table below:
Table 9-24 lists the required setup values required to initialize the LCD as specified by Example 3:
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
3 3.6-V Internal
18886 kHz
5-V 160 60 Hz Individual segment
2.0 Hz
WAIT: off
STOP3: on
Power via
V
DD
Table 9-24. Initialization Register Values for Example 3
Register Bit/bit field
Binary
Value
Comment
LCDCLKS
11100011
SOURCE 1 Selects the bus clock as the LCD clock input
External clock reference = 0; Bus clock = 1
DIV16 1 Adjusts the LCD clock input (see table 9-12)
CLKADJ[5:0] 100011 Adjusts the LCD clock input (see table 9-12)
LCDSUPPLY
1XXXXX00
LCDCPEN 1 Enable the charge pump
LCDCPMS X Don’t care since power is from internal V
DD
Doubler mode = 0; Tripler mode = 1
HDRVBUF X High drive buffer
CPCADJ[1:0] XX Configure LCD charge pump clock source
BBYPASS X Buffer Bypass; Buffer mode = 0; Unbuffered mode = 1
VSUPPLY[1:0] 00 Power LCD via V
DD
internal power (see table 9-16). When VSUPPLY[1:0] = 00,
V
LL2
is generated from V
DD .
LCDCR1
XXXXXX10
LCDWAI 1 LCD is “off” in WAIT mode
LCDSTP3 0 LCD is “on” in STOP3 mode
LCDCR0
0X011X00
LCLK[2:0] 011 For 1/4 duty cycle, select closest value to the desired 60 Hz LCD frame frequency
(see table 9-13). Note the LCD base frequency - 256.2 Hz
LPWAVE X Low power waveform
DUTY[1:0] 11 For 160 segments (4x40), select 1/4 duty cycle (see table 9-11)
LCDBCTL
0XXX0010
BLKMODE 0 Blink individual segments; Blink Segments = 0; Blink All = 1
BRATE[2:0] 010 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
XXXXXXX0
40 LCD frontplanes need to be enabled.
