Grounding Negative voltage through I/O pin


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2003
    Location
    Australia
    Posts
    257

    Default Grounding Negative voltage through I/O pin

    Hi,

    I have a -15V signal (steady state through 100k resistor) that I want to pulse to 0V every 2 secs.

    Originally I wanted to use a P-MOSFET but, I need a negative gate voltage to turn it on etc. Problem is, the PIC outputs 0 to 5volts.

    Instead:
    Can I do away with the MOSFET all together and use an I/O pin to toggle the -15V signal.

    I was planning to do this by changing the state of an I/O pin from High empedance (input pin) to low (output pin) to ground the -15V signal through the pic.

    The -15V signal comes through a 100k resistor so current should be around .15ma which is well within the 25ma spec for current sinking. But is the 15V too high?

    Or will this Deep fry the Chip?

    Cheers
    Squib
    Last edited by Squibcakes; - 31st July 2006 at 05:03.

  2. #2
    Join Date
    Feb 2003
    Posts
    432


    Did you find this post helpful? Yes | No

    Default

    All PICs have protection diodes on the pins which prevent the pins going outside the range Vdd+0.3V and Vss-0.3V.

    Because your feed is via a high impedance resistor you wont damage the PIC but when you are expecting the output to be -15V it will only be -0.3V

    I am guessing that because you have -15V in your circuit you have dual supply rails so could you not use an Opamp to invert the pic output to be in the range 0V to -5V. You would then have -ve voltage to drive your PIC.

    Another possibility is to use a hardware PWM in the PIC to generate a negative voltage. Search for "negative voltage" and "LCD".

    Hope that helps
    Keith

    www.diyha.co.uk
    www.kat5.tv

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


    Did you find this post helpful? Yes | No

    Default

    Squibcakes, All of the pins on the Pic's that I have seen have reversed biased protection diodes from VSS to VDD. If you were to limit the current of the -15 volts signal and connect it to one of the processor pins it would place that pin at around -.7 volts in reference to ground. This is not a good practice and a great way of destroying a good Pic processor. Have a look at using an optoIsolator to do the interface.

    Dave Purola,
    N8NTA

Similar Threads

  1. negative pulse I/O pin how to?
    By rickyD in forum General
    Replies: 11
    Last Post: - 13th June 2008, 05:48
  2. make a low voltage output from a PIC pin
    By emptyset in forum General
    Replies: 1
    Last Post: - 8th February 2008, 19:20
  3. Microcontroller with 2 way paging application problem
    By oneohthree in forum mel PIC BASIC Pro
    Replies: 30
    Last Post: - 20th April 2007, 17:27
  4. Another RTC, DS1287
    By DavidK in forum Code Examples
    Replies: 0
    Last Post: - 12th December 2006, 17:07
  5. I/O pin and MCLR
    By Dwayne in forum FAQ - Frequently Asked Questions
    Replies: 1
    Last Post: - 15th July 2004, 10:52

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