-
Extern memory
Hi
I need to use a extern memory of 512 bytes in a circuit. I'm using the 24LC65 but it isn't working correctly. When I write a data, it write a address and jump 2 or 3 others address. The memory is working with a PIC16F877, usind I2C. I'm programming in basic (PBP)
Thanks
Glauber
-
As we can't/won't hack your computer and see your actual code... it's a bit hard to give a hand ;)
-
The location variable needs to be a word variable. Also you will need to give the vaule to that variable prior to using it.
EEPromPointer = 1
I2CWrite SDA,SCL,wrtdev,EEPromPointer,[Data],Error_Indication
Pause 10
This will not work and isn't the same:
I2CWrite SDA,SCL,wrtdev,1,[Data],Error_Indication
Pause 10