internetuser2k13
Member level 3
hello,
i want to know the basic understanding of delay function, how its working.
i want to know the basic understanding of delay function, how its working.
Code:
void delay_sec(unsigned char seconds) // This function provides delay in terms of seconds
{
unsigned char i,j;
for(i=0;i<seconds;i++)
for(j=0;j<100;j++)
__delay_ms(10);
}