Using TMP102 sensor utilizing I2C with LPC1768

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Using TMP102 sensor utilizing I2C with LPC1768

591 次查看
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 项奖励
回复
1 回复

547 次查看
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 项奖励
回复