cancel
Showing results for 
Search instead for 
Did you mean: 

Implement Encoder Interface Mode and debounce input signals?

sima2
Associate III
Posted on September 24, 2012 at 10:19

Hello

I want to implement an encoder interface in a timer (Encoder Interface Mode).

But how do I handle the sliding noise on the rising or falling edge of the A and B signal (see picture)?

I would need some kind of debouncing of the signals.

0690X0000060MlqQAE.gif

Sliding noise:

0690X0000060MlrQAE.gif

3 REPLIES 3
Posted on September 24, 2012 at 15:26

You can use comparator, plug the A and A' signals into the comparator's input. And you can do it for B and B' or/and Z and Z' or you can use high-speed optocouplers.

emalund
Associate III
Posted on September 24, 2012 at 15:52

1) what is the size of 'R' and how much capacitance (stray or otherwise) on the lines?

2) if the 'sliding noise' does not 'slide' past the transition of the other signal, what is the problem?

3) you are aware that the old nugget ''B equal direction, A equal clock'' misses at some direction changes

4) you are aware that whan an encoder stop just over a transition you can get VERY high frequency state changes

Erik
benny2
Associate
Posted on November 28, 2012 at 10:15

Is there anything that I can do by programming to filter a debounce input signal?