Baud Rate; Baud Rate Error - NEC V850E/PH2 User Manual

32-bit single-chip microcontroller
Table of Contents

Advertisement

15.6.2 Baud rate

The baud rate is obtained by the following equation.
f
= Frequency of base clock (Clock) selected by bits UCnCKS3 to UCnCKS0 of UCnCTL1 register
XCLK
k = Value set using bits UCnBRS7 to UCnBRS0 of UCnCTL2 register (k = 4, 5, 6,..., 255)

15.6.3 Baud rate error

The baud rate error is obtained by the following equation.
Error
Cautions: 1. The baud rate error during transmission must be within the error tolerance on the
receiving side.
2. The baud rate error during reception must satisfy the range indicated in section
15.6.5 "Allowable baud rate range during reception" on page 642.
Example
Base clock (f
) frequency = 16 MHz = 16,000,000 Hz
XCLK
Setting value of bits UCnBRS7 to UCnBRS0 of UCnCTL2 register = 00110100B (k = 52)
Target baud rate = 153,600
Baud rate = 16,000,000/ (2 × 52) = 153,846 [bps]
Error = (153,846/153,600 - 1) × 100
= 0.160 [%]
640
Chapter 15 Asynchronous Serial Interface C (UARTC)
Baud rate =
Actual baud rate (baud rate with error)
=
---------------------------------------------------------------------------------------------------- - 1
Desired baud rate (correct baud rate)
User's Manual U16580EE3V1UD00
f
XCLK
[bps]
2 × k
×
[ ]
100
%

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mupd70f3187

Table of Contents