Datasheet
Section 16 Serial Communication Interface with FIFO (SCIF)
Rev. 3.00 Sep. 28, 2009 Page 495 of 910
REJ09B0350-0300
(3) Data Transmission
Figure 16.8 shows an example of the data transmission flowchart.
Read CTS flag in FMSR
Read THRE flag in FLSR
i
← 0
i ← i + 1
Write transmit data to transmit FIFO
CTS = 1
THRE = 1
Yes
No
No
No No
Yes
Yes
(End of transmission or transmission standby)
Yes
Transmission/reception standby
[1]
[2]
[3]
[4]
[1] Confirm that the CTS flag in FMSR is 1.
[2] Confirm that the THRE flag in FLSR is 1 to
ensure that the transmit FIFO is empty.
[3] Write up to 16 bytes of transmit data in the
transmit FIFO. If the transmit data is 17 bytes
or more, return to step [2] to write transmit
data in the transmit FIFO again.
[4] When all of the data has been written, go
to the transmission/reception standby flow.
i < 16?
All data written
Figure 16.8 Example of Data Transmission Flowchart