EasyManua.ls Logo

Renesas HD6417641 - Bit Rate Register (SCBRR); Table 19.2 SCSMR Settings

Renesas HD6417641
1036 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Section 19 Serial Communication Interface with FIFO (SCIF)
Rev. 4.00 Sep. 14, 2005 Page 707 of 982
REJ09B0023-0400
19.3.8 Bit Rate Register (SCBRR)
The bit rate register (SCBRR) is an 8-bit register that, together with the baud rate generator clock
source selected by the CKS1 and CKS0 bits in the serial mode register (SCSMR), determines the
serial transmit/receive bit rate.
The CPU can always read and write to SCBRR. SCBRR is initialized to H'FF by a power-on reset.
Each channel has independent baud rate generator control, so different values can be set in three
channels.
The SCBRR setting is calculated as follows:
Asynchronous mode:
N = × 10
6
- 1
64 × 2
2n-1
× B
Pφ
Synchronous mode:
N = × 10
6
- 1
8 × 2
2n-1
× B
Pφ
B: Bit rate (bits/s)
N: SCBRR setting for baud rate generator (0 N 255)
Pφ: Operating frequency for peripheral modules (MHz)
n: Baud rate generator clock source (n = 0, 1, 2, 3) (for the clock sources and values of
n, see table 19.2.)
Table 19.2 SCSMR Settings
SCSMR Settings
n Clock Source CKS1 CKS0
0 Pφ 0 0
1 Pφ/4 0 1
2 Pφ/16 1 0
3 Pφ/64 1 1
Note: The bit rate error in asynchronous is given by the following formula:
Error (%) = - 1 × 100
(N + 1) × B × 64
2n-1
× 2
Pφ × 10
6

Table of Contents

Related product manuals