I want to know the EXT interrupt (GPINT1 & GPINT0) can use at the same time. When I use the GPINT1 & GPINT0 at the same time,only one is OK the other is faile.
I want to know the EXT interrupt (GPINT1 & GPINT0) can use at the same time. When I use the GPINT1 & GPINT0 at the same time,only one is OK the other is faile.
Hi,
Unfortunately, the GPINTx is not functional when enabling more than one.
If you enable two or more, there is a "logic and" to trigger the interrupt, meaning that all sources must be active at the same time in order to trigger the interrupt. This is a feature with this specific peripheral. Also mentioned in chapter 9.3 of the spec: [i]Interrupt from pin GP INT0, GP INT1 or GP INT2 as selected by bits 3,4 or 5 in SFR INTEXP. Only one of the bits may be set at a time.[/i]
A workaround can be to poll the lines using the RTC interrupt.
Best regards Håkon