Hi,
The buffer allows you to trigger interrupt once defined number of characters have been received (up to 4).
This feature may not be useful if you are receiving chunks of data which size is different from size of buffer. For example, when you expect two or three characters and the size of buffer is set to 4. You will get an interrupt only when all 4 characters are received.
SW example for UART communication can be found here:
https://community.nxp.com/docs/DOC-329441
Depending on baud rate, MCU is usually able to receive and process characters sent from another device (computer). If not, it may be necessary to:
- a) decrease the baud rate
- b) add delays between characters transmitted from another device / computer
- c) use handshaking like Xon/Xoff.
Regards
Lukas