Hello,
I was wondering that in order to make a delay of 1 second, why so we say _delay_ms(100); and not _delay_ms(1000); ?
Secondly, I want to make a delay of 24 hours using a tiny AVR. I need to measure these 24 hours very accurately. First off, I am using AVR Studio 5, how do I set the f_CPU value to 10MHZ? Secondly, _delay_ms has a max value of 262.14, how do I go about measuring 24 hours?
I thought of a way to use the time period over frequency formula. This would give me the number of oscillations required to reach 24 hours. Then I can use this value in a for loop to measure the delay.
The number would be very large of course. How do I go about this?
I was wondering that in order to make a delay of 1 second, why so we say _delay_ms(100); and not _delay_ms(1000); ?
Secondly, I want to make a delay of 24 hours using a tiny AVR. I need to measure these 24 hours very accurately. First off, I am using AVR Studio 5, how do I set the f_CPU value to 10MHZ? Secondly, _delay_ms has a max value of 262.14, how do I go about measuring 24 hours?
I thought of a way to use the time period over frequency formula. This would give me the number of oscillations required to reach 24 hours. Then I can use this value in a for loop to measure the delay.
The number would be very large of course. How do I go about this?