hi, i'm new in this forum , i have a question i want to use atmega1280 to pluse counter i have 2 ch of pluse signal ,they convert signal from encode . When encoder trun 1 round .I will have signal output 2500 pluse/round frequency 1.5kHz.when trun left i have pluse in ch1,but
trun righ plues in ch2. i want to keep val of pluse ..
It is difficult to understand what you want.
Is it a rotary encoder you have?
http://www.arduino.cc/playground/Main/RotaryEncoders
or do you want to measure the period of pulses:-
http://www.arduino.cc/en/Reference/PulseIn
Or do you want the pulses to trigger an interrupt and you count them in an interrupt service routine?
http://gonium.net/md/2006/12/20/handling-external-interrupts-with-arduino/
thank...you
i want to use interrupt count them
Then have a look at this:-
http://www.arduino.cc/en/Reference/AttachInterrupt