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.

UCD3138: UCD3138 Firmware SETUP_ID Fusion Digital Power Studio

Part Number: UCD3138

Hello,

is there a way to specify specific front end + CLA + dpwm module for the GUI?

Specifically I would need FE0 + CLA1 + DPWM3

thank you

  • Hello,

    I had an initial discussion with some other engineers and wanted to know what you are trying to use the GUI for with regards to the configuration of the front end/cla/dpwm? Is this for compensation? which topology?

    Amiel

  • Hello,

    correct, this is for PFC compensation
    Thank you
  • Hello,

    We do not have a way to specify those parameters for compensation, however you can use an offline sample project and click the button to see "View Coeff "C" Code" after you've completed tweaking your PID.  You can then put it in your firmware with some minor modifications to the filters referenced.  Sample output is as follows:

    // Bin limits
    

    Filter1Regs.FILTERNL0.bit.LIMIT0 = 8;
    Filter1Regs.FILTERNL0.bit.LIMIT1 = 16;
    Filter1Regs.FILTERNL1.bit.LIMIT2 = 24;
    Filter1Regs.FILTERNL1.bit.LIMIT3 = 32;
    Filter1Regs.FILTERNL2.bit.LIMIT4 = 40;
    Filter1Regs.FILTERNL2.bit.LIMIT5 = 48;

    // Bin coefficient assignments
    Filter1Regs.COEFCONFIG.bit.BIN0_CONFIG = 0; //Set A
    Filter1Regs.COEFCONFIG.bit.BIN0_ALPHA = 0

    Filter1Regs.COEFCONFIG.bit.BIN1_CONFIG = 0; //Set A
    Filter1Regs.COEFCONFIG.bit.BIN1_ALPHA = 0;

    Filter1Regs.COEFCONFIG.bit.BIN2_CONFIG = 0; //Set A
    Filter1Regs.COEFCONFIG.bit.BIN2_ALPHA = 0;

    Filter1Regs.COEFCONFIG.bit.BIN3_CONFIG = 0; //Set A
    Filter1Regs.COEFCONFIG.bit.BIN3_ALPHA = 0;

    Filter1Regs.COEFCONFIG.bit.BIN4_CONFIG = 0; //Set A
    Filter1Regs.COEFCONFIG.bit.BIN4_ALPHA = 0;

    Filter1Regs.COEFCONFIG.bit.BIN5_CONFIG = 0; //Set A
    Filter1Regs.COEFCONFIG.bit.BIN5_ALPHA = 0;

    Filter1Regs.COEFCONFIG.bit.BIN6_CONFIG = 0; //Set A
    Filter1Regs.COEFCONFIG.bit.BIN6_ALPHA = 0;

    Amiel

  • I understand, thank you. I have been changing manually the parameters that do not match the GUI. The GUI is really convenient to verify the changes on the simulated bode plot. Having to manually correct the parameters every time is prone to errors as I might be looking at a bode plot that does not match what is really in the UCD3138.
    I assume that the GUI is simply missing the flexibility to be configure for the combination FE0 + CLA1 + DPWM3 that I have mentioned.
  • Hello,

    A generic compensator is something we wish to add in the future but I do not know the date right now.

    Amiel