External Interrupts of HCS12XEP100 doesn't work properly ?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

External Interrupts of HCS12XEP100 doesn't work properly ?

ソリューションへジャンプ
1,008件の閲覧回数
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 解決策
833件の閲覧回数
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 返信
834件の閲覧回数
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 件の賞賛
返信