I have a 08M based application that is intended to just sit there and wait for either user input via IR or an interrupt based on activity on pin 2. Ideally, the program should simply sit at:
but immediately execute the interrupt routine if activity is detected on pin2, which has been configured with:
However, it appears that interrupts aren't served while infrain2 is executing.
Is there a way to poll for IR activity in a loop instead, which should allow the interrupt to be served?
Code:
' Wait for a key.
infrain2
Code:
setint %00000100, %00000100 ' interrupt on pin 2 high
Is there a way to poll for IR activity in a loop instead, which should allow the interrupt to be served?
Last edited: