i am working on a mc9s12XEP100.
I need to stay into stop, but the stop instruction is passed over.
asm volatile (
"andcc #0x7f \n"
"orcc #0x10 \n"
on CCR, i set to 0 the S bit, and to 1 the I bit, while X bit is already set to 1 (checked by debugger).
Since i am disabling all those flags, i was not expecting mcu to exit from stop for any external interrupt. But it exits.
What could be the source of the stop exit ?