Olin Lathrop wrote: > >Interrupts are not nested on the 16 series PICs. An interrupt uses exactly >one stack location unless you deliberately call a subroutine. > I've never considered nesting interrupts on a PIC but wouldn't it be possible (though perhaps not advisable) to nest interrupts by re-enabling GIE during the execution of the original interrupt code? (At a minimum, I'd expect that this approach would require a bit of careful coding to save/restore W and STATUS uniquely for each level of nesting. There may be some other complications that don't immediately come to mind.) Is there anything in the Microchip docs that would preclude doing this? If so, I haven't seen it. Have I missed something simple here? _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads