Help with setting adcon1 for 16f877


Results 1 to 9 of 9

Threaded View

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


    Did you find this post helpful? Yes | No

    Default

    Hi Jessey,

    Well, now that you have a stable reference, I think the problem might be in using 2 different regulators.

    The MIC2954-03BZ is a 1% LDO part, and the 7805 will only hold to 4% of the target voltage. I usually see them running at around 4.85 - 4.90V.

    Since the "CMOS circuit" is powered from VDD, any change in the voltage may be changing the "Analog Out" value as well, causing it to act as a "Ratiometric" sensor. So even with a stable ref., the readings will still change according to the supply voltage.

    I think you might be able to get rid of the 7805, and still have the relay select the power source to the MIC2954. Something like this.
    <img src="http://www.picbasic.co.uk/forum/attachment.php?attachmentid=422">

    Added: The other half of the voltage divider going to RC5 (for AC power detect ??) is 1K. I cut the picture off a little short.
    Attached Images Attached Images  
    Last edited by Darrel Taylor; - 13th August 2005 at 20:05.
    DT

Similar Threads

  1. OSCON setting for 18F4520
    By Dennis in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 29th November 2009, 15:18
  2. PBP 2.60 & ADCON1 problem
    By bitbangerbob in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 21st October 2009, 12:06
  3. PICKit2 - warning about configuration words
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 26
    Last Post: - 4th August 2009, 14:01
  4. code size VS speed optimization setting?
    By Kamikaze47 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 28th April 2008, 14:38
  5. Setting up ADC....
    By robertmark68 in forum General
    Replies: 1
    Last Post: - 11th August 2006, 18:08

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