English
Language : 

SH7125 Datasheet, PDF (471/782 Pages) Renesas Technology Corp – Renesas 32-Bit RISC Microcomputer
Section 12 Serial Communication Interface (SCI)
Receiving Serial Data (Asynchronous Mode):
Figure 12.6 shows a sample flowchart for serial reception.
Use the following procedure for serial data reception after enabling the SCI for reception.
Start of reception
[1] Receive error handling and break
detection:
Read ORER, PER, and FER
flags in SCSSR
PER, FER, or ORER = 1?
Yes
No
Error handling
If a receive error occurs, read the ORER,
PER, and FER flags in SCSSR to identify
the error. After performing the
appropriate error processing, ensure that
the ORER, PER, and FER flags are all
cleared to 0. Reception cannot be
resumed if any of these flags are set to 1.
In the case of a framing error, a break
can also be detected by reading the
value of the RXD pin.
Read RDRF flag in SCSSR
No
RDRF = 1?
Yes
Read receive data in
SCRDR, and clear RDRF
flag in SCSSR to 0
[2] SCI status check and receive data read:
Read SCSSR and check that RDRF = 1,
then read the receive data in SCRDR
clear the RDRF flag to 0.
[3] Serial reception continuation procedure:
To continue serial reception, clear the
RDRF flag to 0 before the stop bit for the
current frame is received.
No
All data received?
Yes
Clear RE bit in SCSCR to 0
End of reception
Figure 12.6 Sample Flowchart for Receiving Serial Data
Rev. 3.00 Sep. 27, 2007 Page 451 of 758
REJ09B0243-0300