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.

Tripzone problem

Hi I'm using the project

HVPM_Enhanced_Sensorless Build 9

But every time I switch the lsw from 0 to 1 

the (EPwm1Regs.TZFLG.bit.OST==0x1) always sudden set and

ran into Task A1 then the TripFlagDMC is set to one 

but the EPwm1Regs.TZFLG.bit.OST is clear by somewhere thus the Tripzone is not occur.

why is that the TZFLG sudden set?

  • It seems like a over current trip. The default values set in the code are suitable for the test motor we had and may not fit other motors. Try to reduce the duty cycle value for IPD to a lower level, or reduce the DC bus voltage to a lower level. You may have to do a few iterations and figure out. This might need some time spent on debugging.
  • Is the function
    ZLSPD(&hpf_Iq, &hpf_coeff1, &hfi1, &ns_id1, &clarke1, &volt1);
    or these
    RESET_PI(pi_spd);
    RESET_PI(pi_id);
    RESET_PI(pi_iq);

    HFI_RESET(&hfi1); // reset HFI module
    HPF_RESET(&hpf_Iq); // reset HPF
    HPF_INIT(&hpf_coeff1); // optional - to change HPF corner freq during debug
    function contain the clear TZ flag code?
    EPwm1Regs.TZCLR.bit.OST = 1;
    EPwm2Regs.TZCLR.bit.OST = 1;
    EPwm3Regs.TZCLR.bit.OST = 1;

    I can't find out the clear TZ flag code except "void HVDMC_Protection(void)"
  • Yes, there is such a code during NS determination of magnetic field.

    From a purely over current protection standpoint, this code is developed on a legacy platform, and there is no specific code within HFI to address that.