Skip to main content
Associate III
January 6, 2025
Solved

How to set the clock source for TIM3

  • January 6, 2025
  • 5 replies
  • 1176 views

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?

This topic has been closed for replies.
Best answer by mƎALLEm

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

5 replies

STTwo-32
ST Technical Moderator
January 6, 2025

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.
Associate III
January 6, 2025

The MCU we are using is STM32H743ZIT6.

mƎALLEm
mƎALLEmBest answer
ST Technical Moderator
January 6, 2025

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 "Best answer" on the reply which solved your issue or answered your question.
Associate III
January 7, 2025

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

mƎALLEm
ST Technical Moderator
January 7, 2025

@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 "Best answer" on the reply which solved your issue or answered your question.