Question
How to handle Variable length receive data via UART
Hi All,
The idea, to use variable length data on UART receiver is that "Use a timer ",
I am using a timer with interrupt, Once the first byte is received timer start and on second byte receive timer STOP and store the data and start the time again, At the last byte received timer will expired and generate the interrupt Then I process the complete frame. Timer value should be greater than 1 byte time
I want to know is it a right way to do So...?
