keil programming
Thu Jan 05 2012, 01:26 pm
Thu Jan 05 2012, 03:06 pm
@ vijay.parmar1992
in while(1) loop u only call the delay function that is why it is seems to infinite
u can also use this delay
delay_ms(1000); means 1 sec delay
in while(1) loop u only call the delay function that is why it is seems to infinite
u can also use this delay
void delay_ms (unsigned int count) { unsigned int i; while(count) { i = 115; while(i> 0) i--; count--; } }
delay_ms(1000); means 1 sec delay
Powered by e107 Forum System