Hi! I have this in my code for to write in serial port:
while(!TXRX_is_TI_active()); SBUF=b; TXRX_clearTI();
but for to work,i need initialize TI flag . Is OK or is better to change it?
Thanks
How much example code have you looked at? Almost all example code perform serial communication, so there is a lot of sample code to look at...
Start here: http://www.keil.com/support/man/docs/uv3/uv3_ex_hello.htm
Sorry, but my question was because in my project the TI flag stay active and i think that it can be a problem to real comunication.
Thanks for the answer.
That has nothing to do with your project - that is the way that the 8051 hardware works!
"i think that it can be a problem to real comunication"
Not at all - as already noted, plenty of projects manage to use the 8051's UART perfectly adequately!
yes i have confirmed .there is a bug and the communication does not work
Better fix it, then!