Discuss and Comment on "How a Switchmode Power Supply Works" by c_hegge...
http://hardwareinsights.com/how-a-sw ... ply-works/
Does the fan twitch when you try to power it on?
This might seem stupid but have you checked the fuse?
The role of a power supply is convert the mains voltage into the lower DC voltages required by connected equipment. There are two types of PSUs out there - linear and switching/switch-mode.
Linear PSUs (which came first) use a large iron-core transformer, connected directly to the mains, to change the voltage and provide electrical isolation. Its output is still AC, however, so to change it into DC, diodes (which allow current to flow only in one direction, turning the AC into pulsing DC) along with hefty filtering capacitors (which smooth out the voltage pulsations, known as ripple, by storing and releasing energy) are used. If the load is very sensitive to voltage variations and ripple, a regulator (which drops the ingoing DC to the constant voltage required by the load) is added. The big (literally) disadvantage of linear PSUs is that the low frequency (50 or 60Hz) requires a massive transformer and capacitors, and especially small regulated-output units tend to be very inefficient. For these reasons, it is not practical to use them in PCs.
Switching supplies work very differently, though they do share some of the same basic parts.
The NTC thermistor limits the initial charging current of the primary capacitors (mentioned below). It is essentially a resistor whose value drops when it heats up under load, reducing wasted power compared to using a conventional resistor with the same "cold" resistance. Some high-end PSUs use a relay (an electrically operated switch) to short it out when the main supply is active, providing further savings.
This is very similar to the rectifier in a linear power supply, albeit rated for a much higher voltage. Its effect on the PSU's efficiency is minimal, but it does determine how much current the PSU can draw (too much and the bridge will overheat and short out). Usually, a single part with the required four diodes integrated into one four-leaded package (2 for the AC input and 1 each for DC positive and negative), saving space on the printed circuit board, is used. Some cheaper power supplies (like the NSCom unit pictured earlier) use four discrete diodes instead of a single-piece rectifier. While functionally the same, these generally have much lower ratings, 2A and 3A being common.
To get an idea of how much it can handle, take its nominal rating, multiply it by the mains voltage and multiply that by the unit's efficiency (typically around 75% for a low-end unit on 120V input), and for units without active PFC (see below), de-rate by 20%. [source: any number of datasheets] So for example, if the rectifier is rated at 4A, the mains is 120V, the unit has an efficiency of 75% and lacks PFC, 288W is what you can, theoretically, pull (if the other components can take it).
It may or may not have a heatsink attached; those designed to be mounted to a heatsink (such as GBU and GBJ series) usually require one to deliver their label rating.
Like the capacitors on the secondary of a linear PSU, these smooth the pulsed DC coming from the rectifier into a continuous DC for the primary switchers to work with. Power supplies with active PFC have a single 400-450V capacitor (or sometimes two in parallel, but this makes no functional difference), which holds the boosted output from the PFC circuit (see below). Power supplies without active PFC usually have two 200V capacitors arranged as a switchable voltage doubler - see the diagram.
[insert diagram here]
When set for 230V, it functions as a normal bridge (the resistors are to ensure the voltage is evenly split between the caps). When set for 115V, the switch connects one side of the mains to the center point of the two capacitors. Therefore, the two caps are alternately charged, one on the positive half-cycle of the mains and one on the negative half-cycle. The total voltage across both caps is about the same either way.
These capacitors are generally relatively unstressed, so even those from low quality manufacturers don't fail that often.
Power factor correction
Not all AC loads are easy on the power grid. Pure resistances - incandescent lightbulbs and heating elements - no problem; those don't put any more stress on the wires and transformers than is necessary to do their job. But other loads aren't so graceful, heating wiring more than their actual power consumption would suggest. The discrepancy is known as power factor, a number equivalent to the actual power consumed divided by the apparent power. Large energy consumers are billed for power factor for exactly that reason. There's more to it than fits into the space here [yes, I tried] - if you're interested, this is a highly informative article about it.
Power supplies with no PFC generally have a PF of up to 0.65. Inserting a large inductor (usually with a film capacitor in parallel) before the primary capacitors (whether in the AC or DC side of the bridge is the designer's choice, but either way has advantages and disadvantages) forms passive PFC. While better than no PFC, the improvement is very limited due to size constraints. The PF is increased to maybe 0.75.
Active PFC circuits, together with correcting the power factor, boost the voltage going into the primary capacitor. Between the bridge and the primary capacitor, they have: A film capacitor (which filters the high-frequency pulses drawn by the converter), a large coil (which in conjunction with the MOSFET and diode, provides the actual voltage boosting), a MOSFET switcher (like those used to drive the transformers), and a high-speed power diode (which rectifies the high-frequency pulses from the coil). The MOSFET and diode require a heatsink, which may be shared with the primary switchers (see below) or may be separate. They are far more effective than passive PFC, easily achieving a power factor of over 0.95.
These supply pulsed current to the transformer at a much higher frequency than that of the grid (usually from 50kHz on up), which allows the transformer to be far smaller than that in a linear power supply. The duty cycle is adjusted on-the-fly to compensate for varying input voltage, changing loads, and the ripple remaining on the primary capacitors. They produce enough heat to require a heatsink to maintain a safe operating temperature. There are two types of switchers used - bipolar junction transistors and MOSFETs. MOSFETs are preferable as they switch much faster, providing higher efficiency, but are a bit more expensive. Usually, BJTs are used in the old half-bridge topology and MOSFETs in more modern designs such as forward and LLC resonant. When overstressed, as often happens when dodgy power supplies are run at their rating, they tend to fail explosively.
The standby supply may use either a two-transistor self-oscillator or a switching IC. The two transistors in question are the switcher (which may be either a BJT or MOSFET) and a smaller transistor nearby. Those are crude circuits that typically have no protections, and often contain an electrolytic capacitor which, when it fails, causes catastrophic overvoltage on the output. The Bestec ATX-250-12E was notorious for failing that way, with up to 18V being reported. Modern switching ICs, such as DM311, TinySwitch, TOPSwitch and VIPer22A, are much better protected from abuse of the supply and do not result in overvoltage even if the supporting capacitors do fail.
These change the voltage and provide electrical isolation between the primary and secondary of the PSU. They consist of coils of wire wound around a plastic former which is fitted with a ferrite core. Layers of tape provide safety insulation.
There is generally one large transformer, for the main supply, and one or two smaller transformers. One of the small transformers is used for the standby supply. The other is used in the old half-bridge topology to drive the switching transistors. There are also one or more optocouplers, which resemble integrated circuits but only have four pins, that transfer small signals across the isolation barrier. The two-transistor forward topology also has a tiny transformer (contained entirely on the primary side and not located near these) driving the high-side MOSFET.
These work in a similar way to the bridge rectifier on the primary side, only allowing current to flow in one direction. However, these are special types designed for high-speed operation. There are four common types of rectifier:
Standard rectifiers as used in linear PSUs and on the primary-side bridge. These drop about 1.0V when fully loaded. They are too slow for the high switching frequencies, however, and are never used on the secondary of even shoddy switching supplies.
Fast recovery rectifiers have a typical reverse recovery time of 150ns [at low voltage ratings]. Unfortunately, they drop about 1.3V when fully loaded, resulting in low efficiency.
Ultra-fast rectifiers have reverse recovery times as low as 35ns [again, at low voltage ratings]. They are often used interchangeably with the above type. At ratings of up to 200PRV, they drop about 1.0V when fully loaded, the same as standard rectifiers. [At 400PRV they only break even with fast-recovery rectifiers and above that they can drop up to 1.7V, but no sane PSU manufacturer would use parts with that rating on the secondary.]
Schottky rectifiers are the fastest of all and [at low voltage ratings] can drop <0.5V, resulting in greatly improved efficiency. They are the only type of rectifier used on the +3.3V and +5V rails.
There is also synchronous rectification, which uses MOSFETs switched on and off at timed intervals to avoid the problem of diode drop.
The main rails use 3-pinned components containing two diodes with a shared cathode terminal. These get hot and require a heatsink. The -12V output uses small cylindrical diodes (rarely if ever Schottky as efficiency is not the goal) usually rated for only 1~2A. The +5VSB output may use either a larger cylindrical diode (generally rated for 3~5A) or a power rectifier similar to those on the main rails. Some ultra-low-quality PSUs use two cylindrical diodes (usually fast recovery and rated for 3A each) in place of the +12V rectifier, crippling its current capacity to a theoretical 6A, which is inadequate for any modern system that draws most of its power from that rail.
Unlike the switchers, they don’t go out with a fireworks display when they fail. The rectifier will short internally, the output voltage for whichever rail it is on will briefly spike, damaging attached hardware and the PSU’s SCP (Short Circuit Protection) will step in and shut the PSU down.
Users browsing this forum: No registered users and 45 guests