ATmega328P Xplained Mini ATmega328P Xplained Mini Preface This user guide describes how to get started with the ATmega328P Xplained Mini evaluation kit. The evaluation kit is a hardware platform to evaluate the ATmega328P microcontroller. The on-board mini embedded debugger provides ®...
ATmega328P Xplained Mini Introduction Introduction Features The ATmega328P Xplained Mini evaluation kit provides a development platform for the ATmega328P. Key Features ® • On-board Debugger With Full Source-Level Debugging Support In Atmel Studio/MPLAB ® • Auto-ID For Board Identification In Atmel Studio/MPLAB •...
Page 4
ATmega328P Xplained Mini Introduction Figure 1-1. ATmega328P Xplained Mini Headers and Connectors Power CDC UART Power source Status Micro USB Target power mEDBG Ground (J104) (J300) Con nector (J301) (ATmega32U4) Target I/O Shared I/Os Digital I/O High (J200) ANALOG (J203) ANALOG (J203)
2.3.1 Programming the Target Using mEDBG Using the Embedded Debugger on the ATmega328P Xplained Mini board to program the ATmega328P. Connect the Xplained Mini USB to the PC. Go to Atmel Studio: Click the Tools tab, select Device Programming, and select the connected mEDBG as Tool with Device as ATmega328P and Interface to ISP, click Apply.
Page 6
ATmega328P Xplained Mini Getting Started Select “Memories”, locate the source .hex or .elf file, and click Program. 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 interface.
Page 7
ATmega328P Xplained Mini Getting Started 2.3.2 Debugging the Target Using mEDBG Using the Embedded Debugger on the ATmega328P Xplained Mini board to debug the ATmega328P via debugWIRE. Start Atmel Studio. Connect the Xplained Mini USB to the PC. Open your project.
Page 9
ATmega328P Xplained Mini Getting Started Select Device = ATmega32U4 (Device - Select). Select USB communication (Ctrl+U). Select the memory area to program (use the toggle memory button). Select Load Hex file (Ctrl+L). Select Programming Options. 10. Click “Run”, observe the status in the status field.
ATmega328P Xplained Mini Xplained Mini Figure 3-1. External Clock Footprint The mEDBG CPU clock frequency depends on the selected voltage, see the table below. Table 3-2. CPU Clock vs. Voltage Target Voltage mEDBG CPU Clock 3.3V 8 MHz 5.0V 16 MHz mEDBG Configuration The operation of the mEDBG can be configured by writing registers in the mEDBG.
The mEDBG firmware is updated through the programming dialog in Atmel Studio. If you are unable to upgrade the mEDBG firmware on your ATmega328P Xplained Mini, you can try the command line utility atfw.exe provided with the Atmel Studio. atfw.exe is located in the atbackend folder in your Atmel Studio install location.
ATmega328P Xplained Mini and their connections to the ATmega328P. The tables of connections in the sections below also describe which signals are shared between the headers and on-board functionality. The figure below shows the assembly drawing of the ATmega328P Xplained Mini to help the identification of components.
Power Sources The ATmega328P Xplained Mini kit can be powered by a USB or an external voltage input VIN. The default power source is 5.0V from a USB. The USB port is protected with a 500 mA PTC resettable fuse.
ATmega328P Pin Function RXD (ATmega328P USART Input Pin) TXD (ATmega328P USART Output Pin) 4.3.2 Board Power Header The J202 header enables connection to the ATmega328P Xplained Mini power system. Table 4-3. J202 Power Header J202 Pin Signal Description VCC_TARGET The power source selected for the target (selected by J301) RESET_SENSE This is a RESET signal monitored by the mEDBG.
Page 18
ATmega328P Xplained Mini Hardware User Guide Figure 4-3. Peripherals 4.4.1 Push Button A general purpose push button, SW200, is connected to PB7. Figure 4-4. Push Button USER BUTTON VCC_TARGET C204 100n 4.4.2 User LED There is one yellow LED, D200, available for use by the application SW.
D200 LED_12 EL17-21UYC/A3 mEDBG The ATmega328P Xplained Mini board has an embedded debugger/programmer enabling debugging and programming of the ATmega328P without any additional external equipment. 4.5.1 mEDBG COM Port Connection The mEDBG provides a CDC COM port connection when connected to a USB host device.
ATmega328P Xplained Mini Hardware User Guide ...continued J100 Pin Signal Name Description RESET Connected to ATmega32U4 only Extension Header Area The marked area on the grid I7 to R8 can be used for strapping in an Xplained Pro extension header or a 10-pin legacy Xplained/RZ600 header.
ATmega328P Xplained Mini Hardware User Guide ...continued Signal Name Signal Description IRQ/GPIO Interrupt request line and/or general purpose I/O SPI_SS_B/ GPIO Slave B select for SPI and/or general purpose I/O I2C_SDA Data line for I C interface I2C_SCL Clock line for I...
ATmega328P Xplained Mini Document Revision History Document Revision History Doc. Rev. Date Comment 02/2020 Removed section covering mEDBG command line interface as it was obsolete 09/2017 Converted to Microchip format and replaced the Atmel document number 42287C. Restructured the user guide. Added the 5.
ATmega328P Xplained Mini The Microchip Website Microchip provides online support via our website at http://www.microchip.com/. This website is used to make files and information easily available to customers. Some of the content available includes: • Product Support – Data sheets and errata, application notes and sample programs, design resources, user’s guides and hardware support documents, latest software releases and archived software •...
The Adaptec logo, Frequency on Demand, Silicon Storage Technology, and Symmcom are registered trademarks of Microchip Technology Inc. in other countries. GestIC is a registered trademark of Microchip Technology Germany II GmbH & Co. KG, a subsidiary of Microchip Technology Inc., in other countries.
Need help?
Do you have a question about the ATmega328P Xplained Mini and is the answer not in the manual?
Questions and answers