cancel
Showing results for 
Search instead for 
Did you mean: 

How to set the clock source for TIM3

pass3master
Senior

How to set the clock source for TIM3

We are trying to use TIM3. We also want to use an external CLK as the clock source for TIM3, but we don't know how to set it.

.ioc file - Where should I change the TIM3 clock source settings?

5 REPLIES 5
STTwo-32
ST Employee

Hello @pass3master 

Could you please provide the MCU you are Using.

Best Regards.

STTwo-32

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.

The MCU we are using is STM32H743ZIT6.

SofLit
ST Employee

Hello,

From the reference manual RM0433/ section 39.3.3 Clock selection:

You can select an external clock source for TIM3:

SofLit_0-1736160850357.png

In CubeMx:

SofLit_1-1736160973504.png

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.
PS: This is NOT an online support (https://ols.st.com) but a collaborative space. So please be polite in your reply. Otherwise, it will be reported as inappropriate and you will be permanently blacklisted from my help/support.

That was a very easy-to-understand answer. Thank you.
If I select Internal Clock, what will be the accuracy and error of CLK?


@pass3master wrote:

If I select Internal Clock, what will be the accuracy and error of CLK?


It will be the accuracy of the system clock source: HSE/HSI etc ..

SofLit_0-1736244183506.png

HSI, CSI accuracies are provided in the datasheet. HSE depends on the clock source you put as input.

If the original question has been answered please accept the comment that answered your original question.

 

 

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.
PS: This is NOT an online support (https://ols.st.com) but a collaborative space. So please be polite in your reply. Otherwise, it will be reported as inappropriate and you will be permanently blacklisted from my help/support.