Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
08/27/02 20:09
Read: times


 
#28008 - Serial Program for 89C51 not responding
Hi all,

HAPPY BIRTHDAY 8052.COM...

This question_bank is back with his next question...a serial communications problem...
For a start, I entered "Serial Communication" in the forum search and it returned me 538 links. I tried a few of them though (as many as 15-20)but none were rewarding... So, I decided to hit the question straight...
I wrote a program that just sends about 32bytes of data (Nothing else) as soon as it is started. This is the only program loaded in thechip.Kindly suggest where I am wrong. I connected the system to a PC and ran Hyper Terminal to capture the output but it remains blank for as long as I switch it on

Here is the code.. (written in 8051 IDE from ACEBUS).

Code:
==========================================
DB COUNTER
THVAL EQU 0FDH
ORG 0000H
AJMP 0100H
ORG 0023H
JBC TI,TMT
RETI
TMT:
DJNZ COUNTER,NEXT
CLR TR1
AJMP R
NEXT: INC DPTR
MOVX A,@DPTR
MOV SBUF,A
R: RET

ORG 0100H
MOV COUNTER,#20H
MOV SP,#50H
MOV DPTR,#STR

MOV SCON,#74H
MOV PCON,#00H
MOV IE,#98H
MOV IP,#18H
MOV TCON,#00H
MOV TMOD,#20H
MOV TH1,#THVAL
MOV TL1,#THVAL

SETB SCON.6
MOVX A,@DPTR
MOV SBUF,A

STR: DB 'WELCOME TO 8052.COM AND MY PAGE.',0

END


Thank You,
REgards,
Sriharsha.

List of 13 messages in thread
TopicAuthorDate
Serial Program for 89C51 not responding            01/01/70 00:00      
RE: Serial Program for 89C51 not responding            01/01/70 00:00      
RE: Serial Program for 89C51 not responding            01/01/70 00:00      
Are\\\'nt they correct??            01/01/70 00:00      
89C51 in Normal Mode??            01/01/70 00:00      
RE: Addendum to Dan\'s message            01/01/70 00:00      
RE: Addendum to Dan\\\'s message            01/01/70 00:00      
RE: Addendum to Dan\\\\\\\'s message            01/01/70 00:00      
Addendum to my message ;-)            01/01/70 00:00      
RE: Are\\\\\\\'nt they correct??            01/01/70 00:00      
RE: Addendum to my message ;-)            01/01/70 00:00      
RE: Addendum to my message ;-)            01/01/70 00:00      
RE: Addendum to my message ;-)            01/01/70 00:00      

Back to Subject List