English
Language : 

C8051F326 Datasheet, PDF (125/140 Pages) List of Unclassifed Manufacturers – Full Speed USB, 16 kB Flash MCU Family
C8051F326/7
SFR Definition 13.1. SCON0: UART0 Control
R/W
R/W
R
OVR0 PERR0
—
Bit7
Bit6
Bit5
R/W
REN0
Bit4
R/W
TBX0
Bit3
R/W
RBX0
Bit2
R/W
R/W
Reset Value
TI0
RI0 00100000
Bit1
Bit0
Bit
Addressable
SFR Address: 0x98
Bit7:
Bit6:
Bit5:
Bit4:
Bit3:
Bit2:
Bit1:
Bit0:
OVR0: Receive FIFO Overrun Flag.
This bit is used to indicate a receive FIFO overrun condition.
0: Receive FIFO Overrun has not occurred.
1: Receive FIFO Overrun has occurred (an incoming character was discarded due to a full
FIFO).
This bit must be cleared to ‘0’ by software.
PERR0: Parity Error Flag.
When parity is enabled, this bit is used to indicate that a parity error has occurred. It is set to
‘1’ when the parity of the oldest byte in the FIFO does not match the selected Parity Type.
0: Parity Error has not occurred.
1: Parity Error has occurred.
This bit must be cleared to ‘0’ by software.
Unused. Read = 1b; Write = don’t care.
REN0: Receive Enable.
This bit enables/disables the UART receiver. When disabled, bytes can still be read from the
receive FIFO.
0: UART0 reception disabled.
1: UART0 reception enabled.
TBX0: Extra Transmission Bit.
The logic level of this bit will be assigned to the extra transmission bit when XBE0 is set to
‘1’. This bit is not used when Parity is enabled.
RBX0: Extra Receive Bit.
RBX0 is assigned the value of the extra bit when XBE0 is set to ‘1’. If XBE0 is cleared to ‘0’,
RBX0 will be assigned the logic level of the first stop bit. This bit is not valid when Parity is
enabled.
TI0: Transmit Interrupt Flag.
Set to a ‘1’ by hardware after data has been transmitted, at the beginning of the STOP bit.
When the UART0 interrupt is enabled, setting this bit causes the CPU to vector to the
UART0 interrupt service routine. This bit must be cleared manually by software.
RI0: Receive Interrupt Flag.
Set to ‘1’ by hardware when a byte of data has been received by UART0 (set at the STOP bit
sampling time). When the UART0 interrupt is enabled, setting this bit to ‘1’ causes the CPU
to vector to the UART0 interrupt service routine. This bit must be cleared manually by soft-
ware.
Rev. 0.5
125