I have a similar issue, but have an idea that might help a little..
Have you added a 'failed' lable routine to the I2Cread or write command so you can tell if it is failing ..?
I use this:
I2CWRITE DPIN,CPIN,Chip1,Address,[STR array\36],failw
and
I2CREAD DPIN,CPIN,Chip2,address,[STR array\36],failr
... program ....
failw:
Serout2 SO,BD,["Write Failed",10,13] ' Spaces
return
failr:
Serout2 SO,BD,["Read Failed",10,13] ' Spaces
return
Where 'failw is a routine that tells me what happened.
HOWEVER!! I have the same problem you are having - no I2C data!! I have just moved to an 18F2525, and cannot for the life of me figure out how to turn on the settings for I2C on C3, C4 which are the SLC and SDA pins..
My program just keeps saying it is failing..
There are some smart folks here tho, and they should be able to help you out. I'll watch the thread & maybe learn something for the 18F2525 too..
Tom
Bookmarks