Editor Version ×

1.Easy to use and quick to get started

2.The process supports design scales of 300 devices or 1000 pads

3.Supports simple circuit simulation

4.For students, teachers, creators


1.Brand new interactions and interfaces

2.Smooth support for design sizes of over 30,000 devices or 100,000 pads

3.More rigorous design constraints, more standardized processes

4.For enterprises, more professional users

Std edition ATmega4808 Development Board M

Profile:ATmega4808 Development Board with Bootloader and Arduino IDE Support

License: CC-BY-SA 3.0

Project source: Cloned from ATmega4808 Development Board

Published Time: 2021-11-23 16:24:33
  • 4.2k
  • 9
  • 4

ATmega4808 Development Board

Development board for the new ATmega4808 series with integrated USB-to-serial converter, 32.768 kHz crystal for the RTC, 3.3V voltage regulator, support for bootloader and Arduino IDE. Due to a similar pinout, the board also works with the new AVR DA/DB family of microcontrollers.


Features of the megaAVR

The ATmega4808 microcontrollers are part of the megaAVR 0-series, which uses the AVR processor with hardware multiplier running at up to 20 MHz from the internal calibrated oscillator. The series uses the latest technologies from Microchip with a flexible and low-power architecture, including Event System and SleepWalking, accurate analog features, and advanced peripherals.

The following microcontrollers (TQFP-32 package) can be used with this development board:

Controller Flash SRAM EEPROM
ATmega808 8 KB 1 KB 256 B
ATmega1608 16 KB 2 KB 256 B
ATmega3208 32 KB 4 KB 256 B
ATmega4808 48 KB 6 KB 256 B

All microcontrollers have the following features:

  • 27 General purpose I/O
  • One 16-bit Timer/Counter type A (TCA) with a dedicated period register and three compare channels
  • Three 16-bit Timer/Counters type B (TCB) with input capture
  • One 16-bit Real-Time Counter (RTC) running from an external crystal or an internal RC oscillator
  • Three USARTs with fractional baud rate generator, auto-baud, and start-of-frame detection
  • Master/slave Serial Peripheral Interface (SPI)
  • Master/slave TWI (I²C) with dual address match,
    • can operate simultaneously as master and slave
    • Standard mode (Sm, 100 kHz)
    • Fast mode (Fm, 400 kHz)
    • Fast mode plus (Fm+, 1 MHz)
  • Event System for core independent and predictable inter-peripheral signaling
  • Configurable Custom Logic (CCL) with up to four programmable Look-up Tables (LUT)
  • One Analog Comparator (AC) with a scalable reference input
  • One 10-bit 150 ksps Analog-to-Digital Converter (ADC) with 12 channels
  • Five selectable internal voltage references: 0.55V, 1.1V, 1.5V, 2.5V, and 4.3V
  • Watchdog Timer (WDT) with Window mode, with a separate on-chip oscillator
  • External interrupt on all general purpose pins



Preparing Arduino IDE and Installing Bootloader

  • Install MegaCoreX
  • Open the Arduino IDE
  • Go to "Tools" -> "Board" -> "MegaCoreX" -> "ATmega4808"
  • Go to "Tools" and set the following board options:
    • Clock: "Internal 20 MHz"
    • Pinout: "32 pin standard"
    • Reset pin: "Reset"
    • Bootloader: "Optiboot (UART0 default pins)"
    • Programmer: "jtag2updi(megaTinyCore)"
  • Connect the UPDI programmer to the UPDI header on the development board. You can find such programmers in my projects or you can use an Arduino Uno as a UPDI programmer. Do NOT use high voltage programming!
  • Go to "Tools" -> "Burn Bootloader"
  • Disconnect the UPDI programmer and connect the development board via USB to your computer
  • Open one of the example sketches and click the "Upload" button

Example Sketches

To test the board and to learn a thing or two about the new megaAVR, four small example sketches are attached.

