BAT32G1x9 user manual | Chapter 19 Universal serial communication unit
581 / 1149
Rev.1.02
Figure 19-8
Serial communication runs the format of the set register mn (SCRmn) (3/3).
After reset: 0087H
R/W
Symbol 15
14
13
12
11
10
9 8 7 6 5 4 3 2 1 0
SCRmn
DLS
mn3
DLS
mn2
DLS
mn1
DLS
mn0
The setting of the data length
Serial function
correspondence
SSPI
UART
IIC
0
1
1
0
7 bits of data length (bit0 to 6 stored in the SDRmn register).
〇
〇
╳
0
1
1
1
8 bits of data length (bit0 to 7 saved in the SDRmn register).
〇
〇
〇
1
0
0
0
9 bits of data length (bit0 to 8 saved in the SDRmn register).
〇
〇
╳
1
0
0
1
10 bits of data length (bit0 to 9 saved in the SDRmn
register).
〇
╳
╳
1
0
1
0
11 bits of data length (bit0 to 10 stored in the SDRmn
register).
〇
╳
╳
1
0
1
1
12-bit data length (bit0 to 11 stored in the SDRmn register).
〇
╳
╳
1
1
0
0
13 bits of data length (bit0 to 12 saved in the SDRmn
register).
〇
╳
╳
1
1
0
1
14-bit data length (bit0 to 13 stored in the SDRmn register).
〇
╳
╳
1
1
1
0
15 bits of data length (bit0 to 14 saved in the SDRmn
register).
〇
╳
╳
1
1
1
1
16-bit data length (bit0 to 15 stored in the SDRmn register).
〇
〇
╳
other
Prohibit settings.
In the simple
I2C
mode
,
DLSmn3~
DLSmn0
=
0111B must be set.
Note 1
Limited to
SCR00,
SCR10,
SCR20
registers only.
2. Limited to
SCR00
registers and
SCR01
registers, the other fixed as
"1".
3. Limited to
SCR20,
SCR21,
SCR30,
SCR31, other fixed as
"01".
Note that bit3,
6,
and 11
must be
set
to "0"
(
SCR01, SCR03,
SCR11
must also be set
,
bit5
of the
SCR21
register
is set to
"0"),
and
bit2
is set to
"1"
。
Remark
m: unit number (m=0
~
2) n: channel number (n=0
~
3) p: SSPI number (p=00, 01, 10, 11, 20, 21, 30, 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
Dls
mn3
Note
3
Dls
mn2
Note
3
DLSm
n1
note2
DLS
mn0