Go Down

Topic: Making an Atmega328 run without an external control crystal. (Read 2484 times) previous topic - next topic

adeom258

I recently acquired an Arduino Uno for use in some of my classes at a local college. I can program the Atmega328 and everything is fine. Once I take the chip out of the Arduino it requires an external crystal to control the clock. I know there is a way to enable the chip to run off of the internal clock, but after searching the internet I still haven't been able to find how. I found an article: http://arduino.cc/en/Tutorial/ArduinoToBreadboard but the instructions don't work  for the Arduino Uno.

Help please....

frank26080115

you need to use a programmer to set the fuses to "use internal RC oscillator"
Freelance engineer, consultant, contractor. Graduated from UW in 2013.

adeom258

Yes i know that, but I don't know how to. Hence me posting in the help forum.

SirNickity

Get the data sheet for the particular chip you're using.  There's a section on which bits of which fuse bytes need to be set to configure features such as this.  I can't stress enough using the data sheet as the ultimate reference.  Be very careful following guides.  Take the gist of the instructions, but never copy the fuse settings from an example, as it may not do what you think it does.

The method by which to actually set the fuses is just a simple command line from avrdude.  Here's a guide I found once while researching it:

http://electrons.psychogenic.com/modules/arms/art/14/AVRFusesHOWTOGuide.php

I haven't tried it, but it looks about right from what I've seen.

Chagrin

Nickity's link shows how to use avrdude; see http://www.engbedded.com/fusecalc/ to figure out how you need to set the fuses.


Go Up