Saving RFID Data


Closed Thread
Results 1 to 27 of 27

Hybrid View

  1. #1

    Default Saving RFID Data

    Hi,

    I search the Best way to save RFID Data !

    Did some one have experience what I should use EEprom or something else.

    I Try with 24C08 but the problem is that I have a adress byte but how this can work when I go for example to adress 512 this is more then a byte.

    Adress var byte
    Adress = 512 but this is not byte anymore

    I2CWrite sda,scl,%10101000,Adress,[$00,$16,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$0 0,$00,$00,$00]

    Thanks for any example.

    Regards Pesti
    Last edited by Pesticida; - 29th January 2008 at 16:51.

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Pesticida View Post
    Hi,
    I search the Best way to save RFID Data !
    Did some one have experience what I should use EEprom or something else.
    I Try with 24C08 but the problem is that I have a adress byte but how this can work when I go for example to adress 512 this is more then a byte.
    Adress var byte
    Adress = 512 but this is not byte anymore
    I2CWrite sda,scl,%10101000,Adress,[$00,$16,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$0 0,$00,$00,$00]
    Thanks for any example.
    Regards Pesti
    Then I suppose your address might magically become a WORD just like the good book says in the I2CWrite section...and I quote:

    The Address size sent (byte or word) is determined by the size of the variable that is used. If a byte-sized variable is used for the Address, an 8-bit address is sent. If a word-sized variable is used, a 16-bit address is sent. Be sure to use the proper sized variable for the device you wish to communicate with. Constants should not be used for the Address as the size can vary dependent on the size of the constant. Also, expressions should not be used as they can cause an improper Address size to be sent.

  3. #3


    Did you find this post helpful? Yes | No

    Default

    Hi,

    Thank you !
    I understand what you mean but on the PDF File for the 24C08 they says that the adress is just a byte and not a word.

    Now my question is how can I write for example on adress 512 or 700 when I can just use a byte adress and not a word.

    For the 24c02 and 24c01 I dont have Problems but when I need more then 256 bytes I can not read or write.
    Can I use this I2CWrite sda,scl,$A9,here >512<here,[Tmp_Data]

    Thanks

    Regards Pesti

  4. #4


    Did you find this post helpful? Yes | No

    Default

    Ok!

    I found that the 24C08 have 2 Blocks but thats mean that each block have 512 Bytes!
    how can I read or write the first block or the second!?

    I have just a byte adress!

    regards Pesti

  5. #5
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Pesticida View Post
    Ok!
    I found that the 24C08 have 2 Blocks but thats mean that each block have 512 Bytes!
    how can I read or write the first block or the second!?
    I have just a byte adress!
    regards Pesti
    Now the answer you want is in the I2CREAD section instead of the I2CWRITE, which, incidentally, goes hand in hand with I2CREAD, because to I2CREAD something, first you have to I2CWRITE something, unless you would rather I2CREAD an empty chip, which isn't really empty, but full of no data, and sometimes no data is better than some data, either of which can be I2CREAD quite effectively, and either of which can be I2CWRITTEN over to replace either the no data or the some data which will be I2CREAD later on.

  6. #6


    Did you find this post helpful? Yes | No

    Default

    Thats mean i must use something like this:

    EraseEEprom= $A8
    EEprom_Block = 0
    Tmp_Daten = $00

    EraseEEprom:
    Erase_Loop:
    for NextAdr = 0 to 255
    I2CWrite sda,scl,EEprom_Adresse,NextAdr,[Tmp_Daten]
    pause 10
    Sound Buzzer,[122,1]
    next NextAdr
    EEprom_Adresse = EEprom_Adresse + 2
    EEprom_Block = EEprom_Block + 1
    if EEprom_Block => 4 then EEprom_Block = 0 : goto Exit_Loop2
    goto Erase_Loop
    Exit_Loop2:
    Sound Buzzer,[122,250]
    goto Main


    Regards pesti

Similar Threads

  1. Using Nokia LCD
    By BobP in forum mel PIC BASIC Pro
    Replies: 300
    Last Post: - 3rd May 2018, 04:47
  2. Read/Write Problem
    By Tobias in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 10th February 2010, 01:51
  3. Big characters on HD44780 4x20
    By erpalma in forum mel PIC BASIC Pro
    Replies: 23
    Last Post: - 7th January 2007, 02:21
  4. LCD + bar graph
    By DynamoBen in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 5th October 2005, 14:50
  5. Sinus calculating !
    By Don Mario in forum mel PIC BASIC Pro
    Replies: 29
    Last Post: - 28th November 2004, 23:56

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