BAT32G1x9 user manual | Chapter 19 Universal serial communication unit
583 / 1149
Rev.1.02
19.3.6
Serial data register mn(SDRmn) (SCI1/SCI2 i.e. m=1/2).
The SDRmn register is the data register (16-bit) that channel n sends and receives.
When the operation stops (SEmn=0), bit15~9 is used as a crossover setting register for the operating clock
(f
MCK
). During operation (SEmn=1) bit15~9 is used as a transmit and receive buffer register.
If the CCSmn position of the serial mode register mn (SMRmn) is "0", the bit15 to 9 of the SDRmn register is
used The divider clock of the operating clock (7 bits high) is used as the transmission clock.
The SIRmn register is set by means of a 16-bit memory operation instruction.
After generating the reset signal, the value of the SDRmn register changes to "0000H".
Figure 19-9
serial data register mn (SDRmn).
After reset: 0000H
R/W
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
SDRmn
SDRmn[15:9]
Run the transmit clock setting for clock
division
0
0
0
0
0
0
0
f
MCK
0
0
0
0
0
0
1
f
MCK
/2
0
0
0
0
0
1
0
f
MCK
/3
0
0
0
0
0
1
1
f
MCK
/4
•
•
•
•
•
•
•
•
1
1
1
1
1
1
0
f
MCK
/127
1
1
1
1
1
1
1
f
MCK
/128
Note 1
When the operation stops (SEmn=0), bit8~0 must be cleared to zero.
2. When using
UART, it is forbidden to
set
SDRmn [15:9]
to
"0000000B"
and
"0000001B".
3.
When using Simple
I2
C, setting
SDRmn[15:9]
to
"0000000B"
is prohibited and the setting value of
SDRmn[15:9]
must be greater than or equal
“0000001B”
。
4.
At run stop (SEmn=0), it is forbidden to
rewrite
SDRmn [7:0] via the
8-bit memory operation instruction
(otherwise,
SDRmn[15:9]
is all cleared
"0").
Note 1. The function of the SDRmn
register during operation, please refer to
".
2.m: unit number (m=1, 2) n: channel number (n=0, 1).