Manu, Looking at the BMP180 datasheet, do you see the Slave ACK's from the BMP180 ? =20 YES. The first data byte coming back is 0xFF which shouldn't be. Additionally, according to the datasheet, to read the converted result, you need=20 to read with a REPEATED START as described in Figure9: Timing diagram read 16 bit=20 A/D conversion result. NOTED. However, I've tried it both ways, ie.. using a RESTART, and using START. =20 Either way, the result is the same. The first byte back is 0xFF. =20 The normal read will put a STOP bit after your first read, which will mess things completely. The library in MikroCPro does not put a stop after a read. You put a stop function=20 where you need it when you're done communicating. This is also verified when looking=20 on the scope as I'm monitoring the SDA and SCK signals. I do appreciate your insight. I'll look again at the points you make just to be sure. =20 Regards, Jim > -------- Original Message -------- > Subject: Re: [PIC]: I2C Communications With A BMP180 > Temperature/Pressure/Altitude Sensor > From: Manu Abraham > Date: Tue, March 20, 2018 1:34 pm > To: "Microcontroller discussion list - Public." >=20 >=20 > Hi Jim, >=20 > Looking at the BMP180 datasheet, do you see the Slave ACK's from the BMP1= 80 ? < YES >=20 > Additionally, according to the datasheet, to read the converted > result, you need to read with a REPEATED START > as described in Figure9: Timing diagram read 16 bit A/D conversion result= .. >=20 > ie, you cannot read the result register, the same way you are reading > the ID register, to put it simple. >=20 > The normal read will put a STOP bit after your first read, which will > mess things completely. >=20 > Cheers, >=20 > Manu >=20 >=20 > On Tue, Mar 20, 2018 at 9:45 PM, wrote: > > > > All, > > > > Does anyone have any experience with this sensor? I have tried > > getting the temperature and pressure > > conversions to work, but I'm having no luck so far. I am using > > MikroCPro for PIC compiler with the I2C > > library. to write my program. I can get the unit ID and the > > calibration data from EEPROM. But no matter > > what I do, I cannot get the temperature or pressure values. > > I've looked on the web for examples, and I'm believe I'm doing > > everything correctly. I was just > > wondering if there is something that I'm missing. If anyone has any > > ideas, please let me know. > > > > Thanks all, > > > > Regards, > > > > Jim > > > > > > -- > > http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive > > View/change your membership options at > > http://mailman.mit.edu/mailman/listinfo/piclist > --=20 > http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .