I'm not sure if this is what you're looking for. I think there should be an END statement just above the Delay routine or a GOTO loop if you want to repeat the sequence.
Code:movwf LEDPORT call Delay call Delay bcf LEDPORTA0, LEDA0 ; RA0 off END ; if you want to stop right here GOTO loop ; if you want to repeat some section of code. Ofcourse you have to ; put the label 'loop' where you want it. ;------------------------------------------------------------------------------------- Delay movlw d'250' ;delay 250 ms (4 MHz clock) movwf count1




Bookmarks