Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

question about atmega1284P fuses

Status
Not open for further replies.

aliyesami

Full Member level 6
Full Member level 6
Joined
Jan 7, 2010
Messages
369
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,296
Location
USA
Visit site
Activity points
4,190
I am going to be programming this chip via Pololu ISP programmer . I want to use the external crystal oscillator do I need to program any fuses for this ?
I used atmel328 before brand new chip and I burned the bootloader and sketches on it via arduino and I didn't burn any fuses but the datasheet for atmega1284P is saying that by default internal clock is used which is only 1Mhz , I will be using 20Mhz crystal .

thanks
 

Hi,

The Arduino does everything for you.

Stand alone programming will require Fuses , this should help
https://www.engbedded.com/fusecalc

when I uploaded my atmega328P via arduino how did arduino setup the fuses since I never specified them?
I know the engbedded utility its for getting the right fuse values for the avrdude.

I have a feeling that my sketches were working cause the internal divided clock of 1Mhz was used and not the external 16Mhz crystal I put , right?
 

when I uploaded my atmega328P via arduino how did arduino setup the fuses since I never specified them?
I know the engbedded utility its for getting the right fuse values for the avrdude.

I have a feeling that my sketches were working cause the internal divided clock of 1Mhz was used and not the external 16Mhz crystal I put , right?

Hi,

Its a while since I did any stand alone programming /fuses using an usbisp device, though think you may be using Studio with that Pololu programmer which has a fuse sub menu ?

Think this thread will answer your questions.
https://forum.arduino.cc/index.php?topic=71580.0
 

Its better if you use the internal clock oscillator because for external clock source you have to program the low byte fuse and it is also more costly...
 

I am going to be programming this chip via Pololu ISP programmer . I want to use the external crystal oscillator do I need to program any fuses for this ?
I used atmel328 before brand new chip and I burned the bootloader and sketches on it via arduino and I didn't burn any fuses but the datasheet for atmega1284P is saying that by default internal clock is used which is only 1Mhz , I will be using 20Mhz crystal .

thanks

http://www.atmel.com/images/doc8059.pdf

7.2.1 Default Clock Source
The device is shipped with internal RC oscillator at 8.0 MHz and with the fuse CKDIV8 programmed, resulting in 1.0 MHz system clock.
The startup time is set to maximum and time-out period enabled. (CKSEL = "0010", SUT = "10", CKDIV8 = "0").
The default setting ensures that all users can make their desired clock source setting using any available programming interface.

In order to use the external crystal you have to set the fuses accordingly (and disable CKDIV8), refer to section 7.4 Full Swing Crystal Oscillator
 
Its better if you use the internal clock oscillator because for external clock source you have to program the low byte fuse and it is also more costly...

costly? in which sense ?
I think its a huge advantage in running with 20Mhz external crystal than 1Mhz internal clock .
 

Using the internal RC clock is an entirely different story, first of all it limits you to 8Mhz and secondly it has a quite high tolerance (compared to a 0.00005% of a crystal) plus it changes with the voltage supply level.
Depending on the application this may or may not be a problem.

m1285_RC_accuracy.jpeg

m1286_RC_accuracy.jpeg
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top