【備忘】ATmega328P fuse bit default setting
2010年 07月 17日
DEVICE = atmega328p
CLOCK = 8000000
PROGRAMMER = -c avrisp2 -P usb
OBJECTS = main.o
FUSES = -U hfuse:w:0b11011001:m -U lfuse:w:0b01100010:m
# ATMega328P fuse bits (fuse bits for other devices are different!):
# Example for 8 MHz internal oscillator, default setting
# Fuse high byte:
# 0xd9 = 1 1 0 1 1 0 0 1 <-- BOOTRST (boot reset vector at 0x0000)
# ^ ^ ^ ^ ^ ^ ^------ BOOTSZ0
# | | | | | +-------- BOOTSZ1
# | | | | +---------- EESAVE (0 : preserve EEPROM over chip erase)
# | | | +-------------- WDTON (0 : Watchdog timer always on)
# | | +---------------- SPIEN (1 : serial programming is disabled)
# | +------------------ DWEN (0 : debugWIRE enabled)
# +-------------------- RSTDISBL (0 : RESET pin is disabled)
# Fuse low byte:
# 0x62 = 0 1 1 0 0 0 1 0
# ^ ^ ¥ / ¥--+--/
# | | | +------- CKSEL 3..0 (clock source. internal RC,7.3-8.1MHz)
# | | +--------------- SUT 1..0 (start-up time. slowly rising power 14CK+65ms)
# | +------------------ CKOUT (clock output)
# +-------------------- CKDIV8 (divide clock by 8)