Advertisement

Quick Links

ATmega168PB Xplained Mini
ATmega168PB Xplained Mini

Preface

This user guide describes how to get started with the ATmega168PB Xplained Mini evaluation kit. The
evaluation kit is a hardware platform to evaluate the ATmega168PB microcontroller. The on-board mini
embedded debugger provides seamless integration with Atmel Studio. The kit provides access to the
features of the ATmega168PB enabling easy integration of the device in a custom design.
User Guide
DS50002636A-page 1
©
2017 Microchip Technology Inc.

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ATMEGA168PB-XMINI and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Microchip Technology ATMEGA168PB-XMINI

  • Page 1: Preface

    ATmega168PB microcontroller. The on-board mini embedded debugger provides seamless integration with Atmel Studio. The kit provides access to the features of the ATmega168PB enabling easy integration of the device in a custom design. User Guide DS50002636A-page 1 © 2017 Microchip Technology Inc.
  • Page 2: Table Of Contents

    Target Peripherals........................20 4.4.1. Push Button......................... 20 4.4.2. User LED........................20 4.5. mEDBG............................21 4.5.1. mEDBG COM Port Connection................... 21 4.5.2. mEDBG JTAG Interface....................21 4.6. Extension Header Area......................22 4.7. Factory Programmed........................23 User Guide DS50002636A-page 2 © 2017 Microchip Technology Inc.
  • Page 3 The Microchip Web Site....................26 Customer Change Notification Service................26 Customer Support......................26 Microchip Devices Code Protection Feature..............26 Legal Notice........................27 Trademarks........................27 Quality Management System Certified by DNV.............28 Worldwide Sales and Service..................29 User Guide DS50002636A-page 3 © 2017 Microchip Technology Inc.
  • Page 4: Introduction

    Arduino shield compatible footprints • Target SPI bus header footprint • Xplained Pro extension headers can easily be strapped in Board Overview A brief overview of the default kit configuration, headers, and connectors. User Guide DS50002636A-page 4 © 2017 Microchip Technology Inc.
  • Page 5 1) Details on how to change the power settings are described in Power Sources. 2) Details on the mEDBG clock are described in Xplained Mini Clock Output. 3) Debugging through debugWIRE may be disabled if the internal oscillator is used. User Guide DS50002636A-page 5 © 2017 Microchip Technology Inc.
  • Page 6: Getting Started

    Programming and Debugging 2.3.1 Programming the Target Using mEDBG Using the Embedded Debugger on the ATmega168PB Xplained Mini board to program the ATmega168PB. User Guide DS50002636A-page 6 © 2017 Microchip Technology Inc.
  • Page 7 If the source file contains fuse settings, select "Production file" and upload the .elf file to program the fuses. Select "Fuses" to program the fuses manually. Set the fuse(s) and click "Program". Recommended fuse settings: User Guide DS50002636A-page 7 © 2017 Microchip Technology Inc.
  • Page 8: Debugging The Target Using Medbg

    A debug session is started with a break in main, the debugging can start. To exit debug mode, select "Disable debugWIRE and Close" in the Debug tab. This will disable the DWEN fuse. User Guide DS50002636A-page 8 © 2017 Microchip Technology Inc.
  • Page 9: Programming The Target Using An External Programmer

    Tool with Device as ATmega32U4 and Interface to JTAG, click Apply. Select "Memories", locate the source .hex or .elf file, and click Program. Select "Fuses" to program the fuses manually. Set the fuse(s) and click "Program". Recommended fuse settings: User Guide DS50002636A-page 9 © 2017 Microchip Technology Inc.
  • Page 10: Programming The Atmega32U4 Using A Bootloader

    Warning:  Changing the firmware in the ATmega32U4 will remove the programming and debugging capabilities of the mEDBG. If the EEPROM is altered the mEDBG may not be recognized by Atmel Studio anymore. User Guide DS50002636A-page 10 © 2017 Microchip Technology Inc.
  • Page 11: Xplained Mini

    To disconnect the external clock to the ATmega168PB a 0Ω resistor or strap has to be removed from the footprint, as shown in the figure below (R109). User Guide DS50002636A-page 11 © 2017 Microchip Technology Inc.
  • Page 12: Medbg Configuration

    The protected fuses are different for every product using the mEDBG and are typically clock related fuses that could be set to invalid configurations. The fuse protection can be disabled by writing the FUSE bit to 0. User Guide DS50002636A-page 12 © 2017 Microchip Technology Inc.
  • Page 13: Medbg Command Line Interface

    ATmega168PB target device that could make the mEDBG on the ATmega168PB Xplained Mini not usable. Writing the FUSE bit to 0 removes all protection of fuses in the ATmega168PB target device. User Guide DS50002636A-page 13 © 2017 Microchip Technology Inc.
  • Page 14: Medbg Firmware Upgrade And Manual Bootloader Entry

    To force the bootloader entry, short-circuit the BOOT pads (J102) and toggle power to the ATmega168PB Xplained Mini board. Run the atfw command above. When the firmware is upgraded, remove the power from the kit and remove the short-circuit of J102. Figure 3-2. Force Boot Jumper User Guide DS50002636A-page 14 © 2017 Microchip Technology Inc.
  • Page 15: Hardware User Guide

    The figure below shows the assembly drawing of the ATmega168PB Xplained Mini to help identification of components. User Guide DS50002636A-page 15 © 2017 Microchip Technology Inc.
  • Page 16: Power Sources

    5.0V from a USB. The USB port is protected with a 500mA PTC resettable fuse. The ATmega168PB is powered from the 5.0V USB voltage by default. The figure below shows the possible kit power supply connections. User Guide DS50002636A-page 16 © 2017 Microchip Technology Inc.
  • Page 17: Board Assembly

    If the connector is required it is recommended to remove pin two from the SPI connector. Target Headers and Connectors 4.3.1 Target Digital I/O The J200 and J201 headers provide access to the ATmega168PB digital I/O pins. User Guide DS50002636A-page 17 © 2017 Microchip Technology Inc.
  • Page 18: Board Power Header

    RESET line will be pulled low by the mEDBG. The ATmega32U4 internal pull-up is enabled. This signal is not available during debugging. VCC_P3V3 The 3.3V regulator output VCC_P5V0 The selected power source (VIN or VBUS selected by J300) User Guide DS50002636A-page 18 © 2017 Microchip Technology Inc.
  • Page 19: Target Analogue I/O

    4.3.5 Target Additional I/O Signals not available in any of the headers or connectors are available in column 5 of the grid. Table 4-6. Additional I/O ATmega168PB pin Grid position PE01 PE02 User Guide DS50002636A-page 19 © 2017 Microchip Technology Inc.
  • Page 20: Target Peripherals

    There is one yellow LED, D200, available for use by the application SW. The LED is connected to ATmega168PB pin 17 - PB5, the SCK signal from the mEDBG is in 3-state when not used. User Guide DS50002636A-page 20 © 2017 Microchip Technology Inc.
  • Page 21: Medbg

    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. Table 4-8. J100 JTAG Header J100 pin Signal name Description User Guide DS50002636A-page 21 © 2017 Microchip Technology Inc.
  • Page 22: Extension Header Area

    Communication line to the ID chip on the Xplained extension board Ground ADC(+) Analog to digital converter, alternatively positive part of differential ADC ADC(-) Analog to digital converter, alternatively negative part of differential ADC GPIO1 General purpose I/O User Guide DS50002636A-page 22 © 2017 Microchip Technology Inc.
  • Page 23: Factory Programmed

    LED in Morse code. Any Morse code transmitted by using the button will be displayed as text in the terminal window. The ATmega32U4 is preprogrammed with the mEDBG firmware. User Guide DS50002636A-page 23 © 2017 Microchip Technology Inc.
  • Page 24: Hardware Revision History And Known Issues

    = revision s = serial number The product identifier for ATmega168PB Xplained Mini is A09-2222. Revision 5 Revision 5 is the initial release of ATmega168PB Xplained Mini. There are no known issues. User Guide DS50002636A-page 24 © 2017 Microchip Technology Inc.
  • Page 25: Document Revision History

    08/2017 Converted to Microchip format and replaced the Atmel document number 42381B. Restructured the document, added the Hardware Revision History and Known Issues chapter. 42381B 09/2015 Updated version 42381A 10/2014 Initial document release User Guide DS50002636A-page 25 © 2017 Microchip Technology Inc.
  • Page 26: The Microchip Web Site

    Microchip’s Data Sheets. Most likely, the person doing so is engaged in theft of intellectual property. • Microchip is willing to work with the customer who is concerned about the integrity of their code. User Guide DS50002636A-page 26 © 2017 Microchip Technology Inc.
  • Page 27: Legal Notice

    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.
  • Page 28: Quality Management System Certified By Dnv

    ® DSCs, KEELOQ code hopping devices, Serial EEPROMs, microperipherals, nonvolatile memory and analog products. In addition, Microchip’s quality system for the design and manufacture of development systems is ISO 9001:2000 certified. User Guide DS50002636A-page 28 © 2017 Microchip Technology Inc.
  • Page 29: Worldwide Sales And Service

    Sweden - Stockholm Tel: 408-735-9110 Tel: 86-29-8833-7252 Tel: 66-2-694-1351 Tel: 46-8-5090-4654 Tel: 408-436-4270 Fax: 86-29-8833-7256 Fax: 66-2-694-1350 UK - Wokingham Canada - Toronto Tel: 44-118-921-5800 Tel: 905-695-1980 Fax: 44-118-921-5820 Fax: 905-695-2078 User Guide DS50002636A-page 29 © 2017 Microchip Technology Inc.

This manual is also suitable for:

Atmega168pb xplained mini8002264997

Table of Contents