VII LCD CONTROLLER BLOCK: LCD CONTROLLER
Alternate portrait mode
Alternate portrait mode does not require extra display memory as in default portrait mode. To display the same horizontal
|
|
|
|
| 240 pixels |
|
|
|
|
| ||
|
|
|
|
|
|
|
|
|
|
|
|
|
Physical memory |
|
|
| A |
|
| B |
|
|
|
| Screen 1 |
|
|
|
| |||||||||
start address |
|
|
|
|
|
|
|
| start address | |||
|
|
|
|
|
|
|
|
|
|
|
| Line 1 |
|
|
|
|
|
|
|
| |||||
|
|
|
|
|
|
|
|
| ||||
320 lines |
| Image |
|
|
|
|
|
C |
| D | Line 240 |
Display memory
| 320 pixels | |||
|
|
|
|
|
B |
|
|
| D |
|
|
|
|
|
|
|
| Image | |
|
|
| ||
|
|
|
|
|
A |
|
|
| C |
|
| LCD panel |
240 lines
Figure 2.21 Image Rotation in Alternate Portrait Mode
Figure 2.21 shows the relationship between the display memory and the LCD panel in cases in which a 320 ⋅
The control procedure described below assumes that the LCD panel is used in
1.Make settings necessary to use an LCD panel consisting of 320 pixels horizontally and 240 lines vertically. If necessary, set it for display in normal (landscape) mode.
2.To switch from landscape mode to portrait mode, temporarily clear the display memory in advance. If switched over without clearing the display memory, the display may be distorted for a certain period.
3.If the LCD panel was split into two screens in landscape mode, reset the S1VSIZE[9:0] (D[9:0])/screen 1 vertical size register (0x39FFF2) by setting a new value above the vertical resolution of the LCD panel in it. In portrait mode, the LCD panel cannot be split for display on screen 2.
4. Write a
5.In the line
6.Write the display memory address at which pixel B exists to the screen 1 start address register (0x39FFEC, 0x39FFED, D0/0x39FFF0). Although halfword addresses are set in this register in landscape mode, addresses must be set in byte units in portrait mode. In the example discussed here, because pixel A is at 0x0, the offset from A to B is 240 - 1 = 239 (0xEF) bytes. For
LCDC
S1C33L03 FUNCTION PART | EPSON |