>When you say "I have 50 lines in which to write this." do you mean >1) You have one 50 words of program memory available for this routine >2) The routine must complete in 50 cycles >3) Both 1 and 2 50 words of program memory. I'd prefer it to complete in less than a few hundred cycles if possible, but at this point I'll take anything. I know I'm asking a lot. I had thought of just counting the number of pulses in a given time frame (e.g., .25 seconds), then multiplying it out to a full minute, but the error would be more than a few hundred RPM, which produces unacceptable error at slower speeds. I'd have to count pulses for at least a full second or two to get reasonable accuracy this way. At 4MHz, this would be a 24-bit number, which isn't too bad. I was just hoping there was an easier way. Then there's always the problem of converting it to BCD :) --Andrew _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body