Sketch Name Description
ATmega4808_Hello_World.ino This sketch flashes the built-in LED at 1 Hz and sends a message once per second via the serial interface, which can be displayed on the serial monitor at 9600 baud.
ATmega4808_RTC.ino This sketch implements a real-time clock using the external 32.768 kHz crystal. Every five seconds the current time and date is sent via the serial interface, which can be displayed on the serial monitor at 9600 baud.
ATmega4808_Blink_PIT.ino One of the new features is the Periodic Interrupt Timer (PIT), which can run on the internal ultra low-power 32.768 kHz oscillator while the CPU is in sleep mode power down. In this sketch, the PIT wakes the sleeping CPU twice per second in order to toggle the built-in LED.
ATmega4808_Blink_CIP.ino One of the coolest new features are the Core Independent Peripherals (CIPs). Peripherals can be connected directly to one another via the Event System (EVSYS) and thus work independently of the CPU. In this example, the built-in LED is flashing while the CPU is in sleep mode power down all the time ... without ever waking up.

Using the AVR DA/DB Family of Microcontrollers

The even more powerful AVR DA/DB family of microcontrollers (TQFP-32 package) can also be used with this board. Some of their features (depending on the model):

  • Up to 128 KB of flash and 16 KB of SRAM
  • Running at up to 24 MHz with internal oscillator (or even more with overclocking)
  • 12-bit Differential Analog-to-Digital Converter (ADC) with 14 channels
  • 10-bit Digital-to-Analog Converter (DAC)
  • 3 Analog Comparators (AC)
  • 2 independent OpAmps with integrated feedback resistor network
  • Zero-Cross Detector (ZCD)
  • Peripheral Touch Controller (PTC) with 22 self-capacitance and 121 mutual capacitance touch channels
  • 4 Multi-Voltage I/O channels capable of bi-directional communication with external devices running at a higher or lower voltage than the MCU itself
  • 3 UART, 2 SPI, 2 I2C
  • 4 16-bit timers
  • Configurable Custom Logic (CCL)
  • Event System (EVSYS)
  • Watchdog Timer (WDT) with Window Mode

In order to be able to use the AVR DA/DB microcontrollers with the Arduino IDE, DxCore must be installed.

References, Links and Notes

  1. MegaCoreX by MCUdude
  2. megaAVR 0-series Family Data Sheet
  3. ATmega4808 Datasheet
  4. TB3262: Getting Started with Writing C-Code for AVR MCUs
  5. TB3213: Getting Started with RTC
  6. AN2451: Getting Started with Core Independent Peripherals
  7. AN2515: AVR Low-Power Techniques
  8. AN2543: Temperature Logger with ATtiny817 and SD Card
  9. Core Independent Peripherals Video by Microchip

IMG_20201122_081520_x.jpg IMG_20201122_081532_x.jpg



This work is licensed under Creative Commons Attribution-ShareAlike 3.0 Unported License. (http://creativecommons.org/licenses/by-sa/3.0/)

design drawing
schematic diagram
1 /
1 /
ID Name Designator Footprint Quantity BOM_Supplier BOM_Supplier Part
1 CH330N U2 SOP-8_150MIL 1 LCSC C108996
2 HDR H2,H1 210S-15X1/2.54 2 LCSC C124373
3 1k R3,R2,R5,R1,R6 0603 5 LCSC C21190
4 UPDI H3 210S-3X1/2.54 1 LCSC C49257
5 ATMEGA4808-AFR U1 TQFP-32_7X7X08P 1 Digi-Key ATMEGA4808-AFRCT-ND
6 AMS1117-3.3 U3 SOT-223 1 LCSC C6186
7 500mA F1 F0603 1 LCSC C210356
8 RESET KEY1 KEY-3.0*6.0 1 LCSC C46491
9 4u7 C9,C12 0603 2 LCSC C19666
10 100n C6,C1,C7,C2,C8 0603 5 LCSC C14663
11 18p C5,C4 0603 2 LCSC C1647
12 1u C10,C11 0603 2 LCSC C15849
13 47u C3 1206 1 LCSC C30300
14 PWR LED1 LED0603 1 LCSC C72041
15 BI LED2 LED0603 1 LCSC C72041
16 Micro USB 5P USB1 MICRO-USB-16-LONG 1 LCSC C21377
17 32.768KHz X1 OSC-SMD_3215 1 LCSC C409356
18 5817 D2 SCHOTTKY-SOD-123 1 LCSC C727113


Project Attachments
Order File name Download times


Project Members
Add to album ×


reminder ×

Do you need to add this project to the album?


周一至周五 9:00~18:00
  • 0755 - 2382 4495
  • 153 6159 2675


周一至周五 9:00~18:00
  • 立创EDA微信号


  • QQ交流群


  • 立创EDA公众号