Hi,
I'm not really sure how to fix a problem I'm working on. I have four PWM signals as output. They are controlled by eCAP which is used to calculate TBPRD, CMPA and CMPB, and also by EPWMSYNCI for phase synchronization.
What I do after configuring the PWMs in my code is to set TBCLKSYNC = 1 and then on the next row I use trip-zone. I then put a delay and clear the trip-zone. This is so the PWMs immediately starts with the correct phase, period time and duty cycle. But this is what happens. The PWM has time to actually put out a signal before the trip-zone sets in as shown in the picture below (green is ePWM1b and yellow is ePWM1a):
Then after I clear the trip-zone the PWMs behaves exactly as I want them to, as shown in the picture below:
But how do I best remove the initial ePWM pulse? It's almost 1us long which is a bit too much for my application...
//ekmanch