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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
03/03/09 04:42
Read: times


 
#163009 - no luck
Responding to: ???'s previous message
Thank you very much for the reply. I have tried numerous types of loops including yours and haven't had much luck. Using the code below, I get some odd results. Hopefully someone can shed some light on the problem.


$MOD831
CSEG

ORG 0000h
	LJMP BEGIN
ORG 40h

BEGIN:
	MOV SCON,#50h
	MOV TMOD,#20h
	MOV TH1,#253
	SETB TR1

TEST:
	CLR TI
	MOV SBUF,#'a'
	JNB TI,$
	LJMP TEST

 


Using the above code, I get a '=' in HyperTerm instead of an 'a'. Replacing the 'a' with 'A' yields a '}'. However, replacing the 'a' with a 'U' yields a 'U' like it should in HyperTerm.

The character I receive repeats every time I try it so I would tend to think it's not a noise issue. I have the baudrate set to 9600, 8 bits, 1 stop bit, and no flow control in HyperTerminal and believe I have the same settings in the above code. What am I missing here?

Confused as ever,
Brian


List of 23 messages in thread
TopicAuthorDate
serial comm problem            01/01/70 00:00      
   what about TI?            01/01/70 00:00      
      thank you            01/01/70 00:00      
         Be better...            01/01/70 00:00      
            no luck            01/01/70 00:00      
               Settings            01/01/70 00:00      
               What is your XTAL frequency ?            01/01/70 00:00      
                  parity and XTAL            01/01/70 00:00      
                     Eh ?            01/01/70 00:00      
                        one or the other            01/01/70 00:00      
                           my mistake            01/01/70 00:00      
                           scope pictures            01/01/70 00:00      
                              whatizit?            01/01/70 00:00      
                                 where I measured it...            01/01/70 00:00      
                                    waveforms look OK            01/01/70 00:00      
                                       question            01/01/70 00:00      
                                          LSBit comes first after startbit            01/01/70 00:00      
                                       cable            01/01/70 00:00      
                                          isolation and ESD protection            01/01/70 00:00      
                                             I have blown very few, if any, MAX232's            01/01/70 00:00      
                              Your scope trace looks normal            01/01/70 00:00      
                                 more pics            01/01/70 00:00      
                                    show picture at PC side            01/01/70 00:00      

Back to Subject List