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.

How to Set Trip Zone and Digital Comparator Register for Over-Current/Voltage Trip

Hello,

I have a Dual Motor Control and PFC Developer’s Kit from TI. Does anybody know how it set trip zone and digital comparator register for over-current/voltage trip in project PFC+1PM_Motors.pjt? How does it set threshold value to compare with EPWM5A, and EPWM1A in the Project?

Thanks,

Hao

  • The dual motor control kit SW doesnt use any fault protection for the motor control stage.

    The DRV8402 IPM has built in protection circuitry. It actually has a fault pin to communicate back to the host processor, but we don't use it.  We do have a current value from each DRV chip (see schematic file, IC-FB and IA-FB) that are tied into two Trip Zones on Piccolo. By default these are disabled (there is a jumper on M1 in the middle of the board), and the SW doesn't may not use them.  If you want to enable you have to change the function of the GPIO pin in PFC+1PM_Motors-DevInit_F2803x.c

    //  GPIO-13 - PIN FUNCTION = TZ - Motor1 (M5)

    GpioCtrlRegs.GPAMUX1.bit.GPIO13 = 1; // 0=GPIO,  1=TZ2,  2=Resv,  3=SPISOMI-B

    GpioCtrlRegs.GPADIR.bit.GPIO13 = 0; // 1=OUTput,  0=INput 

    // GpioDataRegs.GPACLEAR.bit.GPIO13 = 1; // uncomment if --> Set Low initially

    // GpioDataRegs.GPASET.bit.GPIO13 = 1; // uncomment if --> Set High initially

    //--------------------------------------------------------------------------------------

    //  GPIO-14 - PIN FUNCTION = TZ - Motor2 (M6)

    GpioCtrlRegs.GPAMUX1.bit.GPIO14 = 1; // 0=GPIO,  1=TZ3,  2=LINTX-A,  3=SPICLK-B

    GpioCtrlRegs.GPADIR.bit.GPIO14 = 0; // 1=OUTput,  0=INput 

    // GpioDataRegs.GPACLEAR.bit.GPIO14 = 1; // uncomment if --> Set Low initially

    // GpioDataRegs.GPASET.bit.GPIO14 = 1; // uncomment if --> Set High initially

    //--------------------------------------------------------------------------------------

     

    You then have to program which functionality you would like to have happen on TZ event.

    If you have a current sense signal coming back you could also use the COMP, set a DAC value, and Trip from that.