Hi Konrad
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.
void SysTick_Init(void)
{
SYST_CSR = 0x00U;
SYST_RVR = SysTick_RVR_RELOAD(0x00632EA0);
SYST_CVR = SysTick_CVR_CURRENT(0x00);
SYST_CSR = (SysTick_CSR_CLKSOURCE_MASK | SysTick_CSR_ENABLE_MASK);
}
Thanks & regards
Amit Kumar