AnsweredAssumed Answered

PWM and Timer Interrupt on STM32F429ZIT6

Question asked by lastname.christoph on Apr 19, 2014
Latest reply on Apr 19, 2014 by Clive One
Hello,

Excuse my basic question, I really tried to figure this out by reading RM0090 and STM32F427xx/STM32F429xx Datasheet (DocID024030 Rev 3) but I'm just playing poke&hope.

I want to create a PWM and count the rising edges to determine the true number of pulses.
How do I combine which TimerInterrupt with my PWM Configuration?

Part of my experimental code can be found here. It's creating a proper PWM and the timer interrupt is fired with the PWM frequency. Now how can I safely count the number of RISING EDGES of the PWM ?
http://pastebin.com/pZLgMcuH

Regards
Christoph

Outcomes