> That all makes sense. But what I don't understand is how you integrate > that ISR with other things that may be happening on the chip. For > example, if I have a time-sensitive asynchronous serial routine, I would > expect that I would have to disable interrupts so that I didn't mess > that up. And if I disable interrupts, won't it throw the clock off? As long as you disable interrupts around short sections of code that are much shorter than the interrupt period, no problem. The interrupt condition may get set during the time interrupts are off, so the interrupt will be taken immediately after they are re-enabled. Temporarily disabling interrupts is common for atomically accessing a collection of state that can be altered by an interrupt routine. ***************************************************************** Embed Inc, embedded system specialists in Littleton Massachusetts (978) 742-9014, http://www.embedinc.com -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu