External Interrupts of HCS12XEP100 doesn't work properly ?

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

External Interrupts of HCS12XEP100 doesn't work properly ?

跳至解决方案
1,005 次查看
wannabe
Contributor I

hi guys,

 

This is my first time here in freescale community, I hope this post finds you all well .. 

 

I have worked on HCS12XEP100 kit with a very simple project, just capturing an interrupt on port p pin 0 and toggling the state of port A. But, it never worked for me and I really don't know why !!

 

Need help, If you please
The project is attached.
Thanks

Original Attachment has been moved to: Test.rar.zip

标签 (1)
0 项奖励
回复
1 解答
830 次查看
RadekS
NXP Employee
NXP Employee

I tested your project at our board (DEMO9S12XEP100) and everything works correctly.

Every push button release changes status of LED at PA0.

If you use the same board, please check if you have jumper J503 connected.

If you don’t use this board, please check voltage levels at port P.

Note:

Pin interrupt is sensitive only to one type of edge (rising/falling) in the same time.

If we want use pin interrupt for detecting both edge events (for example pulse width measurement), we have to handle edge setting by software or we can use two pins connected together (with different settings).

PPSPx=1 - rising edge

PPSPx=0 – falling edge.


在原帖中查看解决方案

0 项奖励
回复
1 回复
831 次查看
RadekS
NXP Employee
NXP Employee

I tested your project at our board (DEMO9S12XEP100) and everything works correctly.

Every push button release changes status of LED at PA0.

If you use the same board, please check if you have jumper J503 connected.

If you don’t use this board, please check voltage levels at port P.

Note:

Pin interrupt is sensitive only to one type of edge (rising/falling) in the same time.

If we want use pin interrupt for detecting both edge events (for example pulse width measurement), we have to handle edge setting by software or we can use two pins connected together (with different settings).

PPSPx=1 - rising edge

PPSPx=0 – falling edge.


0 项奖励
回复