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

Transmit Interrupt

Greetings,

regarding this link:

http://www.keil.com/support/docs/788.htm

When I attempt to use the putchar the code seems to lock up at the line:

while (!TI_1);

When I comment this out my printf seems to at least transmit at the TXD pin.

Am I correct that at the first call of this putchar, TI_1 will be 0 and the program will never leave this while loop? - since nothing has been sent to sbuf yet.

Can you help clear this up?

Should it be while(!TI) after the sbuf = line.

Sit and wait unit the last bit?

Thanks
Sparky

0