Again, check recursion. From your description, the RTI interrupt is always left incomplete during a STOP (perhaps you could correct by removing extra interrupt stack frames before executing STOP). A second, third, ... infinite RTI will always increase your stack and you end up with stack overflow, and all sorts of problems. This also explains the repeated execution of code following the STOP instruction. It either crashes (with longer IRQs), or exits multiple nested RTIs.
Message Edited by tonyp on
2007-07-09 05:17 PM