On Wed, Apr 1, 2009 at 19:11, Michael Rigby-Jones > Just to clarify, are you using the overflow counter to check how long > the button is pressed, Correct. The overflow-variable counts the Timer0-overflows (which starts counting as soon as the button/RA0 is pressed). > so a short press starts or stops the timer, and a > long press resets it? Yes, this is my intention which I'm unsuccessfull with. To clarify even more: "timer" here means Timer1 (external 32kHz-crystal). -- - Rikard - http://bos.hack.org/cv/ -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist