Other Parts Discussed in Thread: HALCOGEN
Hello:
According to the advice from Bob ,I state my issue again.
With regard to the ETPWM module using TMS570LS1114PGE (Trip-Zone (TZ) Submodule), I have the following questions:
1.when I configure HALCoGen:ETPWM3->: Trip, Zone, Source:select, all,my program code added the following two sentences:
etpwmEnableTripZoneSources(etpwmREG3,CycleByCycle_TZ4);//4 5 6
etpwmEnableTripInterrupt(etpwmREG3,CycleByCycleTrip);
My program code can work properly, and the normal PWM waveform is observed on the oscilloscope. But when I changed the code to it:
etpwmEnableTripZoneSources(etpwmREG3,CycleByCycle_TZ1);//1 2 3
etpwmEnableTripInterrupt(etpwmREG3,CycleByCycleTrip);
My program code doesn't work properly, and the abnormal PWM waveform is observed on the oscilloscope. I didn't add any other action.
2.Trip-Zone Submodule in the end how to use it, according to the manual, I still can not use it well, stuck here for nearly a month. According to the manual spnu515b, TZ1 to TZ3 are from the GPIO MUX sourced at the page, do I need any other configuration?
3.OSHTfor major short circuits or over-current conditions ,CBC for current limiting operation ?
Explanation: I want to use the ETPWM (TZ) module. I want to achieve the function: when the TZ module to the outside when I detect the error signal, I can make early warning, and the PWM module gives some corresponding instructions, and when no fault, my normal PWM output.
Looking forward to your reply.
Qiu Chi
2017/9/15