Timer 2 PWM Mode Available?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2015-01-26 5:44 PM
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
Labels:
- Labels:
-
STM32F4 Series
-
TIM
This discussion is locked. Please start a new topic to ask your question.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2015-01-26 9:03 PM
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..
Up vote any posts that you find helpful, it shows what's working..
