cadvis
Junior Member level 1
Hi,
Iam trying to simulate pic code ( and many other program) using 'Real pic Simulator' but results are not coiming out as iam expecting. following program is to on and off LED for 5 sec. but software shows only on LED not getting it off after 5 sec. any help?
Secondly Recomend any good pic tutorial Website and code simulation software.
Iam trying to simulate pic code ( and many other program) using 'Real pic Simulator' but results are not coiming out as iam expecting. following program is to on and off LED for 5 sec. but software shows only on LED not getting it off after 5 sec. any help?
;Equates
TMR0 equ 01h
STATUS equ 03h
TRISA equ 85h
PORTA equ 05h
OPTION_REG equ 81h
COUNT1 equ 08h
COUNT2 equ 09h
;************************************************* ******************************
bsf 03h,5
movlw b'00000010'
movwf 85h
bcf 03h,5
movlw b'00000111'
movwf 81h
movlw 01h
start:
xorwf 05h
call delay
goto start
call delay
delay:
loopA:
clrf TMR0
movf 01h
sublw .160
btfss 03h,2
goto loopA
retlw 0
end
Secondly Recomend any good pic tutorial Website and code simulation software.