SysTick Timer

The following was pulled from the K10 Manual. It mentions NOREF and TENMS bits of the SysTick Calibrattion Value Register, but I can't find this register in the documentation.

3.2.1.2 System Tick TimerThe System Tick Timer's clock source is always the core clock, FCLK. This results in thefollowing:• The CLKSOURCE bit in SysTick Control and Status register is always set to selectthe core clock.• Because the timing reference (FCLK) is a variable frequency, the TENMS bit in theSysTick Calibration Value Register is always zero.• The NOREF bit in SysTick Calibration Value Register is always set, implying thatFCLK is the only available source of reference timing.

The Systick is a core Cortex-M4 feature; it is documented in the "Cortex-M4 Devices Generic User Guide" which you can download from ARM; the Freescale manual only documents the deviations from the ARM manual at that point.

I have gone through the documentation in ARM manual. Presently I am coding through Code warrior with Processor expert I have initialized the Systick but I dont know how to implement it in my main code. I am using TWR-K20D50M development board. I just want to use it as a delay for toggling an LED like

int main()

{

LED_ON;

delay();

LED_OFF;

delay();

}

as simple as that. but the delay which I wanted is in ms or us with some exact values like in AVR uc we have delay_ms(100); or delay_us(100); somewhat like this I am looking for . This is the Init code generated by Processor Expert.