CHAPTER 21 UART
I Communication procedure for two-way communication function
Communication is started by the sending side with an arbitrary timing when data for
transmission is ready.
The receiving side receives the transmission data and periodically returns ANS (in this example,
separately for each byte).
Figure 21.3-8 "Communication procedure for two-way communication function" illustrates the
procedure for communication with the two-way communication function.
Figure 21.3-8 Communication procedure for two-way communication function
(Transmission side)
Setting the operation mode (0 or 2)
Communication after storing 1-byte data in UODR
Reception data
NO
Reading and processing reception data
416
Start
available?
YES
(Transmission side)
Setting the operation mode
(Matching the setting of the
sending side setting)
Sending data
NO
Reading and processing reception data
Sending data
Sending 1-byte data
(ANS)
Reception data
available?
YES