This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

UART transmission stopping

Hi,

I use uart_echo to receive bits through a pin on TM4C123GXL board. I´ve first written the data and after that I´ve just transferred the control at the end to a while(1) loop, where nothing is done, so that the control stays in the while loop forever. So this keeps transmitting the whole set of bits forever. But,  I want to stop the transmission of the bit set after a specific number of times, say 20. I tried using loops but in vain. Is there any possible method to do the same.


Thanks in advance.

Akshaya