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

Problem With Putchar

I am having a slight Problem with the putchar function .
when i say putchar(0x0A)
it put 0x0D & 0x0A both
but i only need 0x0A
i tried writing putchar myself but dose not seem to work
what i did was

void putbyte(char mydata)
{
while(!TI)
{
TI=0;
SBUF=mydata;
}
}

please point out the mistake and any other way to solve my problem

0