
90
EPSON
S1C88409 TECHNICAL MANUAL
CHAPTER 5: PERIPHERAL CIRCUITS AND OPERATION (LCD Controller)
5.10.3 Display control
To use the LCD controller, the following control
procedures are necessary:
Setup of the LCD controller
(1) Selecting B&W or gray-scale mode
This LCD controller has two display mode:
B&W (black and white) mode and 4-level gray
scale mode. Select either one according to the
LCD panel to be used. See Section 5.10.4, "B&W
mode and gray-scale mode setting", for more
information.
(2) Selecting the transfer data size
Select the size of data to be transferred to the
segment drivers. 8-bit transfer and 4-bit
transfer are available in this LCD controller.
Select 4-bit transfer when using the S1D16006
or S1D15700. See Section 5.10.9, "Data transfer",
for more information.
(3) Setting the LCD panel size and display start address
To correspond the display memory bits to the
LCD panel dots one to one, it is necessary to set
the LCD panel size in the LCD controller. Also
a display start address should be set. See
Section 5.10.6, "LCD panel", for more informa-
tion.
(4) Setting the frame frequency
The frame frequency can be selected from 16
frequencies according to the LCD panel to be
used. See Section 5.10.6, "LCD panel", for more
information.
(5) Back light LCD panel
Since this LCD controller can reverse display
by the REV register (REV = "1"), set in reverse
display when using an LCD panel with a back
light. The REV register can also be used to
reverse display during normal display.
Turning display on and off
By writing "1" to the LCDEN register, the LCD
controller turns on and starts outputting the
signals to the external drivers. The content of the
LCDEN register is output from the LCDEN
terminal. Use the signal to control the LCD power
supply.
When "0" is written to the LCDEN register, the
LCD controller stops operating.
Note: The power of the LCD panel must be turned
on/off while the LCDEN register is "1".
Switching while the LCD controller is off
(LCDEN = "0") may damage the LCD panel.
Besides the LCDEN register, the DISP register is
provided for forced blanking function. When "1" is
written to the DISP register, the LCD panel
displays data in the display memory. When "0" is
written, the display goes out. The control signals
are output to the external drivers during forced
blanking.
Data transfer control
The data transfer method can be selected accord-
ing to the segment driver to be used. See Section
5.10.9, "Data transfer", for more information.
The data transfer uses the OSC3 clock. Therefore,
turn the OSC3 oscillation on before writing "1" to
the LCDEN register. Furthermore, wait 20 msec or
more after turning the OSC3 oscillation on for
stabilizing oscillation. Do not turn the OSC3
oscillation off during data transfer.
5.10.4 B&W and gray-scale mode setting
This LCD controller has two display mode: B&W
(black and white) mode and 4-level gray scale
mode. Select either one with the GRAY register
according to the LCD panel to be used.
GRAY register = "0": B&W mode
GRAY register = "1": Gray-scale mode
In the B&W mode, the display memory bits
correspond to the LCD panel dots one to one.
When a memory bit is "0", the corresponding dot
goes off and when the bit is"1", the dot goes on.
In the gray-scale mode, each two bits of the
display memory corresponds to an LCD panel dot.
When a display data is 00B, the corresponding dot
goes off. As for the display data 01B, 10B and 11B,
the intensity (gray-scale conversion code) can be
specified using the GS1, GS2 and GS3 registers (8
bits each), respectively.
The specified gray-scale conversion code controls
the 8 frame cycles for turning the dots on and off
as shown in Figure 5.10.4.1.
0
D0
D1
D2
D3
D4
D5
D6
D7
1
0
1
0
1
8 frames
(GSn = DAH)
ON
OFF
Fig. 5.10.4.1 Gray-scale conversion code
See LCD panel examples in Section 5.10.6 for
correspondence between the display memory data
and dots.