Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[SOLVED] plz help.i not getting what could be problem.

Status
Not open for further replies.

yasir23

Member level 1
Joined
Mar 2, 2011
Messages
33
Helped
2
Reputation
4
Reaction score
1
Trophy points
1,288
Activity points
1,548
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 89s51 giving high in all the port except p0.
why ?
i m using a very simple coding

org 0000h
setb p2.0
setb p2.1
h1: mov c,p2.0
mov p1.0,c

mov c,p2.1
mov p1.1,c
sjmp h1
end

it should low if p2.0 low so p1.0 should also low. but its give high all the time
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top