hi guys i need some help/advise i carnt seem to get anything working on my program, my program is to turn an led on then turn it off after a set period of time, in this case about 1 second but unfortunately i carnt seem to make my pin go low or set to input, can any one help is it me or what am i doing something wrong?? ive tried looking at other codes that work but no help, any one got any ideas????
this is my code:
Mainloop
bsf STATUS, RP0 ;select bank 1
bcf TRISIO, led
bcf STATUS, RP0 ;select bank 0
clrf Datareg1
movlw 0x64
movwf Datareg1
bsf GPIO, led
loop1
pause1
call Delay
decfsz Datareg1
goto pause1
clrf Datareg1
movlw 0x64
movwf Datareg1
bcf GPIO, led
pause2
call Delay
decfsz Datareg1
goto pause2
clrf Datareg1
movlw 0x64
movwf Datareg1
bsf GPIO, led
goto loop1