
• Set ANACK bit in the CTRL register to enable NACK generation. The ISO 7816-3
spec allows the EMV SIM module to NACK any communication errors that occur
during the initial communication at 12 ETU.
NOTE
The Europay MasterCard and VISA (EMV) cards are
similar to “T=1”, but do not allow the EMV SIM module to
NACK during the initial communication
• Enable RDTF and RFO interrupts by setting RDT_IM and RFO_IM bits in
INT_MASK register. These interrupts are enabled to notify the software when
characters are received. A threshold can be set for the number of characters to
receive before generating an interrupt.
• Set desired threshold for received characters by writing RDT in RX_THD register
The EMV SIM should be setup to perform in initial character mode during ATR
detection. This will cause the hardware to identify the first valid character sent during the
ATR as an initial character. This character will automatically configure the hardware for
the data convention used by the Smart Card.
• Set Initial Character Mode by setting the ICM bit in the CTRL register
The ISO 7816-3 spec requires that Smart Cards meet certain timing restrictions. One of
these is the time from the de-assertion of the card reset to the beginning of the ATR
sequence. The EMV SIM module's General Purpose Counter can be used to verify that
the Smart Card begins its ATR within the 400 to 40,000 card clock cycle range.
• Set the General Purpose Counter 0 or 1 Timeout Value to 0x9C40 using
GPCNT0/1_VAL register.
• Enable General Purpose Counter Interrupt by clearing GPCNT0/1_IM in
INT_MASK register.
• Enable General Purpose Counter by programming the GPCNT0/1_CLKSEL[1:0] bits
to 01, so that the card clock is used for counting.
The ISO7816-3 spec states that the maximum allowed time between two characters
during the ATR is 9600 ETUs (Initial Waiting Time). The Character Wait Time Counter
should be setup to detect any errors for this condition.
• Set Character Wait Time Counter Comparator to 9600 using the CWT_VAL register
• Enable the Character Wait Time Counter Interrupt by clearing CWT_ERR_IM in
INT_MASK register
• Enable the Character Wait Time Counter by setting the CWT_EN bit in the CTRL
register
The last step in preparing for ATR reception is to enable the receiver.
• Set RCV_EN bit in CTRL register
Chapter 21 Smart Card Interface Module (EMV SIM)
K32 L2A Reference Manual, Rev. 2, 01/2020
NXP Semiconductors
529
Summary of Contents for K32 L2A Series
Page 2: ...K32 L2A Reference Manual Rev 2 01 2020 2 NXP Semiconductors...
Page 42: ...K32 L2A Reference Manual Rev 2 01 2020 42 NXP Semiconductors...
Page 122: ...Flash Memory Clock K32 L2A Reference Manual Rev 2 01 2020 122 NXP Semiconductors...
Page 158: ...Debug and security K32 L2A Reference Manual Rev 2 01 2020 158 NXP Semiconductors...
Page 174: ...Module Signal Description Tables K32 L2A Reference Manual Rev 2 01 2020 174 NXP Semiconductors...
Page 246: ...Application information K32 L2A Reference Manual Rev 2 01 2020 246 NXP Semiconductors...
Page 374: ...CMP Trigger Mode K32 L2A Reference Manual Rev 2 01 2020 374 NXP Semiconductors...
Page 384: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 384 NXP Semiconductors...
Page 592: ...Application Information K32 L2A Reference Manual Rev 2 01 2020 592 NXP Semiconductors...
Page 656: ...Functional Description K32 L2A Reference Manual Rev 2 01 2020 656 NXP Semiconductors...
Page 664: ...Functional Description K32 L2A Reference Manual Rev 2 01 2020 664 NXP Semiconductors...
Page 744: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 744 NXP Semiconductors...
Page 762: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 762 NXP Semiconductors...
Page 806: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 806 NXP Semiconductors...
Page 868: ...Integer square root K32 L2A Reference Manual Rev 2 01 2020 868 NXP Semiconductors...
Page 976: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 976 NXP Semiconductors...
Page 1012: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 1012 NXP Semiconductors...
Page 1094: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 1094 NXP Semiconductors...
Page 1132: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 1132 NXP Semiconductors...
Page 1182: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 1182 NXP Semiconductors...
Page 1290: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 1290 NXP Semiconductors...