PDA

View Full Version : Extern memory



glaubertadeu
- 6th July 2005, 23:43
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

mister_e
- 6th July 2005, 23:54
As we can't/won't hack your computer and see your actual code... it's a bit hard to give a hand ;)

DynamoBen
- 10th July 2005, 00:34
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