Timer clockdivision and prescaler?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2015-12-21 12:21 PM
Posted on December 21, 2015 at 21:21
Hello,
I see in my TIM_Handle_TypeDef variable that I can change the values of clockdivision and prescaler, but what is the difference between these two variables? Martin
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-12-21 1:36 PM
Posted on December 21, 2015 at 22:36
Clock division drives the front-end pin filters.
Prescaler takes the TIMCLK from the APB, and divides that down, and that then drives the counter.So if the TIMCLK is 84 MHz, and prescaler of 84-1 will clock the TIM->CNT at 1 MHzThere should be diagrams in the Reference Manual.
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..
