Hi
I want to find out the time frame for tick and i calculated it like this,board running @ 20 MHz means sysclcok 50 ns .
so every 50ns comes one tick ,is my assumption correct ?
and also STCTRL is the register which stores this value ?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi
I want to find out the time frame for tick and i calculated it like this,board running @ 20 MHz means sysclcok 50 ns .
so every 50ns comes one tick ,is my assumption correct ?
and also STCTRL is the register which stores this value ?
Hello Shubham,
STCTRL is control register to enable the SysTick Module, Select the clock source and enable interrupt generation.
STRELOAD is the register which is used to write the ticker load value
Regards
Amit
Hi Amit,
Thanks for ans and is my first assumption correct about tick calculation ?
Hello Shubham,
If the Clock Source is selected as System Clock then it is correct. If the clock source is selected as PIOSC/4 then the tick time is 16MHz/4 which is 250ns
Regards
Amit