Saving RFID Data


Closed Thread
Results 1 to 27 of 27

Hybrid View

  1. #1


    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

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

  3. #3


    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 21:59.

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

  5. #5


    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

  6. #6
    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?

  7. #7


    Did you find this post helpful? Yes | No

    Default

    Hi,

    im so Stupid I forgott something important ,on the Chip I forgott to set WC Low,and i use now more pause to write and to read data.
    Now is working but what i don't understand ,on the 24C02 i dont set wc too and has working!

    What you think is this a good Idea to use 24c chips to store rfid tags data,the chips have a 1000.000 write cyclus.

    When I write on one day Double (Write and Erase) I have then on one Day maybe 4 Write Cycle.

    Thank You

    Regards Pesti

Similar Threads

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