![Cmsemicon BAT32G1 9 Series Скачать руководство пользователя страница 578](http://html1.mh-extra.com/html/cmsemicon/bat32g1-9-series/bat32g1-9-series_user-manual_2627609578.webp)
BAT32G1x9 user manual | Chapter 19 Universal serial communication unit
578 / 1149
Rev.1.02
Figure 19-7
Format of serial mode register mn (SMRmn) (2/2).
After reset: 0020H
R/W
Symbol 15
14
13
12
11
10
9 8 7 6 5 4 3 2 1 0
SMRmn
SISmn0
Note
1
Channel n receives data in UART mode with
level inversion control
0
Detect the falling edge as the starting position.
The input communication data is not inverted.
1
Detects the rising edge as the starting bit.
Invert the input communication data.
MDmn2
MDmn1
Setting of channel n
operating mode
0
0
SSPI mode
0
1
UART mode
1
0
Simple I
2
C
mode
1
1
Disable settings.
MDmn0
Channel n
interrupt source selection
0
The end of transfer is interrupted
1
Buffer null interrupt
(Occurs when data is transferred from the SDRmn
register to the shift register).
On consecutive sends, if the MDmn0
bit is
"1"
and
the data for SDRmn
is empty, write down the next send
data.
Note 1
Limited to
SMR01,
SMR03,
SMR11,
registers.
Note that bit13~9, 7,
4
,
3
(SMR00, SMR02,
MUST BE APPLIED TO
BIT13,7,4,3
.)
The SMR10
register is
bit13~6,
4,
3)
set
"0"
and will bit5
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)
CKS
mn
CCS
mn
0
0
0
0
0
STSm
n
note1
0
SISmn
0
note1
1
0
0
MD
mn2
MD
mn1
MD
mn0