16F1826 ADC setup help!


Closed Thread
Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    Oct 2009
    Posts
    583


    Did you find this post helpful? Yes | No

    Default Re: 16F1826 ADC setup help!

    What version of PicBasicPro are you using ?

    Also, by not including all the code, it's like saying you have all the ingredients but not telling us the recipe and then asking people why you cake won't rise !

    I'm no expert, but you seem to be setting up ANSEL and ADCON so it's not as if all ports are digital or something like that is the cause, so it could possibly be something in the main part of the code which ou haven't shown.

  2. #2
    Join Date
    Jan 2009
    Posts
    50


    Did you find this post helpful? Yes | No

    Default Re: 16F1826 ADC setup help!

    Thanks for your response Scampy!
    I was just wanting to use simple code to get the ADC to work. With the help of Richard's code (from the MELABS forum) I was able to get the ADC to work. Thanks to your help I re-looked at the rest of my code, and I found the issue. I had set PortA.2 to an output later on (by mistake!).

    So, all is working PERFECTLY now!!!!

    Thanks again!!
    Russ :-)

Similar Threads

  1. ADC setup on 12F1822 ??
    By swr999 in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 31st October 2014, 01:06
  2. Ports interacting?? 16F1826
    By SOTASOTA in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 14th February 2014, 20:22
  3. Help to setup ADC for 16F1826
    By SOTASOTA in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 12th February 2014, 01:06
  4. ADC problems with a 16F1826 chip
    By alec in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 1st September 2012, 23:09
  5. ADC setup for 16F716
    By droptail in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 12th November 2009, 03:39

Members who have read this thread : 2

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