Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

[QUARANTINE] [AVR-Chat] Re: GP2D02 + ATmega32

2006-09-12 by katraven1

how do i check/set that?

i assumed (again) that as I didn't alter it, the clock defaults to the 
internal rc which is set to 1Mhz...

F_CPU has been set to equal 1000000UL <- admittedly i dun really noe 
what the UL at the end is but that's the way the delay.h defined it to 
mean 1 MHz...

am i missing something here?

--- In AVR-Chat@yahoogroups.com, "Dave Hylands" <dhylands@...> wrote:
>
> Hi,
> 
> > after all this stressing and request for aid it turns out there was
> > nothing wrong with my code - the error was assuming delay_ms(70)
> > actually means a delay of 70ms...
> 
> As far as I know it does. Provided of course that you set the F_CPU
> define to match the frequency that you're actually running your AVR
> at.
> 
> -- 
> Dave Hylands
> Vancouver, BC, Canada
> http://www.DaveHylands.com/
>

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.