This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS: How to use TCA5013 Smartcard interface to read SAM card's data

Other Parts Discussed in Thread: TCA5013, TIDA-00818

Tool/software: Code Composer Studio

Hi,

From the TCA5013EVM demo,  I don't know how to read/write data from/to SAM card.

The code just setting reg by i2c, no read card, no write card.

Can you give me an example?

Thanks a lot.

  • Hello Eric,

    Thank you for your question. Right now, our support contact for the TCA5013 is out on Holiday, and will be returning after the new year. Please bear with us since most are out on holiday, and we will answer your question when we return.
  • Hello Eric,

    The TCA5013 does not generate or interpret the data to and from the SAM card, it merely had integrated level shifting with a boost converter to enable different card voltages.  It also multiplexes the signal to the available SAM cards.  It does have the ability to change the clock frequency as well if so desired.  We don't give examples of how to interpret and execute ISO7816 card protocols.    What exactly are you looking for?  Can you give a set of questions that you might want answered and I can try and get something put together.

    -Francis Houde

  • Hello Francis,

    Setting the registers is simple.

    But I don't have any experience about this, how to read/write sam card's data.

    I need an example. And learn from it.

    I found some materials about ti-usim, but there all lost the main validated  code.

    http://processors.wiki.ti.com/index.php/USIM_Users_Guide.

    Lost the test application git link:

    The test source can be cloned from: git@gitorious.design.ti.com:epos-linux/examples.git

    http://processors.wiki.ti.com/index.php/USIM_PCSC_Integration

    Lost the IFD-devkit download link:
    Build/Compilation of IFDHANDLER

    Download the IFD-devkit from the below link and extract it

       --> <link>

    I just need an example.

    Thanks.

  • Hello Francis,
    In standby mode, using default parameters, no smart card insert and setting reg 0x11 value 0x61 starts activation sequence.
    The chip was burning? That's why? How can I solve this problem?
    Can you give me some advice?
    Thanks.
  • Hello Eric,
    Please send me a schematic. Something sounds very wrong. Let me see if I can figure out what is going on.
    -Francis Houde
  • Hello Francis,

    When I active anyone of the cards in standby mode using default register value, all cards will be burned.

    In standby mode, I checked all registers, and found the user card always inserts(red).

    The register values:

    user card:                                            

    0x00 0x02; 0x01 0x60; 0x02 0x0c; 0x03 0xaa; 0x04 0x00;

    0x05 0xa4; 0x06 0x74; 0x07 0x80; 0x08 0xa0; 0x09 0x76;

    0x0a 0x00 0x00 0x00 0x00;                            

    sam1:                

    0x10 0x00; 0x11 0x40; 0x12 0x0c; 0x13 0xaa; 0x14 0x00;

    0x15 0xa4; 0x16 0x74; 0x17 0x80; 0x18 0xa0;          

    sam2:                

    0x20 0x00; 0x21 0x40; 0x22 0x0c; 0x23 0xaa; 0x24 0x00;

    0x25 0xa4; 0x26 0x74;                                          

    sam3:                            

    0x30 0x00; 0x31 0x40; 0x32 0x0c; 0x33 0xaa; 0x34 0x00;

    0x35 0xa4; 0x36 0x74;            

    Info:                

    0x40 0x00; 0x41 0x00; 0x42 0x80; 0x43 0xff; 0x44 0x00;0x45 0x00;

    This is a serious problem.

    We did some experiment, supply power alone, current limit etc, but all did not work.

    Could you tell us how to checking the hardware?

    Thanks.

  • Hello Eric,

    I will look at your schematic but without information about pin names and component values it will be difficult to determine is something is done incorrectly.  Have you compared your schematic with our EVM schematic?

    http://www.ti.com/lit/ug/slvua91/slvua91.pdf

    You may also want to get the EVM so that you can confirm code with EVM hardware.  Here is the EVM page.

    http://www.ti.com/tool/tca5013evm

    -Francis Houde

  • Hi Francis,

    Sorry, I missed the pin info.

    We have compared the schematic with the EVM schematic.

    And have compared with TIDA-00818 project's schematic, too.

    https://www.ti.com/seclit/df/tidrml9/tidrml9.pdf

    Most of them are the same, expect user card and sam3 not used.

    In the schematic,  

    102 means 10uF,

    103    ----    0.01uF

    104    ----    0.1uF

    105    ----    1uF

    106    ----    10uF

  • Hello Francis,

    Can you give me the value of all register after active SAM1 card from tca5013evm?

    Thanks.