Rick Lebens

9S08qg4 STOP mode 3 question

Discussion created by Rick Lebens on Feb 22, 2008
Latest reply on Feb 23, 2008 by Jim Donelson

I'm new to this and stymied.    I am using a USBSPYDER08 to develop code. 

I set the STOPE bit and when I execute a STOP instruction it just seems to ignore it (if I set a breakpoint for the instruction after STOP it encounters it).  If I just run the program (green arrow no breakpoints) it just goes merrily on its way.

This thread says when in background debug mode the stop instruction is ignored.  Is that true?  I havent tried the progam in its non-debug environment.

 
On the off chance I figure this out, the manual says asynchronous interrupt (I want to use KBI) will result in the MCU taking the appropriate interrupt vector.   What does it do on the RTI?   The instruction after STOP perhaps?

Outcomes