Datasheet
Section 15 Smart Card Interface
Rev.6.00 Sep. 27, 2007 Page 690 of 1268
REJ09B0220-0600
Serial Data Reception (Except Block Transfer Mode): Data reception in smart card mode uses
the same processing procedure as for the normal SCI. Figure 15.7 shows an example of the
transmission processing flow.
[1] Perform smart card interface mode initialization as described above in Initialization.
[2] Check that the ORER flag and PER flag in SSR are cleared to 0. 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] When receiving data continuously, clear the RDRF flag to 0 and go back to step [2].
[6] To end reception, clear the RE bit to 0.
Initialization
Read RDR and clear
RDRF flag in SSR to 0
Clear RE bit to 0
Start of reception
Start
Error handling
No
No
No
Yes
Yes
ORER = 0 and
PER = 0?
RDRF = 1?
All data received?
Yes
Figure 15.7 Sample Reception Flowchart