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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
07/17/08 21:24
Read: times


 
#156814 - Program works
Responding to: ???'s previous message
Alan,

I just assembled your program and ran it. It works.

	ORG	0H
	JMP	START
	ORG	40H
START:
	MOV	44H,#055H		;MSD
	MOV	43h,#055H		;LSD
	CALL	SNDWNOW
	JMP	START
SNDWNOW:
	MOV	SCON,#01000000B
	MOV	TH1,#0FDH
	MOV	TMOD,#00100000B
	CLR	RI			;NO RX COMM
	SETB	TR1			;TURN ON BAUD RATE TIMER
;
	MOV	SBUF,#2AH		;SEND "*"
	CALL	TSWAIT
	MOV	SBUF,#57H		;SEND "W"
	CALL	TSWAIT
	MOV	SBUF,44H		;SEND MSD OF DATA
	CALL	TSWAIT
	MOV	SBUF,43H		;SEND LSD OF data
	CALL	TSWAIT
	MOV	SBUF,#0DH		;SEND "CR"
	CALL	TSWAIT
	MOV	SBUF,#0AH		;SEND "LF"
	CALL	TSWAIT
	RET
;
;
TSWAIT:	JNB	TI,TSWAIT
	CLR	TI
	RET
;
;
END

 



It's got to be hardware.

Jon


List of 32 messages in thread
TopicAuthorDate
SCON code question - data not seen            01/01/70 00:00      
   do you use a proper level convertor?            01/01/70 00:00      
      new cable            01/01/70 00:00      
   two different lever convertors            01/01/70 00:00      
   Check pins on cable            01/01/70 00:00      
      the cable appears to be correct            01/01/70 00:00      
   is data correct on the scope?            01/01/70 00:00      
      analog -vs- DSO            01/01/70 00:00      
         Triangular??            01/01/70 00:00      
         analog scope            01/01/70 00:00      
            oops - use 0x55            01/01/70 00:00      
   check Flow Control            01/01/70 00:00      
   Basics            01/01/70 00:00      
      Thanks Jon            01/01/70 00:00      
   Program works            01/01/70 00:00      
      feed through that wasn't            01/01/70 00:00      
         Correct spelling            01/01/70 00:00      
            just for the numbers or all characters?            01/01/70 00:00      
               In your case, to all            01/01/70 00:00      
                  fixed and not fixed            01/01/70 00:00      
                     not in that code            01/01/70 00:00      
   read mov data, data instruction            01/01/70 00:00      
      biblical            01/01/70 00:00      
         mov direct, direct instruction            01/01/70 00:00      
            to solve this            01/01/70 00:00      
            We talk of mnemonics            01/01/70 00:00      
               what matters is inside mcu            01/01/70 00:00      
                  The manufacturer defines            01/01/70 00:00      
                     Motorola versus Intel            01/01/70 00:00      
                  amateurs might hve some such, but no ..            01/01/70 00:00      
                     the assembler I use            01/01/70 00:00      
            no, it will not            01/01/70 00:00      

Back to Subject List