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. I can set the prescaler to = 1:128 and start TMR0 at 0, and have the timer overflow every 32,768 = cycles. At 4MHz, that's orders of magnitude away from a 1s delay, and I = would like to have delays of 24 hrs or more! The only way I can think = of getting around this is having the interrupt routine increment another = register, and be able to count the cycles to a second that way. But = again, that's a very inconvenient way if you want a routine to function = every 24 hrs, you would need quite a lot of bits! I guess I have two = other options, slowing the instruction clock down to the kilohertz = range, or putting a secondary oscillator on T0CKI. If anyone has any = advice to share, I'd be grateful to hear it. Thank You, -Mike -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics