cancel
Showing results for 
Search instead for 
Did you mean: 

About starting and stopping a timer by an encoder timer

mustafacmk
Associate II

Incremental encoders are known to have problems for speed measurement at low speeds. For this, period measurement at low speeds is recommended.

The following statement is taken from RM0440 page 1158.

0693W00000LxdfeQAB.png 

What I want to do here is to start another timer in the first trigger and stop it in the second trigger with the TRGO output of the Encoder timer as described in the guide. Thus, I can directly read the CNT and obtain the period information without software intervention.

I tried all of the trigger options RESET mode, Gated mode, Trigger mod etc. but I couldn't get the result I wanted.

Gated mode counts as long as the pulse is high,

Trigger mode just starts the timer. Others didn't work very well.

How to do what is described in the picture. Is there something that I misunderstood?

0 REPLIES 0