You're right, Wouter. Missuse of "recursive". What *I* ment was of course exactly what you describe... Sorry about that. Jan-Erik. > Sent: den 28 juni 2006 22:32 > To: 'Microcontroller discussion list - Public.' > Subject: RE: [PIC] C18 resource remaining metric/test > > > > > I still think that recursive interrupts was the root cause of > > > my troubles... > > > > If you where trying to run without clearnig the TMR3IF bit, > > then yes, that would have been a problem. > > JE: are you sure about that? AFAIK the only way to get recursive > interrupts (interrupt while still in the interrupt) is explicitly > re-enabling interrupts within the interrupt code. > > Returning from the interrupt whithout clearing the interrupt source > would cause a perpetual interrupt: immediately after an interrupt the > main code would be interrupted again. Not nice, but definitely not the > same as recursive interrupts. For the guru's: would the main code > execute 0 instructions, or 1, or maybe even more? > > Wouter van Ooijen > > -- ------------------------------------------- > Van Ooijen Technische Informatica: www.voti.nl > consultancy, development, PICmicro products > docent Hogeschool van Utrecht: www.voti.nl/hvu > > > -- > 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