I'm using assembly language on the 8051FX120 chipset to which a development board is connected. This development board has 8 LEDs, and 8 push buttons.
The push buttons are connected to Port P1.
The LED's are connected to Port P2
-
I am looking to try and utilize interrupts such that when button P1.0 goes high the interrupt is run.
- Inside the code for the interrupt the code needs to wait for either P1.0 to be push again (and return via RETI to the last program count before the interrupt)
OR
- if P1.1 is pushed then the program should jump to a label and then run the code from there.
OTHERWISE
- the interrupt code will continue to loop until either one of these P1 pins goes high.