1. Introduction

The Atmel AVR ATmega328P is the latest in the mega48/mega88/mega168 series of microcontrollers, which are used on the Orangutan Robot Controllers, Arduino boards, and in many other robot controllers and individual electronics projects. The mega328 has twice as much program (Flash) memory, RAM, and EEPROM as the mega168, while keeping the same architecture and pinout as the earlier chips. This means that most projects based on the earlier processors can be easily upgraded to the 328, making it possible to fit more complex programs or deal with more much more data.

GCC support for the mega328P

The following systems have compiler support for the ATmega328 included:

  • Microsoft Windows with AVR Studio and WinAVR (so Windows users should be okay after upgrading to the latest version of WinAVR).
  • Ubuntu Linux versions 8.10 (intrepid) and up.
  • Fedora 9 updates / Fedora Development
  • Debian Linux 5.0.0 (lenny) and up.

Ubuntu 8.04LTS (hardy) does not currently offer a recent enough version of gcc to compile programs for the mega328, but future upgrades might provide support.

If you are using one if the systems with 328P support, just make sure that you have updated your system to use the latest version of WinAVR/avr-gcc. Otherwise, to install the latest version of the compiler and related tools, proceed to Section 3 and follow the step-by-step instructions.

AVRDUDE support for the mega328P

The popular AVR programming software AVRDUDE includes support for the mega328 in version 5.6 and up. Since this was released on 27 February 2009, it is not included in the latest WinAVR distribution. Windows users will need to modify their avrdude.conf file as described at the end of Section 5.

New Products

Mini MOSFET Slide Switch with Reverse Voltage Protection, LV
Mini MOSFET Slide Switch with Reverse Voltage Protection, SV
Pololu Ball Caster with 1″ Plastic Ball and Ball Bearings
Mini Pushbutton Power Switch with Reverse Voltage Protection, LV
Zumo 32U4 Robot (Assembled with 50:1 HP Motors)
Pololu Wheel for FEETECH FS90R Micro Servo, 60×8mm Pair - Black
9mm Electromagnetic Buzzer: 30Ω, 3-7V, Side Opening
VL6180X Time-of-Flight Distance Sensor Carrier with Voltage Regulator
Zumo 32U4 Robot (Assembled with 100:1 HP Motors)
Zumo 32U4 Robot (Assembled with 75:1 HP Motors)
Log In
Pololu Robotics & Electronics
Shopping cart
(702) 262-6648
Same-day shipping, worldwide
Shop Blog Forum Support
My account Comments or questions? About Pololu Contact Ordering information Distributors