Re: >I have been experimenting with TMR0 and the prescaler to provide >timing delays in my application. It seems pretty easy to do if you >want short delays. However, when you are using a 4MHz clock, it >seems to get difficult to get long delays, say like 1s. ... App Note AN-7 "Ninety-Day Countdown Timer" on our website may give you some ideas ... -- ______________________________________ Andrew E. Kalman, Ph.D. Salvo(TM), The RTOS that runs in tiny places(TM) Pumpkin, Inc. 750 Naples Street San Francisco, CA 94112 tel: (415) 584-6360 fax: (415) 585-7948 web: http://www.pumpkininc.com email: aek@pumpkininc.com -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.