Microcontroller › 8051 › Accessing timers on a microcontroller 8051 › it is very hard to get exact
November 9, 2015 at 10:28 am
#13468
Ashutosh Bhatt
Participant
it is very hard to get exact required delay in embedded C programming
u hv to do trial and error for getting closest value of required delay
in loop inside loop it waste more cycles so we can not directly put 250*1000 = 250 ms
also we can not put 250*25*40 = 250 ms. instead we have to put different count like 40,39,38,36 …. likewise and check when there is closest value of 250 ms