well thats exctly what i needed. thank you very much.
i was trying to run a chunk of code only when portb.0, on my 16f73 configured and set as an input, read a rising edge signal. as ingvar has shown i can use interrupts.
'this part is only run once at the top of my program'
OPTION_REG.6 = 1 ' rising edge
INTCON.1 = 0 ' reset the interruptflag
'this part is contained in a loop'
IF INTCON.1 = 1 THEN
INTCON.1 = 0 ' reset the interruptflag
' your code
ENDIF
Bookmarks