2014-07-31 01:05 PM
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!2014-07-31 01:16 PM
CPU/NVIC seem to disagree.
Use a Debugger, and figure out where the processor is executing code.