
Rev. 1.00
497 of 576
January 28, 2022
32-Bit Arm
®
Cortex
®
-M0+ MCU
HT32F54231/HT32F54241/HT32F54243/HT32F54253
23 Universal
Asynchronous Receiver T
ransmitter (UART)
23 Universal
Asynchronous Receiver T
ransmitter (UART)
Table 59. Baud Rate Deviation Error Calculation – CK_UART = 48 MHz
Baud Rate
CK_UART = 48 MHz
No.
Kbps
Actual
BRD
Deviation Error Rate
1
2.4
2.4
20000
0.00%
2
9.6
9.6
5000
0.00%
3
19.2
19.2
2500
0.00%
4
57.6
57.6
833
0.04%
5
115.2
115.1
417
-0.08%
6
230.4
230.8
208
0.16%
7
460.8
461.5
104
0.16%
8
921.6
923.1
52
0.16%
9
2250
2285.7
21
1.59%
10
3000
3000.0
16
0.00%
Table 60. Baud Rate Deviation Error Calculation – CK_UART = 60 MHz
Baud Rate
CK_UART = 60 MHz
No.
Kbps
Actual
BRD
Deviation Error Rate
1
2.4
2.4
25000
0.00%
2
9.6
9.6
6250
0.00%
3
19.2
19.2
3125
0.00%
4
57.6
57.6
1042
-0.03%
5
115.2
115.2
521
-0.03%
6
230.4
230.8
260
0.16%
7
460.8
461.5
130
0.16%
8
921.6
923.1
65
0.16%
9
2250
2222.2
27
-1.23%
10
3000
3000.0
20
0.00%
Interrupts and Status
The UART can generate interrupts when the following events occur and the corresponding
interrupt enable bits are set:
▆
Receiver line status interrupts: The interrupts are generated when the UART receiver overrun
error, parity error, framing error and break event occur.
▆
Transmit data register empty interrupt: An interrupt is generated when the content of the transmit
data register is transferred to the transmit shift register (TSR).
▆
Transmit complete interrupt: An interrupt is generated when the transmit data register (TDR) is
empty and the content of the transmit shift register (TSR) is also completely shifted.
▆
Receive data ready interrupt: An interrupt is generated when the content of the receive shift
register (RSR) has been transferred to the URDR register and is ready to read.