Thanks six1. I'll give that a try. Why the pushall /pop ?
My ISR takes 6uS to run, and yours should be shorter. I'll measure it and report back.
As an aside, i'm wondering about re-designing to a hardware RTC rather than using the processor. My code is about 4500 lines long and I have a very intermittent problem where the processor resets about once every week or two, and its proving hard to track down, but i suspect the soft clock or an int has something to do with it. Certainly the timer1 isr certainly seems to screw up my software uart.
↧