Learning About Arduino and ATMega8
: Description : Research into programming an ATMega8 chip using the internal 8MHz oscillator with a parallel cable programmer.
: Status : Successfully programmed a fresh ATMega8 mounted on a breadboard.
: See Also : Learning About the AVR Parallel Programmer
Hardware
- The hardware I have was apparently assembled from Programming the AVR Microcontroller with GCC (new location?)(cache) (updated mirror).
- File containing test source code and circuit pinout: avrm8ledtest-0.5.tar.gz (from this).
- This is the circuit I used: (Note: 10K = Brown, Black, Orange; 1K = Brown, Black, Red (see))
- I powered the ATMega8 from the +5V and Gnd from an Arduino Diecimila board.
- I have since constructed a programming "jig" to avoid keeping the circuit on the breadboard. More detail, and photographs can be found on the Learning About the AVR Parallel Programmer page.
Research
- uDuino -- ATMega168, 8 MHz internal oscillator, with programming
- ATmega 8 / 168 internal clock and fuse settings -- Lots of detail
Notes
- In the 'Makefile' from 'avrm8ledtest-0.5.tar.gz' it seems like the pre-compiled file is not correctly referenced here (it should refer to 'avrm8ledtest_pre.hex' in both places):
load_pre: avrm8ledtest_pre.hex ./prg_load_uc avrm8ledtest.hex
- Command line:
sudo arduino-0010/hardware/tools/avrdude -C arduino-0010/hardware/tools/avrdude.conf -p m8 -c dapa -e -U flash:w:"avrm8ledtest.hex"