cancel
Showing results for 
Search instead for 
Did you mean: 

Timer in AB encoder moder with additional Z zero signal

matic
Associate III
Posted on November 16, 2017 at 15:37

Hi.

I have timer configured in encoder mode and it counts AB signals (both edges of each signal). A and B signals are connected to channel 1 and 2, respectively. Signal Z (zero mark) is on channel 3. I use TIM8. Is it possible to configure that the Z signal on channel 3 automatically reset CNT counter (

automatically I mean by hardware

)? If yes, how?

Thank you in advance.

2 REPLIES 2
Posted on November 16, 2017 at 16:44

No, at least not simply.

The 'slave mode controller' unit within the timer is responsible for both the encoder mode handling and reset - you cannot have both at the same time.

JW

Posted on June 29, 2018 at 16:40

In fact I'm going crazy to try and reset the counter using the Z track of the encoder!

I do not understand why there is no count reset input. How can you (STM) think to use an IRQ software to reset the count? That's not a good solution. The counter must be cleared via hardware as is normally the case with other MCUs.

How is it possible that no solution has been devised to reset the counter with an external signal when the count is done in quadrature?

Andrea