This is a Port, which I derived from the official ATMega323 Port. There are some changes, which had to be made to the timer interrupt setup to get it running. I have also changed the makefile, so the inc path is now 324p instead of 323 and the compiler flag GCC_MEGA_AVR has been changed to GCC_MEGA_AVR_324P accordingly. For this reason there is also a change in portable.h. Here I added the three following lines:

#ifdef GCC_MEGA_AVR_324P
    #include "../portable/GCC/ATMega324P/portmacro.h"


The demo could be used with STK500 e.g. if PORTB is connected with the LED Header. For questions mail to


Have fun.



Please sign in to leave a comment.