English
Language : 

HD6413008VF25 Datasheet, PDF (405/688 Pages) Renesas Technology Corp – Old Company Name in Catalogs and Other Documents
12. Serial Communication Interface
• Receiving Serial Data (Asynchronous Mode): Figure 12.7 shows a sample flowchart for
receiving serial data and indicates the procedure to follow.
Initialize
Start receiving
(1)
(1) SCI initialization:
the receive data input function of the RxD
pin is selected automatically.
(2)(3) Receive error handling and break detection:
Read ORER, PER, and FER (2)
flags in SSR
if a receive error occurs, read the ORER,
PER, and FER flags in SSR to identify the
error. After executing the necessary error
handling, clear the ORER, PER, and FER
PER∨FER∨OPER = 1
Yes
flags all to 0. Receiving cannot resume if
any of these flags remains set to 1. When a
(3)
framing error occurs, the RxD pin can be
No
Error handling
read to detect the break state.
(continued on next page)
Read RDRF flag in SSR
(4)
No
RDRF = 1
Yes
Read receive data from RDR, and
clear RDRF flag to 0 in SSR
(4) SCI status check and receive data read:
read SSR, check that the RDRF flag is set
to 1, then read receive data from RDR and
clear the RDRF flag to 0. Notification that
the RDRF flag has changed from 0 to 1 can
also be given by the RXI interrupt.
(5) To continue receiving serial data:
check the RDRF flag, read RDR, and clear
the RDRF flag to 0 before the stop bit of the
current frame is received.
No
All data received?
(5)
Yes
Clear RE bit to 0 in SCR
<End>
Figure 12.7 Sample Flowchart for Receiving Serial Data (1)
Rev.4.00 Aug. 20, 2007 Page 359 of 638
REJ09B0395-0400