cancel
Showing results for 
Search instead for 
Did you mean: 

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

ADesi.3
Associate II

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

3 REPLIES 3
RobK1
Associate III

RobK1_0-1745925703048.png

That should do the trick.

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

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