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!
Bookmarks