Hi Guys! I welcome you on board. Happy to see you around. In this post today, I’ll walk you through the Introduction to ATmega4809.
The ATmega4809 is a type of microcontroller that belongs to the megaAVR® 0-series. It features an AVR® processor with a clock speed running at up to 20 MHz. It comes with a Flash memory size up to 48 KB, 256 bytes of EEPROM, and 6 KB of SRAM. It is available in 28-, 32-, 40-, or 48-pin packages.
I suggest you buckle up as I’ll detail the complete Introduction to ATmega4809 covering datasheet, pinout, features, power ratings, and applications.
Let’s get started.
Introduction to ATmega4809
The ATmega4809 microcontroller belongs to the megaAVR® 0-series that contains an AVR processor.
The series carries low power features with the latest core independent peripherals.
The ATmega4809 utilizes Microchip's latest technologies with an efficient and low-power architecture including SleepWalking, Event System, and accurate analog features.
This device carries Single-pin Unified Program Debug Interface (UPDI) that is a bi-directional single wire interface and needs a programmer that supports UPDI.
The clock speed is 20MHz which is required for the synchronization of all internal functions.
The microcontroller program is stored in the flash memory which is around 48KB. While EEPROM and SRAM are 256bytes and 6KB respectively. Write/Erase endurance for flash memory is 10,000 cycles and for EEPROM is 100,000 cycles.
SRAM memory is used to produce and manipulate variables when this runs. The EEPROM memory is a non-volatile memory that stays stored in the board even when board power is removed.
There are 4 UART communication protocols and one SPI and one I2C communication protocol are available on the microcontroller.
The UART is a serial communication protocol that carries two pins Rx and Tx. The Rx is a receiving pin that is used to receive the serial data while Tx is a transmission pin used to transfer serial data.
I2C is a two-wire communication protocol that carries two pins SDL and SCL. The SDL is a serial data line that carries the data while SCL is a serial clock line that is used for the synchronization of all data transfer over an I2C bus.
SPI stands for a serial peripheral interface that is mainly used to develop the communication between the controller and other sensors and shift registers. Two pins: MISO (Master Input Slave Output) and MOSI (Master Output Slave Input) are incorporated for SPI communication. These pins are installed to receive or send data by the controller.
This device comes with three sleep modes: Idle, standby, and power down. The sleep mode is the mode when nothing happens. Simply put, during sleep mode device remains in rest mode. As nothing taking place during the sleep mode, at that point the device consumes the lowest power and the crystal oscillator is turned off.
The device also offers a power-on-reset (POR) and brown-out-detection (BOD). The power-on-reset just resets the device when the signal is provided to the device.
The brown-out-detection is a protection circuit that monitors when the supply voltage goes below down a certain level and consequently puts the device into a reset state which leads to proper startup when power is applied back again.
The controller also contains 16-channel 10-bit ADC and an analog comparator.
Other features include configurable custom logic, 5x16 bit timer, cyclical redundancy check, watchdog timer, and hardware multiplier.
Before you incorporate this device into your electrical project, it’s wise to scan through the datasheet of the component that features the main characteristics of the device. Click the link below and download the datasheet of ATmega4809.
ATmega4809 comes in different pin mappings mainly dependent on the current hardware.
48 Pin Package
It is the standard pin package that comes with 9 PWM pins and a flash memory of 48KB. Know that this 48-pin package is only available on ATmega4809 and ATmega3209.
This package comes with 4 UART communication protocols and one SPI protocol.
40 Pin Package
This pinout is almost identical to the 48-pin package with lesser pins and it comes with 8 PWM pins.
This pinout is reserved for ATmega4809 only. Like a 48-pin package, this pinout carries 4 UART and one SPI communication protocol.
This pinout is a robust and clean design that comes with 8 PWM pins.
Know that this pinout is not compatible with Arduino shields.
This is the 28-pin package that comes with 8 PWM pins and a clock frequency of around 20MHz. Again, this pinout is also not compatible with Arduino shields.
The 28-pin package comes with 3 UART and one SPI communication protocol.
The Arduino Uno WiFi Rev2 hardware incorporates this pinout. It comes with 6 PWM pins. Any code written for Arduino UNO WiFi Rev 2 is equally compatible with this pinout. It is important to note that Uno WiFi pinout is only reserved for ATmega3209/4809.
The Arduino Nano Every incorporates this pinout. The code written for Arduino Nano Every can run for this pinout without any modifications. You’ll get this pinout when you select ATmega4809 from the Arduino IDE software.
The following figure shows the pinout diagram of ATmega4809 that comes in a 48-pin package.
No. of pins = 48
Flash memory = 48KB
SRAM = 6KB
EEPROM = 256 bytes
Also includes Hardware multiplier
Three sleep modes: Idle, Standby, Power Down
Event System for core independent and predictable inter-peripheral signaling
Comes with Power-On Reset (POR) and Brown-Out Detection (BOD)
Contains Single pin programming and debugging interface (UPDI)
Carries 16 Channel 10-bit ADC with Voltage Reference
Features Analog Comparator (AC) and Watchdog Timer
Configurable Custom Logic (CCL) with up to four programmable Look-up Tables (LUT)
Five selectable internal voltage references: 0.55V, 1.1V, 1.5V, 2.5V, and 4.3V
Employed in high responsive command and control applications.
Used in embedded systems and real-time control systems.
Used in industrial automation and home automation.
That’s all for today. I hope you find this article helpful. If you have any questions, you can ask me in the section below. I’d love to help you the best way I can. You are most welcome to share your valuable suggestions and feedback around the content we share so we keep producing quality content based on your exact needs and requirements. Thank you for reading the article.
I am Syed Zain Nasir, the founder of The Engineering Projects (TEP). I am a
programmer since 2009 before that I just search things, make small projects and now I am sharing my
knowledge through this platform. I also work as a freelancer and did many projects related to
programming and electrical circuitry. My Google Profile+Follow