RV32 SoC DS UG
High-Perf RV32 SoC DS UG
RV64 SoC DS UG API and Examples
Embedded IDE UG
Loading...
Searching...
No Matches
UART Interrupt Demo

This demo (uartInterruptDemo directory) shows how to use a UART interrupt to indicate task completion when sending or receiving data over a UART. The UART can trigger a interrupt when data is available in the UART receiver FIFO or when the UART transmitter FIFO is empty. In this example, when you type a character in a UART terminal, the data goes to the UART receiver and fills up FIFO buffer. This action interrupts the processor and forces the processor to execute an interrupt/priority routine that allows the UART to read from the buffer and send a message back to the terminal.

For more detail of the driver, refer to UART Driver.

Newlib

By default, newlib-nano is used for this demo.

See also
User Debug Configuration - To learn more about User Debug Configuration.

Execution Sequence:

The following shows the expected execution sequence:

***Starting Uart Interrupt Demo***
Start typing on terminal to trigger uart RX FIFO not empty interrupt ..
Entering uart rx fifo not empty interrupt routine ..
sDone ..
Entering uart rx fifo not empty interrupt routine ..
dDone ..