I2C EEPROM Programming


+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2005
    Location
    Essex, UK
    Posts
    94

    Question I2C EEPROM Programming

    Hi,

    I need to place a large number of codes into an I2C EEPROM, such as 24C128. I don't want to place code into my PIC program in order to transfer the data into the EEPROM but literally place the hex values into the EEPROM 1 byte after the next. I know this sounds strange but I have around 576 bytes to transfer in to the EEPROM, and that's just one of approx. 20 files which I need to place into the EEPROM! Here is just a small sample of the codes to be placed into it:

    EAAA95FFABFEFEAAB5FFABFEFEAAA5FE
    AADEBAAAA93DAA95EAAAAA4BFAB55EAA
    AA96BFA955AAAAA96BFA955EAAAAA5AF

    The code has been generated and I need to be able to read this code into the PIC for use. Above is just 3 lines of 16 bytes, one after the other.

    My question is, can PICBasic create a hex file for me to place into the programmer from these hex values? The programmer I am using is a PICALLW and has the option to program 24CXXX devices.

    Any help is very much appreciated

    Rob

  2. #2
    Smart's Avatar
    Smart Guest


    Did you find this post helpful? Yes | No

    Talking

    Wow, that's strange. I need to do the exactsame thing. In fact the bigger the eeprom the better.
    I need to store a massive amount of data in an eeprom to be able to play back in a pic so if anyone can help this guy out then I would really like to know too.

    Cheers

    :-)

  3. #3
    Join Date
    Feb 2004
    Location
    Germany
    Posts
    762


    Did you find this post helpful? Yes | No

    Default

    Have you had a look at this
    regards

    Ralph

    _______________________________________________
    There are only 10 types of people:
    Those who understand binary, and those who don't ...
    _______________________________________________



  4. #4
    Join Date
    Feb 2005
    Location
    Essex, UK
    Posts
    94


    Did you find this post helpful? Yes | No

    Talking

    Quote Originally Posted by NavMicroSystems
    Have you had a look at this
    Thanks alot and sorry for the lateness of my reply - I've been really busy doing what you said and have now managed to get the values into the EEPROM :-)

    I have also managed to read the EEPROM values back into the PIC so all is going well. I am trying out a program called encoder.exe by Roman Black and I'm still having trouble with it. I am going to make a new post about this though. Thanks again

Similar Threads

  1. I2C Master/Slave 16F88/16F767 working code
    By DanPBP in forum Code Examples
    Replies: 2
    Last Post: - 23rd October 2012, 22:31
  2. Problem with I2C EEPROM addressing
    By Atom058 in forum General
    Replies: 14
    Last Post: - 3rd November 2009, 03:17
  3. HARDWARE I2C SAMPLE CODE question
    By Michael Wakileh in forum Code Examples
    Replies: 2
    Last Post: - 16th June 2009, 21:07
  4. Data EEPROM gets clobbered during programming
    By BrianT in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 18th July 2008, 02:46
  5. Pic16F628A and 24LC256 EEPROM I2C
    By Mike96 in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 1st January 2006, 03:13

Posting Permissions

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