Ciao, I did the same as you did. if you look at the code you will see it. thank you Andre -----Original Message----- From: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu]On Behalf Of Dario Greggio Sent: Friday, July 27, 2007 9:39 AM To: Microcontroller discussion list - Public. Subject: Re: [PIC] sync problem 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 -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist