This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

SysTick

Former Member
Former Member

Hi guys, I am trying software timers without using interrupt

SysTick->CTRL = 0x5; 

SysTick->LOAD = 0xFFFFFF;

SysTick->VAL  = 0; 

when start the program, what will happen with SysTick->VAL  = 0; 
it is value start with 0xFFFFFF or 0.

  • From the manual:
    "Writing to SYST_CVR clears both the register and the COUNTFLAG status bit to zero. This causes the SysTick
    logic to reload SYST_CVR from SYST_RVR on the next timer clock. A write to SYST_CVR does not trigger the
    SysTick exception logic."