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: Questions about the void disable_current_sharing(void) function in UCD3138 full-bridge hard-switch evaluation board firmware

Part Number: UCD3138

Hello, I was recently learning the UCD3138 full-bridge hard switch development board firmware
I met a problem
I read the void disable_current_sharing(void) function
Void disable_current_sharing(void)
{
#ifdef CURRENT_SHARING_ENABLE //Enabled, go to the next statement.
     FeCtrl0Regs.EADCDAC.bit.DAC_DITHER_EN = 0; //0 = DAC Dithering disabled (Default) disables DAC jitter
    
    //3 for pass through, 1 for DPWM current source control 250 uA into 100 kOhm at 100% duty cycle.
     MiscAnalogRegs.CSCTRL.bit.TEST_MODE = 0; //Tri-state or Slave mode
#endif
}
The function should be to set the current sharing mode to Tri-state or Slave mode. But why after setting this mode, the current sharing function can be disabled?

And what's the difference between Tri-state and Slave mode?


Thank you

  • There are at least 3 types of current sharing that can be implemented by UCD3138.
    1- Average current sharing Bus, 2- Master/Slave current sharing, and 3-Droop current sharing
    We have implemented the first option (1- Average current sharing Bus) in the HSFB-EVM reference firmware.
    But setting MiscAnalogRegs.CSCTRL.bit.TEST_MODE = 0; can also be usefull when in master/slave mode and you want to set the device to be slave. Therefore the comment "//Tri-state or Slave mode" is not fully relevant to the specific implementation (1- Average current sharing Bus).
    In the specific code that you are dealing with, TEST_MODE is set to zero in order to disconnect from the current share bus.

    For more details, please refer to chapter 9.5 Current Sharing Control on Technical Reference Manual.
    www.ti.com/.../sniu028a.pdf

    Hope this helps,

    Regards,
  • Got it,Thank you!