August 1993
43
Philips Semiconductors
Product specification
16-bit microcontroller
P90CE201
8.2.2
S
ERIAL
S
TATUS
R
EGISTER
(SnSTA)
S1STA resides at address 8000 2005H; S2STA resides at address 8000 2015H. The contents of the Serial Status
Registers may be used as vectors to service routines. This optimizes the response time of the software and consequently
that of the I
2
C-bus. S1STA and S2STA are read-only registers. These registers have a default value of F8H.
Table 32
Description of SnSTA bits.
Table 33
Master Transmitter Mode.
Table 34
Master Receiver Mode.
SYMBOL
BIT
FUNCTION
SC4
SC3
SC2
SC1
SC0
SnSTA.7
SnSTA.6
SnSTA.5
SnSTA.4
SnSTA.3
S1STA.2
S1STA.1
S1STA.0
Status Code. These 5 bits may be read in order to determine the status of the
I
2
C-bus. Tables 33 to 37 show all the status codes.
These three bits are held LOW and allow the user to use the status code directly
as a vector to a service routine.
S1STA VALUE
DESCRIPTION
08H
10H
18H
20H
28H
30H
38H
A START condition has been transmitted
A repeated START condition has been transmitted
SLA and W have been transmitted, ACK has been received
SLA and W have been transmitted, ACK received
DATA of SnDAT has been transmitted, ACK received
DATA of SnDAT has been transmitted, ACK received
Arbitration lost in SLA, R/W or DATA
S1STA VALUE
DESCRIPTION
08H
10H
38H
40H
48H
50H
58H
A START condition has been transmitted
A repeated START condition has been transmitted
Arbitration lost while returning ACK
SLA and R have been transmitted, ACK received
SLA and R have been transmitted, ACK received
DATA has been received, ACK returned
DATA has been received, ACK returned
Fig.26 Serial Status Register (SnSTA).
bit 7
SC4
bit 6
SC3
bit 5
SC2
bit 4
SC1
bit 3
SC0
bit 2
0
bit 1
0
bit 0
0