English
Language : 

HD64F3039F18 Datasheet, PDF (434/710 Pages) Renesas Technology Corp – Renesas 16-Bit Single-Chip Microcomputer H8 Family / H8/300H Series
Section 12 Smart Card Interface
Mode Switching Operation
When switching from receive mode to transmit mode, first confirm that the receive operation has
been completed, then start from initialization, clearing RE bit to 0 and setting TE bit to 1. The
RDRF flag or the PER and ORER flags can be used to check that the receive operation has been
completed.
When switching from transmit mode to receive mode, first confirm that the transmit operation has
been completed, then start from initialization, clearing TE bit to 0 and setting RE bit to 1. The
TEND flag can be used to check that the transmit operation has been completed.
Interrupt Operation
There are three interrupt sources in smart card interface mode: transmit data empty interrupt (TXI)
requests, transfer error interrupt (ERI) requests, and receive data full interrupt (RXI) requests. The
transmit end interrupt (TEI) request is not used in this mode.
When the TEND flag in SSR is set to 1, a TXI interrupt request is generated.
When the RDRF flag in SSR is set to 1, an RXI interrupt request is generated.
When any of flags ORER, PER, and ERS in SSR is set to 1, an ERI interrupt request is generated.
The relationship between the operating states and interrupt sources is shown in table 12.8.
Table 12.8 Smart Card Mode Operating States and Interrupt Sources
Operating State
Transmit Mode
Receive Mode
Normal operation
Error
Normal operation
Error
Flag
TEND
ERS
RDRF
PER, ORER
Mask Bit
TIE
RIE
RIE
RIE
Interrupt Source
TXI
ERI
RXI
ERI
Rev.3.00 Mar. 26, 2007 Page 410 of 682
REJ09B0353-0300