On 17 Sep 97 at 10:44, Aydin Yesildirek wrote: > To validate a serial data sequence I was holding the isr measuring > pulse width without ccp option. I might have gotten only one more > int during this time, so didn't worry about stack. > > I don't like to enable gie within isr but it was more intuitive to > program and timings were more accurate. I am not sure whether it can > always be avoided. > Its another case of 'if only it had a proper stack'. Making one in software is much too messy, and, if you have to deal with interrupts, that also will use the stack, you'll need to surround the soft push and pop instructions with gie disable/enaable to make the ops atomic. More jitter. GRRHHH! MikeS (remove the you know what before replying)