Renesas RL78/G1P Hardware User Manual page 454

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

Advertisement

RL78/G1P
(1) Register setting
Figure 11-100. Example of Contents of Registers for UART Transmission of UART (UART0) (1/2)
(a) Serial mode register mn (SMRmn)
15
14
SMRmn
CKSmn
CCSmn
0/1
0
Operation clock (f
0: Prescaler output clock CKm0 set by the SPSm register
1: Prescaler output clock CKm1 set by the SPSm register
(b) Serial communication operation setting register mn (SCRmn)
15
14
SCRmn
TXEmn
RXEmn
1
0
Setting of parity bit
00B: No parity
01B: Appending 0 parity
10B: Appending Even parity
11B: Appending Odd parity
(c) Serial data register mn (SDRmn) (lower 8 bits: TXDq)
15
14
SDRmn
(d) Serial output level register m (SOLm) ... Sets only the bits of the target channel.
15
14
SOLm
0
0
Note When UART0 performs 9-bit communication (by setting the DLS001 and DLS000 bits of the SCR00 register
to 1), bits 0 to 8 of the SDR00 register are used as the transmission data specification area.
Remarks 1. m: Unit number (m = 0), n: Channel number (n = 0), q: UART number (q = 0), mn = 00
2.
: Setting is fixed in the UART transmission mode,
×: Bit that cannot be used in this mode (set to the initial value when not used in any mode)
0/1: Set to 0 or 1 depending on the usage of the user
R01UH0895EJ0100 Rev.1.00
Nov 29, 2019
13
12
11
10
0
0
0
0
) of channel n
MCK
13
12
11
10
DAPmn
CKPmn
EOCmn
PTCmn1
0
0
0
0
Selection of data transfer sequence
0: Inputs/outputs data with MSB first
1: Inputs/outputs data with LSB first.
13
12
11
10
Baud rate setting
13
12
11
10
0
0
0
0
9
8
7
6
0
0
0
0
9
8
7
6
PTCmn0
DIRmn
SLCmn1
0/1
0/1
0/1
0
0/1
9
8
7
6
0
Note
9
8
7
6
0
0
0
0
0: Non-reverse (normal) transmission
1: Reverse transmission
: Setting disabled (set to the initial value)
CHAPTER 11 SERIAL ARRAY UNIT
5
4
3
2
1
MDmn1
1
0
0
0
1
Interrupt source of channel n
0: Transfer end interrupt
1: Buffer empty interrupt
5
4
3
2
1
SLCmn0
DLSmn1
0/1
0
1
0/1
Setting of stop bit
01B: Appending 1 bit
10B: Appending 2 bits
5
4
3
2
1
Transmit data setting
TXDq
5
4
3
2
1
0
0
0
0
0
0
MDmn0
0/1
0
DLSmn0
0/1
0
0
SOLm0
0/1
435

Advertisement

Table of Contents
loading

Table of Contents