Main Content

Power Factor Correction Using Boost Converter

This example shows how to implement power factor correction (PFC) using a boost converter with the Embedded Coder® Support Package for Texas Instruments™ C2000™ Processors. The example uses the Texas Instruments Multi-Axis Digital Motor Control Kit along with the Texas Instruments F28035 controlCARD.

Using this example, you can:

  • Simulate PFC using a boost converter

  • Generate code for the controller and load it on the controlCARD

  • Monitor signals using the host computer


Before you start this example, install these MathWorks® products:

  • Simscape™ Electrical™ (for PFC simulation)

  • Instrument Control Toolbox™ (for signal monitoring)

Required Hardware

  • TI Dual Motor Control and PFC Developer's Kit (TMDS2MTRPFCKIT)

  • F28035 controlCARD

  • Motor Load (BLY171D-24V-4000 Brushless DC Motor and DRV8312-C2-KIT)

Available Models

Simulate PFC Using Boost Converter

The simulation model consists of the plant model and the controller. The plant model consists of two major modules:

  • AC-DC Rectifier: This module takes 13 to 16V AC input and outputs rectified DC voltage.

  • DC-DC Boost Converter: This module boosts up the input voltage based on the duty cycle of the pulse width modulation (PWM) output.


The AC-DC rectification stage uses a traditional uncontrolled H-bridge rectifier. The DC-DC boost converter on the kit has a two-phase interleaved topology. For simplicity, only one phase has been used for the boost operation. The duty cycle of the PWM output determines the amount of boost imparted to the input voltage.

The PFC controller provides current shaping of the AC input and regulates the DC bus. The outer voltage loop ensures that the output DC voltage is maintained at the set reference by using a discrete proportional integral PI controller.

The inner current loop performs the wave shaping of the input AC current to maintain a high power factor. The reference for the current loop is generated by feed-forward of the rectified DC voltage as well as the output of outer the voltage loop.

The output of the PFC controller is the PWM duty cycle of the DC-DC boost converter. The controller operates at a rate of 50 kHz.

Run the Model

1. Open the PFCMultiAxisKitSim model, and click the Run button to simulate the model.

2. Observe the output waveforms on the Scope block

Generate Code for the Controller and Load it on the controlCARD

The deployment model has a real-time interrupt service routines (ISR) configured to trigger PFC control at the rate of 50 kHz.


Load the Model on the controlCARD

1. Turn on [M4]SW1 on the kit which turns on the power supply for smooth precharging of the DC bus.

2. Turn on [M4]SW3 on the kit to power on the controlCARD.

3. Open the c28035pfc model and generate code by pressing Ctrl+B.

4. Follow the build process by opening the diagnostic viewer using the link at the bottom of the model canvas.

Monitor Signals on Host Computer

The host model receives the data from the hardware kit and plots it to verify the performance of the PFC controller.


While the model runs, you can monitor the rectified DC voltage and input boost converter current to analyze the performance of PFC control.

More About