001-76439 AN76439 PSoC 3 and PSoC 5LP Phase-Shift Full Bridge Modulation and Control
001-76439 AN76439 PSoC 3 and PSoC 5LP Phase-Shift Full Bridge Modulation and Control
001-76439 AN76439 PSoC 3 and PSoC 5LP Phase-Shift Full Bridge Modulation and Control
If you have a question, or need help with this application note, contact the author at
[email protected] OR [email protected].
AN76439 introduces phase-shift full-bridge modulation for PSoC 3 and PSoC 5LP. This application note describes in
detail the implementation of phase-shift modulation in UDBs with some discussion on how to control the full-bridge
for Power applications.
Contents Introduction
Introduction .......................................................................1 There are a variety of modulation approaches and control
Introduction to PSFB Modulation .......................................2 techniques that apply to power applications. With the
PSFB Modulator Implementation.......................................6 introduction of PSoC 3 and PSoC 5LP and the significant
programmable analog and digital functions that come with
Master Pair Gate Signal Generation .............................6 both product families, there is very little to limit the
Slave Pair Gate Signal Generation ...............................6 possibilities, especially advanced modulation and control
Modulation Techniques ................................................7 techniques.
Delay Generation Techniques ......................................8 This application note introduces phase-shift full-bridge
A Simple PSFB Component ............................................ 11 (PSFB) modulation. This is a modulation commonly found
Peak Current Control Example ........................................ 12 in zero-voltage switching (ZVS) converters, a group within
Included Project Examples .............................................. 14 the family of soft-switched converters. This application
Quick Instructions to Get Going .................................. 16 note focuses on how a PSFB modulator is implemented in
PSoC. Both analog and digital design variations are
Project Example 1 – Basic PSFB Modulation ............. 17
explored. In addition there is some light discussion about
Project Example 2 – Analog PSFB Modulation .......... 18 control approaches.
Project Example 3 - PSFB Modulation with Delay ...... 19
Note that although the PSFB is common in ZVS design,
Project Example 4 – Interleaved PSFB Modulation .... 20
this application note does not discuss in any significant
Conclusion ...................................................................... 21 detail the fundamentals of ZVS and soft switching. Also it
Appendix A: Using the PSFB Component in Your Project is not the intent of this application note to introduce the
........................................................................................ 22 fundamentals of power electronics, an interesting and vast
Document History ............................................................ 24 subject in its own right. These topics are left for you to
Worldwide Sales and Design Support ............................. 25 explore.
Also keep in mind that this application note assumes that
you are familiar with developing applications using PSoC
Creator for PSoC 3 or PSoC 5LP. If you are new to
PSoC 3 or PSoC 5LP, introductions can be found in
AN54181, Getting Started with PSoC 3 and AN77759,
Getting Started with PSoC 5LP. If you are new to PSoC
Creator, see the PSoC Creator home page.
Q1A Q2A 2A
2B Delay Delay
+
Q1A Q1A Q2A
-
Master
Q1B
Q2A
Slave
+
Q2B
Q1B Q2B
-
S t a g e 2 – S l a ve - L e g T r a n s i t i o n
After the forward conduction period, Q2B is switched off. The PSFB enters a period where the energy stored in the series
inductance (including leakage inductance) and the previously charged MOSFET, Q2A, is released into the system. Notice that
the series inductance and the MOSFET’s Coss of the slave leg form a resonant tank. Q2B Coss is charged and Q2A Coss is
discharged. In ZVS designs the circuit and delay are tuned so that Q2A is switched on in the next transition somewhere near
the point where the voltage across Q2A is zero.
Q1B
Q2A
Slave
+
Q2B
Q1B Q2B
-
Stage 3 – Freewheeling
During the freewheeling period MOSFETs Q1A and Q2A are conducting; they maintain any current flow that may exist in the
series inductance. Again notice that now Coss of Q1B and Q2B are charged to the full voltage of the input.
Q1B
Q2A
Slave
+ +
Q2B
Q1B Q2B
- -
Q1B
Q2A
Slave
+
Q2B
Q1B Q2B
-
+
Q1A Q1A Q2A
-
Master
Q1B
Q2A
Slave
+
Q2B
Q1B Q2B
-
S t a g e 6 – S l a ve - L e g T r a n s i t i o n
Q2A is switched off. The PSFB enters a period where the energy stored in the series inductance and the previously charged
MOSFET, Q2B, is released into the system. As in previous stages, the series inductance and MOSFETs Coss of the slave leg
form a resonant tank. Q2A is charged and Q2B is discharged. In ZVS designs the circuit and delay are tuned so that Q2A is
switched on in the next transition somewhere near the point where the voltage across Q2B is zero.
+
Q1A Q1A Q2A
-
Master
Q1B
Q2A
Slave
Q2B
Q1B Q2B
Stage 7 – Freewheeling
During the second freewheeling period MOSFETs Q1B and Q2B are conducting; they maintain any current flow that may exist
in the series inductance. Again notice that now Coss of Q1A and Q2A are charged to the full voltage of the input.
+ +
Q1A Q1A Q2A
- -
Master
Q1B
Q2A
Slave
Q2B
Q1B Q2B
+
Q1A Q1A Q2A
-
Master
Q1B
Q2A
Slave
Q2B
Q1B Q2B
Master
Master Leg
Complementary slave (phase shifted) gate drive logic. Generation
Figure 6 shows an example of what the output looks like Modulation Techniques
when it is operating near 100 kHz. The master pair gate
Since the modulator requires only falling edges to indicate
signals (the inverting and non-inverting outputs of the ‘D’
phase transitions, these edges can be generated by an
flip-flop) are reset and set respectively. On the falling edge
analog programmed source as well as any digital source.
of the PWM input signal, the SR latch of the slave logic
PSoC's flexibility allows you to easily implement either
output is set to the non-inverting output of the master pair
analog or digital. Let us examine each method:
that is currently logic high. This sets the slave output high
driving the low side MOSFET gate signal low and the high Analog Modulation Source
side MOSFET gate signal high. This state remains until Figure 7 shows an analog PWM generated by an external
the next low transition of the PWM signal occurs. capacitor and a current source or IDAC combined with a
Figure 6. Slave Gate Signal Generation comparator. A simple time-based function (a digital PWM
in this example) is used to reset the integration in the
capacitor and trigger the PSFB slave pair. .
Analog modulation has an advantage over any digital
approach in that the modulation input is a continuous
function; there is no definable quantization unlike a digital
Slave
With the current programmed by a constant current Figure 10. PWM Configuration for Digital Modulation
source, the relation between voltage, time, and current
resolves into a simple linear function:
Equation 1
Figure 11. Modulation with Delay Signals Note that the SIO input thresholds are programmable in
the PSoC Creator Pins Component configuration dialog
(Figure 13).
This is an asynchronous
output gating signal for all
modulator outputs. Output signals to drive the
full-bridge.
These are the event inputs if
an external modulation is
used.
Peak Current Control Example Another major benefit is flux balancing. PSFB designs
(such as the one shown in Figure 1) usually have a
The PSFB is mostly just a modulation technique. In most transformer and no DC flux blocking capability in the
power applications the modulator is not operated without transformer. Thus, without some management of the flux
some compensation network or other control driving it. In in the transformer, the transformer can 'walk' into
this section I briefly present a peak current control idea saturation. Knowing that current is proportional to
that is married to the PSFB modulator. You can use this magnetic flux, such designs are naturally flux balancing
as an example to explore the vast possibilities (such as with peak current-control employed.
analog voltage control, digital voltage control, or even Slope Compensation
combined peak current control and digital voltage control).
With PSoC the possibilities are virtually endless. Peak current control has the well known 50% duty cycle
limitation. To overcome this, an artificially generated ramp
Note that this is an idea and not fully explored in hardware signal is mixed with the current signal to yield part voltage
at the release of this application note. Exploring the finer and part current control. The amount of ramp relative to
details of peak current control is well beyond the intent of the amount of current signal relates to how far past the
this application note (saving this for another time). This is 50% duty cycle point the design can be pushed.
presented as an idea to help put into perspective how
complex control ideas can be built with PSoC. Figure 22 The easiest way to think of this is to conceptualize the
shows a current-control design in PSoC Creator. slope of the artificial ramp growing to infinity. If the ramp
were infinite then the control would be purely based on
In most real-world applications the PSFB is often voltage at the output of the converter. If there was no ramp
employed with some form of current control strategy. Why then the control would be purely based on current.
is this? Anything in between is a mix of current and voltage
control. Equation 4 shows the mixing ratio based on what
First, pure current-control of the PSFB results in a system
is shown in Figure 22.
with a single dominant pole in its transfer function,
whereas its voltage-control counterpart yields a resonant Equation 4
two-pole system. Thus, current-controlled systems that are
derived from the 'Buck Converter' topology (such as the Note that the PSFB is naturally limited to a 50% duty
PSFB in Figure 1) are easier to compensate and control. cycle, however slope compensation is still often employed
in practice.
PSFB_Basic – A basic digitally generated phase-shift Connect P2_0 Scope (to view the second PSFB)
modulation.
Connect P2_1 Scope (to view the second PSFB)
PSFB_Analog – An analog method for generating
phase-shift modulation. Connect P2_2 Scope (to view the second PSFB)
PSFB_Digital_Delay – A digitally generated phase- Connect P2_3 Scope (to view the second PSFB)
shift modulation scheme with digital delay.
470pF
Capacitor Programming
SOP
SOF
RAMP
RESET
LED Drive
POT Input
}
}
Figure 31. Modulation Results, More Shift Project Example 2 – Analog PSFB
Modulation
This project is almost exactly the same as Project 1; it is
altered slightly to show analog modulation. The details of
analog pulse-width modulation are described in Analog
Modulation Source on page 7; the modulation technique is
the same and is shown in Figure 32. In this case the POT
is used as in Project 1 to set the phase shift. The LED is
large phase shift also driven to show modulation in operation without a
scope. The LED varies in brightness based on the phase.
Note that there is no active code in this project other than
initialization. The operation is entirely hardware based.
Figure 32. Analog PSFB Modulation
Figure 37. Modulation Results, More Shift Project Example 4 – Interleaved PSFB
Modulation
delay
This project is also similar to project 1; however, the
design is expanded to show a dual PSFB design with the
bridges running interleaved, as Figure 38 shows.
Again note that the code functionality is the same as in
Project 1, except for initialization for the extra logic
modulating two bridges. The POT voltage is sampled by
large phase shift
the ADC and is used to set the phase shift for both
bridges. The LED is also driven to show modulation in
operation without a scope. The LED varies in brightness
based on the programmed phase with the POT.
Figure 38. Schematic Layout for Interleaved PSFB
This application note showed how to build a phase-shift Background: Ross is an Electrical Engineer with
full-bridge modulator using the resources available in several years experience designing
PSoC. The resource usage spans both the digital and digital controls and embedded
analog capability of PSoC 3 and PSoC 5LP. In addition firmware for numerous applications.
the idea of controlling the PSFB is approached. His technical interests are Real-Time
Embedded Processing, Control
Theory, and Power Electronics.
Contact: [email protected]
After the PSFB component is added to the project, you will After the component is added to the project, it will appear
see it in the Dependencies tab, as Figure 44 shows. in the Component Catalog of PSoC Creator, as Figure 45
shows. It will be listed in the Appnote tab under Appnote
Figure 44. PSFB Component Added to Project Component Catalog/AN76439 entry.
Document History
®
Document Title: AN76439 - PSoC 3 and PSoC 5LP - Phase-Shift Full-Bridge Modulation and Control
Document Number: 001-76439
All other trademarks or registered trademarks referenced herein are the property of their respective owners.
Cypress Semiconductor
198 Champion Court
San Jose, CA 95134-1709
©Cypress Semiconductor Corporation, 2013-2017. This document is the property of Cypress Semiconductor Corporation and its subsidiaries, including
Spansion LLC (“Cypress”). This document, including any software or firmware included or referenced in this document (“Software”), is owned by
Cypress under the intellectual property laws and treaties of the United States and other countries worldwide. Cypress reserves all rights under such
laws and treaties and does not, except as specifically stated in this paragraph, grant any license under its patents, copyrights, trademarks, or other
intellectual property rights. If the Software is not accompanied by a license agreement and you do not otherwise have a written agreement with
Cypress governing the use of the Software, then Cypress hereby grants you a personal, non-exclusive, nontransferable license (without the right to
sublicense) (1) under its copyright rights in the Software (a) for Software provided in source code form, to modify and reproduce the Software solely for
use with Cypress hardware products, only internally within your organization, and (b) to distribute the Software in binary code form externally to end
users (either directly or indirectly through resellers and distributors), solely for use on Cypress hardware product units, and (2) under those claims of
Cypress’s patents that are infringed by the Software (as provided by Cypress, unmodified) to make, use, distribute, and import the Software solely for
use with Cypress hardware products. Any other use, reproduction, modification, translation, or compilation of the Software is prohibited.
TO THE EXTENT PERMITTED BY APPLICABLE LAW, CYPRESS MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD
TO THIS DOCUMENT OR ANY SOFTWARE OR ACCOMPANYING HARDWARE, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. To the extent permitted by applicable law, Cypress reserves the right to
make changes to this document without further notice. Cypress does not assume any liability arising out of the application or use of any product or
circuit described in this document. Any information provided in this document, including any sample design information or programming code, is
provided only for reference purposes. It is the responsibility of the user of this document to properly design, program, and test the functionality and
safety of any application made of this information and any resulting product. Cypress products are not designed, intended, or authorized for use as
critical components in systems designed or intended for the operation of weapons, weapons systems, nuclear installations, life-support devices or
systems, other medical devices or systems (including resuscitation equipment and surgical implants), pollution control or hazardous substances
management, or other uses where the failure of the device or system could cause personal injury, death, or property damage (“Unintended Uses”). A
critical component is any component of a device or system whose failure to perform can be reasonably expected to cause the failure of the device or
system, or to affect its safety or effectiveness. Cypress is not liable, in whole or in part, and you shall and hereby do release Cypress from any claim,
damage, or other liability arising from or related to all Unintended Uses of Cypress products. You shall indemnify and hold Cypress harmless from and
against all claims, costs, damages, and other liabilities, including claims for personal injury or death, arising from or related to any Unintended Uses of
Cypress products.
Cypress, the Cypress logo, Spansion, the Spansion logo, and combinations thereof, WICED, PSoC, CapSense, EZ-USB, F-RAM, and Traveo are
trademarks or registered trademarks of Cypress in the United States and other countries. For a more complete list of Cypress trademarks, visit
cypress.com. Other names and brands may be claimed as property of their respective owners.