MPS MP4021

AN038
Primary-Side-Control with Active PFC
Offline LED Controller
The Future of Analog IC Technology
MP4021, Primary-Side-Control with
Active PFC
Offline LED Controller
Application Note
Prepared by JiaLi Cai
Sep 08, 2011
AN038 Rev. 1.1
9/9/2011
www.MonolithicPower.com
MPS Proprietary Information. Patent Protected. Unauthorized Photocopy and Duplication Prohibited.
© 2011 MPS. All Rights Reserved.
1
AN038
Primary-Side-Control with Active PFC
Offline LED Controller
The Future of Analog IC Technology
1. INTRODUCTION .................................................................................................................................. 3
2. RIMARY-SIDE-CONTROL, BOUNDARY CONDUCTION MODE OPERATION WITH PFC .............. 3
3. PIN FUNCTION AND OPERATION INFORMATION ........................................................................... 8
4. DESIGN EXAMPLE ............................................................................................................................ 15
A. Specifications ............................................................................................................................ 15
B. Schematic .................................................................................................................................. 15
C. Turns Ratio-N, Primary MOSFET and Secondary Rectifier Diode Voltage Rating Selection
......................................................................................................................................................... 16
D. Transformer Design .................................................................................................................. 17
E. Input EMI Filter (L1, L2, CX1, CX2, CY1).................................................................................. 22
F. Input Bridge (BD1) ..................................................................................................................... 22
G. Input Capacitor (C4).................................................................................................................. 22
H. Output Capacitor (C1, C2) ........................................................................................................ 23
I. RCD Snubber (R6, C8, D2) ......................................................................................................... 23
J. VCC Power Supply (R5, R13, C6, C7, D3, D6) ......................................................................... 25
K. ZCD and OVP Detector (R1, R2, C11, D5) ............................................................................... 25
L. Gate Driving Resistor and MULT Pin Resistor Divider (R7, R3, R4, C5) .............................. 25
M. Current Sensing Resistor and Feedforward (R8, R9, R10, R12, R14) .................................. 25
N. ZCD OCP Detector (R15, R16, D8) ........................................................................................... 26
O. Layout Guideline ....................................................................................................................... 26
P. BOM ............................................................................................................................................ 28
5. EXPERIMENTAL RESULT ................................................................................................................ 29
AN038 Rev. 1.1
9/9/2011
www.MonolithicPower.com
MPS Proprietary Information. Patent Protected. Unauthorized Photocopy and Duplication Prohibited.
© 2011 MPS. All Rights Reserved.
2
AN038
Primary-Side-Control with Active PFC
Offline LED Controller
The Future of Analog IC Technology
1. INTRODUCTION
The MP4021 is a primary-side-control offline LED lighting controller with PFC integrated. The primaryside-control can significantly simplify the LED lighting driving system by eliminating the opto-coupler
and the secondary feedback components in an isolated single stage converter. Its proprietary real
current control method can accurately control the LED current from the primary side information.
Internally integrated current accuracy compensations can enhance the LED current accuracy for line
input voltage variation (universal input voltage range), output voltage variation and transformer
inductance tolerance.
The MP4021 integrates power factor correction function and works in boundary conduction mode. The
power factor correction function can achieve the PF>0.9 in a universal input voltage range. The
boundary conduction mode operation can reduce the switching losses and improve the EMI
performance.
The extremely low start up current and the quiescent current can reduce the power consumption thus
lead to an excellent efficiency performance.
The MP4021 provides multiple advanced protections to enhance the system safety. The protections
include over-voltage protection, short–circuit protection, cycle-by-cycle current limit, VCC UVLO and
thermal shutdown.
The special construction inside the FB pin allows MP4021 also quite suitable for non-isolate
applications. In non-isolate condition, the feedback signal can be directly applied on FB pin.
Figure 1—Typical Application
2. RIMARY-SIDE-CONTROL, BOUNDARY CONDUCTION MODE OPERATION
WITH PFC
The conventional off-line LED lighting driver usually uses the secondary side control. The LED current
is directly sensed in the secondary side and fed to comparison with the reference which is typically
made up by TL431, the EA output is compensated and fed to primary side by an opto-coupler to
determine the duty cycle and thus regulate the LED current. Although this control method has its
advantage that directly control the LED current and the current accuracy can be conformed in any
conditions, but it also brings obvious disadvantages, lots of circuits and components are needed in the
secondary side, including sensing circuit, comparison and compensation circuit, opto-coulpler and bias
power supplies which significantly increases the cost and system complexity.
AN038 Rev. 1.1
9/9/2011
www.MonolithicPower.com
MPS Proprietary Information. Patent Protected. Unauthorized Photocopy and Duplication Prohibited.
© 2011 MPS. All Rights Reserved.
3
AN038 –PRIMARY-SIDE-CONTROL WITH ACTIVE PFC OFFLINE LED CONTROLLER
Besides, the primary side input stage of a conventional LED lighting driver typically uses a full wave
rectifier bridge with an E-cap filter to get an unregulated DC voltage. The E-cap should be large enough
to keep a relatively low ripple on the DC voltage. This means the instantaneous input line voltage is
lower than the DC voltage on the E-cap most time of a line half-cycle, thus the rectifier diodes only
conduct a small portion and make the line input current like a series of narrow pulses whose amplitude
maybe 10 times higher than the average DC level. A lot of drawbacks are resulted: much higher peak
and RMS current draw from the line, distortion of the line input current causes a poor power factor
(most time only 0.5-0.6) and induces large high harmonic contents.
As Shown in Figure 1, the MP4021 uses primary-side-control, no need any secondary feedback
components, which can sharply reduce the component amount and cost. As we know, the LED current
is the average current of transformer secondary side during a line half-cycle Io  Is _ avg , the MP4021 can
calculate the average current of the transformer secondary side from the primary side information and
control it to a required value, this is the MP4021 primary-side-control principle.
The MP4021 integrates power factor correction function and works in boundary conduction mode. The
boundary conduction mode, makes the transformer work on the boundary between the continuous and
discontinuous mode, which is quite different from the well-known resonant converter. Figure 2 shows
the drain-source voltage waveform of primary switch in a conventional current-mode flyback converter
operating in the discontinuous conduction mode (DCM). During the first time interval, the drain current
ramps up to the desired current level. The power MOSFET then turned off. The leakage inductance in
the flyback transformer rings with the MOSFET parasitic capacitance and causes a high voltage spike,
which is limited by a clamp circuit. After the inductive spike has damped, the drain voltage equals to the
input voltage plus the reflected output voltage. The drain voltage would immediately drop to the bus
voltage when the current in the output diode drops to zero if the parasitic ring of the primary inductance
and the parasitic capacitance is ignored. However, the drain voltage rings down to this level as shown
in Fig 2 due to the parasitic resonance by the primary inductance and the total parasitic capacitance.
For example, the inductance is 1mH and the parasitic capacitance is 100pF, then the resonant
frequency is 500kHz. The resonant circuit is lightly damped and the resonant frequency given below is
independent of the input voltage and load currents:
fresonant 
1
2  Lm  Ceqp
Where Lm is the primary inductance; Ceqp is the equivalent primary side parasitic capacitance which
including parasitic capacitance of the primary winding, the parasitic capacitance of the MOSFET and
the parasitic capacitance of the secondary side (including the secondary winding and output rectifier
diode) reflect to primary side.
AN038 Rev. 1.1
9/9/2011
www.MonolithicPower.com
MPS Proprietary Information. Patent Protected. Unauthorized Photocopy and Duplication Prohibited.
© 2011 MPS. All Rights Reserved.
4
AN038 –PRIMARY-SIDE-CONTROL WITH ACTIVE PFC OFFLINE LED CONTROLLER
Figure 2—Single-Pulsed Flyback Converter
In a conventional fixed frequency flyback converter at DCM operation, the primary switch (MOSFET) is
turned on at a fixed frequency and turned off when the current reaches the desired level. The device's
turn-on time may occur at any point during this parasitic resonance. In some cases the device may turn
on when the drain voltage is lower than the bus voltage (means low switching losses and high
efficiency), and in some cases the switch will turn on when the drain voltage is higher above the bus
voltage (means high switching loss). This characteristic is often observed on the efficiency curves of a
discontinuous flyback converters with a constant load, the efficiency fluctuated with the input voltage as
the turn-on switching loss changes due to the variation of the drain voltage at the turn on point.
In boundary conduction operation, the switch does not have a fixed switching frequency. The switch will
always turn on by the controller when the drain voltage reaches its relatively low point. This can be
achieved by detecting the auxiliary winding voltage VZCD, which is a ratio of primary winding voltage.
Show in the Figure 3, setting a falling edge detecting near zero, when the secondary side current
deceases to zero, the parasitic resonance make the ZCD voltage decrease, when it reaches to
detecting threshold, the MOSFET turning on signal will be triggered. The detecting delay time is
determined by the transformer magnetizing inductance, parasitic capacitance and ZCD filtering
capacitor. The switch on time (T1 in Figure 3) is determined by the feedback loop as conventional peak
current mode control. The energy stored in the magnetizing inductor is fully transferred to the output.
AN038 Rev. 1.1
9/9/2011
www.MonolithicPower.com
MPS Proprietary Information. Patent Protected. Unauthorized Photocopy and Duplication Prohibited.
© 2011 MPS. All Rights Reserved.
5
AN038 –PRIMARY-SIDE-CONTROL WITH ACTIVE PFC OFFLINE LED CONTROLLER
Figure 3—Boundary Conduction Mode
Compared to the conventional flyback under CCM and DCM operation, the boundary conduction mode
operation can minimize the turn on switching loss, thus increasing efficiency and lowering device
temperature rise.
N:1
EMI
filter
GATE
MULT
Multiplier
PWM/PFC
Current control
Control
Gate
driver
Current sense
CS
Current
Sense
COMP
Current
LImit
OTP
Latch off
or
Restart
Protection
Power supply
UVLO
FB/NC
VCC
Real Current
Control
Power Supply
OVP
GND
OCP
ZCD
Zero Current
Detection
Zero current detection
Figure 4—MP4021 Function Block Diagram and the Controlled LED Driving Converter
The MP4021 function block diagram and the controlled LED Driving Converter are shown in Figure 4.
The converter consists of an EMI filter, a diode bridge rectifier, a flyback circuit with the controller
MP4021. The goal is to regulate the output LED current to a required constant value and achieve the
AN038 Rev. 1.1
9/9/2011
www.MonolithicPower.com
MPS Proprietary Information. Patent Protected. Unauthorized Photocopy and Duplication Prohibited.
© 2011 MPS. All Rights Reserved.
6
AN038 –PRIMARY-SIDE-CONTROL WITH ACTIVE PFC OFFLINE LED CONTROLLER
power factor correction function of input current. The operation of the converter can be summarized by
the following description.
The AC mains voltage is rectified by the diode bridge, the rectified half sinusoid wave is applied to the
flyback circuit. When the MOSFET is turned on, the transformer primary side current begins to ramp up
from zero, and this current will be sensed at CS pin through a sensing resistor. The sensed current
signal will be fed to the primary-side-control block to calculate its average value. The internal error
amplifier compares the average value with an internal reference (0.4V), generating a signal error
proportional to the difference between them. If the bandwidth of the error amplifier is narrow enough
(below 20Hz), the error signal is a DC value over a line half-cycle and kept at a constant value until the
average value equals the reference. That means the output LED current is regulated to a required
constant value.
The error signal is fed into the multiplier block and multiplied by a partition of the rectified mains
voltage. The result will be a rectified sinusoid whose peak amplitude depends on the mains peak
voltage and the value of the error signal. The output of the multiplier is then fed into the negative input
of the current comparator, thus it represents a sinusoidal reference for PWM. As the voltage on the
current CS pin equals the value on the negative input of the current comparator, the external MOSFET
is turned off. As a consequence, the peak primary current will be enveloped by a rectified sinusoid and
has the same phase with the main input voltage, so a good power factor can be implemented. It is
possible to prove also that this operation produces a constant ON-time over each line half-cycle.
VCS  Rs  Vin 
Ton
Lm
Have VCS  VMultiplier ,
VMultipier  K1  K 2  Vin * (VCOMP  1) ,
got Ton 
Lm  K1  K 2 (VCOMP  1)
Rs
Where Lm is the primary inductance, Rs is the current sensing resistor, K1 is the multiplier gain, K 2 is
the ratio of the MULT pin voltage to mains voltage.
After the MOSFET has been turned off, the transformer discharges its magnetizing energy into the load
at the secondary side until its current goes to zero. When the current reaches to zero, the transformer
has now run out of energy, the drain node is floating and the inductor resonates with the total
capacitance of the drain. The drain voltage drops rapidly below the instantaneous line voltage and the
detecting signal on ZCD drives the MOSFET on again and another conversion cycle starts. So, in each
duty cycle, the MOSFET turns on at the current reaching zero, the converter works at boundary
conduction mode. The relatively low drain voltage at turning on reduces both the turn on loss and the
drain capacitive energy which is also dissipated at MOSFET turning on.
AN038 Rev. 1.1
9/9/2011
www.MonolithicPower.com
MPS Proprietary Information. Patent Protected. Unauthorized Photocopy and Duplication Prohibited.
© 2011 MPS. All Rights Reserved.
7
AN038 –PRIMARY-SIDE-CONTROL WITH ACTIVE PFC OFFLINE LED CONTROLLER
Figure 5—Transformer Both Side Current and MOSFET Gate Timing
The transformer current on both side and the MOSFET gate timing are shown in Figure 5. The
operation frequency increases with the instantaneous mains voltage increases. when the mains voltage
closed to the zero-crossing point, the frequency maybe very high. The MP4021 has internally set a
3.5µs minimum off time to limit the maximum switching frequency and help for high efficiency and low
EMI performance.
PIN FUNCTION AND OPERATION INFORMATION
Pin1 (MULT)
The MULT pin is one of the input pin of the internal multiplier. This pin should be connected to the tap
of the resistor divider from the rectified instantaneous line voltage. The output of the multiplier will be
shaped as sinusoid too. This signal provides the reference for the current comparator which sets the
primary peak current shaped as sinusoid in phase with the input line voltage cycle by cycle.
AN038 Rev. 1.1
9/9/2011
www.MonolithicPower.com
MPS Proprietary Information. Patent Protected. Unauthorized Photocopy and Duplication Prohibited.
© 2011 MPS. All Rights Reserved.
8
AN038 –PRIMARY-SIDE-CONTROL WITH ACTIVE PFC OFFLINE LED CONTROLLER
AC mains
RMULT1
Primary
Current Sense
CMULT
RMULT2
MULT
+
Current
Comparator
Multiplier
COMP
2.5V
clamp
EA
0.4V
Figure 6—The MULT Pin Connection Circuitry
The MULT pin linear operation voltage range is 0~3V, for an universal AC input application, the MULT
pin voltage need to be set low at the minimum AC input voltage so that the MULT voltage will not
exceed 3V at the maximum AC input voltage. But also, the MULT pin voltage can not be set too low,
this will cause a high COMP voltage to regulate the same LED current, The COMP voltage may
saturate when the MULT pin is set too low. A recommended model to set the MULT voltage is shown
as follow:
2  Vin _ max(rms) 
RMULT2
 2.5 ~ 3
RMULT1  RMULT2
Considering the losses, the RMULT1 should be large enough, for example, 85V~265VAC input, the
RMULT1, RMULT2 can be chosen as 1M, 6.8kΩ with a 100pF bypass capacitor.
Pin2 (ZCD)
Figure 7—The ZCD Pin Connection Circuitry
AN038 Rev. 1.1
9/9/2011
www.MonolithicPower.com
MPS Proprietary Information. Patent Protected. Unauthorized Photocopy and Duplication Prohibited.
© 2011 MPS. All Rights Reserved.
9
AN038 –PRIMARY-SIDE-CONTROL WITH ACTIVE PFC OFFLINE LED CONTROLLER
The ZCD pin connection circuitry is shown in Figure 7. The ZCD pin is connected to the auxiliary
winding through a resistor divider. The ZCD pin is used for three functions. One is to detect zero-cross
condition of the auxiliary winding voltage after the secondary side current decreases to zero, which
achieves the boundary conduction mode operation to minimize the switching losses and EMI. The
second function of ZCD pin is to implement the output over voltage protection by comparing to the
internal 5.4V reference. The third function is to activate the over current protection by detecting the
primary-side current.
The internal gate turn-on signal occurs when the ZCD pin voltage gets a falling edge below 0.31V from
the resistor divider with a 0.65V hysteresis. A ceramic by pass capacitor is needed to absorb the high
frequency oscillation of the leakage inductance and the parasitic capacitance after primary switch turns
off which may mis-trigger the ZCD pin detection (see Figure 9). The switching frequency of MP4021 is
variable, the frequency is changing with the input instantaneous line voltage. To limit the maximum frequency
and get a good EMI and efficiency performance, MP4021 employs an internal minimum off time limiter—
3.5μs, shown in Figure 8.
ZCD
GATE
Toff >3.5µs
1µs/div
Figure 8—Minimum Off Time
The output over voltage protection is achieved by detecting the positive plateau of auxiliary winding
voltage which is proportion to the output voltage (see Figure 9). Once the ZCD pin voltage is higher
than 5.4V, the OVP signal will be triggered and latched, the gate driver will be turned off and the VCC
voltage dropped below the UVLO which will make the IC reset and the system restarts again. The
output OVP setting point can be calculated as:
Vout  ovp 
Naux
R ZCD2

 5.4V
