Tool/software: Code Composer Studio
Hi Guys,
Please help me out. I am working on a code where I check if there is any data in the UART receive buffer and print an output on the on the TX if true.
Here is the following piece of code:
while(1) { if (UARTCharsAvail(UART7_BASE)) { UARTprintf("Received Data \n"); } }
The issue I am facing with the above code is that once I am sending a character on the RX, "Data Received" is continuously being printed on the TX. It seems to me that the if statement is true even if there isn't any character being sent to the RX.
It would be really helpful if anyone could point me in the right direction. TIA
Regards