W7500x Reference Manual Version1.1.0
359 / 399
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
res
res
res
res
res
res
res
res
res
res
res
res
RXOI
TXOI
RXI
TXI
R/W R/W R/W R/W
[3] RXOI –Receive Overrun Interrupt
This bit depends on the state of the ROIE bit in the control register, UART2CR
[2] TXOI – Transmit Overrun Interrupt
This bit depends on the state of the TOIE bit in the control register, UART2CR
[1] RXI – Receive Interrupt
This bit depends on the state of the RXIE bit in the control register, UART2CR
[0] TXI – Transmit Interrupt
This bit depends on the state of the TXIE bit in the control register, UART2CR
UART2BDR (UART2 Baud Rate Divider Register)
Address offset: 0x010
Reset value: 0x0000_0000
The UART2BDR r is the integer part of the baud rate divisor value.
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
res
Res
res
res
res
res
res
res
res
res
res
res
R/W
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
BAUDDIV
R/W
[19:0] Baud rate divider
The minimum number is 16. These bits are cleared to 0 on reset
Example 1
If the required baud rate is 115200 and UARTCLK = 8MHz then:
Baud rate divisor BAUDDIV =
(𝐹
𝑈𝐴𝑅𝑇𝐶𝐿𝐾
/𝐵𝑎𝑢𝑑 𝑟𝑎𝑡𝑒)
Baud rate divisor =
(8 × 10
6
)/(115200) =
69.4
This means
BRD =
69