>I am using a PIC16F84 and when I initiate a interrupt on pin 6(RB0) >then the program jumps to my interrupt routine... > >If I flush a led in the interrupt routine and do a retfie then the = program >jumps back to my main loop - OK > >If I do a call to Subroutine and the a return to the Interrupt routine=20 >and then a retfie to the main routine, the program never get into the=20 >main program again...Why? > >Is the size of the stack smaller than 8 if in a interrupt routine? I just want to clarify something... when you say that you call a = subroutine, then return to the interrupt routine, do you mean that you = are calling the interrupt routine directly, and not getting there via an = actual interrupt? I would think that RETFIE would only work if the routine was triggered = by an interrupt. Also, if you were in a subroutine, and an interrupt occurred, the ISR = would be invoked, and control would return back where it left off, in = the subroutine, and NOT the main routine... Steve -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics