avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] Doubts on ATmega128(L) clock speed


From: Joerg Wunsch
Subject: Re: [avr-gcc-list] Doubts on ATmega128(L) clock speed
Date: Sun, 9 Sep 2007 21:16:08 +0200 (MET DST)

"Leonardo B. Oliveira" <address@hidden> wrote:

> Lastly, is it possible to change clock speed at running time? I
> mean, i wanna, e.g., change the clock speed from 4MHz to 8MHz after
> a couple of operations have been carried out.

It is possible, yes.  Have a look at the XDIV register.

Curious, what's the reason for this?  Normally, you don't gain much by
running an AVR at lower clock frequencies, compared to have it running
as fast as possible (for the desired target voltage), and then put it
to sleep once the job is done.

-- 
cheers, J"org               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/                        NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]