...the world's most energy friendly microcontrollers
2016-04-28 - Giant Gecko Family - d0053_Rev1.20
453
www.silabs.com
Table 17.5. USART Parity Bits
STOP BITS [1:0]
Description
00
No parity bit (Default)
01
Reserved
10
Even parity
11
Odd parity
17.3.2.2 Clock Generation
The USART clock defines the transmission and reception data rate. When operating in asynchronous
mode, the baud rate (bit-rate) is given by Equation 17.1 (p. 453)
USART Baud Rate
br = f
HFPERCLK
/(oversample x (1 + USARTn_CLKDIV/256))
(17.1)
where f
HFPERCLK
is the peripheral clock (HFPERCLK
USARTn
) frequency and oversample is the
oversampling rate as defined by OVS in USARTn_CTRL, see Table 17.6 (p. 453) .
Table 17.6. USART Oversampling
OVS [1:0]
oversample
00
16
01
8
10
6
11
4
The USART has a fractional clock divider to allow the USART clock to be controlled more accurately
than what is possible with a standard integral divider.
The clock divider used in the USART is a 15-bit value, with a 13-bit integral part and a 2-bit fractional
part. The fractional part is configured in the two LSBs of DIV in USART_CLKDIV. The lowest achievable
baud rate at 32 MHz is about 244 bauds/sec.
Fractional clock division is implemented by distributing the selected fraction over four baud periods. The
fractional part of the divider tells how many of these periods should be extended by one peripheral clock
cycle.
Given a desired baud rate br
desired
, the clock divider USARTn_CLKDIV can be calculated by using
Equation 17.2 (p. 453) :
USART Desired Baud Rate
USARTn_CLKDIV = 256 x (f
HFPERCLK
/(oversample x br
desired
) - 1)
(17.2)
Table 17.7 (p. 454) shows a set of desired baud rates and how accurately the USART is able to
generate these baud rates when running at a 4 MHz peripheral clock, using 16x or 8x oversampling.
Summary of Contents for Giant Gecko EFM32GG
Page 842: ......