nothing.sory.hehe.i've tested my hardware today.it's work man.thanx to you.i modify the above code into:
DEFINE OSC 8
TRISA.1=0
TRISA.2=0
MAIN:
INTCON.4 = 1 ;enable RB0/INT interrupts
INTCON.7 = 1 ;enable all un-masked interrupts
if INTCON.1 = 1 Then ;RB0/INT interrupts occured
goto EDGE
ENDIF
EDGE:
IF OPTION_REG.6=1 then ;interrupt on rising edge
LOW PORTA.1
else
OPTION_REG.6=0 ;interrupt on falling edge
LOW PORTA.2
endif
GOTO MAIN
thanx once again...
Bookmarks