EasyManua.ls Logo

Cmsemicon CMS32L051 - Page 396

Default Icon
703 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
V1.2.2
CMS32L051 User Manual |Chapter 12 Universal Serial Communication Unit
www.mcu.com.cn 396 / 703
(2) Operation Steps
Figure 12-82 Initial setup step of slave reception
initial configuration starts
configure PER0 register
configure SPSm register
configure SMRmn register
configure SCRmn register
configure SDRmn register
configure port
write into SSm register
initial configuration completes
release universal serial communication unit
from reset state, start providing clock.
configure operational clock
configure operational mode..etc.
configure communication format
set baud rate (bit15~9) to "0000000B"
via Configure port register and port mode
register, set data output of target channel to
valid.
set SSmn bit of target channel to "1"
(Semn=1, configure as operation enable
state)
wait for master device clock.
write into ISC register
set SSIE00 bit to 1, enable channel 0 slave
selection function operates.
Figure 12-83 Stop step of slave receiving
termination configuration
starts
TSFmn = 0
write into STm register
modify SOm register
configuration
configure PER0 register
termination configuration
ends.
Yes
No
if there are ongoing data transmission,
then wait till transmission completed. (if
need urgent stop, then no need to wait).
set STmm bit of target channel to 1.
(SEmn=0: set to operation stop state).
set SOEmn bit to 0, stop output of target
channel
stop clock of universal serial communication
unit, set to reset state
finish termination configuration, enter into
next processing.
(selection)
(mandatory)
(mandatory)
(selection)
Remark m: Unit number (m=0) n: Channel number (n=0) p: SSPI number (p=00)

Table of Contents

Related product manuals