
BAT32G1x9 user manual | Chapter 19 Universal serial communication unit
591 / 1149
Rev.1.02
19.3.13
Serial output register m(SOm).
SOm registers are buffer registers for the serial output of each channel.
Outputs the value of the SOmn bit of this register from the serial data output pin of channel n.
Outputs the value of the CKOmn bit of this register from the serial clock output pin of channel n.
The SoOmn bit of this register can only be rewritten by software when serial output is disabled (SOEmn=0).
When serial output (SOEmn=1) is allowed, the value of the SOmn bit of this register can only be changed by
serial communication by software overriding.
The CKOmn bit of this register can only be rewritten by software when the channel is stopped (SEmn=0).
When allowing the channel to run (SEmn=1), the value of the CKOmn bit of this register can only be changed
by serial communication by software overrides.
To use the pins of a serial interface as a non-serial interface function such as a port function, the
corresponding CKOmn bit and SOmn position "1" must be placed.
The SOm registers are set via 16-bit memory operation instructions.
After generating a reset signal, the value of the SOm register changes to "0F0FH".
Figure 19-16
the format of serial output register m(SOm).
After reset: 0F0FH
R/W
Symbol 15
14
13
12
11
10
9 8 7 6 5 4 3 2 1 0
SO0
After reset: 0303HR/W
Symbol 15
14
13
12
11
10
9 8 7 6 5 4 3 2 1 0
SO1
After reset: 0303HR/W
Symbol 15
14
13
12
11
10
9 8 7 6 5 4 3 2 1 0
SO2
CKO
mn
Serial clock output for channel n
0
The output value of the serial clock is "0".
1
The output value of the serial clock is "1".
SO
mn
Serial data output for channel n
0
The output value of the serial data is "0".
1
The output value of the serial data is "1".
Note that the SO0
registers
must be
set
to
"0"
for
bit15~12
and
bit7~4.
The BIT15~10
and
bit7
~
2
of the
SO1 register must be
placed with
"0".
The SO2
registers must
be
set
to
bit15
to
10
and
bit7
to
2
to "0".
Note m: Unit number (m=0~2) n: Channel number (n=0~3).
0
0
0
0
CKO
03
CKO
02
CKO
01
CKO
00
0
0
0
0
SO
03
SO
02
SO
01
SO
00
0
0
0
0
0
0
CKO
11
CKO
10
0
0
0
0
0
0
SO
11
SO
10
0
0
0
0
0
0
CKO
21
CKO
20
0
0
0
0
0
0
SO
21
SO
20