Hello,
I am working with TI's HV LLC Kit.
I noticed in the code the following:
Pgain = 200; // Q10
Igain = 1; // Q10
Dgain = 5; // Q10
CNTL_2P2Z_CoefStruct1.b2 = _IQ16(Dgain);
CNTL_2P2Z_CoefStruct1.b1 = _IQ16(Igain - Pgain - Dgain - Dgain);
CNTL_2P2Z_CoefStruct1.b0 = _IQ16(Pgain + Igain + Dgain);
CNTL_2P2Z_CoefStruct1.a2 = _IQ26(0.0);
CNTL_2P2Z_CoefStruct1.a1 = _IQ26(1.0);
CNTL_2P2Z_CoefStruct1.max = Max_Period;
CNTL_2P2Z_CoefStruct1.min = Min_Period;
Why are some of the coefficient values being stored as _IQ16 values? The Digital Power Library documentation mentions -
Note that to preserve maximum resolution the coefficients are
saved in Q26 format and the saturation limits are stored in Q24 format to
match the output format
Also how were these PID value for the HV LLC Kit determined??
The accompanied code also has the following which are NOT used:
use_2P2Z = 0;
update_coeffs = 0;
b2_coeff = _IQ26(0.35);
b1_coeff = _IQ26(-1.45);
b0_coeff = _IQ26(1.33);
a2_coeff = _IQ26(-0.23);
a1_coeff = _IQ26(1.23);
Under what conditions would I want the code to use the above values?
Thanks,
Brent