XIRQ and IRQ

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

XIRQ and IRQ

3,328 次查看
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,874 次查看
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,874 次查看
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,874 次查看
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 项奖励