I have this at the input UART
if(LPC_UART2->LSR & 0x01) { // Receive Data Ready
SData[i++]=LPC_UART2->RBR;
}
and this at the output UART
while (!(LPC_UART2->LSR & 0x20)); // TX ready
LPC_UART2->THR = ch;
return (ch);
Notice that the data is missing the CR and LF which I have sent in.
