Skip to main content
Zek_De
Senior
April 17, 2019
Question

SysTick

  • April 17, 2019
  • 3 replies
  • 816 views

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?

This topic has been closed for replies.

3 replies

Tesla DeLorean
Guru
April 17, 2019

Can you not simply observe and see experimentally?

The SysTick is a 24-bit DOWN COUNT, it typically loads the value specified, and when it gets to zero it interrupts and reloads.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Zek_De
Zek_DeAuthor
Senior
April 17, 2019

Unfortunately I dont have my MCU now, I am at another city for now, but I got the point in datasheet thank you

S.Ma
Principal
April 17, 2019

Better study the RTC then.

Try to use interrupts with timers.

Interrupts is something important to learn.