SysTick
Difference between Reload and Current values
a. Why is exact value of Reload harder to calculate when programming in C than in Assembly?
Reload value given in a register loads that value in anoither register which starts counting down till it reaches zero, after which the reload value will be ,loaded again and this process continues. The current value is the value of register it holds at any point of time (count value). Reload value is constant and current value is varying.
In assembly, we can dedicate one register for holding reload value which gets loaded to count register for counting. In C, it is stored as constant value in special ROM area through a linker script. Hence, it can not be changed during the execution of the program
Get Answers For Free
Most questions answered within 1 hours.