On Thu, 25 Mar 2004, Edward Cooper wrote: > Now I'm not entirely clear if another interrupt can occur while one is > in process? I'm thinking it can't because it would just mess up the > PUSH and POP process, or would it!? Normally, global interrupts are disabled in your ISR, so if an interrupt event occurs, it will not cause the ISR to be re-entered. Interrupt flags will continue to be set for events that occur while you're in the interrupt. > Basically the TMR0 process is very short, I just need it to occur while > the processor is still dealing with the serial receive. > > I think I should really look into handling this serial receive outside > of the interrupt? That's probably the best approach. Or if you're using a PIC18, you could make your TMR0 interrupt high priority, which would allow it to preempt your serial interrupt handler. -- John W. Temples, III -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body