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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
05/10/03 23:36
Read: times


 
#45207 - RE: Serial Port too quick
Responding to: ???'s previous message
This is a pretty simple problem.. You keep writing characters to SBUF before they are completely sent. Your routine SendACC doesn't know when a character is in the process of being transmitted--the subroutine just overwrites the current value in the USART's shift register.

An easy fix is to not use a serial ISR for the sender. Just send characters the same way you receive them:

MOV A,SBUF
SENDACC_WAIT:
JNB TI,SENDACC_WAIT
CLR TI

If you need to use a serial ISR, maybe someone else has good suggestions. I can only suggest a send buffer, perhaps there is an easier way.

- Lee

List of 3 messages in thread
TopicAuthorDate
Serial Port too quick            01/01/70 00:00      
   RE: Serial Port too quick            01/01/70 00:00      
      RE: Serial Port too quick            01/01/70 00:00      

Back to Subject List