I am just now working with the ds1820 myself. I also use Pic Simulator.
If you go to page 17 of the data sheet you will see some examples of the Rom commands. 44h is when the master asks for a temp conversion, CCh is a skip rom command. This command can be better explained by the data sheet or others of this group. I don't know all I dont understand about the ds1820 right now myself.
From my understanding of it so far- there needs to be an exact,but simple procedure used to communicate with the ds1820. The 1 wire commands in PIC-SIM-IDE basic are used to set up the proper steps.
If you want to sence temperature with an analog device, you would use a thermistor.
WoW i have just checked the link, it looks great, I think it will help me a lot
Thanks dear...
I will take an idea because i m not working on a temperature sensor yet i m working on a methane sensor and i will post a new thread because i guess i still need your help if it s possible
Again Thanks a lot
That’s correct, it will still be one wire (depending on your application - see its datasheet) but the beauty of the LM35 is that each 10mV = 1 degree C, and it can handle -55 to +150 deg C.
Another benefit is that the LM35 only takes the amount of time to perform an ADC on the output, where as the DS1820 takes ~750mS on average
Your absolutely right, most PIC's can handle 10bit ADC (analogue to digital conversions) so that means they have a 0000000000 to 1111111111 resolution (that’s 0 - 1023 in decimal).
If 5V DC was they highest value on an input (i.e. 1023) then the resolution for each step would be 0.00488V DC
That’s more than accurate for most applications, but if you want to, you can improve the resolution by using an amp to make the scale of the input bigger