ATmega328PB Xplained Mini Preface This user guide describes how to get started with the ATmega328PB Xplained Mini evaluation kit. The evaluation kit is a hardware platform to evaluate the ATmega328PB microcontroller. The on-board mini embedded debugger provides seamless integration with Atmel Studio. The kit provides access to the features of the ATmega328PB enabling easy integration of the device in a custom design.
ATmega328PB Xplained Mini Introduction Features The ATmega328PB Xplained Mini evaluation kit provides a development platform for the ATmega328PB. Key Features • On-board debugger with full source-level debugging support in Atmel Studio • Auto-ID for board identification in Atmel Studio •...
Page 5
ATmega328PB Xplained Mini Figure 1-1. ATmega328PB 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)
Page 7
ATmega328PB Xplained Mini 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 ATmega328PB and Interface to ISP, click Apply. Select "Memories", locate the source .hex or .elf file, and click Program.
ATmega328PB Xplained Mini 2.3.2 Debugging the Target Using mEDBG Using the Embedded Debugger on the ATmega328PB Xplained Mini board to debug the ATmega328PB via debugWIRE. Start Atmel Studio. Connect the Xplained Mini USB to the PC. Open your project. Click the "Project" tab and select the project "properties", click the "Tools" tab, and select mEDBG as debugger and debugWIRE as interface.
Connect the External Programmer USB to the PC. Connect the External Programmer to the ATmega328PB Xplained Mini board ISP connector. Go to Atmel Studio: Click the Tools tab, select Device Programming, and select the External Programmer connected as Tool with Device as ATmega328PB and Interface to ISP, click Apply.
Launch Atmel Studio. Short strap J102. Open the programming dialog, select the bootloader in the tool menu. Connect the ATmega328PB Xplained Mini board USB connector to the PC. Select Device = ATmega32U4 (Device - Select). Select USB communication (Ctrl+U). Select the memory area to program (use the toggle memory button).
COM port unusable. The DTR signal is automatically set by some terminal software, but it may have to be manually enabled in your terminal. The mEDBG controls one status LED on the ATmega328PB Xplained Mini. The table below shows how the LED is controlled in different operation modes.
ATmega328PB 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. No configuration is required for default operation.
ATmega328PB Xplained Mini Info: The fuse filter prevents users from changing critical fuses using Atmel Studio; however, it does not prevent users from setting fuses freely using the command line interface atprogram bundled with Atmel Studio. 3.2.3 mEDBG Command Line Interface...
Writing the FUSE bit to 1 enables fuse protection when using Atmel Studio. The fuse protection prevents modification of specific fuses in the ATmega328PB target device that could make the mEDBG on the ATmega328PB Xplained Mini not usable. Writing the FUSE bit to 0 removes all protection of fuses in the ATmega328PB target device.
Power Sources The ATmega328PB 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.
Arduino shields can be mounted in the marked positions (J200, J201, J202, J203, and J204). Warning: The ATmega328PB Xplained Mini connects VCC_TARGET to the Arduino SPI connector, while all Arduino boards connect VCC_P5V0 to the same pin. The VCC_TARGET may be either 3.3V or 5.0V depending on the configuration of the kit if the kit is configured for 3.3V operation.
ATmega328PB pin Function RXD (ATmega328PB USART Input Pin) TXD (ATmega328PB USART Output Pin) 4.3.2 Board Power Header J202 enables connection to the ATmega328PB Xplained Mini power system. Table 4-3. J202 Power Header J202 pin Signal Description VCC_TARGET The power source selected for the target. (Select by J301.)
ATmega328PB Xplained Mini J202 pin Signal Description VCC_VIN The external power source connection. (Connected to J300 pin 3.) 4.3.3 Target Analog I/O The ATmega328PB ADC input pins are available in the J203 header. AREF is available on J200, pin 8.
ATmega328PB Xplained Mini ATmega328PB pin Grid position Target Peripherals The ATmega328PB Xplained Mini evaluation kit has one push button, one yellow LED, and two QTouch buttons connected to the ATmega328PB. Figure 4-3. ATmega328PB Xplained Mini Peripherals 4.4.1 Push Button A general purpose push button, SW200, is connected to PB7, as shown below. When the button is pressed, PB7 is connected to GND and is therefore active low.
D200 LED_12 EL17-21UYC/A3 4.4.3 QTouch Buttons ATmega328PB Xplained Mini implements two QTouch buttons marked QTBTN1 and QTBTN2 in the board silkscreen. To get started using the QTouch buttons open the QTouch Mega328PB Xplained Mini Selfcap Example Atmel START (http://start.atmel.com/#examples). Table 4-7. QTouch Buttons Wiring...
ATmega328PB Xplained Mini Table 4-8. J104 USART Header J104 pin ATmega32U4 ATmega328PB Function 1 - USART TxD PD3 PD0 (RxD) TxD out from ATmega32U4 2 - USART RxD PD2 PD1 (TxD) RxD in to ATmega32U4 4.5.2 mEDBG JTAG Interface The mEDBG (ATmega32U4) JTAG interface is available for programming and debugging of the ATmega32U4 on the 50-mil header in the upper right corner of the kit.
ATmega328PB Xplained Mini Using pin 11 to 20 enables connection of the 10-pin legacy header used on the RZ600 wireless modules and the 10-pin Xplained sensor modules. The general bus connections for an Xplained Pro Extension board are indicated in the table below.
The remainder of this section documents the revision 3 implementation. Up to four QTouch buttons are available on the ATmega328PB Xplained Mini board. The QTouch area can be configured as buttons or as a limited slider. For a typical button or slider reference design use the QT1 Xplained Pro extension.
Page 28
ATmega328PB Xplained Mini In the default HW configuration, the QTouch area can be configured in SW as three buttons or as a limited slider. To get four buttons the S touch area can be connected to e.g. PC2 by removing the 0Ω resistor R214 and adding a wire or a 100 kΩ...
ATmega328PB Xplained Mini Document Revision History Document Date Comment revision 09/2017 Converted to Microchip format and replaced the Atmel document number 42469B. Updated the user guide to reflect revision 4 of the kit. Restructured the document. Added the Hardware Revision History and Known Issues chapter.
ATmega328PB Xplained Mini The Microchip Web Site Microchip provides online support via our web site at http://www.microchip.com/. This web site is used as a means to make files and information easily available to customers. Accessible by using your favorite Internet browser, the web site contains the following information: •...
SQTP is a service mark of Microchip Technology Incorporated in the U.S.A. Silicon Storage Technology is a registered trademark 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.
ATmega328PB Xplained Mini ISBN: 978-1-5224-2118-4 Quality Management System Certified by DNV ISO/TS 16949 Microchip received ISO/TS-16949:2009 certification for its worldwide headquarters, design and wafer fabrication facilities in Chandler and Tempe, Arizona; Gresham, Oregon and design centers in California ® ®...
Need help?
Do you have a question about the ATmega328PB Xplained Mini and is the answer not in the manual?
Questions and answers