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
  • In general, on many processors, (example, infineon c166) the hardware sets the ti bit approx when the data bit (or the first stop bit) leaves the shift register. That implies you must 'prime' the output buffer, tbuf.

    An excellent example is Joe Campbell's book on Serial Comm for C programmers.



Reply
  • In general, on many processors, (example, infineon c166) the hardware sets the ti bit approx when the data bit (or the first stop bit) leaves the shift register. That implies you must 'prime' the output buffer, tbuf.

    An excellent example is Joe Campbell's book on Serial Comm for C programmers.



Children
No data