RL78/G1P
CHAPTER 11 SERIAL ARRAY UNIT
R01UH0895EJ0100 Rev.1.00
445
Nov 29, 2019
(1) Register setting
Figure 11-108. Example of Contents of Registers for UART Reception of UART (UART0) (1/2)
(a) Serial mode register mn (SMRmn)
15
14
13
12
11
10 9 8 7 6 5 4 3 2 1 0
SMRmn
CKSmn
0/1
CCSmn
0
0
0
0
0
0
STSmn
1
0
SISmn0
0/1
1
0
0
0
MDmn1
1
MDmn0
0
Operation clock (f
MCK
) of channel n
0: Prescaler output clock CKm0
set by the SPSm register
1: Prescaler output clock CKm1
set by the SPSm register
0: Normal reception
1: Reverse reception
Operation mode of channel n
0: Transfer end interrupt
(b) Serial mode register mr (SMRmr)
15
14
13
12
11
10 9 8 7 6 5 4 3 2 1 0
SMRmr
CKSmr
0/1
CCSmr
0
0
0
0
0
0
0
0
0
1
0
0
MDmr2
0
MDmr1
1
MDmr0
0/1
Same setting value as CKSmn bit
Operation mode of channel r
0: Transfer end interrupt
1: Buffer empty interrupt
(c) Serial communication operation setting register mn (SCRmn)
15
14
13
12
11
10 9 8 7 6 5 4 3 2 1 0
SCRmn
TXEmn
0
RXEmn
1
DAPmn
0
CKPmn
0
0
EOCmn
0/1
PTCmn1
0/1
PTCmn0
0/1
DIRmn
0/1
0
SLCmn1
0
SLCmn0
1
0
1
DLSmn1
0/1
DLSmn0
0/1
Setting of parity bit
00B: No parity
check
Selection of data transfer sequence
0: Inputs/outputs data with MSB first
1: Inputs/outputs data with LSB first.
Setting of data length
01B: No parity judgment
10B: Even parity check
11B: Odd parity check
(d) Serial data register mn (SDRmn) (lower 8 bits: RXDq)
15
14
13
12
11
10 9 8 7 6 5 4 3 2 1 0
SDRmn
Baud rate setting
0
Note
Receive data register
Note
When UART performs 9-bit communication, bits 0 to 8 of the SDRm1 register are used as the reception
data specification area.
Caution For the UART reception, be sure to set the SMRmr register of channel r to UART transmission
mode that is to be paired with channel n.
Remarks 1.
m: Unit number (m = 0), n: Channel number (n = 1), mn = 01
r: Channel number (r = 0), q: UART number (q = 0)
2.
: Setting is fixed in the UART reception mode, : Setting disabled (set to the initial value)
×
: 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
RXDq