Hello everyone,
I have one question regarding UART receiving data. For this project, I have a Win App which connects to the serial port and transmits and receives data from one side, and on the other the side I have Tiva Launch Board with TM4C1294NCPDT. I adjusted example from UART peripheral to get Tiva receive chars on interrupt and perform reading and echoing received data with following two lines
incoming[i]=UARTCharGet(UART0_BASE); UARTCharPut(UART0_BASE, incoming[i]);
Now I want to build in some kind of detection of last bit in received "frame". I noticed that last time interrupt triggers hex value 0x0A is read (dec 10, bin 00001010...). I do not send that character from my win app so I assume this is some kind of terminating character but I can't find anything in the datasheet. Am I right? Can this be used to detect string termination? Should I write some kind of the different end of transmission detection?
Also, my board will have to listen UART all the time so I did not use FIFO but set UART to receive byte after byte, is that right way to do?