External Interrupts of HCS12XEP100 doesn't work properly ?

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

External Interrupts of HCS12XEP100 doesn't work properly ?

Jump to solution
522 Views
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

Labels (1)
0 Kudos
1 Solution
347 Views
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.


View solution in original post

0 Kudos
1 Reply
348 Views
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 Kudos