The current smartcard software library supports 8,16 & 32 bit PIC microcontrollers.The port pins connection b/w the micro & smart card is defined in "sc_config.h" file. The demo uses the signal connections between the smart card & PIC microcontroller port pins as per the below table:-
Signal Name |
PIC18F46J50 |
PIC18F87J50 |
PIC18F4550 |
PIC18F14K50 |
SIM_CARD_DET |
RB1 |
RB1 |
RB1 |
RB4 |
SMART_CLK |
RB2 |
RC2 |
RC2 |
RC2 |
SMART_I/O |
RC6,RC7 |
RC6,RC7 |
RC6,RC7 |
RB7,RB5 |
SMART_RST |
RB4 |
RB4 |
RB4 |
RC1 |
SMART_CARD_DET |
RB3 |
RB3 |
RB3 |
RB6 |
SMART_VCC |
RB0 |
RB0 |
RB0 |
RC0 |
Signal Name |
PIC24FJ256GB110 |
PIC32MX795F512L |
dsPIC33FJ128MC710 |
PIC24HJ256GP610 |
SIM_CARD_DET |
RB1 |
RB1 |
RB1 |
RB1 |
SMART_CLK |
RB15 |
RD1 |
RD1 |
RD1 |
SMART_I/O |
RC4,RF2 |
RF2,RF8 |
RF2,RF3 |
RF2,RF3 |
SMART_RST |
RE8 |
RE8 |
RE8 |
RA12 |
SMART_CARD_DET |
RB0 |
RB0 |
RB0 |
RB0 |
SMART_VCC |
RB9 |
RB9 |
RB9 |
RB9 |
“SMART_CARD_DET”/”SIM_CARD_DET” signals indicate the presence of Smart Card/Sim Card to the microcontroller. Either of one between Smart Card & Sim Card has to be inserted in the Smart Card PICTail board. If both the cards are inserted at a time in the PICTail card, then the demo won’t work successfully.
If the user wants to connect the smart card signals to different port pins of the micro, then the pin mapping in “sc_config.h” file needs to be modified.
Enabling the macro "SC_PROTO_T1" in “sc_config.h” file, will enable the smart card library to support both T=0 & T=1 cards.Disabling the macro "SC_PROTO_T1" in “sc_config.h” file, will enable the smart card library to support only T=0 cards.