English
Language : 

SH7280 Datasheet, PDF (831/1726 Pages) Renesas Technology Corp – Renesas 32-Bit RISC Microcomputer SuperHTM RISC engine family
Section 16 Serial Communication Interface (SCI)
• Receiving Serial Data (Clock Synchronous Mode)
Figure 16.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
[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:
No
Error handling
Read RDRF flag in SCSMR
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.
No
RDRF = 1?
Yes
Set the CKE1 and CKE0 bits
in SCSCR
(TE and RE bits are 0)
No
All data received?
[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. The
RDRF flag is cleared automatically when
the data transfer controller (DTC) is
activated by a receive-data-full interrupt
(RXI) request to read the SCRDR value,
and this step is not needed.
Yes
Clear RE bit in SCSCR to 0
End of reception
Figure 16.12 Sample Flowchart for Receiving Serial Data (1)
Rev. 1.00 Jun. 26, 2008 Page 801 of 1692
REJ09B0393-0100