Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

UCD3138: Questions about the void disable_current_sharing(void) function in UCD3138 full-bridge hard-switch evaluation board firmware

$
0
0

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


Viewing all articles
Browse latest Browse all 262198