Michael A. Powers wrote: > > Hello, > > 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. > At 4MHz, that's orders of magnitude away from a 1s delay, and I would like to have > delays of 24 hrs or more! Hi Michael, I have some sample code on my web page: http://centauri.ezy.net.au/~fastvid/one_sec.htm For giving easy, zero-error timing of 1 second with a 4MHz PIC or even much longer periods. The code uses very little ram, operates quick and can easily be inserted into whatever timer interrupts you may already be using with any frequency crystal. :o) -Roman -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.