AnsweredAssumed Answered

no way to stay into stop/pseudo-stop

Question asked by Angelo Dureghello on Jan 31, 2017
Latest reply on Feb 7, 2017 by Angelo Dureghello

Dear experts,

 

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"
        "stop        \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 ?

 

Thanks

angelo

Outcomes