TIDUF33 june   2023

 

  1.   1
  2.   Description
  3.   Resources
  4.   Features
  5.   Applications
  6.   6
  7. 1System Description
    1. 1.1 Key System Specifications
  8. 2System Overview
    1. 2.1 Block Diagram
    2. 2.2 Design Considerations
      1. 2.2.1 Current and Voltage Controller
      2. 2.2.2 High-Resolution PWM Generation
    3. 2.3 Highlighted Products
      1. 2.3.1 TMS320F280039
      2. 2.3.2 ADS131M08
  9. 3Hardware, Software, Testing Requirements, and Test Results
    1. 3.1 Hardware Requirements
    2. 3.2 Software Requirements
      1. 3.2.1 Opening the Project Inside Code Composer Studio
      2. 3.2.2 Project Structure
      3. 3.2.3 Software Flow Diagram
    3. 3.3 Test Setup
      1. 3.3.1 Hardware Setup to Tune the Current and Voltage Loops
      2. 3.3.2 Hardware Setup to Test Bidirectional Power Flow
      3. 3.3.3 Hardware Setup for Current and Voltage Calibration
    4. 3.4 Test Procedure
      1. 3.4.1 Lab Variables Definitions
      2. 3.4.2 Lab 1. Open-Loop Current Control Single Phase
        1. 3.4.2.1 Setting Software Options for Lab 1
        2. 3.4.2.2 Building and Loading the Project and Setting up Debug Environment
        3. 3.4.2.3 Running the Code
      3. 3.4.3 Lab 2. Closed Loop Current Control Single Phase
        1. 3.4.3.1 Setting Software Options for Lab 2
        2. 3.4.3.2 Building and Loading the Project and Setting up Debug Environment
        3. 3.4.3.3 Running the Code
        4. 3.4.3.4 Current Calibration
      4. 3.4.4 Lab 3. Closed Loop Current Control Dual Phase
        1. 3.4.4.1 Setting Software Options for Lab 3
        2. 3.4.4.2 Building and Loading the Project and Setting up Debug Environment
        3. 3.4.4.3 Running the Code
      5. 3.4.5 Lab 4. Closed Loop Current and Voltage Control
        1. 3.4.5.1 Setting Software Options for Lab 4
        2. 3.4.5.2 Building and Loading the Project and Setting up Debug Environment
        3. 3.4.5.3 Running the Code
        4. 3.4.5.4 Voltage Calibration
    5. 3.5 Test Results
      1. 3.5.1 Current Loop Load Regulation Error
      2. 3.5.2 Voltage Loop Load Regulation Error
      3. 3.5.3 Voltage Transition at No Load
      4. 3.5.4 Transient Response at Start-Up
      5. 3.5.5 Bidirectional Current Switching Time
  10. 4Design and Documentation Support
    1. 4.1 Design Files
      1. 4.1.1 Schematics
      2. 4.1.2 BOM
    2. 4.2 Tools and Software
    3. 4.3 Documentation Support
    4. 4.4 Support Resources
    5. 4.5 Trademarks
  11. 5About the Author

Running the Code

Use the following steps to run the code for Lab 1.

  1. Use the test setup shown in Section 3.3.1.
  2. Run the project by clicking GUID-6A5E916F-7491-4EA1-8837-39F302DDDF73-low.gif from the menu bar.
  3. In the watch view, check if the BT2PH_InputVoltageSense_V is between 12V -15V in the Expression Window.
  4. Check DRDY signal of the external ADC if the frequency is 15.625 kHz using an oscilloscope. Figure 3-25 shows the DRDY and CS signal of ADS131M08 when the MCU is running.
  5. Set the following parameters from the Expression Window:
    • BT2PH_userParam_V_I_ch1->dutyRef_pu = 0.03
    • Set the BT2PH_userParam_V_I_ch1->en_bool = 1
    • Set the "BT2PH_enableRelay_bool" to 1 to enable the output relay
    • See Figure 3-13 for the Expression Window settings
  6. BT2PH_measureMultiphase_V_I variable shows output current and voltage of the DC/DC converter. Adjust the BT2PH_userParam_V_I_ch1->dutyRef_pu to make sure the current is approximately 15 A.
  7. SFRA Setup for Open-Loop Current ControlSFRA Setup for Closed-Loop Current ControlSFRA Setup for Open-Loop Voltage ControlSFRA Setup for Closed-Loop Voltage Control shows the SFRA setup to extract the plant model for Open-Loop Current Control. Click on the Run SFRA icon from the SYSCONFIG page. The SFRA GUI pops up.
  8. Select the options for the device on the SFRA GUI; for example, for F280039, select floating point. Click on Setup Connection. In the pop-up window, uncheck the boot-on-connect option and select an appropriate COM port. Click the Ok button. Return to the SFRA GUI and click the Connect button.
  9. The SFRA GUI connects to the device. An SFRA sweep can now be started by clicking Start Sweep. The complete SFRA sweep takes a few minutes to finish. Once complete, a graph with the measurement appears, as shown in Figure 3-15.
  10. The Frequency Response Data is saved in the project folder, under an SFRA Data Folder, and is time-stamped with the time of the SFRA run.
GUID-20230628-SS0I-3MD7-GC1L-MBQX4NXKCV7P-low.png Figure 3-12 CSn and DRDY Signals of the External ADC
GUID-20230628-SS0I-FR2F-JDTR-9DDGRBKGJMNL-low.png Figure 3-13 Lab 1 Expression Window, Open Loop
GUID-20230628-SS0I-8WFX-KHVJ-FMTXKP3CMMRZ-low.svg Figure 3-14 SFRA Setup for Open-Loop Current Control
GUID-20230628-SS0I-T9MH-52RP-1CXDPP8ZS1HP-low.png Figure 3-15 Current Control Open-Loop Frequency Response