D
dan williams
Guest
Fred Bloggs wrote:
will not always be an option. For example my other application required
dealing with an 80VDC supply, national dont go there. (not with simple
switchers) I'm not farmiliar with the document, so I will check it out.
dan
Dan Williams, Owner
Electronic Device Services
(604) 741 8431
RR8 855 Oshea rd
Gibsons BC Canada
V0N 1V8
the primary reason I am resisting that temptation is because I know itSee http://www.national.com/an/AN/AN-1095.pdf#page=1 and follow the
instructions exactly, using off-the-shelf flyback transformers.
will not always be an option. For example my other application required
dealing with an 80VDC supply, national dont go there. (not with simple
switchers) I'm not farmiliar with the document, so I will check it out.
dan
--dan williams wrote:
This is the second time I have been called on for a smps design.
Granted, for this one I can use National's design system(s) But I'd like
to know how to do this. (Its easy to be out-of-range of NS's limits for
simple switchers)
Please tell me where I go wrong, there are an uncomfortable number of
arbitrary limits made, I dont know if their right. you may want to read
it trough before making comments.
This may also be good reading for people studdying switchmode supplies,
formulas here have taken me about 48 hours (solid hours) to work out
from many references, and almost all make sense.
I would really like to see an "out with it, already" document on smps,
come to think of it, I didn't do a google search for a smps FAQ
Lets take the case at hand:
Input: 10-15VDC
Ouput: 5VDC (30V Isolation) 3A
Just for the sake of it, lets go with a 100Khz switching frequincy, that
way we can compare to NS's SimpleSwitcher Design
Step 1) An innocent Start...
Choose a Topology.
Because of the isolated nature, we basically have forward or flyback
to choose from. (of the BASIC topologies)
The last time I saw a forward converter, it was in an apple IIe,
(There will be a reason for this, I'm happy not knowing what it is.) so
lets go with flyback.
Step 2) Things get a little harry...
First pass parts selection
we need information about our switches and diodes to run subsiquent
calculations
Switch:
As per motorola's SMPSRM (which nolonger seems to be available)
"Mosfet power switch, Vdss = 1.5Vin(max) Id = 2Pout/Vin(min)"
so we need at least: Vdss = 22.5V Id = 3A
Go for the Kill IRFZ44N Vdss = 55V Id = 49A [Rds(on) = .024 ohms]
That was easy enough... lots of those in the bin.
Diode:
As per motorola's SMPSRM "Vr = 10 Vout If = Iout"
so we need at least: Vr = 50V If = 3A
Every reference talk about doide losses, resulting in "use a
shottkey doide." ok. (I'm ignoring synchronous rectification here)
since the IRF cd is already in the drive... how about a 50SQ080 Vr
= 80V Id = 5A [Vf = .52V]
I'v never heard of the diode before, but if nobody else in my end
of Canada can get it (quite likley), I'll substitute (a process I'm
getting good at).
Step 3) Spark up the algebra.
Select a value for your inductor. I shall derive the following
formulae, to prove I do (or don't) know where it comes from, and because
almost none of the 5+ references I'm using factor EVERYTHING in.
Lets Start by drawing 'er out. (I'll save you my ascii art, anyone
who can help me knows what a basic flyback topology looks like, for
everyone else, its like a boost, but the output commes from a secondary
winding on the inductor that engauges when the switch turns off. For
those of you who don't off hand know what a boost topology looks like,
may I suggest taking a look through application note 19 from Linear's
web site.)
Next chart the voltage across the inductor vs time.
V
^
|
|
|============
| on |
--------------------------> t
| | off |
| ===========
|
|
|
V
- The Voltage across the primary side of the inductor when the switch
is on, is the supply voltage, Vin minus the drop across the switch,
being that this is a big burly mosfet, I'm approximating this to be 0.
So the charge voltage is Vin.
- The Voltage across the primary side of the inductor when the switch
is off, is the output voltage, plus the diodes forward drop, all divided
(turns ratio is 1(primary):N(secondary)) by the turns ratio. ( as you
can quite plainly see from the schematic I didn't draw)
- The Vt area of the on and off time are, for a close approximation,
the same (we have loss via the core, I can't calculate it, so I'm
ignoring it... its small! right?)
From these we get the formula:
ton Vin = toff (Vout + Vfdiode) / N
set that aside,
From any physics book, we can obtain the formula
L = V (dt/di)
so whats our charge time?
t = 1/f (ats just the way she iz)f being our switching frequincy.
Because were using PWM, t is the absolute maximum time the indutor would
get in a "cycle" at 100% duty. In order to know our REAL charge time, we
need to multiply t by our duty cycle, D. which goes from 0 to 1.
dt = D/f or tD as in the duties fraction of the maximum time.
so whats our current?
this IS a good question, the answer I find is "20% of the switches
maximum rated" but what!?
it seems to me, that this should be related to, say, the power
output? but such an approch will cause this current to be dependent on
the turns ratio, which I havn't worked out yet! to avoid simotanious
equations, I will use this 20% nonesense, erm, I mean "arbitrary rule of
thumb"
di = .2Id
scoop it all up into a pile:
L = (Vin D) / (0.2 f Id)
hey wait! you didn't say what D is!
thats easy: D = ton/(ton + toff) (ats just the way she iz)
now, previously, we worked out a formula in terms of Vin, Vout, ton,
and toff, plus a few inneficiencies.
Vs is the switches voltage drop...
ton (Vin - Vs) = toff (Vout + Vfdiode) / N
mulled becomes:
(Vin - Vs)/((Vout + Vfdiode) / N) = (toff / ton)
set aside...
D = ton / (ton + toff)
therefore
1/D = (ton + toff) / ton
or
1/D = (ton / ton) + (toff / ton)
or
1/D = 1 + (toff / ton)
so
(1/D) - 1 = (toff / ton) <- third to last step
or
(1/D) - (D/D) = (toff / ton)
or
(1-D)/D = (toff / ton)
and look! we have the same term for our Duty calc and the deriviation
of duty cycle!
(Vin - Vs)/((Vout + Vfdiode) / N) = (toff / ton) = (1-D)/D
crunch crunch crunch!
(Vin - Vs)/((Vout + Vfdiode) / N) = (1/D) - 1 (from third-to-last
step)
or
N (Vin - Vs)/(Vout + Vfdiode) = (1/D) - 1
so
N (Vin - Vs)/(Vout + Vfdiode) + 1 = (1/D)
or
N (Vin - Vs)/(Vout + Vfdiode) + ((Vout + Vfdiode) / (Vout + Vfdiode))
= (1/D)
or
(N (Vin - Vs)+(Vout + Vfdiode))/(Vout + Vfdiode) = (1/D)
so
D = (Vout + Vfdiode)/(N (Vin - Vs)+(Vout + Vfdiode))
now we know the duty, we can calculate the iductor:
L = (Vin / (0.2 f Id)) * ((Vout + Vfdiode)/(N (Vin - Vs)+(Vout +
Vfdiode)))
or
L = (Vin (Vout + Vfdiode)) / (0.2 f Id N ((Vin - Vs)+(Vout +
Vfdiode)))
step 4) lets get arbitrary...
So what is our inductor size?
Vin = 10 (this is a worst case thing)
Vout = 5
Vfdoide = Vf = .52V as per spec sheet
f = 100Khz
Id = 49A
N = we really havn't a clue, do we?
Vs = 0 (approximation, looking back on this, our iductor current
is 9.8A... which is awefully high, and even across .024 ohms starts to
become significant(.2V))
Now this is a stumbling block... the best references I can find for
choosing N are based on the limitations of the voltage on the switch
when its off (Vswitch_off = (Vout + Vdiode)/N) of which you want to stay
under its rating, which motorola had us choose as 1.5Vin_max
Linear provides a formula for "optimum value" based on Vsnub, which
they calculate from N (oh, thats helpfull)
Its also not logical to be running nearly 10A through the primary,
not for a 15W supply...
It would seem logical to use a formula for the primary current like
(Pout/Vin(min))which seems to result in a much more reasonable current
of 1.5A
somewhere(forgotton now) I read "bipolar transistors stressed 75%"
something "their maximum rating, are subject to crowding, which is an
instentanious failure mode"
so I'd say 70% of the mosfets Vdss is a safe goal
this puts 0.2Id = 1.5 A
and N = (Vout+Vf)/(0.7Vdss + Vin) = .103 = about 10:1 ratio, awefully
small....
but wait, Ip = Is * N (the secondary current is N times the primary)
so N = Ip/Is resulting in a ratio of 0.5 ... this is much more
reasonable, concidering the simple switcher software suggests about .333
for an equivilent supply.
I'm going to go with the sane numbers:
0.2Id = 1.5A
N = .5
Vin = 10 (this is a worst case thing)
Vout = 5
Vfdoide = Vf = .52V as per spec sheet
f = 100Khz
so
L = (Vin (Vout + Vfdiode)) / (0.2 Id f N ((Vin - Vs)+(Vout +
Vfdiode)))
= (10 (5 + .52)) / (1.5 100,000 0.5 ((10 - 0)+(5 + .52)))
= 47.42 uH
which, is, atleast, in the same order of magnitude as the
simpleswitcher software comes up with.
Step 5) missing essentials...
When the power switch turns off, before the output diode engauges,
there's a really big voltage spike on the coil 'o wire. quite capable of
destroying the mosfet. so we add something across (debatable) the coil
to catch the spikes, there are the various types, used in various times.
snubber ---/\/\/\---||-----
soft clamp ----->|----\/\/\/------
| |
----||----
and Zener clamp ----->|-----Z<----
I know that national designs always use zener clamps, I also know that
every other smps I have seen uses a soft clamp. (computer supplies,
computer monitors (the guys get annoyed with me continiously
disassembing the computers "Yup, see, thats a soft clamp too", "put it
back togethor, I need to check my email!"), industrial supplies,
printers, VCR's)
snubbers always dissipate power, so I'll slide them aside...
Zener's are used to limit voltage, soft clamps and snubbers to limit
voltage and dv/dt, which will break down switches given enough.
I dont know how to calculate limits for dv/dt, so I'll assume its not
a problem, and go for a zener clamp.
I gather from the linear app note (19) that you want to stay atleast
10V away from the switches max rated voltage. we also have to concider
we need to be above the normal flyback voltage which is
Vp = Vs / N
Vs = Vout + Vdiode_forward
= 5.52/.5 = 11.04V
Based on Vdss = 55V
= 45V
so we want 11.04 > Vsecondary > 45
this is a pretty wide margin! I'll go closer to the 45V, which I
recall an application note from AIC (I think) suggesting to use the
highest possable voltage....
We just happen to have 33V zeners around the shop, I'll go with them
(this design is not quite optimal....)
as a side note I have the following formula for calculating soft
clamp components (no , I dont know where I got it from)
Lp = primary inductance
Ip = peak drive current
Vc = clamping voltage (e.g. 33V)
Vi = supply voltage
Vs = voltage across switch when off (load engauged)
C = (0.2LpIp^2)/(Vc^2 - Vs^2)
R = ((Vc+Vs-Vi)/2)^2 (.0192/(LpIp^2))
I'm not going to work that out, but I would probably end up using a
soft clamp, I have seen a lot of zeners fail over the years (short out)
I see a soft clamp as something much more rugged.
I'm not going to mention PWM control systems, We have some rails of
TL494's at the shop, they work fine.
Step 6) follow through.
ok, but how do we BUILD it. actually I'm only reffering to the
inductor.
This is where the linear app note accels, how to make an inductor
- Calculate a suitable core by volume, from
V = ( Ip ^ 2 L u 0.4 Pi 100000000) / Bo ^ 2
where L = inductance (H)
Ip = peak inductor current
u = permeability (from material datasheet e.g. material #77 =
2000)
Bo = max flux density (from material datasheet e.g. material #77 =
4600)
V = core volume(cm^3)
At the shop we have a set of E cores from CWS bytemark which are 2540
mH/1000T, I know there big enough for this application, so I just need
to put wire on them...
- Apply wire to selected core
Where
Npri is the primary turns
L is primary inductance
Al is from core datasheets
Npri = 1000 * square root of ((L/Al)
so for
Al = 2540mH/1000T
L = 47.42uH
N = .14 turns... ok, well maybe that core is a little big... thats
how I calculate it anyhow.... I suppose we need some new cores.....
darn. (Turns must be an interger, prefferably larger than 0)
anyhow, the secondary turns would be the primary turns * N (the
winding ratio N...)
well, thats it. how did I do? I would quite like suggestions on
places I went wrong or just was wrong. Its 12:30am, so I'm not going to
list the references I used for this documents formulea, if you want,
ask, I'll tell.
provided this process can be nicely nailed down, a minor bit of
software (something I'm actually good at) can quickly take care of the
calculator labor. which I will be happy to share with anyone.
I dont want to have to labor over designing a smps, I dont see why
anyone should after so many years of them being around. NS's
simpleswitcher stuff is nice, but cant help if you need something over
about 30W or 40V input (like an off-line running at 170V)
Descriptions of control circuits could probably easily double the
size of this letter, but as its mearly feedback and stability
calculations, and most controller chips come with one-size-fits-all
sugested filters, and resonably good formulae to boot, I'm not worried
about it.
Thanks for the feedback course, Rod.
Dan Williams
Dan Williams, Owner
Electronic Device Services
(604) 741 8431
RR8 855 Oshea rd
Gibsons BC Canada
V0N 1V8