> From: Anil Patel > > Just wanted to say thanks Steve. Your approach did the trick nicely. > > I did one thing differently. When the pin goes low indicating we want to > read the TMR0 and prescaler values, I switch the TMR0 to increment from the > PA4/T0CKI pin instead of the internal CLKOUT clock. This allows me to clock > the PA4/T0CKI pin manually to determine the count remaining in the prescaler > without having to have a tight counting/polling loop. Actually, I was going to suggest this but refrained because I couldn't remember whether reassigning the clock source would disturb the counter. However, it is gratifying to know that it really works. Regards, SJH Canberra, Australia