XIRQ and IRQ

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

XIRQ and IRQ

3,316 Views
monstor
Contributor II

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

 

Thank you.

Labels (1)
0 Kudos
3 Replies

1,862 Views
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 Kudos

1,862 Views
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 Kudos

1,862 Views
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 Kudos