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? > "all" PIC16 have a 8 level deep stack for call/return, see DS39582B section 2.0 Memory organization!!! > Anyway, the code for the ISR is big, and it is not the ISR, which is > hanging. > My english is bad but... there is not a contradiction? In any case because the ISR interrupt (!) the main code it (ISR) can not hang but can (often occurs) let hang the main code. > 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