Menu

Internal voltage reference on PIC16F1788

Help
2015-10-22
2015-10-23
  • David Stephenson

    I'm having a small problem with some of the voltge reference settings.
    The last two bits in the FVRCON register should set this voltage.
    11 gives 4.096V which works
    10 gives 2.048V wich also works
    01 should give 1.024 V but the ADC reading comes out at 60144 which translating from two's compliment format gives -4096 for all voltage values on the ADC pin (I have Vref negative set to Vss).
    So any ideas why the 1.024 V does not work as expected.

     
  • David Stephenson

    Found the problem. It is well hiden in the datasheet that the minimum ADC ref voltage is 1.8.

     
  • kent_twt4

    kent_twt4 - 2015-10-23

    I've been merrily skating along with 2.048V FVR as Vref. Now I know there is trouble if I ever wanted to drop it down a notch. Thanks for the heads up.

     

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.