1998 Oct 07
24
Philips Semiconductors
Product specification
Pager baseband controller
PCA5007
Table 17
Description of the S0CON bits
Table 18
Selection of the serial port modes
6.9.4
UART
DATA REGISTER
(S0BUF)
The UART data register (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
.
BIT
SYMBOL
FUNCTION
S0CON.7
S0CON.6
S0CON.5
S0CON.4
SM0
SM1
REN
this bit together with the SM1 bit, is used to select the serial port mode; see Table 18
this bit together 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
S0CON.1
RB8
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
×
=