ds18s20 to 8051 interface

Status
Not open for further replies.

Hassan Gazal

Junior Member level 3
Joined
Apr 6, 2013
Messages
25
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Visit site
Activity points
1,450
dear all

please i need assembly code (not c code ) for interfacing 8051 with ds18s20 temp. sensor

thanks
 


can you convert it to me buy any way please ??

i need to ask something why i need to write bit or byte to this dsxxx as ,it's a temperature sensor and all i need is to read the temperature from it no need to write
can you please explain to me this issue as am confused please
 

Reading of DS1820 or DS18B20 sensor datasheet will help you to understand. With reading you read data, but with writing you send command to sensor to say what you read. Also Sensor have internal alarm, this require writing and configuring data.

0x44 // Issue command CONVERT_T
0xBE // Issue command READ_SCRATCHPAD

;-)
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…