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 CCS Technical Support

Need output be grounded only when PIC is OFF

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



Joined: 02 Dec 2003
Posts: 262

View user's profile Send private message

Need output be grounded only when PIC is OFF
PostPosted: Sun Dec 05, 2004 7:29 pm     Reply with quote

I'm using a 16F for a new project and maybe this is already the case but,

When my pic is off (no power to VDD) I need a pin to be connected to ground.

But then when the pic is on I need it HIGH or Float. Is this possible ?

This may be a dumb question, but
thanks in advance,
-rhet

If it isn't does anyone have a cicuit that would do the same thing. (It cant use a transistor though. Since I am using a relay elseware that I can not add a diode to protect the transistor)
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

View user's profile Send private message Send e-mail

PostPosted: Sun Dec 05, 2004 7:47 pm     Reply with quote

You don't really give enough information. What is connected to this output? What are its requirements? Do you really need ground or can a pull down resistor work Question
iso9001



Joined: 02 Dec 2003
Posts: 262

View user's profile Send private message

PostPosted: Sun Dec 05, 2004 7:53 pm     Reply with quote

No, it needs to be ground.

I have a relay that when the user presses a button connects the coil to this ground (thus turning the relay ON)... I want to interupt it so that when the unit is ON, even if the user presses the button I control if the relay switches. Get ?

Problem is I can not modify any of the systems except my own and can only get to the ground wire of this relay.
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

View user's profile Send private message Send e-mail

PostPosted: Sun Dec 05, 2004 8:35 pm     Reply with quote

Then just stick a normally closed relay in there and when you want to disable it, turn on this relay thus breaking the current path.
iso9001



Joined: 02 Dec 2003
Posts: 262

View user's profile Send private message

PostPosted: Sun Dec 05, 2004 11:58 pm     Reply with quote

This is a 2" x 1.5" pcb. So adding a relay would take up a little more space then i'de like as well as costing a too much.

This original system's relay (I've been told) and pull a spike up to 1 amp when turning on (std 12V relay).

I'de hate to put in a relay just because of cost reasons. I need a cheap switch...
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Mon Dec 06, 2004 3:32 am     Reply with quote

Relays are not cheap with prices starting around $3, but how important is the component price related to engineering costs?

A transistor or fet would be cheaper and smaller, but I don't understand the specifics of your circuit as you say that you 'can not add a diode to protect the transistor'?
And if a diode is impossible, than how about an R-C snubber in parallel to the relay?
SherpaDoug



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

View user's profile Send private message

PostPosted: Mon Dec 06, 2004 8:20 am     Reply with quote

When the PIC is off is there any +DC voltage anywhere available? If so I would have that voltage turn on a FET through a resistor. Connect a PIC I/O pin to the FET gate to turn the FET off under PIC control.

If there is no DC available when the PIC is off you may still be able to use a "depletion mode" FET. These are ON without excitation and get actively turned OFF, as opposed to common "enhancement mode" FETs that are normally OFF and actively turned ON. But depletion mode FETS are harder to find. http://www.supertex.com/pdf/datasheets/DN3525.pdf
is one possibility, but note it requires a negative gate voltage to turn OFF. Maybe you could steal the negative voltage from a RS232 driver?
_________________
The search for better is endless. Instead simply find very good and get the job done.
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