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] Problem in serial communication in 8051

Status
Not open for further replies.

raul260291

Junior Member level 1
Joined
Jul 1, 2011
Messages
16
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,389
Hi Firends,
I am working for project which uses the serial communication using 8051.
I used the keil software to write the program and it simulates well in the KEIL.
Coming to Proteus, the output differs from the expected one.
please help me...

This is the prototype program to glow the LED for a particular key.

MOV TMOD,#20H
MOV TH1,#-3
MOV SCON,#50H
SETB TR1
THER:
MOV P1,#00H
CLR RI
RPT: JNB RI,RPT
MOV A,SBUF
MOV R3,A
CLK: CJNE R3,#31H,ANTI_CLK
SETB P1.4
ACALL DELAY
SJMP THER
ANTI_CLK: CJNE R3,#32H,STOP
SETB P1.2
ACALL DELAY
SJMP THER
STOP: CJNE R3,#30H,ILLEGAL
SETB P1.0
ACALL DELAY
SJMP THER
ILLEGAL:SETB P1.6
ACALL DELAY
SJMP THER
DELAY:
MOV R5,#255
HERE1:MOV R4,#255
HERE:MOV R2,#255
HERE2:DJNZ R2,HERE2
DJNZ R4,HERE
DJNZ R5,HERE1
RET
END

The above program works well in the KEIL but not in Proteus.
Here is the hardware DESIGN picture. please tell if there are any wrong hardware connections
 

Attachments

  • Fullscreen capture 7262011 103304 PM.bmp
    2.9 MB · Views: 106

Can anyone attach the schemantec for serial communication.
please.........
 

yes,It is 9600. Is my schemantec correct or are there any mistakes?
 

Guys I found the mistake I've done in this project. I kept on changing the baud rates and then clock frequencies and got it worked for 11.0592MHz with 9600 baud.
Thanks to bigdogguru for your replies and help..
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top