English
Language : 

SH7125 Datasheet, PDF (479/782 Pages) Renesas Technology Corp – Renesas 32-Bit RISC Microcomputer
Section 12 Serial Communication Interface (SCI)
Receiving Serial Data (Clock Synchronous Mode): Figure 12.12 shows a sample flowchart for
receiving serial data. Use the following procedure for serial data reception after enabling the SCIF
for reception.
When switching from asynchronous mode to clock synchronous mode, make sure that the ORER,
PER, and FER flags are all cleared to 0. If the FER or PER flag is set to 1, the RDRF flag will not
be set and data reception cannot be started.
Start of reception
Read ORER flag in SCSSR
ORER = 1?
Yes
No
Error handling
Read RDRF flag in SCSSR
No
RDRF = 1?
Yes
Read receive data in SCRDR,
and clear RDRF flag
in SCSSR to 0
No
All data received?
Yes
Clear RE bit in SCSCR to 0
[1] Receive error handling:
Read the ORER flag in SCSSR to
identify any error, perform the appropriate
error handling, then clear the ORER flag
to 0. Reception cannot be resumed while
the ORER flag is set to 1.
[2] SCI status check and receive data read:
Read SCSSR and check that RDRF = 1,
then read the receive data in SCRDR,
and clear the RDRF flag to 0. The
transition of the RDRF flag from 0 to 1
can also be identified by an RXI interrupt.
[3] Serial reception continuation procedure:
To continue serial reception, read the
receive data register (SCRDR) and clear
the RDRF flag to 0 before the MSB (bit 7)
of the current frame is received.
End of reception
Figure 12.12 Sample Flowchart for Receiving Serial Data (1)
Rev. 3.00 Sep. 27, 2007 Page 459 of 758
REJ09B0243-0300