107
AT89C5131
4136C–USB–04/05
Table 81. Status in Slave Receiver Mode
Status
Code
SSSTA
Status of the Two-
wire Bus and Two-
wire Hardware
Application software response
Next Action Taken by Two-wire Hardware
To/From SSDAT
To SSCON
SSSTA
SSSTO
SSI
SSAA
08h
A START condition has
been transmitted
Write SLA+R
X
0
X
SLA+R will be transmitted.
10h
A repeated START
condition has been
transmitted
Write SLA+R
Write SLA+W
X
0
X
SLA+R will be transmitted.
SLA+W will be transmitted.
Logic will switch to master transmitter mode.
38h
Arbitration lost in
SLA+R or NOT ACK
bit
No SSDAT action
0
1
0
X
Two-wire bus will be released and not addressed
slave mode will be entered.
A START condition will be transmitted when the bus
becomes free.
40h
SLA+R has been
transmitted; ACK has
been received
No SSDAT action
0
1
Data byte will be received and NOT ACK will be
returned.
Data byte will be received and ACK will be returned.
48h
SLA+R has been
transmitted; NOT ACK
has been received
No SSDAT action
1
0
1
0
1
0
X
Repeated START will be transmitted.
STOP condition will be transmitted and SSSTO flag
will be reset.
STOP condition followed by a START condition will
be transmitted and SSSTO flag will be reset.
50h
Data byte has been
received; ACK has
been returned
Read data byte
0
1
Data byte will be received and NOT ACK will be
returned.
Data byte will be received and ACK will be returned.
58h
Data byte has been
received; NOT ACK
has been returned
Read data byte
1
0
1
0
1
0
X
Repeated START will be transmitted.
STOP condition will be transmitted and SSSTO flag
will be reset.
STOP condition followed by a START condition will
be transmitted and SSSTO flag will be reset.