Content originally posted in LPCWare by MikeSimmonds on Fri May 31 14:35:32 MST 2013
[FONT=Tahoma][SIZE=2][COLOR=black]SysTick->[/COLOR][/SIZE][/FONT][FONT=Tahoma][SIZE=2][COLOR=#0000c0]CALIB[/COLOR][/SIZE][/FONT][FONT=Tahoma][SIZE=2][COLOR=black] is 'constructed' in a CMSIS header file (for your particular MCU)
to 'point to' an on-chip hardware register. [Part of the hardware systick timer.]
At reset, this register is initialised to a number to get 10 millisecond ticks.
This is where the [/COLOR][/SIZE][/FONT][FONT=Tahoma][SIZE=2]479999 comes[/SIZE][/FONT][FONT=Tahoma][SIZE=2] from.
Perhaps you need to do background reading (of the user manual for the device)
and then look at the CMSIS files until you can understand what is going on.
The user manuals are setup so you can read the first few chapters, and skip most
of the on-chip peripherals until you actually want to use them.
Read Intro, Memory, System Control/Clocks first.
Then Pin configuration, then NVIC (interrupts), then any peripherals you need
e.g. 'SysTick'.
It will take a while (and several readings), but (if you want to progress with Cortex MCU's) it will be well worth it.
Cheers, Mike
[/SIZE][/FONT][FONT=Tahoma][SIZE=2]
[/SIZE][/FONT]