Fujitsu F2MC-16LX Hardware Manual page 529

16-bit microcontroller mb90330 series
Hide thumbs Also See for F2MC-16LX:
Table of Contents

Advertisement

Communication procedure
Communications start at any timing from the transmitting side when transmit data is provided. On the
transmission side, load transmit data into the serial output data register 0 to 3 (SODR0 to SODR3) and set
the transmission enable bit (SCR0 to SCR3:TXE) in the serial control register to "1" to start transmission.
Figure 21.7-7 shows the example of transferring the receiving data to the sender to indicate that the data
was successfully sent. Upon the receipt of the sending data, the receiver periodically returns ANS (1 byte in
this example).
Figure 21.7-7 Flowchart for Bidirectional Communication
(Sender)
START
Operaiton mode setting
(either of 0 or 2)
Set 1 byte data to SODR
and communicate.
Reception data is
existant.
NO
Receive data reading
and processing
Data transfer
YES
Data transfer
(ANS)
(Receiver)
START
Operaiton mode setting
(tune to transfer side)
Reception data is
NO
existant.
YES
Reception data read
and process
1 byte data transfer
CHAPTER 21 UART
513

Advertisement

Table of Contents
loading

Table of Contents