Let's Make Robots!

does DIP atmega 328 have the same fuses as TQFP

Hello everyone I just wanted to know if the TQFP version of the ATmega 328 have the same fuses as the DIP.

I actually want to make a PCB using the TQFP version of the ATmega 328 I'll have the ISP pins broken out on the PCB and I plan on using another arduino board to bootload it. My only question is if I bootload it using the UNO bootloader would it fail since I know different ATmegas have different fuses.Could I change the fuse settings in the boards.txt file and get away with it. I also plan on using optiboot since it helped me bootload a DIP atmega328p-pu in seconds it bootloaded the mega as a UNO.

If not how would i go about bootloading it.  

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Ladvien's picture
Using Atmel studio if I type in the suggested fuses found in the C:\arduino\hardware\boards.txt (might take a look in there if you want to compare fuse settings between boards) Atmel gives me the following outputs.
Mini
From the boards.txt I typed in to Atmel Studio:
low_fuses=0xc6
pro.bootloader.high_fuses=0xdd
pro.bootloader.extended_fuses=0x00
And the output was:
BODLEVEL = 1V8 (Brown out detector)
RSTDISBL = [ ]
DWEN = [ ]
SPIEN = [X] (SPI)
WDTON = [ ]
EESAVE = [ ]
BOOTSZ = 512W_3E00 (Boot size)
BOOTRST = [ ] (Boot reset factor)
CKDIV8 = [X] 
CKOUT = [X]
SUT_CKSEL = EXTCLK_6CK_14CK_0MS (Sets the clock speed source)
Uno
From the boards.txt I typed in to Atmel Studio:
low_fuses=0xff
uno.bootloader.high_fuses=0xde
uno.bootloader.extended_fuses=0x05
And the output was:
BODLEVEL = DISABLED (Brown out detector)
RSTDISBL = [ ]
DWEN = [ ]
SPIEN = [X] (SPI)
WDTON = [ ]
EESAVE = [ ]
BOOTSZ = 256W_3F00
BOOTRST = [X] (Boot reset factor)
CKDIV8 = [X]
CKOUT = [X]
SUT_CKSEL = EXTLOFXTAL_32KCK_14CK_0MS (Sets the clock speed source)
EXTENDED = 0xFF (valid)
HIGH = 0xDE (modified)
LOW = 0x05 (modified)
So, it looks like the brown-out settings are different. Ladyada writes, "A brownout for a chip means that the power voltage is too low for it to run reliably at the speed of the clock."
Also, the clock source (although, both use external clock sources) and boot sizes are different.
I hope someone will correct me if I'm off here. :)
robotmaster18's picture

Thank you ladvien so each board has different fuse settings for the boards own needs after some research i found out that fuses are just used to set settings for the atmega so when it comes to bootloading there's no worry. 

bdk6's picture

The fuses are the same if the chip version is the same.  But, an ATMega 328 may be different from an ATMega 328p.  You can check the data sheet of each version which is easily found on the atmel web site if you aren't sure.

robotmaster18's picture

Ok so in theory i could bootload it with a UNO bootloader.

6677's picture

Yeah, hell, the current UNO's are TQFP not DIP.

robotmaster18's picture

ok great but my only question now is what is the difference between the uno bootloader and the nano or mini bootloader.

6677's picture

I'm not actually sure, might be something to do with the nano using an FTDI chip onboard as a USB > Serial converter instead of the UNO's second AtMega8 or whatever it is they use.

robotmaster18's picture

No that wouldn't be the case since I have an atmega 328p-pu with a uno bootloader running on a dueminilove,if thats how it is spelled, board.