W7500x Reference Manual Version1.1.0
325 / 399
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 =
UARTCLK
(16∗𝑏𝑎𝑢𝑑 𝑟𝑎𝑡𝑒)
= 𝐵𝑅𝐷
𝐼
+ 𝐵𝑅𝐷
𝐹
Figure 47. UART divider flow chart
Figure 48 show how to set the UART Initial value.
Figure 48. UART Initial setting flow chart
DL = PCLK/(16 *BR)
UARTxIBRD = Dlinteger
UARTxFBRD = ((DL
float
– DL
integer
)*64 +0.5)
END
Calculating UART
baudrate (BR)
PCLK,
BR
Initial setting Start
Set UARTxLCR_H
(Word length/Stop bit/Parity)
Set UARTxCR
(Mode/HardwareFlowControl)
END
Setting UART baudrate
Содержание W7500
Страница 28: ...W7500x Reference Manual Version1 1 0 28 399 Memory map Figure 2 W7500x memory map ...
Страница 324: ...W7500x Reference Manual Version1 1 0 324 399 Figure 46 UART character frame ...
Страница 391: ...W7500x Reference Manual Version1 1 0 391 399 1 SSP1 must not drive the SSPTXD output in slave mode ...