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

Back to Subject List

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


 
#7902 - RE: Serial Port Weird Problem
Dixon,

Besides Hans noted, there are some mistakes in your code.
First, you load bytes from internal RAM, not from ROM.
Second, what does the END pseudo operator do in the body of the program?
Third, (TABLE-LOAD) is not equal (Address(Table)-Address(mov r0,a))

Of course, it is not my business but you have to change your code like this.

ORG 0100H
LOOP: MOV R0,#000H
LOAD: MOV A, #(TABLE - WAIT)
ADD A,R0
MOVC A,@A+PC
WAIT: JNB TI, WAIT
CLR TI
MOV SBUF, A
INC R0
CJNE R0,#005H,LOAD ;It is better
JMP LOOP
TABLE: DB #01H,#03H,#00H,#04H,#0CH
END

Regards,
George


List of 17 messages in thread
TopicAuthorDate
Serial Port Weird Problem            01/01/70 00:00      
RE: Serial Port Weird Problem            01/01/70 00:00      
RE: Serial Port Weird Problem            01/01/70 00:00      
RE: Serial Port Weird Problem            01/01/70 00:00      
RE: Serial Port Weird Problem            01/01/70 00:00      
RE: Serial Port Weird Problem            01/01/70 00:00      
RE: Serial Port Weird Problem            01/01/70 00:00      
RE: Serial Port Weird Problem            01/01/70 00:00      
RE: Serial Port Weird Problem            01/01/70 00:00      
RE: Serial Port Weird Problem            01/01/70 00:00      
RE: Serial Port Weird Problem            01/01/70 00:00      
RE: Serial Port Weird Problem            01/01/70 00:00      
RE: Serial Port Weird Problem            01/01/70 00:00      
RE: Serial Port Weird Problem            01/01/70 00:00      
RE: Serial Port Weird Problem            01/01/70 00:00      
RE: Serial Port Weird Problem            01/01/70 00:00      
RE: Serial Port Weird Problem            01/01/70 00:00      

Back to Subject List