English
Language : 

HD66766R Datasheet, PDF (27/97 Pages) Hitachi Semiconductor – 132 x 176-dot Graphics LCD Controller/Driver for 65K Colors
HD66766R
Rev. 1.0-1 / September 2002
Entry Mode (R05h )
Compare resister (R06h)
The write data sent from the microcomputer is modified in the HD66766R and written to the GRAM. The
display data in the GRAM can be quickly rewritten to reduce the load of the microcomputer software
processing. For detail, see the Graphics Operation Function section.
R/W RS DB15 DB14 DB13 DB12 DB11 DB10 DB9 DB8 DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0
W 1 SPR 0 0 0 0 0 HWM 0 0 0 I/D1 I/D0 AM LG2 LG1 LG0
W 1 CP15 CP14 CP13 CP12 CP11 CP10 CP9 CP8 CP7 CP6 CP5 CP4 CP3 CP2 CP1 CP0
Figure 11 Compare Resister Instruction
HWM: When HWM=1, data can be written to the GRAM at high speed. In high-speed write mode, four
words of data are written to the GRAM in a single operation after the writing to RAM four times. Write to
RAM four times, otherwise the four words cannot be written to the GRAM. Thus, set the lower 2 bits to 0
when setting the RAM address. For details, see the High-Speed RAM Write Mode section.
I/D1-0: When I/D1-0 = “1”, the address counter (AC) is automatically incremented by 1 after the data is
written to the GRAM. When I/D1-0 = “0”, the AC is automatically decremented by 1 after the data is
written to the GRAM. The increment/decrement setting of the address counter by I/D1-0 is done
independently for the upper (AD15-8) and lower (AD7-0) addresses. The AM bit sets the direction of
moving through the addresses when the GRAM is written to.
AM set the automatic update method of the AC after the data is written to the GRAM. When AM= “0”,
the data is continuously written in parallel. When AM = “1”, the data is continuously written vertically.
When window address range is specified, the GRAM in the window address range can be written to
according to the I/D1-0 and AM settings.
SPR: When SPR=1, 4096colors are displayed. 12 bit (DB11-DB0) are used for this display. Refer to
“4096 color display function” in page 57 for details.
AM="0"
Horizontal
AM="1"
Vertical
I/D1-0="00"
Horizontal: decrement
Vertical: decrement
0000h
I/D1-0="01"
Horizontal: increment
Vertical: decrement
0000h
I/D1-0="10"
Horizontal: decrement
Vertical: increment
0000h
I/D1-0="11"
Horizontal: increment
Vertical: increment
0000h
0000h
AF83h
0000h
AF83h
0000h
AF83h
0000h
AF83h
AF83h
AF83h
AF83h
AF83h
Note: When a window address range has been set the GRAM can only be written to within that range.
Figure 12 Address Direction Settings
27