On Wed, 17 Dec 2008 11:24:40 -0700, "Vitaliy" said: > > Why "about once per second"? I don't see the clock specified anywhere. Default clock is 4MHz, so that's 1 cycle per microsecond, and an "if(!--i)" loop with i as an integer takes probably 12 cycles. So "about 1 second" is more like "about .768432 second" Cheers, Bob -- http://www.fastmail.fm - Choose from over 50 domains or use your own -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist