Tool/software:
Hello,
I am making Phase shift full bridge converter by using TMS320F280039C.
I am running the voltage controller in CLA as below.
Voltage controller execution time is 3us. So running CLA at 300kHz.
I want to decrease Voltage controller execution time to increase CLA frequency.
When I check execution time, It took a long time to get the ADC "filter1Result[0] = PSFB_LVBUS_FB"
Any way to reduce execution time in CLA?
__attribute__((interrupt)) void Cla1Task1 ( void )
{
// Uncomment this to debug the CLA while connected to the debugger
// __mdebugstop();
filter1Result[0] = PSFB_LVBUS_FB;
PSFB_vLVBus_sensed_pu_CLA = ((float32_t)filter1Result[0] * PSFB_ADC_PU_SCALE_FACTOR;
PSFB_error_vLVBus_pu_CLA = PSFB_vcommand_Set_pu - PSFB_vLVBus_sensed_pu_CLA;
// run compensator
PSFB_icommand_Set_pu_CLA = DCL_runDF22_L2(&PSFB_gv_CLA, PSFB_error_vLVBus_pu_CLA);
PSFB_saturation_flag_CLA = DCL_runClamp_L1(&PSFB_icommand_Set_pu_CLA, PSFB_cntlMax_CLA, PSFB_cntlMin_CLA);
if(0 == PSFB_saturation_flag_CLA)
{
DCL_runDF22_L3(&PSFB_gv_CLA, PSFB_error_vLVBus_pu_CLA, PSFB_icommand_Set_pu_CLA);
}
PSFB_irampmax_Set_CLA = PSFB_icommand_Set_pu_CLA * (PSFB_IRAMPMAX_SET_RATIO);
PSFB_HAL_clearPWMInterruptFlag(PSFB_PWM8_CLA_BASE);
}
Thank you.
Best Regards,
Sangmo, kim.