mainloop:
movlw b'000001' ; load port c with 000001
movwf 07h
; timing delay >
movlw d'3' ; load W with dec 3
loop2 movwf v1 ; move whatever is in W to v1
movlw b'000010'
movwf 07h ; load portc with 000010 - this happens after just the odd millisecond
; timing delay>
decfsz v1,f ; decf v1
goto loop2 ; goto 2 if not zero - whatever is in W with then go into loop2
goto mainloop
end
;suggest your code is more list time
bcf STATUS ,RP0 ; ensure bank 0 selected
bcf STATUS ,RP1
main movlw b'00000001' ; load all 8 bits
movwf PORTC ; Turn on bit 0 of PortC - use the registers names - its easier than trying to use numbers
movlw d'255' ; load v1 with 255 to create a little delay
movwf v1
loop2 decfsz v1,f ; dec v1
goto loop2 ; loop 255 times
goto main