interrupt command with variable input

-D-

New Member
Hey,

what I'm trying to do is get an interrupt command using a variable input, at the moment i only know how to do it if there is a digital input, when it is simply.

setint %10000000, %10000000

but lets say i what it to interrupt when a variable b1 > x how wld i write the code?

thx
-D-
 

hippy

Ex-Staff (retired)
Unfortunately you cannot, the PICAXE doesn't have the ability to do that.

The only options you really have are to test the variable in code and call a routine when the condition is met, or add an interrupt which fires on a regular basis and check the variable's value within that.
 
Top