This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Serial I/O interrupt

Hi, gentlemen,

I am a 8051 starter. One simple question: I am trying to use a interrupt driven serial I/O. Will a writing operation to SBUF set TI to high, or in the other way, to set TI will trigger to transmit the contents of SBUF?

Thanks in advance!!

Parents
  • By the way, there is a potential problem with the 8051's TI bit in that it tells you the data byte has been sent while it is still signalling the stop bit. It is possible to stuff a char into SBUF so quickly that the next char's start bit truncates the previous char's stop bit causing the receiving UART to flag a framing error. Just be on your toes for this.

    - Mark

Reply
  • By the way, there is a potential problem with the 8051's TI bit in that it tells you the data byte has been sent while it is still signalling the stop bit. It is possible to stuff a char into SBUF so quickly that the next char's start bit truncates the previous char's stop bit causing the receiving UART to flag a framing error. Just be on your toes for this.

    - Mark

Children
No data