English
Language : 

HD6413008VF25 Datasheet, PDF (448/688 Pages) Renesas Technology Corp – Old Company Name in Catalogs and Other Documents
13. Smart Card Interface
Receiving Serial Data: Data reception in smart card mode uses the same processing procedure as
for the normal SCI. Figure 13.8 shows a sample reception processing flowchart.
1. Perform smart card interface mode initialization as described in Initialization above.
2. Check that the ORER flag and PER flag are cleared to 0 in SSR. If either is set, perform the
appropriate receive error handling, then clear both the ORER and the PER flag to 0.
3. Repeat steps 2 and 3 until it can be confirmed that the RDRF flag is set to 1.
4. Read the receive data from RDR.
5. To continue receiving data, clear the RDRF flag to 0 and go back to step 2.
6. To end reception, clear the RE bit to 0.
Start
Initialization
Start receiving
ORER = 0
No
and PER = 0?
Yes
No
RDRF = 1?
Yes
Read RDR and clear
RDRF flag to 0 in SSR
Error handling
No
All data received?
Yes
Clear RE bit to 0
Figure 13.8 Sample Reception Processing Flowchart
The above procedure may include interrupt handling.
Rev.4.00 Aug. 20, 2007 Page 402 of 638
REJ09B0395-0400