Yes – the easiest way is to NOT use the ADCIN command but roll your own like that shown on MELabs website:
http://www.melabs.com/resources/samples/pbp/a2d10.bas
With this approach, you can change ADCON1 (which controls vrefs and A/D port assignments) whenever you would like. Make sure and read section 11 of the datasheet.
----------
edit: Being a control freak, I have never used ADCIN for A2D work - I would suppose one could change ADCON1 on the fly as well with this approach but this has not been verifed by me (I use the approach above all the time and know it works)
----------
Last edited by paul borgmeier; - 31st August 2006 at 15:27.
Reason: additional comment
Paul Borgmeier
Salt Lake City, UT
USA
__________________
Bookmarks