Hello all,
I'm trying to use a 24LC512 memory connected to a PIC16F877.
Can someone post some HTPIC code for accessing the memory ? I'm unable to figure out how to use the 16 bit addressing for the memory as the library file(i2c.c) included in the HTPIC is supporting 8-bit address compatible for 24LC04 and similar stuff.
Thanks to "bilgekaan" and "TheHungry" . THe bug has been fixed and the data is being written and read from the chip. Now I have a new problem. Unless I use a delay of 15msec between each byte being written to the chip, junk data appears in the chip. Is this normal or is there some problem in my code. I'm using a PIC16F877 at 20Mhz. Previously 24LC04 in the same socket worked well without any 15msec delays. Any suggestions ?