Hi,
Just look at programs for DS1820 ...
or compare the " Operation measuring temp " chapters of DS18B20 and DS18S20
You will find a correct program for DS1820 in The Parallax Stamp applications ...
Alain
Hi,
Just look at programs for DS1820 ...
or compare the " Operation measuring temp " chapters of DS18B20 and DS18S20
You will find a correct program for DS1820 in The Parallax Stamp applications ...
Alain
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Finally Got It Working Better
Thanks For The Inputs
Notice I Said Better Still Reads 10 F Deg Low
But Better Really Dont Understand Why Mikroe Works Perfectly With The Same
Hardware Using Pbp 5.0 And Mcsp 3.0
Must Be Some Difference In The Complier No? Maybe?
I posted a program that reads DS18S20s. I have 4 of them on onewire and I read them with no problem and I use PBP.
I do not expect temps below zero so I have not made allowances for that.
http://www.picbasic.co.uk/forum/showthread.php?t=9116
Hi jcleaver,
You might want to check Maxim forum at:
http://discuss.dalsemi.com/index.php?
They had rejects on DS1820 family showing wrong temperature and there is a fix for it.
Nick
I Do Appreicate Your Inputs
Manwolf Your Program Looks Great But Way Beyond My Knowledge
And As For As The Ds18 Goes I Have Tried Several
Again To Ask ?
Why Does Mikro Work Where Pbp Does Not
There Has To Be Some Difference In The Compliers
Using Exactly The Same Hardware Easypic4
Could It Be The Math Conversion Using Pbp
Both Programs Use The Same Formula For C To F
How are you reading the temp form the DS18S20 in PBP?
Are you using one-wire or something else?
i have attached the 2 programs one in pbp which reads temperature incorectly
the other mikroe which works no hardware changes are made really interested in the difference
thanks
jack
Last edited by jcleaver; - 23rd July 2008 at 00:54.
Speaking strictly about PBP....
You know, just like it says in the manual, define's have to be in CAPS.
Therefore, the
define osc 20
is ignored and the timing generated by the code is generated for an oscillator of 4mhz, but apparently you are running it at 20mhz, and therefore, probably far too fast.
Did you write this code or copy/paste it? Why not use PBP's built-in OWIN/OWOUT commands?
Last edited by skimask; - 23rd July 2008 at 02:41.
Bookmarks