Icc_activate(), E 34) – Maxim Integrated 73S12xxF Software User Manual
Page 34

73S12xxF Software User Guide
UG_12xxF_016
34
Rev. 1.50
ICC_RST3 = 0xB0,
ICC_RST4 = 0xC0,
ICC_RST5 = 0xD0,
ICC_RST6 = 0xE0,
ICC_RST7 = 0xF0
IccCE: Input parameter
Card Event parameter. The following settings are available as defined in
API_STRUCT_12.h. Set this variable according to the hardware design where either
interrupt 2 or interrupt 3 is used for an external card event detect.
ICC_INT2_NONE = 0x00,
ICC_INT2_I2C
= 0x01, //Use INT2 for card event detection
ICC_INT3_I2C
= 0x02, //Use INT3 for card event detection
Return Codes None.
The T=0 and T=1 protocols affect which guard and wait times to use. For protocols other than these, use
whichever protocol (either T=0 or T=1) best matches the timing requirements. If neither protocol
matches, then the application will need to bypass the Smart Card UART.
ICC_Activate()
Purpose
Activate the contacts of the selected Smart Card, as specified by eIccId. The VCC,
RST, I/O and CLK signals are configured according to the ISO 7816-3 standard.
Synopsis
ICC_RC ICC_Activate ( IN struct ICC_Activate_t *pActivate, IN struct ICC_t *pATR
);
Struct {
enum ICC_VOLTAGE IccVCC;
Unsigned char IccVCCOffDelay; // # of etus delay before VCC should go off.
Unsigned char IccVCCTmr;
// # of etus to wait for VCC stable.
unsigned char IccResetDelay,
int IccInitialWaitingTime,
Boolean IccATR_TimeoutEnabled,
int IccATR_Timeout,
int IccTS_Timeout
} ICC_Activate_t;
Where ICC_VOLTAGE is defined as:
VCC_0V = 0,
VCC_1V8 = 1,
VCC_3V = 2,
VCC_5V = 3
Parameters
IccVcc: Input parameter
Voltage to apply when powering up this card.
IccVCCOffDelay: Input parameter
Number of ETUs to delay before shutting off the VCC. The default should be set to
3 ETUs. The maximum value is 15.
IccVCCTmr: Input parameter
Number of ETUs to wait for VCC to become stable. This time is calculated as:
timer * 30.5 µs using a 32768 Hz clock. A value of 0 will result in no timeout (as
opposed to zero time). The maximum value is 15.
IccResetDelay: Input parameter
Specifies the number of ETUs to keep RESET asserted after power has stabilized.
IccInitialWaitingTime: Input parameter
Specifies the maximum delay in ETUs between the leading edges of two
consecutive characters of the ATR response.