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

Why is carriage return (0x0D) written to the UART?

I am transferring data from an 8051 to the PC. All 21 bytes of my data is transmitted, but a carriage return is also being transmitted in the middle of my array of data (which I don't want). I noticed the carriage return was written after 8 bytes of data. Any ideas why this is happening? Here is a portion of my MCU code:

while (ss<(ber_packet[0])-1) {
putchar(ber_packet[ss]);
ss++;
}

while(ss<128) {
putchar(0x00);
ss++;
}

0