Atmel 42287 ATmega328P Xplained Mini User Guide - UserGuide PDF
Atmel 42287 ATmega328P Xplained Mini User Guide - UserGuide PDF
USER GUIDE
Introduction
®
This user guide describes how to get started with the Atmel ATmega328P
Xplained Mini board. The ATmega328P Xplained Mini evaluation kit is a
hardware platform to evaluate the Atmel ATmega328P microcontroller. The
evaluation kit comes with a fully integrated debugger that provides seamless
integration with Atmel Studio 6.2 (and later version). The kit provides access
to the features of the ATmega328P enabling easy integration of the device in
a custom design.
Atmel-42287D-atmega328p-xplained-mini_User Guide-10/2015
Table of Contents
Introduction......................................................................................................................1
1. Getting Started...........................................................................................................3
1.1. Features....................................................................................................................................... 3
1.2. Design Documentation and Related Links................................................................................... 3
1.3. Xplained Mini Quick Start............................................................................................................. 3
1.3.1. Connect to Atmel Studio................................................................................................ 3
1.3.2. Connect to the COM Port.............................................................................................. 3
1.4. Programming and Debugging...................................................................................................... 4
1.4.1. Programming the Target Using mEDBG........................................................................4
1.4.2. Debugging the Target Using mEDBG............................................................................ 5
1.4.3. Programming the Target Using an External Programmer..............................................6
1.4.4. Programming the ATmega32U4 Using an External Programmer.................................. 6
1.4.5. Programming the ATmega32U4 Using a Bootloader.....................................................7
1.5. Board Assembly........................................................................................................................... 7
1.5.1. Custom Assembly..........................................................................................................7
1.5.2. Standalone Node........................................................................................................... 7
1.5.3. Connecting an Arduino Shield....................................................................................... 7
1.6. mEDBG Command Line Interface................................................................................................8
1.6.1. mEDBG Low Power Modes........................................................................................... 8
1.6.2. mEDBG Fuse Filter........................................................................................................8
1.6.3. How to Issue Commands...............................................................................................8
1.1. Features
The ATmega328P Xplained Mini evaluation board provides a development platform for the Atmel
ATmega328P.
Key Features
• On-board debugger with full source-level debugging support in Atmel Studio
• Auto-ID for board identification in Atmel Studio
• Access to all signals on target MCU
• One green mEDBG status LED
• One yellow user LED
• One mechanical user push button
• Virtual COM port (CDC)
• External target CLK 16MHz at 5V, 8MHz at 3.3V
• USB powered
• 3.3V regulator
• Arduino shield compatible foot prints
• Target ISP bus header foot print
• Xplained Pro extension headers can easily be strapped in
4. NOTE: If a previous debug session was not closed by selecting "Disable debugWIRE and Close" in
the Debug menu, the DWEN fuse will be enabled and the target will still be in debug mode, i.e. it
will not be possible to program the target using the ISP.
5. If the source file contains fuse settings, select "Production file" and upload the .elf file to program
the fuses.
Important: If not exiting debug mode by selecting "Disable debugWIRE and Close" in the
Debug menu, the DWEN fuse will be enabled and the target will still be in debug mode, i.e. it
will not be possible to program the target using ISP.
Mode Command External CLK COM port mEDBG program mEDBG debug
Sleep 0xFB (bit2=0) disabled disabled disabled disabled
1MHz 0xFD (bit1=0) 1MHz enabled useless useless
Factory settings 0xFF 16MHz (@5V) enabled enabled enabled
8MHz (@3.3V)
Tip: Use the BOD LEVEL fuse to avoid the following challenges:
For the CPU to successfully decode and execute instructions, the supplied voltage must always
stay above the minimum voltage level set by the chosen operating frequency.
When supplied voltage drops below this level, the CPU may start to execute some instructions
incorrectly. The result is unexpected activity on the internal data and control lines.
This activity may cause CPU Registers, I/O Registers, and Data Memories to get corrupted.
To avoid these problems, the CPU should be prevented from executing code during periods of
insufficient supply voltage.
2.5. mEDBG
The ATmega328P Xplained Mini board has an embedded debugger/programmer enabling debugging and
programming of the ATmega328P without any additional external equipment.
Tip: The External Clock can be set to 1MHz to save power using the mEDBG command line
interface.
Tip: There is a test point marked EXT.CLK enabling easy measuring and/or connection to the
CLK signal.
The VBUS has a resettable PTC fuse (F100), with a hold current of 0.5A and a trip current of 1.0A to
protect the USB host device.
The SPI bus signals are made available close to the header at row J and K, enabling easy connection to
header pin 15 to 18.
Using Pin 11 to 20 enables connection of the 10-pin connector used on the RZ600 wireless modules and
the 10-pin Xplained sensor modules.
The general bus connections for an Xplained PRO Extension board is indicated in the table below,
detailed wiring can be found in the selected extension board documentation.
Table 2-12 Extension Header Typical Signals
® ® ® ®
Atmel , Atmel logo and combinations thereof, Enabling Unlimited Possibilities , AVR , QTouch , and others are registered trademarks or trademarks of Atmel
Corporation in U.S. and other countries. Other terms and product names may be trademarks of others.
DISCLAIMER: The information in this document is provided in connection with Atmel products. No license, express or implied, by estoppel or otherwise, to any
intellectual property right is granted by this document or in connection with the sale of Atmel products. EXCEPT AS SET FORTH IN THE ATMEL TERMS AND
CONDITIONS OF SALES LOCATED ON THE ATMEL WEBSITE, ATMEL ASSUMES NO LIABILITY WHATSOEVER AND DISCLAIMS ANY EXPRESS, IMPLIED
OR STATUTORY WARRANTY RELATING TO ITS PRODUCTS INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTY OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT,
CONSEQUENTIAL, PUNITIVE, SPECIAL OR INCIDENTAL DAMAGES (INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS AND PROFITS, BUSINESS
INTERRUPTION, OR LOSS OF INFORMATION) ARISING OUT OF THE USE OR INABILITY TO USE THIS DOCUMENT, EVEN IF ATMEL HAS BEEN ADVISED
OF THE POSSIBILITY OF SUCH DAMAGES. Atmel makes no representations or warranties with respect to the accuracy or completeness of the contents of this
document and reserves the right to make changes to specifications and products descriptions at any time without notice. Atmel does not make any commitment to
update the information contained herein. Unless specifically provided otherwise, Atmel products are not suitable for, and shall not be used in, automotive
applications. Atmel products are not intended, authorized, or warranted for use as components in applications intended to support or sustain life.
SAFETY-CRITICAL, MILITARY, AND AUTOMOTIVE APPLICATIONS DISCLAIMER: Atmel products are not designed for and will not be used in connection with any
applications where the failure of such products would reasonably be expected to result in significant personal injury or death (“Safety-Critical Applications”) without
an Atmel officer's specific written consent. Safety-Critical Applications include, without limitation, life support devices and systems, equipment or systems for the
operation of nuclear facilities and weapons systems. Atmel products are not designed nor intended for use in military or aerospace applications or environments
unless specifically designated by Atmel as military-grade. Atmel products are not designed nor intended for use in automotive applications unless specifically
designated by Atmel as automotive-grade.