2015-01-26 05:44 PM
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-22015-01-26 09:03 PM
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.