EasyManua.ls Logo

Renesas HD6417641 - Figure 19.13 Sample Flowchart for Transmitting Serial Data

Renesas HD6417641
1036 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Section 19 Serial Communication Interface with FIFO (SCIF)
Rev. 4.00 Sep. 14, 2005 Page 736 of 982
REJ09B0023-0400
Transmitting Serial Data (Synchronous Mode)
Figure 19.13 shows a sample flowchart for transmitting serial data.
Use the following procedure for serial data transmission after enabling the SCIF for transmission.
Start of transmission
Read TDFE flag in SCFSR
TDFE = 1?
Write transmit data to SCFTDR
and clear TDFE flag
in SCFSR to 0
All data transmitted?
Read TEND flag in SCFSR
TEND = 1?
Clear TE bit in SCSCR to 0
End of transmission
No
Yes
No
Yes
No
Yes
[1] SCIF status check and transmit data
write:
Read SCFSR and check that the
TDFE flag is set to 1, then write
transmit data to SCFTDR, and clear
the TDFE flag to 0. The transition of
the TDFE flag from 0 to 1 can also be
identified by a TXI interrupt.
[2] Serial transmission continuation
procedeure:
To continue serial transmission, read
1 from the TDFE flag to confirm that
writing is possible, them write data to
SCFTDR, and then clear the TDFE
flag to 0.
[1]
[2]
Figure 19.13 Sample Flowchart for Transmitting Serial Data

Table of Contents

Related product manuals