Other Parts Discussed in Thread: SFRA,
Tool/software: Code Composer Studio
hello sir/madam,
i want to SFRA library to measure the H transfer function and GH transfer function based on TMS320F28035 in my project.
our current power topology is a half-bridge LLC, i have questions on the principle how to inject the signals.
1. in order to get the plant bode diagram, how to set the SFPA_Freq_LLC at first?
a, assign SFPA_Freq_LLC with highest frequency? lowest frequency? or a fixed frequency point??
b, because of we have a soft-start process when start for LLC driver, does it have any affect on SFRA?
Iout_Read= (int32)AdcMirror.ADCRESULT0<<12;
G_32PWMPeriod_A = SFRA_IQ_INJECT(SFPA_Freq_LLC);
EPwm1Regs.TBPRDM.all = EPwm2Regs.TBPRDM.all = G_32PWMPeriod_A
SFRA_IQ_COLLECT(&G_32PWMPeriod_A ,&Iout_Read);
2. in order to get the open loop bode diagram,
i find in the guide document and example, the AD value is used as feedback, but not the physical value. why?
(in my opinion, ref always a physical value have to compare with a another physical value to get the error)
are there any requirements on the data format on the arguments for SFRA_IQ_INJECT and SFRA_IQ_COLLECT? i plan to implemented SFRA on the fixed-point MCU。
exmaple in the guide document:
//Read ADC and computer Fbk Value
cntl3p3z_vars1.Fdbk= (int32)Vout1R<<12;
//Add FRA injection into the reference of the controller
cntl3p3z_vars1.Ref= SFRA_IQ_INJECT(Vout1SetSlewed);
// Call the controller
CNTL_3P3Z_IQ_ASM(&cntl3p3z_coeff1,&cntl3p3z_vars1);
//Update PWM value
EPwm1Regs.CMPA.half.CMPA=_IQ24mpy((long)(BUCK_PWM_PERIOD),cntl3p3z_vars1.Out);
SFRA_IQ_COLLECT(&cntl3p3z_vars1.Out,&cntl3p3z_vars1.Fdbk);
finally, there seems a few quick start document on this excellent tool, how i get deep in this topic? thank you very much.