Skip to content

Lab 7: UART and serial ports ​

Generated folder: labs/uart/

Lab 7 introduces serial communication through a 16550-style UART. A UART turns bytes into a stream and receives a stream back into bytes. It fits in a lab but contains the reliability questions of larger communication systems.

Register ideaRole
line controlword length, stop bits, parity, divisor access
divisor latchbaud-rate divisor
FIFO controlreceive/transmit buffering
line statusdata-ready and transmitter-ready bits
interrupt enablewhich events raise IRQs
loopbacktransmit is routed back to receive

Read serial protocol thinking, complete the tasks, run the checks, and compare with modern serial links.

TIP

Loopback proves one endpoint before run-pair asks you to reason about two independent programs.

Course/docs licensed CC BY 4.0. Code licensed MIT.