Nsec R ZCD1  R ZCD2
Where Vout _ ovp is the output OVP setting voltage; Naux is the auxiliary winding turns of the transformer and
Nsec is secondary winding turns of the transformer. Following should be considered when choosing the
resistor value: the losses and the ZCD falling edge detection delay time with the ceramic bypass
capacitor, enlarging the delay time will reduce output LED current, basically, the delay time should be
limited in 1.5μs. To avoid the OVP mis-trigger by the oscillation spike after the switch turns off, the
MP4021 integrates an internal TOVPS blanking time for the OVP detection, typical 1.5μs (see Figure 9).
AN038 Rev. 1.1
9/9/2011
www.MonolithicPower.com
MPS Proprietary Information. Patent Protected. Unauthorized Photocopy and Duplication Prohibited.
© 2011 MPS. All Rights Reserved.
10
AN038 –PRIMARY-SIDE-CONTROL WITH ACTIVE PFC OFFLINE LED CONTROLLER
Figure 9—The ZCD Voltage
As over current protection, tie a resistor divider form CS sensing resistor to ZCD pin, shown in Figure 7.
When the power MOSFET in the primary-side is turned on, the ZCD pin monitors the rising primaryside current, once the ZCD pin reaches OCP threshold, typical 0.6V, the gate driver will be turned off to
prevent the chip form damage and the IC works at quiescent mode, the VCC voltage dropped below
the UVLO which will make the IC shut down and the system restarts again. The primary-side OCP
setting point can be calculated as:
IPRI _ OCP  RCS 
R OCP2
 VD  0.6V
ROCP1  ROCP2
Where IPRI_OCP is primary-side over current protection current value, VD is the voltage drop of the diode.
Please note that, when the MOS is turned on, the taps of the ZCD zero-current detector resistor divider
and the OCP resistor divider are connected by a diode. So, to avoid the effect of the ZCD zero-current
detector, the value of the resistors to set the OCP threshold (ROCP1 & ROCP2) should be much smaller
than those of the ZCD zero-current detector (RZCD1 & RZCD2).
Pin3 (VCC)
Figure 10—The VCC Pin Connection Circuitry and the Power Supply Flow-Chart
AN038 Rev. 1.1
9/9/2011
www.MonolithicPower.com
MPS Proprietary Information. Patent Protected. Unauthorized Photocopy and Duplication Prohibited.
© 2011 MPS. All Rights Reserved.
11
AN038 –PRIMARY-SIDE-CONTROL WITH ACTIVE PFC OFFLINE LED CONTROLLER
The VCC pin provides the power supply both for the internal logic circuitry and the gate driver signal.
The VCC pin connection circuitry and the power supply flow-chart is shown in Figure 10. When AC
power supply is on, the bulk capacitor CVCC1 (typically 22μF) is first charged by the start up resistor
RVCC1 from the AC line, once the VCC voltage reaches 13.6V, the IC will be enabled and begin to
switch, the power consumption of the IC increases, then the auxiliary winding starts working and mainly
takes the charge of the power supply for VCC. Since the voltage of auxiliary winding is proportion to
that of the secondary winding, the VCC voltage will be finally regulated to a constant value. If VCC
drops below the UVLO threshold 9V before the auxiliary winding can provide the power supply, the IC
will be shut down and the VCC will restart charging from AC line again. If fault condition happens at
normal operation, the switching signal will be stopped and latched, the IC works at quiescent mode,
when the VCC voltage drops below 9V the system restarts again. So, the RVCC1 should be large enough
to limit the charging current which ensures the VCC voltage can drop below 9V UVLO threshold at
quiescent mode (typically 0.75mA consumption current in quiescent mode). Also, a small ceramic
capacitor (typically 0.1μF) is needed to reduce the noise.
Pin4 (GATE)
Gate drive output for driving external MOSFET. The internal totem pole output stage is able to drive
external high power MOSFET with 1A source capability and 1.2A sink capability. The high level voltage
of this pin is clamped to 13.5V to avoid excessive gate drive voltage. And for normal operation, the low
level voltage is higher than 6V to guarantee enough drive capacity. Connect this pin to the MOSFET
gate in series with a driving resistor. A smaller driving resistor provides faster MOSFET switching,
reduces switching loss and improve MOSFET thermal performance. However larger driving resistors
usually provide better EMI performance. It is a tradeoff. For different applications, the driving resistors
should be fine tuned. Typically, the value can be 5Ω~20Ω.
Pin5 (CS)
The CS pin is used to sense the primary side current via a sensing resistor, the resulting voltage is
internally fed both to the current comparator to determine the MOSFET turn off time and the average
current calculation block to calculate the primary current average value. The output LED mean current
can be calculated approximately as:
N  VFB
I0 
2  RS
Where N is the turn ratio of primary winding to secondary winding, VFB is the feedback reference
voltage (typically 0.4V), Rs is the sensing resistor connected between the MOSFET source and GND.
The maximum voltage on CS pin is clamped at 2.5V to get a cycle-by-cycle current limit.
In order to avoid the premature termination of the switching pulse due to the parasitic capacitance
discharging at MOSFET turning on, an internal leading edge blanking (LEB) unit is employed between
the CS Pin and internal feedback. During the blanking time, the internal fed path is blocked. Figure 11
shows the leading edge blanking.
Figure 11— The Leading Edge Blanking
AN038 Rev. 1.1
9/9/2011
www.MonolithicPower.com
MPS Proprietary Information. Patent Protected. Unauthorized Photocopy and Duplication Prohibited.
© 2011 MPS. All Rights Reserved.
12
AN038 –PRIMARY-SIDE-CONTROL WITH ACTIVE PFC OFFLINE LED CONTROLLER
In the case of current sensing, shows as Figure 12, the MOSFET has a delay time due to the
propagation delay of the gate control circuit, the delay time is the inherent characteristic of the control
circuit, so Tdelay can be assumed as constant. The delay will lead an error of the primary side peak
current. The error increases with the input instantaneous line voltage increase. △I2 is bigger than △I1
due to the bigger rising slope (the higher input voltage, the bigger rising slope). So, the difference of △I
will cause a bad output LED current line regulation.
Figure 12—The Propagation Delay of the Primary Current
The propagation delay influence to the line regulation can be well improved by adding feed-forward
from AC line voltage to CS pin, shown in Figure 13, the higher line voltage, the higher feed-forward
offset. The feed-forward offset value need fine tune in real application and it is case by case.
Figure 13—The Feedforward Compensation on CS Pin
Pin6 (GND)
Ground pin, current return of the control signal and the gate drive signal. It is recommended to connect
power GND and analog GND to this pin in the PCB layout. The power GND for power switches and the
analog GND for the control signals is desired to be separated and only connected at this pin.
Pin7 (FB/NC)
Feedback signal pin. Shown in Figure 14, the FB signal is fed to the error amplifier and comparing with
the 0.4V reference, at steady state, the average value of FB will be regulated to 0.4V. The average
current calculation block output is internally connected to the FB with high input impedance, if there is
no other external feedback signal is applied on FB pin, the average current from CS pin will be
regulated, if there is external FB signal with low input impedance apply in this pin, the external FB
signal will be regulated. This structure makes the MP4021 suitable both for primary side control
application without other feedback signals and direct control application with external feedback signal
applied.
AN038 Rev. 1.1
9/9/2011
www.MonolithicPower.com
MPS Proprietary Information. Patent Protected. Unauthorized Photocopy and Duplication Prohibited.
© 2011 MPS. All Rights Reserved.
13
AN038 –PRIMARY-SIDE-CONTROL WITH ACTIVE PFC OFFLINE LED CONTROLLER
Figure 14—FB Pin Structure
Pin8 (COMP)
Loop compensation pin. Connect a compensation cap from this pin to AGND. This cap should be low
ESR ceramic cap such as X7R. The COMP pin is the internal error amplifier output. In order to get a
limit loop bandwidth <20Hz, the cap should be select from 2.2µF to 10µF. A larger cap results in small
input and output current ripple and better thermal, EMI, steady states performance, but also, a large
cap means a longer soft start time which will cause a bigger voltage drop for VCC at start up (see
Figure 15), if the VCC drops below UVLO, the start up may fail. So the compensation cap selection and
the VCC voltage drop at start up should be double checked in real design.
VCC
ILED
VCOMP
VGATE
400ms/div
Figure 15—COMP and VCC Waveforms at Start Up
Output Short Circuit Protection
When the output short circuit happens, theoretically, the positive plateau of auxiliary winding voltage is also near
zero, the VCC can not be held on and it will drop below VCC UVLO. The IC will shut down and restart again.
And at the same time, the primary current will rise up when output short circuit occurs, so it will trigger the
ZCD over current protection to prevent the damage from output short circuit failure.
Auto Restart
The MP4021 integrates an auto starter, the starter starts timing when the MOSFET is turned on, if ZCD fails to
send out another turn on signal after 130µs, the starter will automatically send out the turn on signal which can
avoid the IC unnecessary shut down by ZCD missing detection.
AN038 Rev. 1.1
9/9/2011
www.MonolithicPower.com
MPS Proprietary Information. Patent Protected. Unauthorized Photocopy and Duplication Prohibited.
© 2011 MPS. All Rights Reserved.
14
AN038 –PRIMARY-SIDE-CONTROL WITH ACTIVE PFC OFFLINE LED CONTROLLER
4. DESIGN EXAMPLE
8W LED Bulb Driver with High Power Factor and Excellent Line Regulation
A. Specifications

