Need advice on dual power design

Building your first 6502-based project? We'll help you get started here.
User avatar
cbmeeks
Posts: 1254
Joined: 17 Aug 2005
Location: Soddy-Daisy, TN USA
Contact:

Need advice on dual power design

Post by cbmeeks »

I'm working on my SBC's power design.

I plan on offering two power rails. One 5V and the other 3.3V. I have a need for both power voltages in my design.

I have built something similar to the attached schematic on a breadboard and it seems to work pretty well. At least according to my multi-meter. :-)

I welcome any constructive criticism.

Thanks!
Attachments
DUAL_POWER_DESIGN.png
Last edited by cbmeeks on Thu Aug 18, 2016 12:24 pm, edited 1 time in total.
Cat; the other white meat.
User avatar
GARTHWILSON
Forum Moderator
Posts: 8773
Joined: 30 Aug 2002
Location: Southern California
Contact:

Re: Need advise on dual power design

Post by GARTHWILSON »

Make sure you do what the data sheet says about the 1µF input and output capacitors for the 3.3V LDO. LDO's can be tricky to keep stable, ie to keep them from oscillating. The designers have done the math and subsequent testing to give you the ranges and types of capacitors. You might save yourself a lot of grief by following them. I had an LDO in an aircraft intercom design 20+ years ago that worked fine in most aircraft, but in a few situations the aircraft's power source was exactly right to make it oscillate and damage itself, and I had to quickly re-do the board with a fix so it worked right for everyone. They have worked fine ever since, with no failures.
http://WilsonMinesCo.com/ lots of 6502 resources
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?
User avatar
BigDumbDinosaur
Posts: 9425
Joined: 28 May 2009
Location: Midwestern USA (JB Pritzker’s dystopia)
Contact:

Re: Need advise on dual power design

Post by BigDumbDinosaur »

Other than Garth's comments about the LDO regulator's capacitors I see no reason why it shouldn't work.
x86?  We ain't got no x86.  We don't NEED no stinking x86!
User avatar
cbmeeks
Posts: 1254
Joined: 17 Aug 2005
Location: Soddy-Daisy, TN USA
Contact:

Re: Need advise on dual power design

Post by cbmeeks »

Awesome!

Thanks for the recommendations. I will look at the datasheet and find the correct values.

Thanks!!


**EDIT**

I'm an idiot. It's right there in the datasheet. I've got to remember...it's ALWAYS in the datasheet. :-)

I will update the design but it appears you need a 1uF cap on the OUT and a 1uF on the IN.
Cat; the other white meat.
User avatar
BigDumbDinosaur
Posts: 9425
Joined: 28 May 2009
Location: Midwestern USA (JB Pritzker’s dystopia)
Contact:

Re: Need advise on dual power design

Post by BigDumbDinosaur »

cbmeeks wrote:
I will update the design but it appears you need a 1uF cap on the OUT and a 1uF on the IN.
For best results, mount both caps as physically close to the regulator as possible.
x86?  We ain't got no x86.  We don't NEED no stinking x86!
User avatar
cbmeeks
Posts: 1254
Joined: 17 Aug 2005
Location: Soddy-Daisy, TN USA
Contact:

Re: Need advise on dual power design

Post by cbmeeks »

BigDumbDinosaur wrote:
For best results, mount both caps as physically close to the regulator as possible.
Roger that. I also do the same with decoupling caps too.
Cat; the other white meat.
User avatar
cbmeeks
Posts: 1254
Joined: 17 Aug 2005
Location: Soddy-Daisy, TN USA
Contact:

Re: Need advice on dual power design

Post by cbmeeks »

Final version.

Opinions appreciated.

Thanks!
Attachments
DUAL_POWER_DESIGN_2.png
Cat; the other white meat.
User avatar
BigDumbDinosaur
Posts: 9425
Joined: 28 May 2009
Location: Midwestern USA (JB Pritzker’s dystopia)
Contact:

Re: Need advice on dual power design

Post by BigDumbDinosaur »

cbmeeks wrote:
Final version.

Opinions appreciated.

Thanks!
Just for grins, make C8 a 100µF cap instead of 10µF. The physical size difference will be minimal and you'll get a little better regulation from the 7805 as loads on the 5 volt circuit fluctuate.
x86?  We ain't got no x86.  We don't NEED no stinking x86!
User avatar
cbmeeks
Posts: 1254
Joined: 17 Aug 2005
Location: Soddy-Daisy, TN USA
Contact:

Re: Need advice on dual power design

Post by cbmeeks »

Ah, good idea.

I have several 1000 uF caps. Do you think one of those should go on the switch?

I forgot to add the schematic for the switch so I should be able to update that soon.

Thanks


** EDIT **

Let me rephrase that...should there be a large cap supplying the "IN" pin of the 7805?
Cat; the other white meat.
User avatar
GARTHWILSON
Forum Moderator
Posts: 8773
Joined: 30 Aug 2002
Location: Southern California
Contact:

Re: Need advice on dual power design

Post by GARTHWILSON »

The data sheet also says you should have a capacitor on the 7805's input, really close to the regulator. For digital work where a jump of 50 or even 100mV won't matter, I don't think there's any point in going overboard on the output capacitor though since beyond a few µF the regulator's response will be quick enough to compensate for sudden changes in the load. That's not to say of course that you shouldn't have ,01 or 0.1µF bypass capacitors right at each digital IC, particularly if you don't have a ground plane and a power plane. (Copper pours don't qualify.)

If anyone cares to look it up, Electronic Design magazine had a good article on LDO regulator compensation for stable operation, including selecting the right output capacitor, in the Nov 4, 1996 issue, pages 99-104, written by Chester Simpson of National Semiconductor Corp.. It seems like I saw an even better one a few years ago, further clarifying the matter of poles and zeros of the function, but I can't remember where.
http://WilsonMinesCo.com/ lots of 6502 resources
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?
User avatar
Arlet
Posts: 2353
Joined: 16 Nov 2010
Location: Gouda, The Netherlands
Contact:

Re: Need advice on dual power design

Post by Arlet »

The 7805 doesn't need a large cap on the input, as long as the input voltage stays above 7V or so (exact value can be found in data sheet).
User avatar
cbmeeks
Posts: 1254
Joined: 17 Aug 2005
Location: Soddy-Daisy, TN USA
Contact:

Re: Need advice on dual power design

Post by cbmeeks »

I will certainly put bypass caps on all IC's. Even the clock. Just because. :-)

I think I might go ahead and put a cap on the 7805 input line. This isn't going to be a high-volume production so I'm not too concerned on saving a few cents here or there.

Thanks again for the input.
Attachments
DUAL_POWER_DESIGN_3.png
Cat; the other white meat.
User avatar
BigDumbDinosaur
Posts: 9425
Joined: 28 May 2009
Location: Midwestern USA (JB Pritzker’s dystopia)
Contact:

Re: Need advice on dual power design

Post by BigDumbDinosaur »

cbmeeks wrote:
Let me rephrase that...should there be a large cap supplying the "IN" pin of the 7805?
All depends on from where the 7805 is getting its juice. If the basic source is sufficiently filtered, I'd say don't bother, as the 7805 is fast enough to filter out a reasonable amount of ripple.
x86?  We ain't got no x86.  We don't NEED no stinking x86!
User avatar
cbmeeks
Posts: 1254
Joined: 17 Aug 2005
Location: Soddy-Daisy, TN USA
Contact:

Re: Need advice on dual power design

Post by cbmeeks »

BigDumbDinosaur wrote:
cbmeeks wrote:
Let me rephrase that...should there be a large cap supplying the "IN" pin of the 7805?
All depends on from where the 7805 is getting its juice. If the basic source is sufficiently filtered, I'd say don't bother, as the 7805 is fast enough to filter out a reasonable amount of ripple.
More than likely, it would be from a 9V wall-wart that was regulated.
Cat; the other white meat.
Aslak3
Posts: 258
Joined: 05 Aug 2013
Location: Southampton, UK
Contact:

Re: Need advice on dual power design

Post by Aslak3 »

A cosmetic observation, but wouldn't the schematic be clearer if the GNDs were joined up? When I first glanced at the schematic I was a bit confused. I assume the two rails have a common ground; the net name is the same at both points. But for me this would look clearer if the grounds were joined with a wire.

What's the current draw? Don't forget the heat-sinks on those 78xx :)
8 bit fun and games: https://www.aslak.net/
Post Reply