BAT32G1x9 user manual | Chapter 19 Universal serial communication unit
580 / 1149
Rev.1.02
Figure 19-8
Format of serial communication operation set register mn (SCRmn) (2/3).
After reset: 0087H
R/W
Symbol 15
14
13
12
11
10
9 8 7 6 5 4 3 2 1 0
SCRmn
PTCmn1
PTCmn0
The setting of the parity bit in UART mode
Send
reception
0
0
Parity bits are not output.
There is no parity at the time of
reception.
0
1
Output parity
note 4
.
Parity is not judged.
1
0
Output parity.
Judgment parity.
1
1
Output odd check.
Judgment oddity check.
In SSPI
mode and simple
I2C
mode,
both PTCmn1
bits and
PTCmn0
bits must be set to
"0".
DIRmn
Selection of data transfer sequences in
SSPI and UART modes
0
Perform MSB-first
input/output.
1
Perform LSB-first
input/output.
In simple
I2C
mode, the
DIRmn
must be positioned
"0".
SLCmn1
Note
1
SLCmn0
The setting of the stop bit in UART mode
0
0
No stop bit
0
1
Stop bit length = 1
bit
1
0
Stop bit length = 2
bits (mn
= 00,
02,
10,
20).
1
1
Disable settings.
If an end-of-transmit interrupt is selected, an interrupt occurs after all stop bits have been transmitted.
At UART
reception or in simple
I2C
mode, it must be set to
1
stop bit (SLCmn1,
SLCmn0=0,
1.) )
In SSPI
mode, it must be set to no stop bit (SLCmn1,
SLCmn0=0,
0).
When the UART
is transmitted, it must be set to
1
bit (SLCmn1,
SLCmn0=0,
1) or
2
bits (SLCmn1). ,
SLCmn0=1, 0)
。
Note 1
Limited to
SCR00,
SCR02,
SCR10
registers.
2. Limited to
SCR00
registers and
SCR01
registers, the other fixed as
"1".
3. Limited to
SCR20,
SCR21,
SCR30,
SCR31, other fixed as
"01".
3. Regardless of the content of the data, always append a
"0".
Note that bit3,
6,
and 11
must be
set
to "0"
(
SCR01, SCR03,
SCR11
must also be set
Bit5 of the register
is set to
"0"),
and
bit2
is set to
"1".
Remark m: unit number (m=0
~
2) n: channel number (n
~
3) p: SSPI number (p=00, 01, 10, 11, 20, 21, 3 0, 31)
q: UART number (q=0
~
3) r: IIC number (r=00, 01, 10, 11, 20, 21, 30, 31)
TXE
mn
RXE
mn
Dap
mn
CKP
mn
0
EOC
mn
PTC
mn1
PTC
mn0
You
mn
0
SLCm
n1
note1
SLC
mn0
DLSm
N3
note3
DLSm
N2
note3
DlSm
n1
note2
DLS
mn0