Input
AC
Vin (Vac ,t) 


mains:
85V~265V
RMS,
Vac_min=85V,
Vac_max=265V,
Vin_max=
2  Vac _ max ,
2  Vac  sin(2    fmains  t) , Input AC mains frequency: fmains=50Hz
Output: LED voltage Vo=16V, LED current Io=500mA, Po=VO*IO=8W
Output OVP threshold: 22V
B. Schematic
C8
22nF/630V
R6
100k
C4
33nF/400V
BD1
DF06S
R3
1M
R4
6.8k
L2
R19
4.7mH 5.1k
CX1
68nF/275VAC
RV1
C7
100pF
D4
MURS320
R11
1M
5
1k
CON2
C3
NC
4
CY1
1 MULT
COMP 8
2 ZCD
FB
3 VCC
GND
D6
BZT52C18
4 GATE
R1
80.6k
7
R7
20
Q1
STK0765BF
C9
NC
6
R12
100
R8
1.5
CS 5
U1
MP4021
F1
275VAC
250V/2A
CON1
8
R13
ES1D
R18
L1
5.1k 4.7mH
T1
2
3
D3
47nF/275VAC
CX2
1
D2
US1K
R10
10M
R5
499k
D1
NS
R2
22.1k
2.2nF/250V
C11
D5
1N4148 10pF
R9
3.3
R14
1
R15
510
R16
3k
R17
NC
D7
U2
NC
NC
D8
1N4148
Figure 16—Schematic
AN038 Rev. 1.1
9/9/2011
www.MonolithicPower.com
MPS Proprietary Information. Patent Protected. Unauthorized Photocopy and Duplication Prohibited.
© 2011 MPS. All Rights Reserved.
15
AN038 –PRIMARY-SIDE-CONTROL WITH ACTIVE PFC OFFLINE LED CONTROLLER
C. Turns Ratio-N, Primary MOSFET and Secondary Rectifier Diode Voltage Rating
Selection
Figure 17 shows the typical Drain-Source voltage waveform of the primary MOSFET and secondary
rectifier diode. From the waveform, the primary MOSFET Drain-Source voltage rating VP-MOS can be got
as:
VP MOS  Vin _ max  N  VO  150V
(1)
Where 150V maximum spike voltage is assumed here.
The secondary rectifier diode voltage rating VDIODE can be got as:
VDIODE  Vin _ max / N  VO  40V
(2)
Where 40V maximum spike voltage is assumed here.
Figure 17—Drain-Source Voltage of Primary MOSFET and Secondary Rectifier Diode
From (1) and (2), the voltage rating of primary MOSFET and secondary rectifier diode versus turns-ratio
N is shown in Figure 18. Then the turns-ratio N can be determined for the required MOSFET and
Rectifier diode voltage rating. Sometimes N can be selected within a range, then smaller N means
larger turn on time and larger primary RMS current, this will lead a larger size transformer, so a
relatively larger N is preferred. Here choosing N=6, so 650V or 700V MOSFET and 150V, 200V
schottky or fast recovery diode can be used.
3
110
1000
140
940
880
120
820
760
Vp_MOSFET ( N )
700
Vs_diode( N ) 100
640
580
80
520
400
460
400
70.984
2
2
3
4
5
6
7
8
9
N
10
11
12
13
14
15
15
60
4
4
5
6
7
8
9
10
11
12
N
13
14
15
15
Figure 18—Voltage Rating of Primary MOSFET and Secondary Rectifier Diode vs. Turn Ratio-N
AN038 Rev. 1.1
9/9/2011
www.MonolithicPower.com
MPS Proprietary Information. Patent Protected. Unauthorized Photocopy and Duplication Prohibited.
© 2011 MPS. All Rights Reserved.
16
AN038 –PRIMARY-SIDE-CONTROL WITH ACTIVE PFC OFFLINE LED CONTROLLER
D. Transformer Design
Primary Inductance Lp
As described in page 7, the MP4021 implements constant ON-time operation during a line cycle with a
given RMS line voltage. The turn-off time is variable with the instantaneous line voltage.
Ton 
Lp  Ip
Vin (Vac ,t)
Get:
(3),
Toff 
Toff (Ton , Vac ,t) 
Lp  Ip
N  Vo
(4),
Vin (Vac ,t)  Ton
N  Vo
(5)
Considering the Toff limit within MP4021, the Toff equation should be modified as:
Toff (Ton , Vac ,t) 
Vin (Vac ,t)  Ton Vin (Vac ,t)  Ton
if
 3.5s
N  Vo
N  Vo
(6)
3.5s,otherwise
Shown as Figure 19, the output LED current equals the average value of the secondary winding current
during a half-line cycle. The calculating equation is shown in (7), it sums the secondary current in each
cycle and then get the average value.
t1  a
(7)
sum  0
Io ( a, b, T o n , V a c ,L p )  w h ile ( t1  b )
  V ( V , t1  T )  T
on
on
   in a c
Lp
 
 T o ff ( T o n , V a c , t1  T o n )
sum  sum 
t1  t1  T o n
1
2


  N   T o ff ( T


on
, V a c , t1  T o n )
sum
b a
Figure 19—Secondary Side Current
AN038 Rev. 1.1
9/9/2011
www.MonolithicPower.com
MPS Proprietary Information. Patent Protected. Unauthorized Photocopy and Duplication Prohibited.
© 2011 MPS. All Rights Reserved.
17
AN038 –PRIMARY-SIDE-CONTROL WITH ACTIVE PFC OFFLINE LED CONTROLLER
Usually, the system will define a minimum frequency fs_min, the minimum frequency will occur at

Vin  2  85 sin( ) , here set fs_min=45 kHz,
2
Io (0,0.01,Ton _ 85V ,85,Lp )  0.5A
fs _ min 
1
 45kHz
Ton _ 85V  Toff (Ton _ 85V ,85,0.005)
(8)
(9)
Combine (8) and (9), can get Lp=2.2 mH, Ton_85V=9.86μs.
The maximum primary peak current:
Ipk _ max  Ton _ 85V 
Vin (85,0.005)
 0.54A
