CG RAM Address Set
The address counter is loaded with a character
generator RAM address, expressed as a 6-digit
binary number. Following the execution of this in-
struction, subsequent data transactions will be be-
tween the external microprocessor and the
character generator RAM.
DD RAM Address Set
The address counter is loaded with a display data
RAM address, expressed as a 7-digit binary num-
ber . Following the execution of this instruction, sub-
sequent data transactions will be between the
external microprocessor and the display data RAM.
For N = 0 (single line display), the binary number,
ADD may have a value ranging from 00H to 4FH. For
N = 1 (dual line display), the binary number, ADD,
may have a value ranging from 00H to 27H for the
first line, or 40H to 67H for the second line.
Busy Flag/Addre ss Coun te r Re ad
The busy flag (BF) is read out, and indicates
whether or not the LCD unit is still executing the
previous instruction. BF = 1 indicates the busy state
(internal operation), and the next instruction will not
be accepted until BF = 0. This instruction also reads
out the contents of the address counter, expressed
as a 7-digit binary number. The addr ess c ounter is
used for accessing both the character generator
RAM and the display data RAM. On read-out, the
address counter will contain either a character gen-
erator RAM address or a display data RAM address,
as determined by the most recently executed ad-
dress set inst ruction.
CG RAM/DD RAM Data Writ e
An 8-bit data word is written into either the char-
acter generator RAM or display data RAM, as de-
termined by the most recently executed address set
instruciton. The data is written into the RAM location
specified by the address counter. After the data is
written into the RAM, the address counter is either
incremented or decremented by one, as determined
by the current entry mode. A display shift may also
take place after the data is written.
CG RAM/DD RAM Data Read
An 8-bit data word is read from either the charac-
ter generator RAM or display data RAM, as deter-
mined by a previously executed address set
instruction. The data is read from the RAM location
specified by the address c ounter.
This instruction must be immediately preceded by
the CG RAM address set instruction, the DD RAM
address set instruction, the cursor shift instruction,
or a previous CG RAM/ DD RAM data r ead instr uc-
tion. Any other preceding instruction will cause in-
valid data to be read. The address set ins t ructions
cause the address counter to be loaded with a valid
data read address.
The cursor shift command allows selected DD
RAM data to be read without the necessity of reset-
ting the DD RAM address. Following the cursor shift
instruction, the CG RAM/DD RAM data read instruc-
tion will read data from the DD RAM.
After the execution of each data read instruction,
the address counter is either incremented or decre-
mented by one, as deter m ined by the current entry
mode. It is not necessary to reset the RAM address
before the execution of subsequent data read in-
structions if the same RAM is to be read. The
display is not shifted by the data read ins truction.
NOTE
Afte r the execut ion of the CG RA M/DD RAM data writ e
instruction, the address counter is incremented or decre-
mented automatically . However , the contents of the RAM
locati on sp ecifie d by the addres s coun ter ca nnot be re ad
by a subsequent CG RAM/DD RAM data read instruction.
The cor rect procedure f or reading data from the CG RAM
or D D RAM is to exe cute an ad dress s et or curs or shif t
instruction. Once a data read instruction has been exe-
cuted, successive data read instructions may be exe-
cuted, with no requirement for intervening instructions.
DB0
DB
7
RS R/W
0CODE 0 0 1 A A A A A A
DB
0
DB
7
RS R/W
0CODE 01AAAAAAA
DB
0
DB
7
RS R/W
0CODE 1BFA A AA A AA1
DB0
DB
7
RS R/W
1CODE 0DDDDDDDD
DB0
DB
7
RS R/W
1CODE 1DDDDDDDD
Dot-Matrix LCD Units
Display Unit User’s Manual 17