AD Negative Voltage reference


Closed Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    938

    Default AD Negative Voltage reference

    Hello,

    I need to measure a 5V range but because of the voltage-regulator's "adjust" pin, the relative 0V (zéro) is already 1,2V!

    Currently, the range is from 1,2V to 6,2V if measured against Vss (GND).

    I already set ADCON0.6=1 (+Vref) and use a 6,2V Zener.

    Now, AD reads from Vss to +6,2V.

    But when I need to read "0V" (zéro), AD will still give me something like 70 (8bit res) because I can't get lower than 1,2V.

    How can I pull the GND up from 0 to 1,2V or what is the way to do it right?
    Roger

  2. #2
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Hi Roger,

    Are you really putting 6.2V on a PIC pin?

    Sounds dangerous to me. But maybe I'm missing something.
    <br>
    DT

  3. #3
    Join Date
    Apr 2006
    Location
    New Hampshire USA
    Posts
    298


    Did you find this post helpful? Yes | No

    Default Not to be negative

    Hi Roger,

    Pin input should generally not exceed Vcc on most ICs including the PIC. Your A/D input should be lowered by some means to 5V maximum (assuming you are supplying 5V to the PIC). Probably the simplest way to do this is with a voltage divider.
    See Darrel’s helpful post:
    http://www.picbasic.co.uk/forum/show...=2010#post2010

    There are ways to negate the regulator’s 1.2V. All ways would add to your circuit complexity. Depends if you want to just subtract it from the PIC A/D reading, or really make the output from the regulator go all the way down to zero volts. You may want to bump the resolution up from 8 bits to 10 bits and just work around the missing 1.2V chunk with programming.
    Anyway, don’t put more that the supply voltage into the pins (or negative voltage either ).

    -Adam-
    Ohm it's not just a good idea... it's the LAW !

  4. #4
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    938


    Did you find this post helpful? Yes | No

    Default This is how it looks like

    Voilŕ, this is how my circuit looks like:
    <img src="http://www.picbasic.co.uk/forum/attachment.php?attachmentid=1820&stc=1&d=118301268 7">
    Voltages I measure are:
    1.- GPIO.5 = HPWM = 1,2V to 6,2V;
    2.- GPIO.1 = AD = 1,2V to 5,1V.

    To make it work (voltage control), I must connect R5. In the same time, voltage on GPIO.5 raises up from 0V to 1,2V.

    Do I have to "protect" GPIO.5 pin against this 1,2V even if it is an Output?

    If yes, how?

    NB: is Vref limited to max 5V?
    Attached Images Attached Images  
    Roger

  5. #5
    Join Date
    Apr 2006
    Location
    New Hampshire USA
    Posts
    298


    Did you find this post helpful? Yes | No

    Post Absolute Maximum Ratings

    Hi Roger,

    PIC devices have a good deal of protection built into their design.
    There is the equivalent of Zener diodes on each I/O pin.
    These “voltage clamps” help to protect the device from us.
    The protection can handle a bit of “over voltage” caused, current (clamp current), but there is a limit.

    The PIC12F675 has a limit of 20 mA output clamping current.
    (Output clamp current, IOK (Vo < 0 or Vo >VDD) 20 mA).
    Your schematic diagram shows R1 protecting the 12F675 HPWM Output pin (GPIO.5).
    The protection depends upon the (over) voltage and the resistance value of R1.

    -Adam-

    Quote Originally Posted by PIC12F629/675 Data Sheet
    Absolute Maximum Ratings PIC12F675
    Voltage on VDD with respect to Vss -0.3 to +6.5V
    Voltage on MCLR with respect to Vss -0.3 to +13.5V
    Voltage on all other pins with respect to Vss -0.3V to (VDD + 0.3V)
    Input clamp current, IIK (VI < 0 or VI > VDD) ± 20 mA
    Output clamp current, IOK (Vo < 0 or Vo >VDD) 20 mA
    Maximum output current sunk by any I/O pin 25 mA
    Maximum output current sourced by any I/O pin 25 mA
    NOTICE: Stresses above those listed under ‘Absolute Maximum Ratings’ may cause permanent damage to the device.
    http://ww1.microchip.com/downloads/e...doc/41190c.pdf
    Ohm it's not just a good idea... it's the LAW !

Similar Threads

  1. Expanded Scale Voltmeter
    By Pic_User in forum Schematics
    Replies: 6
    Last Post: - 8th February 2008, 20:32
  2. ADC - 2 channels but not same voltage reference - how to?
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 25th November 2007, 19:03
  3. COMPARATOR - Voltage Reference settings
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 9th October 2007, 07:06
  4. Grounding Negative voltage through I/O pin
    By Squibcakes in forum Schematics
    Replies: 2
    Last Post: - 31st July 2006, 12:12
  5. Help Read negative voltage
    By gzorzi in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 25th October 2004, 07:42

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