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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

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

跳至解决方案
1,253 次查看
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? 

标记 (1)
0 项奖励
回复
1 解答
1,134 次查看
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 项奖励
回复
2 回复数
1,135 次查看
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 项奖励
回复
1,134 次查看
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 项奖励
回复