Skip to main content
Knowledgebase
Home
Renesas Singapore - Knowledgebase

How to calculate BRG setting value for UARTi of the serial interface?

Latest Updated:02/27/2012

Question:

How do I calculate the BRG setting value for UARTi ("i" depends on the product) of the serial interface?

Answer:

The calculation for the BRG setting value is as below:

· When using clock asynchronous serial I/O,

· When using clock synchronous serial I/O,

fj: BRG Count Source

For example, when the bit rate is 9600bps and BRG count source is f1: 16MHz, the value is as the following:

· When using clock asynchronous serial I/O,

BRG Setting Value=103

When the bit rate is 1 Mbps and BRG count source is f1: 16MHz, the value is as the following:

· When using clock synchronous serial I/O,

BRG Setting Value=7

Suitable Products
M32C/8A
M32C/88
M32C/87
M32C/85
M32C/84
M32C/83
M32C/80
M16C/62A
M16C/62A(M16C/62T)
M16C/62M
M16C/62N
M16C/62N(M3062GF8NFP, M3062GF8NGP)
M16C/62P
M16C/63
M16C/64A
M16C/64C
M16C/65
M16C/65C
M16C/6C
M16C/5L, M16C/56
M16C/5LD, M16C/56D
M16C/5M, M16C/57
M16C/30P
M16C/29
M16C/28
M16C/26A