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 3.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) except that in step 6 select build 3 option instead of build 1. Then complete step 6 as follows
  2. Locate and inspect the following code in the main file under initialization code specific for build 3. This is where all the software blocks related to build 3 are connected in the control flow.

     

    GUID-7BEB0CB0-10F8-499A-B9BA-2BAA823A4B73-low.gif

     

  3. Open and inspect BridgelessPFC-DPL-ISR.asm. Notice the _DPL_Init and _DPL_ISR sections under build 3. This is where all the macro instantiations under build 3 are done for initialization and runtime, respectively.
  4. Select the Incremental build option as 3 in the BridgelessPFCSettings. 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 BridgelessPFC-Settings.h always do a “Rebuild All”

  5. Run the code by using the <F8> key, or using the Run button on the toolbar, or using Target -> Run on the menu bar.
  6. In the watch view, add the variables VbusTargetSlewed, Vbus and set the Q-format to Q24. These variables represent the reference bus voltage and the feedback bus voltage respectively. These will slowly increase to the setpoint value as the PFC starts up when AC power is applied.
  7. Apply an appropriate resistive load to the PFC system at the DC output. For example, a 8.0Kohm resistor of 40W rating can be used. This will provide a load of 20W at 400V bus voltage.
  8. Configure an isolated AC source to output 110V, 60Hz, AC voltage output. Use a voltmeter to monitor the DC bus voltage. Turn on the AC source output for 110Vrms. When the DC bus voltage reaches 100V the inrush relay will activate and the bus voltage will slowly increase to 400v. Notice that VbusTargetSlewed and Vbus variables on the watch window show a value of about 0.7707 (=400/519) when the Q format is set to Q24. The maximum bus voltage set by the Vbus sense resistors is about 519V that corresponds to maximum ADC input of 3.3V. Therefore, the normalized or per unit value will be about 0.7707 when the actual bus voltage is 400Vdc. Adjust VbusTargetSlewed to 0.732 (=380/519) to set the bus voltage to about 380V. Use an oscilloscope with voltage and current probes to observe the input voltage, input current and the PWM outputs. With a 110V rms input, 540 ohm resistive load and bus voltage set to 400V you should see the following waveforms.
    GUID-C1706954-F433-49B6-9387-151C84922A6D-low.gif
    Ch2 = input voltage
    Ch4 = input current
    Figure 3-7 BL PFC Input Voltage and Current Waveforms at 300W

     

    With 110V rms input, 1080 ohm resistive load and bus voltage set to 400V you should see the following waveforms.

     

    GUID-2F251B42-4470-4480-B6C8-6E08A87B4A81-low.gif Figure 3-8 BL PFC Input Voltage and Current Waveforms at 150W
  9. Change the input voltage (90Vrms~240Vrms) or the load resistance (0~300W) to see the PFC operation under closed current and voltage control loop.
  10. Follow steps 26 and 27 as in Section 3.1 to turn off power and reset the MCU.
  11. End of Exercise. See Section 4 for the test results.