Need help with interrupt - 08M2

hbl2013

Senior Member
I like to use Port 3 (C.3) of the 08M2 as an interrupt, and have on the Port (pin 4) a 4K7 to Vcc and a N-O Push Button to ground.
To activate the interrupt, I use the following statement:

setint %00000000 %00001000.

My problem is the syntax, I can not get this statement right. Besides the shown one, any other combination, like setint AND %00000000 %00001000., or setint NOT %00000000 %00001000., gives me syntax errors.

What is the right statement in this case? Any comments are appreciated.
 

neiltechspec

Senior Member
Assume you have defined your interrupt label (what you want to happen when button is pushed).

In the simulator, it works for me - pulsout on C.4 (pin3) when button is pushed on C.3 (pin 4).
 

neiltechspec

Senior Member
I assumed you would have included the comma, as per the manual.

Although, I have made dafter mistakes myself - putting brackets in the wrong place on a 'serin' being one of them.
 

hbl2013

Senior Member
Checked my program, and yes, I forgot the comma! Sorry you guys, false alarm! Thanks for pointing this out, I will be more careful next time.
 
Top