github.com/tinygo-org/tinygo@v0.31.3-0.20240404173401-90b0bf646c27/src/examples/systick/README.md (about)

     1  # TinyGo ARM SysTick example
     2  
     3  This example uses the ARM System Timer to blink an LED.  The timer fires
     4  an interrupt 10 times per second.  The interrupt handler toggles the LED on
     5  and off.
     6  
     7  Many ARM-based chips have this timer feature.  If you run the example and the
     8  LED blinks, then you have one.
     9  
    10  The System Timer runs from a cycle counter.  The more cycles, the slower the
    11  LED will blink.  This counter is 24 bits wide, which places an upper bound on
    12  the number of cycles, and the slowness of the blinking.