RL78/G15 CHAPTER 12 SERIAL ARRAY UNIT
R01UH0959EJ0110 Rev.1.10 Page 480 of 765
Mar 7, 2023
(2) Baud rate error during transmission
The baud rate error of UART (UART0) communication during transmission can be calculated by the following expression.
Make sure that the baud rate at the transmission side is within the permissible baud rate range at the reception side.
(Baud rate error) = (Calculated baud rate value) ÷ (Target baud rate) × 100 −100[%]
Here is an example of setting a UART baud rate at f
CLK
= 16 MHz.
UART Baud Rate
(Target Baud Rate)
f
CLK
= 16 MHz
Operation Clock (f
MCK
) SDRmn[15:9] Calculated Baud Rate Error from Target Baud Rate
300 bps f
CLK
/2
9
51 300.48 bps +0.16%
600 bps f
CLK
/2
8
51 600.96 bps +0.16%
1200 bps f
CLK
/2
7
51 1201.92 bps +0.16%
2400 bps f
CLK
/2
6
51 2403.85 bps +0.16%
4800 bps f
CLK
/2
5
51 4807.69 bps +0.16%
9600 bps f
CLK
/2
4
51 9615.38 bps +0.16%
19200 bps f
CLK
/2
3
51 19230.8 bps +0.16%
31250 bps f
CLK
/2
3
31 31250.0 bps ±0.0%
38400 bps f
CLK
/2
2
51 38461.5 bps +0.16%
76800 bps f
CLK
/2 51 76923.1 bps +0.16%
153600 bps f
CLK
51 153846 bps +0.16%
312500 bps f
CLK
25 307692.3 bps −1.54%
Remark m: Unit number (m = 0), n: Channel number (n = 0), mn = 00