Professional Documents
Culture Documents
IIN
+ PWM1H PWM2H Q8
PWM3L
Q7
Q1 Q3
380V-410V DC
TX
Llk L IL Vo
ipri
VIN Vpri +
C Rload
Q2 Q4 –
Q5 12V, 750W DC
PWM3H
Q6
PWM1L PWM2L
Input Output
(Vin) (Vo)
Voltage
Power Converter Sensor
PWM
Gate Drive
Inductor Current (IL)
Ramp PWM
Current Generator Clock
Sensor
Slope Compensation
Ramp Generator
+ +
+
CMP Analog
–
IC Compensator
Input Output
(Vin) (Vo)
Voltage
Power Converter Sensor
PWM
Gate Drive
IL VIN
Current Voltage
Sensor Sensor
+ dsPIC33EP64GS504
PWM CMP
–
Fault Input ADC
Cycle-by-Cycle DAC
i'cmp
iL
icmp
ipri
icmp
Vpri
Q1
Q2
Q3
Q4
Q5-Q6
Q7-Q8
Phase Q1-Q2
Phase Q3-Q4
t1 t2 t3 t4 t
IIN
+ PWM1H PWM2H Q8
PWM3L
Q7
Q1 Q3
TX
380V-410V DC
ipri Llk L IL
VCT
VIN Vpri +
C Vo
Q2 Q4
–
Q5
PWM3H
PWM1L Q6
PWM2L
CT
1:NCT Rb Kamp
KVIN KVO
Kisense
+
dsPIC33EP64GS504
CMP3
–
AN0
AN3
PWM1H
PWM2H
PWM3H
Cycle-by-Cycle
PWM1L
PWM2L
PWM3L
Fault Input
DAC
INDUCTOR CURRENT +
+3.3V
C63
4.7 F
C16
2.2 F
5
A_GND
D2 R13 R14
3 + R18 AN0
CT2 U1 1
4 –
IN4148WX-TP 100R 100R
EL8101 100R
C17 R16
2
R27 820 pF 200K C18
24.9R 820 pF
A_GND
A_GND
1.69K 10K
A_GND
A_GND
Figure 7 shows two low-pass filters: one at the input of Where, R27 = Rb = 24.9Ω and NCT = 200, resulting in a
the amplifier and another at the output of the amplifier. KCT value of 0.1245Ω.
The corner frequency of the resulting second order To amplify the current sense network gain, a high band-
filter has been chosen, such that it eliminates the high- width non-inverting amplifier is connected to the burden
frequency switching noise present in the current resistor, R27 (U1 in Figure 6). An expression for the
waveform. The filter stage transfer function is given by non-inverting amplifier gain is given by Equation 4.
Equation 2.
EQUATION 4:
EQUATION 2:
K amp = -------------------------- 1 + ----------
1 R16 R17
Gi_filter(s) = R14 + R16 R15
(1 + R13 C17 s)(1 + R18 C18 s)
Here, C17 = C18 = 820 pF and R13 = R18 = 100Ω, Here, R14 = 100Ω, R16 = 200 kΩ, R17 = 10 kΩ and
resulting in a corner frequency of 1.24 MHz. This is R15 = 1.69 kΩ, resulting in a Kamp of 6.91.
sufficient to eliminate all the switching frequency noise Thus, the total gain of the current sensing network,
components without inducing a phase lag to the Kisense, is given by Equation 5.
sensed current.
The gain of the CT is given by Equation 3. EQUATION 5:
Kisense = KCT Gi_filter Kamp
EQUATION 3:
R27
K CT = ----------
N CT Substituting the values for KCT and Kamp gives
Kisense = 0.86 Gi_filter(s).
EQUATION 6:
KVO = ----------------------------------------------- ----------------------------------------------------------------------------------
R79 1
R77 + R78 + R79 R79 R77 + R78
1 + ----------------------------------------------- C58 s
R77 + R78 + R79
The resistance, R77 (20Ω), is basically used as an It is also important to choose an appropriate filter
injection resistor to be used in conjunction with the capacitor, Cf (C58 in Figure 8), for filtering out high-
injection transformer of a network analyzer to measure frequency noise from the feedback signal. For the
the loop gain. The values, R79 and R78, were chosen output voltage feedback, it is essential to retain the
to result in a base voltage (Vbase) value of 14.8V for switching frequency components while eliminating only
achieving a good dynamic range of the output voltage the high-frequency components and minimizing the
over the nominal value of 12V. In other words, the gain phase lag at the switching frequency. Hence, the
of the voltage sense network, KVO, is ADC_REF/Vbase. corner frequency was placed approximately a decade
From Figure 8, R78 = 5.23 kΩ and R79 = 1.5 kΩ, above the switching frequency. The value of C58 was
resulting in a KVO of 0.222. chosen to be 220 pF for obtaining a corner frequency
of ~600 kHz.
FIGURE 8: OUTPUT VOLTAGE
FEEDBACK NETWORK
Vo
R77
20R
R78
5.23K
AN1
R79 C58
1.5K 220 pF
GND_D GND_D
R82
12K
AN3
R83 C60
1.5K 220 pF
GND_D GND_D
EQUATION 12:
icmp = Aiv + Bi c
ma
Where: A = ------------------------
-
m1 + ma
m1
B = -------------------------
m1 + ma
i
ic
–ma m 1 dT s + d' m 2d'T s
i L = ic – ma dT s – d --------------- -----------------
2 2
m 1 dT s
--------------- m1
2
(1)
(3) (2)
–m2
m 2 d'T s
-----------------
2 t
0 dTs d'Ts Ts
From Figure 12, the average of the first triangular Hence, the average inductor current over the switching
portion of the inductor current (corresponding to the period, Ts, can be obtained by subtracting the contribution
slope, m1, and the interval dTs) is given by: m 1 dT s of the compensation slope waveform and the average of
---------------
2 the triangular portions of the current waveforms from the
and is depicted by the dotted line (1). The average of control current, ic; this is given by Equation 23 (as shown
the second triangular portion of the inductor current by the dotted line (3) in Figure 12).
(corresponding to the slope, m2, and the interval, d'Ts, is
given by: m 2d'T s) EQUATION 23:
-----------------
2
is depicted by the dotted line (2). The average of the m1 dTs m 2d'Ts
i L = i c – m a dT s – d --------------- + d' -----------------
two triangular portions of the inductor current over the 2 2
switching period, Ts, is given by the expression:
m 1 dT s m 2d'Ts
(dd --------------- + d' ----------------- ).
2 2
All the terms in Equation 24, depicted by capital letters, A block diagram model of Equation 27 is depicted in
constitute the quiescent quantities and their perturba- Figure 13.
tions are appended with a ‘~’ sign. Substituting
FIGURE 13: DYNAMICS DUE TO PEAK
Equation 24 in Equation 23 and eliminating all the DC
terms (the terms consisting of products of the quiescent CURRENT CONTROL AND
quantities), and also eliminating smaller terms (the terms COMPENSATION RAMP
consisting of products of two or more perturbations),
gives the expression of a linearized average inductor
current, as shown in Equation 25 [2]. Fv vo
EQUATION 25:
ic –
D2 Ts D' 2 T s + Fm d
i c = i L + M a Ts d + DTs m a + ------------m 1 + -------------m 2 –
2 2
EQUATION 26:
v in – v o vo
m 1 = ------------------ and m 2 = -----
L L
EQUATION 28:
A
· B1 B2
x x
– R + R –R
---------
dcr 1 VIN uC ud
i· = ---------------------------- i + + D
L L L L -------- -
---
L
v L d v in
· R – R1
vc
1
c 0
-----
C
- ----------------
Rload C
- 0
x
y Cv
= i L
vo R R 1 v
c
In the state-space model of Equation 28: The two output matrices corresponding to the output
• x is the state vector comprised of the state voltage (Cv) and inductor current (Ci) are shown in
variables (inductor current, iL, and capacitor Equation 29.
voltage, vc)
• x is the first differential of the state vector EQUATION 29:
• A is the state matrix which mainly comprises the C v = R R 1
circuit parameters, such as the filter inductance,
filter capacitance, capacitor ESR, inductor DCR C i = 1 0
and load
• B1 is the control vector that relates the states to Resr R load
Where: R = ----------------------------------
the control input, d (duty cycle) Resr + R load
• B2 is the input vector which relates the states to Rload
the input voltage R 1 = ----------------------------------
Resr + R load
• y is the output (in Equation 28, this output is
chosen to be the output voltage)
• C is the output matrix (and could be different
depending on the output chosen)
EQUATION 30:
A
B1 B2
x
x
– R + R –R
i = ---------------------------- ---------
ud
V IN uC
dcr 1
i L + -------- + -----
D
L sL sL sL-
v v sL d v in
R1 –R1 c
c 0
-----
sC
- -------------------
sRload C
- 0
x
y Cv
= i L
vo
R R 1 v
c
From the s-domain state-space model of Equation 30, incomplete without incorporation of the dynamics of the
a small signal expression relating the states and the resonant inductor, which is unique to the ZVS FB
duty cycle, or the input voltage, can be obtained. It topology. In the next section, the model in Equation 30
should be noted that the model in Equation 30 is is modified to incorporate the ZVS FB dynamics.
VIN
Slope =
Llk
Ip
Iv1
Vpri
t
0 t1 t2 t3 t4 t5
Ts
D -----
Iv2
2
d
Vsec
Ts
D eff -----
2
C, Resr Rload
+
Nv˜in
Nv NVNINd̃
d
in
Rload
EQUATION 44:
A B2
· B1
x
x
– R + R + R –R
VINS u C ND + -----------
Rd k
- ---------
ud
dcr d 1
i· = ---------------------------------------- i L + ---------- + -
L L L - V
--------------------------------
INP
v L d v in
R –R1 c L
vc
1
-----
- ----------------
- 0
C R load C 0
x
y Cv
= i L
vo R R1 v
c
V o D'2T s
Where k = I load – --------------------- , and R and R1 are as DCR. From Equation 44, all transfer functions for the
4L
defined in Equation 29. ZVS FB can be derived. Figure 17 shows the modified
As seen in Equation 44, the term, Rd, which is depen- small signal model achieved after including the duty
dent on the resonant inductance, increases the overall cycle terms due to load current variation and input
damping of the system as it adds with the inductor voltage variation.
NVN d̃
INd NV IN d˜v + d˜i
L, Rdcr
1:Deff
– + – +
+
C, Resr Rload
–
NV IN NV IN
Nv˜in
Nv in
------------- d̃ ------------- d˜v + d˜i
R load R load
EQUATION 45:
vo s
G vd s = ------------
ds
G vd s = C v SI – A –1 B
Vg R2
------ R s + ---------------------------- + --------------
R
L CR load Resr CResr
G vd s = --------------------------------------------------------------------------------
den
Where:
Rdcr + R d + R Rdcr + Rd + R R R2
den = S 2 + ---------------------------- + -------------------------------------- S + ------------------------------------------ + -----------------
R
-
CRload Resr L LCR load esr R LCR esr 2
The inductor current to duty cycle transfer function, By using Equation 45 through Equation 48, the linear-
Gid(s), is given by Equation 46. ized small signal expressions, relating system states to
the control and disturbance inputs can be derived, as
EQUATION 46: shown in Equation 49 and Equation 50.
EQUATION 48:
iL s ic – d
G ig s = -------------- = C i SI – A –1 B 1 + Fm Gvd(s)
v in s –
Gid(s)
EQUATION 51:
vo s F m G vd s
G vc s = ------------ = ------------------------------------------------------------------------
ic s 1 + Fm G id s + F v Gvd s
ic
– Ma –M a –M a
ĩ L k M1 –M2 M1 – M2 M1 –M 2
ĩ L k + 1 ĩ L k + 2
A z-transform of Equation 52 yields: Applying a second order Padé approximation for e –sT s ,
as shown in Equation 56.
EQUATION 53:
EQUATION 56:
ĩ L z z
------------ = 1 + ----------------- 2
ĩ c z z + s s
1 – --- ------ + ------
2 s s
To obtain a continuous time relationship between the 2 2
------ ------
inductor current perturbation and the control current, e –sT s = ---------------------------------------------------
2
substitute z = esTs in Equation 53 and convolve with the s s
ZOH transfer function (Equation 54) to obtain 1 + --- ------ + ------
2 s s
Equation 55 [2] [4]. -----
2 2
- ------
EQUATION 54:
Substituting Equation 56 in Equation 55 and simplification
1 – e –sT s yields Equation 57.
ZOH = -------------------------
sTs
EQUATION 57:
EQUATION 55: ĩ L s 1
------------ = ---------------------------------------------------------------------
ĩ c s
s s
2
2
ĩ L s e sT s
------------ = 1 + -----------------------
1 – e –sT s 1 + --- ------------- – 1 ------ + ------
- ------------------------- 2 1 + s s
ĩ c s e +
sTs sTs ------ ------
2 2
1
FIGURE 20: PLANT MODEL WITH H e s = ----------------------
HIGH-FREQUENCY 1 + ------ s
-
P
DYNAMICS INCLUDED
Where: 2
Fv P = 2f s --- ------------- – 1
4 1+
M 2 – Ma
ic – d vo = ---------------------
+ Fm He s G vd s M1 + Ma
–
EQUATION 59:
Gid s vo s F m Gvd s
G vc s = ------------ = ----------------------------------------------------------------------------------------
ic s 1 + Fm H e s G id s + F m Gvd s
Fv
Vref ic – vo
+
Compensator
Fm He s d G vd s
+
– Gc(s) –
Output to Fg v in
Control Transfer Function
vo s
G vc s = ------------
ic s
G id s
The expression for output voltage to control input, In Figure 22, the effect of feedback sensing networks is
Gvc(s), is obtained in Equation 59. not considered. However, in real-time systems, sensing
Equation 59 gives the plant transfer function for a peak networks are required to measure voltages and currents.
current controlled system. Substituting the expressions For closed-loop control of the peak current controlled
in Equation 45 and Equation 46 for Gvd(s) and Gid(s) in ZVS FB, the inductor current, input voltage and output
Equation 59 gives the plant transfer function for the voltages are sensed, as discussed in the “Digital
ZVS FB Converter. A simplified control block diagram Control of ZVS FB Converter with Digital Slope
is shown in Figure 22. A suitable compensator is Compensation” section. In real-time control, the feed-
designed considering this plant transfer function, Gvc(s). back of the output voltage is per-unitized with respect to
Vbase and the inductor current feedback is per-unitized
with respect to Ibase, as discussed earlier. Therefore, the
FIGURE 22: SIMPLIFIED CONTROL
open-loop transfer function of the model has to be
BLOCK DIAGRAM multiplied by a factor of Ybase (Ibase/Vbase), referred to the
secondary side of the transformer to match the loop gain
Vref response obtained from the hardware, as shown in
Compensator ic Plant vo
+ Figure 23.
– Gc(s) Gvc(s)
+
TABLE 2: NOMINAL VALUES OF PLANT +
COMPONENTS
ki
Parameter Value Parameter Value ----
s Ui s
Rload 0.1920Ω Vg 400V
Resr 0.03 mΩ Vo 12V
Therefore,
Yder 5 mΩ C 7500 F
U p s = k p error s
N 25 FSW 72.8 kHz
L 2.7 H M1 V
-----g- – V Converting the above expression to z-domain gives:
N o
------------------------
L U p z = k p error z
Llk 38 H M2 (= Ma) Vo
----------- Taking an inverse z-transform of the above expression
L results in Equation 63.
A PI compensator shown in Equation 61 is chosen to
EQUATION 63:
control the plant.
U p k = k p error k
EQUATION 61:
ki
G c = k p + ---- Similarly,
s
ki
U i s = ---- error s
s
The following are the key considerations to design the
compensator: Converting the above expression to z-domain by
• To achieve a phase margin > 45° applying the bilinear transformation,
–1
• To achieve a gain margin > 10 dB 2 1 – z - , gives the following expression.
s = ----- --------------------
• To achieve a crossover of 3.5 kHz T s 1 + z –1
• Switching frequency attenuation 40 dB k i Ts 1 + z –1
• Open-loop: TF = Gc(s)Gvc(s)Gfb(s)Ybase -error z
U i z = --------- --------------------
2 1 – z–1
• Gfb(s) is the transfer function of the output voltage
sensor LP filter Here, the sampling period (in the expression for s in
• Choose kp and ki to attain the above targets bilinear transform) is the same as the switching period,
Ts. Rearranging the terms in the previous expression
gives:
–1 ki Ts kiTs –1
U i z – U i z z = ---------error z + ---------error z z
2 2
Initializations
• Oscillators
• I/O Ports
• ADC
• PWM Fault Change
• Comparator (SEVTCMP and PWM3
• Timer ISRs)
• UART
• Beginning of PWM Period:
- Disable PWM2 Fault
- Enable PWM1 Fault
• Beginning of Half Period:
- Disable PWM1 Fault
- Enable PWM2 Fault
• Maximize CMPDAC at the
Start Command Beginning of Every
from PFC? Half-Cycle
Slope Compensation
(AN0 ISR)
• Measure Valley Current
• Executive Digital Slope
Compensation Limit Check
and Loading of DAC and
Analog Comparator
• Trigger AN3 Center Tap
Voltage Sensing
• Fast Current Protection
Logic Counter
• Average Current
calculation
PWM1H
STRIG1
TRIG1
TRIG2
SEVTCMP
TRIG3
EOC
EOC
EOC
PWM3 ADCAN0 SEVTCMP ADCAN0 ADCAN1
ISR ISR ISR ISR ISR
Timer1 ISR
DEAD-TIME ADJUSTMENT
In a ZVS FB Converter, at low load currents, the
amount of energy stored in the resonant inductance
(Llk) is reduced. It is therefore recommended to
increase the dead time (resonant interval) between the 520 ns
top switch and the bottom switch of the legs of the full-
bridge as the load current decreases. This allows more
time for the resonant transition. A typical implementation 10% % Load
of dead-time adjustment for the primary side MOSFETs is
shown in Figure 28. Although the typical implementation
FIGURE 29: DEAD-TIME ADJUSTMENT
is possible in the software, for the sake of brevity, the
actual implementation of dead-time adjustment is done by ACTUAL IMPLEMENTATION
toggling between two fixed values, as shown in Figure 29.
1250 ns
In the software, the dead time between the MOSFETs
in a leg (Leg1 Q1-Q2 and Leg2 Q3-Q4) are
toggled between 520 ns and 1250 ns, depending on
the sensed CT current. The nominal value of dead time
is 520 ns. When the load current is reduced below
10%, the dead time is toggled to 1250 ns. A hysteresis
band of 10% is provided to exit from the Dead-Time 10% Load 20% Load 520 ns
Adjustment mode, as seen in Figure 29.
= Dead Time
i'cmp
iL 10% Load
Q1
Q3
Q4
Q5-Q6
Q7-Q8
Phase Q1-Q2
Phase Q3-Q4
t1 t2 t3 t4 t
= Dead Time
Light Load Heavy Load
i' cmp
iL
Q1
Q2
Q3
Q4
Q5-Q6
Q7-Q8
Phase Q1-Q2
Sync Rectifier Overlap
Phase Q3-Q4
t
t1 t2 t3 t4
% Load
Red: Hardware
Blue: Model Prediction
• Microchip believes that its family of products is one of the most secure families of its kind on the market today, when used in the
intended manner and under normal conditions.
• There are dishonest and possibly illegal methods used to breach the code protection feature. All of these methods, to our
knowledge, require using the Microchip products in a manner outside the operating specifications contained in Microchip’s Data
Sheets. Most likely, the person doing so is engaged in theft of intellectual property.
• Microchip is willing to work with the customer who is concerned about the integrity of their code.
• Neither Microchip nor any other semiconductor manufacturer can guarantee the security of their code. Code protection does not
mean that we are guaranteeing the product as “unbreakable.”
Code protection is constantly evolving. We at Microchip are committed to continuously improving the code protection features of our
products. Attempts to break Microchip’s code protection feature may be a violation of the Digital Millennium Copyright Act. If such acts
allow unauthorized access to your software or other copyrighted work, you may have a right to sue for relief under that Act.
== ISO/TS 16949 ==