Project with PIC16F818 & LM34


Closed Thread
Results 1 to 3 of 3
  1. #1
    fesparza's Avatar
    fesparza Guest

    Default Project with PIC16F818 & LM34

    I came across the sample code from Rentron. I am brand new to PICBasic. What does the 10 & 13 mean in the following:

    DEBUG "Temperature is: ",DEC temp," Deg F",10,13

    Also, I want to store the temp in a register so that I can then write some kind of If-else code to compare it to certain ranges, and output it to a respective LED.

    Thanks for the help.

    Frank

  2. #2
    Join Date
    Feb 2003
    Posts
    432


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by fesparza
    What does the 10 & 13 mean in the following:

    DEBUG "Temperature is: ",DEC temp," Deg F",10,13
    ASCII 10 = <LF> Line Feed
    ASCII 13 = <CR> Carriage Return

    Appendix D of the PBP manual "ASCII Table"

    Hope that helps
    Keith

    www.diyha.co.uk
    www.kat5.tv

  3. #3
    fesparza's Avatar
    fesparza Guest


    Did you find this post helpful? Yes | No

    Default

    This (Rentron) code is almost exactly what we need for our project. Except that we want the temperature reading to be stored in a register so that we can compare it to some values using IF-Then statements, and light up a certain LED. Is this code saving this value in the "temp" location that was defined earlier? If so, where is the 'temp' locations and what lines of code could I delete since I have no need for the serial communication to the PC?

    Thanks

Similar Threads

  1. A Serial GLCD 128x64 Simple Project
    By Oldspring in forum Off Topic
    Replies: 0
    Last Post: - 8th March 2010, 20:58
  2. A Temperature & Humidity Data Recorder Project
    By Oldspring in forum Off Topic
    Replies: 0
    Last Post: - 9th July 2008, 18:47
  3. Temp project using LM34
    By Philley in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 1st May 2007, 22:51
  4. Help on coding/ selecting PIC chip for project
    By lovemeok in forum General
    Replies: 0
    Last Post: - 27th July 2006, 19:21
  5. A category for Project Ideas
    By Pic_User in forum Forum Requests
    Replies: 2
    Last Post: - 23rd June 2006, 07:29

Members who have read this thread : 1

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