Quantcast
Channel: Forum - Recent Threads
Viewing all articles
Browse latest Browse all 5781

Question regarding external interrupts

$
0
0

I am using a joystick, and I have two pins sharing the same IRQ (i.e., IRQ13 for P0_15= LEFT_SWITCH & P0_9= DOWN_SWITCH).   Note that I have set up both pins to use IRQ13,  but the software complains if I instantiate two External interrupt blocks that point to the same IRQ channel (though the block itself does not turn red?).  I was thinking I would need only one reference block, Let say for the Down Switch.  If IRQ13 saw a falling edge, it would trigger regardless DOWN or LEFT switch is pressed.   I could then sort out which was pressed in the interrupt.  However, code is unresponsive to a left switch press.  (Is it possible that P0_15 is something other than IRQ13 - I believe I found another mistake in the document regarding IRQs).  I can however consistently poll on P0_15 (Left Switch), so I know it's not a hardware problem on my end.

 


Viewing all articles
Browse latest Browse all 5781

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>