Using TMP102 sensor utilizing I2C with LPC1768

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Using TMP102 sensor utilizing I2C with LPC1768

554 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by varun on Thu Apr 25 16:20:24 MST 2013
Hello,

I'm using TMP102 using I2C0 with the LPC1768. I'm having a hard time in reading the values from the sensors. any help would be really appreciated.  Has anyone ever used this setup before.
0 Kudos
Reply
1 Reply

510 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by cfb on Fri Apr 26 01:30:13 MST 2013
Yes. We've published an example written in Oberon at:

http://www.astrobe.com/forum/viewtopic.php?f=9&t=202

What exactly are you having difficulty with? The only tricky bit we found was converting the 12-bit values to the corresponding floating point value. See the procedure DataToDegrees for details. This could easily be converted to C if that is what you are using.

Also the example uses the I2C1 bus but changing it to I2C0 would be a straightforward task.
0 Kudos
Reply