Hi All I am using following putchar routine.
void srl_putchar(unsigned char send) { SBUF = send; while (!TI); TI = 0; }
printf("%c%c",dle,etx);
Your putchar does things in a different order than the putchar that printf uses. The Keil putchar does things in this order.
while (!TI); TI = 0; SBUF = c;
I tried in given order.things worked.Thanks.
I tried in given order.things worked.Thanks jon.