English
Language : 

HD66760 Datasheet, PDF (51/105 Pages) Hitachi Semiconductor – 104 X 80-dot Graphics LCD Controller/Driver for 256 Colors
HD66760
Swap Function
The HD66760 has a byte-wise swap function that exchanges the upper and lower bytes in the two-byte data
sent from the microcomputer. When SWP = 0, the data written by the microcomputer is directly transferred
to the inside. When SWP = 1, the data written by the microcomputer is internally transferred by exchanging
the upper and lower bytes.
DB15
DB8 DB7
DB0
Data written by
R02 R01 R00 G02 G01 G00 B02 B01 R12 R11 R10 G12 G11 G10 B12 B11
the microcomputer
Upper byte
Lower byte
i) SWP = "0":
DB15
DB8 DB7
DB0
R02 R01 R00 G02 G01 G00 B02 B01 R12 R11 R10 G12 G11 G10 B12 B11
Upper byte
Lower byte
ii) SWP = "1":
DB7
DB0 DB15
DB8
R12 R11 R10 G12 G11 G10 B12 B11 R02 R01 R00 G02 G01 G00 B02 B01
Lower byte
Upper byte
GRAM data
Upper byte
(DB15–8)
Lower byte
(DB7–0)
Lower byte
(DB7–0)
Upper byte
(DB15–8)
LCD display
R0 G0 B0 R1 G1 B1
Upper byte
Lower byte
R1 G1 B1 R0 G0 B0
Lower byte
Upper byte
Figure 32 Example of Swap Function Operation