12f638 simple temperature monitor


Closed Thread
Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Oct 2009
    Location
    Utah, USA
    Posts
    427


    Did you find this post helpful? Yes | No

    Default Re: 12f638 simple temperature monitor

    Davy,

    Our dearly departed Darrell Taylor (world class programmer, *(my opinion)) left us with this little tidbit...
    it's an include file that will set most any PIC's pins to "all digital"
    just put this file in the same directory as your code and then put this line somewhere near the top of your code

    Code:
    INCLUDE ALLDIGITAL15.BAS
    you may need to eliminate other attempts to turn off analog's so they don't confilict.

    Note: the 15 in the file name indicates that it is his version 1.5

    I hope this helps and that I haven't led you astray as I am not the greatest programmer
    Attached Files Attached Files
    Dwight
    These PIC's are like intricate puzzles just waiting for one to discover their secrets and MASTER their capabilities.

  2. #2
    Join Date
    Jan 2013
    Location
    Texas USA
    Posts
    229


    Did you find this post helpful? Yes | No

    Default Re: 12f638 simple temperature monitor

    Try these settings:

    OPTION_REG = $FF
    INTCON = $00
    PIE1 = $00
    PCON = $10
    ANSEL = $00
    CMCON0 = $07
    TRISIO =$00
    WPU = $00
    IOC = $00
    CCP1CON = $00
    ADCON0 = $00

    Change this "LED CON 2 ' pin 5 for led indicator" to this
    "LED var GPIO.2"
    Regards,
    TABSoft

  3. #3
    Join Date
    Sep 2010
    Location
    Las Vegas, NV
    Posts
    305


    Did you find this post helpful? Yes | No

    Default Re: 12f638 simple temperature monitor

    Perhaps I can't use GPIO.2 for an output to light the LED.
    You can use GPIO.2 to light an LED if properly designed. I don't know much but I know that. Since you moved it to GPIO.0 and it worked then it should be designed correctly.

    I think tabsoft has it right to change LED to LED var GPIO.2

    Ifn that doesn't work can you show schematic?

Similar Threads

  1. cheap and simple way to measure temperature
    By Heckler in forum Schematics
    Replies: 14
    Last Post: - 7th March 2011, 22:56
  2. AC main monitor
    By tallen in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 25th August 2009, 16:23
  3. voltage monitor
    By aftab in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 17th August 2007, 09:57
  4. Baby Monitor
    By inoonan in forum Serial
    Replies: 2
    Last Post: - 14th September 2006, 22:54
  5. Car monitor
    By Christopher4187 in forum General
    Replies: 2
    Last Post: - 27th March 2006, 18:13

Members who have read this thread : 0

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

Tags for this Thread

Posting Permissions

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