Subsection 3.1.6 UART vs. USART
The STM32C031C6’s serial peripheral is labeled USART. The “S” stands for Synchronous. The hardware also supports a clocked mode for special cases, but in this course we use it exclusively in asynchronous mode. The USART handles all the timing in hardware: it generates the start bit, clocks out the data bits at the right rate, and appends the stop bit automatically.
The peripheral is also highly configurable: the number of data bits (7, 8, or 9), the number of stop bits (0.5, 1, 1.5, or 2), and an optional parity bit can all be adjusted to match whatever device is on the other end. In practice the vast majority of UART devices use 8 data bits, no parity, and 1 stop bit, a combination so common it has its own shorthand: 8N1. That is what we use throughout this course, and it is what the frame in Figure 3.1.2 illustrates.
