Microchip Technology ATmega4809 Xplained Pro, megaAVR 0 Getting Started

Features

AN2653
Getting Started with megaAVR® 0-Series
Getting Started with megaAVR® 0-series
Getting Started with ATmega4809 Xplained Pro and Atmel® Studio 7.0

Introduction

Author: Irun Walberg, Microchip Technology Inc.
This application note outlines how to get started with the megaAVR® 0-series
Refer to the data sheet for further information on the differences between the megaAVR® 0-series devices.
devices.
© 2018 Microchip Technology Inc.
Application Note
DS00002653A-page 1
AN2653

Table of Contents

Features.......................................................................................................................... 1
Introduction......................................................................................................................1
1. Relevant Devices.......................................................................................................3
1.1. megaAVR® 0-Series..................................................................................................................... 3
2. Get the Device Datasheet......................................................................................... 4
3. Get the Tools............................................................................................................. 5
3.1. Get the ATmega4809 Xplained Pro Evaluation Kit.......................................................................5
3.2. Get the STK600 Starter Kit...........................................................................................................7
3.3. Get Source Code from Atmel | START.........................................................................................8
3.4. Get Atmel Studio 7.0.................................................................................................................... 9
3.5. Get IAR Embedded Workbench for AVR......................................................................................9
3.6. Get Device Support...................................................................................................................... 9
4. Atmel Studio Users Getting Started.........................................................................10
4.1. Atmel Studio with ATmega4809 Xplained Pro............................................................................10
4.2. Atmel Studio with STK600..........................................................................................................15
5. What's Next............................................................................................................. 21
6. Revision History.......................................................................................................22
The Microchip Web Site................................................................................................ 23
Customer Change Notification Service..........................................................................23
Customer Support......................................................................................................... 23
Microchip Devices Code Protection Feature................................................................. 23
Legal Notice...................................................................................................................24
Trademarks................................................................................................................... 24
Quality Management System Certified by DNV.............................................................25
Worldwide Sales and Service........................................................................................26
© 2018 Microchip Technology Inc.
Application Note
DS00002653A-page 2

1. Relevant Devices

48KB
32KB
16KB
8KB
4KB
28/32 48
Pins
Flash
ATmega3208
ATmega4808
ATmega3209
ATmega4809
This chapter lists the relevant devices for this document.

1.1 megaAVR® 0-Series

The figure below shows the megaAVR® 0-series devices, laying out pin count variants and memory sizes:
Vertical migration is possible without code modification, as these devices are fully pin and feature compatible.
Horizontal migration to the left reduces the pin count and therefore the available features.
Figure 1-1. megaAVR® 0-Series Overview
AN2653
Relevant Devices
Devices with different Flash memory size typically also have different SRAM and EEPROM.
© 2018 Microchip Technology Inc.
Application Note
DS00002653A-page 3

2. Get the Device Datasheet

Web pages
http://www.microchip.com/wwwproducts/en/ATmega3208
http://www.microchip.com/wwwproducts/en/ATmega3209
http://www.microchip.com/wwwproducts/en/ATmega4808
http://www.microchip.com/wwwproducts/en/ATmega4809
Documents/files
megaAVR 0-series Manual (.pdf)
ATmega3208/4808 – 28-pin Datasheet (.pdf)
ATmega3208/4808 – 32-pin Datasheet (.pdf)
ATmega3209/4809 – 48-pin Datasheet (.pdf)
megaAVR 0-series Errata (.pdf)
The documentation for the megaAVR® 0-series is split into three document types:
Manual (includes all device independent descriptions of the device)
Datasheet1 (includes all device dependent descriptions of the device, number of peripherals, pinout and electrical characteristics)
Errata (includes all known erratas for the device)
AN2653
Get the Device Datasheet
1
For devices that are future products, the product brief is available instead of the datasheet.
© 2018 Microchip Technology Inc.
Application Note
DS00002653A-page 4

3. Get the Tools

DEBUG USB
POWER HEADER
EXTENSION 1 HEADER
EXTENSION 2 HEADER
EXTENSION 3 HEADER
ATmega4809
RESET BUTTON
CURRENT MEASUREMENT
HEADER
SW0 USER BUTTON
USER LED0
mikroBUS™ socket
AVR DEBUG
FOR EXTERNAL
DEBUGGER
ATECC508A
CRYPTO DEVICE
32.768kHz Crystal
TARGET VOLT AGE
SELECT HEADER
Atmel Studio 7.0, which uses GCC compiler, is the preferred IDE to get started with megaAVR® 0-series.

3.1 Get the ATmega4809 Xplained Pro Evaluation Kit

