Andy,

>> I am attempting to use the p-port for my 20pulses + index encoder.
Unfortunately I have a noise issue on the encoder and limit switch lines. 2
sample intervals sometimes isn't enough to filter the glitches in the limit
switches, but 3 intervals is too big for the encoder signal to avoid being
filtered away..... I was hoping for a finer degree of control by using a
shorter sample time.
I know in principle I should be able to have two filters with different
timebases, but I really couldn't get that to work. Perhaps I needed to try
harder. <<

What filter component are you using? To debounce inputs such as limit
switches you should be using (not so surprisingly) the "debounce" component.
This component allows you to define groups of inputs to be debounced. All of
the inputs in the same group will have the same interval. 

Encoder signals are a different animal, especially if you need to count
pulses at a rate fairly close to the period of the base thread. In that case
it does not leave much margin for filtering. If your encoder supplies the
not signals, i.e. A, ~A, B, ~B, etc. the not signal can be used to filter
out noise. It will require another input however, or even up to three if you
need ~A, ~B and ~I.

Regards,
Eric



------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to