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!!
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.