Menu

AD resolution

Help
2008-08-02
2013-05-30
  • Ryan Mystique

    Ryan Mystique - 2008-08-02

    is there a way to get 12bit resolution on the AD?
    Or adjust the range it reads from to get more points ex(between 0 - 2 volts)?

     
    • kent_twt4

      kent_twt4 - 2008-08-02

      Negative on the 12 bit resolution.  To increase a-d resolution, apply a reference voltage of 2-2.5V to the Vref(+) pin.  A simple voltage divider would work from your supply voltage.  If precision is important, use a precision voltage reference by Microchip, TI, or whomever.  Using one that divides by 1024 makes the multiplication easy, say 2.048V.

      With the reference voltage supplied, you would set the Vref(+) pin as an input.  After that, set the voltage reference VCFG (or?) bit in the a-d config register, like "Set VCFG On". 

      Stick a potentiometer between Vdd and Vss with the wiper on say AN0.  You should watch the max value 'flip' over, or possibly give weird results, after less than half a turn.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.