TIM6 APB1 prescaler
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-08-23 4:58 AM - last edited on ‎2024-08-23 5:07 AM by mƎALLEm
Hello,
STM32F103RB microcontroller.
The Figure1 (see attached image) shows clock tree of STM32F103RB microcontroller. Before TIM6CLK, there is a block, which is highlighted in red rectangle. What's IF (APB1 PRESCALER = 1) x1 ELSE x2 label in this red rectangle? APB1 prescaler can't equal to "1". APB1 prescaler can be in states listed in the Figure2 (see attached image).
Solved! Go to Solution.
- Labels:
-
RCC
-
STM32F1 Series
-
TIM
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-08-23 5:57 AM
Sorry, didn't understand ..
Value divided by 1 = Value so it's not divided. A clock divided by 1 keeps the same frequency on the output prescaler -> frequency not divided.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-08-23 5:11 AM
APB1 PRESCALER = 1 -> "Not divided" which is the first value (0xx).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-08-23 5:19 AM - edited ‎2024-08-23 5:20 AM
Why is this (IF (APB1 PRESCALER = 1) x1 ELSE x2) shown so strangely in the clock tree diagram?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-08-23 5:26 AM
Do you mean APB1 PRESCALER needs to be = 0 in the clock tree?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-08-23 5:43 AM
I mean, why is APB1 PRESCALER = 1 the same as "Not divided" which is the first value (0xx)?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-08-23 5:57 AM
Sorry, didn't understand ..
Value divided by 1 = Value so it's not divided. A clock divided by 1 keeps the same frequency on the output prescaler -> frequency not divided.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-08-28 1:52 AM
Hello,
Thanks for the explanation, I understood everything.
