I figured it out. Thanks to all who contributed, it was a 'learning experience'..
The root of my mis-understanding was this:
1. WORDS can be stored with a simple I2Cwrite command, and it is not necessary to write variable.byte0, then variable.byte1 in order to do this. Writing a WORD at a memory location just STARTS there and goes forward to the next location (Byte). I did not get this.
2. If you leave out [ ] around what you are writing or reading, it will pass compiler, but not do anything. This was my biggest issue. I was just writing
I2Cread , Dpin, Cpin, Chip1, location , data, failroutine
This works fine, but does not write anything for 'data'... If you do this:
I2Cread , Dpin, Cpin, Chip1, location , [data], failroutine
It works PERFECTLY... Once I went back and added the brackets, and made sure I was dealing with WORDS, it all came together..
THANKS.
TOM
Bookmarks