ADC on 16f876a


Closed Thread
Results 1 to 2 of 2

Thread: ADC on 16f876a

  1. #1
    Join Date
    Feb 2006
    Posts
    89

    Default ADC on 16f876a

    Hello all.

    I have just a simple question whose answer alludes me. I need to set porta.1 and porta.3 to analog inputs and the rest to digital. How would I do this. I have tried playing around with adcon1 but I can't seem to get the right combo. Thanks for any help.

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


    Did you find this post helpful? Yes | No

    Default

    Sorry Travan,

    You can't do that with an 876a.

    The options are limited to the configurations listed under the ADCON1 register in the datasheet.

    The closest you can get is A0, A1 and A3 as analog, and the rest digital. With ADCON1 = 4
    <br>
    DT

Similar Threads

  1. Stable Adc Reading Routine
    By gebillpap in forum General
    Replies: 27
    Last Post: - 13th May 2015, 02:18
  2. Can't get ADC to loop
    By TravisM in forum mel PIC BASIC
    Replies: 2
    Last Post: - 11th October 2009, 15:33
  3. 16F876A ADC write and read?
    By clem in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 18th April 2007, 20:35
  4. ADC value with 2 decimals on an LCD
    By Squibcakes in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 2nd December 2005, 15:54
  5. 12F675 ADC 'Issues'
    By harrisondp in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 31st March 2005, 01:55

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