MPC8343 can't trigger external interrupt on low-to-high transitions

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

MPC8343 can't trigger external interrupt on low-to-high transitions

Jump to solution
1,212 Views
scott111
Contributor I

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? 

Tags (1)
0 Kudos
Reply
1 Solution
1,093 Views
TomE
Specialist II

> 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

 

View solution in original post

0 Kudos
Reply
2 Replies
1,094 Views
TomE
Specialist II

> 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

 

0 Kudos
Reply
1,093 Views
scott111
Contributor I

Thanks Tom.  I was still looking at interrupt ID for IRQ3 and IRQ4, should have been looking at GPIO2.  It`s working now. 

0 Kudos
Reply