Firmware · UART
Serial data arrives whether or not your program is ready, so a buffer has to hold it until the main code can catch up.