English
Language : 

SH7261 Datasheet, PDF (755/1348 Pages) Renesas Technology Corp – 32-Bit RISC Microcomputer SuperHTM RISC engine Family / SH7260 Series
Section 16 Serial Communication Interface with FIFO (SCIF)
Error handling
No
ORER = 1?
Yes
Overrun error handling
Clear ORER flag in SCLSR to 0
End
Figure 16.14 Sample Flowchart for Receiving Serial Data (2)
In serial reception, the SCIF operates as described below.
1. The SCIF synchronizes with serial clock input or output and starts the reception.
2. Receive data is shifted into SCRSR in order from the LSB to the MSB. After receiving the
data, the SCIF checks the receive data can be loaded from SCRSR into SCFRDR or not. If this
check is passed, the RDF flag is set to 1 and the SCIF stores the received data in SCFRDR. If
the check is not passed (overrun error is detected), further reception is prevented.
3. After setting RDF to 1, if the receive-data-full interrupt enable bit (RIE) is set to 1 in SCSCR,
the SCIF requests a receive-data-full interrupt (RXI). If the ORER bit is set to 1 and the
receive-data-full interrupt enable bit (RIE) or the receive error interrupt enable bit (REIE) in
SCSCR is also set to 1, the SCIF requests a break interrupt (BRI).
Figure 16.15 shows an example of SCIF receive operation.
Serial clock
Serial data
LSB
Bit 7 Bit 0
MSB
Bit 7 Bit 0 Bit 1
Bit 6 Bit 7
RDF
ORER
RXI
Data read from SCFRDR and
interrupt RDF flag cleared to 0 by RXI
request interrupt handler
One frame
RXI
interrupt
request
BRI interrupt request
by overrun error
Figure 16.15 Example of SCIF Receive Operation
Rev. 2.00 Sep. 07, 2007 Page 723 of 1312
REJ09B0320-0200