Philips Semiconductors
8-bit Flash microcontrollers
Product specification
P89C738; P89C739
12.2 Serial Port Control Register (SCON)
Table 17 Serial Port Control Register (SFR address 98H)
7
6
5
4
3
2
1
0
SMO
SM1
SM2
REN
TB8
RB8
TI
RI
Table 18 Description of SCON bits
BIT
SYMBOL
DESCRIPTION
7
SM0
These bits are used to select the Serial Port mode; see Table 19.
6
SM1
5
SM2
Enables the multiprocessor communication feature in Modes 2 and 3. In these
modes, if SM2 = 1, then RI will not be activated if the received 9th data bit (RB8) is a
logic 0. In Mode 1, if SM2 = 1, then RI will not be activated unless a valid stop bit was
received. In Mode 0, SM2 should be a logic 0.
4
REN
Enables serial reception. Set and cleared by software as required.
3
TB8
The 9th data bit that will be transmitted in Modes 2 and 3. Set or cleared by software
as required.
2
RB8
In Modes 2 and 3, RB8 is the 9th data bit received. In Mode 1, if SM2 = 0 then RB8 is
the stop bit that was received. In Mode 0, RB8 is not used.
1
TI
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. TI must
be cleared by software.
0
RI
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 (except:
see SM2). RI must be cleared by software.
Table 19 Selection of the Serial Port modes
SMO
0
0
1
1
SM1
0
1
0
1
MODE
Mode 0
Mode 1
Mode 2
Mode 3
DESCRIPTION
shift register
8-bit UART
9-bit UART
9-bit UART
BAUD RATE
1⁄12fclk
variable
1⁄32 or 1⁄64fclk
variable
1998 Apr 07
27