16f877 and LM34 Problem


Closed Thread
Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Try changing the ADC_CLOCK to 2 or 3.

    FOSC/8 is too fast for 20mhz.

    Datasheet says max of 5mhz OSC with FOSC/8.

    FOSC/32 (ADC_CLOCK 2) should work at 20Mhz.
    But, FRC (ADC_CLOCK 3) will work at any OSC.

    HTH,
    DT

  2. #2
    Join Date
    Dec 2006
    Posts
    38


    Did you find this post helpful? Yes | No

    Talking

    That was the ticket set ADC_CLOCK 3
    set vref to 2.55
    lm34 .734
    debug states 73 degrees

    Thanks for all of your help I have been fighting with this for a bit and it was something as simple as that.

Similar Threads

  1. Temp project using LM34
    By Philley in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 1st May 2007, 22:51

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