![](http://datasheet.mmic.net.cn/260000/S6A0031_datasheet_15972231/S6A0031_21.png)
8 COM / 80 SEG DRIVER & CONTROLLER FOR STN LCD PRELIMINARY SPEC. VER. 0.5
S6A0031
17
Read Busy Flag and Address
RS
R/W
DB7
DB6
DB5
DB4
DB3
DB2
DB1
DB0
0
1
BF
-
-
A4
A3
A2
A1
A0
This instruction shows whether S6A0031 is in internal operation or not. If the resultant BF is "High", it means the
internal operation is in progress and you have to wait until BF to be "Low", and then the next instruction can be
performed. In this instruction you can read also the value of address counter.
Write Data
RS
R/W
DB7
DB6
DB5
DB4
DB3
DB2
DB1
DB0
1
0
D7
D6
D5
D4
D3
D2
D1
D0
Write binary 8- / 5- bit data to DDRAM / CGRAM
The selection of RAM from DDRAM / CGRAM is set by the previous address set instruction (DDRAM address set,
CGRAM address set). After write operation, the address is automatically increased / decreased by 1, according to
the entry mode.
Read Data
RS
R/W
DB7
DB6
DB5
DB4
DB3
DB2
DB1
DB0
1
1
D7
D6
D5
D4
D3
D2
D1
D0
Read binary 8- / 5- bit data from DDRAM / CGRAM
The selection of RAM is set by the previous address set instruction. If address set instruction of RAM is not
performed before this instruction, the data that read first is invalid, because the direction of AC is not determined. If
you read RAM data several times without RAM address set instruction before read operation, you can get correct
RAM data from the second, and the first data would be incorrect, because there is no time margin to transfer RAM
data. In case of DDRAM read operation, cursor shift instruction plays the same role as DDRAM address set
instruction: it also transfers RAM data to output data register.
After read operation address counter is automatically increased / decreased by 1 according to the entry mode. After
CGRAM read operation, display shift may not be executed correctly.
* In case of RAM write operation, after this operation, AC is increased / decreased by 1 like read operation. In this
time, AC indicates the next address position, but you can read only the previous data by read instruction. RAM
address is dummy data, so the correct RAM data come from the second read transaction. After reading operation,
the address is increased by 1 automatically.