You are missing the NACK on the last read, and that is part of the TMP102
specification. See page 12 in the TMP102 data sheet, and look at this
diagram: Figure 9. Two-Wire Timing Diagram for Read Word Format
http://www.ti.com/lit/ds/symlink/tmp102.pdf
The data sheet is poorly written in this area. It shows an ACK by the
master (the PIC) on the last read. But then down in notes 2 and 3,
it says the master (the PIC) should leave SDA high to terminate a one
or two-byte read operation. This is a NACK !
The Philips i2c specification says on page 10, in section 3.16:
Quote:
When SDA remains HIGH during this ninth clock pulse, this is defined as
the Not Acknowledge signal.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum