English
Language : 

SH7760 Datasheet, PDF (678/1345 Pages) Renesas Technology Corp – SuperHTM RISC engine
(3) Serial data reception
An example of data reception processing in smart card mode is shown in figure 18.6.
Initialization
(1)
(1) Follow the procedure of item 1 in section 18.4.4,
and initialize the smart card interface.
Start reception
No
PER=0&&ORER=0
(2)
&&WAIT_ER=0?
Yes
(2) Confirm that the PER, ORER, and WAIT_ER flags
in SISSR are 0. If one of these flags is set, after
performing the prescribed reception error
processing, clear the PER, ORER, and WAIT_ER
flags to 0.
(3) Repeat (2) and (3) in the figure until it can be
confirmed that the RDRF flag is set to 1.
Error processing
No
(4) Read received data from SIRDR.
RDRF=1?
Yes
(3)
(5) When performing continuous data reception,
return to step (2).
(6) When reception is ended, clear the RE bit to 0.
Read received data from SIRDR
(4)
No
All data received?
(5)
Note: If during reception a parity error occurs and
PER is set to 1, in T=0 mode the received data
is not transferred to SIRDR, and so this data
cannot be read.
Yes
Clear RE bit in SISCR to 0
(6)
Reception end
Figure 18.6 Example of Reception Processing
Rev. 1.0,02/03, page 628 of 1294