BAT32G1x9 user manual | Chapter 19 Universal serial communication unit
598 / 1149
Rev.1.02
19.4.2
Case of stop operation by channel
Stop operation by channel through each of the register settings below.
Figure 19-21
Setting of each register during channel based stop operation
(a) Serial channel stop register
m(STm)...
This is the register that sets the allowed communication/stop count for each channel.
15 14 13 12
11
10 9 8 7 6 5 4 3 2 1 0
STm
1: Clear the
SEmn
bit
to "0"
and stop the communication operation
※
Because
the STmn
bit is the trigger bit, if
the SEmn
bit is
"0"
, the
STmn
bit
is cleared immediately.
(b) The serial channel enable status register
m(SEm)...
This register indicates the running or stopping state of data transmission and
reception for each channel.
15 14 13 12
11
10 9 8 7 6 5 4 3 2 1 0
SEm
0: Run stopped
※
The SEm
register is a read-only status register that stops running through the STm register. For
channels that have been stopped, the value of the CKOmn bit of the SOm register can be set by
software.
(c) The serial output enable register
m
(SOEm)...
This is the register that sets the output of serial communication that enable or stops
each channel.
15 14 13 12
11
10 9 8 7 6 5 4 3 2 1 0
SOEm
0: Stops the output by running through serial communication
※
For channels that have stopped serial output, the value of the SOMn bit of the SOm register can be set by software.
(d) Serial output register
m(SOm)...
This is the buffer register for the serial output of each channel.
15 14 13 12
11
10 9 8 7 6 5 4 3 2 1 0
SOm
1: The output value of the serial clock is
"1"1: The output value of the serial data is
"1"
※
When the corresponding pin of each channel is used as a port function, the corresponding
CKOmn
bit and
SOmn
position
"1"
must be used
.
Note is limited to Universal Serial Communication Unit
0.
Note 1.m: Unit number (m=0~2)n: Channel number (n=0~3).
2.
: Cannot be set
(set initial value). 0/1
: Set
"0"
or
"
1
"
according to the user's purpose.
0
0
0
0
0
0
0
0
0
0
0
0
STm3
note
0/1
STm2
note
0/1
STm1
0/1
STm0
0/1
0
0
0
0
0
0
0
0
0
0
0
0
SEm3
note
0/1
SEm2
note
0/1
Herselfm1
0/1
SEm0
0/1
0
0
0
0
0
0
0
0
0
0
0
0
SOEm3
note
0/1
SOEm2
note
0/1
SOEm1
0/1
SOEm0
0/1
0
0
0
0
CKOm3
Note
0/1
CKOm2
Note
0/1
CKOm1
0/1
CKOm0
0/1
0
0
0
0
SOm3
note
0/1
SOm2
note
0/1
SOm1
0/1
SOm0
0/1