Bob Blick wrote: >> 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" Thanks for the explanation! The part that confused me is that I did not expect "int" to be 16 bits long. Vitaliy -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist