[avr-gcc-list] (Newbie)2.Delay function not working as required
From:
Sumeet Pal Singh
Subject:
[avr-gcc-list] (Newbie)2.Delay function not working as required
Date:
Thu, 8 Dec 2005 06:22:45 +0530
Hi
We tried to put delay in our program but it is not that reliable,
When we do
for(char i=0x00;i<100;i++)
delayms(100);
The output which we get is not 100*100ms but something unexpected. The
variable i is not used anywhere else in program. Is it that the
optimisation is causing problem, if yes please tell how to remive it.