| ??? 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 |
| Topic | Author | Date |
| 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 |