Lp
(10)
When getting the Lp, the maximum operation frequency also can be calculated, the maximum
frequency will occur at Vin reach to zero crossing at 265VAC.
fs _ max 
Ton _ 265V
1
 178kHz
 Toff (Ton _ 265V ,265,0)
(11)
The Primary Winding RMS Current:
t1  a
su m  0
Ip ri _ rm s (a,b, To n , V a c ,L p )  w h ile( t1  b )
(12)


To n V ( V
, t1  To n )  t 2
1
su m  su m  
( in a c
)  dt 

0
Lp
 To n  To ff (To n , V a c , t1  To n )



T
T
(T
,
V
,
t1
T
)
 o n o ff o n a c
on 
t1  t1  To n  T o ff (To n , V a c , t1  To n )
su m
ba
The maximum primary RMS current:
Ipri _ rms _ max  Ipri _ rms (0,0.01,Ton _ 85V ,85,2.2  103 )  0.156 A
AN038 Rev. 1.1
9/9/2011
www.MonolithicPower.com
MPS Proprietary Information. Patent Protected. Unauthorized Photocopy and Duplication Prohibited.
© 2011 MPS. All Rights Reserved.
(13)
18
AN038 –PRIMARY-SIDE-CONTROL WITH ACTIVE PFC OFFLINE LED CONTROLLER
The secondary winding RMS current:
(14)
t1  a
sum  0
Isec_ rms (a,b,Ton ,Vac ,Lp )  while(t1  b)
N4  Vo2 Lp 2
Toff (Ton ,Vac ,t1 Ton ) V (V ,t1  T )  T


on
on
sum  sum  
( in ac
 t)2  dt  

N  Vo
 Ton  Toff (Ton ,Vac ,t1  Ton ) 0

Ton  Toff (T on ,Vac ,t1  Ton )
t1  t1  Ton  T off (Ton ,Vac ,t1  Ton )
sum
ba
The maximum secondary winding RMS current:
Isec_ rms _ max  Isec_ rms (0,0.01,Ton _ 85V ,85,2.2  10 3 )  0.933 A
(15)
The Transformer Core Selection
The transformer core needs to be appropriately selected for a certain output power within the entire
operation frequency. Ferrite is widely adopted in flyback transformer. The core area product (AEAW)
which is the core magnetic cross-section area multiplied by window area available for winding, is widely
used for an initial estimate of core size for a given application. A rough indication of the required area
product is given by following:
AE  A W
 Lp  IPk _ max  Irms _ max

 B K K
max
u
j




4/3
cm4
(16)
Where Ku is winding factor which is usually 0.2~0.3 for an off-line transformer. Kj is the current-density
coefficient (typically 0.042~0.045 A/m2 for ferrite core). IPk_max and Irms_max are the maximum peak
current and RMS current of the primary inductance. Bmax is the allowed maximum flux density in normal
operation which is usually preset to be the saturation flux density of the core material (0.3T~0.4T). So
the estimated least core area product is 0.0347 cm4.
Please refer to the manufacture’s datasheet to select the proper core which has enough margins. Also,
the core shape should taken consideration to best meet the layout dimension. Here choosing EFD20
core.
AE = 0.31 cm2, AW = 0.507 cm2, AE*AW=0.157 cm4.
The core magnetic path length: lc=5.3 cm
The relative permeability of the core material:    2400
Primary and Secondary Winding Turns
With a given core size, there is a minimum number of turns for the transformer primary side winding to
avoid saturation. The normal saturation specification is E-T or volt-second rating. The E-T rating is the
maximum voltage, E, which can be applied over a time of T seconds. (The E-T rating is identical to the
AN038 Rev. 1.1
9/9/2011
www.MonolithicPower.com
MPS Proprietary Information. Patent Protected. Unauthorized Photocopy and Duplication Prohibited.
© 2011 MPS. All Rights Reserved.
19
AN038 –PRIMARY-SIDE-CONTROL WITH ACTIVE PFC OFFLINE LED CONTROLLER
product of inductance L and peak current) Equation (17) defines a minimum value of NP for the
transformer primary winding to avoid the core saturation:
NP 
Lp  Ipk _ max
Bmax  A E
 104
(17)
Where:
Lp = the primary inductance of the transformer (H)
Bmax= the maximum allowable flux density (T)
AE= the effective cross sectional core area (cm2)
Ipk_max= the maximum primary peak current (A)
The maximum allowable flux density B should be smaller than the saturation flux density Bsat. Since Bsat
decreases as the temperature goes high, the high temperature characteristics should be considered.
Here get: Np  144
Secondary turn count is a function of turn ratio N and primary turn count NP:
NS  NP / N  24
(18)
Wire Size
Once all the winding turns have been determined, wire size must be properly chosen to minimize the
winding conduction loss and leakage inductance. The winding loss depends on the RMS current value,
the length and the cross section of wire.
The wire size could be determined by the RMS current of the winding:
Spri 
Ssec 
Ipri _ rms _ max
J
Isec_ rms _ max
J
 2.596  10 2 (mm2 )
(19)
 1.554  10 1(mm2 )
(20)
Here J is the current density of the wire which is 6A/mm2 typically.
Due to the skin effect and proximity effect of the conductor, the diameter of the wire selected is usually
less than 2*Δd (Δd: skin effect depth):
d 
1
(mm)
 0.36
  fs _ min    
(21)
Where μ is the magnetic permeability of the conductor, which is usually equals to the permeability of
vacuum for most conductor, i.e. 4  10 7 H/m, σ is the conductivity of the wire (for copper, σ is typically
6  107 S/m at 0 deg, σ will be larger as temperature increases, which means the Δd will get smaller).
Therefore, multiple strands of thinner wire or Litz wire is usually adopted to minimize the AC resistance,
the effective cross section area of multi-strands wire or Litz wire should large enough to meet the
requirement set by the current density.
Here can choose 0.2mm*1 wire for primary winding, 0.3mm*2 wires for secondary winding, the wire
area for primary is S1=3.14*10-2 mm2, for secondary is S2=1.66*10-1 mm2.
AN038 Rev. 1.1
9/9/2011
www.MonolithicPower.com
MPS Proprietary Information. Patent Protected. Unauthorized Photocopy and Duplication Prohibited.
© 2011 MPS. All Rights Reserved.
20
AN038 –PRIMARY-SIDE-CONTROL WITH ACTIVE PFC OFFLINE LED CONTROLLER
The Auxiliary Winding
The auxiliary winding is mainly used to provide power for VCC and detect the current zero crossing for
boundary mode operation, so the current requirement for auxiliary winding is very small, larger than
10mA is enough. The auxiliary winding output DC voltage is proportion to the output LED voltage with
the turn ratio of Naux/Ns. Since the output LED voltage is 16V, considering the voltage drop in VCC
current limit resistor R13, the Naux can be selected a bit larger than the secondary winding turns Ns.
Here, Naux=27, 0.18mm wire is selected.
The Window Area Fill Factor Calculation
After the wire sizes have been determined, it is necessary to check whether the core window area can
accommodate all the selected windings. The window area required by each winding should be
calculated respectively and added together, the area for interwinding insulation and spaces existing
between the turns should also be taken into consideration. The fill factor, means the winding area
comparing to the whole window area of the core, should be well below 1 due to these interwinding
insulation and spaces between turns. It is recommended that a fill factor no greater than about 20% be
used.
Np  S1  Ns  S2  Naux  S3
AW
 0.091  0.2
(22)
If the required window area is larger than the selected one, either wire size must be reduced, or a larger
core must be chosen. Of course, a reduction in wire size increases the copper loss of the transformer.
The Air Gap
With the selected core and winding turns, the air gap of the core is given as:
G  0  A E 
NP2 lc

 0.36
(mm)
L p r
(23)
Where AE is the cross sectional area of the selected core, μ0 is the permeability of vacuum which
equals 4  10 7 H/m. Lp and NP is the primary winding inductance and turns respectively, lc is the core
magnetic path length and r is the relative magnetic permeability of the core material.
The Transformer Manufacture Instructions
There are two main considerations for the transformer manufacture. To minimize the effect of the
leakage inductance spike, the coupling between the transformer primary side and the secondary side
should be as tight as possible. This can be accomplished be interleaving the primary and secondary
winding in transformer manufacture (shown in Figure 20). To minimize the coupling influence from
primary winding to auxiliary winding, the same mean dots of the two windings should be separated far
away, a good mode is to place the GND pin of the auxiliary winding between the two dots, refer to
Figure 21.
AN038 Rev. 1.1
9/9/2011
www.MonolithicPower.com
MPS Proprietary Information. Patent Protected. Unauthorized Photocopy and Duplication Prohibited.
© 2011 MPS. All Rights Reserved.
21
AN038 –PRIMARY-SIDE-CONTROL WITH ACTIVE PFC OFFLINE LED CONTROLLER
Figure 20—The Transformer Winding Diagram
Pin Out
1
8
2
7
3
6
4
5
View from the top
Figure 21—The Transformer Pin Out and the Connection Diagram
E. Input EMI Filter (L1, L2, CX1, CX2, CY1)
The input EMI filter is comprised of L1, L2, CX1, CX2 and together with the safety rated Y class
capacitor CY1. The value of the components should be selected mainly to pass the EMI test standard,
but also need take the power factor into consideration.
F. Input Bridge (BD1)
The input bridge can use standard slow recovery, low cost diodes. Just three items need mainly
considered in selecting the diodes bridge, the maximum input RMS current, the maximum input line
voltage and the thermal performance.
G. Input Capacitor (C4)
In order to get a high power factor, the input decoupling capacitor should be limited in value. The
function of the capacitor is mainly to attenuate the switching current ripple for the transformer high
frequency magnetizing current. The worst condition will occur on the peak of the minimum rated input
voltage. The maximum high frequency voltage ripple of the cap should be limited in 20%, or the big
voltage ripple will influence the sensing accuracy of the MULT pin which will also influence the PFC
function.
C4 
Ipk _ max  2Ipri _ rms _ max
2    fs _ min  Vac _ min  0.2
 68nF
(24)
In real applications, the input capacitor will be designed with taking EMI filter and the power factor
value into account, the real value usually could be smaller than the calculated value, here, a
33nF/400V film cap is selected.
AN038 Rev. 1.1
9/9/2011
www.MonolithicPower.com
MPS Proprietary Information. Patent Protected. Unauthorized Photocopy and Duplication Prohibited.
© 2011 MPS. All Rights Reserved.
22
AN038 –PRIMARY-SIDE-CONTROL WITH ACTIVE PFC OFFLINE LED CONTROLLER
H. Output Capacitor (C1, C2)
The output voltage ripple has two components, the switching frequency ripple associated with the
flyback converter, and the low frequency ripple associated with the input line voltage (50Hz). The
selection of the output bulk cap depends on the output current, the admitted overvoltage and the
desired voltage ripple. But for LED load application, the requirement is usually for the LED current
ripple. In this case, the load is 5 LEDs in series, 500mA output current, 40% current ripple limitation, in
order to meet this limitation, the output voltage ripple should be within 10% of the output voltage.
The maximum RMS current of the output capacitor can be obtained as:
Iout _ cap _ rms _ max  Isec_ rms _ max 2  Io _ rms 2
(25)
Where Io_rms is the output RMS current and Isec_rms_max is the maximum secondary RMS current in (15).
The maximum RMS current should be smaller than the RMS current specification of the capacitor.
The maximum switching voltage ripple occurs at the peak of the minimum rated input line voltage, and
the ripple (peak-peak) can be estimated by:
Vo _ swtiching 
Io _ max  Toff (Ton _ 85V ,85,0.005)
Cout
 (Isec_ pk _ max  Io _ max )  RESR
(26)
Where Io_max is the maximum instantaneous output LED current, the value is the 500mA mean value
pluses the 20% peak ripple; Toff (Ton _ 85V ,85,0.005) is the turn off time at the peak of the minimum rated
input line. RESR is the ESR of output capacitor, typically 0.03 each cap; Isec_pk_max is the maximum peak
current of the secondary winding.
The maximum low frequency (twice line frequency, 100Hz) ripple can be estimated the function of the
capacitor impedance and the peak capacitor current (equals the Io_max).
Vo _ line  Io _ max
1
(2  2fline  Cout )2
 RESR 2
(27)
It can be seen from the calculations, the output voltage ripple is dominated by the low frequency
ripple (100Hz).
Let Vo _ line  1.4V , get the Cout=690μF. Here selecting two 470μF/35V bulk caps in parallel to minimize
the ESR and the sharing the capacitor RMS value. A 30kΩ pre-load resistor is also added to limit the
output voltage under open load condition.
I. RCD Snubber (R6, C8, D2)
The peak voltage across the MOSFET at turn-off includes the instantaneous input line voltage, the
reflecting voltage from secondary side, and the voltage spike due to leakage inductance. To protect the
MOSFET from over voltage damage. A RCD snubber is usually adopted to absorb the leakage
inductance energy and clamp the drain voltage as shown in Figure 22. The value of the capacitor C8
and resistor R6, depend on the energy stored in the leakage inductance, and the energy must be
dissipated by the RC network during each cycle. Figure 23 shows the voltage of the primary MOSFET
and the snubber capacitor A point during turn-off.
AN038 Rev. 1.1
9/9/2011
www.MonolithicPower.com
MPS Proprietary Information. Patent Protected. Unauthorized Photocopy and Duplication Prohibited.
© 2011 MPS. All Rights Reserved.
23
AN038 –PRIMARY-SIDE-CONTROL WITH ACTIVE PFC OFFLINE LED CONTROLLER
Figure 22—RCD Snubber on Primary Side
Figure 23—MOSFET Drain Voltage and Snubber Capacitor A Point Voltage
The energy stored in the leakage inductance at maximum input voltage can be obtained as:
ELk _ max 
1
 Lleakage  Ipk _ Vin _ max 2
2
(28)
Where Ipk_Vin_max is the peak current at maximum input voltage in primary side. Assuming all the leakage
inductance energy is transferred to the snubber cap. A secondary relationship is:
ELk _ max 
1
 C8  (Vin _ max  N  Vo  Vspike )2  (Vin _ max  N  Vo  Vspike  VC8 )2 
2
(29)
Where Vspike is the spike voltage clamped by the RCD snubber, ∆VC8 is the voltage changing on the
snubber cap caused by the leakage inductance.
Assuming ∆VC8 << Vspike, and the
1
 2  L leakage C8  TVin _ max ,
4
VC8  Vspkie (
 1 e

t1
R6C8
)
(30)
1
4
Where t1 is the time TVin _ max   2  L leakage C8 . TVin_max is the switching period at Vin_max.
For selecting the snubber resistor R6, the reflecting voltage from secondary side must be taken into
consideration, this voltage will constantly add on the snubber resistor after MOSFET turns off, so the
resistor R6 should be large enough to reduce reflecting voltage loss.
In this case, according to the equation (6), (7), (10), the Ipk_Vin_max=0.349A, Ton_265V=2.05μs,
Tvin_max=10.09μs, the leakage inductance is estimated as 1% of the primary inductance, 22μH, selecting
the snubber parameters: C8=22nF, R6=100kΩ. Get, Vspike=123V, ∆VC8=0.45V.
AN038 Rev. 1.1
9/9/2011
www.MonolithicPower.com
MPS Proprietary Information. Patent Protected. Unauthorized Photocopy and Duplication Prohibited.
© 2011 MPS. All Rights Reserved.
24
AN038 –PRIMARY-SIDE-CONTROL WITH ACTIVE PFC OFFLINE LED CONTROLLER
The voltage rating for the snubber cap and the diode should be larger than the Vin_max, the diode can
use fast recover diode, such as FR107. It is hard to theoretically calculate the power dissipation of the
snubber resistor R6, it needs to monitor the thermal performance of the resistor in test, if the
temperature rise is high, it needs to change to a bigger power dissipation resistor.
J. VCC Power Supply (R5, R13, C6, C7, D3, D6)
The detailed VCC power supply function is described in page 11. The circuitry consists of R5, R13, C6,
C7, D3, D6. Following should be taken into consideration for selecting the bulk capacitor C6, the
voltage ripple at VCC and the VCC dropping time at quiescent mode, usually, the VCC ripple should be
limited within 1V, typically 22μF is selected. The start resistor R5 with C6 determines the system start
delay time, if a shorter delay time is required, select a smaller R5, but the power dissipation of the
resistor and the charging current need to be taken care, here a 499kΩ resistor is selected. The resistor
R13 is used to limit the charging current from the auxiliary winding, normally, there is oscillation spike
voltage at the rising edge of the positive plateau of the auxiliary winding, the charging current should be
limited within 100mA. But there will be about 2mA constant operation mean current flow through the
resistor, so the value of the resistor can not be too large, usually, the resistor is selected from
100Ω~1kΩ. The voltage rating for the rectifying diode D3 should meet the following equation:
VD3  VCCmax 
Naux
 Vin _ max  Vaux _ negtive _ spike
Np
(31)
Where VCCmax is the maximum VCC voltage, in this case, VCCmax= 15V, Naux and Np are the auxiliary
winding and primary winding turns, Vaux_negtive_spike is the maximum negative spike on auxiliary winding,
in this case, Vaux_negtive_spike= 40V,
A 100pF ceramic bypass capacitor (C7) is added to reduce the high frequency noise influence on VCC
pin, and a 18V zener diode (D6) is also added to limit the VCC voltage at open load condition.
K. ZCD and OVP Detector (R1, R2, C11, D5)
Please refer to page 9 for detailed design information.
The resistor divider by R1 and R2 sets the OVP threshold:
N
R2
 5.4V
Vo _ ovp  aux 
(32)
Ns R1  R 2
Where Vo _ ovp is the output OVP setting voltage; Naux is the auxiliary winding turns of the transformer and
Ns is secondary winding turns of the transformer. In this case, Vo_ovp=20V, Naux=27, Ns=24, we can
select R2=22.1kΩ, R1=80.6kΩ. A 10pF ceramic bypass capacitor (C11) is added on ZCD pin to absorb
the high frequency oscillation on ZCD voltage at MOSFET turning off. Also, a diode (D5) is connected
from ZCD pin to GND to clamp the ZCD negative voltage which can help improve the noise influence
for the ZCD pin.
L. Gate Driving Resistor and MULT Pin Resistor Divider (R7, R3, R4, C5)
Considering both fro the EMI performance and the MOSFET switching speed, the gate driving resistor
(R7) is selected as 20Ω.
For the MULT pin resistor divider setting information, please refer to page 8. Here selecting the
R3=1MΩ, R4=6.8kΩ,, C5=100pF.
M. Current Sensing Resistor and Feedforward (R8, R9, R10, R12, R14)
The current sensing resistor can be approximately set by the following equation:
Rs 
AN038 Rev. 1.1
9/9/2011
VFB  N
2  Io
www.MonolithicPower.com
MPS Proprietary Information. Patent Protected. Unauthorized Photocopy and Duplication Prohibited.
© 2011 MPS. All Rights Reserved.
(33)
25
AN038 –PRIMARY-SIDE-CONTROL WITH ACTIVE PFC OFFLINE LED CONTROLLER
Where N is the turn ratio of primary winding to secondary winding, VFB is the feedback reference
voltage (typically 0.4), Rs is the sensing resistor connected between the MOSFET source and GND.
But in real application of primary side control, it is hard to get a totally accurate equation for the output
current, because there are many factors influencing the output current setting value, such as the
internal logic delay of the IC, the transformer inductance, the MOSFET input and output capacitor, the
ZCD detection delay time, even the RCD snubber and the gate driver resistor…etc. So, this is why the
current sensing resistor is last decided in design and the value must be fine tuned in bench test to get
the required output current. For the feedforwad compensation function description, please refer to page
12. There are the same influence factors for the feedforward compensation, it also need fine tune case
by case.
In this application with bench test, the sensing resistor is tuned as 2Ω and feedforward compensation
can be very small (R10=10MΩ, R12=100Ω).
N. ZCD OCP Detector (R15, R16, D8)
Please refer to page 11 for detailed design information.
The resistor divider by R1 and R2 sets the OVP threshold:
N
R2
 5.4V
Vo _ ovp  aux 
(32)
Ns R1  R 2
Where Vo _ ovp is the output OVP setting voltage; Naux is the auxiliary winding turns of the transformer and
Ns is secondary winding turns of the transformer. In this case, Vo_ovp=20V, Naux=27, Ns=24, we can
select R2=22.1kΩ, R1=80.6k. A 10pF ceramic bypass capacitor (C11) is added on ZCD pin to absorb
the high frequency oscillation on ZCD voltage at MOSFET turning off. Also, a diode (D5) is connected
from ZCD pin to GND to clamp the ZCD negative voltage which can help improve the noise influence
for the ZCD pin.
The primary-side OCP setting point can be calculated as:
IPRI _ OCP  RCS 
R 16
 VD8  0.6V
R15  R16
(33)
Where IPRI_OCP is primary-side over current protection current value, VD is the voltage drop of the diode.
To avoid the effect of the ZCD zero-current detector, the value of the resistors to set the OCP threshold
(R15 & R16) should be smaller than those of the ZCD zero-current detector (R1 & R2). In this case, we
select R15=510Ω, R16=3kΩ, D8 is 1N4148, the primary-side OCP setting point is limited to less than
800mA.
O. Layout Guideline
 The path of the main power flow should be as short as possible, and the wire should be as wide as
possible, the cooper pour for the power devices should be as large as possible to get a good
thermal performance.
 Separate the power GND and the analog GND, connect the two GND only at a single small point
(here is the anode of D5).
 In order to minimize the coupling influence from the primary winding to the auxiliary winding, the
same mean dot of the two windings should be far away. It is better to be separated by the GND.
 The IC pin components should be placed as close as possible to the corresponding pin, especially
the ZCD bypass capacitor and the COMP pin capacitor.
 The primary side and the secondary side should be well isolated, the trace from the transformer
output return pin to the return point of the output filter capacitor should be as short as possible.
AN038 Rev. 1.1
9/9/2011
www.MonolithicPower.com
MPS Proprietary Information. Patent Protected. Unauthorized Photocopy and Duplication Prohibited.
© 2011 MPS. All Rights Reserved.
26
AN038 –PRIMARY-SIDE-CONTROL WITH ACTIVE PFC OFFLINE LED CONTROLLER
Figure 24—The Bottom Layer
Figure 25—The Top Layer
AN038 Rev. 1.1
9/9/2011
www.MonolithicPower.com
MPS Proprietary Information. Patent Protected. Unauthorized Photocopy and Duplication Prohibited.
© 2011 MPS. All Rights Reserved.
27
AN038 –PRIMARY-SIDE-CONTROL WITH ACTIVE PFC OFFLINE LED CONTROLLER
P. BOM
Qty
1
2
1
1
2
1
1
1
1
1
1
1
1
1
1
1
1
2
1
1
1
2
1
1
1
2
1
1
1
1
1
1
1
1
1
1
1
2
1
1
2
1
1
1
1
AN038 Rev. 1.1
9/9/2011
RefDes
BD1
C1, C2
C3
C4
C5, C7
C6
C8
C9
C10
C11
CX1
CX2
CY1
D1
D2
D3
D4
D5, D8
D6
D7
F1
L1, L2
Q1
R1
R2
R3, R11
R4
R5
R6
R7
R8
R9
R10
R12
R13
R14
R15
JR1, JR2
R16
R17
R18, R19
RV1
T1
U1
U2
Value
DF06S
470μF/35V
NC
33nF/400V
100pF
22μF/50V
22nF/630V
NC
2.2μF/10V
10pF
68nF
47nF
2.2nF/250V
NC
US1K
ES1D
MURS320
1N4148
BZT52C18
NC
250V/2A
4.7mH
STK0765BF
80.6kΩ
22.1kΩ
1MΩ
6.8kΩ
499kΩ
100kΩ
20Ω
1.5Ω
3.3Ω
10MΩ
100Ω
1kΩ
1Ω
510Ω
0Ω
3kΩ
NC
5.1kΩ
NC
EFD20
MP4021
NC
Description
BRIDGE, 600V, 1A
Electrolytic Capacitor, 35V
Package
SMD
DIP
Manufacturer
Fairchild
Rubycon
Manufactuer_P/N
DF06S
470μF/35V
CBB, 400V
Ceramic Capacitor, 50V, X7R
Electrolytic Capacitor, 50V
Ceramic Capacitor, 630V, X7R
DIP
0603
DIP
1206
Panasonic
LION
Jianghai
TDK
ECQE400VDC333K
0603B10K500T
CD281L-50V22
C3216X7R2J223K
Ceramic Capacitor, 10V, X7R
Ceramic Capacitor, 50V, COG
Film Capacitor, X2, 275V
Film Capacitor, X2, 275V
Y Capacitor, 250V
0805
0603
DIP
DIP
DIP
Murata
Murata
Carli
Carli
Hongke
GRM21BR71A225KAO1
GRM1885C1H100JAO1
PX683K3IC39L270D9R
PX473K3IC39L270D9R
JYK09F222ML72N
Diode, 1A, 800V
Diode, 1A, 200V
Diode, 3A, 200V
Diode, 0.15A, 75V
Zener Diode, 5mA, 18V
SMA
SMA
SMC
SOD-123
SOD-123
Vishay
Taiwan Semi
ON Semi
Diodes
Diodes
US1K-E3/61T
ES1D
MURS320T3
1N4148W
BZT52C18-F
Fuse, 250V, 2A
Inductor, 4.7mH
MOSFET, 7A, 650V
Film RES, 1%
Film RES, 1%
Film RES, 1%
Film RES, 1%
Film RES, 1%
Film RES, 5%
Film RES, 1%
Film RES,1%
Film RES,1%
Film RES,1%
Film RES, 1%
Film RES, 1%
Film RES, 1%
Film RES, 1%
Film RES, 5%
Film RES, 1%
DIP
DIP
TO-220F
0603
0603
1206
0603
1206
1206
0603
1206
1206
1206
0603
1206
1206
0603
0603
0603
COOPER
Any
AUK
Yageo
Yageo
Yageo
Yageo
Panasonic
Yageo
Yageo
Royalohm
Royalohm
Royalohm
Yageo
Royalohm
Royalohm
Yageo
Royalohm
Yageo
SS-5-2A
STK0765BF
RC0603FR-0780K6L
RC0603FR-0722K1L
RC1206FR-071ML
RC0603FR-076K8L
ERJ8ENF4993V
RM12JTN104
RC0603FR-0720RL
1206F150KT5E
1206F330KT5E
1206F1005T5E
RC0603FR-07100RL
1206F1001T5E
1206F100KT5E
RC0603FR-07510RL
RR1608(0603)L0R0JT
RC0603FR-073KL
Film RES, 5%
1206
Liz
CR06T05NJ5K1
L P=2.2mH, N P:N S:N AUX=144:24:27
Offline LED Lighting Controller
EFD20
SOIC8
Yangyang
MPS
FX0136
MP4021GS-LF-Z
www.MonolithicPower.com
MPS Proprietary Information. Patent Protected. Unauthorized Photocopy and Duplication Prohibited.
© 2011 MPS. All Rights Reserved.
28
AN038 –PRIMARY-SIDE-CONTROL WITH ACTIVE PFC OFFLINE LED CONTROLLER
5. EXPERIMENTAL RESULT
All measurements performed at room temperature
5.1 Efficiency Vs Line Voltage
Efficiency vs Line voltage
Pin
(W )
10.09
9.93
9.76
9.65
9.59
9.51
9.48
9.43
9.46
9.5
9.53
9.59
9.64
Vo
(V)
15.82
15.78
15.77
15.76
15.75
15.75
15.75
15.74
15.74
15.74
15.73
15.74
15.73
Io
(mA)
512
509
507
506
505
504
504
503
502
503
503
504
504
efficiency
(%)
80.28
80.89
81.92
82.64
82.94
83.47
83.73
83.96
83.53
83.34
83.02
82.72
82.24
85.00
84.00
83.00
Efficiency (%)
Vin
(VAC)
86
90
100
110
120
136
151
175
201
221
231
251
263
82.00
Efficiency
81.00
80.00
79.00
78.00
77.00
76.00
75.00
85
115
145
175
205
235
265
Vin (VAC)
Figure 26— Efficiency Vs Input Line Voltage
5.2 Output LED Current Line Regulation
Vin (VAC)
86
90
100
110
120
136
151
175
201
221
231
251
263
Io
512
509
507
506
505
504
504
503
502
503
503
504
504
(mA)
Output Current Accuracy vs Line Voltage
Output Current Accuracy (%)
5.00
4.00
3.00
2.00
1.00
0.00
-1.00
-2.00
-3.00
-4.00
-5.00
85
115
145
175
Vin (VAC)
205
235
265
Figure 27— Output Current Accuracy Vs Input Line Voltage
5.3 PF, THD VS Line Voltage
Vin (VAC)
86
90
100
110
120
136
151
175
201
221
231
251
263
PF (%)
99.2
99.2
99.1
99
98.8
98.5
98.2
97.4
96.4
95.3
94.8
93.4
92.5
THD (%)
Third
harmonic (%)
14.9
14.8
14.8
15
15.1
15.1
15.2
16.5
16.7
16.7
16.9
16.8
17
14.2
14.2
14.1
14.3
14.4
14.5
14.5
15.2
15.4
15.4
15.4
15.4
15.5
AN038 Rev. 1.1
9/9/2011
www.MonolithicPower.com
MPS Proprietary Information. Patent Protected. Unauthorized Photocopy and Duplication Prohibited.
© 2011 MPS. All Rights Reserved.
29
AN038 –PRIMARY-SIDE-CONTROL WITH ACTIVE PFC OFFLINE LED CONTROLLER
PF, THD vs Line Voltage
100
90
80
PF
70
THD
%
60
Third harmonic
50
Class C limit of third
harmonic
40
30
20
10
0
85
115
145
175
205
235
265
Vin (VAC)
Figure 28— Output Current Accuracy Vs Input Line Voltage
5.4 Conducted EMI
Figure 29— Conducted EMI performance at 220V AC input
AN038 Rev. 1.1
9/9/2011
www.MonolithicPower.com
MPS Proprietary Information. Patent Protected. Unauthorized Photocopy and Duplication Prohibited.
© 2011 MPS. All Rights Reserved.
30
AN038 –PRIMARY-SIDE-CONTROL WITH ACTIVE PFC OFFLINE LED CONTROLLER
5.5 Steady State
Figure 30— 110 VAC, Full Load
Figure 31— 220 VAC, Full Load
5.6 Input Voltage and Current
Figure 32— 110 VAC, Full Load
AN038 Rev. 1.1
9/9/2011
Figure 33— 220 VAC, Full Load
www.MonolithicPower.com
MPS Proprietary Information. Patent Protected. Unauthorized Photocopy and Duplication Prohibited.
© 2011 MPS. All Rights Reserved.
31
AN038 –PRIMARY-SIDE-CONTROL WITH ACTIVE PFC OFFLINE LED CONTROLLER
5.7 Boundary Conduction Operation
ILED
200mA/div.
VZCD
2V/div.
ILED
200mA/div.
VZCD
2V/div.
VGATE
10V/div.
VGATE
10V/div.
VCS
1V/div.
VCS
1V/div.
Figure 32— 110 VAC, Full Load
Figure 33— 220 VAC, Full Load
5.8 Start Up
Figure 34— 110 VAC, Full Load
AN038 Rev. 1.1
9/9/2011
Figure 35— 220 VAC, Full Load
www.MonolithicPower.com
MPS Proprietary Information. Patent Protected. Unauthorized Photocopy and Duplication Prohibited.
© 2011 MPS. All Rights Reserved.
32
AN038 –PRIMARY-SIDE-CONTROL WITH ACTIVE PFC OFFLINE LED CONTROLLER
5.9 OVP (Open load at normal operation)
Figure 36— 110 VAC
Figure 37— 220 VAC
5.10 SCP (Short LED+ to LED- at normal operation)
Figure 38— 110 VAC
Figure 39— 220 VAC
NOTICE: The information in this document is subject to change without notice. Users should warrant and guarantee that third
party Intellectual Property rights are not infringed upon when integrating MPS products into any application. MPS will not
assume any legal responsibility for any said applications.
AN038 Rev. 1.1
9/9/2011
www.MonolithicPower.com
MPS Proprietary Information. Patent Protected. Unauthorized Photocopy and Duplication Prohibited.
© 2011 MPS. All Rights Reserved.
33