A96G150 User's manual
16. USART2
221
16.2
Clock generation
Clock generation logic generates a base clock signal for the Transmitter and the Receiver. USART2
supports four modes of clock operation such as Normal Asynchronous mode, Double Speed
Asynchronous mode, Master Synchronous mode, and Slave Synchronous mode.
Clock generation scheme for Master SPI and Slave SPI mode is the same as Master Synchronous and
Slave Synchronous operation mode. The UMSELn bit in UCTRL1 register selects between
asynchronous and synchronous operation. Asynchronous Double Speed mode is controlled by the U2X
bit in the UCTRL2 register. The MASTER bit in UCTRL2 register controls whether the clock source is
internal (Master mode, output port) or external (Slave mode, input port). The XCK pin is only active
when the USART2 operates in Synchronous or SPI mode.
Figure 98. Clock Generation Block Diagram
Table 34 contains equations for calculating the baud rate (in bps).
Table 34. Equations for Calculating Baud Rate Register Setting
Operating mode
Equation for calculating baud rate
Asynchronous normal mode (U2X=0)
Baud Rate =
fSCLK
16( 1)
Asynchronous double speed mode (U2X=1)
Baud Rate =
fSCLK
8( 1)
Synchronous or SPI master mode
Baud Rate =
fSCLK
2( 1)
XCK
Prescaling
Up-Counter
UBAUD
/2
/8
Sync Register
/2
SCLK
f
SCLK
(UBAUD+1)
txclk
rxclk
UMSEL0
U2X
MASTER
UCPOL
Содержание A96G150
Страница 126: ...12 Timer 0 1 2 3 4 5 A96G150 User s manual 126 Figure 43 16 bit Timer Counter Mode Operation Example...
Страница 136: ...12 Timer 0 1 2 3 4 5 A96G150 User s manual 136 Figure 51 16 bit Timer Counter Mode Operation Example...
Страница 147: ...A96G150 User s manual 12 Timer 0 1 2 3 4 5 147 Figure 59 16 bit Timer Counter Mode Operation Example...
Страница 157: ...A96G150 User s manual 12 Timer 0 1 2 3 4 5 157 Figure 67 16 bit Timer Counter Mode Operation Example...
Страница 171: ...A96G150 User s manual 14 12 bit ADC 171 Figure 79 ADC Operation Flow Sequence...
Страница 333: ...A96G150 User s manual Revision history 333 Revision history Revision Date Notes 1 00 2022 06 22 First creation...