cancel
Showing results for 
Search instead for 
Did you mean: 

Using interrupts (too quickly) prevents PWM from working?

JShel.1
Associate II

I fixed my mistakes from my last iteration of code (reduced 6MHz interrupt rate (which is impossible) to around 35KHz,) and reduced the amount of code in the interrupt. PWM on any timer still refuses to work even though I've enabled them. Is it possible for interrupts quicker than a certain rate to inhibit starting of timer PWM? Enabling preload does not fix the issue, and enabling the timers normally doesn't work either (without the IT at the end.)

1 REPLY 1
TDK
Guru

PWM is done independent of the CPU. Once started, it's not possible for interrupts to stop it from happening, unless those interrupts mess with the timer or re-initialize the pins.

Check your TIM and GPIO registers to ensure the PWM is set correctly.

If you feel a post has answered your question, please click "Accept as Solution".