Hi Darrel,

I have been using your wonderful instant interrupts routine, i have experienced a hiccup and cannot work out what I am doing wrong.

I wonder anybody may be able to help direct me to a solution.

I am using a 18F4520 with 2.5 and masm401. I have checked that I have your latest version which I beleive to be 3.2 (dated 28/8/07).

when I compile the following code:

define OSC 16
INCLUDE "DT_INTS-18.bas"
INCLUDE "ReEnterPBP-18.bas" ; Include if using PBP interrupts
ASM
INT_LIST macro ; IntSource, Label, Type, ResetFlag?
INT_Handler CMP1_INT, _HopOut, PBP, yes
endm
INT_CREATE ; Creates the interrupt processor
ENDASM

TRISA = %00111111'
TRISD = %00000000
Z var bit
x var byte
CMCON = %00000010
@ INT_ENABLE CMP1_INT
Start:
PORTD.4 = 0
z = 0
Waiting:
if z = 0 then waiting

for x = 1 to 20
pause 50
toggle PORTD.4
next x
goto start

HopOut:
z = 1
@ INT_RETURN

end


I recieve the following complie errors



Error[128]........: Missing argument(s)
Error[113]........: Symbol not previously defined(IntFlagReg)
Error[113]........: Symbol not previously defined(IntFlagBit)
Error[113]........: Symbol not previously defined(IntFlagReg)
Error[113]........: Symbol not previously defined(IntFlagBit)
Error[101]........: ERRORInterrupt Source(IntFlagReg,IntFlagBit)not found)
Error[128]........: Missing argument(s)
Error[101]........: ERRORINT_ENABLE -Interupt Source not Found!)


If I change the CMP1 to CMP2 I receive errors

If I change the CMP1 to CMP then it compiles okay.

Any thoughts... should I be looking to set the registers manually maybe? I was planning to use both comparators independantly.

Thanks