PIC sinking voltages higher that Vdd???


Closed Thread
Results 1 to 31 of 31

Hybrid View

  1. #1
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by manumenzella View Post
    Hey. Thanks for all the answers. I think im going to connect a npn transistor as most of you suggested. The probem is that, as it is battery powered, i need to keep the current draw very small. Do you know which will be (more or less) the current flowing from the IO to the base of the npn???
    I was going to use the multimeter to measure it, but, after the cleaning lady came home, the screen was broken into pieces!!!
    Well, thanks again for your help
    Manuel
    Using a transistor instead of a MOSFET is going to cost you a few mA in base current right there. MOSFET's have practically no gate current, generally in the pico-amps (except when switching states due to gate capacitance). Use an N channel MOSFET, 2N7000. It'll easily handle 12v across the drain-source, and switch on/off with 5v logic levels on the gate.

  2. #2
    Join Date
    Feb 2005
    Location
    Kolkata-India
    Posts
    563


    Did you find this post helpful? Yes | No

    Default Which PIC, any open drain outputs ?

    Hi,

    Some PICs have an open drain output (say PORTA.4). This means that it has only the lower side N-Channel MOSFET inside. And according to a Microchip FAE this can tolerate upto 8 volts safely. Hopefully it should not be a problem with your buzzer and 9v battery.
    Regards

    Sougata

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


    Did you find this post helpful? Yes | No

    Default

    And according to a Microchip FAE this can tolerate upto 8 volts safely.
    You're right, it does say that. But it also says that PORTA.4 has protection diodes to VDD and VSS.

    Which one are we supposed to believe?

    I suppose a little testing would tell.
    <br>
    DT

  4. #4
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Darrel Taylor View Post
    You're right, it does say that. But it also says that PORTA.4 has protection diodes to VDD and VSS.

    Which one are we supposed to believe?

    I suppose a little testing would tell.
    <br>
    YES! DESTRUCTIVE TESTING! I LOVE IT!
    I've pulled 9v at about 5mA thru A.4 before, don't know if it was determental to the chip or not, but it seemed to work while I was doing it and I am still using the chip.

    On the same note, I'm in Tucson, Az. for another couple of weeks. Man is it dry down here! I'm getting some killer static shocks from the doorknob! zzzztttt

  5. #5
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    so nobody else use 2 i/o to double the voltage around those cuties?

    EDIT : Aw crap... we talked about piezo buzzer right... not sounder... sorry

    unless you want to heard something different than it's suppose to be... forget it
    Last edited by mister_e; - 26th February 2007 at 04:27.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  6. #6
    Join Date
    Feb 2003
    Location
    Salt Lake City, Utah USA
    Posts
    517


    Did you find this post helpful? Yes | No

    Smile

    Quote Originally Posted by Darrel Taylor View Post
    But it also says that PORTA.4 has protection diodes to VDD and VSS.

    Which one are we supposed to believe?
    Figure 5.4 in the datasheet for the 16F628 shows no clamp diode to VDD.
    Paul Borgmeier
    Salt Lake City, UT
    USA
    __________________

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


    Did you find this post helpful? Yes | No

    Default

    This figure 5-4 ?


    <br>
    DT

  8. #8
    Join Date
    Feb 2005
    Location
    Kolkata-India
    Posts
    563


    Did you find this post helpful? Yes | No

    Default Then what is this ??

    Hi,

    This one is from a PIC18F452 datasheet page 90. Note that I/O pin has protection diodes to VSS only.
    Attached Images Attached Images  
    Regards

    Sougata

  9. #9
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,170


    Did you find this post helpful? Yes | No

    Default

    Darrel, take a look at Mid-Range Reference Manual for 16 series. At page 145, Figure 9-3 it clearly states that clamp diode is only to Vss. It could not be otherwise for higer voltage connection. So I suppose the 5-4 you posted might be wrong.

    Ioannis

    EDIT: Damn, Sougata just got me for a few msec...!

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


    Did you find this post helpful? Yes | No

    Exclamation

    Hmmm, well I guess it depends on which PIC you are looking at.
    manumenzella never specified. And the original post regarding RA4 as much as assumed they are ALL like that.

    Paul was referencing the 16F628, which according to the most recent datasheet, Has the diode.

    If you look at a 16F628A, then it doesn't.

    If you look at the 18F452 datasheet from a couple years ago, it says it does, but the most recent one doesn't.
    Was it a change in the datasheet, or the silicon?

    Like my original comment,
    "Which one are we supposed to believe?"

    Personally, I'd go with the transistor.
    <br>
    DT

  11. #11
    Join Date
    Feb 2003
    Location
    Salt Lake City, Utah USA
    Posts
    517


    Did you find this post helpful? Yes | No

    Smile

    From an earlier post the OP had

    >>Hi. My name is Manuel, and I am building a project around the PIC16F628A and a piezo

    http://www.picbasic.co.uk/forum/showthread.php?t=5773

    I, in a sloppy manner, left the A off of my reply about the 16F628 datasheet. I had checked the 16F628A sheet and saw no clamp and was just reporting that observation.

    However with an actual look at the 16F628 datasheet and the others noted, I see why Darrel asked

    >> Which one are we supposed to believe

    Great question by Darrel ... here is my version for an answer - if it were a one-off by a school boy intending to rudely disrupt the class room I would go with the 9V on RA4. If it were for a medical device or other lawyer-attacting application, I would go the NPN route and would want a written response from Microchip as an effort to help keep by butt out of court should there ever be a problem before going the non NPN route.
    Paul Borgmeier
    Salt Lake City, UT
    USA
    __________________

Similar Threads

  1. Pic getting part power from Analog Port
    By ShaneMichael in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 22nd April 2009, 10:34
  2. 12 bit or higher ADC on a PIC that works with PBP?
    By Brandon in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 11th November 2007, 17:19
  3. Replies: 3
    Last Post: - 29th October 2006, 09:16
  4. Replies: 2
    Last Post: - 10th February 2006, 01:04
  5. Serial Pic to Pic using HSER
    By Chadhammer in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 11th March 2005, 23:14

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