Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

Software interrrupt from digital I/O Line

I want to generate an software interrupt based on the status of a digital io input. IE when a input goes high, execute some code. Is this possible and can someone point me to any examples.

Thanks,
Bill F
0 Kudos
Message 1 of 2
(2,945 Views)
Bill,
There currently is not a way to generate a software interrupt based on the status of a digital line. The best option is to poll the digital line (in a tight loop) and check the value of that line in each iteration of the loop. Then execute (or don't execute) your code based on the value you read.
-Alan A.
0 Kudos
Message 2 of 2
(2,937 Views)