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

Lab Variables Definitions

BT2PH_userParam_V_I_chx parameters are used to control the power stage in different Labs. BT2PH_userParam_V_I_ch1 and BT2PH_userParam_V_I_ch2 are used in Lab 1 and Lab 2 to control Phase 1 and Phase 2 of the DC/DC converter. Lab 3 and Lab 4 use BT2PH_userParam_V_I_chm variable. See Table 3-1 for the parameter definitions.

Table 3-1 BT2PH_userParam Definition
BT2PH_userParam DATA TYPE COMMENTS

iref_A

float

Set current for both charging and discharging mode [0, 100]

vrefCharge_V

float

Set voltage in charge mode [0, 5]

vrefDischarge_V

float

Set voltage in discharge mode [0, 5]

dir_bool

unsigned int

Set this parameter to 1 for charging mode

Set this parameter to 0 for discharging mode

en_bool

unsigned int

Set this parameter to 1 to enable the channel

dutyRef_pu

float

Reference duty cycle for open loop mode. Range = 0 to 1.0

ibatCal_pu

float

Use this parameter to set output current in calibration mode. Range = 0 to 1.0

vbatCal_pu

float

Use this parameter to set output voltage in calibration mode. Range = 0 to 1.0

IoutGain_pu

float

The variable stores current gain calibration data

ioutOffset_pu

float

The variable stores current offset calibration data

IoutGain_A

float

The variable stores current gain calibration data

IoutOffset_A

float

The variable stores current offset calibration data

vbatGain_pu

float

The variable stores voltage gain calibration data

vbatOffset_pu

float

The variable stores voltage offset calibration data

vbatGain_V

float

The variable stores voltage gain calibration data

vbatOffset_V

float

The variable stores voltage offset calibration data