cancel
Showing results for 
Search instead for 
Did you mean: 

TIM6 APB1 prescaler

Mykola_Levun
Associate III

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).

1 ACCEPTED SOLUTION

Accepted Solutions

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.

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.

View solution in original post

6 REPLIES 6
SofLit
ST Employee

APB1 PRESCALER  = 1 ->  "Not divided" which is the first value (0xx).

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.

Why is this (IF (APB1 PRESCALER  = 1) x1 ELSE x2)  shown so strangely in the clock tree diagram?

Do you mean APB1 PRESCALER needs to be = 0 in the clock tree?

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.

I mean, why is APB1 PRESCALER  = 1 the same as "Not divided" which is the first value (0xx)?

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.

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.

Hello,

Thanks for the explanation, I understood everything.