Part Number: TMS320F28035
Hi team,
I am working with my customer to achieve a peak current mode control on their F28032 platform. So your work HVPSFB_PCMC is a great referrence to us.
So far, we are able to achieve most of functions and the converter can work under a light load. However, we still do not fully understand how the code works.
In the control loop, we used CNTL_2P2Z in the DPL lib as the voltage loop controller. Pointers are used to link the CNTL_2P2Z variables with the converter vairables.
eg:
// 2P2Z connections for the outer Voltage Loop
CNTL_2P2Z_Ref1 = &VfbSetSlewed; // Slewed Voltage command
CNTL_2P2Z_Out1 = &Iref; // Reference command to the current loop
CNTL_2P2Z_Fdbk1 = &Avg_Vout; // Avg. FB O/P Voltage feedback
CNTL_2P2Z_Coef1 = &CNTL_2P2Z_CoefStruct1.b2; // point to first coeff.
But my question is: After linking the variables, how is the 2P2Z compensator called and the calculation is executed? I did not see any operations doing this.
Thanks for your help!