Uart1; Figure 22.1. Uart1 Block Diagram - Silicon Laboratories C8051F12 Series Manual

8k isp flash mcu
Table of Contents

Advertisement

C8051F120/1/2/3/4/5/6/7 C8051F130/1/2/3

22. UART1

UART1 is an asynchronous, full duplex serial port offering modes 1 and 3 of the standard 8051 UART.
Enhanced baud rate support allows a wide range of clock sources to generate standard baud rates (details
in
Section "22.1. Enhanced Baud Rate Generation" on page 300
UART1 to start reception of a second incoming data byte before software has finished reading the previous
data byte.
UART1 has two associated SFRs: Serial Control Register 1 (SCON1) and Serial Data Buffer 1 (SBUF1).
The single SBUF1 location provides access to both transmit and receive registers. Reading SBUF1
accesses the buffered Receive register; writing SBUF1 accesses the Transmit register.
With UART1 interrupts enabled, an interrupt is generated each time a transmit is completed (TI1 is set in
SCON1), or a data byte has been received (RI1 is set in SCON1). The UART1 interrupt flags are not
cleared by hardware when the CPU vectors to the interrupt service routine. They must be cleared manually
by software, allowing software to determine the cause of the UART1 interrupt (transmit complete or receive
complete).
UART1 Baud
Rate Generator
SFR Bus
Write to
SBUF1
TB81
SBUF1
SET
(TX Shift)
D
Q
CLR
Zero Detector
Stop Bit
Shift
Start
Tx Control
Tx Clock
SCON1
Rx Clock
Rx Control
Start
Shift
0x1FF
RB81
Input Shift Register
(9 bits)
Load SBUF1
SBUF1
(RX Latch)
Read
SBUF1
SFR Bus

Figure 22.1. UART1 Block Diagram

). Received data buffering allows
TX1
Crossbar
Data
Send
Tx IRQ
TI1
Serial
Port
Interrupt
RI1
Rx IRQ
Load
SBUF1
RX1
Crossbar
Rev. 1.4
Port I/O
299

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the C8051F12 Series and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents