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/UCD3138: How to use different Coefficient of PID ?

Part Number: UCD3138

Tool/software: Code Composer Studio

I find there are many KP & KI , KD Coefficient , what is the time that to use KP_COEF_0 , what is the time that to use KP_COEF_1 ?

How to use different Coefficient of PID ?

Where can I find to change them in UCD3138 ?

#define INIT_FILTER_0_KP_COEF_0 (1500)      //(1500)       // 15:0   KP Coefficient 0
#define INIT_FILTER_0_KP_COEF_1 (5000)             // 31:16  KP Coefficient 1
#define INIT_FILTER_0_KP_COEF_2 (10000)             // 15:0   KP Coefficient 2

#define INIT_FILTER_0_KI_COEF_0 (160)   //(90)          // 15:0   KI Coefficient 0
#define INIT_FILTER_0_KI_COEF_1 (250)             // 31:16  KI Coefficient 1
#define INIT_FILTER_0_KI_COEF_2 (500)             // 15:0   KI Coefficient 2
#define INIT_FILTER_0_KI_COEF_3 (500)             // 31:16  KI Coefficient 3

#define INIT_FILTER_0_KD_COEF_0 (2000)             // 15:0   KD Coefficient 0
#define INIT_FILTER_0_KD_COEF_1 (10000)             // 31:16  KD Coefficient 1
#define INIT_FILTER_0_KD_COEF_2 (5500)             // 15:0   KD Coefficient 2

  • Hi,

    The UCD team are based in the US and its a US holiday today so they may not be able to answer until tomorrow.

    I have alerted them to your post.

    Regards

    Peter
  • If you look at page 153 in the UCD3138 Technical Reference Manual, you will see the coefficient configuration register documentation. This will describe it for you. The coefficient registers are there for two main uses:

    1. Coefficient switching for different situations in the power supply - for example one set of coefficients for ramp up, one for steady state
    2. Nonlinear mode

    You will notice that there are a full set of coefficients for 0 and 1 bins. After that, there are fewer actual coefficients for the later bins, and some shifts instead. bins 0 and 1 can be used for the case 1, while the other bins are more intended for the nonlinear modes.
  • Thank you .