Skip to main content
Explorer
April 29, 2025
Question

Is it possible to reset TIM3 Count register by hardware using an External Pin?

  • April 29, 2025
  • 2 replies
  • 404 views

Hello,

In my application I need to clear TIM 3 Counter on Rising Edge of an external Pin.

My target MCU is STM32C011

Is there any example available?

 

Thanks

Alfonso

    This topic has been closed for replies.

    2 replies

    Graduate II
    April 29, 2025

    RobK1_0-1745925703048.png

    That should do the trick.

    ADesi.3Author
    Explorer
    May 5, 2025

    Thanks for the answer.

    This configuration is Edge sensitive or Level Sensitive?

    I need the timer to stay Reset when the external signal is High

     

    Thanks

    Super User
    May 5, 2025

    Edge, see description of TIMx_SMCR.SMS in RM.

    Gated mode is edge sensitive, but that does not reset the timer's counter. You may perhaps combine it with some interrupt which would provide the reset.

    JW