Saving RFID Data


Closed Thread
Results 1 to 27 of 27

Hybrid View

  1. #1
    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.

  2. #2


    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

  3. #3
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Make it easy on yourself, get a 24C256, 32k x 8 eeprom. Word address, byte data

    I2Cwrite datapin, clockpin, $a0, address, data

    But if you're hellbent on using the 24c08...

    address var word 'only use lower 10 bit
    addr var byte
    control var byte

    addr = address.lowbyte
    control = $a0 + ( address.highbyte << 2 )
    i2cwrite datapin, clockpin, control, address, data-whatever

  4. #4


    Did you find this post helpful? Yes | No

    Default

    OK,

    I must write this :
    Control = $A1
    For address = 0 to 1023
    addr = address.lowbyte
    control = $a0 + ( address.highbyte << 2 )
    I2CRead sda, scl,Control, addr,[EEprom_Daten[Byte_Count]]
    Pause 10
    Byte_Count = Byte_Count + 1
    if Byte_Count > 15 then
    Byte_Count = 0
    HSEROUT [DEC3 NextAdr-15, ": ",HEX2 EEprom_Daten[0],HEX2 EEprom_Daten[1],HEX2 EEprom_Daten[2],HEX2 EEprom_Daten[3],HEX2 EEprom_Daten[4],HEX2 EEprom_Daten[5],HEX2 EEprom_Daten[6],HEX2 EEprom_Daten[7],DEC2 EEprom_Daten[8],DEC2 EEprom_Daten[9],DEC2 EEprom_Daten[10],DEC2 EEprom_Daten[11],DEC2 EEprom_Daten[12],DEC2 EEprom_Daten[13],HEX2 EEprom_Daten[14],HEX2 EEprom_Daten[15],13,10]
    endif
    next address

    Or I make again a mistake ?!

    Regards Pesti
    Last edited by Pesticida; - 29th January 2008 at 20:59.

  5. #5
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Pesticida View Post
    Or I make again a mistake ?!

    Regards Pesti
    I don't know. Does it work?
    If it does, then you didn't make a mistake.
    If it doesn't, then there must be a flaw in your logic.

  6. #6


    Did you find this post helpful? Yes | No

    Default

    Hi

    No this dont work!

    My chip have the Pin E2 to VCC thats mean The Device Adress is :10101000 for Write and
    10101001 For Reading.

    I try all combination but dont work.

    Regards Pesti

  7. #7
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Pesticida View Post
    Hi

    No this dont work!

    My chip have the Pin E2 to VCC thats mean The Device Adress is :10101000 for Write and
    10101001 For Reading.

    I try all combination but dont work.

    Regards Pesti
    Ok, is it the serial part that's not working?
    The EEPROM is returning bad data?
    Is the program running?
    Which is it?
    Think simple...build it up...
    Make the LED blink...Show some data on the LED...Make the HSEROUT work
    I know you don't have an LED here...maybe you should put one there eh?

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