> I'm sure others will chime in with a better response. Here is my super > tired, on the way to bed answer. > > When you get an interrupt, you check the flags of the interrupts you > are interested in. look for the xxxIF flags. Remember, you have to > clear those flags too. > > Josh Note that this allows for (something like) priority in interrupt handling, even in 12- and 14-bit core chips. Multiple simultaneous interrupts will be serviced in the order they are checked. Any interrupt NOT serviced will cause an immediate return to the interrupt vector upon RETFIE. This doesn't mean that a lower priority interrupt can be interrupted by a higher priority interrupt, just that more time critical ones can be allowed to finish their business before less time critical ones. Also remember that not all interrupt flags are cleared by clearing their respective flag; for example, USART interrupt flags are cleared by taking the appropriate action on the involved register (writing TXREG, reading RCREG). Mike H. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist