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: In HSFB code ,AD13 is used to sense the load current , but I can not find the code to inplement over current protection

Part Number: UCD3138

Tool/software: Code Composer Studio

In HSFB code ,AD13 is used to sense the load current , but I can not find the code to inplement over current protection.

as follow , ACOMP_E_EN = 0 

QUESTION : how to inplement the ocp in HSFB code ?

  FaultMuxRegs.DPWM0FLTABDET.bit.ACOMP_E_EN = 0; // ACOMP-E will turn off DPWM0
  FaultMuxRegs.DPWM1FLTABDET.bit.ACOMP_E_EN = 0; // ACOMP-E will turn off DPWM1
  FaultMuxRegs.DPWM2FLTABDET.bit.ACOMP_E_EN = 0; // ACOMP-E will turn off DPWM2
  FaultMuxRegs.DPWM3FLTABDET.bit.ACOMP_E_EN = 0; // ACOMP-E will turn off DPWM3

  • The OCP in UCD3138 HSFB EVM was implemented as constant current control. If the load is higher than 33A, it enters constant current mode for about 100ms, then shut down. If you want fast OCP, then just enable the ACOMP_E_EN bit:

    FaultMuxRegs.DPWM0FLTABDET.bit.ACOMP_E_EN = 1; // ACOMP-E will turn off DPWM0
    FaultMuxRegs.DPWM1FLTABDET.bit.ACOMP_E_EN = 1; // ACOMP-E will turn off DPWM1
    FaultMuxRegs.DPWM2FLTABDET.bit.ACOMP_E_EN = 1; // ACOMP-E will turn off DPWM2
    FaultMuxRegs.DPWM3FLTABDET.bit.ACOMP_E_EN = 1; // ACOMP-E will turn off DPWM3

    Regards,
    Bosheng