cancel
Showing results for 
Search instead for 
Did you mean: 

Timer 2 PWM Mode Available?

Rogers.Gary
Senior II
Posted on January 27, 2015 at 02:44

Hello,

I am testing an application on a Discovery STM32F4 board (MMB997C)

I need a counter for very low frequency generation: 5Hz to 100Hz, so it looks like Timer 2 is the only one that will work OK to do the job as it's the only 32 bit timer (someone can stop me anytime if that is not correct)

I've tried setting up Timer 2 with PWM and it does not appear to work. Will PWM1 and/or PWM2 work OK with any of the Timers? Can someone point me to an example?

Thank you.

#stm32f4 #pwm #timer-2
1 REPLY 1
Posted on January 27, 2015 at 06:03

There is a ''General-purpose timers (TIM2 to TIM5)'' section in the Reference Manual. It says it does PWM, and my recollection is that it does too. It can have a very long period, and this can be very difficult to see on a scope. Make sure not to use uint16_t types with the period and pulse settings.

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..