Peter M
Senior Member
I am writing code for a robot and have been having problems with the SETINT comand. I beleive that this should work (does in the simulator) to trigger an interupt when pin3 goes low?
> setint %00000000, %00001000
I have checked its the right pin in hardware even in software as it works when I substitute this line (but not realy suitable for the code performance)
> if pin3=0 then interrupt
but strangely it triggers on pin3 (and on pin 2) when I use this line
> setint %00000000, %00000100
theres a couple of other strange things going on in my code as well that all work flawlessly on the simulator
Thanks Peter
> setint %00000000, %00001000
I have checked its the right pin in hardware even in software as it works when I substitute this line (but not realy suitable for the code performance)
> if pin3=0 then interrupt
but strangely it triggers on pin3 (and on pin 2) when I use this line
> setint %00000000, %00000100
theres a couple of other strange things going on in my code as well that all work flawlessly on the simulator
Thanks Peter
Last edited: