NCP1219
http://onsemi.com
15
Ramp Compensation
Ramp compensation is a known mean to cure
subharmonic oscillations. These oscillations take place at
half the switching frequency and occur only during
continuous conduction mode (CCM) with a duty ratio
greater than 50%. To lower the current loop gain, one
usually injects 50 to 75% of the inductor current down
slope. The NCP1219 generates an internal current ramp
that is synchronized with the clock. This current ramp is
then routed to the CS pin. Figures 32 and 33 depict how the
ramp is generated and utilized. Ramp compensation is
simply formed by placing a resistor, R
ramp
, between the CS
pin and the sense resistor.
Figure 32. Internal Ramp Compensation Current
Source
0
time
80% of period
100% of period
I
ramp(peak)
Ramp current, I
ramp
Figure 33. Inserting a Resistor in Series with the
Current Sense Information Provides Ramp
Compensation
Clock
Oscillator
DRV
CS
Current
Ramp
I
ramp(peak)
R
ramp
R
CS
In order to calculate the value of the ramp compensation
resistor, R
ramp
, the off time primary current slope,
S
off,primary
must be calculated using Equation 4,
S
off,primary
+
(V
out
) V
f
) @
ǒ
N
P
N
S
Ǔ
L
P
(eq. 4)
where V
out
is the converter output voltage, V
f
is the forward
diode drop of the secondary diode, N
P
/N
S
is the primary to
secondary turns ratio, and L
P
is the primary inductance of
the transformer. The value of R
ramp
can be calculated using
Equation 5,
R
ramp
+
ǒ
S
off,primary
R
CS
Ǔ
@ %slope
ǒ
I
ramp(peak)
f
OSC
D
Ǔ
(eq. 5)
where R
CS
is the current sense resistor and %slope is the
percentage of the current downslope to be used for ramp
compensation.
The NCP1219 has a peak ramp compensation current of
100 mA. A frequency of 65 kHz with an 80% maximum
duty ratio corresponds to an 8.1 mA/ms ramp. For a typical
flyback design, let’s assume that the primary inductance is
350 mH, the converter output is 19 V, the V
f
of the output
diode is 1 V and the N
P
:N
S
ratio is 10:1. The off time
primary current slope is given by Equation 6.
(V
out
) V
f
)
ǒ
N
P
N
S
Ǔ
L
P
+ 571
mA
ms
(eq. 6)
When projected over an R
CS
of 0.1 W (for example), this
becomes 57 mV/ms. If we select 50% of the downslope as
the required amount of ramp compensation, then we shall
inject 28.5 mV/ms. Therefore, R
ramp
is simply equal to
Equation 7.
R
ramp
+
28.5
mV
ms
8.1
mA
ms
+ 3.5 kW
(eq. 7)
Ramp compensation greater than 50% of the inductor
down slope can be used if necessary; however,
overcompensating will degrade the transient response of
the system. The addition of ramp compensation also
reduces the total available output power of the system.
Internal Oscillator
The internal oscillator of the NCP1219 provides the
clock signal that sets the DRV signal high and limits the
duty ratio to 80% (typical). The oscillator has a fixed
frequency of 65 kHz or 100 kHz. The NCP1219 employs
frequency jittering to smooth the EMI signature of the
system by spreading the energy of the main switching
component across a range of frequencies. An internal low
frequency oscillator continuously varies the switching
frequency of the controller by ±7.5%. The period of
modulation is 6 ms, typical. Figure 34 illustrates the
oscillator frequency modulation.