ST7SCR
12.4 SMARTCARD INTERFACE (CRD)
12.4.1 Introduction
The Smartcard Interface (CRD) provides all the re-
quired signals for acting as a smartcard interface
device.
The interface is electrically compatible with (and
certifiable to) the ISO7816, EMV, GSM and WHQL
standards.
Both synchronous (e.g. memory cards) and asyn-
chronous smartcards (e.g. microprocessor cards)
are supported.
The CRD generates the required voltages to be
applied to the smartcard lines.
The power-off sequence is managed by the CRD.
Card insertion or card removal is detected by the
CRD using a card presence switch connected to
the external CRDDET pin. If a card is removed, the
CRD automatically deactivates the smartcard us-
ing the ISO7816 deactivation sequence.
An maskable interrupt is generated when a card is
inserted or removed.
Any malfunction is reported to the microcontroller
via the Smartcard Interrupt Pending Register
Figure 29. Smartcard Interface Block Diagram
(CRDIPR) and Smartcard Status (CRDSR) Regis-
ters.
12.4.2 Main features
s Support for ISO 7816-3 standard
s Character mode
s 1 transmit buffer and 1 receive buffer
s 4-Mhz fixed card clock
s 11-bit etu (elementary time unit) counter
s 9-bit guardtime counter
s 24-bit general purpose waiting time counter
s Parity generation and checking
s Automatic character repetition on parity error
detection in transmission mode
s Automatic retry on parity error detection in
reception mode
s Card power-off deactivation sequence
generation
s Manual mode for driving the card I/O directly for
synchronous protocols
12.4.3 Functional Description
Figure 29 gives an overview of the smartcard inter-
face.
4 MHz
11-BIT
ETU COUNTER
POWER-OFF LOGIC
CRDCCR
CLK
CRD CRD CRD CRD CRD CRD
SEL
C4 C8 IO CLK RST VCC
COMMUNICATIONS CONTROL
9-BIT GUARDTIME COUNTER
CLOCK
CONTROL
CRDC4
CRDC8
CRDVCC
CRDRST
CRDCLK
24-BIT WAITING TIME COUNTER
PARITY GENERATION/CHECKING
0
CRD INTERRUPT
UART SHIFT REGISTER
1
CRDIO
UART BIT
UART RECEIVE BUFFER
CRDRXB
UART TRANSMIT BUFFER
CRDTXB
CARD DETECTION
LOGIC
CARD INSERTION/REMOVAL INTERRUPT
CRDDET
55/102
1