
SSD1905
Rev 1.3
10/2002
SOLOMON
121
18 Display Rotate Mode
Most computer displays are refreshed in landscape orientation – from left to right and top to bottom. Computer
images are stored in the same manner. Display Rotate Mode is designed to rotate the displayed image on an
LCD by 90
°
, 180
°
, or 270
°
in an counter-clockwise direction. The rotation is done in hardware and is
transparent to the user for all display buffer reads and writes. By processing the rotation in hardware, Display
Rotate Mode offers a performance advantage over software rotation of the displayed image.
The image is not actually rotated in the display buffer since there is no address translation during CPU
read/write. The image is rotated during display refresh.
18.1 90° Display Rotate Mode
The following figure shows how the programmer sees a 160x240 rotated image and how the image is being
displayed. The application image is written to the SSD1905 in the following sense: A–B–C–D. The display is
refreshed by the SSD1905 in the following sense: B-D-A-C.
A
B
C
D
Display
Rotate
Window
160
2
A
B
C
D
D
R
W
240
1
display start address
(panel origin)
physical memory
start address
image seen by programmer
= image in display buffer
image refreshed by SSD1905
Figure 18-1 : Relationship Between The Screen Image and the Image Refreshed in 90
°
Display Rotate
Mode.
18.1.1 Register Programming
Enable 90
°
Display Rotate Mode
Set Display Rotate Mode Select bits to 01 (REG[71h] bits 1:0 = 01).
Display Start Address
The display refresh circuitry starts at pixel “B”, therefore the Main Window Display Start Address
registers (REG[74h], REG[75h], REG[76h]) must be programmed with the address of pixel “B”.
To calculate the value of the address of pixel “B” use the following formula (assumes 8bpp color
depth).
Main Window Display Start Address bits 16-0
= ((Image address + (panel height x bpp
÷
8))
÷
4) –1
= ((0 + (160 pixels x 8 bpp
÷
8))
÷
4) – 1
= 39 (27h)