English
Language : 

SH7720 Datasheet, PDF (1078/1524 Pages) Renesas Technology Corp – Renesas 32-Bit RISC Microcomputer SuperHTM RISC engine Family / SH7700 Series
Section 30 SIM Card Module (SIM)
(3) Serial Data Reception
An example of data receive processing in smart card mode is shown in figure 30.6.
Step (1) to step (6) of figure 30.6 correspond to the following operation.
1. Follow the initialization procedure above to initialize the smart card interface.
2. Confirm that the PER, ORER, and WAIT_ER flags in SCSSR are 0. If one of these flags is set,
after performing the prescribed receive error processing, clear the PER, ORER, and WAIT_ER
flags to 0.
3. Repeat steps (2) and (3) in the figure until it can be confirmed that the RDRF flag is set to 1.
4. Read received data from SCRDR.
5. When receiving data continuously, return to step (2).
6. When reception is ended, clear the RE bit to 0.
Interrupt processing can be performed in the above series of processing.
When the RIE bit is set to 1 and the EIO bit is cleared to 0 and if the RDRF flag is set to 1, a
receive data full interrupt (RXI) request is issued. If the RIE bit is set to 1, an error occurs during
reception, and either the ORER, PER, or WAIT_ER flag is set to 1, a transmit/receive error
interrupt (ERI) request is issued.
For details, refer to, Interrupt Operations in section 30.4.5, Data Transmit/Receive Operation.
If a parity error occurs during reception and the PER flag is set to 1, in T = 0 mode the received
data is not transferred to SCRDR, and so this data cannot be read. In T = 1 mode, received data is
transferred to SCRDR, and so this data can be read.
Rev. 3.00 Jan. 18, 2008 Page 1016 of 1458
REJ09B0033-0300