hi please help
i'm new just learn PIC for 1 week.
i'm currently using pic16f84a to do the LED display.
i want to the LED display and interrupt for 2sec after that LED display agian.
but doesn't work with the PIC i write.
list p=pic16f84a
include p16f84a.inc
__config _hs_osc & _wdt_off & _pwrte_on & _cp_off
errorlevel -302 ;
cblock h'0c'
count1
count2
endc
;**************** Program Start ***********************
org 0
goto start
;**************** Initial Process *********************
start
bsf status,rp0
movlw h'ff'
movwf trisa
clrf trisb
bcf status,rp0
movlw h'ff'
movwf portb
bsf intcon,f
loop
call timer
decfsz count1,f
goto loop
timer
movlw d'2'
movwf count2
end
please help.
i'm new just learn PIC for 1 week.
i'm currently using pic16f84a to do the LED display.
i want to the LED display and interrupt for 2sec after that LED display agian.
but doesn't work with the PIC i write.
list p=pic16f84a
include p16f84a.inc
__config _hs_osc & _wdt_off & _pwrte_on & _cp_off
errorlevel -302 ;
cblock h'0c'
count1
count2
endc
;**************** Program Start ***********************
org 0
goto start
;**************** Initial Process *********************
start
bsf status,rp0
movlw h'ff'
movwf trisa
clrf trisb
bcf status,rp0
movlw h'ff'
movwf portb
bsf intcon,f
loop
call timer
decfsz count1,f
goto loop
timer
movlw d'2'
movwf count2
end
please help.