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 1.6: Run the Code for Build 1
  1. Run the code by using the <F8> key, or using the Run button on the toolbar, or using Target -> Run on the menu bar.
  2. In the watch view, add the variable DutyA and set it to 0.1 (=1677721 in Q24). This variable sets the duty cycle for the PFC converter.
  3. Apply an appropriate resistive load to the PFC system at the DC output (10~100W).
  4. Apply AC Power to the board. Measure and verify the DC bus voltage corresponding to applied input voltage and the duty ratio.
  5. Use DutyA to slowly change the duty from the watch window. The boost converter output voltage should change accordingly.
    Note:

    Observe the output voltage carefully, this should not be allowed to exceed the maximum voltage rating of the board.

  6. Add the other variables such as, Vbus, VL_fb, VN_fb and verify the different ADC results in the watch view. For AC voltage input the sensed line and neutral voltage(VL_fb, VN_fb) will vary continuously in the watch window. Therefore, to verify the ADC readings and the line and neutral voltage sense circuits, the user may apply DC input voltage (20~200V) instead of AC (as stated in step 20 above). In that case the PFC stage will temporarily operate in a pure dc-dc boost mode.
  7. The following oscilloscope captures show two PWM outputs (Ch1 & Ch3) and the DC input voltage (Ch2) when the output DC bus load is 8K ohm and the set duty ratio is about 10%. Since the input voltage in this case is always positive (+50V in this case) PWM1A will be in PWM mode (Ch1) and PWM2A will be in forced ON mode (Ch3). The PWM frequency is also measured to be 200kHz.
    GUID-7B099C8D-11EF-49EB-A83E-1D2FF74FD246-low.gif
  8. The following oscilloscope captures show two PWM outputs (Ch1 & Ch3) and the AC input voltage (Ch2) of about 50V when the output DC bus load is 8K ohm and the set duty ratio is about 10%. With the AC input voltage PWM1A and PWM2A alternately switch between PWM mode and forced ON mode.
    GUID-D96B8076-BA06-4E73-BF14-67C7218D87E4-low.gif
  9. Try different duty cycle values and observe the corresponding ADC results. Increase duty cycle value in small steps. Always observe the output voltage carefully, this should not be allowed to exceed the capabilities of the board. Different waveforms, like the PWM gate drive signals, input voltage and current and output voltage may also be probed and verified using an oscilloscope. Appropriate safety measures must be taken while probing these high voltage signals.
  10. Fully halting the MCU when in real-time mode is a two-step process. With the AC input turned off wait until the DC bus capacitor is fully discharged. First, halt the processor by using the Halt button on the toolbar, or by using Target -> Halt. Then take the MCU out of real-time mode. Finally reset the MCU.
  11. You may choose to leave Code Composer Studio running for the next exercise or optionally close CCS.
  12. End of Exercise