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 12:27
Read: times


 
#1122 - Serial initilizing
Hi everybody!
I tried a little program which initilizing the serial port and sending a value to SBUF in a loop, in order to see the data (stop bit etc.) by a scop.(the scop connected to the TX leg)
the program doesn't work (It works in simulator but not in real).
Can someone tell me what's wrong?
Thanx

Here is the program:
I am working with 11.059MHz Crystal
The baudrate is 9600
and the serial is in mode1


org 0
jmp init
org 100h
init: mov a,#33d
mov IE,#00011000b;
mov IP,#0
clr TR1
clr TF1
mov TH1,#253d
mov TL1,#253d
mov TMOD,#00100000b
mov SCON,#01011100b
setb TR1
cout: jnb TI,cout
clr TI
mov SBUF,a
jmp cout
end

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