VII LCD CONTROLLER BLOCK: LCD CONTROLLER
Setting the LCD Panel
Types of Panels
The LCD controller supports the following types of
•4- or
•4- or
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 | 0 | 0 | Mono Single |
|
| 1 | Mono Single |
| 1 | 0 | Reserved |
|
| 1 | Reserved |
1 | 0 | 0 | Color Single |
|
| 1 | Color Single |
| 1 | 0 | Reserved |
|
| 1 | Color Single |
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] =
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.
EPSON | S1C33L03 FUNCTION PART |