I am trying to communicate with an I2C device. I have done almost everything I could think of but it is not working. The manual mentions stuff but not exactly matching with the datasheet of the device. The device datasheet mentions something about ACK/NACK which the pbp manual does not mention even once. On top my lack of understanding of I2C has left me with no other option to ask here about what I am doing wrong.
What I have done:
I have tried the following commands:
Value var byte
I2CREAD SDA,SCL,%000110100,0,[Value] ' Tried this
I2CREAD SDA,SCL,$1B0,0,[Value] ' Tried this
I2CREAD SDA,SCL,$1B,0,0,[Value] ' Tried this
Then When I do this:
debug HEX Value ' I am expecting '2E' on my screen. But I am not getting it.
(Location Zero will read 2E in the device)
I attach the section explaining the I2C from the datasheet. The device address is $1B.
Many thanks in advance
(Using 16F688 @ 4 MHz)
Bookmarks