Using + & -vref on PIC, how to?


Closed Thread
Results 1 to 2 of 2
  1. #1
    pjsmith's Avatar
    pjsmith Guest

    Default Using + & -vref on PIC, how to?

    Hi,

    How do I tell the PIC to use the a/d reference voltages supplied on pins RA2 & RA3. I'm supplying RA3 with 2.5v, I've not configured them as inputs, but it still makes no difference to the a/d conversion samples I'm making on RA0

    Thanks.

  2. #2
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    Look in the A/D Converter section of the PIC's Datasheet. Since we don't know what PIC you're using we can't point you to the correct page. Yes, the VRef pins have to be made inputs with the correct TRISA setting, but you also have to configure your A/D registers appropriately for using an external VRef...

    For the 16F876/877 in the Datasheet look at the ADCON1 register (Datasheet 11-2) there you will see a table which details the AD Port Configuration Control Bits (on my Datasheet Ref 30292C it's on page 112). They have to be set appropriately for the AD Configuration of your choice.

    Until you've told the PIC you're using external VRef's it's not exactly going to work.

Similar Threads

  1. SMS via pic
    By kenandere in forum GSM
    Replies: 15
    Last Post: - 10th March 2010, 10:00
  2. HSERIN & Interupts (aka controlling PIC programs from a remote PC)
    By HankMcSpank in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 17th June 2009, 14:46
  3. pic to pic ir link versus wired link : help please anyone
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 30th May 2008, 21:01
  4. I2C Slave, config Vref - + in pic with ADC
    By sebapostigo in forum PBP Wish List
    Replies: 4
    Last Post: - 5th March 2007, 03:21
  5. Serial Pic to Pic using HSER
    By Chadhammer in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 11th March 2005, 23:14

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