DS8007A
Multiprotocol Dual Smart Card Interface
______________________________________________________________________________________ 31
Table 3. Timeout Counter Configurations (continued)
TOC VALUE TOR3 TOR2 TOR1 DESCRIPTION
71h Start Bit Stopped
Counter 1 is stopped. Counters 3 and 2 form a 16-bit counter
operating in start bit mode for both transmission and reception.
TOR3 and TOR2 registers can be changed during the count, the
current count is not affected, and the values are taken into account
at the next START bit detected on the I/Ox pin. Setting TOC = 00h
stops the counters.
75h Start Bit
Start
Bit/Autoreload
Counter 1 is an 8-bit counter in start-bit/autoreload mode for both
transmission and reception; counters 3 and 2 form a 16-bit counter
operating in start-bit mode for both transmission and reception. The
TOR1 register is not allowed to change during the count. TOR3,
TOR2 registers can be changed during the count, the current count
is not affected, and the values are taken into account at the next
START bit detected on the I/Ox pin. Setting TOC = 00h stops the
counters.
7Ch Start Bit
Counters 1/2/3 form a 24-bit counter operating in start-bit mode in
both transmission and reception. TOR3, TOR2 and TOR1 registers
can be changed during the count, the current count is not affected,
and the value is taken into account at the next START bit detected
on the I/Ox pin. Setting TOC = 00h stops the counter.
85h Stopped
Start
Bit/Autostop
(RCV);
Start
Bit/Autoreload
(XMT)
Counters 3 and 2 are stopped. Counter 1 is operated in start-
bit/autostop mode in reception and is stopped at the end of the
12th ETU following the first received START bit detected on the
I/Ox pin unless the terminal count is reached first. Counter 1
operates in start-bit/autoreload mode in transmission.
E5h Software
Start
Bit/Autostop
(RCV);
Start
Bit/Autoreload
(XMT)
Counters 3 and 2 form a 16-bit counter operating in software mode.
The counters are stopped by setting TOC = 05h before reloading
new values in TOR3 and TOR2 registers. Counter 1 is operated in
autostop mode in reception and is stopped at the end of the 12th
ETU following the first received START bit detected on the I/Ox pin
unless the terminal count is reached first. Counter 1 is operated in
start-bit/autoreload mode in transmission.
F1h
Start Bit/Autostop
(RCV);
Start Bit (XMT)
Stopped
Counter 1 is stopped. Counters 3 and 2 form a 16-bit counter. The
16-bit counter is operated in start-bit/auto-stop mode in reception
and is stopped at the end of the 12th ETU following the first
received START bit detected on the I/Ox pin unless the terminal
count is reached first; and the 16-bit counter is operated in start-bit
mode in transmission.
F5h
Start Bit/Autostop
(RCV);
Start Bit (XMT)
Start
Bit/Autostop
(RCV);
Start
Bit/Autoreload
(XMT)
Counter 1 is an 8-bit counter operating in start-bit/autostop mode in
reception and is stopped at the end of the 12th ETU following the
first received START bit detected on the I/Ox pin unless the
terminal count is reached first; and the 8-bit counter is operated in
start-bit/autoreload mode in transmission. Counters 3 and 2 form a
16-bit counter operating in start-bit mode for transmis sion but
operate in start-bit/autostop mode in reception. Counters 3 and 2
are stopped at the end of the 12th ETU following the first received
START bit detected on the I/Ox pin unless the terminal count is
reached first; the counters are stopped by setting TOC = 00h.
DS8007A
Multiprotocol Dual Smart Card Interface
32 ______________________________________________________________________________________
ISO UART Implementation
Reset Operation
The CSR.RIU control bit resets the ISO UART. The
CSR.RIU must be reset prior to any activation. CSR.RIU
must be returned to 1 by software before any UART
action can take place.
Synchronous Mode
The synchronous mode of operation is invoked by set-
ting the synchronous/asynchronous card select bit (for
a given card interface) to logic 1. In the synchronous
mode of operation, the associated I/Ox card interface
data is transferred by the LSb of the UART
transmit/receive registers (UTR and URR). In this mode,
the host device using the CCRx.SC register bit manual-
ly controls the CLKx pin for the selected card interface.
Switching to the synchronous mode or vice versa is
allowed at any time when the card is active. However, it
is the responsibility of the host software/firmware to
ensure that the current transmission is concluded
before switching. If software configures an active card
for synchronous mode, and then activates another
card, the I/O pin on the previously active card goes to a
high-impedance state with a weak pullup (high). The
newly selected interface (if configured to synchronous
mode) takes on UTR.0.
The AUX card interface does not have an associated
CLK signal, so the CCRAUX.SC bit does not control an
output signal when the synchronous mode of operation
is in effect. The handshake between the host and the
auxiliary smart card interface is accomplished through
the auxiliary interrupt input (INTAUX) and the INT pins.
The MSR.INTAUX bit reflects the state of the INTAUX pin.
If the UCR2.DISAUX bit is cleared to 0, a change on the
INTAUX input pin results in the assertion of INT output
pin. The host software/firmware establishes the commu-
nication protocol and controls when to transmit/receive
data in response to the interrupt. If the UCR2.DISAUX bit
is set to 1, the INT pin is not asserted, and the host soft-
ware/firmware must examine the INTAUX bit in the MSR
register and responds accordingly.
Asynchronous Mode
The asynchronous mode of operation is the reset
default mode for all card interfaces and is selected
when the synchronous/asynchronous card select bit
(for a given card interface) is configured to logic 0. The
I/Ox card interface signal is used for asynchronous
half-duplex data communication between the host-con-
trolled ISO UART and the external smart card. The host
device can optionally stop the CLKx signal in the high
or low state while the card is active using the
CCRx.CST and CCRx.SHL register bits.
ETU Generation and Timing
The basic unit of time for asynchronous mode commu-
nication on the I/Ox signal is the elementary time unit
(ETU). The ETU is defined within the ISO UART as a
function of the f
CLK
frequency that is configured for the
card interface (i.e., the same f
CLK
that can be sourced
to the CLKx pin of an associated card interface A or B).
In addition to receiving f
CLK
from the clock generation
block, the ISO UART additionally receives a 2 x f
CLK
frequency if CCRx.AC2–AC0 000b. The host device
can select whether f
CLK
or 2 x f
CLK
is used for ETU
generation by using the clock UART (CKU) select bit.
When CKU = 0, f
CLK
is used, while 2 x f
CLK
is used
when CKU = 1. One exception exists when
CCRx.AC2–AC0 = 000b, in which case, only f
CLK
is
sourced to the UART and the CKU bit setting has no
effect on the duration of an ETU.
The basic clock that is selected for ETU generation by
the CKU bit is further prescaled by a factor or 31 or 32.
The prescaler select control (PSC) bit makes this
prescaler selection. When PSC is configured to logic 0,
the prescale setting is 31. When PSC is configured to
logic 1, the prescale setting is 32. The output of the
clock prescaler drives an 8-bit autoreload down
counter. The autoreload value for the downcounter is
configured by the host device through the
Programmable Divider Register (PDR). The interval pro-
vided by this downcounter defines the ETU duration for
the selected card. Figure 11 shows a diagram of ETU
generation. All the asynchronous character
transmit/receive operations are defined in terms of ETU
(e.g., 10.5 ETU, 10.25 ETU, etc).
DS8007A
Multiprotocol Dual Smart Card Interface
______________________________________________________________________________________ 33
Standard Clock Frequencies
and Baud Rates
The DS8007A supports I/O communication and CLKx
frequency generation compliant to the following stan-
dards: ISO 7816, EMV2000, and GSM11-11. Each of
these standards has an allowable CLKx frequency
range and a defined relationship between CLKx fre-
quency and ETU (baud rate) generation that is support-
ed initially and after negotiation.
For ISO 7816, the relationship between ETU (baud rate)
timing and CLKx frequency is as follows:
ETU = (F / D) x (1 / f
CLKx
)
The minimum CLKx frequency is fixed at 1MHz. The
default maximum CLKx frequency is 5MHz, however,
the maximum CLKx frequency can be increased
according to the Fi parameter given by the card during
ATR. The ISO 7816-1997(3) specification recommends
in Section 4.3.4 that CLKx frequency switches be
made a) immediately after ATR or b) immediately after
a successful PPS exchange. The transmission parame-
ters F and D are respectively the clock-rate conversion
and baud-rate adjustment factors. The notations Fd
and Dd are used to represent the ‘d’efault values for
these parameters, which are Fd = 372 and Dd = 1.
The notation Fi and Di are used to represent the values
‘i’ndicated by the card within the TA(1) character of
ATR. If TA(1) is not present, then Fi, Di are set to the
default Fd, Dd values. The notation Fn and Dn repre-
sent values ‘n’egotiated during a successful PPS
exchange, which should be in the range Fd-Fi and Dd-
Di, respectively. During ATR, the default Fd, Dd values
shall apply. If the card comes up in negotiable mode
(i.e., TA(2) is absent from the ATR), then the Fd, Dd
CLOCK
PRESCALER
PDR
/31: PSC = 0
/32: PSC = 1
PD7:PD0 =
00h TO FFh
CLOCK
PRESCALER
GATE
PDR
/31: PSC = 0
/32: PSC = 1
PD7:PD0 =
00h TO FFh
CLR
(ALIGNED
ETU GENERATOR)
UCR2x.PSC
SOFTWARE
MODE
TO3, TO2,
TO1
10.5 ETU
TO 15 ETU
10.25 ETU
ETU
ETU
EN
TOC COUNTERS
CLK
EN
FRACTIONAL ETU
COUNTERS
CLK
EN
FRAME-ERROR-
DETECTED COUNTER
CLK
0.5 ETU
0.25 ETU
CLR
UCR2x.CKU
f
CLK
0
1
1
0
2 x f
CLK
RSTx
START BIT
Figure 11. ETU Generation

DS8007A-EAG+T

Mfr. #:
Manufacturer:
Maxim Integrated
Description:
Interface - Specialized Multiprotocol Dual Smart Card Interface
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet