Philips Semiconductors
Product data
P89C660/P89C662/P89C664/
P89C668
80C51 8-bit Flash microcontroller family
16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB RAM
2002 Oct 28
26
Table 5.
Master Receiver Mode
STATUS
CODE
(S1STA)
STATUS OF THE I
2
C
BUS AND
SIO1 HARDWARE
APPLICATION SOFTWARE RESPONSE
TO/FROM S1DAT
TO S1CON
NEXT ACTION TAKEN BY SIO1 HARDWARE
STA
STO
SI
AA
08H
A START condition has
been transmitted
Load SLA+R
X
0
0
X
SLA+R will be transmitted;
ACK bit will be received
10H
A repeated START
condition h
transmitted
b
Load SLA+R or
Load SLA+W
X
X
0
0
0
0
X
X
As above
SLA+W will be transmitted;
SIO1 will be switched to MST/TRX mode
I
2
C bus will be released;
SIO1 will enter a Slave mode
A START condition will be transmitted when the
bus becomes free
38H
Arbitration lost in
NOT ACK bit
No S1DAT action or
0
0
0
X
No S1DAT action
1
0
0
X
40H
SLA+R has been
transmitted; ACK has
been received
No S1DAT action or
0
0
0
0
Data byte will be received;
NOT ACK bit will be returned
Data byte will be received;
ACK bit will be returned
no S1DAT action
0
0
0
1
48H
SLA+R has been
itt d NOT ACK
transmitted; NOT ACK
has been received
No S1DAT action or
no S1DAT action or
1
0
0
1
0
0
X
X
Repeated START condition will be transmitted
STOP condition will be transmitted;
STO flag will be reset
STOP condition followed by a
START condition will be transmitted;
STO flag will be reset
no S1DAT action
1
1
0
X
50H
Data byte has been
received; ACK has been
returned
Read data byte or
0
0
0
0
Data byte will be received;
NOT ACK bit will be returned
Data byte will be received;
ACK bit will be returned
read data byte
0
0
0
1
58H
Data byte has been
d NOT ACK h
received; NOT ACK has
been returned
Read data byte or
read data byte or
1
0
0
1
0
0
X
X
Repeated START condition will be transmitted
STOP condition will be transmitted;
STO flag will be reset
STOP condition followed by a
START condition will be transmitted;
STO flag will be reset
read data byte
1
1
0
X