At 09:15 AM 5/7/2003 -0700, Tal wrote: >As you mentioned, one way is to count the pulses within a fixed time >period. The other is to measure the time it take to receive a fixed >number of pulses. The time between two pulses, plus the width of the pulses, is all you need. You know the number of pulses in a revolution. 1 rpm would give you a period of 60/N seconds, where N is the number of pulses in a rev. -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads