16F818 ADCON question


Closed Thread
Results 1 to 2 of 2
  1. #1

    Default 16F818 ADCON question

    I always put ADCON1 = 7 when compiling the 16F818 to make the analog channels digital. However, it looks to me that ADCON0 = 0 should do the same thing. Can I substitute ADCON1 = 7 with ADCON0 = 0 to make all analog inputs digital or am I missing something? It compiles without errors and "seems" to work but, you know PIC's, a simple oversight can haunt you later. Thank you.

  2. #2


    Did you find this post helpful? Yes | No

    Default I answered my own question

    Sorry to bother Everybody. ADCON0 controls the AD module. ADCON1 configures the port pins. No you can't substitue ADCON1 = 7 with ADCON0 = 0.

Similar Threads

  1. FREQOUT - PWM question
    By Etcho in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 25th February 2007, 23:51
  2. adcon problems with adcin
    By mbw123 in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 3rd January 2007, 22:15
  3. Question for a math guru
    By Christopher4187 in forum General
    Replies: 3
    Last Post: - 22nd November 2006, 09:45
  4. Please answer my first question
    By John_001 in forum Off Topic
    Replies: 1
    Last Post: - 15th September 2006, 06:49
  5. ADCON does not compile 16F628
    By mslaney in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 14th January 2005, 15:43

Members who have read this thread : 1

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