1. Introduction

The Atmel AVR ATmega328P is part of 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.

Note: The newer AVR ATmega328PB improves on the ATmega328P by adding more pins and peripherals. This chip is available on our A-Star 328PB Micro.

GCC support for the mega328P

The following systems have compiler support for the ATmega328 included:

  • Microsoft Windows with Microchip Studio (or AVR Studio and WinAVR)
  • Microsoft Windows, Linux, or macOS with the Arduino IDE
  • Microsoft Windows, Linux, or macOS with MPLAB X 5.05 or later
  • Ubuntu Linux versions 8.10 (intrepid) and up
  • Fedora 9 updates / Fedora Development
  • Debian Linux 5.0.0 (lenny) and up

If you are using a system without 328P support, it is possible to install the latest version of the compiler and related tools from source by following the step-by-step instructions in Section 3.

AVRDUDE support for the mega328P

The popular AVR programming software AVRDUDE includes support for the mega328 in version 5.6 and up.

New Products

JST SH-Style Cable, 4-Pin, Single-Ended Female, 30cm
Pololu Ideal Diode Reverse Voltage Protector, 4-60V, 12A
Pololu I²C Isolator with Isolated Power and Connectors, ISO1640, MIE1W0505BGLVH, 5V/3.3V, 200mA
ACS72981LLRATR-050U5 Current Sensor Large Carrier 0A to 50A, 5V
Pololu Isolated Solid State Relay/Switch, SPST, 30V, 11A
Glideforce GF01-121005-1-66 Micro Linear Actuator with Limit Switches: 12V, 4.3kgf, 17.6mm/s, 50mm Stroke
Isolated DC-DC Power Module, MIE1W0505BGLVH, 5V/3.3V, 200mA
12V Step-Up Voltage Regulator U3V9F12
RobustMotion RM-EGB Series 24VDC Compact Finger Gripper, 16D, PNP + RS-485 Interface
JST SH-Style Cable, 2-Pin, Female-Female, 10cm
Log In
Pololu Robotics & Electronics
Shopping cart
(702) 262-6648
Same-day shipping, worldwide
Menu
Shop Blog Forum Support
My account Comments or questions? About Pololu Contact Ordering information Distributors