first of all the built in delay functions are not accurate.the same case with internal oscillator also because the atmosphere can change the frequency of the internal oscillator.if you want accurate delay of 1 second,use external oscillator and timer.
for the same program if decrease the clock frequency delay increses from 1 sec. when i increase the clock delay decreases why it occurs?
i think as as we set clock frequency delay function internally set the value for each clock option and generates same delay each clock.
hi
when you increase or decrease the clock externally, just do it at the source program also and compile it and load it.
the program take the given clock as the ref and create a delay loop according to the same.so you have to change the clock in the source code too.
Hi,
How much more is it than 1 sec? It should be quite accurate if you use external oscillator. The temperature and other factors affect the internal oscillator. When you increase or decrease the clock frequency in hardware, set the appropriate clock frequency in the compiler as well so that it makes changes as necessary.