When program running to "printf()",the PC always stop at
C:0X0A2A 3099FD JNB TI(0X98.1),C:0A2A
ES = 0; //UART INT is Enable before TI = 1; printf("%bd",3); ES = 1;
The program outputs nothing because the interrupt is getting triggered each time TI is set. You can't mix polled and interrupt-driven serial I/O on an 8051. Jon
Catch your words,if enable UART-Interrupt then can't use printf() to poll flag's bit .Can you give me some example about sending data from 8051 with UART Interrupt routine? Thanks.