AnsweredAssumed Answered

How can you open multiple IRQ pins simultaneously

Question asked by GANG LIU on Nov 4, 2017
Latest reply on Nov 6, 2017 by Mark Butcher

HELLO,

I in the use  the MKE06Z,I can open separate IRQ arbitrary external interrupt of a pin, but I tried for a long time, not at the same time open multiple external interrupt input, for example, I opened the I0 external interrupt pin, I can't open the I0 at the same time, I1, I2 external interrupt of the three pin

 

This setting can successfully open a single pin

SIM->PINSEL |= 0x01; //PTI0
SIM->SCGC |= SIM_SCGC_IRQ_MASK;
IRQ->SC = IRQ_SC_IRQEDG_MASK |
IRQ_SC_IRQPE_MASK |
IRQ_SC_IRQIE_MASK ;

 

I haven't tried any of the following Settings

1.

SIM->PINSEL |= 0x01| 0x02| 0x03; 
SIM->SCGC |= SIM_SCGC_IRQ_MASK;
IRQ->SC = IRQ_SC_IRQEDG_MASK |
IRQ_SC_IRQPE_MASK |
IRQ_SC_IRQIE_MASK ;

 

2.

SIM->PINSEL |= 0x01; //PTI0
SIM->SCGC |= SIM_SCGC_IRQ_MASK;
IRQ->SC = IRQ_SC_IRQEDG_MASK |
IRQ_SC_IRQPE_MASK |
IRQ_SC_IRQIE_MASK ;

SIM->PINSEL |= 0x02; //PTI2
SIM->SCGC |= SIM_SCGC_IRQ_MASK;
IRQ->SC = IRQ_SC_IRQEDG_MASK |
IRQ_SC_IRQPE_MASK |
IRQ_SC_IRQIE_MASK ;

SIM->PINSEL |= 0x03; //PT3
SIM->SCGC |= SIM_SCGC_IRQ_MASK;
IRQ->SC = IRQ_SC_IRQEDG_MASK |
IRQ_SC_IRQPE_MASK |
IRQ_SC_IRQIE_MASK ;

 

THANK YOU!

Outcomes