I have successfuly programmed LED flashing programme with those normal codes (MOV and all that..) now, I'm trying this XOR one but, don't understand why this is not working.
Rich (BB code):
list p=16f690
#include<p16f690.inc>
#define LED PORTC,0;Define pin 0 of port c as LED
__CONFIG _MCLRE_ON & _CP_OFF & _WDT_OFF & _INTRC_OSC_NOCLKOUT
ERRORLEVEL -302
TEMP_VAR UDATA
temp RES 1
delay1 RES 1;reserves 1 byte for delay1
delay2 RES 1;reserves 1 byte for delay2
;*******************************************************************
Main:;Main programme begains
CODE 0x05; Start address at 0x05
Setpins:; Select output and input
bsf STATUS,RP0 ;Switch to bank 1
movlw b'11110';MOVe 11110 to W
movwf TRISC ;set pin 0 of PORT C as output
bcf STATUS,RP0 ;Switch back to bank 0
movlw b'00001';MOVe 00001 to W
Start:
xorwf LED
call Loop
call Loop
goto Start
Loop:
decfsz delay1,1
goto Loop
decfsz delay2,1
goto Loop
return
END