Mark Rages wrote: > Why do you want a 1/second update rate? Why not update the screen > when new information arrives, eg. at the "wheel rotated" event? Because that would make the numbers change too fast for reasonable human viewing at ordinary speeds. I would have the interrupt routine compute the period, low pass filter that a little, then leave it lying around for the foreground to to grab when it wants. The foreground code grabs the current period value maybe twice a second, inverts it to make speed, and displays the result. Decoupling the period measurement from the display actually solves more problems than it creates. ******************************************************************** Embed Inc, Littleton Massachusetts, http://www.embedinc.com/products (978) 742-9014. Gold level PIC consultants since 2000. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist