Skip to content

Atmel/Microchip ATmega328PB support for Arduino IDE

Notifications You must be signed in to change notification settings

watterott/ATmega328PB-Testing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

7d0e4eb · Dec 6, 2022
Dec 15, 2019
Nov 8, 2018
Nov 3, 2019
Jun 6, 2017
Dec 16, 2019
Dec 6, 2022

Repository files navigation

ATmega328PB Testing

Hardware

Software

Installation on Arduino IDE 1.8+

  1. Add the following URL to the Arduino Boards Manager (File->Preferences).

    https://github.com/watterott/ATmega328PB-Testing/raw/master/package_m328pb_index.json
    
  2. Update the Arduino AVR Boards to version 1.6.22 or higher via the Boards Manager (Tools->Boards->Boards Manager).

  3. Install the ATmega328PB Boards via the Boards Manager (Tools->Boards->Boards Manager).

Further Infos

Known Issues

Timer 3+4 Output Compare

The output compare will only work if a 1 or 0 is written to the port register depending on the modulation. Futher infos here: http://www.avrfreaks.net/comment/1717946#comment-1717946 and #29

Reset

ATmega328P and ATmega328PB have different thresholds for reset. This can be a problem when using a 5V power supply for the microcontroller and an USB serial adapter with 3.3V logic level on DTR.

  • Reset Input Threshold Voltage (read as 0/low):
    • ATmega328P: 2.1V @ Vcc=5V
    • ATmega328PB: 1.6V @ Vcc=5V

Crystal Oscillator

The ATmega328PB has no full-swing option for the oscillator.

History / Contributions

  • Patch v1.0.1 - Astrobeed, gpb01, PaoloP
  • avr-gcc 4.9.2 for linux64 - sabas1080
  • All Pull Requests...