Sounds to me like there is an interrupt flag that you are not clearing before exiting the interrupt routine. Have you double checked that *all* IE flags are set to 0, and that only the ones you are servicing in the ISR are set to 1? Have you ensured that you are setting the IF flag to 0 in your ISR for all the enabled interrupts? Rolf Jens M. Guessregen / Mailinglists wrote: >>> I have a problem. >>> I am using a PIC16F877 and a timer triggered IRQ service routine. >>> >> could you try placing the ISR code directly into place, >> rather than "calling" it? >> Could it be a stack overflow?... >> > > Stack? Is there a stack in a 16F877A? > > Anyway, the code for the ISR is big, and it is not the ISR, which is > hanging. > There is a small routine to have a LED blinking with the ISR, and this > LED is always blinking. > > Another LED was put inside the main, and that one is stopping blinking. > > Best Jens > > -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist