Linux programmer for the Atmel ATmega8

For various projects, I have used the Atmel AT90S1200 and AT90S4433 microcontrollers. Recently, the ATmega8 has been introduced as an enhanced version of the 4433, so I am using the ATmega8 for some robot experiments.

I use Linux for my normal working environment. Hardware is developed using the Eagle PCB layout package. For software development I use the Tavrasm assembler, available from www.tavrasm.org. To download programs to the target processor, I use a homebuilt board connected to the PC printer port, with the SP12 programming software. SP12 is available from Steven Bolt at www.xs4all.nl/~sbolt/e-spider_prog.html

Now for the fun. None of these tools support the ATmega8. For Eagle, I built my own device libarary by modifying the existing 4433 model. For tavrasm, it's a couple of lines changed to support a new .device instruction.

SP12 supports some mega chips, but not the ATmega8. After a day of hacking, I was able to download a program to it, and reprogram the flags.

For burning, there are two main differences between the ATmega8 and other Atmel chips:

Source code for my modified version is posted as sp12mega8.tgz (depending on your browser, you may have to right-click or shift-click this link to download the file). NOTE: this is a quickly hacked version, with several restrictions, including
home home ,Contact Info
© 2003 Joseph Rothweiler
Last modified $Date: 2003/01/03 14:50:37 $