Skip to main content
Associate
November 22, 2023
Solved

Questions about TIM_InputCapture example in NUCLEO-U575ZI-Q

  • November 22, 2023
  • 2 replies
  • 1911 views

Hello,

When I study code of TIM_InputCapture example in NUCLEO-U575ZI-Q, I am confused about the Clock sourece configuration of TIM1 as following shows:

erdong_0-1700638992270.png

why do you choose "disable" rather than "Internal Clock"?

thank you!

 

    This topic has been closed for replies.
    Best answer by Ghofrane GSOURI

    Hello @erdong 

    First let me thank you for posting.

    The TIM1CLK frequency is set to SystemCoreClock (Hz), the Prescaler is 0, so the TIM1 counter clock is SystemCoreClock (Hz).

    SystemCoreClock is set to 160 MHz for STM32U575ZITxQ Devices.

    Timer1 clock.png

    2 replies

    Ghofrane GSOURI
    Ghofrane GSOURIBest answer
    ST Technical Moderator
    November 22, 2023

    Hello @erdong 

    First let me thank you for posting.

    The TIM1CLK frequency is set to SystemCoreClock (Hz), the Prescaler is 0, so the TIM1 counter clock is SystemCoreClock (Hz).

    SystemCoreClock is set to 160 MHz for STM32U575ZITxQ Devices.

    Timer1 clock.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.
    erdongAuthor
    Associate
    November 23, 2023

    Firstly, thanks for your reply.

    Is it mentioned in manual reference? Where can I find it?

    And when can I use "internal clock" mode? How about the other TIMx? 

    thank you!