Skip to main content
Explorer
January 6, 2025
Solved

How to set the clock source for TIM3

  • January 6, 2025
  • 2 replies
  • 1117 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

    2 replies

    Technical Moderator
    January 6, 2025

    Hello @pass3master 

    Could you please provide the MCU you are Using.

    Best Regards.

    STTwo-32

    Explorer
    January 6, 2025

    The MCU we are using is STM32H743ZIT6.

    mƎALLEmAnswer
    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

    Explorer
    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?

    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.