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

Back to Subject List

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


 
#118878 - problem solved...Question is still there
Responding to: ???'s previous message
Question is still there why it not block further burst of "LLLL...."

Thanks JW & Erick,
I replace the JNB TI,$ with ACALL DELAY .It is working fine,it each the data back.every thing is working.

Erik Bible's reference serves very well......keep it up

CODE here
My opology, I am not addeding comment to this

ORG 0
			LJMP MAIN
			
			ORG 23H
			LJMP SERIAL
			
ORG 30H

MAIN:		MOV P1,#0FFH
			MOV TMOD,#20H
			MOV TH1,#0FAH
			MOV SCON,#50H
			MOV IE,#10010000B ;only serial 
			SETB TR1
			MOV R0,#'L'

BACK:		
			CPL P1.2
			MOV A,R0
			MOV SBUF,A
                      //JNB TI,$   
			ACALL DELAY 

AGN:		INC	R3
			ACALL DELAY
			ACALL DELAY
			ACALL DELAY 
			ACALL DELAY
			CJNE R3,#0FFH,AGN
			
			MOV R3,#00H
			SJMP BACK			
			
;;;;;;;;;;;;;;;;;;SERIAL ISR;;;;;;;;;;;;;;;;;;;;;;
SERIAL:		
			
			JNB RI,TRANS
			ACALL DELAY
			MOV A,SBUF
			CLR RI
			MOV R0,A
			JB TI,TRANS
			RETI	
			
			
TRANS:		CLR TI
			RETI


;;;;;;;;;;;;;;;;;;;DELAY;;;;;;;;;;;;;;;
DELAY:		MOV R1,#00H
AGAIN:		INC R1
			CJNE R1,#0FH,AGAIN
			RET
			
END



List of 29 messages in thread
TopicAuthorDate
PC sending Not Received at MCU            01/01/70 00:00      
   pin numbers are meaningless ...            01/01/70 00:00      
   back to the roots            01/01/70 00:00      
      Sorry, All helper            01/01/70 00:00      
         as usual            01/01/70 00:00      
            PACKAGES            01/01/70 00:00      
               Oscillator Speed            01/01/70 00:00      
                  Oscillator is 11.0592MHZ            01/01/70 00:00      
               PACKAGES            01/01/70 00:00      
               DB9 is probably not what you use!            01/01/70 00:00      
   Use terminal program            01/01/70 00:00      
   if PC send nothing you should get 'LLLLL            01/01/70 00:00      
      'LLLL' untill PC send something            01/01/70 00:00      
   Pinnacle 52            01/01/70 00:00      
      Yes, Its working in Pinnacle52            01/01/70 00:00      
         Did you try with a terminal program?            01/01/70 00:00      
            Terminal program......            01/01/70 00:00      
               No need ... now.            01/01/70 00:00      
   Try this            01/01/70 00:00      
   the solution            01/01/70 00:00      
      which I'm sure you would if it had been            01/01/70 00:00      
      But why it still bursting 'LLLLLLLLLL.."            01/01/70 00:00      
         problem solved...Question is still there            01/01/70 00:00      
            Question is still there and comments are            01/01/70 00:00      
               which question?            01/01/70 00:00      
                  posted by Ali jus above - no comments            01/01/70 00:00      
                     details            01/01/70 00:00      
            Problem solved. Really?            01/01/70 00:00      
               Oh yes,Delay is just for testing            01/01/70 00:00      

Back to Subject List