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++; }
Conforming putchar() implementations may translate a linefeed character into a CR/LF character pair. Perhaps you want to use something more "raw" than putchar().
The source for putchar() is provided - check it and see!
I found the file in the LIB. So I should just uncomment the lines where they store 0x0D in the SBUF? Because I tried that and still have the same problem....