PDA

View Full Version : I2C EEPROM Programming



Rob
- 18th March 2005, 16:18
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

Smart
- 18th March 2005, 16:42
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

:-)

NavMicroSystems
- 18th March 2005, 20:09
Have you had a look at this (http://www.picbasic.co.uk/forum/showthread.php?t=1015&highlight=eeprom)

Rob
- 23rd March 2005, 15:03
Have you had a look at this (http://www.picbasic.co.uk/forum/showthread.php?t=1015&highlight=eeprom)

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