16-15
Seiko Epson Corporation
S1C31D50 TECHNICAL MANUAL
(Rev. 1.00)
Figure 16.4.6.1 Example of Data Receiving Operations in Slave Mode
Figure 16.4.6.2 Slave Mode Data Reception Flowchart
16.4.7.
Slave Operations in 10-bit Address Mode
The I2C Ch.
n
functions as a slave device in 10-bit address mode when the I2C_
n
CTL.MST bit = 0 and
the I2C_
n
MOD.OADR10 bit = 1.
The following shows the address receiving operations in 10-bit address mode. Figure 16.4.7.1 shows an
operation example. See Figure 16.4.4.1 for the 10-bit address configuration.
10-bit address receiving operations
After a START condition is issued, the master sends the first address that includes the two high-order
A
Data N
P
BSY = 0
STOPIF = 1
STARTIF = 1
A
Data 1
S
A
Saddr/W
A
Data 2
Sr
A
RXD[7:0]
→
Data 1
RXD[7:0]
→
Data (N -1)
RXD[7:0]
→
Data N
RBFIF = 1
BYTEENDIF = 1
RBFIF = 1
BYTEENDIF = 1
RBFIF = 1
BYTEENDIF = 1
P
A
Data N
Sr
TXNACK = 1
RXD[7:0] Data (N -1)
RXD[7:0]
→
Data N
RBFIF = 1
BYTEENDIF = 1
RBFIF = 1
BYTEENDIF = 1
BSY = 0
TXNACK = 0
STOPIF = 1
TR = 0
STARTIF = 1
BSY = 1
TXNACK = 0
S: START condition, Sr: Repeated START condition, P: STOP condition,
A: ACK, A: NACK, Saddr/W: Slave a W(0), Data n: 8-bit data
Software bit operations
Operations by the external master
Operations by I2C (slave mode)
Hardware bit operations
I
2
C bus
Clock stretching by I2C
Data reception
Write 1 to the I2C_
n
CTL.TXNACK bit
One-byte reception?
Wait for an interrupt request
(I2C_
n
INTF.STARTIF = 1)
Write 1 to the I2C_
n
INTF.STARTIF bit
Last data received next?
Wait for an interrupt request
(I2C_
n
INTF.RBFIF = 1)
Write 1 to the I2C_
n
CTL.TXNACK bit
End
Last data received?
Read receive data from the I2C_
n
RXD register
No
Yes
No
Yes
No
Yes
Summary of Contents for S1C31D50
Page 461: ...25 1 Seiko Epson Corporation S1C31D50 TECHNICAL MANUAL Rev 1 00 25 Package TQFP12 48PIN ...
Page 462: ...25 2 Seiko Epson Corporation S1C31D50 TECHNICAL MANUAL Rev 1 00 QFP13 64PIN ...
Page 463: ...25 3 Seiko Epson Corporation S1C31D50 TECHNICAL MANUAL Rev 1 00 TQFP14 80PIN ...
Page 464: ...25 4 Seiko Epson Corporation S1C31D50 TECHNICAL MANUAL Rev 1 00 QFP15 100PIN ...