XIRQ and IRQ

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

XIRQ and IRQ

3,326件の閲覧回数
monstor
Contributor II

I would like to know what is the difference between XIRQ and IRQ of DP512 MCU.

 

Thank you.

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

1,872件の閲覧回数
iggi
NXP Employee
NXP Employee

Hi,

The information you can find in S12CPUV2 manual:

S12CPUV2 - Reference Manual

See chapter 7.5 Interrupts

In stop mode for example, low signal on IRQ pin triggers IRQ_ISR. Prior to stop mode IRQ must be enabled by setting IRQCR register and bit IRQEN.

Also, low level on XIRQ pin wake up the MCU.

However, if XIRQ interrupt is disabled then the code continues on the next instruction after STOP.

If the XIRQ interrupt is enabled then the XIRQ_ISR is triggered.

Hope the information helps.

Regards,

iggi

0 件の賞賛

1,872件の閲覧回数
monstor
Contributor II

Dear Iggi,

Do you mean XIRQ cannot be enable/disable and IRQ can be enable/disable?

and both can wake up MCU from STOP, right?

Best regards,

Henry

0 件の賞賛

1,872件の閲覧回数
iggi
NXP Employee
NXP Employee

Both can be disable/enable, but the XIRQ does not have dedicated register like IRQCR.

In case of XIRQ, after minimum system initialization, software can clear the Xbit in CCR register using an instruction such as ANDCC #$BF.

This way the /XIRQ interrupts are enabled.

After return-from-interrupt (RTI) instruction at the end of the interrupt service routine (ISR), the X bit is restored to initial value (set to logic once) and XIRQ is disabled.

0 件の賞賛