↑ ↓

Hi-Tec C ile DS1820'yi nasıl okuyabilirim ?

Başlatan siddik, 25 Şubat 2006, 22:15:15

siddik

877 kullanarak DS1820'yi okumaya çalışıyorum.
ASM, CCS ve PBpro ile yazılmış kodlar buldum. Ancak Hi-Tec C 'ye tam analamıyla çeviremiyorum. Hatta bilgisayarın Com portundan pic (Hi-Tec C) yardımıyla okuma yapan bir kod 'da buldum ancak ( isis'te ve gerçek uygulamada ) 27'den başka değer okuyamıyorum. Düzgün çalışan bir kütüphane ve bu kütüphanenin kullanıldığı çalışan örnek bir programa ihtiyacım var. İlgilenenlere teşekkür ederim.

trinitrotoluen

siddik pic işinde daha acemi sayılırım ama aynı sorun benimde başıma geldi hocalarım daha hassas olduğu için yaptığım bir projeye ısı sensörü olarak ds1820 yi koymamı istemişti maalesef başaramadım ama yerine lm35 kullandım nerede kullanacağını bilmiyorum ama seninde lm 35 ten başka çaren yok gibi. bu protokolü öğrenmeye çalışıyorum cevap olmadığına göre fazla da bilen yok galiba ,işimiz zor ama gelişmelerden seni haberdar ederim                                                                                                                                                                                                                       iyi çalışmalar
"Gelecek, bu günden gelecek."

CoşkuN

DS1820 ile 1821 arasında ne kadar fark var bilmiyorum ama aşağıdaki adreste ds1820 ile ilgili örnek bir proje var:
http://www.microchipc.com/sourcecode/#ds1821
Dallas DS1821 three-pin digital thermostat by Mike Pearce

From readme.txt: The DALLAS DS1821 is a 3 pin digital thermostat that can have its trigger points programmed using the Dallas 1-wire interface. The need arose for this programmer when we had to replace the bi-metal thermostat controls from some fridges in the department for safety reasons. The DS1821 was the ideal replacement, the combination of small size, low operation voltage (3-5 volts) and operates to pre programmed settings that couldn't be changed unless you had a special programmer. Hence the birth of the DS1821 Programmer project. This project uses the 1-wire and I2C routines.The Turn On, Turn Off and Polarity values can be programmed using this code. There are 3 buttons, 'Menu', '+', and '-' to allow adjustments. The Data is displayed on a 4 digit I2C LCD controlled by a PCF8577 (Philips).

Benzer Konular (5)

▲