![Cmsemicon BAT32G1 9 Series Скачать руководство пользователя страница 642](http://html1.mh-extra.com/html/cmsemicon/bat32g1-9-series/bat32g1-9-series_user-manual_2627609642.webp)
BAT32G1x9 user manual | Chapter 19 Universal serial communication unit
642 / 1149
Rev.1.02
Figure 19-63
restarts the setup steps for Slave sending and receiving
restart configuration starts.
master device
preparation complete?
port operation
modify SPSm register
configuration
Yes
No
wait till commuication target (master device)
stops or communication ends
via Configure port register and port mode
register, set clock output of target channel to
invalid.
re-configure when modifing operational clock
configuration
re-configure when serial mode register mn.
re-configure when serial communication
operation configuration register mn.
modify SMRmn register
configuration
modify SCRmn register
configuration
modify SOEm register
configuration
modify SOm register
configuration
modify SOEm register
configuration
port operation
write into SSm register
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).
restart configuration
completes.
set SOEmn bit to "0", stop output of target
channel
set SOEmn bit to "0", stop output of target
channel
set SOEmn bit to 1, enable target channel
data otuput
clear error flag
when OVF flag remains at set state, erase via
serail flag clear trigger register mn(SIRmn).
start communication
configure transmit data to SIOp register(bit
7~0 of register SDRmn), wait for master
device clock.
(mandatory)
(mandatory)
(selection)
(selection)
(selection)
(selection)
(selection)
(selection)
(mandatory)
(selection)
(mandatory)
(mandatory)
Note 1
Before the master device can start outputting the clock, data must be sent to
the SIOp
register settings.
2. If PER0 is rewritten in the abort setting
to stop providing the clock, it is necessary to make the initial setting
instead of restarting the setting when the communication object (the master device) stops or after the
communication ends.