2000 Jul 26
85
Philips Semiconductors
Preliminary Specification
Single-chip 8-bit microcontroller with CAN controller
P8xC591
15.2.13 T
HE
S
TATUS
R
EGISTER
, S1STA
S1STA is an 8-bit read-only special function register. The
three least significant bits are always zero. The five most
significant bits contain the status code. There are 26
possible status codes. When S1STA contains F8H, no
relevant state information is available and no serial
interrupt is requested. All other S1STA values correspond
to defined SIO1 states. When each of these states is
entered, a serial interrupt is requested (SI = “1”). A valid
status code is present in S1STA one machine cycle after
SIissetbyhardwareandisstillpresentone machinecycle
after SI has been reset by software.
Table 57
Serial clock rate
Note
1.
These frequencies exceed the upper limit of 100 kHz of the standard I
2
C-bus specification.
CR2
CR1
CR0
BIT FREQUENCY (kHz) at f
CLK
6 MHz
8 MHz
f
CLK
DIVIDED BY
12 MHz
0
0
0
0
1
1
1
0
0
1
1
0
0
1
0
1
0
1
0
1
0
47
54
63
75
12.5
100
200
62.5
71
83.3
100
17
133
(1)
267
(1)
0.65 < 55.6
0 < 253
94
128
112
96
80
480
60
30
107
(1)
125
(1)
150
(1)
25
200
(1)
400
(1)
0.98 < 50.0
0 < 251
1
1
1
0.49 > 62.5
0 < 254
48 x (256 (reload value Timer 1))
Reload value Timer 1 in Mode 2.
15.2.14 M
ORE
I
NFORMATION ON
SIO1 O
PERATING
M
ODES
The four operating modes are:
Master Transmitter
Master Receiver
Slave Receiver
Slave Transmitter
Data transfers in each mode of operation are shown in
Figures 37 to 40. These figures contain the following
abbreviations:
Abbreviation Explanation
S
Start condition
SLA
7-bit slave address
R
Read bit (high level at SDA)
W
Write bit (low level at SDA)
A
Acknowledge bit (low level at SDA)
A
Not acknowledge bit (high level at SDA)
Data
8-bit data byte
P
Stop condition
In Figures 37 to 40, circles are used to indicate when the
serial interrupt flag is set. The numbers in the circles show
thestatuscodeheldintheS1STAregister.Atthesepoints,
a service routine must be executed to continue or
complete the serial transfer. These service routines are
not critical since the serial transfer is suspended until the
serial interrupt flag is cleared by software.
When a serial interrupt routine is entered, the status code
in S1STA is used to branch to the appropriate service
routine. For each status code, the required software action
and details of the following serial transfer are given in
Tables 61 to 65.
15.2.14.1 Master Transmitter Mode:
Inthemastertransmittermode,anumberofdatabytesare
transmitted to a slave receiver (see Figure 37). Before the
master transmitter mode can be entered, S1CON must be
initialized as in Table 58.
CR0, CR1, and CR2 define the serial bit rate. ENS1 must
be set to logic 1 to enable SIO1. If the AA bit is reset, SIO1
will not acknowledge its own slave address or the general
call address in the event of another device becoming