Doug Leverton

9S08QG8 STOP1 issues

Discussion created by Doug Leverton on Apr 24, 2007
Latest reply on May 5, 2007 by bigmac
I am trying to power up and power down my project with the PTA5/IRQ/RESET pin only.
In the main program I configure the pin as IRQ. 

Inside an interrupt service routine I am executing a STOP command (processor is configured for STOP1 mode).  The literature says  "upon wakeup from STOP1 mode the MCU will start up as from a power on reset(POR). The CPU will take the reset vector." (Page 38 of data sheet)  What I am finding when using the debugger (WinIDE with DEMO9S08QG8), is that waking up from STOP1 the CPU carries on to the next instruction in the ISR.  Is the debugger not capable of simulating the STOP1 mode, or is there another reason not to STOP in an ISR?