Is it possible to trigger an external interrupt for both high-to-low and low-to-high transitions?
I'm trying to set up an edge triggered interrupt on an MPC8343, but I can only get it to trigger on high-to-low transitions. According to MPC8349EARM.pdf the IPIC register SEMSR : IRQ4 can be configured to either high-to-low change or low assertion, but register GP2ICR says the interrupt can be configured for triggering on any change on the state of the port, or high-to-low change. Which is correct?
Solved! Go to Solution.
> According to MPC8349EARM.pdf
According to MPC8379ERM.pdf (which I have a copy of)...
> the IPIC register SEMSR : IRQ4
The IPC allows level or edge settings (high to low edge only) for the IRQn pins.
> but register GP2ICR
Configures interrupts for pins GPIO1[0:31] and GPIO2[0:31].
> Which is correct?
Both?. If you want a "both-edge interrupt" you have to use a GPIO pin (or a pin configured as GPIO) and have the interrupt generated by the GPIO logic.
Tom
> According to MPC8349EARM.pdf
According to MPC8379ERM.pdf (which I have a copy of)...
> the IPIC register SEMSR : IRQ4
The IPC allows level or edge settings (high to low edge only) for the IRQn pins.
> but register GP2ICR
Configures interrupts for pins GPIO1[0:31] and GPIO2[0:31].
> Which is correct?
Both?. If you want a "both-edge interrupt" you have to use a GPIO pin (or a pin configured as GPIO) and have the interrupt generated by the GPIO logic.
Tom
Thanks Tom. I was still looking at interrupt ID for IRQ3 and IRQ4, should have been looking at GPIO2. It`s working now.