19 UNIVERSAL SERIAL INTERFACE WITH LCD INTERFACE (USIL)
19-14
Seiko Epson Corporation
S1C33L26 TECHNICAL MANUAL
5.3.2 I
Table 19.
2
C Master Status Bits
IMSTA[2:0]
Status
0x7
Reserved
0x6
NAK has been received.
0x5
ACK has been received.
0x4
ACK or NAK has been sent.
0x3
End of receive data.
0x2
End of transmit data.
0x1
Stop condition has been generated.
0x0
Start condition has been generated.
(Default: 0x0)
Data transmission in I
2
C master mode
The following describes the data transmission procedure in I
2
C master mode.
START
END
Generate start condition
Generate stop condition
Send slave address and transfer
direction bit
ACK received?
yes
ACK received?
yes
no
Finished?
yes
Send data
Error handling
no
no
5.3.1 I
Figure 19.
2
C Master Data Transmission Flow Chart
0x0
Address
0x6
0x2
0x2
Transfer data 1
A6
A5
D7
D6
D5
D4
D3
D2
D1
D0
A4
A3
A2
A1
A0 R/W = 0
ACK
USIL_CK pin (output)
USIL_CK pin (input)
USIL_DI pin (output)
USIL_DI pin (input)
IMTGMOD[2:0]
IMTG (write)
IMBSY
IMSTA[2:0]
TD[7:0]
IMIF
Start interrupt
End of transmission
interrupt
End of transmission
interrupt
Receive
ACK interrupt
0x0
*
*
*
*
0x2
0x5
0x2
(1) Start condition
→
Data transmission