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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
06/19/04 19:19
Read: times


 
#72798 - RE: Serial mess
Responding to: ???'s previous message
hey hey

-andy I did read the tutorial, with little succes, I find it a bit confusing (I'm not a computer programmer but a fysisit)
-as a reply for eric, TB8 and RB8, no idea, still don't quite know what they are.
-for igor, thanx for the code but what does it do?? calculating the baudrate 3 times?

(and btw what does the thumbs up thing mean?)

my program should wordk at a baudrate of 14k4 (14.400), made by timer one, and TB8 and TR8 do not have to be set I conclude so SCON shoul become 01010000b (50h / 80). please correct me if I'm wrong (again).

I guess my code shoul be something like this?
#include 8051.H
         .org 0000H

Main	acall	Init		; initialise
run	jnb	RI,	$	; Wait RI flag
	mov	A,	SBUF	; Reade serial port
	mov	P1,	A	; move acc to P3
	clr	RI
	sjmp	run
	.end


Init	mov	TMOD,#20h 	;Timer 1 Auto-reload 
	mov	SCON,	#01010000b	
	mov	TH1,	#254
	setb	TR1		;start timer
	ret			; return


I cant test it right now (ran out of uC's) but does it seem promiiscing to you?

Thanx

PS
Igor please use PRE and /PRE HTML tags around your code for a better view


List of 12 messages in thread
TopicAuthorDate
Serial mess            01/01/70 00:00      
   RE: Serial mess            01/01/70 00:00      
   RE: Serial mess            01/01/70 00:00      
   RE: Serial mess            01/01/70 00:00      
   RE: Serial mess            01/01/70 00:00      
      RE: Serial mess            01/01/70 00:00      
         RE: Serial mess            01/01/70 00:00      
            RE: Serial mess            01/01/70 00:00      
   RE: Serial mess            01/01/70 00:00      
      RE: Serial mess            01/01/70 00:00      
         RE: Serial mess            01/01/70 00:00      
         RE: Serial mess            01/01/70 00:00      

Back to Subject List