Hi there,
In my digital power control application, I worked out the 3p3z transfer function control equation from somewhere (simulator) and initialized the controller with the statement PCLIB_Ctrl3P3ZInit_F16_C.
However, the f16output is always 0 in each ISR PCLIB_Ctrl3P3Z_F16_C.
Is anyone here has experience using PCLIB_Ctrl3P3Z in PCLIB?
Any tricks on the delay parameters like f16DelayX1?
Many Thanks!
Firstly, thanks for helping,
However, the problem is still unsolved.
For this 3p3z controller, there are "some but erroneous" outputs from the ISR statement PCLIB_Ctrl3P3Z_F16_C().
We are not sure if those B0123, A123 coefficients could have wrongly during the f16 conversion.
It looks there are no sample application using the 3p3z lib in lib package RTCESL_CM_Setup_4.6.3. which found in this link
any usage example would be appreciated.
Hi @D4Worker,
Glad to hear you were able to make it work. For more information on how to use the PCLIB, make sure to check out the "PCLIB User's Guide". Here's the link: https://www.nxp.com/docs/en/user-guide/CM7PCLIBUG.pdf
Best Regards,
Edwin.
I can finally make the output by adding the FRAC16() macro on the error calculation.
f16Err = FRAC16( target - now). It doesn't work without it.
However, any experience sharing on using the 3p3z lib is still very appreciated. thanks all