CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

How to prevent a PIC from running when Vcc not connected

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Skirmitt



Joined: 19 May 2009
Posts: 60

View user's profile Send private message

How to prevent a PIC from running when Vcc not connected
PostPosted: Wed Oct 06, 2010 9:14 am     Reply with quote

I noticed on a project that my PIC started running when I applied a signal on an input when Vcc was not connected. I suppose that there is a small current that is leaking inside the PIC that starts the PIC.

How can I prevent this in a future design ?
Ttelmah



Joined: 11 Mar 2010
Posts: 19278

View user's profile Send private message

PostPosted: Wed Oct 06, 2010 9:54 am     Reply with quote

Current limiting resistors in the lines connected to the PIC....
The input pins of the PIC have (effectively) diodes to the supply rail. These provide the 'protection', clamping the signals from going more than a fraction of a volt above the rail. If one or more signals remain powered, when the PIC has no power, these diodes will tend to raise the supply line, and power the chip.
It is poor design to have other circuitry powered attached to parts that are not. Current limiting resistors are the most 'basic' defence if this happens, but is is better to ensure that the attached circuitry has it's outputs disabled, or is actually turned off.

Best Wishes
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Oct 06, 2010 12:06 pm     Reply with quote

Also see page 9 of Microchip AN607 on Power-up Trouble Shooting:
http://ww1.microchip.com/downloads/en/AppNotes/00607b.pdf
SherpaDoug



Joined: 07 Sep 2003
Posts: 1640
Location: Cape Cod Mass USA

View user's profile Send private message

PostPosted: Wed Oct 06, 2010 12:41 pm     Reply with quote

I often use a MAX809 or MAX810 chip to control the PIC Reset line. Among other things it prevents the PIC from running until the VCC is at the correct level. Stray current from an input will likely be at a lower voltage and the MAX chips will hold the PIC in Reset.
_________________
The search for better is endless. Instead simply find very good and get the job done.
Skirmitt



Joined: 19 May 2009
Posts: 60

View user's profile Send private message

PostPosted: Wed Oct 06, 2010 2:25 pm     Reply with quote

Current limiting resistors would be the easiest to implement. What value are we talking about ? 10K or 100K ?
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group