yasir23
Member level 1
the is simple ckt for checking the behavior of microcontroller
my controller is not giving proper response. if EA=1 so stuck. if EA=open so its response. as well as if i connect capacitors to XTAL so its not give response. using RST button. it work little.see my image.
i choose for RST is 10uf and 8.2k.
delay in coding for remove bounce effect of switch.
the theme of my project if button press. so led grow. otherwise not.
i check the voltage in port. so it gives all the time high voltage.
what could be problem ???????????
my coding
ORG 0000h
SETB P2.0
SETB P2.1
loop1:
JB P2.0,loop1
mov R7,#255
deb1_loop1:
JB P2.0,loop1
djnz R7,deb1_loop1
CLR P2.1
loop2:
JNB P2.0,loop2
SETB P2.1
AJMP loop1
end
https://obrazki.elektroda.pl/67_1319457188.jpg
my controller is not giving proper response. if EA=1 so stuck. if EA=open so its response. as well as if i connect capacitors to XTAL so its not give response. using RST button. it work little.see my image.
i choose for RST is 10uf and 8.2k.
delay in coding for remove bounce effect of switch.
the theme of my project if button press. so led grow. otherwise not.
i check the voltage in port. so it gives all the time high voltage.
what could be problem ???????????
my coding
ORG 0000h
SETB P2.0
SETB P2.1
loop1:
JB P2.0,loop1
mov R7,#255
deb1_loop1:
JB P2.0,loop1
djnz R7,deb1_loop1
CLR P2.1
loop2:
JNB P2.0,loop2
SETB P2.1
AJMP loop1
end
https://obrazki.elektroda.pl/67_1319457188.jpg