Part Number: TMS320F28377D
Other Parts Discussed in Thread: POWERSUITE, C2000WARE-DIGITALPOWER-SDK, TIDM-02011
Hi,
I am going through some examples from the digital powerSUITE, titled Buck_VMC_F2837xS.
There seems to be some functions that are called, such as:
CNTL_2P2Z_F_C_VAR_INIT(var1);
CNTL_2P2Z_F_C_COEFF_INIT(coeff1);
Which, unfortunately, are not even defined in that same C code.
I assume that they are some kind of function included within the Driver Lib digital controller library - but there is absolutely zero material, at least that I can find, of what these functions do or the C program that they implement.
I am finding it very hard to grasp exactly how this code computes the next duty cycle output from the difference equation of a 2p2z controller.
Is there any reference which shows what these function that are called do, and exactly how best to sample the ADC's and how they are summated/multiplied with the coefficients and passed to the PWM modules?
As I mentioned, if I could see what these functions actually do rather than just calling random functions with no description, it would be much, much easier to form my own code for my own controller. I think TI's effort at creating functions to increase the level of abstraction and make coding "easier" has the opposite effect - which does not help since all of the digital power examples are written in the exact same driverLIb code type.
Regards,
Joel