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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/03/00 14:44
Read: times


 
#1123 - RE: Serial initilizing
Dear friend there are a lot of errors in your code. First u set IE.4,3 and IE.7 (enable all) is clear. You don't need interrupts to transmit a byte at TX pin try this AND COMPARE IT WITH YOUR CODE

org 0000h
ljmp init
org 0100h
init: mov a,#33
MOV SCON,#50h ;mode 1
MOV TMOD,#20H ;timer1 in mode 2
MOV TH1,#0FDH
ORL PCON,#00H
SETB TR1
CLR TI
LOOP: MOV SBUF,A
JNB TI,$
CLR TI
SJMP LOOP
END


TH1={256-(Kxfosc)/(384xBAUD RATE)}
SMOD (PCON.7) =0 =>K=1
SMOD =1 => K=2
fosc =11.0592MHz
B.R=9600BPS

GOOD LUCK
B.X


List of 5 messages in thread
TopicAuthorDate
Serial initilizing            01/01/70 00:00      
RE: Serial initilizing            01/01/70 00:00      
RE: Serial initilizing            01/01/70 00:00      
RE: Serial initilizing (sorry)            01/01/70 00:00      
RE: Serial initilizing (ur 1st example was ok)            01/01/70 00:00      

Back to Subject List