Hi
I need to change the function of a Pin from PWM to GPIO and back to PWM.
How fast is this change?
How many NOPs should I implement until I could be sure the PWM output is activ? Or is there a better way?
Now I have something like this:
EALLOW; GpioCtrlRegs.GPAMUX1.bit.GPIO0 = 1; // Configure GPIO0 as EPWM1A EDIS; // give it some time to change the GPIO function, // but how much is enough asm (" NOP"); asm (" NOP"); asm (" NOP"); asm (" NOP"); asm (" NOP"); pwm_set_duty_cycle(pwm);
Thanks
René