
At this point, the EMV SIM module will transmit the characters in the transmit FIFO. If
more than 4 characters are to be sent, the transmit threshold interrupt will be set when the
threshold number of characters are remaining in the FIFO. The software can then write an
additional number of characters to be sent without interrupting transmission to the Smart
Card.
Once the transmission is complete, the EMV SIM module should be completely
configured for standard operation with the T=0 Smart Card. The software can continue to
service RDTF interrupts for received characters, and TDTF interrupts for transmitted
characters.
21.6.8.2 Programming Considerations for T=1 Smart Cards
If the card is of type T=1, the software should adjust the following parameters according
to the information in the ATR:
• Adjust the baud rate by changing the values of DIVISOR register based on the values
of 'F' and 'D' received in the ATR.
• Adjust the guard time between characters by changing the value of GETU[7:0] in the
TX_GETU register. Setting GETU[7:0] to 0xFF configures the SIM transmitter for
11 ETU transmissions.
• Disable NACK capability by clearing the ONACK and ANACK bits in the CTRL
register. T=1 cards do not allow NACKs.
• Adjust the stop clock polarity by modifying the value of the SCSP bit in the PCSR
register.
• Set Character Wait Time Counter Timeout Value to value specified in the ATR by
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.
• Enable CRC or LRC error checking according to the ATR information by setting
either the CRC_EN or LRC_EN bit in the CTRL register. These bits should never be
set at the same time!
For T=1 cards, the ATR is sent using a T=0 type of structure (12 ETU, no LRC or CRC).
If a negotiation with the Smart Card is desired, the software will send a PPS response to
the Smart Card. Otherwise, the protocol is initiated with a block transfer from the EMV
SIM module. In order to send the response or the first block, the following steps should
be performed:
• Set the desired transmit FIFO threshold level by writing the TDT[3:0] bits in the
TX_THD register.
Chapter 21 Smart Card Interface Module (EMV SIM)
K32 L2A Reference Manual, Rev. 2, 01/2020
NXP Semiconductors
531
Содержание K32 L2A Series
Страница 2: ...K32 L2A Reference Manual Rev 2 01 2020 2 NXP Semiconductors...
Страница 42: ...K32 L2A Reference Manual Rev 2 01 2020 42 NXP Semiconductors...
Страница 122: ...Flash Memory Clock K32 L2A Reference Manual Rev 2 01 2020 122 NXP Semiconductors...
Страница 146: ...Module operation in low power modes K32 L2A Reference Manual Rev 2 01 2020 146 NXP Semiconductors...
Страница 158: ...Debug and security K32 L2A Reference Manual Rev 2 01 2020 158 NXP Semiconductors...
Страница 174: ...Module Signal Description Tables K32 L2A Reference Manual Rev 2 01 2020 174 NXP Semiconductors...
Страница 246: ...Application information K32 L2A Reference Manual Rev 2 01 2020 246 NXP Semiconductors...
Страница 322: ...Kinetis Bootloader Status Error Codes K32 L2A Reference Manual Rev 2 01 2020 322 NXP Semiconductors...
Страница 344: ...Application initialization information K32 L2A Reference Manual Rev 2 01 2020 344 NXP Semiconductors...
Страница 374: ...CMP Trigger Mode K32 L2A Reference Manual Rev 2 01 2020 374 NXP Semiconductors...
Страница 384: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 384 NXP Semiconductors...
Страница 592: ...Application Information K32 L2A Reference Manual Rev 2 01 2020 592 NXP Semiconductors...
Страница 602: ...Initialization and application information K32 L2A Reference Manual Rev 2 01 2020 602 NXP Semiconductors...
Страница 656: ...Functional Description K32 L2A Reference Manual Rev 2 01 2020 656 NXP Semiconductors...
Страница 664: ...Functional Description K32 L2A Reference Manual Rev 2 01 2020 664 NXP Semiconductors...
Страница 744: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 744 NXP Semiconductors...
Страница 762: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 762 NXP Semiconductors...
Страница 806: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 806 NXP Semiconductors...
Страница 868: ...Integer square root K32 L2A Reference Manual Rev 2 01 2020 868 NXP Semiconductors...
Страница 976: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 976 NXP Semiconductors...
Страница 1012: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 1012 NXP Semiconductors...
Страница 1094: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 1094 NXP Semiconductors...
Страница 1132: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 1132 NXP Semiconductors...
Страница 1182: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 1182 NXP Semiconductors...
Страница 1290: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 1290 NXP Semiconductors...
Страница 1344: ...USB Voltage Regulator Module Signal Descriptions K32 L2A Reference Manual Rev 2 01 2020 1344 NXP Semiconductors...
Страница 1356: ...Initialization Application Information K32 L2A Reference Manual Rev 2 01 2020 1356 NXP Semiconductors...