Thanks Ryan, I downloaded the files and it looks interesting but I don't have a clue what to do with them. Right now I need an interrupt and am looking for an easy fix. This is my program, it is a sequencer and the sequence works ok as long as the interrupt routine is not there. When the interrupt routine is there (ON INTERRUPT commented out), all the portb outputs are stuck low.

REM PORT B ARE OUTPUT, INTERCEPT ON PORTA.1
CMCON = %00001101 'COMPARATOR 2 USED, C1 DISABLED
VRCON = %11101100 'VREF ENABLED, OUTPUT ON RA2(PIN1), V = 2.5V

TRISA = %00000010 'PORTA.1 IS STOP INPUT
TRISB = %00000000 'ALL OUTPUTS

'ON INTERRUPT GOTO STOPSUB
STOPSUB:
WHILE PORTA.1 = 0 : STOP : WEND
RESUME

REM SET OUTPUTS HIGH INITIALLY
HIGH PORTB.0 : HIGH PORTB.1 : HIGH PORTB.2 : HIGH PORTB.3
HIGH PORTB.4 : HIGH PORTB.5 : HIGH PORTB.6 : HIGH PORTB.7

START:
LOW PORTB.0 : PAUSE 5000 : HIGH PORTB.0
LOW PORTB.1 : PAUSE 5000 : HIGH PORTB.1
LOW PORTB.2 : PAUSE 5000 : HIGH PORTB.2
LOW PORTB.3 : PAUSE 5000 : HIGH PORTB.3
LOW PORTB.4 : PAUSE 5000 : HIGH PORTB.4
LOW PORTB.5 : PAUSE 5000 : HIGH PORTB.5
LOW PORTB.6 : PAUSE 5000 : HIGH PORTB.6
LOW PORTB.7 : PAUSE 5000 : HIGH PORTB.7
GOTO START
END