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

How can I use putchar while I have to handle incomming bytes

Hi, I have a serial ISR that reads and interprets incomming data but also I have to put data to serial port. the problem is putchar needs TI to be set and TI triggers serial interrupt. what is the usual solution in such situation. well I can reset ES to 0 just before putchar and set it to 1 after that but then I may loose some data???

thank you very much

0