This code example demonstrates how to use the ModusToolbox™ Power Suite PFC Library to build the TP-PFC interleaved power converter.
- ModusToolbox™
- Programming language: C
- Associated parts: PSOC™ Control series
See RELEASE.md
- PSOC™ Control C3M5 Digital Power Control Card (
KIT-PSC3M5-CC1) + Low-voltage interleaved totem-pole PFC expansion board (KIT_PSC3_PFC1)
This example uses the board's default configuration. See the kit user guide to ensure that the board is configured correctly.
See the ModusToolbox™ tools package installation guide for information about installing and configuring the tools package.
This example requires no additional software or tools.
- Connect the board to your PC using the provided USB cable through the on-board JLink USB connector
- Select the application project in the Project Explorer
- In the Quick Panel, scroll down, and click <Application Name> Program
- After programming, the application starts automatically
- Connect either the USB0010 or USB008 device to the PC using USB cable, and to the Control Card using 3 wires (GND, CLK, and SDA)
- Launch the Power Suite GUI (...ModusToolbox/packs/ModusToolbox-Power-Suite-Early-Access-Pack/tools/power-suite-gui/Power Suite GUI.exe)
- Click the 'PMB' button at the top, it will show PMBus commands
- VOUT_COMMAND write e.g. 37 (slightly different from the initial/default voltage)
- ON_OFF_CONFIG write 0x9 and observe the app switched to PMBus control: there are 37V at PFC output (the VOUT_COMMAND value)
Note: Double-click the ‘Live Read’ checkbox at the bottom to refresh the Vout/Iout values
- To on/off the PFC operation write OPERATION 0x80/0x00 correspondingly
Note: OPERATION=0x00 (off) will work with any ON_OFF_CONFIG value, but OPERATION=0x80 (on) will work only with ON_OFF_CONFIG=0x9 (PMBus control)
- ON_OFF_CONFIG write 0x1 and observe the app switched to internal control: there is initial/default voltage at PFC output
You can debug the example to step through the code.
Note: the PFC control loops cannot be step-by-step debugged on the fly with active live power conversion - this is a real-time process.
Use the <Application Name> Debug (JLink) configuration in the Quick Panel. For details, see the "Program and debug" section in the Eclipse IDE for ModusToolbox™ user guide.
| Resources | Links |
|---|---|
| Code examples | Using ModusToolbox™ on GitHub |
| Device documentation | PSOC™ Control datasheet |
| Development kits | Select your kits from the Evaluation board finder |
| Libraries on GitHub | mtb-pwrlib-pfc – Power Suite PFC Library mtb-pdl-cat1 – Peripheral Driver Library (PDL) mtb-hal-psc3 – Hardware Abstraction Layer (HAL) library retarget-io – Utility library to retarget STDIO messages to a UART port mtb-pmbus - PMBus middleware emeeprom - Emulated EEPROM library |
| Tools | ModusToolbox™ – ModusToolbox™ software is a collection of easy-to-use libraries and tools enabling rapid development with Infineon MCUs for applications ranging from wireless and cloud-connected systems, edge AI/ML, embedded sense and control, to wired USB connectivity using PSOC™ Industrial/IoT MCUs, AIROC™ Wi-Fi and Bluetooth® connectivity devices, XMC™ Industrial MCUs, and EZ-USB™/EZ-PD™ wired connectivity controllers. ModusToolbox™ incorporates a comprehensive set of BSPs, HAL, libraries, configuration tools, and provides support for industry-standard IDEs to fast-track your embedded application development |
Infineon provides a wealth of data at www.infineon.com to help you select the right device, and quickly and effectively integrate it into your design.
Document title: ModusToolbox™ Power Suite TP-PFC Interleaved Converter Code Example
| Version | Description of change |
|---|---|
| 1.0.0 | Pre-production version of reference code example |
All referenced product or service names and trademarks are the property of their respective owners.
The Bluetooth® word mark and logos are registered trademarks owned by Bluetooth SIG, Inc., and any use of such marks by Infineon is under license.
PSOC™, formerly known as PSoC™, is a trademark of Infineon Technologies. Any references to PSoC™ in this document or others shall be deemed to refer to PSOC™.
© 2026, Infineon Technologies AG, or an affiliate of Infineon Technologies AG.