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

OT: Tactile Momentary Switch for System Power

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



Joined: 16 Jan 2005
Posts: 559
Location: Tucson, AZ

View user's profile Send private message

OT: Tactile Momentary Switch for System Power
PostPosted: Sat Oct 21, 2006 6:43 am     Reply with quote

Hello All,

I'm awaiting membership in the Circuit Cellar forums as recommended by several others and thought I'd try here for some ideas in the meantime.

I'd like to use a single momentary tactile switch to power up and down a system and was trying to figure a simple way to do this. I found a EDN article with a 10 part circuit that can power up a system but not down.

I just thought of controlling the on/off pin of a regulator with the mom switch (ON) and also driving it w/ a IO pin (OFF).

Any suggestions on the following would be greatly appreciated:

Search terms to find what I'm after.
Specialized ICs that handle this in a single package for simplicity's sake.
Your favorite approach that you're willing to share.

Thanks,

John
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sat Oct 21, 2006 12:10 pm     Reply with quote

Here's a previous discussion:
http://www.ccsinfo.com/forum/viewtopic.php?t=27580

Here's one example of how to do it. It's not necessarily the best one.
http://elm-chan.org/works/mp3/report_e.html
Click on the link for: "Main board circuit diagram (Jun. 29, '00)"
jecottrell



Joined: 16 Jan 2005
Posts: 559
Location: Tucson, AZ

View user's profile Send private message

PostPosted: Sat Oct 21, 2006 4:42 pm     Reply with quote

PCM,

Thanks, I had recalled that thread you referenced but couldn't find it in the search. (I find the phpBB search tool extremely painful.)

The reference to the EDN article in the previous thread was the one I had found. I was hoping there were more ideas floating about....

I ran simulations in PSpice of both circuits in the article and couldn't get the circuit in figure 1 to work. Finally after re-reading the text I saw that there must have been an error in their diagram. The R1-S1 node wasn't connected to the Q1-Q2 node. So.... If anybody ends up here in search of a solution to a problem similar to mine... beware of that typo...

Thanks again,

John
jma_1



Joined: 08 Feb 2005
Posts: 147
Location: Wisconsin

View user's profile Send private message

PostPosted: Mon Oct 23, 2006 7:46 pm     Reply with quote

Greetings,
I have not read the Circuit Cellar article yet, but perhaps you could use a supervisory / reset chip. Maxim makes a couple MAX6467 and MAX6468 that seem interesting. Depending on the application the MAX6453 - 6 might also work. Maxim will also gladly send you some samples. :-)

http://www.maxim-ic.com/products/supervisors/switch_debouncers/

Cheers,
JMA
treitmey



Joined: 23 Jan 2004
Posts: 1094
Location: Appleton,WI USA

View user's profile Send private message Visit poster's website

PostPosted: Tue Oct 24, 2006 8:12 am     Reply with quote

Note that circuit cellar made me go to another web site as part of the setup, so they can avoid spammers. Its all in the emails.
future



Joined: 14 May 2004
Posts: 330

View user's profile Send private message

PostPosted: Wed Oct 25, 2006 5:08 am     Reply with quote

Why not use a flip-flop?
jecottrell



Joined: 16 Jan 2005
Posts: 559
Location: Tucson, AZ

View user's profile Send private message

PostPosted: Wed Oct 25, 2006 8:34 am     Reply with quote

Sorry. I'm new to all this and I'm not familiar with all the options out there. I read up on flip-flops and that sounds like exactly what I need.

However, is there such an animal that allows 20V in on one input and 3.3V in on another?

I'll start looking....

Thanks for the idea.

John

EDIT:

On first glance it apears as though they all are limited to a max of 7V Vcc. That won't work being on the upstream side of the regulator.

Or is there some other way to do it with a flip-flop?
future



Joined: 14 May 2004
Posts: 330

View user's profile Send private message

PostPosted: Wed Oct 25, 2006 2:47 pm     Reply with quote

you can use it to control your power relay/switch.
jecottrell



Joined: 16 Jan 2005
Posts: 559
Location: Tucson, AZ

View user's profile Send private message

PostPosted: Wed Oct 25, 2006 9:52 pm     Reply with quote

So are you saying that the flip-flop is downstream of the regulator (requiring that the regulator be powered 100% of the time?) If that's the case then it's not workable. I can't afford powering the regulator and the flip-flop when the PIC is powered down. I apologize if I'm still missing the gist of your approach.

I was also wondering how high a voltage the clamp diodes on the PIC inputs could handle through a 100K+ resistor? Or should I just put a better clamp to be safe?

Thanks,

John
asmallri



Joined: 12 Aug 2004
Posts: 1635
Location: Perth, Australia

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Wed Oct 25, 2006 10:12 pm     Reply with quote

Hi John,

What is your power budget for the powered down system?
_________________
Regards, Andrew

http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!!
jecottrell



Joined: 16 Jan 2005
Posts: 559
Location: Tucson, AZ

View user's profile Send private message

PostPosted: Wed Oct 25, 2006 10:37 pm     Reply with quote

Hi Andrew,

Sorry about the typical squirrelly customer answer of "I'd like to keep it as low as possible." But, in the proof of concept/prototyping stage where I am now, it's not too important. Eventually if everything works out, I'll contract the final design work to a pro. (That will be both hardware and firmware...)

Current PSpice simulation shows about 25uA with my current solution.

Thanks,

John
kender



Joined: 09 Aug 2004
Posts: 768
Location: Silicon Valley

View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger

PostPosted: Tue Dec 11, 2007 2:20 pm     Reply with quote

There's a family of on/off pushbutton controllers made by Linear Technology. LTC2950 through LTC2954. Most of them come in a SOT-23-8 package.
_________________
Read the label, before opening a can of worms.


Last edited by kender on Tue Aug 28, 2012 4:25 pm; edited 1 time in total
mskala



Joined: 06 Mar 2007
Posts: 100
Location: Massachusetts, USA

View user's profile Send private message

PostPosted: Tue Dec 11, 2007 5:32 pm     Reply with quote

Quote:
Here's one example of how to do it. It's not necessarily the best one.
http://elm-chan.org/works/mp3/report_e.html


Earlier this year I did a circuit with a similar idea. I have a wide-input power supply without a power-on pin, so I used a FET on the input, controlled by momentary switch, and as soon as the PIC powers up, it holds the FET on (user has now released button), and the PIC uses one other pin to monitor the button. When the PIC sees the button press it lets the FET loose and dies (you could die gracefully but I didn't need to.)

Because of the wide-input supply, I had to use 2 opto-isolators, a diode, the button, and 6 resistors to make it work.

Mark S.
Guest








PostPosted: Tue Dec 11, 2007 8:27 pm     Reply with quote

This works,

edn.com/contents/images/6317068f1.pdf

So does this,

edn.com/contents/images/6372827f1.pdf

You may need to add a 'w w w dot' in front of the URL (they won't let post a real link).

HTH - Steve H.
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