Hi Bob, Andy, > > Would it also be OK to add 50 to it, in case you might have been > > busy with something else and it advanced to 1. I know I'm not > > explaining myself very well, I hope you understand what I mean :-) > > I understand exactly what you mean... In fact, adding to (or > subtracting from) TMR0 is the best way to reload it, for exactly the > reason you describe. If I am not mistaken, this 'benefit' would be almost lost if you had other than a 1:1 prescaler as the prescaler value would be cleared and lost. I do make use of this technique for timing but the lost cycle/s on the write to TMR0 need to be watched out for especially when you use no prescaler. Cheers -- Kalle Pihlajasaari kalle@ip.co.za http://www.ip.co.za/ip Interface Products P O Box 15775, DOORNFONTEIN, 2028, South Africa + 27 (11) 402-7750 Fax: 402-7751 http://www.ip.co.za/people/kalle DonTronics, Silicon Studio and Wirz Electronics uP Product Dealer