CHAPTER 14 ASYNCHRONOUS SERIAL INTERFACE (UART)
User’s Manual U16896EJ2V0UD
427
(3) Baud rate
The baud rate is the value obtained by the following formula.
Baud rate [bps] =
f
UCLK
= Frequency [Hz] of base clock selected by CKSRn.TPSn3 to CKSRn.TPSn0 bits.
k = Value set by BRGCn.MDLn7 to BRGCn.MDLn0 bits (k = 8, 9, 10, ..., 255)
(4) Baud rate error
The baud rate error is obtained by the following formula.
Error (%) =
−
1
×
100 [%]
Cautions 1. Make sure that the baud rate error during transmission does not exceed the allowable
error of the reception destination.
2. Make sure that the baud rate error during reception is within the allowable baud rate
range during reception, which is described in 14.6.4 Allowable baud rate range
during reception.
Example:
Base clock frequency = 10 MHz = 10,000,000 Hz
Setting of BRGCn.MDLn7 to BRGCn.MDLn0 bits = 00100001B (k = 33)
Target baud rate = 153,600 bps
Baud rate = 10,000,000/(2
×
33)
=
151,515
[bps]
Error = (151,515/153,600
−
1)
×
100
=
−
1.357 [%]
f
UCLK
2
×
k
Actual baud rate (baud rate with error)
Target baud rate (normal baud rate)
Содержание V850ES/KE1+
Страница 2: ...User s Manual U16896EJ2V0UD 2 MEMO...