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

Back to Subject List

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


 
Msg Score: +1
 +1 Good Question
#72543 - Serial mess
hey

Probalbly the first reaction will be: "search the forum". I did and I can't find an answer I can deal with.
I've got this proplem:
I'm starting to do serial communication between my PC and my 8052, so I wrote is basic program witch should put a received signal on P1, but all it does is set th port to 00h nomatter what number I writ to it.

I'm using an atmerl AT89S8252 with 11.0592 MHz x-tal on an electors board with MAX232

does anyone know what I'm doing wrong??

Main	acall	Init		; initialise
run	jnb	RI,	$	; Wait for  RI flag
	mov	A,	SBUF	; Read character
	mov	P1,	A	; move acc to P1
	clr	RI
	sjmp	run
	.end


Init    mov	SCON,	#10011100b	;
	mov	TH1,	#254
	ret			; return


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