Figure 3-1. ATmega4809 Xplained Pro Kit
AN2653
Get the Tools
Web page: http://www.microchip.com/developmenttools/productdetails.aspx?partno=atmega4809-xpro
Get the kit: http://www.microchipdirect.com/ProductSearch.aspx?Keywords=atmega4809-xpro
© 2018 Microchip Technology Inc.
Application Note
DS00002653A-page 5
Document/file:
ATmega4809 Xplained Pro (.pdf)
Key Features
ATmega4809 Microcontroller
Selectable Target Voltage
3.3V
5.0V (USB / external power)
One Mechanical Reset/User Programmable Button
One Mechanical User Programmable Button
One Yellow User Programmable LED
ATECC508 CryptoAuthentication™ device
32.768 kHz Crystal
Three Xplained Pro Extension Headers
One mikroBUS™ Socket
10-pin, 50-mil AVR Debug Connector with UPDI
Embedded Debugger
Auto-ID for board identification in Atmel Studio
One yellow status LED
One green board power LED
Symbolic debug of complex data types including scope information
Programming and debugging, including power measurements
Data Gateway Interface: SPI, I2C, four GPIOs
Virtual COM port (CDC)
USB Powered
AN2653
Get the Tools
The ATmega4809 Xplained Pro user guide covers how to power the kit and the detailed information on board components, extension interface, and the hardware guide.
© 2018 Microchip Technology Inc.
Application Note
DS00002653A-page 6

3.2 Get the STK600 Starter Kit

Figure 3-2. STK600 Starter Kit
AN2653
Get the Tools
Table 3-1. STK600 Device Support for megaAVR 0-Series
Device Routing Card Socket Card
ATmega3209 STK600-RC048M-107 STK600-QFN48
ATmega3209 STK600-RC048M-107 STK600-TQFP48
ATmega4809 STK600-RC048M-107 STK600-QFN48
ATmega4809 STK600-RC048M-107 STK600-TQFP48
For device support for other devices, refer to: http://www.microchip.com/STK600_Starter_Kit-
Users_Guide
Web page: http://www.microchip.com/ATSTK600
Get the kit: http://www.microchipdirect.com/ProductSearch.aspx?Keywords=ATSTK600
Document/file:
STK600 User Guide (.pdf)
Key features
AVR Studio 4/AVR32 Studio/AVR Studio 5/Atmel Studio Compatible
USB Interface to PC for Programming and Control
Powered from USB Bus or from an External 10-15V DC Power Supply
Adjustable Target VCC (0-5.5V)
Two Adjustable Reference Voltages with High Accuracy (0-5.0V, 10mV res.)
Clock Oscillator, Adjustable On-The-Fly from Atmel Studio (0-50MHz, 0.1% res.)
Serial In-System Programming (ISP) of tinyAVR® and megaAVR® Devices
© 2018 Microchip Technology Inc.
Application Note
DS00002653A-page 7
AN2653
Get the Tools
PDI Programming of AVR XMEGA® Devices
JTAG Programming of megaAVR, AVR XMEGA, and AVR UC3 Devices
aWire Programming of AVR UC3 Devices
ISP and JTAG Programming of AVR Devices in External Target Systems
Flexible Routing and Socket Card System for Easy Mounting of all Supported Devices
Eight Push Buttons for General Use
Eight LEDs for General Use
All AVR I/O Ports are Easily Accessible through Pin Header Connectors
Expansion Connectors for Plug-In Modules and Prototyping Area
On-Board 4Mb DataFlash for Non-volatile Data
USB mini-AB (On-The-Go) Connector for AVR Devices with USB
PHY and DSUB-9 Connector for RS-232 Interface
PHY and DSUB-9 Connector for CAN Bus
PHY and Header for LIN Bus
Device Board with an ATmega2560 AVR Microcontroller Included
The STK600 User Guide describes how to power the kit, the detailed information on board components, extension interface, and the hardware guide.

3.3 Get Source Code from Atmel | START

The example code is available through Atmel | START, which is a web-based tool that enables configuration of application code through a Graphical User Interface (GUI). The code can be downloaded for both Atmel Studio 7.0 and IAR Embedded Workbench® via the direct example code-link(s) below or the BROWSE EXAMPLES button on the Atmel | START front page.
Atmel | START web page: http://microchip.com/start
Example Code
Finding example code for devices in the megaAVR 0-series, can be done by searching for the device name, e.g. ATmega4809, in the Atmel | START example browser.
Press User guide in Atmel | START for details and information about example projects. The User guide button can be found in the example browser, and by clicking the project name in the dashboard view within the Atmel | START project configurator.
Atmel Studio
Download the code as an .atzip file for Atmel Studio from the example browser in Atmel | START, by clicking DOWNLOAD SELECTED EXAMPLE. To download the file from within Atmel | START, click EXPORT PROJECT followed by DOWNLOAD PACK.
Double-click the downloaded .atzip file and the project will be imported to Atmel Studio 7.0.
IAR Embedded Workbench
For information on how to import the project in IAR Embedded Workbench, open the Atmel | START user guide, select Using Atmel Start Output in External Tools, and IAR Embedded Workbench. A link to the Atmel | START user guide can be found by clicking About from the Atmel | START front page or Help And Support within the project configurator, both located in the upper right corner of the page.
© 2018 Microchip Technology Inc.
Application Note
DS00002653A-page 8
Loading...
+ 18 hidden pages