This might help you
http://www.picbasic.co.uk/forum/show...rson#post34990
Jerson
Angus Anderson, the 24LC1025 is expecting an 16 bit address. You are only sending it an 8 bit address.
Dave Purola,
N8NTA
Dave, you were right about the 16 bit address
I've managed to solve the problem by:
1) Making the address a word sized variable
2) Changing the pullup resistors from 4k7 to 2k7
3) Taking the data to be stored and saving it Highbyte and Lowbyte so:
I2cWrite SDA,SCL,$A0,Address,[Databyte.Highbyte]
Address = Address+1
I2cWrite SDA,SCL,$A0,Address,[Databyte.Lowbyte]
Address = Address+1
It now works like a charm. Thanks all of you for your advice, not the least by being reminded to take the trouble to do a search of the forum first ;-)
Angus Anderson, That's good you got it working. I use 4 of the 24LC1025's for a fishing device I designed and it records 18+ hours of various data.
Dave Purola,
N8NTA
Bookmarks