Buckand Ldo
Buckand Ldo
2
3
4
Uğur Keleş
5
Contents
ELECTRONIC SWITCHES...........................................................................................................7
Diodes..........................................................................................................................................7
Thyristors.....................................................................................................................................7
Transistors....................................................................................................................................8
MOSFET..................................................................................................................................8
BJT...........................................................................................................................................8
IGBT........................................................................................................................................8
Switch Selection..........................................................................................................................8
DC-DC CONVERTERS..................................................................................................................9
Linear Regulators.........................................................................................................................9
A Basic Switching Regulator.......................................................................................................9
Buck Converter..........................................................................................................................10
Analysis of the Buck Converter.............................................................................................11
Design Considerations...........................................................................................................13
LDO AND BUCK PCB DESIGN.................................................................................................14
Voltage Regulator......................................................................................................................14
Schematics.............................................................................................................................14
PCB of LDO..........................................................................................................................14
Buck Converter..........................................................................................................................15
Schematics.............................................................................................................................15
PCB of Buck Converter.........................................................................................................19
REFERENCES..............................................................................................................................22
6
BASIC CONCEPTS
It all starts with the will of having different voltage levels.
Let’s say we would like to get 3 volts output voltage from a 9 volts battery. The first idea is to
use the voltage divider.
V ¿∗R L 9 V
V out = = =3 V
2 R L+ R L 3
We get the result we would like to have but some problems occur:
1. If the load resistor changes, the output voltage changes except we change the 2RL
resistance accordingly.
2. The energy is dissipated as the heat. So, this circuit has low efficiency.
A solution to the first problem could be to use a transistor to be controlled so that the voltage
across it is 6 volts.
A solution to the second problem incorporates the usage of switches. Whenever a switch is open,
theoretically, and since there is no current across it, the power absorbed is zero. Whenever a
switch is closed since it becomes a short circuit, there is no voltage difference across it and the
power absorbed by it zero.
7
If we close the switch one third of a period, the average value of the output voltage is one third
of the input voltage, in this case 3 volts voltage.
The waveform of the output voltage includes AC terms as well as DC terms. An ideal low-pass
filter allows the dc component of voltage the pass while removing the AC terms. The final
circuit, if everything is ideal, is 100 percent efficient.
In real world, nothing is ideal and there will be losses, but these simple circuits and definitions
are great way to grasp these concepts firmly. Thus, it builds a solid basis block to understand the
further concepts.
ELECTRONIC SWITCHES
Diodes
Diodes are simple on and off devices. When a diode turns off, the current in it decreases and
momentarily becomes negative before becoming zero. This period is called Reverse Recovery
Time.
Schottky diodes are used in low voltage applications and have voltage drop at 0.3V. The reverse
voltage is up to 100V. They turn on and off faster than P-N junction diodes.
Thyristors
They are used where control of switch turn-on is required. The switching frequencies cannot be
as high as other devices such as MOSFETs.
Transistors
The turn-on and turn-off are controllable. The types are BJTs, MOSFETs, IGBTs.
MOSFET
A sufficiently large gate-to-source voltage (Vgs) will turn the
device on, resulting in a small drain-to-source voltage (Vds).
BJT
The on-state for the transistor is achieved by providing sufficient
base current to drive the BJT into saturation.
IGBT
It is an integrated connection of a MOSFET and a BJT. IGBTs replace BJTs in many
applications.
Switch Selection
MOSFET generally has lower switching losses and is preferred over the BJT.
9
DC-DC CONVERTERS
Linear Regulators
Before diving into converters, let’s review the concepts we discussed in the “basic concepts”
section.
I explained that to keep a constant voltage output, we can incorporate in our design a transistor
and a feedback loop. This is an example of internal operation of a linear regulator image taken
from Digikey.
It is inefficient due to the power loss in the transistor. The transistor operates in the linear region,
hence the name “Linear Regulators”.
An efficient alternative to the linear regulator is the switching converter. In a switching converter
circuit, the transistor operates as an electronic switch by being completely on or completely off
(saturation or cutoff for a BJT or the triode and cutoff regions of a MOSFET).
Buck Converter
One way of obtaining a dc output is to insert a low-pass filter after the switch. Figure below
shows an LC low-pass filter added to the basic converter. The diode provides a path for the
inductor current when the switch is opened and is reverse-biased when the switch is closed. This
circuit is called a buck converter or a step-down converter because the output voltage is less than
the input. Here is a buck converter topology.
A way of analyzing the operation of the buck converter is to examine inductor voltage and
current. This is useful for designing the filter and analyzing circuits.
An inductor current that remains positive throughout the switching period is known as conductor
current.
DC-DC converters have the following properties when operating in the steady-state.
1. The inductor current is periodic.
i L ( t +T )=i L (t)
4. In an ideal structure the power of the output is equal to the power of the source. For a
non-ideal structure losses must be added to the power of the output.
The key to the analysis for determining the output Vo is to examine the inductor current and
inductor voltage first for the switch closed and then for the switch open.
The net change in inductor current over one period must be zero for steady-state operation.
The average inductor voltage is zero.
Calculations
(
( ∆i L ) closed = L )
V s−V o
DT
Analysis for the Switch Open
(V )
o
( ∆i L ) open=− L (1−D)T
( ∆i L ) closed + ( ∆ iL )open=¿ V o =V s D
The average inductor current must be the same as the average current in the load resistor, since
the average capacitor current must be zero for steady-state operation:
Vo
I L =I R =
R
∆i
I max=I L + =V o +
2
1 1− D
R 2 Lf ( )
∆i
I min =I L− =V o −
2
1 1−D
R 2 Lf ( )
For the preceding analysis to be valid, continuous current in the inductor must be verified.
(1−D ) R
Lmin = for continous current
2f
In the design of buck converter, the peak-to-peak variation in the inductor current is often used
as a design criterion.
V s −V o V o (1−D)
L= D=
∆ iL f ∆ iL f
The change in charge ∆ Q is the area of the triangle above the time axis.
( )( )
1 T ∆ iL T ∆ i L
∆ Q= =
2 2 2 8
T ∆ i L V o (1−D)
∆ V o= = 2
8C 8 LC f
∆ V o is the peak-to-peak ripple voltage at the output. It is also useful to express the ripple as a
fraction of the output voltage.
∆ V o 1−D
=
V o 8 LC f 2
13
1−D
C=
∆Vo 2
8 L( )f
Vo
If the ripple is not large, the assumption of a constant output voltage is reasonable, and the
preceding analysis is essentially valid.
The ripple voltage due to the ESR can be much larger than the ripple due to the pure capacitance.
In that case, the output capacitor is chosen based on the equivalent series resistance rather than
capacitance only.
∆ V o ,C ∆ V o , ESR =∆ iC r C
Design Considerations
Most buck converters are designed for continuous-current operation.
As the switching frequency increases, the minimum size of the inductor to produce
continuous current and the minimum size of the capacitor to limit output ripple both
decrease.
Increased power loss in the switches means that heat is produced. This decreases the
converter’s efficiency and may require a large heat sink.
The inductor value should be larger than Lmin to ensure continuous-current mode. The
main practice is the use 25 percent larger than the Lmin.
The ESR of the capacitor should be included because it typically gives a more significant
output voltage ripple than the ideal device.
Typical switching frequencies are above 20kHz to avoid audio noise, and they extend
well into the 100s of kilohertz and into the megahertz range.
The inductor wire must be rated at the rms current, and the core should not saturate for
peak inductor current. The capacitor must be selected to limit the output ripple to the
design specifications, to withstand peak output voltage, and to carry the required rms
current.
14
Voltage Regulator
I had several voltage regulators in my mind from LM7805 to AMS1117 and I chose AMS1117
as my final choice since it is a device widely used and a schematic or a PCB design wouldn’t
change from one regulator to another significantly.
When we examine the datasheet of the device, we see that there are various fixed-output devices
available under the name of AMS1117. We are particularly interested in the AMS1117-5.0 low
dropout regulator.
We can examine the file further and get the specifications thoroughly but that drawing a
schematic of an LDO is rather easy. It only needs decoupling capacitors at the input and the
output.
Schematics
In&Out part is for voltage input and voltage output connectors. LEDs are for indicating power.
LDO is the part where magic happens. As you can see, all is there to add capacitors.
Capacitors are for getting rid of noises and ripples.
PCB of LDO
15
You can’t see the 2D view and thus the traces but if you pay attention to the board, you can make
out that I used polygon pours for power traces and GND planes on both side. We talked that
LDOs are inefficient due to their capability of dissipating the power as heat. As stated in the
datasheet we can decrease total thermal resistance by increasing copper area in application board.
Buck Converter
The first choices I had as a buck converter were MC34063 and LM2596. Then I started to search
for a one that I do not know.
I have used JLCPCB parts website, direnc.net and celestial Altium library parts for my research.
I chose several components from the Altium library and then I check the availability of the part
both in JLCPCB parts and in direnc.net. I chose the cheaper, popular, and available one which is
TPS54302.
Schematics
First, I have read the datasheet and figured out the general concepts.
R 2∗V ref R2
R 3= V OUT =V ref ∗( +1)
V OUT −V ref R3
Inductor Selection
Use the equation to calculate the minimum value of the output inductor (LMIN).
For this design example, use KIND = 0.35. The minimum inductor value is
calculated as 9.78 μH. For this design, a close standard value of 10 μH was
selected for LMIN. For the output filter inductor, the RMS current and saturation
current ratings must not be exceeded. Use the equation to calculate the RMS
inductor current (IL(RMS)).
√
I L (MAX )= I 2OUT ( MAX ) +
1
12
∗¿ ¿ ¿
2∗∆ I OUT
C O>
f SW ∗∆ V OUT
18
Using values in the datasheet results in a minimum capacitance of 30 μF. This value does not
consider the ESR of the output capacitor in the output voltage change. For ceramic capacitors,
the ESR is usually small enough to ignore in this calculation.
Use the equation to calculate the minimum output capacitance required to meet the output
voltage ripple specification. In the datasheet, the maximum output voltage ripple is 30 mV.
Under this requirement, the equation yields 10.7 μF.
1
∗I
8∗f SW ripple
C O>
V OUTripple
Use the equation to calculate the maximum ESR an output capacitor can have to meet the output-
voltage ripple specification. The equation indicates the ESR should be less than 29.2 mΩ.
V OUTripple
R ESR<
I ripple
Additional capacitance deratings for aging, temperature, and DC bias should be considered
which increases this minimum value. For this example, two 22-uF 25-V, X7R ceramic capacitors
are used. Capacitors generally have limits to the amount of ripple current they can handle
without failing or producing excess heat. An output capacitor that can support the inductor ripple
current must be specified. Some capacitor datasheets specify the RMS value of the maximum
ripple current. Use the equation to calculate the RMS ripple current that the output capacitor
must support. For this application, the equation yields 296 mA for each capacitor.
1
∗1
2πfo
C 6=
R2
The C6 capacitor is not needed when COUT has high ESR, and C6 calculated from the equation
should be reduced with medium ESR.
The datasheet includes a layout practice and guidelines for this purpose.
20
Layout Guidelines
Follow these layout guidelines:
• The VIN and GND traces should be as wide as possible to reduce trace impedance. The wide
areas are also of advantage from the viewpoint of heat dissipation.
• The input capacitor and output capacitor should be placed as close to the device as possible to
minimize trace impedance.
• Provide sufficient vias for the input capacitor and output capacitor.
• Keep the SW trace as physically short and wide as practical to minimize radiated emissions.
• Do not allow switching current to flow under the device.
• A separate VOUT path should be connected to the upper feedback resistor.
• Make a Kelvin connection to the GND pin for the feedback path.
• The voltage feedback loop should be placed away from the high voltage switching trace, and
preferably has ground shield.
• The trace of the VFB node should be as small as possible to avoid noise coupling.
• The GND trace between the output capacitor and the GND pin should be as wide as possible to
minimize its trace impedance.
I used a double layer PCB. I tried to minimize SW node and used polygon pours for VIN and
GND planes. I dedicated my double layer as a GND plane. Only two traces routes at the bottom
layer. Those are ENABLE and BOOT pins. BOOT pin also goes under the IC. I do not know its
21
effect but in the datasheet, it is also stated that we do not allow switching current to flow under
the device.
Here are some other guides that I preferably followed to design the PCB by myself instead of
using the one that is provided in the datasheet. These guides are taken from the YouTube channel
Phil’s Lab and the YouTube video Switching Power Supply PCB Layout Seminar.
Here are some of the reasons the recommended layouts from the datasheet cannot be
implemented as is:
Major components are different in size and shape
Circuit functions omitted or added
Mechanical restrictions
Proximity to other circuits and board density
Additional thermal requirements
Test requirements
Fine pitch parts requiring thinner copper weight
Larger vias required due to board thickness
Larger vias required due to reliability concerns
Different number of PCB layers
REFERENCES
22