Skip to main content
ADesi.3
Associate II
April 29, 2025
Question

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

  • April 29, 2025
  • 3 replies
  • 425 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.

3 replies

RobK1
Associate II
April 29, 2025

RobK1_0-1745925703048.png

That should do the trick.

ADesi.3
ADesi.3Author
Associate II
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

waclawek.jan
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