Forum Menu




 


Log in Problems?
New User? Sign Up!
AVR Freaks Forum Index

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
jain.arush
PostPosted: Oct 29, 2008 - 07:58 AM
Newbie


Joined: Aug 14, 2008
Posts: 5


8 mhz or 4 mhz>???
 
 View user's profile Send private message  
Reply with quote Back to top
farmosh203
PostPosted: Oct 29, 2008 - 08:01 AM
Hangaround


Joined: Oct 27, 2008
Posts: 171


I don't have an atmega16 but can't you check what it is set at with AVR Studio?

Go to Tools -> Program AVR -> Auto Connect -> Fuse tab -> and look at what SUT_CKSEL is set at.
 
 View user's profile Send private message  
Reply with quote Back to top
js
PostPosted: Oct 29, 2008 - 08:40 AM
10k+ Postman


Joined: Mar 28, 2001
Posts: 20390
Location: Sydney, Australia (Gum trees, Koalas and Kangaroos, No Edelweiss)

1MHz as they come from the factory, ALL mega and tiny types. (8MHz internal oscillator with the DIV8 fuse set)

_________________
John Samperi
Ampertronics Pty. Ltd.
www.ampertronics.com.au
* Electronic Design * Custom Products * Contract Assembly
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
clawson
PostPosted: Oct 29, 2008 - 10:17 AM
10k+ Postman


Joined: Jul 18, 2005
Posts: 62354
Location: (using avr-gcc in) Finchingfield, Essex, England

Actually the mega16 doesn't have a CKDIV8 fuse. It's one of the old school with separate 1/2/4/8MHz internal RC oscillators with the 1MHz one selected by default.

OP should be warned that it's not EXACTLY 1MHz, it's +/-10% of that.

_________________
 
 View user's profile Send private message  
Reply with quote Back to top
Koshchi
PostPosted: Oct 29, 2008 - 02:38 PM
10k+ Postman


Joined: Nov 17, 2004
Posts: 13849
Location: Vancouver, BC

Quote:
1MHz as they come from the factory, ALL mega and tiny types

Not quite true. There are a couple that have default frequencies other than 1MHz (and a couple of older ones that don't have an internal oscillator at all).

_________________
Regards,
Steve A.

The Board helps those that help themselves.
 
 View user's profile Send private message  
Reply with quote Back to top
theusch
PostPosted: Oct 29, 2008 - 03:25 PM
10k+ Postman


Joined: Feb 19, 2001
Posts: 25923
Location: Wisconsin USA

Quote:

There are a couple that have default frequencies other than 1MHz (and a couple of older ones that don't have an internal oscillator at all).

OK, I'll bite. Wink As a trivia discussion you must have had one or more models in mind.

I thought maybe Mega406 or AT90PWMn would be the oddballs, but nope--1MHz.

Yes, classic AT90S did not have internal oscillators. But they ain't around anymore.

So, what model(s) qualify to be included in your two categories?

Lee
 
 View user's profile Send private message  
Reply with quote Back to top
clawson
PostPosted: Oct 29, 2008 - 03:38 PM
10k+ Postman


Joined: Jul 18, 2005
Posts: 62354
Location: (using avr-gcc in) Finchingfield, Essex, England

Isn't there a Tiny that has 4.8 / 9.6 options and defaults to one of those?

(might be one intended for IR use?)

_________________
 
 View user's profile Send private message  
Reply with quote Back to top
lfmorrison
PostPosted: Oct 29, 2008 - 04:26 PM
Raving lunatic


Joined: Dec 08, 2004
Posts: 4719
Location: Nova Scotia, Canada

clawson wrote:
Isn't there a Tiny that has 4.8 / 9.6 options and defaults to one of those?

(might be one intended for IR use?)

It's the ATtiny13 and its replacement the ATtiny13A. It offers a choice of a 4.8 MHz, a 9.6 MHz, and a 128 kHz internal oscillator. Alternatively an external clock (not crystal) can be used.

It comes up by default with the 9.6 MHz oscillator selected and the CKDIV8 fuse programmed, to result in an overall default frequency of 1.2 MHz.
 
 View user's profile Send private message  
Reply with quote Back to top
Koshchi
PostPosted: Oct 29, 2008 - 04:32 PM
10k+ Postman


Joined: Nov 17, 2004
Posts: 13849
Location: Vancouver, BC

The tiny28 also has a 1.2MHz default clock.

_________________
Regards,
Steve A.

The Board helps those that help themselves.
 
 View user's profile Send private message  
Reply with quote Back to top
theusch
PostPosted: Oct 29, 2008 - 05:08 PM
10k+ Postman


Joined: Feb 19, 2001
Posts: 25923
Location: Wisconsin USA

Quote:

It's the ATtiny13 and its replacement the ATtiny13A.

Quote:

The tiny28 also has a 1.2MHz default clock.

LOL, a tempest in a teapot.

1.2MHz +/- 10% = 1.08-1.32MHz
1.0MHz +/- 10% = 0.90-1.10MHz

So I don't think I'd call them exceptions to the "rule". [Note the Tiny13 datasheet has many characteristics specified for 1MHz.]

For the topic "what is the default frequency" then I have no objections to your better knowledge of AVR trivia than I do. Wink

For the "inquiring minds want to know" followup: Is it important except for ISP? In any of the above cases ISP frequency should still be 250kHz or lower.

Lee
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT + 1 Hour
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2006 The PNphpBB Group
Credits