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

printf serial port 8051

Hi. Why does TI need to be set before printf is called.

TI = 1;
printf("Hello world\n");


Whereas in assembly TI should be cleared before a char is put in SBUF, so it can be tested to see if the char has been sent

0