Display Vref 16f877


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2006
    Posts
    38

    Default Display Vref 16f877

    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

  2. #2
    Join Date
    Mar 2003
    Location
    Commerce Michigan USA
    Posts
    1,166


    Did you find this post helpful? Yes | No

    Default

    tico, There is no way to report the value of VREF as it is used as the full scale rereference for the actual A/D. If there was some kind of band gap reference internal to the PIC that could be switched into the reference circuit then it would be possible but no luck.

    Dave Purola,
    N8NTA

  3. #3
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    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).

Similar Threads

  1. Hdsp 21xx display
    By Original in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 7th June 2012, 20:07
  2. Replies: 2
    Last Post: - 14th July 2008, 22:11
  3. DS1820 display with 7-seg 4 digits
    By chai98a in forum Code Examples
    Replies: 12
    Last Post: - 10th April 2008, 13:12
  4. Replies: 14
    Last Post: - 26th September 2007, 05:41
  5. problem with 16f877 and display
    By Steve S. in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 15th January 2007, 21:53

Members who have read this thread : 1

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