[Tinyos-help] atmega128 clock frequency
David Gay
dgay42 at gmail.com
Wed Jul 18 08:46:52 PDT 2007
The aptly-named p.39 "Calibrated Internal RC Oscillator" of the
atmega128 datasheet gives the fuse values to get 1, 2, 4 or 8MHz
operation. The pages before that explain what the other fuse values
means...
TinyOS 2 has reasonable support for operation under the calibrated
oscillator. If you've set the fuses to use, e.g., 2MHz, compile with
-DMHZ=2 (add "PFLAGS += -DMHZ=2" to your Makefile).
See the MeasureClockC component for an interface which will give you
information on the current clock rate (w/ respect to the 32kHz
crystal).
David Gay
More information about the Tinyos-help
mailing list