![](http://datasheet.mmic.net.cn/280000/HD66751_datasheet_16065190/HD66751_46.png)
HD66750/1
46
4. Read/Write mode 1: AM1D0 = 00, LG1D0 = 01/10/11
This mode is used when the data is horizontally written at high speed by performing a logical operation
wi h t he ori gi nal dat a It re ads t he di s pla y dat a (or igi na l dat a ), whi ch has al r eady bee n wr it en i n t he
gra phi cs R AM (C GR AM , per form s a l ogi cal oper at on wi h t he wr it e dat a s ent fr om t he
microcomputer, and rewrites the data to the CGRAM. This mode can read the data during the same bus
cycle as for the write operation since the read operation of the original data does not latch the read data
into the microcomputer and temporarily holds it in the read-data latch. The rotation function (RT2D0) or
wr it e -dat a m as k func t on (W M 15D0) ar e al s o ena bl ed i n t hes e oper at ons Af te r wr it ng, t he addr es s
count e r (A C) aut om at ca y i ncr em ent s by 1 (I /D = 1) or dec re ment s by 1 (I /D = 0), and aut om at ca l y
jumps to the counter edge one-raster-row below after it has reached the left or right edges of the graphics
RAM.
WM0
WM15
Write data mask:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
DB0
DB15
Write data (1):
1 0 1 1 1 1 0 0 0 1 1 0 0 0 0 1
Write data (2):
1 1 0 0 0 0 1 1 1 0 0 0 1 1 0 0
Write data (3):
0 1 1 1 0 1 0 0 0 0 0 1 1 1 1 1
000H
001H
002H
Read data (1) + Write data (1)
CGRAM
Read data (1):
1 0 0 1 1 0 0 1 0 1 0 0 0 0 1 1
Read data (2):
0 0 0 0 1 1 1 1 0 0 0 0 0 0 0 0
Read data (3):
0 0 0 0 1 1 1 0 1 0 0 0 0 1 1 0
1 0 1 1 1 1 0 1 0 1 1 0 0 0 1 1
1 1 0 0 1 1 1 1 1 0 0 0 1 1 0 0
0 1 1 1 1 1 1 0 1 0 0 1 1 1 1 1
Logical operation
(OR)
Logical operation
(OR)
Logical operation
(OR)
0 1 1 1 1 1 1 0 1 0 0 1 1 1 1 1
1 1 0 0 1 1 1 1 1 0 0 0 1 1 0 0
1 0 1 1 1 1 0 1 0 1 1 0 0 0 1 1
Read data (2) + Write data (2) Read data (3) + Write data (3)
1) I/D = 1, AM1D0 = 00, LG1D0 = 01 (OR), RT2D0 = 000
2) WM15D0 = 0000H
3) AC = 000H
Operation Examples:
Figure 29 Writing Operation of Read/Write Mode 1
5. Read/Write mode 2: AM1D0 = 01, LG1D0 = 01/10/11
Thi s m ode i s us ed whe n t he dat a i s ver t c al y wr it en at hi gh s pee d by per form ng a l ogi cal oper at on
wi h t he ori gi nal dat a It re ads t he di s pla y dat a (or igi na l dat a ), whi ch has al r eady bee n wr it en i n t he
gra phi cs R AM (C GR AM , per form s a l ogi cal oper at on wi h t he wr it e dat a s ent fr om t he
microcomputer, and rewrites the data to the CGRAM. This mode can read the data during the same bus
cycle as for the write operation since the read operation of the original data does not latch the read data
into the microcomputer and temporarily holds it in the read-data latch. The rotation function (RT2D0) or
wr it e -dat a m as k func t on (W M 15D0) ar e al s o ena bl ed i n t hes e oper at ons Af te r wr it ng, t he addr es s
counter (AC) automatically increments by 16, and automatically jumps to the upper-right edge (I/D = 1)
or upper -l ef t edge (I /D = 0) fol owi ng t he I/ D bi af t er i has re ac hed t he l ower edge of t he gra phi cs
RAM.