This is my first ever post...
I read a lot but not enough...
I am using an 18F4520 pic with a 24LC16B external EEprom with proper pullups ect.
Circuit works great using the I2CRead and Write commands with Word addresses and Byte Variables for the data.
I am having lots of difficulty getting it to work with word size Variables in the data to read and write.
I understand from the spec sheet that the 16B is a byte size variable and a word size address and using this I2Cwrite command
addsout var word
myvariable var byte
I2CWRITE DPIN,CPIN,$A0,addsout,[myvariable]
This works great for numbers <=255
I need numbers stored <= 65535 which requires a WORD size stored variable.
I have tried so many different ways to Highbyte Lowbyte the data - I have lost count.
Please Help!
Bookmarks