Code needed : LM35 Temperature sensor display on LCD

Discussion in 'Homework Help' started by chiakhai_gan, Oct 15, 2009.

  1. chiakhai_gan

    Thread Starter New Member

    Oct 15, 2009
    5
    0
    Hi guys!

    My project task is to build a program to read from a LM35 temperature sensor using PIC18 and MikroC v8.2 compiler.

    Anybody here knows how pls let me know !
    THANKS !
     
  2. t06afre

    AAC Fanatic!

    May 11, 2009
    5,939
    1,222
    If your PIC18 do have a A/D converter, I am almost certen it will have one or more. You can for do it. The LM35 has a Linear +10.0 mV/°C scale factor so depending on the temprature range you may have to amplify the LM35 output somewhat, so it match the A/D range. And for the code. It is tons of Microchip code out on the net. Google is your friend.
     
  3. chiakhai_gan

    Thread Starter New Member

    Oct 15, 2009
    5
    0
    thanks for the help !
    I googled some example codes for this program, but most of them are in C language.

    may I know how to convert them to assembly language?
     
  4. t06afre

    AAC Fanatic!

    May 11, 2009
    5,939
    1,222
    Hmm are you g to use C or assembler? Anyway my tip for you is to start in one end and do some work. Like getting data from the internal A/D as one example. divide your assignment into several small isolated problems. Then if you are stuck ask for help here. Do not waste your time on endless Googling. You will never find some code exact solving your problem
    Just do it ;)
     
  5. chiakhai_gan

    Thread Starter New Member

    Oct 15, 2009
    5
    0
    im using assembly. yeah if i encounter any problems i will post here !
    thanks a lot !
     
Loading...