Baud rate calculation
UARTx can operate with or without using the Fractional Divider. The baud rate divisor is a 22-
bit number consisting the UARTxIBRD(16-bit integer) and the UARTxFBRD(6-bit fractional).
This is used by the baud rate generator to determine the bit period.
Baud Rate Divisor =
-
Figure 48 show how to set the UART Initial value.
W7500x Reference Manual Version1.1.0
UARTCLK
=
+
(16∗ )
Calculating UART
baudrate (BR)
PCLK,
BR
DL = PCLK/(16 *BR)
UARTxIBRD = Dlinteger
UARTxFBRD = ((DL
– DL
float
END
Figure 47. UART divider flow chart
Initia l setting Start
Setting UART baudra te
Set UARTxLCR_H
(Word length/Stop bit/Parity)
Set UARTxCR
(Mode/Hardwa reFlowControl)
END
Figure 48. UART Initial setting flow chart
)*64 +0.5)
integer
325 / 399