CMS32L051 User Manual |Chapter 12 Universal Serial Communication Unit
www.mcu.com.cn 447 / 703
Figure 12-121 Flowchart of the address segment transmission
address field transmit
set SOmn bit to '0'.
wait
address field transmission
completed?
Please refer to the previous flow chart of
initial settings
set SOmn bit to '0'.
initial configuration
write '0' to CKOmn bit
write '1' to SOEmn bit
write '1' to SSmn bit
write address and R/W data
to SIOr(SDRmn[7:0])
interrupt occurred for
transmit completion?
Yes
No
ACK acknowledged?
Yes
communication error
handling
No
confirm slave device Ack acknowledgement
via PEFmn bit. If it is ACK (PEFmn=0), then
enter into next process step; if is NACK(
PEFmn=1), then enter into error handling.
wait for address field transmission completion
(clear interrupt request flag)
transmit address field
set to serial operation enable state.
ensure SCL signal hold time
let SCL signal falls, prepare to communicate
allow serial output
generate start condition
data transmission flow, data
reception flow