interrupt using 28X2

LED Maestro

Senior Member
Hello again,
I am having trouble with setint commands. I am using a 28X2 and want the interrupt command to activate when B.1 = 1. I thought this would work
Code:
setint %00000010,%00000010

LEDon: pause 1500
 do if pinb.2 = 1 then
high d.7 goto LEDon
else loop endif

interrupt:
high b.4
if pinb.1 = 1 then interrupt
setint %00000010,%00000010
low b.4
return
but that, I found, only goes to interrupt when C.1 = 1. I have looked through the manuals and cant find anything of much help.
If I could have some pointers, I would be very grateful
Thanks,
 

MartinM57

Moderator
Manual 2 page ~215

Additional options for X2 parts:
SETINT input,mask,port
SETINT NOT input,mask,port
- input is a variable/constant (0-255) which specifies input condition.
- mask is variable/constant (0-255) which specifies the mask
- port is the X2 port (A,B,C,D)
 
Top