
NOTE
Setting any other value for CRC_IN_FLIP, CRC_OUT_FLIP
and INV_CRC_VAL will cause CRC value to be formatted
accordingly; however the CRC will not be compliant to the
standard CRC used in Smart Cards.
The CRC value can be reset/initialized in multiple ways. Clearing the CRC_EN bit in the
CTRL register will reset the CRC value. At the end of a transmission (either after the
CRC characters are transmitted, or after the last character in the transmit FIFO is sent
when XMT_CRC_LRC is clear), the CRC value is automatically reset by the EMV SIM
hardware. Finally, when setting the XMT_EN bit, the EMV SIM hardware resets the
CRC value.
Summary of configuration needed to use CRC block:
• Use CRC_IN_FLIP, CRC_OUT_FLIP and INV_CRC_VAL bits in CTRL register to
select the desired CRC method (CCITT or normal)
• Use the CRC_EN bit in CTRL register to enable the CRC block
• Use the XMT_CRC_LRC bit to enable the transmission of the CRC Characters after
the last character in the Transmit FIFO is sent.
21.6.6 Message Handling
The EMV SIM module has FIFOs on both transmit and receive side for handling all
message bytes.
21.6.6.1 Transmit FIFO
A 4-byte deep FIFO is implemented in the transmitter. The transmit FIFO can be written
into by the software but reads to this FIFO will return zeros. To take care of clock
synchronization, each write access will have wait states inserted by the module but this is
transparent to the software. The Tx FIFO can be written to while the transmitter is
enabled, however, the transmitter does not start transmitting while the FIFO is empty. A
write to the Tx FIFO will initiate the transmit operation. Software can store more bytes
into the Tx FIFO until the programmed threshold is reached. Software can enable DMA
operation by setting TX_DMA_EN = 1 in the CTRL register. On setting this bit, a DMA
request will be asserted and remain asserted till the number of bytes in FIFO reached the
programmed threshold value (TDT[3:0] in the TX_THD register).
Chapter 21 Smart Card Interface Module (EMV SIM)
K32 L2A Reference Manual, Rev. 2, 01/2020
NXP Semiconductors
523
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...