A phone charger, notebook adapter, or other power supply converts the AC available from a wall outlet into the DC voltage rails required by electronic circuits, such as 5 V or 3.3 V. This conversion is necessary because utility power and electronic loads operate in fundamentally different forms. The AC input must be rectified, filtered, switched or transformed as required, and regulated before it can provide a stable DC output.
Why AC Must Be Converted to DC
Most electronic products, including phones, routers, and embedded devices, operate from DC supply rails such as 5 V or 3.3 V. Household power, by contrast, is supplied as 220 V AC. An AC-DC power supply therefore serves as the interface between the utility source and the low-voltage electronics.
Electricity may be generated far from the point where it is consumed. For long-distance transmission, AC power can be transmitted at high voltage and relatively low current to reduce transmission losses. It is then stepped down through the distribution network before reaching homes and other end users as 220 V AC.
The power supply must then convert this AC waveform into a controlled DC output. Depending on the required power level, size, efficiency, and electrical performance, designers may use either a line-frequency transformer-based approach or a switching conversion topology.
Two Common AC-DC Conversion Methods
1. Line-Frequency Transformer Conversion
A traditional transformer-based AC-DC supply uses the utility frequency directly. The process can be divided into three main stages.
- A low-frequency transformer designed for 50–60 Hz AC reduces the high input voltage to a lower AC voltage.
- A rectifier converts the low-voltage AC waveform into DC. A bridge rectifier is commonly used to utilize both half-cycles of the input waveform.
- A capacitor filter reduces the remaining voltage ripple and smooths the rectified waveform into a more stable DC voltage.
This approach is relatively straightforward because the transformer performs the primary voltage conversion directly at the line frequency. However, the transformer must handle the low operating frequency, which generally results in a larger and heavier magnetic component.
2. Switching AC-DC Conversion
A switching power supply uses a higher-frequency switching stage to reduce the size of the magnetic components and improve conversion efficiency. A typical conversion sequence is more involved.
- A bridge rectifier first converts the incoming AC into a pulsating DC waveform.
- A capacitor smooths the rectified voltage before it reaches the switching stage.
- A switching device rapidly chops the DC voltage under the control of a switch-mode controller.
- A high-frequency transformer transfers energy and steps the voltage down to a suitable level.
- A rectifier diode converts the transformer output waveform into DC, while capacitors smooth the resulting waveform.
- A feedback circuit monitors the output and allows the controller to regulate the switching process so that the required DC output voltage is maintained.
Because the transformer operates at a much higher frequency than a conventional line-frequency transformer, its physical size can be reduced. The tradeoff is a more complex circuit with high-frequency switching behavior that must be controlled carefully to manage switching noise and electromagnetic interference (EMI).
Line-Frequency Transformer vs. Switching Conversion
The two approaches involve different engineering tradeoffs. A line-frequency transformer supply has a relatively simple circuit structure and can provide low switching noise, but its transformer is large and heavy. It can also generate considerable heat and generally has lower efficiency.
A switching supply can achieve a smaller and lighter design with higher efficiency, making it suitable for compact chargers and adapters. However, the circuit is more complex and includes components that must withstand high voltage and fast switching transients. The switching operation also introduces high-frequency noise and EMI, which makes component placement, grounding, current-loop control, and PCB layout important parts of the design.
Core Blocks in a Complete AC-DC Circuit
A practical AC-DC converter typically contains several functional blocks. Each block performs a different part of the conversion, protection, or regulation process.
- Input filter: Reduces high-frequency noise entering or leaving the power converter and helps maintain stable operation of the following stages.
- Rectifier bridge: Uses four diodes to rectify both half-cycles of the AC input and produce a DC waveform.
- Filter: Capacitors, inductors, or combinations of both reduce ripple and smooth the rectified or switched waveform.
- Regulator: Uses feedback to control the conversion process and maintain the required output voltage as operating conditions change.
- Output protection: Helps protect the load against conditions such as overcurrent, overvoltage, and short circuits.
- Control circuit: Contains the switch-mode controller and associated circuitry that controls the switching device and coordinates power conversion.
These blocks are closely related. The input stage handles the incoming AC and associated noise, the power stage performs the main energy conversion, and the feedback and protection circuits help maintain a controlled and safe output.
HFC0500 Application Circuit
The HFC0500 application circuit provides a practical example of how the functional blocks are implemented in a switching AC-DC converter.

