i have programed HEX file(LED flickering HEX was downloaded from web. Had verified with simulation software, it works) into the PIC16F84A chip.
After assembling the circuit, the LED lights up but did not blink. Could it be bad IC?
Have tried programed another HEX file into chip but this time no looping in the program what the program does is to detect a high on portA pin 1, and if detected it light up the LED on portB pin 1. For this HEX file it works.
From the above experiment i found that whenever i burn a program which involve braching (loop, call, goto) instruct. the program will run and halt at branching intruction. for example
org 0x00
bsf status,5
clrf trisb
bcf status,5
start
movlw 0xff
movwf portb
call delay
clrf portb
call delay
goto start
end
So for above program, i see all led light up at portb, but did not blink. Anyone experience the same problem or has a solution.
Thanks in advance
After assembling the circuit, the LED lights up but did not blink. Could it be bad IC?
Have tried programed another HEX file into chip but this time no looping in the program what the program does is to detect a high on portA pin 1, and if detected it light up the LED on portB pin 1. For this HEX file it works.
From the above experiment i found that whenever i burn a program which involve braching (loop, call, goto) instruct. the program will run and halt at branching intruction. for example
org 0x00
bsf status,5
clrf trisb
bcf status,5
start
movlw 0xff
movwf portb
call delay
clrf portb
call delay
goto start
end
So for above program, i see all led light up at portb, but did not blink. Anyone experience the same problem or has a solution.
Thanks in advance