UART Buffer | Cypress Semiconductor
I'm using the PSoC 3 UART function and seem to be having problems getting the data in a simple application.
If I am using a terminal window to type characters, everything works fine but if I programmatically send a string, it appears that the FIFO wraps around and the LF winds up in the first character in the buffer.
What I tried to do is read the status to see when a character comes in (UART_1_RX_STS_FIFO_NOTEMPTY), then go into a loop almost identical to the example in the datasheet.that takes all the characters until the CR-LF. .
I have put a UART_1_GetRxBufferSize() to see if more than one character has arrived but I never see more than one at a time.
Any ideas to prevent me from days of hacking and guessing?