I am experiencing a lot of difficulty in using a SRF08 ultra-sonic sensor using the I2C bus on a PIC microcontroller. I can write to the sensor as I can change the address from E0 to another at will, however cannot read. The result I receive is FF. I have attached a special logic probe to it and it states that I am getting a NACK when trying to read from the E1 register. I have tried to sensors thinking if I can write why not read. It was not the sensor, the problem is my firmware. Can someone please help me as its doing my head in. I am looking at the values using watch windows. My code is below.
1.1 KB Views: 16