LPC2138 and DS18B20 interfacing (1wire protocol in lpc21XX)

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

LPC2138 and DS18B20 interfacing (1wire protocol in lpc21XX)

4,727 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by eric_s88 on Fri Nov 15 01:10:47 MST 2013
hi everyone!

I want to drive ds18b20 via lpc2138.

this temperature sensor has an output via 1wire protocol. Codevision has a libraries for both 1wire and especially for ds18b20. but doesnt have source!
I want ro drive it via lpc2138 arm7 uC.

I have read some codes but they didn't help me.

*does anybody have experience with this?
*anybody knows about how to implement 1wire protocol on lpc2138?

I have attached DS1820 datasheet and a pdf that talks about that(sth like datasheet) and a code, that has only the functions name.
标签 (1)
0 项奖励
回复
5 回复数

3,792 次查看
athmesh_n
Contributor IV

Hope you got the solution

0 项奖励
回复

3,792 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by LabRat on Mon Feb 10 02:17:41 MST 2014
???

http://www.lpcware.com/content/forum/onewire-bus-master-implementation
0 项奖励
回复

3,792 次查看
shaheenshamshad
Contributor III

Hi

This link is not working.

I want to implement one wire protocol interface using LPC546XX mcu ,McuXpresso IDE and sdk 2.4.

I have searched in sdk example section but I did not get any sample project on that.

Kindly guide.

Regards,

SS

0 项奖励
回复

3,792 次查看
athmesh_n
Contributor IV

which one wire sensor are you using? one wire protocol changes with sensor. Please refer the datasheet of that sensor

0 项奖励
回复

3,792 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by effiziente.st on Mon Feb 10 02:13:28 MST 2014
Here were some details, may be you can port the code?

http://www.lpcware.com/system/files/22-LPC1768-Temp-Sensor-programming.pdf

plse tell if this path has lead to success, I'm thinking about a transfer from PLC to microcontrollers but have not found the sensor support and sensor  (mostly temp but also light, voltage..) and actor (mostly PWM and relay) biotope I would need.

thnx
0 项奖励
回复