Renesas F-ZTAT H8 Series Hardware Manual page 541

Hide thumbs Also See for F-ZTAT H8 Series:
Table of Contents

Advertisement

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.
No
No
Start
Initialize
Start receiving
ORER = 0 and
PER = 0 ?
Yes
RDRF = 1 ?
Yes
Read RDR and clear RDRF
flag to 0 in SSR
All data received ?
Clear RE bit to 0
Figure 14.7 Receive Flowchart (Example)
Section 14 Smart Card Interface
No
Error handling
Rev. 3.00 Mar 21, 2006 page 513 of 814
REJ09B0302-0300

Advertisement

Table of Contents
loading

Table of Contents