Skip to main content

Section 3.1 Before Class: How UART Works

This reading explains how a character gets from your program to a terminal window on your laptop. When your STM32C031C6 calls printf("Hello\n"), each character goes out over a single wire one bit at a time, at a rate both ends agreed on in advance, rather than as a single burst or over eight wires at once. This is UART: Universal Asynchronous Receiver-Transmitter. We’ll look at how a byte is turned into a bit stream, what the baud rate is, what a complete frame looks like on the wire, and why the peripheral on our chip is called USART rather than UART.