AnsweredAssumed Answered

Push buttons using assembly language

Question asked by Peter Mond on Apr 12, 2012
Latest reply on Apr 13, 2012 by bigmac

Hello,

 

How can I know what push button was pressed by the user in assembly language, i.e. how can I know if  the user pressed the button PTA2, PTA3, PTD2 or PTD3? Because I created a code (an interruption) that detects when any push button was pressed but I need to validate what was the button pressed by the user.

 

I'm using the microcontroller MC9S08QE128.

 

Thank you for your help.

Outcomes