A/D on 16f876a


Closed Thread
Results 1 to 4 of 4

Thread: A/D on 16f876a

  1. #1
    Join Date
    Feb 2006
    Posts
    89

    Default A/D on 16f876a

    This is a newbie question since that is what I am. I am trying to make RA0 - RA5 digital inputs, meaning I don't want them in analog mode. I have tried all sorts of adjustments with adcon1. I just don't understand how to do this. Please help. Thanks

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


    Did you find this post helpful? Yes | No

    Default

    Have you tried ADCON1 = 7? That should make them all digital.

    Don't forget CMCON. The default power on value for CMCON is 7, which means
    the comparator module should be disabled, but it's something to remember
    just in case.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  3. #3


    Did you find this post helpful? Yes | No

    Red face ADCON1 setting for all digital input

    Try ADCON1=6

    ------------------Picster----------------

  4. #4
    Join Date
    Feb 2006
    Posts
    89


    Did you find this post helpful? Yes | No

    Default Thanks a lot

    It worked as you expected. I thought I had tried that but apparently not. Thanks.

Similar Threads

  1. 12f675 A/d Miseries
    By MARAD75 in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 16th December 2008, 02:16
  2. 12F675 A/D and GPIO sleep interrupt
    By macinug in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 8th September 2008, 14:39
  3. Need advice on A/D
    By james in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 24th August 2007, 19:30
  4. A/D converter fails?
    By egberttheone in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 13th February 2006, 18:57
  5. 18F2525 A/D, Comparator and Vref modules
    By fbraun in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 20th May 2005, 23:17

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