2017-11-16 06:37 AM
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.
2017-11-16 07:44 AM
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
2018-06-29 09:40 AM
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