example 3 : UART with RX/TX buffers