hello i have found following code to make a delay in my micro but i can not understand some of the sentences i am not professional does any one friend help me? what is the meaning of {unit32_t},{__INLINE static void Delay (uint32_t dlyTicks)}
#include "LPC17xx.h" volatile uint32_t msTicks; /* counts 1ms timeTicks */ void SysTick_Handler(void) { msTicks++; /* increment counter necessary in Delay() */ } __INLINE static void Delay (uint32_t dlyTicks) { uint32_t curTicks;
curTicks = msTicks ; while ((msTicks - curTicks) < dlyTicks) ; } tnx
tnx for your answer du you know, if i want to sampling in each micro second instead of mili second, which function is usable in LPC1768?
The timers can operate at a number of MHz. If run at 10 MHz, each tick would represent 0.1 us.
But haven't you looked at the processor documentation? Don't you think the rich documentation released by NXP is the best source of information?