English
Language : 

HD6413007F20 Datasheet, PDF (508/798 Pages) Renesas Technology Corp – Hardware Manual Renesas 16-Bit Single-Chip Microcomputer H8 Family/H8/300H Series
13. Serial Communication Interface
(3)
Error handling
Overrun error handling
Clear ORER flag to 0 in SSR
<End>
Figure 13.18 Sample Flowchart for Serial Receiving (2)
In receiving, the SCI operates as follows:
• The SCI synchronizes with the serial clock input or output and performs receive operation.
• Receive data is stored in RSR in order from LSB to MSB.
After receiving the data, the SCI checks that the RDRF flag is 0, so that receive data can be
transferred from RSR to RDR. If this check passes, the RDRF flag is set to 1 and the received
data is stored in RDR. If the checks fails (receive error), the SCI operates as shown in table
13.11.
When a receive error has been identified in the error check, subsequent transmit and receive
operations are disabled.
• When the RDRF flag is set to 1, if the RIE bit is set to 1 in SCR, a receive-data-full interrupt
(RXI) is requested. If the ORER flag is set to 1 and the RIE bit in SCR is also set to 1, a
receive-error interrupt (ERI) is requested.
Figure 13.19 shows an example of SCI receive operation.
Rev.5.00 Sep. 12, 2007 Page 478 of 764
REJ09B0396-0500