On Wed, 2004-09-29 at 09:48, Alessio MattÃffffe8 wrote: > Is it possible to use a timer or a counter (specific of the AVR > ATmega128L microcontroller), even using Assemby language, which > increments its value every instruction cycle or which counts the CPU > cycles ? >
Yes, you basically answered your own question. Use one of the hardware timers of the Atmel, say Timer1, set it up manually and run it to time the length of your code. Read the Atmel datasheet for the register values you'll need to use. For an example of how to program timer registers, see /tos/platform/mica/HPLClock.nc which uses Timer0. -David _______________________________________________ Tinyos-users mailing list [EMAIL PROTECTED] http://mail.Millennium.Berkeley.EDU/mailman/listinfo/tinyos-users
