setint problem with 14M

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
 
Last edited:

eclectic

Moderator
Peter. A couple of points.

Copied from Manual 2 page 146

Special note - 14M only
Due to the internal port configuration of the 14M only inputs 0,1,2 may be used
for an interrupt condition. Inputs 3 and 4 are ignored durig setint operation.

Secondly, for further assistance, it would be best if you posted both
your circuit and your code.

e.
 

Peter M

Senior Member
Thanks

Well I am a bit thick aren't I, totally missed that note...
thanks very much, that will allow the rest of my hair to stay on my head

I've yet to learn how to post code an cct's, but should be ok now!

cct will need mods to be able to do this, and at present am playing with code snippets (very messy at the moment) to try and improve the response of a current robot design. But looks as though it may need to be rebuilt to utilize this code... more thought needed

Thanks again eclectic.
Peter
 
Top