Using S12XE processor, and trying to track down the source of an infrequent COP time-out.
I know that the COP timeout forces a reset. What I'd like to do in the COP ISR is look back at the stack frame when the COP occured, particularly the PC. Of course, this will work only if the SP 's value is not changed by the reset.
So, is the stack pointer unchanged across a COP-induced reset?