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: UCD3138HSFBEVM

Part Number: UCD3138

Tool/software: Code Composer Studio

Hi everyone,

I am using UCD3138 digital signal processing as voltage converter, i am facing some problem while writing code.

1. ucd3138 is isolated

2. Topology - Secondary phase shift full bridge control with synchronous rectification.

3. I am using FE0, FILTER0 and one DPWM 

4.I am using DPWM phase shift mode

These 4 things i have selected,  from these setup could i do voltage convesrion or else should i consider something else please let me know.

I have found FE0 setting in code i have attatched here could you any one tell me meaning of these stament please, how can we decide values of registers.

FeCtrl0Regs.RAMPDACEND.bit.RAMP_DAC_VALUE = 12000;                                        // 0.09765625 mV/Count
FeCtrl0Regs.EADCDAC.bit.DAC_VALUE = 0;                                                                        // Start point for ramp-up
FeCtrl0Regs.DACSTEP.bit.DAC_STEP = 1024;

Thanking you.

  • Hello Gouthami,


    RAMP_DAC_VALUE of 12000 means that the reference value will ramp up to (12000*0.09765625)= 1172 mV

    Based on the voltage divider that attenuates your output voltage, you can calculate what Vout will this translate to before the voltage divider.

    DAC_VALUE of zero means the ramp will start from 0 volts.

    Bits 17-0: DAC_STEP – Programmable 18-bit unsigned DAC Step. Bits 17:10

    represent the real portion of the DAC Step (0-255 DAC counts at bit resolution of

    0.09765625mV). Bits 9:0 represent the fractional portion of the DAC Step.

    So DAC_STEP = 1024 means each step is equivalent to 0.09765625mV, meaning it will take 1172/0.09765625mV = 12000 switching cycles to end the ramp up of the reference point. Based on your switching period you can calculate how long that would be in mS.

    For more details on how to program this controller, please refer to:

    http://www.ti.com/lit/ug/sniu028a/sniu028a.pdf

    Hope this helps.

    Regards,

  • Thank you so much for your breif explanation Yitzhak Bolurian's .

    It resolves my doubt , thank u for replying it helps me lot.

    Thank you.