TIDUES0E June 2019 – April 2024 TMS320F28P550SJ , TMS320F28P559SJ-Q1
Compile the project by selecting Lab 4: Closed Loop Current with Resistive Load in the drop-down menu of Project Options from PowerSUITE GUI. Make sure current and voltage limits are set per operating conditions.
#if DAB_LAB == 4
#define DAB_CONTROL_RUNNING_ON C28X_CORE
#define DAB_POWER_FLOW DAB_POWER_FLOW_PRIM_SEC
#define DAB_INCR_BUILD DAB_CLOSED_LOOP_BUILD
#define DAB_TEST_SETUP DAB_TEST_SETUP_RES_LOAD
#define DAB_PROTECTION DAB_PROTECTION_ENABLED
#define DAB_CONTROL_MODE DAB_CURRENT_MODE
#define DAB_SFRA_TYPE 1
#define DAB_SFRA_AMPLITUDE (float32_t)DAB_SFRA_INJECTION_AMPLITUDE_LEVEL1
#endif
setupdebugenv_lab4.js
in the scripting console.DAB_enableFan
and
DAB_enableRelay
.DAB_clearTrip
variable.DAB_vPrimSensed_Volts
,
DAB_iPrimSensed_Amps
,
DAB_vSecSensed_Volts
, and
DAB_iSecSensed_Amps
variables are updating
periodically.DAB_iSecRef_Amps
(in this example
1Adc).DAB_closeGiLoop
variable. The controller automatically adjusts the phase shift depending
upon the operating conditions to generate secondary output current to
match with that of DAB_iSecRef_Amps
. DAB_iSecRef_Amps
accordingly to reach to the required operating point.#define DAB_PROTECTION DAB_PROTECTION_ENABLED
#define DAB_VSEC_TRIP_LIMIT ((float32_t)500)
#define DAB_BOARD_PROTECTION_VSEC_OVERVOLTAGE 1
The plot in Figure 4-39 is captured with the PI compensator (gain of 0.5).
#define DAB_GI_KP (float32_t) 0.5
#define DAB_GI_KI (float32_t) 0.0063030
#define DAB_GI_UMAX (float32_t) 0.13
#define DAB_GI_UMIN (float32_t) -0.13
#define DAB_GI_IMAX (float32_t) 2.0
#define DAB_GI_IMIN (float32_t) -2.0