Hi all
how can i interface DS1820 temperature sensor with 89s52 uC. So that it can display temp on LCD.
thanks in advance
aditya
The manufacturers code may be a good starting point. not as good as the datasheet, I have seen much 'untested' "manufacturers code"
But Google may be able to help with a link that has code ported for the relevant processor .... and is probably faulty. THEN we are AGAIN where someone who does not have the foggiest idea about what the code does can not find out what is wrong.
I STRONGLY TOTALLY ABSOLUTELY advocate against using "sample code" till you (have the ability to) code it yourself. Then, if you have a problem, you can understand the "sample code" and there may be a hint as to what you, yourself, missed.
Erik
In this particular case, the manufacturer (Maxim) is not just providing "sample" code - but gives you a complete protocol implementation (apart from the target-specific timer).
Yes, of course, you do have to spend some time reading the documentation - including the Datasheets - but it does work pretty much out-of-the-box