Are Pic pins normally LOW when the PIC is un-powered??


Closed Thread
Results 1 to 11 of 11
  1. #1
    Join Date
    Oct 2009
    Location
    Utah, USA
    Posts
    427

    Default Are Pic pins normally LOW when the PIC is un-powered??

    Hey group,

    Are PIC pins normally low (tied to ground) when the PIC is un-powered?

    I have an LED tied to my PIC and then through a resistor to +12v.
    I was planning on having the PIC supply a LOW to light the LED.

    But I am finding that my LED lights even when the PIC is not powered.
    Is that normal?

    The PIC is an 12F1822.
    Dwight
    These PIC's are like intricate puzzles just waiting for one to discover their secrets and MASTER their capabilities.

  2. #2
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default Re: Are Pic pins normally LOW when the PIC is un-powered??

    Sounds like it is "Back Feeding" power into the PIC. Backfeeds can blow the PIC
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  3. #3
    Join Date
    Sep 2009
    Posts
    737


    Did you find this post helpful? Yes | No

    Default Re: Are Pic pins normally LOW when the PIC is un-powered??

    Hm, LED from PIC to +12V? Isn't that weird?
    PIC operate at 5.5V maximum.

  4. #4
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default Re: Are Pic pins normally LOW when the PIC is un-powered??

    With appropriate dropping resistor under load voltage will be correct, but when pic pin is hi Q . . .
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  5. #5
    Join Date
    Oct 2009
    Location
    Utah, USA
    Posts
    427


    Did you find this post helpful? Yes | No

    Default Re: Are Pic pins normally LOW when the PIC is un-powered??

    Yeah, I have the PIC running off of 5V for Vdd.
    I did the calculation for the LED current limit resistor to take into account the 12V (using a 2700 ohm resistor) for approx 5ma LED current.

    I thought the PIC could just be a source of Gnd (LOW) when I wanted to turn the LED on.

    I had assumed that the port pins would be in a High Impedance state when powered down, and until configured otherwise.
    Guess I'll have to insert a transistor in the ckt to control the LED.

    Anybody else had any experience with how the I/O pins behave when the PIC is powered down??

    thanks
    Last edited by Heckler; - 21st February 2014 at 23:35.
    Dwight
    These PIC's are like intricate puzzles just waiting for one to discover their secrets and MASTER their capabilities.

  6. #6
    Join Date
    Oct 2009
    Location
    Utah, USA
    Posts
    427


    Did you find this post helpful? Yes | No

    Default Re: Are Pic pins normally LOW when the PIC is un-powered??

    Now that I think about it...

    Even if the pins were high impedance while powered down, the way I had wanted to supply ground (LOW) to light the LED would not have worked because when I wanted to turn the LED off, by making the pin HIGH, that HIGH (5 V) would still have been lower (with respect to the +12V) and so the LED would have seen +7v across it.

    Back to the drawing board
    Dwight
    These PIC's are like intricate puzzles just waiting for one to discover their secrets and MASTER their capabilities.

  7. #7


    Did you find this post helpful? Yes | No

    Default Re: Are Pic pins normally LOW when the PIC is un-powered??

    With pic powered down, I don't think you can supply voltage/current to most all pins. The limit diodes direct the current back to Vdd powering up the device and probably not run the program properly.... per Archangle.
    don

  8. #8


    Did you find this post helpful? Yes | No

    Default Re: Are Pic pins normally LOW when the PIC is un-powered??

    Most pins on a PIC can drive hi efficiency LEDs directly. Either connect the LED to 5V instead of 12V, or flip the LED and connect it to ground. Size the resistor for 3-5 mA of current at 5V.
    Tim Barr

  9. #9
    Join Date
    Sep 2010
    Location
    Las Vegas, NV
    Posts
    305


    Did you find this post helpful? Yes | No

    Default Re: Are Pic pins normally LOW when the PIC is un-powered??

    I'm away from my computer with a schematic drawing program so I hope this conveys my idea adequately. With no power to the PIC the LED would be powered on by the 12VDC thru resistor to ground. When PIC is powered a HIGH of more than 3ish VDC at the PIC pin would be enough to turn the LED off. The diode to the PIC would protect the PIC from sinking or sourcing current from the 12VDC source.

    12VDC
    |
    Resistor
    |
    K--Diode-A---PIC pin
    |
    LED
    |
    Ground

    I hope I'm using some semi-solid logic in this idea but if this isn't a good idea please let me know.
    Last edited by AvionicsMaster1; - 24th February 2014 at 21:28. Reason: formattting of components

  10. #10


    Did you find this post helpful? Yes | No

    Default Re: Are Pic pins normally LOW when the PIC is un-powered??

    with what you describe, the LED won't turn off.... 3vdc'ish on led from pic will just light the LED. There are small (6 or 8 pin) normally-closed (form B) solid state relays, then the PIC energizes the SSR to turn off the led.

    Name:  th5UMUGX94.jpg
Views: 301
Size:  8.3 KB
    don

  11. #11
    Join Date
    Sep 2010
    Location
    Las Vegas, NV
    Posts
    305


    Did you find this post helpful? Yes | No

    Default Re: Are Pic pins normally LOW when the PIC is un-powered??

    OOps! Sounded good when I wrote it. I hope I get it right next time. Sorry about that.

Similar Threads

  1. How can a battery powered PIC turn itself off?
    By tekart in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 9th August 2012, 10:44
  2. All PIC pins outputting low voltage
    By The Master in forum Off Topic
    Replies: 8
    Last Post: - 1st July 2010, 13:31
  3. PIC powered by capacitor for 0,5 second
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 18
    Last Post: - 25th August 2007, 09:23
  4. PIC-Powered Timer Project
    By T.Jackson in forum Schematics
    Replies: 6
    Last Post: - 18th May 2007, 04:45
  5. Pic powered from USB?
    By Squibcakes in forum USB
    Replies: 5
    Last Post: - 26th June 2006, 00:03

Members who have read this thread : 2

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