I2C Smart Card memory


Closed Thread
Results 1 to 11 of 11

Hybrid View

  1. #1
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,123

    Default I2C Smart Card memory

    Usually I2C EEPROM's have defined address and this is found on the Data sheets.

    But I cannot find such data sheet regarding the Smart Card type I2C EEPROMS. Also on the cards there is no indication of the manufacturer.

    Any ideas?

    Ioannis

  2. #2
    Join Date
    Sep 2009
    Posts
    755


    Did you find this post helpful? Yes | No

    Default Re: I2C Smart Card memory

    Try to scan all addresses.
    Something like this
    Code:
    FOR i = 0 TO 255
        Adr VAR BYTE/WORD depending on memory size expected
        ADR=10
        I2CWRITE datapin,clock,i,Adr,[123]
        PAUSE 10
        TestByte=0
        I2CREAD datapin,clock,i,Adr,[TestByte]
        IF TestByte=123 THEN
            Write 0,i
            END
        ENDIF
    NEXT i
    And after few seconds read eeprom of PIC, Or you can use serout to show address on PC, etc...
    I guess it should be $A0.
    Can you post picture of smart card, so someone can recognize it and find internal schematic?
    Last edited by pedja089; - 25th December 2015 at 11:57.

  3. #3
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,123


    Did you find this post helpful? Yes | No

    Default Re: I2C Smart Card memory

    Thank for the reply.

    Sure I will post a picture, but it is a classic blank card.

    May be the chip is recognizable.

    Name:  IMG_2061.JPG
Views: 633
Size:  123.3 KB

    Ioannis

  4. #4
    Join Date
    Sep 2009
    Posts
    755


    Did you find this post helpful? Yes | No

    Default Re: I2C Smart Card memory

    It looks like there is more than just eeprom in card.
    http://www.cdrinfo.com/Sections/News...x?NewsId=23488

  5. #5
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,123


    Did you find this post helpful? Yes | No

    Default Re: I2C Smart Card memory

    OK, I tried $A0 and sure seems that this is the correct value.

    But, there is another issue.

    Writing say 1024 bytes and doing write/verify is succesful, if power is cycled, the read data is wrong and the same value. Either 16,255 or 0.

    Ioannis

  6. #6


    Did you find this post helpful? Yes | No

    Default Re: I2C Smart Card memory

    Many moons ago I bought some of the blank memory cards, and I THINK I got them from.........Crownhill !!!

    Perhaps you could drop Lester a line and see if they did supply these cards at one time.

    I never did get round to using them, but I did write on one card the pinout, but nothing about the address and I cannot see in my pdfs any data sheet for these.

    C1 5v , C3 SCL, C5 GROUND, C7 SDA. C2,C4,C6,C8 NO CONNECTS.

    From what I remember, the memory inside was 24lc16, and there are 8 banks of 256 bytes, so if your card is the same you have to write in blocks of upto 256 per block then change to next bank.
    The control I use for 24LC16
    RBANK0 CON %10100000 'CONTROL CODE OF MEM IC FIRST 256BYTES
    RBANK1 CON %10100010
    RBANK2 CON %10100100
    RBANK3 CON %10100110
    RBANK4 CON %10101000
    RBANK5 CON %10101010
    RBANK6 CON %10101100
    RBANK7 CON %10101110

    Also remember the need for pullups.
    Last edited by aerostar; - 27th December 2015 at 10:50. Reason: Added extra info

Similar Threads

  1. Clock for smart card
    By aherrera in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 24th August 2011, 16:34
  2. Replies: 12
    Last Post: - 4th March 2010, 21:20
  3. Smart card reader with PIC16F84A
    By bangunprayogi in forum Serial
    Replies: 0
    Last Post: - 12th August 2005, 10:36
  4. Smart Card Envelope
    By Art in forum Schematics
    Replies: 0
    Last Post: - 8th August 2003, 19:15
  5. Logging to a memory card
    By Tim in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 12th July 2003, 11:47

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts