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.

PWM output jitter

Other Parts Discussed in Thread: TMDSDOCK28035

Hello all, 

I am trying to use TMDSDOCK28035, piccolo experimenter's kit to run a three phase AC motor. Following is the code where I set the PWM outputs, 

//set compare registers
EPwm1Regs.CMPA.half.CMPA = compValue[0]; //PWM 1A - PhaseA
EPwm1Regs.CMPB = compValue[1]; //PWM 1B - PhaseB
EPwm2Regs.CMPA.half.CMPA = compValue[2]; //PWM 2A - PhaseC
EPwm2Regs.CMPB = 0;

and these are sent to the GPIO pins using the following code 

GpioCtrlRegs.GPAMUX1.bit.GPIO0 = 1;                     // 0=GPIO,  1=EPWM1A,  2=Resv,  3=Resv

GpioCtrlRegs.GPAMUX1.bit.GPIO1 = 1;                   // 0=GPIO,  1=EPWM1B,  2=Resv,  3=COMP1OUT

GpioCtrlRegs.GPAMUX1.bit.GPIO2 = 1;                     // 0=GPIO,  1=EPWM2A,  2=Resv,  3=Resv

When I look at these pins on the scope, I see the PWM outputs but they have jitter, the edges seem to vary around 20us and PWM interrupt is running at a rate of 10khz. Because of this my mosfet gate drive outputs also has the same jitter. How can I avoid this?

Appreciate any inputs. 

  • Hi,

    Can you attach the PWM waveform? It would be easy to comment. Also what I feel is, the jitter you're mentioning is being introduced due to some external hardware.

    Regards,

    Gautam

  • Hello Gautam, Thanks for your reply.

    I have attached a picture of my setup, it is a standalone piccolo experimental kit powered by either USB or power supply.

    I have attached a video of the pwm signal jitter, i am accessing from GPIO 00

  • Sandhya, have you triggered channel 1 of your oscilloscope. Manually trigger it to the midway of the signal and revert.

    Regards,

    Gautam