TIDU312A May   2014  – November 2020

 

  1.   Trademarks
  2. 1Introduction
    1. 1.1 PFC Stage Implementation
    2. 1.2 BL PFC Electrical Specifications
  3. 2Software Overview
    1. 2.1 Software Control Flow
    2. 2.2 Incremental Builds
  4. 3Procedure for Running the Incremental Builds
    1. 3.1 Build 1: Open-Loop Boost With ADC Measurements
      1. 3.1.1 Build 1 Objective
      2. 3.1.2 Build 1 Overview
      3. 3.1.3 Build 1 Protection
      4. 3.1.4 Build 1 Procedure
        1. 3.1.4.1 Step 1.1: Start CCS and Open a Project
        2. 3.1.4.2 Step 1.2: Device Initialization, Main, and ISR Files
        3. 3.1.4.3 Step 1.3: Build and Load the Project
        4. 3.1.4.4 Step 1.4: Debug the Environment Windows
          1. 3.1.4.4.1 Step 1.5: Use Real-Time Emulation
          2. 3.1.4.4.2 Step 1.6: Run the Code for Build 1
    2. 3.2 Build 2: BL PFC With Closed-Current Loop
      1. 3.2.1 Build 2 Objective
      2. 3.2.2 Build 2 Overview
      3. 3.2.3 Build 2 Procedure
        1. 3.2.3.1 Step 2.1: Build and Load Project
    3. 3.3 Build 3: BL PFC With Closed Voltage and Current Loop
      1. 3.3.1 Build 3 Objective
      2. 3.3.2 Build 3 Overview
      3. 3.3.3 Build 3 Procedure
        1. 3.3.3.1 Step 3.1: Build and Load Project
  5. 4Test Results
  6. 5References
  7. 6Revision History

Step 2.1: Build and Load Project

Follow the steps below to execute this build:

  1. Follow steps 1 through 7 exactly as in build 1(Section 3.1.4) except that in step 6 select build 2 option instead of build 1. Then complete step 6 as below:
  2. Locate and inspect the following code in the main file under initialization code specific for build 2. This is where all the software blocks related to build 2 are connected in the control flow.

     

    GUID-47BD82C9-6731-45DA-8298-B229F47AAC3B-low.gif

     

  3. Open and inspect BridgelessPFC-DPL-ISR.asm. Notice the _DPL_Init and _DPL_ISR sections under build 2. This is where all the macro instantiations under build 2 are done for initialization and runtime, respectively.
  4. Select the Incremental build option as 2 in the BridgelessPFC-Settings.h file. Then follow steps 10 through 17 as in build 1 in order to run the code. When all these steps are completed you should now be at the start of Main().
    Note:

    Whenever you change the incremental build option in BridgelessPFCSettings. h always do a “Rebuild All”.

  5. Run the code by using the <F8> key, or by using the Run button on the toolbar, or using Target -> Run on the menu bar.
  6. In the watch view, add the variable VpfcVcmd and set it to 0.05 (=838861 in Q24). This variable sets the magnitude of the reference current command for the current control loop.
  7. Apply an appropriate resistive load to the PFC system at the DC output. For example, a 8.0 KΩ resistor of 40W rating can be used. This will provide a load of 5W at 200 V bus voltage.
  8. Slowly apply AC Power to the board from an isolated AC source. Monitor the DC bus voltage as the input voltage is raised slowly to 50 V rms. The bus voltage now should be around 200 V. Adjust the value for VpfcVcmd to set the bus voltage to about 200 V. Use an oscilloscope with voltage and current probes to observe the input voltage, input current and the PWM outputs. With a 50 V rms input, 8.0 kΩ resistive load and bus voltage set to 200 V you should see the following waveforms. Here, Ch1 and Ch3 show the PWM outputs. Ch2 is the input voltage and Ch4 is the input current. With the current loop closed the input current should have the same shape of the input voltage with good power factor.
    GUID-7FF56788-FAA8-4714-89EB-94409E337974-low.gif
  9. Increase VpfcVcmd slightly (in steps of 0.01) and observe the bus voltage settles to a higher value. Increasing VpfcVcmd increases the magnitude of the current reference signal and, since the PFC voltage loop is open, the bus voltage will rise. Therefore, apply caution and set the overvoltage protection threshold to a value less than 350V. This threshold parameter is labeled as VBUS_OVP_THRSHLD inside the file BridgelessPFC-Settings.h. Now change the input voltage or the load resistance to see the PFC operation under current control loop.
  10. Increase VpfcVcmd slightly (in steps of 0.01) and observe the bus voltage settles to a higher value. Increasing VpfcVcmd increases the magnitude of the current reference signal and, since the PFC voltage loop is open, the bus voltage will rise. Therefore, apply caution and set the overvoltage protection threshold to a value less than 350V. This threshold parameter is labeled as VBUS_OVP_THRSHLD inside the file BridgelessPFC-Settings.h. Now change the input voltage or the load resistance to see the PFC operation under current control loop.
  11. End of Exercise