I did some work around this a while back. From memory there was a problem w= ith some of the Bosch code as it used shifting to divide and this did not w= ork properly when doing negative numbers.=20 I was using it to calculate altitude and=20 Sent from my iPhone > On Mar 20, 2018, at 10:17 AM, Bob Blick wrote: >=20 > Hi Jim, >=20 > Were you able to find any examples on the web for PIC? If not, you could = get the BMP180 library for Arduino and port it or just see what they are do= ing so you can fix your code. >=20 > Bob > ________________________________________ > From: piclist-bounces@mit.edu on behalf of jim@= jpes.com > Sent: Tuesday, March 20, 2018 9:15 AM > To: piclist@mit.edu > Subject: [PIC]: I2C Communications With A BMP180 Temperature/Pressure/Alt= itude Sensor >=20 >=20 > All, >=20 > 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. >=20 > Thanks all, >=20 > Regards, >=20 > Jim >=20 >=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 > --=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 .