Temperature sensing PIC16 and PIC12 chips


Closed Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530

    Default Temperature sensing PIC16 and PIC12 chips

    Hey, did anyone notice that some of the newer PIC16F1xxx and PIC12F1xxx chips (like the PIC12F1822 ) have a temp sensor on their die!? Just noticed it today. Kind of cool I think. Not very precise, but maybe with a little oversampling it could get interesting.

    Name:  temperature.PNG
Views: 1657
Size:  20.9 KB
    The on-board temperature indicator can be used to
    measure the device temperature, which will
    correspond to the temperature in its environment with
    some delay. The indicator is measured using the ADC
    and can be used uncalibrated for coarse temperature
    measurements. For more precise temperature
    measurements, calibration is required to account for
    device parameter variation. Depending on the
    application, calibration measurements at one or two
    temperatures may be required. Since the ADC results
    are dependent on its provided references, the fixed
    references need to be supplied either by using the
    onboard fixed references, or by using a regulated
    supply. Otherwise, the device supply voltage must be
    calculated using the fixed voltage reference.
    Name:  temp2.PNG
Views: 1612
Size:  58.6 KB
    Attached Images Attached Images
    Last edited by ScaleRobotics; - 19th December 2010 at 22:29.
    http://www.scalerobotics.com

  2. #2
    Join Date
    Sep 2005
    Location
    Campbell, CA
    Posts
    1,107


    Did you find this post helpful? Yes | No

    Default

    Kinda neat, but not accurate enough for real uses.
    Charles Linquist

  3. #3
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Charles Linquis View Post
    Kinda neat, but not accurate enough for real uses.
    Yes, definately better to buy a sensor if you need to be anywhere close to accurate. But still, might be useful for some general temps, like my project box is overheating ... etc.



    Name:  temp3.PNG
Views: 1409
Size:  23.6 KB
    http://www.scalerobotics.com

  4. #4
    thitronic's Avatar
    thitronic Guest


    Did you find this post helpful? Yes | No

    Default Re: Temperature sensing PIC16 and PIC12 chips

    How do I set this up. I am using PIC12f1501, however I am unable to access the temp module...no matter how much hot air I blow on the chip the ADCIN do not change. Please part of my program below:

    ADCON0 = %00001111
    FVRCON.5 = 1
    FVRCON.4 = 1
    ADCON0 = %01110111
    adcin 29, temp
    IF TEMP > 600 THEN
    LOW PORTA.2

  5. #5
    Join Date
    May 2013
    Location
    australia
    Posts
    2,386


    Did you find this post helpful? Yes | No

    Default Re: Temperature sensing PIC16 and PIC12 chips

    How do I set this up. I am using PIC12f1501
    where is the rest of the adc module setup

    ADC_CLOCK = ?
    ADC_BITS = ?
    ADC_SAMPLEUS =?
    Right-Justify ?

    OSC = ?
    vcc= ? volts
    temp is defined as a ? word/byte


    it all matters

    Code:
    ADCON0 = %00001111 ; what do you expect from this
     FVRCON.5 = 1
     FVRCON.4 = 1
     ADCON0 = %01110111  ; or this
     adcin 29, temp       
     IF TEMP > 600 THEN 
     LOW PORTA.2
    Warning I'm not a teacher

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