English
Language : 

HD6473032F16 Datasheet, PDF (543/847 Pages) Renesas Technology Corp – Hardware Manual Renesas 16-Bit Single-Chip Microcomputer H8 Family/H8/300H Series
Section 14 Smart Card Interface
Receiving Serial Data: The receiving procedure in smart card mode is the same as the normal
SCI procedure. Figure 14.7 shows a flowchart for receiving.
1. Initialize the smart card interface by the procedure given in Initialization at the beginning of
this section.
2. Check that the ORER and PER error flags are cleared to 0 in SSR. If either flag is set, carry out
the necessary error handling, then clear both the ORER and PER flags to 0.
3. Check that the RDRF flag is set to 1. Repeat steps 2 and 3 until this check passes.
4. Read receive data from RDR.
5. To continue receiving data, clear the RDRF flag to 0 and return to step 2.
6. To terminate receiving, clear the RE bit to 0.
Start
Initialize
Start receiving
ORER = 0 and
No
PER = 0 ?
Yes
No
RDRF = 1 ?
Yes
Read RDR and clear RDRF
flag to 0 in SSR
No
All data received ?
Error handling
Clear RE bit to 0
Figure 14.7 Receive Flowchart (Example)
Rev. 3.00 Mar 21, 2006 page 513 of 814
REJ09B0302-0300