English
Language : 

SH7615 Datasheet, PDF (666/925 Pages) Renesas Technology Corp – 32-Bit RISC Microcomputer SuperH RISC engine Family/SH7600 Series
Initialization
[1]
Start of transmission/
reception
Read TDFE flag in SC1SSR [2]
No
TDFE = 1?
Yes
Write transmit data
to SCFTDR and clear TDRE
flag to 0 in SC1SSR
[1] PFC initialization: Set the TxD and
RxD pins, and the SCK pin if
necessary, with the PFC.
[2] SCIF status check and transmit data
write: Read SC1SSR and check that
the TDFE flag is set to 1, then write
transmit data to SCFTDR and clear
the TDFE flag to 0. Transition of the
TDFE flag from 0 to 1 can also be
identified by a TXI interrupt.
[3] Receive error handling: If a receive
error occurs, read the ORER flag in
SC2SSR, and after performing the
appropriate error handling, clear the
ORER flag to 0.
Transmission/reception cannot be
resumed if the ORER flag is set to 1.
[4] SCIF status check and receive data
Read ORER flag in SC2SSR
read: Read SC1SSR and check that
the RDF flag is set to 1, then read
receive data from SCFRDR and
ORER = 1?
No
Yes
[3]
Error handling
clear the RDF flag to 0. Transition of
the RDF flag from 0 to 1 can also be
identified by an RXI interrupt.
[5] Serial transmission/reception
continuation procedure: To continue
Read RDF flag in SC1SSR
serial transmission/reception, finish
reading the RDF flag, reading
No
RDF = 1?
SCFRDR, and clearing the RDF flag
to 0, before the MSB (bit 7) of the
current frame is received. Also,
Yes
before the MSB (bit 7) of the current
frame is transmitted, read 1 from the
Read receive data
TDFE flag to confirm that writing is
from SCFRDR, and clear RDF [4]
possible, then write data to SCFTDR
flag to 0 in SC1SSR
and clear the TDFE flag to 0.
No
All data transferred?
[5]
Yes
Clear TE and RE bits to 0
in SCSCR
Note: When switching from transmitting
or receiving to simultaneous
transmitting and receiving, first
clear the TE bit and RE bit to 0,
then set the TE bit and RE bit to
1 simultaneously.
End of transmission/
reception
Figure 14.22 Sample Flowchart for Serial Data Transmission and Reception
Rev. 2.00, 03/05, page 628 of 884