stepper Timer

Thread Starter

embed_v

Joined Aug 30, 2010
24
hiii
i am new with stepper motor .
so i want some basic information related to timer used for stepper motor application in C.

1)when the timer is overflow? and then what will be the next step.

2) i saw some code ther is milli. and micro. delay function both are used WHY ?
Here is the some code ... so plzzz explain me the follwing code bcause i want to be impliment like the same
(IT IS FOR FULL STEPPING )
void Milli_Delay(unsigned int ms)
{
while (ms--)
Micro_Delay(100);
}

void MicroDelay(unsigned int us)
{

us += T1TC;
while (T1TC < us);

}
WHAT IS THE TIMER CONCEPT BEHIND IT TO USED MILLI AND MICRO FUNCTION????
 
Top