Andre Abelian wrote: > How would you do? Usually my method is to set a flag in the ISR routine, and the main loop checks this flag on a regular basis, and performs transmission etc. as needed. Of course, the responsiveness is slower, as for that one event, but several events can be triggered by IRQ, since each IRQ does not block the CPU for so long (preventing other IRQs to be seen). -- Ciao, Dario -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist