loading

Divide by 8?

What is the purpose of using divide by 8 in avr programming?
Without knowing more about this is seems like the long way around.

sort by: active | newest | oldest
frollard3 years ago
Because often the resonator/crystal is soldered to the board and cannot be changed, but the crystal uses miniscule amounts of power. By having the chip clock down to 1/8th the speed, it uses considerably less power. Ideal when you want long battery life and don't need many of the high speed features of the chip. (iirc 8mhz is needed if you want to run the UART). If you're doing a simple timer or blink led or automation, 1mhz is way more than enough.
WWC (author)  frollard3 years ago
Would it be the same thing if we unchecking the divide by 8 and just run at the 1mhz clock?
frollard WWC3 years ago
basically.
WWC (author)  frollard3 years ago
Thanks for the answer.
W
Question is a bit vague. Can you give an example?
WWC (author)  mpilchfamily3 years ago
As can be seen in the screen shot the  box is checked for divide by 8. If i get this correct, if you set your make file at 8000000 and the divide by eight is also chosen then actual speed is 1000000. What is the reason we do this divide by instead of direct clock speed?
   
Screenshot_1.png