I have a problem with pic16f84a that
when I am burning any progrem it gives me success burning and the Mc doesn't work right its output is all zeros all the time independent on the input I tried a simple code to check if the Mc is working or not the program is to out ones all the time to prortB but also it doesn't work
the code is:
#include <p16f84a.inc>
org 0
goto main
org 0x10
main
bsf status,rp0
clrf portb
bcf status,rp0
movlw 0x7f
movwf portb
goto main
end
After that I changed the chip 3 time
And also I change the burner 2 time
The output is the same in all different cases (all the pins is zero except VDD MCLR')
I am using Mplab & winpic
I asked here can I change the computer or that it is a silly question??
Re: I have a problem with pic16f84a plz help??????????!!!!!!
your controller is in reset state which all the ports are in 0 state.i dont see that u used the TRISB register. configure portb as output by using the instructions:
clr TRISB
by the way u wont see the change unless u r using scope.i can advise u to connect led to one output and serial 500 ohm resistor, and to delete the clr portb instruction.