"Weddington, Eric" wrote: >> I have an Atmega644 in the DIP package that I could breadboard with a >> quick LED blinking circuit. Since I'm doing this in Linux, >> I'm not sure >> what is a good value to assign to F_CPU, and yes, I did check the 376 >> page data sheet, but I am still not sure how to calculate >> this value -- >> sorry. >> > > Hi Bob, > > F_CPU is just a defined value which is your CPU Frequency in Hertz. This > symbol can then be used in your application if you need it.
Take a look at the section of the datasheet that explains the default clock source, which is a subsection of the System Clock chapter or wherever the ATmega644's datasheet describes the CKSEL, SUT, and CKDIV8 fuse values. Examples of how to set F_CPU: System Clock Frequency F_CPU 125 kHz 125000 1 MHz 1000000 7.3728 MHz 7372800 avr-libc's delay.h also uses F_CPU. -Preston _______________________________________________ AVR-chat mailing list AVR-chat@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-chat