MC9212XEQ512 - illegal op code interrupt

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

MC9212XEQ512 - illegal op code interrupt

1,167件の閲覧回数
JohnBarber
Contributor II

Hi,

I'm using a MC9s12XEQ512 and get a illegal op code interrupt.

 

Can I in some way figure out where in the code the processor was executing when the interrupt occured?

Is the pc register stored in a register or so?

 

/John

ラベル(1)
0 件の賞賛
返信
3 返答(返信)

717件の閲覧回数
MJW
NXP Employee
NXP Employee

Hello John,

 

the exception stack-frame contains the return-address field. The return-address for an illegal op-code exception is basically the PC of the illegal op-code + 2.

 

HTH,

MJW

0 件の賞賛
返信

717件の閲覧回数
JohnBarber
Contributor II

Hi,

and where do I find the excpetion stack frame?

/John

0 件の賞賛
返信

717件の閲覧回数
kef
Specialist I

In CPU12X reference manual see TRAP instruction description.

 

Like on entry into any interrupt handler, CPU return address RA can be found at SP+6.  Illegal instruction is at RA-2.

0 件の賞賛
返信