Renesas rl78 User Manual

Page of 1004
 
RL78/G1A 
 
CHAPTER  12   SERIAL  ARRAY  UNIT 
R01UH0305EJ0200  Rev.2.00 
 
 
415  
Jul 04, 2013 
Figure 12-7.  Format of Serial Communication Operation Setting Register mn (SCRmn) (2/2) 
 
Address:  F0118H, F0119H (SCR00) to F011EH, F011FH (SCR03),      After reset: 0087H     R/W 
 
F0158H, F0159H (SCR10), F015AH, F015BH (SCR11)
Note 1
 
Symbol 15 
14 
13
12 
11 
10
9 8 7 6 5 4 3 2 1 0 
SCRmn 
TXE
mn 
RXE
mn 
DAP
mn
CKP
mn 
EOC
mn
PTC
mn1
PTC
mn0
DIR
mn
SLCm
n1
Note 2
SLC
mn0
0 1 
DLSm
n1
Note 3
DLS
mn0
 
Setting of parity bit in UART mode 
PTC
mn1 
PTC
mn0 
Transmission Reception 
Does not output the parity bit. 
Receives without parity 
Outputs 0 parity
Note 4
No parity judgment 
Outputs even parity. 
Judged as even parity. 
Outputs odd parity. 
Judges as odd parity. 
Be sure to set PTCmn1, PTCmn0 = 0, 0 in the CSI mode and simplified I
2
C mode. 
 
DIR
mn 
Selection of data transfer sequence in CSI and UART modes 
Inputs/outputs data with MSB first. 
Inputs/outputs data with LSB first. 
Be sure to clear DIRmn = 0 in the simplified I
2
C mode. 
 
SLCm
n1
Note 2
 
SLC
mn0 
Setting of stop bit in UART mode 
No stop bit 
Stop bit length = 1 bit 
Stop bit length = 2 bits (mn = 00, 02, 10 only) 
1 1 
Setting 
prohibited 
When the transfer end interrupt is selected, the interrupt is generated when all stop bits have been completely 
transferred. 
Set 1 bit (SLCmn1, SLCmn0 = 0, 1) during UART reception and in the simplified I
2
C mode. 
Set no stop bit (SLCmn1, SLCmn0 = 0, 0) in the CSI mode. 
Set 1 bit (SLCmn1, SLCmn0 = 0, 1) or 2 bits (SLCmn1, SLCmn0 = 1, 0) during UART transmission. 
 
DLSm
n1
Note 3
 
DLS
mn0 
Setting of data length in CSI and UART modes 
9-bit data length (stored in bits 0 to 8 of the SDRmn register) (settable in UART mode only) 
7-bit data length (stored in bits 0 to 6 of the SDRmn register) 
8-bit data length (stored in bits 0 to 7 of the SDRmn register) 
Other than above  Setting prohibited 
Be sure to set DLSmn1, DLSmn0 = 1, 1 in the simplified I
2
C mode. 
 
Notes 1.  SCR00 to SCR03: All products 
 
 
SCR10, SCR11: 32, 48, and 64-pin products 
 
2.  The SCR00, SCR02, and SCR10 registers only. 
 
3.  The SCR00 and SCR01 registers only.  Others are fixed to 1. 
 
4.  0 is always added regardless of the data contents. 
 
(Caution and remark are listed on the next page.) 
<R>