1998 Nov 02
26
Philips Semiconductors
Product specification
Pager baseband controller
PCA5010
Table 16
Serial Port Control Register (S0CON, SFR address 98H)
Table 17
Description of the S0CON bits
Table 18
Selection of the serial port modes
6.9.4
UART
DATA REGISTER
(S0BUF)
S0BUF contains the serial data to be transmitted or data which has just been received. Bit 0 is transmitted or received
first.
Table 19
Data Shift Register (S0BUF, SFR address 99H)
6.9.5
B
AUD RATES
The baud rate in Modes 1 and 2 depends on the value of the SMOD bit in SFR PCON and may be calculated as:
SMOD
16
If SMOD = 0, (which is the value on reset), the baud rate is
1
16
f
osc
If SMOD = 1, the baud rate is
1
8
f
osc
.
7
6
5
4
3
2
1
0
SM0
SM1
REN
TB8
RB8
TI
RI
BIT
SYMBOL
FUNCTION
S0CON.7
S0CON.6
S0CON.5
S0CON.4
SM0
SM1
REN
this bit along with the SM1 bit, is used to select the serial port mode; see Table 18
this bit along with the SM0 bit, is used to select the serial port mode; see Table 18
SM2 is not available
this bit enables serial reception and is set by software to enable reception, and cleared
by software to disable reception
this bit is the 9th data bit that will be transmitted in Mode 2; set or cleared by software as
desired
in Mode 2, this bit is the 9th data bit received; in Mode 1 it is the stop bit that was
received
The transmit interrupt flag
. Set by hardware at the end of the 8th bit time in Mode 0, or
at the beginning of the stop bit time in the other modes, in any serial transmission. Must
be cleared by software.
The receive interrupt flag
. Set by hardware at the end of the 8th bit time in Mode 0, or
halfway through the stop bit time in the other modes, in any serial transmission (for
exception see SM2). Must be cleared by software.
S0CON.3
TB8
S0CON.2
RB8
S0CON.1
TI
S0CON.0
RI
SM0
SM1
MODE
DESCRIPTION
BAUD RATE
0
1
1
0
1
2
8-bit UART
9-bit UART
1
16
f
osc
or
1
8
f
osc
1
16
f
osc
or
1
8
f
osc
7
6
5
4
3
2
1
0
D7
D6
D5
D4
D3
D2
D1
D0
Baud rate
2
f
osc
×
=