Figure 1 | HFC0500 AC-DC application circuit
- The input protection and filtering stage uses a fuse for overcurrent protection, a common-mode inductor to reject common-mode noise, and X-capacitor CX1 to reduce differential-mode noise.
- After the bridge rectifier, capacitors provide additional filtering. An RCD snubber is used around the switching stage to help control switching transients and protect the switch.
- Pin 5 of the IC provides the drive signal for the switching device, allowing the DC input to be chopped at high frequency.
- High-frequency transformer T1 transfers energy and steps the voltage down to a lower level. The transformer output is then half-wave rectified by diode D6.
- Capacitors C10 and C11 filter the rectified waveform and produce the required DC output voltage.
- The feedback path uses an optocoupler to transfer the regulation signal across the isolation barrier. This allows the output voltage to be monitored while maintaining isolation between the primary and secondary sides.
The circuit therefore follows the basic structure of an isolated switching AC-DC converter: input protection and filtering, rectification, switching, high-frequency transformation, secondary-side rectification and filtering, and isolated feedback regulation.
PCB Layout Rules for AC-DC Power Supplies
Once the circuit is defined, PCB layout becomes an important part of controlling switching noise and maintaining stable operation. The high-current and high-frequency paths should be considered as complete current loops rather than as individual traces.
1. Keep the Main Current Loops Small
Three important loops should be kept as small as practical: the input switching loop, the auxiliary-winding loop, and the output loop. The input loop consists of C1–T1–Q1–R11/R12/R13–C1. The auxiliary-winding loop is T1–D4–R4–C3–T1, while the output loop is T1–D6–C10–T1.
Reducing the physical area of these high-frequency loops helps limit unwanted coupling and makes the circuit less susceptible to noise. The top and bottom PCB views below illustrate the routing of these power loops.

Figure 2 | AC-DC PCB top view showing the main power loops

Figure 3 | AC-DC PCB bottom view showing the main power loops
2. Separate the Ground Regions
The input-loop ground and control-circuit ground should be separated and connected at a defined point. In this design, the connection point is at C1. Controlling where the grounds meet helps prevent high-frequency power currents from unnecessarily flowing through sensitive control circuitry.
3. Limit High-Frequency Noise Around the Switch
The heatsink of switching device Q1 should be connected to the main ground plane, while nearby PCB copper should be cut away as required to isolate the noisy switching region. This helps limit unwanted capacitive coupling from the switching node to surrounding circuitry.
4. Protect the Feedback Network
The feedback signal is sensitive to switching noise, so its routing should be kept short and separated from high-voltage or high-current power traces. Avoiding unnecessary routing near noisy switching nodes helps prevent interference from being coupled into the regulation path.
5. Maintain Optocoupler Isolation
The optocoupler separates the feedback signal across the primary and secondary sides of the converter. A PCB slot can be introduced between the two sides of the optocoupler to reinforce the physical separation between the isolated circuits.
Conclusion
AC-DC conversion provides the electrical interface between utility power and the DC rails required by electronic products. A line-frequency transformer approach offers a simpler structure, while switching conversion enables smaller and lighter power supplies at higher efficiency but requires greater attention to switching noise and EMI.
In a switching AC-DC design, the input filter, rectifier, switching stage, transformer, output rectifier, filter, feedback circuit, and protection network work together as one power-conversion system. PCB layout is equally important: keeping high-frequency current loops compact, controlling ground connections, isolating noisy switching areas, protecting the feedback path, and maintaining optocoupler isolation all contribute to stable power-supply operation.