>> If you are after revolution counting then ... > No, I was thinking of an oscillator. I could see that you were THINKING of an oscillator. The question (mine anyway) is, what are you trying to achieve? Looking back at the thread I see it wasn't posed as an application question but as a "is this yyy just an xxx" so we seem to have wandered into something without every having had a requirement specified in any way. (Unlike the more usual threads where the trequirement is not specified well). What is the (technology and possible-solution free) aim of the exercise? RM -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist