
UC1602I
65x102 Matrix LCD Controller-Drivers
Rev. 0.54 10/12/2001
25
D
ATA
RAM A
CCESS
: C
URSOR
U
PDATE
Cursor can be used to support many flexible user interface designs. Blinking cursor requires frequent update
to a limited set of pixels. UC1602I Cursor update mode is designed to facilitate such frequent data RAM
updates.
Under Cursor Update mode, both the wrap around (CA reset to 0, PA increment or decrement) and CA
increment on Read are temporary disabled. These two features allow system designer to minimize the need
to update CA and PA registers and allows on-chip RAM to be used in Read-Modify-Write style operations.
E
XAMPLE
1: C
URSOR
U
PDATE WITH
R
EAD
-M
ODIFY
-W
RITE
, P
ARALLEL
I
NTERFACE OR
I
2
C M
ODE
# C/D W/R D7 D6 D5 D4 D3 D2 D1 D0
1
0
0
1
1
Operation
OM
–
BZ
0
Comments
CR tracks where
CA should be
restored later
CA unchanged
1
0
0
0
0
0 Set Cursor-Update mode
and set CR=CA
1
1
1
1
1
0
–
#
#
–
#
#
–
#
#
–
#
#
–
#
#
–
#
#
–
#
#
– Dummy Read cycle
# Read Display Data
# Write Display Data
(Return to 2 and repeat
until the cursor is updated)
0 Clear Cursor Update Mode
Return to 1 for next cursor
update cycle or continue
2
–
0
3
–
–
0
0
CA will increment,
but will not wrap
around
4
0
0
1
1
1
0
1
1
1
–
–
0
0
Set CA=CR
E
XAMPLE
2: C
URSOR
U
PDATE
W
ITHOUT
R
EAD
, A
LL
I
NTERFACE
M
ODES
# C/D W/R D7 D6 D5 D4 D3 D2 D1 D0
1
0
0
1
1
Operation
OM
–
BZ
0
Comments
CR remembers
where CA should
be restored later
CA will increment
but will not wrap
around
1
0
1
1
1
1 Set Cursor-Update mode
and set CR=CA
2
3
1
0
#
#
#
#
#
#
#
# Write Display Data
(Return to 2 and repeat
until the cursor is updated)
0 Clear Cursor Update Mode
Return to 1 for next cursor
update cycle or continue
–
–
0
0
4
0
0
1
1
1
0
1
1
1
–
–
0
0
Set CA=CR
E
NABLE
D
ISPLAY
The following command sequence can be performed in all interface modes.
# C/D W/R D7 D6 D5 D4 D3 D2 D1 D0
0
0
0
1
0
0
1
0
0
0
1
0
0
0
1
0
Operation
OM
–
–
–
11
BZ
0
0
0
0
Comments
#
1
1
1
#
0
0
0
#
0
0
1
#
1
1
1
#
0
1
1
# (Opt.) Set Start Line
# (Opt.) Set All-Pixel-ON
# (Opt.) Set Inverse Mode.
1 Set Display ON
Note:
The order of these steps are not critical. However, for the smoothness of display effect,
the above sequence is recommended.