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.
Device Model
| Register idea | Role |
|---|---|
| line control | word length, stop bits, parity, divisor access |
| divisor latch | baud-rate divisor |
| FIFO control | receive/transmit buffering |
| line status | data-ready and transmitter-ready bits |
| interrupt enable | which events raise IRQs |
| loopback | transmit is routed back to receive |
Plan
- Configure baud rate through the divisor latch.
- Restore normal line control.
- Enable FIFO mode.
- Send only when transmitter-ready is set.
- Read only when data-ready is set.
- Use loopback before testing paired programs.
Next: implementation tasks.