English
Language : 

HD66789 Datasheet, PDF (109/156 Pages) Renesas Technology Corp – 528-channel, One-chip Driver for Amorphous TFT Panels with 262,144-color display RAM, Power Supply Circuit, and Gate Circuit
HD66789
Preliminary
3. Write mode 3: AM = 0, LG2–0 = 110/111
This mode is used when data are horizontally written with comparing the write data and the value set in the
compare register (CP17–0) by R, G, B pixel. When the result of the comparison satisfies a condition, the
write data sent from the microcomputer are written to GRAM. The write-data mask function (WM17–0) is
also available with this mode. After writing, the address counter (AC) automatically increments by 1 (I/D
= 1) or decrements by 1 (I/D = 0), and jumps to the counter at the opposing edge of the next one-raster-row
below after when the counter reaches either left or right edge of GRAM.
Operation example
1) I/D = "1", AM = "0", LG2-0 = "110" (matched writing)
2)CP17-0 = "050C0"H
3)WM17-0 = "00000"H
4) AC = "0000"H
WM17
WM0
Write-data mask: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
CP17
CP0
Compare register: 0 0 0 1 0 1 0 0 0 0 1 1 0 0 0 0 0 0 Compare operation
DB17
(Matched)
DB0
Write-data (1): 0 0 0 1 0 1 0 0 0 0 1 1 0 0 0 0 0 0 C
Conditional replacement
R 000101000011000000
Write-data (2):
Compare
operation
Replacement
Conditional replacement
000000111111000000 C R * * * * * * * * * * * * * * * * * *
Data are expanded into 18 bits in 8/16-bit system
interface, and 16-bit RGB interface modes.
"0000"H
"0001"H
000101000011000000 * * * * * * * * * * * * * * * * * *
write data (1)
matched
replacement
GRAM
Write Mode 3
Rev.0.12, May 09 2003, page 109 of 156