
S6A0072
16COM/40SEG DOT MATRIX LCD CONTROLLER & DRIVER
6
FUNCTION DESCRIPTION
SYSTEM INTERFACE
This chip consists of two kinds of interface type with MPU: 4-bit bus and 8-bit bus. 4-bit bus and 8-bit bus is
selected by DL bit of function set in the instruction register. During read or write operation, two 8-bit registers are
used. One is the data register (DR), the other is the instruction register (IR). The data register (DR) is used as a
temporary data storage place for being written into or read from DDRAM/CGRAM, target RAM is selected by RAM
address setting instruction. Each internal operation, reading from or writing into RAM, is done automatically. Thus,
after MPU reads DR data, the data in the next DDRAM/CGRAM address is transferred into DR automatically. Also
after MPU writes data to DR, the data in DR is transferred into DDRAM/CGRAM automatically. The Instruction
register (IR) is used only to store instruction code transferred from MPU. MPU cannot read data from instruction
register. The register selection depends on RS input pin setting in both 4-bit bus mode.
Table 1. Various Kinds Of Operations According to RS and R/W Bits
RS
R/W
Operation
0
Instruction write operation (MPU writes instruction code into IR)
0
1
Read busy flag (DB7) and address counter (DB0 - DB6)
1
0
Data write operation (MPU writes data into DR)
1
Data read operation (MPU reads data from DR)
BUSY FLAG (BF)
BF = "High" indicates that the internal operation is being processed. So during this time the next instruction cannot
be accepted. BF can be read, when RS = Low and R/W = High (Read instruction Operation), through DB7 port.
Before executing the next instruction, be sure that BF is not High.
ADDRESS COUNTER (AC)
Address Counter (AC) stores the address of DDRAM/CGRAM that are transferred from IR. After writing into (reading
from) DDRAM/CGRAM data, AC is increased (decreased) by 1 automatically. When RS = "Low", and R/W =
"High", AC value can be read through DB0 - DB6 ports.