Due to the U.S. Thanksgiving holiday, please expect delayed responses during the week of 11/22.

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.

f28335 - Start of PWM


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...