I have run the example in the simulator
Vade retro, Satanas ... simulators are TOYS !!!
Simulator ( which one ... might I understand ??? ) is a tool that doesn't "run" @ real speed ... so, pauses have to be divided per 50 or 100 not to become mad ... or even, have to be commented out !!!
so, forget about this sim when some "pause" statements are there ...
the program runs fine here ( I made a small demo where a counter increases temp from 0 to 100 instead of the 20 adc measures - was to verify the SELECT CASE structure, which is slightly different from "C" ... )
for the LM35 ... take it simple !!! :
0v for 0°C
0.01v for 1°C
0.10v for 10°C
1.00v for 100 °C
1.50 v for 150°C ... which is the maximum !!!
so, 2.50 v is a fried chip !!!
on a 5v00 ref ... 1.00v will show 1.00v / 5.00v x 1024 = 204 adc counts ... ( 1024 steps for full scale )
just Work with REAL chips in a REAL World ... you'll get TRUE results ...
Alain
Last edited by Acetronics2; - 8th March 2010 at 12:36.
************************************************** ***********************
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 " !!!
*****************************************
Bookmarks