Hi Steve:
Well that is my big question in my previous response. If this was doing what it is supposed to be doing, would I not see the result in my i2c_Data variable?
ADDR var word
ADDR = $07
PAUSE 10
I2CWRITE PORTC.4,PORTC.3,$A0,ADDR,[1]
PAUSE 10
I2CREAD PORTC.4,PORTC.3,$A0,ADDR,[i2c_Data],Fail
PAUSE 10
GOTO MAIN
Fail:
PORTC.5 = 1
GOTO MAIN
I would expect i2c_Data to contain "1"
It does not.
Am I giving everything enough time?
Thanks
Tim
Bookmarks