Re: USART Read stuck
☄ Helpfulby resilientboy 2020/07/02 11:45:21
You'd better check for the IF flag prior calling the read function if you cannot afford to wait for the next character to be received.
This read function is made to wait for a character to arrive. Unless you have a masive mismatch of baud rates, this function doesn't differentiate between characters. But maybe the rest of your software (not shown) does.
PEBKAC / EBKAC / POBCAK / PICNIC (eventually see en.wikipedia.org)