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

This demo (userTimerDemo directory) evaluates how to use the user timer and its interrupt function. This demo configures the user timer and its prescaler setting, which you use to scale down the frequency used by the timer's counter. When the timer's counter reaches the targeted selected value, it generates an interrupt signal to interrupt the controller to let the SoC jump from the main routine to the interrupt routine.

For more detail of the driver, refer to UserTimer 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 User Timer Interrupt Demo***
Entering timer 0 interrupt routine ..
Count:1 .. Done
Entering timer 0 interrupt routine ..
Count:2 .. Done
Entering timer 0 interrupt routine ..
Count:3 .. Done
Entering timer 0 interrupt routine ..
Count:4 .. Done
Entering timer 0 interrupt routine ..
Count:5 .. Done
Entering timer 0 interrupt routine ..
Count:6 .. Done
Entering timer 0 interrupt routine ..
Count:7 .. Done
Entering timer 0 interrupt routine ..
Count:8 .. Done
Entering timer 0 interrupt routine ..
Count:9 .. Done
Entering timer 0 interrupt routine ..
Count:10 .. Done