This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/F28M35M52C: PI source code replacing 2P2Z code to save computation time

Part Number: F28M35M52C
Other Parts Discussed in Thread: C2000WARE

Tool/software: Code Composer Studio


  I have control algorithm 2P2Z working and know how it can  be mapped to PI control algorithm.  However I want to increase the control update frequency by switching from 2P2Z to PI calculation to simplify computation.  My question is where I can find equivalent PI code to replace 2P2Z code and its technical notes?  My present 2P2Z source code is from csl_cntrl_Pub.h.



  • Hello Yong,

    I'm not familiar with that file, but I recommend you take a look at the DCL library which is part of C2000Ware.  The DCL is a central resource for controller code for C2000.  If you install C2000Ware in the default location, the library will be at:


    There are several C and assembly coded PI controllers you can choose from.  Hope this helps you.