2024-08-23 04:58 AM - last edited on 2024-08-23 05:07 AM by SofLit
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.
2024-08-23 05: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.
2024-08-23 05:11 AM
APB1 PRESCALER = 1 -> "Not divided" which is the first value (0xx).
2024-08-23 05:19 AM - edited 2024-08-23 05:20 AM
Why is this (IF (APB1 PRESCALER = 1) x1 ELSE x2) shown so strangely in the clock tree diagram?
2024-08-23 05:26 AM
Do you mean APB1 PRESCALER needs to be = 0 in the clock tree?
2024-08-23 05:43 AM
I mean, why is APB1 PRESCALER = 1 the same as "Not divided" which is the first value (0xx)?
2024-08-23 05: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.
2024-08-28 01:52 AM
Hello,
Thanks for the explanation, I understood everything.