Hello all,
I ran into a problem and couldnt find a solution so far, wondering if you can help out.
When my external interrupt signal triggers on falling edge (yellow signal), i wan the PWM to turn OFF immediately. Looks like it waits half period more and this is very intermittent, a lot of times, it instantly turns off the PWM. i have attached a picture.
__interrupt void xint2_isr(void)
{
EALLOW;
EPwm2Regs.AQCTLA.bit.PRD = AQ_CLEAR; //Stop +X pwm
EPwm2Regs.AQCTLA.bit.CAU = AQ_CLEAR;
EDIS;}
Is there any register I can use to make sure to turn it off instantly at all times? Thanks in advance