I want to ask how precise _delay_ms in util/delay.h in avr gcc is??...
as when simulating a delay of 1000ms the stop watch goes from 400us to 66000us for atmega32 at 4mhz....thats not 1000ms
and when simulating a delay of 2ms the stop watch goes from 400us to 5000us for atmega32 at 4mhz....
any clues??
and this macro
loose_delay(delay) \ for (__temp0 = 0; __temp0 < delay; __temp0++) { \ for (__temp1 = 0; __temp1 < 0x00FF; __temp1++); \ }
for loose_delay(120) goes from 400us to 97000us....