Epson S1C33L03 User Manual

Page of 631
VII LCD CONTROLLER BLOCK: LCD CONTROLLER
B-VII-2-8
EPSON
S1C33L03 FUNCTION PART
Setting the LCD Panel
Types of Panels
The LCD controller supports the following types of single-LCD panels.
• 4- or 8-bit monochrome passive LCD panel
• 4- or 8-bit color passive LCD panel
Dual panels are not supported.
The type of LCD panel used must be set in the LCD controller in advance, using the control bits described below.
Selecting between color and monochrome
Use LDCOLOR (D5)/LCDC mode register 0 (0x39FFE1) to select the type of LCD panel, either color or
monochrome.
LDCOLOR = "1": Color panel selected
LDCOLOR = "0": Monochrome panel selected (default)
Selecting the data width
Use LDDW[1:0] (D[1:0])/LCDC mode register 0 (0x39FFE1) to select the data width and format.
Table 2.4  Selection of the LCD Panel
LDCOLOR
LDDW1
LDDW0
LCD panel
0
Mono Single 4-bit passive LCD
0
1
Mono Single 8-bit passive LCD
0
Reserved
0
1
1
Reserved
0
Color  Single 4-bit passive LCD
0
1
Color  Single 8-bit passive LCD format 1
0
Reserved
1
1
1
Color  Single 8-bit passive LCD format 2
Resolution
Set the resolution of the LCD panel in accordance with the procedure specified below.
Horizontal resolution
Set the value shown below in the LDHSIZE[5:0] (D[5:0])/horizontal panel size register (0x39FFE4).
Horizontal resolution (number of pixels)
LDHSIZE[5:0] = —————————————————— - 1
16
For example, if the LCD panel has a horizontal resolution of 320 dots, set 19 (= 0x13) in LDHSIZE.
Note: Do  not  set a value less than 1 in LDHSIZE.
Vertical resolution
Set the value shown below in LDVSIZE[9:0] (D[9:0])/vertical panel size register (0x39FFE6, 0x39FFE5).
LDVSIZE[9:0] = Vertical resolution (number of lines) - 1
For example, if the LCD panel has a vertical resolution of 240 lines, set 239 (= 0xEF) in LDVSIZE.