ADC on PIC12F510


Results 1 to 7 of 7

Threaded View

  1. #3
    Join Date
    Jan 2009
    Posts
    50


    Did you find this post helpful? Yes | No

    Default Re: ADC on PIC12F510

    Thanks Charles. I would really like to understand these commands as I fly by the seat of my pants in this coding regarding ADC. How can I learn what the code does and is there a reference to any of this?

    For example, I was under the impression that ADCON0.7 = 1 sets the ADC to right (or left) justifed?

    For ADCON0 = % 1000001, does this set ADC7 and ADC0 to active??

    Other chips use ANSEL??

    I wish there was a simply written (in lay terms) on what each command does exactly, and examples of each.

    For CM1CON0.3 = 0, I used this only because I saw someone else put it in their code to turn off comparators. Where do you find all this? I have no idea what CM1CON0.3 = 0 actually does, and if for example I use CM1CON0.1 = 0, what would that do if anything?

    The good news is I have gotten the 12F510 to read with ADCIN 0, adval. So, my code is working. However, I don;t exactly know why.

    Thanks for your assistance Charles!
    Last edited by SOTASOTA; - 21st December 2011 at 14:38.

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