r5s77631ay266bgv Renesas Electronics Corporation., r5s77631ay266bgv Datasheet - Page 1173

no-image

r5s77631ay266bgv

Manufacturer Part Number
r5s77631ay266bgv
Description
Renesas 32-bit Risc Microcomputer Superhtm Risc Engine Family Sh-4a Series
Manufacturer
Renesas Electronics Corporation.
Datasheet
(4)
Figure 27.17 shows a sample flowchart for serial transmission.
Use the following procedure for serial data transmission after enabling the SCIF for transmission.
In serial transmission, the SCIF operates as described below.
1. When data is written into SCFTDR, the SCIF transfers the data from SCFTDR to SCTSR and
2. When data is transferred from SCFTDR to SCTSR and transmission is started, consecutive
starts transmitting. Confirm that the TDFE flag in SCFSR is set to 1 before writing transmit
data to SCFTDR. The number of data bytes that can be written is at least 64 (transmit trigger
setting).
transmit operations are performed until there is no transmit data left in SCFTDR. When the
number of transmit data bytes in SCFTDR falls to or below the transmit trigger number set in
Serial Data Transmission (Clocked Synchronous Mode)
Write transmit data to SCFTDR
Clear TE bit in SCSCR to 0
Read TEND flag in SCFSR
Read TDFE flag in SCFSR
TEND flag in SCFSR to 0
and clear TDFE flag and
Start of transmission
All data transmitted?
End of transmission
Figure 27.17 Sample Serial Transmission Flowchart
Initialization
TEND = 1?
TDFE = 1?
Yes
Yes
Yes
No
No
No
[1]
Section 27 Serial Communication Interface with FIFO (SCIF)
[2]
[3]
[1] SCIF initialization:
[2] SCIF status check and transmit data
[3] Serial transmission continuation
See sample SCIF initialization
flowchart in figure 27.16.
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.
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.
Rev. 1.00 Oct. 01, 2007 Page 1107 of 1956
REJ09B0256-0100

Related parts for r5s77631ay266bgv