Baud and the divisor

You will learn

How one divisor turns a clock into a bit rate, and what changing it breaks.

The rate is a divisor: the clock divided by the baud gives the bit period, and the spec states it as a constant expression -- UART_BIT_PERIOD is UART_CLOCK_HZ / UART_BAUD_RATE, 100,000,000 over 115,200. The test uart_configure_changes_baud_divisor checks that configuring the driver moves the divisor. The recording shows the spec lowered to hardware IR: the compiler's own view of the wires and state before Verilog exists.

Open the interactive lesson →