UART of microcontrollers and DSPs of other manufactures have Receiver Time-out feature which allow to define an end of variable-length frame.
I want this feature.
My decision is to use Width Capture Mode Overflow.
I configure the timer to measure 4 char time and if a timer count is overflowed the interrupt arise and receive are stopped.
Am I right?