We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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
"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? "
That is correct - and that is why the examples show that you have to "manually" set TI to kick-off the very first character...
Thanks!!
- I was unsure and was trying to simply drop that in.