Problem with 3p3z control equation in CM4PCLIBUG

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Problem with 3p3z control equation in CM4PCLIBUG

1,297件の閲覧回数
D4Worker
Contributor II

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!

0 件の賞賛
3 返答(返信)

1,268件の閲覧回数
D4Worker
Contributor II

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

https://www.nxp.com/products/processors-and-microcontrollers/arm-microcontrollers/general-purpose-mc...

any usage example would be appreciated.

0 件の賞賛

1,275件の閲覧回数
EdwinHz
NXP TechSupport
NXP TechSupport

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.

0 件の賞賛

1,282件の閲覧回数
D4Worker
Contributor II

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 

0 件の賞賛