English
Language : 

C8051F326 Datasheet, PDF (120/140 Pages) List of Unclassifed Manufacturers – Full Speed USB, 16 kB Flash MCU Family
C8051F326/7
13.1. Baud Rate Generator
The UART0 baud rate is generated by a dedicated 16-bit timer which runs from either the controller’s core
clock (SYSCLK) or the USB Clock (USBCLK), and has prescaler options of 1, 4, 12, or 48. The timer and
prescaler options combined allow for a wide selection of baud rates over many clock frequencies.
The baud rate generator is configured using three registers: SBCON0, SBRLH0, and SBRLL0. The
UART0 Baud Rate Generator Control Register (SBCON0, SFR Definition 13.4) enables or disables the
baud rate generator, selects the clock source for the baud rate generator, and selects the prescaler value
for the timer. The baud rate generator must be enabled for UART0 to function. Registers SBRLH0 and
SBRLL0 contain a 16-bit reload value for the dedicated 16-bit timer. The internal timer counts up from the
reload value on every clock tick. On timer overflows (0xFFFF to 0x0000), the timer is reloaded. The baud
rate for UART0 is defined in Equation 13.1, where “BRG Clock” is the baud rate generator’s selected clock
source. For reliable UART operation, it is recommended that the UART baud rate is not configured for
baud rates faster than SYSCLK/16.
Baud Rate = ---6---5---5---3---6-----–----(B--S--R-B---G-R----L-C---H-l--o-0--c-:-k-S---B----R----L----L----0---)---
1--
2
----------1-----------
Prescaler
Equation 13.1. UART0 Baud Rate
A quick reference for typical baud rates and clock frequencies is given in Table 13.1.
120
Rev. 0.5