CMS32L051 User Manual |Chapter 12 Universal Serial Communication Unit
www.mcu.com.cn 327 / 703
12.4.2 Stopping the operation by channels
Stop-operation by channel is set by each of the following registers.
Figure 12-22 Setting of each register when stopping the operation by channels
(a) Serial channel stop register m (STm)... This is the register that sets the communication/stop count allowed 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 0 and stop the communication operation
※Because the STmn bit is the trigger bit, the STmn bit is immediately cleared if the SEmn bit is 0.
(b) The serial channel allows status register m (SEm)... This register represents the running or stopped 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
STm
0: Running stop state
※ The SEm register is a read-only status register that stops operation through the STm register.
For channels that have stopped running, the value of the CKOmn bit of the SOm register can be
set by software.
(c) The serial output allows register m (SOEm)... This is the register that sets the serial communication output that allows 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 the 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
As
1: The output value of the serial clock is 11: the output value of the serial data is 1
※When using the corresponding pin for each channel as a port function, the corresponding CKOmn bit and SOmn bit must be
set to "1".
Note Limited to universal serial communication unit 0 only.
Note 1.m: Unit number (m=0, 1) 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.