Quote Originally Posted by tico View Post
Is there any way to display what the vref is in a 16f877 I an using A3 as my vref
but seem to have an issue with the A/D conversion. I have used a meter to verify the vref is what I want but was wondering of vref value could be output using debug or some other means.

Thanks in advance
Set up 2nd A/D (not Vref) on a diode (.25 or .6v) or other calibrated voltage reference (one of those 4.096v chips), and reference your Vref to that.
In other words, if you're 2nd A/D is a .6v diode (and it actually reads .6v, just an example here), and you're reading $80 on a 10 bit A/D, you're full scale ($400) will be 4.8v ($400 / $80 = 8 ; 8 * .6 = 4.8v).