HARDWARE
Interface Signals
Functional Blocks
Registers
The LCD unit has two 8-bit registers - an instruc-
tion register (IR) and a data register (DR). The
instruction register stores instruction codes such as
"clear display" or "shift cursor", and also stores
address information for the display data RAM and
character generator RAM. The IR can be accessed
by the microprocessor only for writing.
The data register is used for temporarily storing
data during data transactions with the microproces-
sor. When writing data to the LCD unit, the data is
initially stored in the data register, and is then auto-
matically written into either the display data RAM or
character generator RAM, as determined by the
current operation. The data register is also used as
a temporary storage area when reading data from
the display data RAM or character generator RAM.
When address information is written into the instruc-
tion register, the corresponding data from the display
data RAM or character generator RAM is moved to
the data register. Data transfer is completed when
the microprocessor reads the contents of the data
register by the next instruction. After the transfer is
completed, data from the next address position of
the appropriate RAM is moved to the data register,
in preparation for subsequent reading operations by
the microprocessor. One of the two registers is
selected by the register select (RS) signal.
6,*1$/ 1$0(
,1387287387
(;7(51$/
&211(&7,21
)81&7,21
56
,QSXW
038
5HJLVWHU VHOHFW VLJQDO
,QVWUXFWLRQ UHJLVWHU ZKHQ ZULWLQJ
%XV\ IODJ DQG DGGUHVV FRXQWHU ZKHQ UHDGLQJ
'DWD UHJLVWHU ZKHQ ZULWLQJ DQG UHDGLQJ
5:
,QSXW
038
5HDGZULWH VHOHFW VLJQDO :ULWLQJ 5HDGLQJ
(
,QSXW
038
2SHUDWLRQ GDWD UHDGZULWH HQDEOH VLJQDO
'%
'%
,QSXW2XWSXW
038
+LJKRUGHU OLQHV RI GDWD EXV ZLWK WKUHHVWDWH ELGLUFWLRQDO IXQFWLRQ IRU XVH LQ GDWD
WUDQVDFWLRQV ZLWK WKH 038 '%
PD\ DOVR EH XVHG WR FKHFN WKH EXV\ IODJ
'%
'%
,QSXW2XWSXW
038
/RZRUGHU OLQHV RI GDWD EXV ZLWK WKUHHVWDWH ELGLUHFWLRQDO IXQFWLRQ IRU XVH LQ GDWD
WUDQVDFWLRQV ZLWK WKH 038
7KHVH OLQHV DUH QRW XVHG ZKHQ LQWHUIDFLQJ ZLWK D ELW PLFURSURFHVVRU
9
''
9
66
3RZHU 6XSSO\
9
''
9 9
66
*1'
9
3RZHU 6XSSO\
&RQWUDVW DGMXVWPHQW YROWDJH
Table 2. Interface Signals
56
5:
23(5$7,21
:ULWH WR LQVWUXFWLRQ UHJLVWHU DQG H[HFXWH LQWHUQDO RSHUDWLRQ FOHDU GLVSOD\ HWF
5HDG EXV\ IODJ '%
DQG DGGUHVV FRXQWHU '%
'%
:ULWH WR GDWD UHJLVWHU DQG H[HFXWH LQWHUQDO RSHUDWLRQ '5
→
'' 5$0 RU '5
→
&* 5$0
5HDG GDWD UHJLVWHU DQG H[HFXWH LQWHUQDO RSHUDWLRQ '' 5$0
→
'5 RU &* 5$0
→
'5
Table 3. Register Selection
Dot-Matrix LCD Units
4
Display Unit User’s Manual