07-11-2013 09:33 AM
Hi
Iam getting analog output from the encoder and i want to count the 4th peak of the analog signal. Kindly suggest the best method Once 4th pulse is detected counter will increments.
Pl refer the encoder output .
Thanks
07-11-2013 09:35 AM
What have you tried so far?
Cameron
07-11-2013 09:50 AM
Whatever you've counted using your logic, divide it by 4 and convert it to an integer (towards negative infinity)..!!
This should work.
07-11-2013 10:09 AM
Hi
I am doing the same but I need to increment the counter when the 4th peak of the pulse detected. This is analog output not digital.
07-11-2013 11:26 AM
Keep a total count of all the peaks. Use the quotient remainder function for dividing by 4. Whenever the remainder =0, you know you have a 4th peak. Then increment your "4th peak counter".
07-11-2013 08:31 PM
HI All,
Thanks
This methos works.!!!!