Part Number: SFRA
Other Parts Discussed in Thread: CONTROLSUITE
Tool/software: Code Composer Studio
Dear experts:
I have been porting the SFRA Library into my project recently, but there seems to be some problems with the results I got from the GUI when I did the open loop frequency sweep. Would you please be kindly enough to help me fix it.
My project is a DC/DC converter using the phase-shifted full bridge circuit, and the MCU is F28035 with 47kHz PWM frequency, and the program was modified from TI's example(HVPSFB).
I’m trying to use the SFRA tools to get the open loop with peak current mode control of converter.
The GUI can connected and start sweep. The problem is that when sweep is end, GUI shows "Unhandled exception has occurred in your application".And the information in the CVS file is incomplete,
I have below code in my 47K ISR.
interrupt void DPL_ISR_wFRA(void)
{
if(EPwm1Regs.TBSTS.bit.CTRDIR == 0)
{
Vout_Ref_wInj = SFRA_IQ_INJECT(Iref);
DPL_Func();
SFRA_IQ_COLLECT(&Vout_Ref_wInj,&Avg_Vout);
}
else
{
DPL_Func();
}
EPwm1Regs.ETCLR.bit.INT=1;
PieCtrlRegs.PIEACK.bit.ACK3=0x1;
}
and DACDRV macro : DACDRV_RAMP_In1 = &Vout_Ref_wInj;
I’m wondering is there something wrong with my implement. Please help me. Thanks.















