Renesas RL78/G1P Hardware User Manual page 478

16-bit single-chip microcontroller
Hide thumbs Also See for RL78/G1P:
Table of Contents

Advertisement

RL78/G1P
11.7.4 Calculating baud rate
(1) Baud rate calculation expression
The baud rate for UART (UART0) communication can be calculated by the following expressions.
(Baud rate) = {Operation clock (f
Caution Setting serial data register mn (SDRmn) SDRmn[15:9] = (0000000B, 0000001B) is prohibited.
Remarks 1.
2.
The operation clock (f
mode register mn (SMRmn).
R01UH0895EJ0100 Rev.1.00
Nov 29, 2019
) frequency of target channel} ÷ (SDRmn[15:9] + 1) ÷ 2 [bps]
MCK
When UART is used, the value of SDRmn[15:9] is the value of bits 15 to 9 of the SDRmn register
(0000010B to 1111111B) and therefore is 2 to 127.
m: Unit number (m = 0), n: Channel number (n = 0, 1), mn = 00, 01
) is determined by serial clock select register m (SPSm) and bit 15 (CKSmn) of serial
MCK
CHAPTER 11 SERIAL ARRAY UNIT
459

Advertisement

Table of Contents
loading

Table of Contents