AnsweredAssumed Answered

Timer Interrupts prevent program from entering loop

Question asked by on Jul 31, 2014
Latest reply on Jul 31, 2014 by Clive One
Hi everybody,
I'm using TIM1 to output pwm signal at 50kHz. I have a deal loop while(1) and some code inside the dead loop at the end of my program. If I setup and enable a timer1 interrupt, for example TIM1 Update Interrupt, the loop will never be entered and the code inside the loop will never be executed. I have cleared the interrupt pending bit in the interrupt, and the code inside the interrupt will not take a long time to execute, so it should be finished before the next interrupt.
I really appreciate your help, thank you!