I am using the MC9S08GT32A in conjunction with CW 6.3. This device has a dedicated IRQ pin that is not shared with any GPIO.
Within a C program, I need to detect the current state of the IRQ pin, without generating an interrupt. Using assembly code, I have the BIH and BIL instructions available, which might potentially be used within inline assembly code, But at this moment I am not sure how this would be accomplished.
I wonder if there might be a simpler method, or perhaps an existing library function or macro within CW.
Any suggestions would be welcome.