Thanks for responding Mackracit!
Boy, I sure do not understand this!
I've looked at this link before
http://www.rentron.com/PicBasic/LM34.htm
and thought that ADCON1=%00000011 is used when using an external reference voltage and ground with up to 4 analog input channels.
In looking at the datasheet, it looks to me that ADCON1=%00000010 can be used for up to 5 input channels
using + 5 VDC and ground as the reference voltage.
So, I guess what I am asking you is, how can ADCON1=%00000011 be used to read both channels accurately?
It seems to me that I'd have to switch between ADCON1=%00000011 and ADCON1=%00000010 to be able to do this????
I think I have two separate variables to store the two A2D channels, do I not?
Now I am totally confused!




Bookmarks