Content originally posted in LPCWare by Albert on Wed Feb 02 21:24:10 MST 2011
Hi jlara,
Period = (RELOAD+1)/Clock -> RELOAD = Period*Clock-1.
If Period =10ms and clock = 100MHz
RELOAD = 10ms*100MHz - 1 = 999999.
But, the parameter on CMSIS funcion is RELOAD + 1
SysTick_Config(RELOAD + 1)
Then, for Period =10ms and clock = 100MHz we have:
SysTick_Config(999999+ 1) = SysTick_Config(1000000) = SysTick_Config(SystemCoreClock/1000)