BAT32G1x9 user manual | Chapter 19 Universal serial communication unit
720 / 1149
Rev.1.02
(2) Process flow
Figure 19-122 Timing diagram of data transmission
shift register mn
SDAr input
SDAr output
SDLr output
shift operation
transmit data 1
Figure 19-123 Flowchart of data transmission
data transmission starts
data transmission ends?
Write data to SIOr(SDRmn[7:0])
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 transmission completes (clear
interrupt request flag)
generate stop condition
address field transmit
completes.
start transmitting via writing data.
does transmission
completion interrupt occur?
data transmission
completes?
Yes
Yes
No