[Top][All Lists]

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

Re: [avr-chat] sample code for ATmega48?

From: joe
Subject: Re: [avr-chat] sample code for ATmega48?
Date: Fri, 1 Jun 2007 11:57:55 -0600

On Jun 01, 2007, at 17:34 UTC, Matthew MacClary wrote:

> Here is some code, I haven't tried it on an Atmega48 yet though.

Thanks.  One question:

> #undef F_CPU
> #define F_CPU 20000000UL /* 20MHz */

My understanding is that, by default, the ATmega48 will run at 1MHz. 
To get proper timing, should I change the value of F_CPU to 1000000UL?

- Joe

Joe Strout -- address@hidden
Strout Custom Solutions

reply via email to

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