t.man
New Member
i want to make a delay of, say 100uS using 1 Mhz oscilator, so i see a function like this can do the work,
...but my problem is how to figure out how this function really do the delay of, say 1 seconds, etc. when it is called.
anyone to come to my rescue?
thanks,
Code:
void delay(unsigned char i)
{
unsigned char n;
unsigned int j;
for (n=1; n<i; n++)
{
for (j=1; j<1535; j++);
}
anyone to come to my rescue?
thanks,