
21.6.7.4 Work Wait Time
There is no separate counter to measure the work wait time (WWT). Work wait time is a
combination of BWT and CWT. To measure WWT, software must configure both
CWT_VAL and BWT_VAL to the value to enforced. When measuring WWT, the BGT
timer will not be used so it should be masked (inactive) by the BGT_IM bit. Below is the
sequence to program the EMV SIM to send and receive data while checking WWT:
• Program both the CWT_VAL and the BWT_VAL registers to the WWT (work wait
time) value that needs to be enforced. Set BGT register to 0 (this is the default value).
• Activate both the CWT and BWT functions by setting the CWT_EN and BWT_EN
bit in the CTRL register
• Enable the CWT_ERR and BWT_ERR interrupts by clearing the CWT_IM and
BWT_IM bits in the INT_MASK register
• Program the EMV SIM module to enable Receiver or Transmitter as desired by
application
• If an interrupt occurs, then the software should consider that a WWT violation if the
CWT_ERR or BWT_ERR bits are asserted. The software should clear the
CWT_ERR or BWT_ERR interrupt by writing a “1” to the BWT_ERR or
CWT_ERR bit in the RX_STATUS register
21.6.7.5 General Purpose Timers
The EMV SIM module provides TWO 16-bit counters for use, when timing events during
Smart Card communication. The clock source for the counter is selectable between three
sources: Card Clock, Receiver Clock (16 times the ETU clock) or ETU Clock (for
Transmitter). The GPCNT0/1_CLKSEL[1:0] bits in the CTRL register are used to select
the clock input. The counter is enabled as soon as the input clock is selected. The starting
of the counter is immediate once the input clock is running. Software can control the
three input clock sources by using the SCEN, KILL_CLOCKS, RCV_EN and XMT_EN
bits provided in the CTRL register.
To run the counters from the card clock source the following conditions must be met:
• ‘KILL_CLOCKS = 0’ in the CTRL register
• ‘RCV_EN = 1’ or XMT_EN = 1 in the CTRL register
• 'SCEN = 1' in the PCSR register
• ‘GPCNT_CLKSET[1:0] = 01’ in the CLKCFG register
The counter will begin to count at the card clock rate as soon as these conditions are met.
To run the counters from the receive clock source the following conditions must be met:
• ‘KILL_CLOCKS = 0’ in the CTRL register.
Chapter 21 Smart Card Interface Module (EMV SIM)
K32 L2A Reference Manual, Rev. 2, 01/2020
NXP Semiconductors
527
Содержание 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...