Embedded Firmware · Medium · C

Polling UART Driver

Implement a blocking transmit-byte routine for the memory-mapped UART.

Task

Use UART_DATA at base+0x0 and UART_STATUS at base+0x4. Wait while status bit 0 indicates busy, then write the byte.

Examples

Constraints

Concepts to review

C, UART, polling

Open HDLForge to solve this problem in the interactive editor.

Related problems