12F675 and LM35 coding issue


Results 1 to 19 of 19

Threaded View

  1. #9
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Wink

    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 " !!!
    *****************************************

Similar Threads

  1. 12F675 cant serout to PC
    By ruijc in forum General
    Replies: 9
    Last Post: - 3rd December 2007, 00:11

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts