Can Vref be turned on and off


Results 1 to 4 of 4

Threaded View

  1. #2
    Join Date
    Feb 2003
    Location
    Salt Lake City, Utah USA
    Posts
    517


    Did you find this post helpful? Yes | No

    Smile

    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
    __________________

Members who have read this thread : 0

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