S6B1741
128SEG/129COM DRIVER & CONTROLLER FOR STN LCD
3-pin SPI Mode (PS0 = "L" , PS1 = "L")
To write data to the DDRAM, send Data Direction Command in 3-pin SPI mode. Data is latched at the rising edge of
SCLK. And the DDRAM column address pointer will be increased by one automatically.
CSB
SCLK
SID
0
23 0 1 7 8 15 0
3 Byte(1)
Page
MSB
LSB
2 Byte(2)
DDC
No. of
DATA
829 830831
104 Byte
Data In
(1) Set Page and Column Address.
Set Page Address
: 1 0 1 1 P3 P2 P1 P0
Set Column Address MSB
: 0 0 0 1 0 Y6 Y5 Y4
Set Column Address LSB
: 0 0 0 0 Y3 Y2 Y1 Y0
(2)Set DDC(Data Direction Command) and No. of Data Bytes.
Set Data Direction Command ( For SPI mode Only):
11101000
Set No. of Data Bytes
: D7 D6 D5 D4 D3 D2 D1 D0
(3) This figure is example for 104 Data bytes to be transfered.
Figure 6. 3-pin SPI Timing (RS is not used)
This command is used in 3-pin SPI mode only. It will be two continuous commands, the first byte controls the data
direction and informs the LCD driver the second byte will be number of data bytes will be write. After these two
commands sending out, the following messages will be data. If data is stopped in transmitting, it is not valid data.
New data will be transferred serially with most significant bit first.
NOTE: In spite of transmission of data, if CSB will be disable, state terminates abnormally. Next state is initialized.
Busy Flag
The Busy Flag indicates whether the S6B1741 is operating or not. When DB7 is "H" in read status operation, this
device is in busy status and will accept only read status instruction. If the cycle time is correct, the microprocessor
needs not to check this flag before each instruction, which improves the MPU performance.
16