45
AVR128DB48 Curiosity Nano AVR128DB48 Curiosity Nano Hardware User Guide Preface The AVR128DB48 Curiosity Nano Evaluation Kit is a hardware platform to evaluate microcontrollers in the AVR ® DB Family. This board has the AVR128DB48 microcontroller (MCU) mounted. Supported by both MPLAB ® X IDE and Atmel Studio 7, the board provides easy access to the features of the AVR128DB48 to explore how to integrate the device into a custom design. The Curiosity Nano series of evaluation boards include an on-board debugger. No external tools are necessary to program and debug the AVR128DB48. MPLAB ® X IDE and Atmel Studio - Software to discover, configure, develop, program, and debug Microchip microcontrollers. Code examples on GitHub - Get started with code examples. AVR128DB48 website - Find documentation, data sheets, sample, and purchase microcontrollers. AVR128DB48 Curiosity Nano website - Kit information, latest user guide, and design documentation. © 2020 Microchip Technology Inc. User Guide DS50003037A-page 1

AVR128DB48 Curiosity Nano Hardware User Guideww1.microchip.com/downloads/en/DeviceDoc/AVR128DB48-Curiosit… · 4. Curiosity Nano Curiosity Nano is an evaluation platform of small

  • Upload
    others

  • View
    12

  • Download
    0

Embed Size (px)

Citation preview

Page 1: AVR128DB48 Curiosity Nano Hardware User Guideww1.microchip.com/downloads/en/DeviceDoc/AVR128DB48-Curiosit… · 4. Curiosity Nano Curiosity Nano is an evaluation platform of small

AVR128DB48 Curiosity Nano AVR128DB48 Curiosity Nano Hardware User Guide

PrefaceThe AVR128DB48 Curiosity Nano Evaluation Kit is a hardware platform to evaluate microcontrollers in the AVRreg DBFamily This board has the AVR128DB48 microcontroller (MCU) mounted

Supported by both MPLABreg X IDE and Atmel Studio 7 the board provides easy access to the features of theAVR128DB48 to explore how to integrate the device into a custom design

The Curiosity Nano series of evaluation boards include an on-board debugger No external tools are necessary toprogram and debug the AVR128DB48

bull MPLABreg X IDE and Atmel Studio - Software to discover configure develop program and debug Microchipmicrocontrollers

bull Code examples on GitHub - Get started with code examplesbull AVR128DB48 website - Find documentation data sheets sample and purchase microcontrollersbull AVR128DB48 Curiosity Nano website - Kit information latest user guide and design documentation

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 1

Table of Contents

Preface1

1 Introduction 4

11 Features 412 Board Overview4

2 Getting Started 5

21 Quick Start5211 Driver Installation5212 Kit Window5213 MPLABreg X IDE Device Family Packs5214 Atmel Studio 7 Device Family Pack6

22 Design Documentation and Relevant Links 6

3 Preprogrammed Application7

4 Curiosity Nano8

41 On-Board Debugger Overview8411 Debugger8412 Virtual Serial Port (CDC)9

4121 Overview 94122 Operating System Support 94123 Limitations 104124 Signaling104125 Advanced Use 11

413 Mass Storage Device114131 Mass Storage Device Implementation124132 Limitations of Drag-and-Drop Programming124133 Special Commands 12

414 Data Gateway Interface (DGI) 134141 Debug GPIO134142 Timestamping14

42 Curiosity Nano Standard Pinout1443 Power Supply 15

431 Target Regulator 15432 External Supply17433 VBUS Output Pin17434 Power Supply Exceptions18

44 Low-Power Measurement 1945 Programming External Microcontrollers 20

451 Supported Devices 20452 Software Configuration 20453 Hardware Modifications 21454 Connecting to External Microcontrollers22

46 Connecting External Debuggers 23

5 Hardware User Guide 26

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 2

51 Connectors26511 AVR128DB48 Curiosity Nano Pinout26512 Using Pin Headers26513 Multi-Voltage IO 27514 Operational Amplifiers 28

52 Peripherals 29521 LED29522 Mechanical Switch29523 32768 kHz Crystal 29524 1600 MHz Crystal 30525 On-Board Debugger Implementation31

5251 On-Board Debugger Connections 31

6 Hardware Revision History and Known Issues 32

61 Identifying Product ID and Revision 3262 Revision 33263 Revision 232

7 Document Revision History33

8 Appendix 34

81 Schematic3482 Assembly Drawing3683 Curiosity Nano Base for Click boardstrade 3784 Disconnecting the On-board Debugger3885 Getting Started with IAR39

The Microchip Website42

Product Change Notification Service42

Customer Support 42

Microchip Devices Code Protection Feature 42

Legal Notice 43

Trademarks 43

Quality Management System 44

Worldwide Sales and Service45

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 3

1 Introduction

11 Featuresbull AVR128DB48 Microcontrollerbull One Yellow User LEDbull One Mechanical User Switchbull One 32768 kHz Crystalbull One 1600 MHz Crystalbull On-Board Debugger

ndash Board identification in Microchip MPLABreg X IDE and Atmel Studio 7ndash One green power and status LEDndash Programming and debuggingndash Virtual serial port (CDC)ndash Two debug GPIO channels (DGI GPIO)

bull USB Poweredbull Adjustable Target Voltage

ndash MIC5353 LDO regulator controlled by the on-board debuggerndash 18ndash51V output voltage (limited by USB input voltage)ndash 500 mA maximum output current (limited by ambient temperature and output voltage)

12 Board OverviewThe Microchip AVR128DB48 Curiosity Nano Evaluation Kit is a hardware platform to evaluate the AVR128DB48microcontroller

Figure 1-1 AVR128DB48 Curiosity Nano Board Overview

User Switch

User LED(LED0)

AVR128DB48MCU

32768 kHz Crystal

1600 MHzCrystal

DebuggerPowerStatus

Micro-USBConnector

VDDIO2 MVIO Pins

AVR128DB48 Curiosity NanoIntroduction

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 4

2 Getting Started

21 Quick StartSteps to start exploring the AVR128DB48 Curiosity Nano board

1 Download Microchip MPLABreg X IDE and MPLABreg XC C Compiler or download Atmel Studio 72 Launch MPLABreg X IDE or Atmel Studio 73 Optional Use MPLABreg Code Configurator or Atmel START to generate drivers and examples4 Write your application code5 Connect a USB cable (Standard-A to Micro-B or Micro-AB) between the PC and the debug USB port on the

board

Info bull MPLABreg X IDE supports XC C compilers and the AVRreg and Armreg Toolchains (GCC Compilers)bull Microchiprsquos XC8 C Compiler supports all 8-bit PICreg and AVRreg microcontrollersbull Included in the Atmel Studio 7 download are the AVRreg and Armreg Toolchains (GCC Compilers)

211 Driver Installation

When the board is connected to your computer for the first time the operating system will perform a driver softwareinstallation The driver file supports both 32- and 64-bit versions of Microsoftreg Windowsreg XP Windows VistaregWindows 7 Windows 8 and Windows 10 The drivers for the board are included with both MPLABreg X IDE and AtmelStudio 7

212 Kit Window

Once the board is powered the green status LED will be lit and both MPLABreg X IDE and Atmel Studio 7 will auto-detect which boards are connected The Kit Window in MPLABreg X IDE and Atmel Studio 7 will present relevantinformation like data sheets and board documentation The AVR128DB48 device on the AVR128DB48 CuriosityNano board is programmed and debugged by the on-board debugger and therefore no external programmer ordebugger tool is required

Tip  The Kit Window can be opened in MPLABreg X IDE through the menu bar Window gt Kit Window

213 MPLABreg X IDE Device Family Packs

Microchip MPLABreg X IDE requires specific information to support devices and tools This information is contained inversioned packs For the AVR128DB48 Curiosity Nano board MPLABreg X version 540 with device family pack ldquoAVR-Dx_DFPrdquo version 12 and tool pack ldquonEDBG_TPrdquo version 11 or newer are required For more information on packsand how to upgrade them refer to the MPLABreg X IDE Userrsquos guide - Work with Device Packs

Tip  The latest device family packs are available through Tools gt Packs in MPLABreg X IDE or online at Microchip MPLABreg X Packs Repository

AVR128DB48 Curiosity NanoGetting Started

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 5

214 Atmel Studio 7 Device Family PackAtmel Studio 7 requires specific information to support devices This information is contained in versioned packs Forthe AVR128DB48 Curiosity Nano board Atmel Studio 7 version 702397 with device family pack ldquoAVR-Dx_DFPrdquoversion 11 or newer are required For more information on packs and how to upgrade them refer to the Atmel Studio7 User Guide - Device Pack Manager

Tip  The latest device family packs are available through Tools gt Device Pack Manager in Atmel Studio 7or online at Atmel Studio Packs Repository

22 Design Documentation and Relevant LinksThe following list contains links to the most relevant documents and software for the AVR128DB48 Curiosity Nanoboard

bull MPLABreg X IDE - MPLAB X IDE is a software program that runs on a PC (Windowsreg Mac OSreg Linuxreg) todevelop applications for Microchip microcontrollers and digital signal controllers It is called an IntegratedDevelopment Environment (IDE) because it provides a single integrated ldquoenvironmentrdquo to develop code forembedded microcontrollers

bull Atmel Studio - Free IDE for the development of CC++ and assembler code for microcontrollersbull IAR Embedded Workbenchreg for AVRreg - This is a commercial CC++ compiler that is available for AVR

microcontrollers There is a 30-day evaluation version as well as a 4 KB code-size-limited kick-start versionavailable from their website

bull MPLABreg XC Compilers - MPLABreg XC8 C Compiler is available as a free unrestricted-use downloadMicrochips MPLABreg XC8 C Compiler is a comprehensive solution for your projectrsquos software development onWindowsreg macOSreg or Linuxreg MPLABreg XC8 supports all 8-bit PICreg and AVRreg microcontrollers (MCUs)

bull MPLABreg Code Configurator - MPLAB Code Configurator (MCC) is a free software plug-in that provides agraphical interface to configure peripherals and functions specific to your application

bull Atmel START - Atmel START is an online tool that hosts code examples helps the user to select and configuresoftware components and tailor your embedded application in a usable and optimized manner

bull Microchip Sample Store - Microchip sample store where you can order samples of devicesbull MPLAB Data Visualizer - MPLAB Data Visualizer is a program used for processing and visualizing data The

Data Visualizer can receive data from various sources such as serial ports and on-board debuggerrsquos DataGateway Interface as found on Curiosity Nano and Xplained Pro boards

bull Studio Data Visualizer - Studio Data Visualizer is a program used for processing and visualizing data TheData Visualizer can receive data from various sources such as serial ports on-board debuggerrsquos Data GatewayInterface as found on Curiosity Nano and Xplained Pro boards and power data from the Power Debugger

bull Microchip PICreg and AVRreg Examples - Microchip PIC and AVR Device Examples is a collection of examplesand labs that use Microchip development boards to showcase the use of PIC and AVR device peripherals

bull Microchip PICreg and AVRreg Solutions - Microchip PIC and AVR Device Solutions contains completeapplications for use with Microchip development boards ready to be adapted and extended

bull AVR128DB48 Curiosity Nano website - Kit information latest user guide and design documentationbull AVR128DB48 Curiosity Nano on Microchip Direct - Purchase this kit on Microchip Direct

AVR128DB48 Curiosity NanoGetting Started

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 6

3 Preprogrammed ApplicationThe AVR128DB48 mounted on the Curiosity Nano Evaluation Kit is preprogrammed with an application ready toutilize the integrated operational amplifiers

To get started with the application you can find the user guide code and hex files for this application available onlineon GitHub

bull MPLAB Xreg IDEbull Atmel Studio 7

AVR128DB48 Curiosity NanoPreprogrammed Application

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 7

4 Curiosity NanoCuriosity Nano is an evaluation platform of small boards with access to most of the microcontrollers IOs Theplatform consists of a series of low pin count microcontroller (MCU) boards with on-board debuggers which areintegrated with MPLABreg X IDE and Atmel Studio 7 Each board is identified in the IDE When plugged in a KitWindow is displayed with links to key documentation including relevant user guides application notes data sheetsand example code Everything is easy to find The on-board debugger features a virtual serial port (CDC) for serialcommunication to a host PC and a Data Gateway Interface (DGI) with debug GPIO pin(s)

41 On-Board Debugger OverviewAVR128DB48 Curiosity Nano contains an on-board debugger for programming and debugging The on-boarddebugger is a composite USB device consisting of several interfaces

bull A debugger that can program and debug the AVR128DB48 in both MPLABreg X IDE and Atmel Studio 7bull A mass storage device that allows drag-and-drop programming of the AVR128DB48bull A virtual serial port (CDC) that is connected to a Universal Asynchronous ReceiverTransmitter (UART) on the

AVR128DB48 and provides an easy way to communicate with the target application through terminal softwarebull A Data Gateway Interface (DGI) for code instrumentation with logic analyzer channels (debug GPIO) to visualize

program flow

The on-board debugger controls a Power and Status LED (marked PS) on the AVR128DB48 Curiosity Nano BoardThe table below shows how the LED is controlled in different operation modes

Table 4-1 On-Board Debugger LED Control

Operation Mode Power and Status LED

Boot Loader mode The LED blinks slowly during power-up

Power-up The LED is ON

Normal operation The LED is ON

Programming Activity indicator The LED blinks slowly during programmingdebugging

Drag-and-dropprogramming Success The LED blinks slowly for 2 sec

Failure The LED blinks rapidly for 2 sec

Fault The LED blinks rapidly if a power fault is detected

SleepOff The LED is OFF The on-board debugger is either in a sleep mode or powered downThis can occur if the board is externally powered

Info  Slow blinking is approximately 1 Hz and rapid blinking is approximately 5 Hz

411 DebuggerThe on-board debugger on the AVR128DB48 Curiosity Nano Board appears as a Human Interface Device (HID) onthe host computerrsquos USB subsystem The debugger supports full-featured programming and debugging of theAVR128DB48 using both MPLABreg X IDE and Atmel Studio 7 as well as some third-party IDEs

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 8

Remember  Keep the debuggerrsquos firmware up-to-date Firmware upgrades are done automatically whenusing MPLABreg X IDE or Atmel Studio 7

412 Virtual Serial Port (CDC)The virtual serial port (CDC) is a general purpose serial bridge between a host PC and a target device

4121 OverviewThe on-board debugger implements a composite USB device that includes a standard Communications Device Class(CDC) interface which appears on the host as a virtual serial port The CDC can be used to stream arbitrary data inboth directions between the host computer and the target All characters sent through the virtual serial port on thehost computer will be transmitted as UART on the debuggerrsquos CDC TX pin and UART characters captured on thedebuggerrsquos CDC RX pin will be returned to the host computer through the virtual serial port

Figure 4-1 CDC Connection

Target MCU

UART TX

UART RX

Debugger

USBCDC RX

CDC TX

PCTerminalSoftware

TargetReceive

TargetSend

TerminalReceive

TerminalSend

Info  As shown in Figure 4-1 the debuggerrsquos CDC TX pin is connected to a UART RX pin on the targetfor receiving characters from the host computer Similarly the debuggerrsquos CDC RX pin is connected to aUART TX pin on the target for transmitting characters to the host computer

4122 Operating System SupportOn Windows machines the CDC will enumerate as Curiosity Virtual COM Port and appear in the Ports section of theWindows Device Manager The COM port number can also be found there

Info  On older Windows systems a USB driver is required for CDC This driver is included in installationsof both MPLABreg X IDE and Atmel Studio 7

On Linux machines the CDC will enumerate and appear as devttyACM

Info  tty devices belong to the ldquodialoutrdquo group in Linux so it may be necessary to become a member ofthat group to have permissions to access the CDC

On MAC machines the CDC will enumerate and appear as devttyusbmodem Depending on which terminalprogram is used it will appear in the available list of modems as usbmodem

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 9

Info  For all operating systems Be sure to use a terminal emulator that supports DTR signaling See 4124 Signaling

4123 LimitationsNot all UART features are implemented in the on-board debugger CDC The constraints are outlined here

bull Baud rate Must be in the range of 1200 bps to 500 kbps Any baud rate outside this range will be set to theclosest limit without warning Baud rate can be changed on-the-fly

bull Character format Only 8-bit characters are supportedbull Parity Can be odd even or nonebull Hardware flow control Not supportedbull Stop bits One or two bits are supported

4124 SignalingDuring USB enumeration the host OS will start both communication and data pipes of the CDC interface At thispoint it is possible to set and read back the baud rate and other UART parameters of the CDC but data sending andreceiving will not be enabled

When a terminal connects on the host it must assert the DTR signal As this is a virtual control signal implementedon the USB interface it is not physically present on the board Asserting the DTR signal from the host will indicate tothe on-board debugger that a CDC session is active The debugger will then enable its level shifters (if available) andstart the CDC data send and receive mechanisms

Deasserting DTR in debugger firmware version 120 or earlier has the following behaviorbull Debugger UART receiver is disabled so no further data will be transferred to the host computerbull Debugger UART transmitter will continue to send data that is queued for sending but no new data is accepted

from the host computerbull Level shifters (if available) are not disabled so the debugger CDC TX line remains driven

Deasserting DTR in debugger firmware version 121 or later has the following behaviorbull Debugger UART receiver is disabled so no further data will be transferred to the host computerbull Debugger UART transmitter will continue to send data that is queued for sending but no new data is accepted

from the host computerbull Once the ongoing transmission is complete level shifters (if available) are disabled so the debugger CDC TX

line will become high-impedance

Remember  Set up the terminal emulator to assert the DTR signal Without the signal the on-boarddebugger will not send or receive any data through its UART

Tip  The on-board debuggerrsquos CDC TX pin will not be driven until the CDC interface is enabled by thehost computer Also there are no external pull-up resistors on the CDC lines connecting the debugger andthe target which means that during power-up these lines are floating To avoid any glitches resulting inunpredictable behavior like framing errors the target device should enable the internal pull-up resistor onthe pin connected to the debuggerrsquos CDC TX pin

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 10

4125 Advanced Use

CDC Override ModeIn normal operation the on-board debugger is a true UART bridge between the host and the device However incertain use cases the on-board debugger can override the basic operating mode and use the CDC TX and RX pinsfor other purposes

Dropping a text file into the on-board debuggerrsquos mass storage drive can be used to send characters out of thedebuggerrsquos CDC TX pin The filename and extension are trivial but the text file must start with the charactersCMDSEND_UART=

Debugger firmware version 120 or earlier has the following limitationsbull The maximum message length is 50 characters ndash all remaining data in the frame are ignoredbull The default baud rate used in this mode is 9600 bps but if the CDC is already active or has been configured

the previously used baud rate still applies

Debugger firmware version 121 and later has the following limitationsfeaturesbull The maximum message length may vary depending on the MSCSCSI layer timeouts on the host computer

andor operating system A single SCSI frame of 512 bytes (498 characters of payload) is guaranteed and filesof up to 4 KB will work on most systems The transfer will complete on the first NULL character encountered inthe file

bull The baud rate used is always 9600 bps for the default commandCMDSEND_UART=

The CDC Override Mode should not be used simultaneously with data transfer over CDCterminal If a CDCterminal session is active at the time a file is received via CDC Override Mode it will be suspended for theduration of the operation and resumed once complete

bull Additional commands are supported with explicit baud ratesCMDSEND_9600=

CMDSEND_115200=

CMDSEND_460800=

USB-Level Framing ConsiderationsSending data from the host to the CDC can be done byte-wise or in blocks which will be chunked into 64-byte USBframes Each such frame will be queued up for sending to the debuggerrsquos CDC TX pin Transferring a small amountof data per frame can be inefficient particularly at low baud rates as the on-board debugger buffers frames and notbytes A maximum of four 64-byte frames can be active at any time The on-board debugger will throttle the incomingframes accordingly Sending full 64-byte frames containing data is the most efficient method

When receiving data on the debuggerrsquos CDC RX pin the on-board debugger will queue up the incoming bytes into64-byte frames which are sent to the USB queue for transmission to the host when they are full Incomplete framesare also pushed to the USB queue at approximately 100 ms intervals triggered by USB start-of-frame tokens Up toeight 64-byte frames can be active at any time

If the host (or the software running on it) fails to receive data fast enough an overrun will occur When this happensthe last-filled buffer frame will be recycled instead of being sent to the USB queue and a full frame of data will belost To prevent this occurrence the user must ensure that the CDC data pipe is being read continuously or theincoming data rate must be reduced

413 Mass Storage DeviceThe on-board debugger includes a simple Mass Storage Device implementation which is accessible for readwriteoperations via the host operating system to which it is connected

It providesbull Read access to basic text and HTML files for detailed kit information and support

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 11

bull Write access for programming Intelreg HEX formatted files into the target devicersquos memorybull Write access for simple text files for utility purposes

4131 Mass Storage Device ImplementationThe on-board debugger implements a highly optimized variant of the FAT12 file system that has several limitationspartly due to the nature of FAT12 itself and optimizations made to fulfill its purpose for its embedded application

The Curiosity Nano USB device is USB Chapter 9-compliant as a mass storage device but does not in any way fulfillthe expectations of a general purpose mass storage device This behavior is intentional

When using the Windows operating system the on-board debugger enumerates as a Curiosity Nano USB Devicethat can be found in the disk drives section of the device manager The CURIOSITY drive appears in the file managerand claims the next available drive letter in the system

The CURIOSITY drive contains approximately one MB of free space This does not reflect the size of the targetdevicersquos Flash in any way When programming an Intelreg HEX file the binary data are encoded in ASCII withmetadata providing a large overhead so one MB is a trivially chosen value for disk size

It is not possible to format the CURIOSITY drive When programming a file to the target the filename may appear inthe disk directory listing This is merely the operating systemrsquos view of the directory which in reality has not beenupdated It is not possible to read out the file contents Removing and replugging the board will return the file systemto its original state but the target will still contain the application that has been previously programmed

To erase the target device copy a text file starting with ldquoCMDERASErdquo onto the disk

By default the CURIOSITY drive contains several read-only files for generating icons as well as reporting status andlinking to further information

bull AUTORUNICO ndash icon file for the Microchip logobull AUTORUNINF ndash system file required for Windows Explorer to show the icon filebull KIT-INFOHTM ndash redirect to the development board websitebull KIT-INFOTXT ndash a text file containing details about the boardrsquos debugger firmware version board name USB

serial number device and drag-and-drop supportbull STATUSTXT ndash a text file containing the programming status of the board

Info  STATUSTXT is dynamically updated by the on-board debugger The contents may be cached bythe OS and therefore do not reflect the correct status

4132 Limitations of Drag-and-Drop Programming

Lock BitsLock bits included in the hex file will be ignored when using drag-and-drop programming To program lock bits useMPLABreg X IDE or Atmel Studio 7

Enabling CRC Check in FusesIt is not advisable to enable the CRC check in the target devicersquos fuses when using drag-and-drop programming Thisis because a subsequent chip erase (which does not affect fuse bits) will effect a CRC mismatch and the applicationwill fail to boot To recover a target from this state a chip erase must be done using MPLABreg X IDE orAtmel Studio 7 which will automatically clear the CRC fuses after erasing

4133 Special CommandsSeveral utility commands are supported by copying text files to the mass storage disk The filename or extension isirrelevant ndash the command handler reacts to content only

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 12

Table 4-2 Special File Commands

Command Content Description

CMDERASE Executes a chip erase of the target

CMDSEND_UART= Sends a string of characters to the CDC UART See ldquoCDCOverride Moderdquo

CMDSEND_9600=CMDSEND_115200=CMDSEND_460800=

Sends a string of characters to the CDC UART at the baud ratespecified Note that only the baud rates explicitly specified hereare supported See ldquoCDC Override Moderdquo (Debugger firmwarev121 or newer)

CMDRESET Resets the target device by entering Programming mode andthen exiting Programming mode immediately thereafter Exacttiming can vary according to the programming interface of thetarget device (Debugger firmware v116 or newer)

CMDPOWERTOGGLE Powers down the target and restores power after a 100 msdelay If external power is provided this has no effect(Debugger firmware v116 or newer)

CMD0V Powers down the target device by disabling the target supplyregulator If external power is provided this has no effect(Debugger firmware v116 or newer)

CMD1V8 Sets the target voltage to 18V If external power is providedthis has no effect (Debugger firmware v121 or newer)

CMD3V3 Sets the target voltage to 33V If external power is providedthis has no effect (Debugger firmware v116 or newer)

CMD5V0 Sets the target voltage to 50V If external power is providedthis has no effect (Debugger firmware v116 or newer)

Info  The commands listed here are triggered by the content being sent to the mass storage emulateddisk and no feedback is provided in the case of either success or failure

414 Data Gateway Interface (DGI)Data Gateway Interface (DGI) is a USB interface for transporting raw and timestamped data between on-boarddebuggers and host computer-based visualization tools MPLAB Data Visualizer is used on the host computer todisplay debug GPIO data It is available as a plug-in for MPLABreg X IDE or a stand-alone application that can be usedin parallel with MPLABreg X IDE or Atmel Studio 7

Although DGI encompasses several physical data interfaces the AVR128DB48 Curiosity Nano implementationincludes logic analyzer channels

bull Two debug GPIO channels (also known as DGI GPIO)

4141 Debug GPIODebug GPIO channels are timestamped digital signal lines connecting the target application to a host computervisualization application They are typically used to plot the occurrence of low-frequency events on a time-axis ndash forexample when certain application state transitions occur

The figure below shows the monitoring of the digital state of a mechanical switch connected to a debug GPIO inMPLAB Data Visualizer

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 13

Figure 4-2 Monitoring Debug GPIO with MPLABreg Data Visualizer

Debug GPIO channels are timestamped so the resolution of DGI GPIO events is determined by the resolution of theDGI timestamp module

Important  Although bursts of higher-frequency signals can be captured the useful frequency range ofsignals for which debug GPIO can be used is up to about 2 kHz Attempting to capture signals above thisfrequency will result in data saturation and overflow which may cause the DGI session to be aborted

4142 TimestampingDGI sources are timestamped as they are captured by the debugger The timestamp counter implemented in theCuriosity Nano debugger increments at 2 MHz frequency providing a timestamp resolution of a half microsecond

42 Curiosity Nano Standard PinoutThe 12 edge connections closest to the USB connector on Curiosity Nano boards have a standardized pinout Theprogramdebug pins have different functions depending on the target programming interface as shown in the tableand figure below

Table 4-3 Curiosity Nano Standard Pinout

Debugger Signal Target MCU Description

ID mdash ID line for extensions

CDC TX UART RX USB CDC TX line

CDC RX UART TX USB CDC RX line

DBG0 UPDI Debug data line

DBG1 GPIO1 debug GPIO1

DBG2 GPIO0 debug GPIO0

DBG3 RESET Reset line

NC mdash No connect

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 14

continuedDebugger Signal Target MCU Description

VBUS mdash VBUS voltage for external use

VOFF mdash Voltage Off input Disables the target regulator andtarget voltage when pulled low

VTG mdash Target voltage

GND mdash Common ground

Figure 4-3 Curiosity Nano Standard Pinout

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

43 Power SupplyThe board is powered through the USB port and contains two LDO regulators one to generate 33V for the on-boarddebugger and an adjustable LDO regulator for the target microcontroller AVR128DB48 and its peripherals Thevoltage from the USB connector can vary between 44V to 525V (according to the USB specification) and will limitthe maximum voltage to the target The figure below shows the entire power supply system on AVR128DB48Curiosity Nano

Figure 4-4 Power Supply Block Diagram

USBTarget MCU

Power source

Cut strap

Power consumer P3V3DEBUGGER

Power converter

DEBUGGERRegulator

VUSB

TargetRegulator

Power Supply strap

Adjust

Level shifter

VLVLVREG

IO IO GPIOstraps

IO

OnOffMeasure OnOff

ID systemVOFF

PTC Fuse

Power protection

VBUS

Target Power strap

VTG

431 Target RegulatorThe target voltage regulator is a MIC5353 variable output LDO The on-board debugger can adjust the voltage outputsupplied to the board target section by manipulating the MIC5353rsquos feedback voltage The hardware implementation

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 15

is limited to an approximate voltage range from 17V to 51V Additional output voltage limits are configured in thedebugger firmware to ensure that the output voltage never exceeds the hardware limits of the AVR128DB48microcontroller The voltage limits configured in the on-board debugger on AVR128DB48 Curiosity Nano are 18ndash55V

Info  The target voltage is set to 33V when the board is manufactured It can be changed throughMPLABreg X IDE project properties and in the Atmel Studio 7 device programming dialog Any change tothe target voltage is persistent even after a power toggle The resolution is less than 5 mV but may belimited to 10 mV by the adjustment program

Info  Voltage settings that are set up in MPLABreg X IDE are not immediately applied to the board Thenew voltage setting is applied to the board when the debugger is accessed in any way like pushing theRefresh Debug Tool Status button in the project dashboard tab or programmingreading program memory

Info  There is a simple option to adjust the target voltage with a drag-and-drop command text file to theboard This supports a set of common target voltages See section 4133 Special Commands for furtherdetails

The MIC5353 supports a maximum current load of 500 mA It is an LDO regulator in a small package placed on asmall printed circuit board (PCB) and the thermal shutdown condition can be reached at lower loads than 500 mAThe maximum current load depends on the input voltage the selected output voltage and the ambient temperatureThe figure below shows the safe operating area for the regulator with an input voltage of 51V and an ambienttemperature of 23degC

Figure 4-5 Target Regulator Safe Operation Area

The voltage output of the target regulator is continuously monitored (measured) by the on-board debugger If it ismore than 100 mV overunder the voltage setting value an error condition will be flagged and the target voltageregulator will be turned off This will detect and handle any short-circuit conditions It will also detect and handle if anexternal voltage which causes VCC_TARGET to move outside of the voltage setting monitoring window of plusmn100 mVis suddenly applied to the VTG pin without setting the VOFF pin low

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 16

Info  If the external voltage is lower than the monitoring window lower limit (target voltage setting ndash 100mV) the on-board debugger status LED will blink rapidly If the external voltage is higher than themonitoring window upper limit (target voltage setting + 100 mV) the on-board debugger status LED willcontinue to shine If the external voltage is removed the status LED will start to blink rapidly until the on-board debugger detects the new situation and turns the target voltage regulator back on

432 External SupplyAVR128DB48 Curiosity Nano can be powered by an external voltage instead of the on-board target regulator Whenthe Voltage Off (VOFF) pin is shorted to ground (GND) the on-board debugger firmware disables the target regulatorand it is safe to apply an external voltage to the VTG pin

It is also safe to apply an external voltage to the VTG pin when no USB cable is plugged into the DEBUG connectoron the board

The VOFF pin can be tied lowlet go at any time This will be detected by a pin-change interrupt to the on-boarddebugger which controls the target voltage regulator accordingly

WARNINGApplying an external voltage to the VTG pin without shorting VOFF to GND may cause permanent damageto the board

WARNINGDo not apply any voltage to the VOFF pin Let the pin float to enable the power supply

WARNINGAbsolute maximum external voltage is 55V for the on-board level shifters and the standard operatingcondition of the AVR128DB48 is 18ndash55V Applying a higher voltage may cause permanent damage to theboard

Info  If an external voltage is applied without pulling the VOFF pin low and an external supply pulls thevoltage lower than the monitoring windowrsquos lower limit (target voltage setting - 100 mV) the on-boarddebugger status LED will blink rapidly and shut the on-board regulator off If an external voltage issuddenly removed when the VOFF pin is not pulled low the status LED will start to blink rapidly until theon-board debugger detects the new situation and switches the target voltage regulator back on

Programming debugging and data streaming is still possible with an external power supply ndash the debugger andsignal level shifters will be powered from the USB cable Both regulators the debugger and the level shifters arepowered down when the USB cable is removed

Info  In addition to the power consumed by the AVR128DB48 and its peripherals approximately 100 microAwill be drawn from any external power source to power the on-board level shifters and voltage monitorcircuitry when a USB cable is plugged in the DEBUG connector on the board When a USB cable is notplugged in some current is used to supply the level shifters voltage pins which have a worst-case currentconsumption of approximately 5 microA Typical values may be as low as 100 nA

433 VBUS Output PinAVR128DB48 Curiosity Nano has a VBUS output pin that can be used to power external components that need a 5Vsupply The VBUS output pin has a PTC fuse to protect the USB against short circuits A side effect of the PTC fuseis a voltage drop on the VBUS output with higher current loads The chart below shows the voltage versus the currentload of the VBUS output

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 17

Figure 4-6 VBUS Output Voltage vs Current

434 Power Supply ExceptionsThis is a summary of most exceptions that can occur with the power supply

Target Voltage Shuts DownThis can happen if the target section draws too much current at a given voltage This will cause the thermal shutdownsafety feature of the MIC5353 regulator to kick in To avoid this reduce the current load of the target section

Target Voltage Setting is Not ReachedThe maximum output voltage is limited by the USB input voltage (specified to be 44-525V) and the voltage dropover the MIC5353 regulator at a given voltage setting and current consumption If a higher output voltage is neededuse a USB power source that can provide a higher input voltage or use an external voltage supply on the VTG pin

Target Voltage is Different From SettingThis can be caused by an externally applied voltage to the VTG pin without setting the VOFF pin low If the targetvoltage differs more than 100 mV overunder the voltage setting it will be detected by the on-board debugger andthe internal voltage regulator will be shut down To fix this issue remove the applied voltage from the VTG pin andthe on-board debugger will enable the on-board voltage regulator when the new condition is detected Note that thePS LED will be blinking rapidly if the target voltage is below 100 mV of the setting but will be lit normally when it ishigher than 100 mV above the setting

No Or Very Low Target Voltage and PS LED is Blinking RapidlyThis can be caused by a full or partial short-circuit and is a special case of the issue mentioned above Remove theshort-circuit and the on-board debugger will re-enable the on-board target voltage regulator

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 18

No Target Voltage and PS LED is Lit 1This occurs if the target voltage is set to 00V To fix this set the target voltage to a value within the specified voltagerange for the target device

No Target Voltage and PS LED is Lit 2This can be the issue if power jumper J100 andor J101 is cut and the target voltage regulator is set to a value withinthe specified voltage range for the target device To fix this solder a wirebridge between the pads for J100J101 oradd a jumper on J101 if a pin header is mounted

VBUS Output Voltage is Low or Not PresentThis is most lightly caused by a high-current drain on VBUS and the protection fuse (PTC) will reduce the current orcut off completely Reduce the current consumption on the VBUS pin to fix this issue

44 Low-Power MeasurementPower to the AVR128DB48 is connected from the on-board power supply and VTG pin through a 100 mil pin headermarked with ldquoPOWERrdquo in silkscreen (J101) To measure the power consumption of the AVR128DB48 and otherperipherals connected to the board cut the Target Power strap and connect an ammeter over the strap

To measure the lowest possible power consumption follow these steps1 Cut the POWER strap with a sharp tool2 Solder a 1x2 100 mil pin header in the footprint3 Connect an ammeter to the pin header4 Write firmware that

41 Tri-states any IO connected to the on-board debugger42 Sets the microcontroller in its lowest power Sleep state

5 Program the firmware into the AVR128DB48

Figure 4-7 Target Power Strap

Target Power strap (top side)

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 19

Tip  A 100-mil pin header can be soldered into the Target Power strap (J101) footprint for easyconnection of an ammeter Once the ammeter is no longer needed place a jumper cap on the pin header

Info  The on-board level shifters will draw a small amount of current even when they are not in use Amaximum of 2 microA can be drawn from each IO pin connected to a level shifter for a total of 10 microA Keepany IO pin connected to a level shifter in tri-state to prevent leakage All IOs connected to the on-boarddebugger are listed in 5251 On-Board Debugger Connections To prevent any leakage to the on-boardlevel shifters they can be disconnected completely as described in 84 Disconnecting the On-boardDebugger

45 Programming External MicrocontrollersThe on-board debugger on AVR128DB48 Curiosity Nano can be used to program and debug microcontrollers onexternal hardware

451 Supported DevicesAll external AVR microcontrollers with the UPDI interface can be programmed and debugged with the on-boarddebugger with Atmel Studio

External SAM microcontrollers that have a Curiosity Nano Board can be programmed and debugged with the on-board debugger with Atmel Studio

AVR128DB48 Curiosity Nano can program and debug external AVR128DB48 microcontrollers with MPLAB X IDE

452 Software ConfigurationNo software configuration is required to program and debug the same device that is mounted on the board

To program and debug a different microcontroller than what is mounted on the board Atmel Studio must beconfigured to allow free selection of devices and programming interfaces

1 Navigate to Tools gt Options through the menu system at the top of the application2 Select the Tools gt Tool settings category in the options window3 Set the Hide unsupported devices option to False

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 20

Figure 4-8 Hide Unsupported Devices

Info  Atmel Studio allows any microcontroller and interface to be selected when Hide unsupporteddevices is set to False also microcontrollers and interfaces which are not supported by the on-boarddebugger

453 Hardware ModificationsThe on-board debugger is connected to the AVR128DB48 by default These connections must be removed beforeany external microcontroller can be programmed or debugged Cut the GPIO straps shown in the figure below with asharp tool to disconnect the AVR128DB48 from the on-board debugger

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 21

Figure 4-9 Programming and Debugging Connections to Debugger

GPIO straps (bottom side)

Info  Cutting the connections to the debugger will disable programming debugging and data streamingfrom the AVR128DB48 mounted on the board

Tip  Solder in 0Ω resistors across the footprints or short-circuit them with solder to reconnect the signalsbetween the on-board debugger and the AVR128DB48

454 Connecting to External MicrocontrollersThe figure and table below show where the programming and debugging signals must be connected to program anddebug external microcontrollers The on-board debugger can supply power to the external hardware or use anexternal voltage as a reference for its level shifters Read more about the power supply in 43 Power Supply

The on-board debugger and level shifters actively drive data and clock signals (DBG0 DBG1 and DBG2) used forprogramming and debugging and in most cases the external resistor on these signals can be ignored Pull-downresistors are required on the ICSPtrade data and clock signals to debug PICreg microcontrollers

DBG3 is an open-drain connection and requires a pull-up resistor to function

AVR128DB48 Curiosity Nano has a pull-up resistor R200 connected to its RESET signal (DBG3) The location ofthe pull-up resistor is shown in the 82 Assembly Drawing in the appendix

Remember bull Connect GND and VTG to the external microcontrollerbull Tie the VOFF pin to GND if the external hardware has its own power supplybull Make sure there are pull-down resistors on the ICSP data and clock signals (DBG0 and DBG1) to

support the debugging of PIC microcontrollers

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 22

Figure 4-10 Curiosity Nano Standard Pinout

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

Table 4-4 Programming and Debugging Interfaces

Curiosity Nano Pin UPDI ICSPtrade SWD

DBG0 UPDI DATA SWDIO

DBG1 mdash CLK SWCLK

DBG2 mdash mdash mdash

DBG3 mdash MCLR RESET

46 Connecting External DebuggersEven though there is an on-board debugger external debuggers can be connected directly to the AVR128DB48Curiosity Nano to programdebug the AVR128DB48 The on-board debugger keeps all the pins connected to theAVR128DB48 and board edge in tri-state when not actively used Therefore the on-board debugger will not interferewith any external debug tools

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 23

Figure 4-11 Connecting the MPLABreg PICkittrade 4 In-Circuit DebuggerProgrammer to AVR128DB48 CuriosityNano

2345678 1

VDD

GroundDATA

2 = VDD

3 = Ground

4 = PGD

5 = Unused

6 = Unused

7 = Unused

8 = Unused

1 = Unused

MPLABreg PICkittrade 4

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 24

Figure 4-12 Connecting the Atmel-ICE to AVR128DB48 Curiosity Nano

VDD

Ground

DATA

AVRregSAM

3 = UPDI

4 = VTG

5 = Unused

6 = Unused

7 = Unused

8 = Unused

1 = Unused

2 = GND

9 = Unused

10 = Unused

Atmel-ICE

21 9

10

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

CAUTIONTo avoid contention between the external debugger and the on-board debugger do not start anyprogrammingdebug operation with the on-board debugger through MPLABreg X IDE or Atmel Studio 7 ormass storage programming while the external tool is active

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 25

5 Hardware User Guide

51 Connectors

511 AVR128DB48 Curiosity Nano PinoutAll the AVR128DB48 IO pins are accessible at the edge connectors on the board The image below shows the boardpinout For all available functions on each pin refer to the IO Multiplexing and Considerations section in theAVR128DB48 data sheet

Figure 5-1 AVR128DB48 Curiosity Nano Pinout

USB

DEBUGGER

AVR128DB48

SW0

LED0

PS LEDNC

NC

IDID

CDC RX

CD

CR

XUSART3 TXPB0

CDC TX

CD

CT

XUSART3 RXPB1

DBG1

DB

G1PB3LED0

DBG2

DB

G2PB2SW0

PF4

PF

4USART2 TX

PF5

PF

5USART2 RX

PA2

PA

2TWI0 SDA

PA3

PA

3TWI0 SCL

PA4

PA

4SPI0 MOSI

PA5

PA

5SPI0 MISO

PA6

PA

6SPI0 SCK

PA7

PA

7SPI0 SS

GND

GN

D

PB0

PB

0USART3 TXCDC RX

PB1

PB

1USART3 RXCDC TX

PF2

PF

2

PF3

PF

3

PC0

PC

0

PC1

PC

1

PC2

PC

2

PC3

PC

3

GND

GN

D

(PA0)

(PA

0)XTALHF1

(PA1)

(PA

1)XTALHF2

PB2

PB

2SW0

PB3

PB

3LED0

VBUS

VB

US

VOFF

VO

FF

DBG3

DB

G3 PF6

DBG0

DB

G0 UPDI

GND

GN

D

VTG

VT

G

PD6

PD

6 AIN6

PD3

PD

3 AIN3 OP0 INN

PD2

PD

2 AIN2 OP0 OUT TCA0 WO2

PD1

PD

1 AIN1 OP0 INP TCA0 WO1

PD0

PD

0 AIN0 TCA0 WO0

PD7

PD

7 AIN7 OP1 INN

PD5

PD

5 AIN5 OP1 OUT

PD4

PD

4 AIN4 OP1 INP

GND

GN

D

PE3

PE

3 OP2 INN

PE2

PE

2 OP2 OUT

PE1

PE

1 OP2 INP

PE0

PE

0

PC7

PC

7

PC6

PC

6

PC5

PC

5

PC4

PC

4

GND

GN

D

PB5

PB

5

PB4

PB

4

(PF1)

(PF

1) XTAL32K2

(PF0)

(PF

0) XTAL32K1

DEBUGGERAVR128DB48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

MVIO

OPAMP

Shared pin

AVR128DB48Curiosity Nano

512 Using Pin HeadersThe edge connector footprint on AVR128DB48 Curiosity Nano has a staggered design where each hole is shifted 8mil (~02 mm) off-center The hole shift allows the use of regular 100 mil pin headers on the board without solderingOnce the pin headers are firmly in place they can be used in normal applications like pin sockets and prototypingboards without any issues

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 26

Figure 5-2 Attaching Pin-Headers to the Curiostiy Nano Board

Figure 5-3 Connecting to Curiosity Nano Base for Click boardstrade

Tip  Start at one end of the pin header and gradually insert the header along the length of the boardOnce all the pins are in place use a flat surface to push them in

Tip  For applications where the pin headers will be used permanently it is still recommended to solderthem in place

Important  Once the pin headers are in place they are hard to remove by hand Use a set of pliers andcarefully remove the pin headers to avoid damage to the pin headers and PCB

513 Multi-Voltage IO

The AVR128DB48 Curiosity Nano MCU has support for Multi-Voltage IO (MVIO) AVR128DB48 MVIO pins areconnected to the edge connector at PC0-PC7 MVIO pins are capable of regular IO-pin behavior

MVIO can be configured in one of two supply modesbull Single-Supply mode All IO pins including MVIO-capable pins are powered by VCC_TARGET By default

VCC_TARGET is connected to VDDIO2 through a 0-ohm resistor (R204)bull Dual-Supply mode MVIO-capable pins are powered by an external power supply connected to VDDIO2 Non-

MVIO pins are powered by VCC_TARGET

Dual-Supply mode allows MVIO-pins to be powered at different voltages than pins powered from VCC_TARGET

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 27

WARNINGThe absolute maximum external voltage range for the AVR128DB48 is 18ndash55V Applying a higher voltagemay cause permanent damage to the board

By default AVR128DB48 Curiosity Nano board is configured for single-supply mode To use Dual-Supply mode somehardware modifications are required

WARNINGBefore any hardware modifications are done make sure the board is disconnected from USB or externalpower

bull Disconnect resistor R204 connecting VDDIO2 to VCC_TARGETbull Connect a new power supply to VDDIO2 and ground at J212bull J212 does not have reverse polarity protection Make sure to match polarity between the power supply and

J212 Positive-polarity to J212-pin 1 and negative-polarity to J212-pin 2

The resistor R204 VDDIO2 and J212 can be seen in Figure 5-4

Figure 5-4 MVIO and VDDIO2 Connections

J212 R204

WARNINGApplying an external voltage to VDDIO2 pin without removing resistor R204 may cause permanentdamage to the board

WARNINGJ212 does not have reverse polarity protection Applying voltage to the wrong pin may cause permanentdamage to the board

514 Operational AmplifiersAVR128DB48 features three internal operational amplifiers with a flexible connection scheme using analogmultiplexers and resistor ladders This allows a large number of analog signal conditioning configurations manyrequiring no external components

Table 5-1 OPAMP Pin Connections

OPAMP Poisitive Input (INP) Negative Input (INN) Output (OUT)

OP0 PD1 PD3 PD2

OP1 PD4 PD7 PD5

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 28

continuedOPAMP Poisitive Input (INP) Negative Input (INN) Output (OUT)

OP2 PE1 PE3 PE2

For information about OPAMP on the edge connector and any shared functionality see 511 AVR128DB48 CuriosityNano Pinout

52 Peripherals

521 LEDThere is one yellow user LED available on the AVR128DB48 Curiosity Nano board that can be controlled by eitherGPIO or PWM The LED can be activated by driving the connected IO line to GND

Table 5-2 LED Connection

AVR128DB48 Pin Function Shared Functionality

PB3 Yellow LED0 Edge connector On-board debugger

522 Mechanical SwitchThe AVR128DB48 Curiosity Nano board has one mechanical switch This is a generic user-configurable switchWhen the switch is pressed it will drive the IO line to ground (GND)

Tip  There is no externally connected pull-up resistor on the switch To use the switch make sure that aninternal pull-up resistor is enabled on pin PB2

Table 5-3 Mechanical Switch

AVR128DB48 Pin Description Shared Functionality

PB2 User switch (SW0) Edge connector On-board debugger

523 32768 kHz Crystal

On the AVR128DB48 Curiosity Nano board is a mounted 32768 kHz crystal of type VMK3-9001-32K7680000 thecrystal is accurate to within 20 ppm Using the External 32768 kHz Crystal Oscillator (XOSC32K) module inAVR128DB48 with the mounted 32768 kHz crystal generates a clock signal that is significantly more accurate thanthe Internal 32768 kHz Ultra Low-Power Oscillator (OSC32K) module can generate alone With the Auto-Tunefeature the 32768 kHz can be used as a reference to improve the accuracy of the internal oscillator This is an idealreference clock for the Real-Time Counter module in AVR128DB48

The 32768 kHz crystal is connected to AVR128DB48 on PF0 and PF1 which are also routed to the edge connectorthrough two solder points PF0 and PF1 are disconnected from the edge connector by default to reduce the chanceof an external signal causing contention with the crystal and to remove excessive capacitance on the lines

Next to the 32768 kHz crystal is a cut-strap (J209) which can be used to measure the oscillator safety factor This isdone by cutting the strap and adding a 0402 SMD resistor across the strap More information about oscillatorallowance and safety factor can be found in the AN2648 application note from Microchip

Cut straps and solder points can be seen in Figure 5-5

Table 5-4 32768 kHz Crystal Connections

AVR128DB48 Pin Function Shared Functionality

PF0 XTAL32K1 (Crystal input) Edge connector

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 29

continuedAVR128DB48 Pin Function Shared Functionality

PF1 XTAL32K2 (Crystal output) Edge connector

PA0 and PA1 can be used as GPIO To do so some hardware modifications are required

WARNINGBefore any hardware modifications are done make sure the board is disconnected from the USB orexternal power

bull Disconnect the 32768 kHz crystal by cutting the two straps on the top side of the board next to the crystal(J207 J208) The crystal should be disconnected when using the pin as GPIO as this might harm the crystal

bull Connect the IO lines to the edge connector by placing solder blobs on the circular solder points marked PF0and PF1 on the bottom side of the board (J210 J211)

Figure 5-5 Crystal Connection and Cut Straps

Top side Boom side

J211

J210

J207

J20832768 kHz Crystal

J209

524 1600 MHz Crystal

On the AVR128DB48 Curiosity Nano board is a mounted 1600 MHz crystal of type VXM7-9040-16M0000000 thecrystal is accurate to within 20 ppm Using the External High-Frequency Crystal Oscillator (XOSCHF) module inAVR128DB48 with the mounted 1600 MHz crystal generates a clock signal that is significantly more accurate thanthe Internal High-Frequency Oscillator (OSCHF) module

The 1600 MHz crystal is connected to AVR128DB48 on PA0 and PA1 which are also routed to the edge connectorthrough two solder points PA0 and PA1 are disconnected from the edge connector by default to reduce the chanceof an external signal causing contention with the crystal and to remove excessive capacitance on the lines

Next to the 1600 MHz crystal is a cut-strap (J217) which can be used to measure the oscillator safety factor This isdone by cutting the strap and adding a 0402 SMD resistor across the strap More information about oscillatorallowance and safety factor can be found in the AN2648 application note from Microchip

Cut straps and solder points can be seen in Figure 5-6

Table 5-5 Crystal Connections

AVR128DB48 Pin Function Shared Functionality

PA0 XTALHF1 (Crystal input) Edge connector

PA1 XTALHF2 (Crystal output) Edge connector

PA0 and PA1 can be used as GPIO To do so some hardware modifications are required

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 30

WARNINGBefore any hardware modifications are done make sure the board is disconnected from USB or externalpower

bull Disconnect the 1600 MHz crystal by cutting the two straps on the top side of the board next to the crystal (J215J216) The crystal should be disconnected when using the pin as GPIO as this might harm the crystal

bull Connect the IO lines to the edge connector by placing solder blobs on the circular solder points marked PA0and PA1 on the bottom side of the board (J213 J214)

Figure 5-6 Crystal Connection and Cut Straps

Top side Boom side

J214

J213

J216

J2151600 MHzCrystal

J217

525 On-Board Debugger ImplementationAVR128DB48 Curiosity Nano features an on-board debugger that can be used to program and debug theAVR128DB48 using UPDI The on-board debugger also includes a virtual serial port (CDC) interface over UART anddebug GPIO Both MPLABreg X IDE and Atmel Studio 7 can be used as a front-end for the on-board debugger forprogramming and debugging MPLAB Data Visualizer can be used as a front-end for the CDC and debug GPIO

5251 On-Board Debugger ConnectionsThe table below shows the connections between the target and the debugger section All connections between thetarget and the debugger are tri-stated as long as the debugger is not actively using the interface Hence since thereare little contaminations of the signals the pins can be configured to anything the user wants

For further information on how to use the capabilities of the on-board debugger see 41 On-Board DebuggerOverview

Table 5-6 On-Board Debugger Connections

AVR128DB48Pin

Debugger Pin Function Shared Functionality

PB1 CDC TX UART RX (AVR128DB48 RX line) Edge connector

PB0 CDC RX UART TX (AVR128DB48 TX line) Edge connector

UPDI DBG0 UPDI Edge connector

PB3 DBG1 LED0Debug GPIO1 Edge connector

PB2 DBG2 SW0Debug GPIO0 Edge connector

PF6 DBG3 RESET Edge connector

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 31

6 Hardware Revision History and Known IssuesThis user guide is written to provide information about the latest available revision of the board The followingsections contain information about known issues a revision history of older revisions and how older revisions differfrom the latest revision

61 Identifying Product ID and RevisionThe revision and product identifier of the AVR128DB48 Curiosity Nano Board can be found in two ways Either byutilizing the MPLABreg X IDE or Atmel Studio 7 Kit Window or by looking at the sticker on the bottom side of the PCB

By connecting AVR128DB48 Curiosity Nano to a computer with MPLABreg X IDE or Atmel Studio 7 running the KitWindow will pop up The first six digits of the serial number which is listed under kit information contain the productidentifier and revision

Tip  The Kit Window can be opened in MPLABreg X IDE through the menu bar Window gt Kit Window

The same information can be found on the sticker on the bottom side of the PCB Most boards will have the identifierand revision printed in plain text as A09-nnnnrr where ldquonnnnrdquo is the identifier and ldquorrrdquo is the revision Boards withlimited space have a sticker with only a data matrix code containing the product identifier revision and serialnumber

The serial number string has the following format

nnnnrrssssssssss

n = product identifier

r = revision

s = serial number

The product identifier for AVR128DB48 Curiosity Nano is A09‑3372

62 Revision 3AVR128DB48 silicon revision A5 or later is mounted on this revision of the board

63 Revision 2Revision 2 is the initially released board revision

AVR128DB48 silicon revision A4 is mounted on this revision of the board

AVR128DB48 Curiosity NanoHardware Revision History and Known Issues

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 32

7 Document Revision HistoryDoc Rev Date Comments

A 092020 Initial document release

AVR128DB48 Curiosity NanoDocument Revision History

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 33

8 Appendix

81 SchematicFigure 8-1 AVR128DB48 Curiosity Nano Schematic

11

22

33

44

55

66

77

88

DD

CC

BB

AA

2 of

4

AV

R12

8DB

48 C

uri

osit

y N

ano

240

820

20A

VR

128D

B48

_Cur

iosi

ty_N

ano_

Targ

et_M

CU

Sch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA

Rev

isio

n

File

P

CB

Num

ber

PC

B

Rev

isio

n

Des

ign

ed w

ith

Dra

wn

By

ML

Shee

t Titl

e

Targ

et M

CU

Eng

inee

rA

H

A08

-305

71

Size

A3

A09

-337

22

Page

D

ateA

ltium

com

GN

D

VD

DIO

2

100n

C20

1

GN

D

PA5_

SPI0

_MIS

OPA

6_SP

I0_S

CK

PA7_

SPI0

_SS

PB0_

USA

RT

3_T

XPB

1_U

SAR

T3_

RX

PB2_

SW0_

DB

G2

PB3_

LE

D0_

DB

G1

PB

4P

B5

PC

0P

C1

PC

2

PC3

PC4PC5PC6PC7PD0_AIN0_TCA0_WO0PD1_AIN1_OP0_INP_TCA0_WO1PD2_AIN2_OP0_OUT_TCA0_WO2PD3_AIN3_OP0_INNPD4_AIN4_OP1_INP

PA3_TWI0_SCL

PA1_XTALHF2

UPDI_DBG0

PF5_USART2_RX

PF3

PF

2PF

1_X

TA

L32

K2

PF0_

XT

AL

32K

1P

E3_

OP

2_IN

NP

E2_

OP

2_O

UT

PE

1_O

P2_

INP

PE

0

PD5_

AIN

5_O

P1_

OU

TPD

6_A

IN6

PD7_

AIN

7_O

P1_

INN

GN

D

VC

C_T

AR

GE

T

100n

C20

2

GN

DV

CC

_TA

RG

ET

100n

C20

0

PF1_XTAL32K2

PF0_XTAL32K1

PA2_TWI0_SDA

PA0_XTALHF1

PF4_USART2_TX

PA4_SPI0_MOSI

GN

D

PA7_

SPI0

_SS

PA6_

SPI0

_SC

KPA

5_SP

I0_M

ISO

PA4_

SPI0

_MO

SIPA

3_T

WI0

_SC

LPA

2_T

WI0

_SD

A

PC

0P

C1

PC

2P

C3

PB

4P

B5

PD7_

AIN

7_O

P1_

INN

PD6_

AIN

6

PD2_

AIN

2_O

P0_

OU

T_T

CA

0_W

O2

PD1_

AIN

1_O

P0_

INP_

TC

A0_

WO

1PD

0_A

IN0_

TC

A0_

WO

0

PD5_

AIN

5_O

P1_

OU

TPD

4_A

IN4_

OP

1_IN

P

PD3_

AIN

3_O

P0_

INN

32K

Hz

Cry

stal

PB0_

USA

RT

3_T

XPB

1_U

SAR

T3_

RX

1kR203

US

ER

LE

D

VC

C_T

AR

GE

T

PF6_DBG3

PB2_SW0_DBG2

PB3_LED0_DBG1

GN

D

USE

R B

UT

TO

N

PB3_

LE

D0_

DB

G1

PB2_

SW0_

DB

G2

PB1_

USA

RT

3_R

XPB

0_U

SAR

T3_

TX

PF4_

USA

RT

2_T

XPF

5_U

SAR

T2_

RX

PF

2P

F3

PC

4P

C5

PC

6P

C7

1kR202

YELLOWLEDSML-D12Y1WT86

2 1

D200

TS604VM1-035CR13

4 2

SW20

0

GN

DV

CC

_ED

GE

GN

DG

ND

GN

DG

ND

UPD

I_D

BG

0P

F6_

DB

G3

J209

PB3_

LE

D0_

DB

G1

PB2_

SW0_

DB

G2

AV

R12

8DB

48

22u

FC

205

VC

C_E

DG

E

GN

D

DBG0

CDC_TXCDC_RX

DBG2

DBG1

DBG3

DBG2

DE

BU

GG

ER

CO

NN

EC

TIO

NS

DBG1

DBG3DBG0

VOFF

ID_SYS

ID_SYS

VOFF

TA

RG

ET

BU

LK

VC

C_T

AR

GE

TR

ESE

T P

ull

VB

US

CD

C R

X3

CD

C T

X4

DB

G1

5

DB

G2

6

0 T

X7

1 R

X8

2 SD

A9

3 S

CL

10

4 M

OSI

11

5 M

ISO

12

6 S

CK

13

7 S

S14

GN

D15

0 (T

X)

16

1 (R

X)

17

218

319

020

GN

D24

DB

G3

54

DB

G0

53

GN

D52

VC

C51

PW

M 3

46

AD

C 2

45

AD

C 1

44

AD

C 0

43

GN

D42

438

434

GN

D33

AD

C 7

50

AD

C 6

49

AD

C 5

48

PW

M 4

47

DE

BU

GG

ER

TAR

GE

T

ID2

VO

FF

55

121

222

323

025

126

227

328

429

530

631

732

535

636

737

539

640

741

RE

SER

VE

D1

VB

US

56

CN

AN

O56

-pin

edg

e co

nnec

tor

J200

J201

J203

J205

J206

J202

J204

PF1_

XT

AL

32K

2PF

0_X

TA

L32

K1

NC

XOUT

XIN

47kR200

AV

R12

8DB

48

UPD

I

GPI

O1

GPI

O0

RE

SET

DB

G0

DB

G1

DB

G2

DB

G3

Deb

ugge

r

CD

C T

X

CD

C R

X

UA

RT

3 R

X

UA

RT

3 T

X

VT

G1

8V -

55

VPB

3

PB

2

PF

6

UP

DI

PB

0

PB

1

Nam

eP

in

PE

3_O

P2_

INN

PE

2_O

P2_

OU

TP

E1_

OP

2_IN

PP

E0

J207

J208

PF

0P

F1

PA5

1

PA6

2

PA7

3

PB0

4

PB1

5

PB2

6

PB3

7

PB4

8

PB5

9

PC0

10

PC1

11

PC2

12

PC313

VDDIO214

GND15

PC416

PC517

PC618

PC719

PD020

PD121

PD222

PD323

PD424

PD5

25

PD6

26

PD7

27

AVDD

28

GND

29

PE0

30

PE1

31

PE2

32

PE3

33

XTAL32K1PF0

34

XTAL32K2PF1

35

PF2

36

PF337

PF438

PF539

PF640

UPDI41

VDD42

GND43

XTALHF1PA044

XTALHF2PA145

PA246

PA347

PA448

AV

R12

8DB

48-I

PT

U20

0

0RR204

GN

D

VC

C_T

AR

GE

T

VDDIO2

GND

J210

J211

82p

C20

48

2pC

203

GN

DG

ND

16M

Hz

Cry

stal

J217

XHFOUT

XHFIN

J214

J213

GN

D

J215

J216

PA0_XTALHF1

PA1_XTALHF2

PA0_

XT

AL

HF

1PA

1_X

TA

LH

F2

PA0

PA1

1 2

J212 N

M

15pF

C20

615

pFC

207

13

24 16

000

MH

zV

XM

7-90

40-1

6M00

0000

0TR

XC

201

GN

D32

768

kHz

VM

K3-

9001

-32K

7680

000T

R

XC

200

CDC_TX

CDC_RX

CD

C_T

XC

DC

_RX

Cry

stal

dat

ashe

et

Ccr

ysta

l = 9

pFm

ax E

SR

= 7

0kO

hmA

ccur

acy

plusmn20p

pm

AV

R48

DB

128

data

shee

tC

xin

= 4

0pF

(ty

pica

l val

ue)

Cxo

ut =

40

pF (

typi

cal v

alue

)C

lasymp1

( (1

40

pF)+

(1

40p

F)

)asymp

20p

FM

axim

um L

oad

= 1

25p

FM

axim

um E

SR =

50k

Ohm

Est

imat

ed C

pcb

= 0

5pF

Est

imat

ed lo

adC

= 2

(C

crys

tal-

Cpa

ra -

Cpc

b)C

= 2

(9p

F -

20

pF -

05

pF)

C =

13

0pF

Sele

cted

in d

esig

n af

ter

veri

fica

tion

C=

82

pF8

2pF

NO

TE

on

UA

RT

CD

C

RX

TX

onth

ehe

ader

deno

tes

the

inpu

tout

put d

irec

tion

of th

e si

gnal

resp

ectiv

e to

its

sou

rce

CD

C T

X is

out

put f

rom

the

DE

BU

GG

ER

C

DC

RX

is in

put t

o th

e D

EB

UG

GE

R

TX

is o

utpu

t fro

m th

e T

AR

GE

T d

evic

eR

X is

inpu

t to

the

TA

RG

ET

dev

ice

NO

TE

on

I2C

No

pull

-ups

on

boar

d P

ull-

ups

shou

ld b

em

ount

ed c

lose

to s

lave

dev

ice(

s)

WA

RN

ING

M

ake

sure

tore

mov

e R

204

befo

reap

plyi

ng p

ower

to J

212

Cry

stal

dat

ashe

et

Ccr

ysta

l = 1

2pF

max

ES

R =

60O

hmA

ccur

acy

plusmn30p

pm

AV

R48

DB

128

data

shee

tC

xin

= 4

0pF

(ty

pica

l val

ue)

Cxo

ut =

40

pF (

typi

cal v

alue

)C

lasymp1

( (1

40

pF)+

(1

40p

F)

)asymp

20p

FM

axim

um L

oad

= 1

25p

FM

axim

um E

SR =

k

Ohm

Est

imat

ed C

pcb

= 0

5pF

Est

imat

ed lo

adC

= 2

(C

crys

tal-

Cpa

ra -

Cpc

b)C

= 2

(12

pF -

20

pF -

05

pF)

C =

19

0pF

Sele

cted

in d

esig

n af

ter

veri

fica

tion

C=

15p

F1

5pF

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 34

11

22

33

44

55

66

77

88

DD

CC

BB

AA

3 of

4

AV

R12

8DB

48 C

uri

osit

y N

ano

2020

-06-

26A

VR

128D

B48

_Cur

iosi

ty_N

ano_

Deb

ugge

rSch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA

Rev

isio

n

Fil

eP

CB

Num

ber

PC

B

Rev

isio

n

Des

ign

ed w

ith

Dra

wn

By

ML

Shee

t Tit

le

Deb

ugge

r

Eng

inee

rA

H

A08

-305

71

Size

A3

A09

-337

22

Page

D

ateA

ltium

com

DE

BU

GG

ER

USB

MIC

RO

-B C

ON

NE

CT

OR

GN

D

USB

D_P

USB

D_N

100n

C10

7

100n

C10

8

1kR

107

VC

C_P

3V3

SRST

STA

TU

S_L

ED

SHIE

LD

VB

US

VC

C_P

3V3

GN

D

TP

100

Test

poin

t Arr

ay

12

34

56

78

910

TC

KT

DO

TM

SV

sup

TD

IG

ND

TR

STSR

STV

Tre

fG

ND

J102

GN

D

47u

F

C10

0

DBG0

DB

G0

21

GR

EE

N L

ED

SML

-P12

MT

T86

R

D10

0

VBUS

1

D-

2

D+

3

GND

5

SHIELD1

6

SHIELD2

7

ID

4

SHIELD3

8

SHIELD4

9 MU

-MB

0142

AB

2-26

9

J105

PAD

33

PA00

1

PA01

2

PA02

3

PA03

4

GND 10VDDANA 9

PA04

5

PA05

6

PA06

7

PA07

8

PA08 11

PA09 12

PA10 13

PA11 14

PA14 15

PA15 16

PA16

17

PA17

18

PA18

19

PA19

20

PA22

21

USB_SOFPA23

22

USB_DMPA24

23

USB_DPPA25

24

PA2725 RESETN26 PA2827 GND28 VDDCORE29 VDDIN30 SWDCLKPA3031 SWDIOPA3132

SAM

D21

E18

A-M

UT

U10

0

VOUT

1

VOUT

2

GND 3

EN

4

VIN

6

NC

5

EP 7

MIC

5528

-33

YM

TU

101

VC

C_P

3V3

GN

D

USB

D_P

USB

D_N

GN

D

1uC

106

VC

C_M

CU

_CO

RE

VC

C_P

3V3

VC

C_P

3V3

22u

FC

101

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

3

VC

C_P

3V3

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

4

VC

C_P

3V3

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

5

VC

C_P

3V3

GN

D

GN

D GN

D

GN

D

VC

C_E

DG

E

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

7

VC

C_P

3V3

GN

DDBG2

DB

G3_

CT

RL

S1_0

_TX

S1_1

_RX

S0_2

_TX

DA

CV

TG

_AD

C

RE

SER

VE

D

S0_3

_CL

K

DBG0_CTRL

CD

C_T

X_C

TR

L

BO

OT

DE

BU

GG

ER

PO

WE

RS

TA

TU

S L

ED

EN

1

BYP

6

VOUT

4

GND

2

VIN

3

NCADJ

5

GND

7

MIC

5353

U10

2

100n

C10

2

GN

D

GN

D

47kR101

27kR104 G

ND

33k

R10

6

22u

F

C10

3 GN

D

1kR

108

J100

VC

C_L

EV

EL

VC

C_R

EG

UL

AT

OR

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

6

VC

C_P

3V3

GN

DDBG1

CD

C_R

X

CD

C_T

X

DBG3

DBG1_CTRL

DE

BU

GG

ER

RE

GU

LA

TO

R

REG_ENABLE

RE

G_E

NA

BL

E

47kR103

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

47kR102

47kR105

SWC

LK

GN

D

47kR100 G

ND

DB

G2

S0_0

_RX

DB

G1_

CT

RL

DB

G0_

CT

RL

DB

G3

OP

EN

DR

AIN

TA

RG

ET

AD

JUST

AB

LE

RE

GU

LA

TO

R

SRST

DE

BU

GG

ER

TE

ST

PO

INT DBG2_CTRL

VO

FF

CD

C_R

X_C

TR

L

47kR109

DB

G1

CD

C_T

X_C

TR

L

CD

C_R

X_C

TR

L

SWC

LK

REG_ADJUST

DBG2_GPIO

DB

G3_

CT

RL

DB

G2_

CT

RL

UP

DI

UPD

I

GPI

O

GPI

O

RE

SET

Sign

al

DB

G0

DB

G1

DB

G2

DB

G3

ICS

PIn

terf

ace

DA

T

CL

K

GPI

O

MC

LR

DB

G3

CD

C T

X

CD

C R

X

UA

RT

RX

UA

RT

TX

UA

RT

RX

UA

RT

TX

TA

RG

ET

TA

RG

ET

1kR

110

VBUS_ADC

1

23

DM

N65

D8L

FB

Q10

1

VC

C-

-

ID_SYS

VOFF

1kR112

VC

C_P

3V3

VT

G_A

DC

DA

C

MIC

9416

3

VIN

B2

VOUT

A1

VIN

A2

EN

C2

GND

C1

VOUT

B1

U10

8

GN

D

ID_S

YS

VT

G_E

N

VTG_EN

VBUS_ADC

SWD

IO

ID_S

YS

TP

101

GN

DSW

DIO

VO

FF

47kR111 G

ND

ID P

IN

MC

3621

3

F10

0

VC

C_V

BU

S

VC

C_V

BU

S

VC

C_V

BU

S

J101

VC

C_T

AR

GE

T

47k

R11

3

CDC_TX

CDC_RX

Prog

ram

min

g co

nnec

tor

for

fact

ory

prog

ram

min

g of

DE

BU

GG

ER

MIC

5528

V

in 2

5V

to 5

5V

Vou

t F

ixed

33

VIm

ax 5

00m

AD

ropo

ut 2

60m

V

500

mA

MIC

5353

V

in 2

6V

to 6

VV

out

12

5V to

51

VIm

ax 5

00m

AD

ropo

ut (

typi

cal)

50m

V

150m

A 1

60m

V

500

mA

Acc

urac

y 2

in

itia

lT

herm

al s

hutd

own

and

curr

ent l

imit

Max

imum

out

put v

olta

ge is

lim

ited

by

the

inpu

t vol

tage

and

the

drop

out v

olta

ge in

the

regu

lato

r(V

max

= V

in -

dro

pout

)

J100

-

Cut

-str

ap u

sed

for

full

sep

arat

ion

of ta

rget

pow

er f

rom

the

leve

l shi

fter

s an

don

-boa

rd r

egul

ator

s-

For

cur

rent

mea

sure

men

ts u

sing

the

on-b

oard

pow

er s

uppl

y th

isst

rap

mus

t be

cut a

nd a

nam

met

er c

onne

cted

acr

oss

- F

or c

urre

nt m

easu

rem

ents

usi

ng a

n ex

tern

al p

ower

sup

ply

this

str

ap c

ould

be

cut f

or m

ore

accu

rate

mea

sure

men

ts L

eaka

ge b

ack

thro

ugh

the

swit

ch is

in th

e m

icro

am

pere

ran

ge

PT

C R

eset

tabl

e fu

se

Hol

d cu

rren

t 5

00m

AT

rip

curr

ent

100

0mA

Adj

usta

ble

outp

ut a

nd li

mit

atio

ns

- T

he D

EB

UG

GE

R c

an a

djus

t the

out

put v

olta

ge o

f th

e re

gula

tor

betw

een

125

V a

nd 5

1V

to th

e ta

rget

-

The

vol

tage

out

put i

s li

mit

ed b

y th

e in

put (

US

B)

whi

ch c

an v

ary

betw

een

440

V to

52

5V-

The

leve

l shi

fter

s ha

ve a

min

imal

vol

tage

leve

l of

165

V a

nd w

ill l

imit

the

min

imum

ope

ratin

g vo

ltage

all

owed

for

the

targ

et to

sti

ll a

llow

com

mun

icat

ion

- T

he M

IC94

163

has

a m

inim

al v

olat

ege

leve

l of

170

V a

nd w

ill l

imit

the

min

imum

vol

tage

del

iver

ed to

the

targ

et

- F

irm

war

e co

nfig

urat

ion

wil

l lim

it th

e vo

ltage

ran

ge to

be

wit

hin

the

the

targ

et s

peci

fica

tion

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 35

82 Assembly DrawingFigure 8-2 AVR128DB48 Curiosity Nano Assembly Drawing Top

+

Cb

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20001 PAC20002 COC200

PAC20101 PAC20102 COC201

PAC20201 PAC20202 COC202 PAC20301

PAC20302 COC203

PAC20401

PAC20402 COC204

PAC20502

PAC20501 COC205

PAC20601

PAC20602 COC206 PAC20701

PAC20702 COC207 PAD10002 PAD10001 COD100

PAD20002

PAD20001 COD200

PAF10002

PAF10001 COF100

PAJ10002 PAJ10001 COJ100

PAJ10101 PAJ10102 COJ101

PAJ10201

PAJ10202

PAJ10203

PAJ10204

PAJ10205

PAJ10206 COJ102

PAJ10506

PAJ10507 PAJ10509

PAJ10508 PAJ105010

PAJ105011 PAJ10505

PAJ10504

PAJ10503

PAJ10502

PAJ10501

PAJ10500

COJ105

PAJ200056 PAJ200053

PAJ200028 PAJ20002 PAJ20001

PAJ200051 PAJ200050 PAJ200052 PAJ200049 PAJ200048 PAJ200047 PAJ200046 PAJ200045 PAJ200044 PAJ200043 PAJ200042 PAJ200041 PAJ200040 PAJ200039 PAJ200038 PAJ200037 PAJ200036 PAJ200035 PAJ200034 PAJ200033 PAJ200032 PAJ200031 PAJ200030 PAJ200029

PAJ20003 PAJ20004 PAJ20005 PAJ20006 PAJ20007 PAJ20008 PAJ20009 PAJ200010 PAJ200011 PAJ200012 PAJ200013 PAJ200014 PAJ200015 PAJ200016 PAJ200017 PAJ200018 PAJ200019 PAJ200020 PAJ200021 PAJ200022 PAJ200023 PAJ200026 PAJ200025 PAJ200024 PAJ200027

PAJ200054 PAJ200055 PAJ20000

COJ200

PAJ20102 PAJ20101 COJ201

PAJ20202 PAJ20201 COJ202

PAJ20302 PAJ20301 COJ203

PAJ20402 PAJ20401 COJ204

PAJ20502 PAJ20501 COJ205

PAJ20602 PAJ20601 COJ206 PAJ20702 PAJ20701 COJ207

PAJ20802 PAJ20801 COJ208

PAJ20902 PAJ20901 COJ209

PAJ21001 PAJ21002 PAJ21005 COJ210

PAJ21102 PAJ21101 PAJ21105 COJ211

PAJ21202 PAJ21201 COJ212

PAJ21301 PAJ21302 PAJ21305 COJ213

PAJ21401 PAJ21402 PAJ21405 COJ214

PAJ21502 PAJ21501 COJ215

PAJ21602 PAJ21601 COJ216 PAJ21702 PAJ21701 COJ217

COLABEL1

PAQ10101 PAQ10102 PAQ10103 PAQ10100

COQ101 PAR10002

PAR10001 COR100 PAR10101 PAR10102 COR101

PAR10202 PAR10201 COR102

PAR10302 PAR10301 COR103

PAR10401 PAR10402 COR104

PAR10502

PAR10501 COR105

PAR10601 PAR10602 COR106

PAR10702 PAR10701 COR107

PAR10801

PAR10802 COR108

PAR10901 PAR10902 COR109

PAR11001 PAR11002 COR110

PAR11101 PAR11102 COR111

PAR11201 PAR11202 COR112

PAR11302 PAR11301 COR113

PAR20001 PAR20002 COR200 PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203 PAR20401 PAR20402 COR204

PASW20003

PASW20004 PASW20002

PASW20001 COSW200

PATP10001 COTP100

PATP10101 COTP101 PAU100033

PAU100032 PAU100031 PAU100030 PAU100029 PAU100028 PAU100027 PAU100026 PAU100025 PAU100024

PAU100023

PAU100022

PAU100021

PAU100020

PAU100019

PAU100018

PAU100017 PAU100016 PAU100015 PAU100014 PAU100013 PAU100012 PAU100011 PAU100010

PAU10001

PAU10002

PAU10003

PAU10004

PAU10005

PAU10006

PAU10007

PAU10008 PAU10009

COU100

PAU10107

PAU10104 PAU10105 PAU10106

PAU10103 PAU10102 PAU10101 PAU10100 COU101 PAU10207

PAU10204 PAU10205

PAU10206

PAU10203 PAU10202

PAU10201

COU102

PAU10306

PAU10305 PAU10304 PAU10303

PAU10302 PAU10301 PAU10300

COU103

PAU10406

PAU10405 PAU10404 PAU10403

PAU10402 PAU10401 PAU10400

COU104

PAU10506

PAU10505 PAU10504 PAU10503

PAU10502 PAU10501 PAU10500

COU105

PAU10606

PAU10605 PAU10604 PAU10603

PAU10602 PAU10601 PAU10600

COU106

PAU10706

PAU10705 PAU10704 PAU10703

PAU10702 PAU10701 PAU10700

COU107

PAU1080A1 PAU1080A2

PAU1080B1 PAU1080B2

PAU1080C1 PAU1080C2 COU108

PAU20001 PAU20002 PAU20003 PAU20004 PAU20005 PAU20006 PAU20007 PAU20008 PAU20009 PAU200010 PAU200011 PAU200012 PAU200013 PAU200014 PAU200015 PAU200016 PAU200017 PAU200018 PAU200019 PAU200020 PAU200021 PAU200022 PAU200023 PAU200024 PAU200025 PAU200026 PAU200027 PAU200028 PAU200029 PAU200030 PAU200031 PAU200032 PAU200033 PAU200034 PAU200035 PAU200036

PAU200037 PAU200038 PAU200039 PAU200040 PAU200041 PAU200042 PAU200043 PAU200044 PAU200045 PAU200046 PAU200047 PAU200048

COU200

PAXC20001

PAXC20002 COXC200

PAXC20101 PAXC20102

PAXC20103 PAXC20104 COXC201

Figure 8-3 AVR128DB48 Curiosity Nano Assembly Drawing Bottom

tcR

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20001 PAC20002 COC200

PAC20101 PAC20102 COC201

PAC20201 PAC20202 COC202 PAC20301

PAC20302 COC203

PAC20401

PAC20402 COC204

PAC20502

PAC20501 COC205

PAC20601

PAC20602 COC206 PAC20701

PAC20702 COC207 PAD10002 PAD10001 COD100

PAD20002

PAD20001 COD200

PAF10002

PAF10001 COF100

PAJ10002 PAJ10001 COJ100

PAJ10101 PAJ10102 COJ101

PAJ10201

PAJ10202

PAJ10203

PAJ10204

PAJ10205

PAJ10206 COJ102

PAJ10506

PAJ10507 PAJ10509

PAJ10508 PAJ105010

PAJ105011 PAJ10505

PAJ10504

PAJ10503

PAJ10502

PAJ10501

PAJ10500

COJ105

PAJ200056 PAJ200053

PAJ200028 PAJ20002 PAJ20001

PAJ200051 PAJ200050 PAJ200052 PAJ200049 PAJ200048 PAJ200047 PAJ200046 PAJ200045 PAJ200044 PAJ200043 PAJ200042 PAJ200041 PAJ200040 PAJ200039 PAJ200038 PAJ200037 PAJ200036 PAJ200035 PAJ200034 PAJ200033 PAJ200032 PAJ200031 PAJ200030 PAJ200029

PAJ20003 PAJ20004 PAJ20005 PAJ20006 PAJ20007 PAJ20008 PAJ20009 PAJ200010 PAJ200011 PAJ200012 PAJ200013 PAJ200014 PAJ200015 PAJ200016 PAJ200017 PAJ200018 PAJ200019 PAJ200020 PAJ200021 PAJ200022 PAJ200023 PAJ200026 PAJ200025 PAJ200024 PAJ200027

PAJ200054 PAJ200055 PAJ20000

COJ200

PAJ20102 PAJ20101 COJ201

PAJ20202 PAJ20201 COJ202

PAJ20302 PAJ20301 COJ203

PAJ20402 PAJ20401 COJ204

PAJ20502 PAJ20501 COJ205

PAJ20602 PAJ20601 COJ206 PAJ20702 PAJ20701 COJ207

PAJ20802 PAJ20801 COJ208

PAJ20902 PAJ20901 COJ209

PAJ21001 PAJ21002 PAJ21005 COJ210

PAJ21102 PAJ21101 PAJ21105 COJ211

PAJ21202 PAJ21201 COJ212

PAJ21301 PAJ21302 PAJ21305 COJ213

PAJ21401 PAJ21402 PAJ21405 COJ214

PAJ21502 PAJ21501 COJ215

PAJ21602 PAJ21601 COJ216 PAJ21702 PAJ21701 COJ217

COLABEL1

PAQ10101 PAQ10102 PAQ10103 PAQ10100

COQ101 PAR10002

PAR10001 COR100 PAR10101 PAR10102 COR101

PAR10202 PAR10201 COR102

PAR10302 PAR10301 COR103

PAR10401 PAR10402 COR104

PAR10502

PAR10501 COR105

PAR10601 PAR10602 COR106

PAR10702 PAR10701 COR107

PAR10801

PAR10802 COR108

PAR10901 PAR10902 COR109

PAR11001 PAR11002 COR110

PAR11101 PAR11102 COR111

PAR11201 PAR11202 COR112

PAR11302 PAR11301 COR113

PAR20001 PAR20002 COR200 PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203 PAR20401 PAR20402 COR204

PASW20003

PASW20004 PASW20002

PASW20001 COSW200

PATP10001 COTP100

PATP10101 COTP101 PAU100033

PAU100032 PAU100031 PAU100030 PAU100029 PAU100028 PAU100027 PAU100026 PAU100025 PAU100024

PAU100023

PAU100022

PAU100021

PAU100020

PAU100019

PAU100018

PAU100017 PAU100016 PAU100015 PAU100014 PAU100013 PAU100012 PAU100011 PAU100010

PAU10001

PAU10002

PAU10003

PAU10004

PAU10005

PAU10006

PAU10007

PAU10008 PAU10009

COU100

PAU10107

PAU10104 PAU10105 PAU10106

PAU10103 PAU10102 PAU10101 PAU10100 COU101 PAU10207

PAU10204 PAU10205

PAU10206

PAU10203 PAU10202

PAU10201

COU102

PAU10306

PAU10305 PAU10304 PAU10303

PAU10302 PAU10301 PAU10300

COU103

PAU10406

PAU10405 PAU10404 PAU10403

PAU10402 PAU10401 PAU10400

COU104

PAU10506

PAU10505 PAU10504 PAU10503

PAU10502 PAU10501 PAU10500

COU105

PAU10606

PAU10605 PAU10604 PAU10603

PAU10602 PAU10601 PAU10600

COU106

PAU10706

PAU10705 PAU10704 PAU10703

PAU10702 PAU10701 PAU10700

COU107

PAU1080A1 PAU1080A2

PAU1080B1 PAU1080B2

PAU1080C1 PAU1080C2 COU108

PAU20001 PAU20002 PAU20003 PAU20004 PAU20005 PAU20006 PAU20007 PAU20008 PAU20009 PAU200010 PAU200011 PAU200012 PAU200013 PAU200014 PAU200015 PAU200016 PAU200017 PAU200018 PAU200019 PAU200020 PAU200021 PAU200022 PAU200023 PAU200024 PAU200025 PAU200026 PAU200027 PAU200028 PAU200029 PAU200030 PAU200031 PAU200032 PAU200033 PAU200034 PAU200035 PAU200036

PAU200037 PAU200038 PAU200039 PAU200040 PAU200041 PAU200042 PAU200043 PAU200044 PAU200045 PAU200046 PAU200047 PAU200048

COU200

PAXC20001

PAXC20002 COXC200

PAXC20101 PAXC20102

PAXC20103 PAXC20104 COXC201

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 36

83 Curiosity Nano Base for Click boardstrade

Figure 8-4 AVR128DB48 Curiosity Nano Pinout Mapping

US

B

DE

BU

GG

ER

AV

R1

28

DB

48

SW

0

LE

D0

PS

LE

DNC

NC

ID

ID

CDC RX

CDCRX

USART3 TX

PB0

CDC TX

CDCTX

USART3 RX

PB1

DBG1

DBG1

PB3

LED0

DBG2

DBG2

PB2

SW0

PF4

PF4

USART2 TX

PF5

PF5

USART2 RX

PA2

PA2

TWI0 SDA

PA3

PA3

TWI0 SCL

PA4

PA4

SPI0 MOSI

PA5

PA5

SPI0 MISO

PA6

PA6

SPI0 SCK

PA7

PA7

SPI0 SS

GND

GND

PB0

PB0

USART3 TX

CDC RX

PB1

PB1

USART3 RX

CDC TX

PF2

PF2

PF3

PF3

PC0

PC0

PC1

PC1

PC2

PC2

PC3

PC3

GND

GND

(PA0)

(PA0)

XTALHF1

(PA1)

(PA1)

XTALHF2

PB2

PB2

SW0

PB3

PB3

LED0

VBUS

VBUS

VOFF

VOFF

DBG3

DBG3

PF6

DBG0

DBG0

UPDI

GND

GND

VTG

VTG

PD6

PD6

AIN6

PD3

PD3

AIN3

OP0 INN

PD2

PD2

AIN2

OP0 OUT

TCA0 WO2

PD1

PD1

AIN1

OP0 INP

TCA0 WO1

PD0

PD0

AIN0

TCA0 WO0

PD7

PD7

AIN7

OP1 INN

PD5

PD5

AIN5

OP1 OUT

PD4

PD4

AIN4

OP1 INP

GND

GND

PE3

PE3

OP2 INN

PE2

PE2

OP2 OUT

PE1

PE1

OP2 INP

PE0

PE0

PC7

PC7

PC6

PC6

PC5

PC5

PC4

PC4

GND

GND

PB5

PB5

PB4

PB4

(PF1)

(PF1)

XTAL32K2

(PF0)

(PF0)

XTAL32K1

DE

BU

GG

ER

AV

R1

28

DB

48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

MVIO

OPAMP

Shared pin

AV

R1

28

DB

48

Cu

rio

sity

Na

no

1

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

2

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

3

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

Xp

lain

ed

Pro

Ext

en

sio

nE

XT

11

2

19

20

Cu

rio

sity

Na

no

Ba

sefo

r cl

ick

bo

ard

sT

M

PD4

PD0

PD6

PD3

PA7

PF5

PA6

PF4

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

PD5

PD1

PF3

PF2

PE2

PB1

PA6

PB0

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

PD7

PD2

PE1

PE0

PE3

PF5

PA6

PF4

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

ID

GND

PD5

PD7

PF3

PE1

PD1

PD2

PF2

PE3

PA2

PA3

PB1

PB0

PE2

PA4

PA5

PA6

GND

+33V

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 37

84 Disconnecting the On-board DebuggerThe on-board debugger and level shifters can be completely disconnected from the AVR128DB48

The block diagram below shows all connections between the debugger and the AVR128DB48 The rounded boxesrepresent connections to the board edge The signal names shown are also printed in silkscreen on the bottom sideof the board

To disconnect the debugger cut the straps shown in Figure 8-6

Attention  Cutting the GPIO straps to the on-board debugger will disable the virtual serial portprogramming debugging and data streaming Cutting the power supply strap will disconnect the on-boardpower supply

Tip  Any connection that is cut can be reconnected using solder Alternatively a 0Ω 0402 resistor can bemounted

Tip  When the debugger is disconnected an external debugger can be connected to holes shown in Figure 8-6 Details about connecting an external debugger are described in 46 Connecting ExternalDebuggers

Figure 8-5  On-Board Debugger Connections Block Diagram

DE

BU

GG

ER

TARGETLevel-Shift

PA04PA06PA07PA08PA16PA00PA01

USB

DIR x 5

VCC_P3V3

VBUS

VC

C_L

EV

EL

VC

C_T

AR

GE

TDBG0DBG1DBG2DBG3CDC TXCDC RX

CDC RX

CDC TX

DBG3

DBG2

DBG1

DBG0

GPIO straps

LDO

VOFF

LDO

VBUS VTG

VCC_EDGE

Power Supply strap Target Power strap

UART RXUART TX

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 38

Figure 8-6 On-Board Debugger Connection Cut Straps

GPIO straps (bottom side) Power Supply strap (top side)

85 Getting Started with IARIAR Embedded Workbenchreg for AVRreg is a proprietary high-efficiency compiler not based on GCC Programming anddebugging of AVR128DB48 Curiosity Nano is supported in IARtrade Embedded Workbench for AVR using the Atmel-ICEinterface Some initial settings must be set up in the project to get the programming and debugging to work

The following steps will explain how to get your project ready for programming and debugging

1 Make sure you have opened the project you want to configure Open the OPTIONS dialog for the project2 In the category General Options select the Target tab Select the device for the project or if not listed the

core of the device as shown in Figure 8-73 In the category Debugger select the Setup tab Select Atmel-ICE as the driver as shown in Figure 8-84 In the category Debugger gt Atmel-ICE select the Atmel-ICE 1 tab Select UPDI as the interface and

optionally select the UPDI frequency as shown in Figure 8-9

Info  If the selection of Debug Port (mentioned in step 4) is grayed out the interface is preselected andthe user can skip this configuration step

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 39

Figure 8-7 Select Target Device

Figure 8-8 Select Debugger

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 40

Figure 8-9 Configure Interface

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 41

The Microchip Website

Microchip provides online support via our website at wwwmicrochipcom This website is used to make files andinformation easily available to customers Some of the content available includes

bull Product Support ndash Data sheets and errata application notes and sample programs design resources userrsquosguides and hardware support documents latest software releases and archived software

bull General Technical Support ndash Frequently Asked Questions (FAQs) technical support requests onlinediscussion groups Microchip design partner program member listing

bull Business of Microchip ndash Product selector and ordering guides latest Microchip press releases listing ofseminars and events listings of Microchip sales offices distributors and factory representatives

Product Change Notification Service

Microchiprsquos product change notification service helps keep customers current on Microchip products Subscribers willreceive email notification whenever there are changes updates revisions or errata related to a specified productfamily or development tool of interest

To register go to wwwmicrochipcompcn and follow the registration instructions

Customer Support

Users of Microchip products can receive assistance through several channels

bull Distributor or Representativebull Local Sales Officebull Embedded Solutions Engineer (ESE)bull Technical Support

Customers should contact their distributor representative or ESE for support Local sales offices are also available tohelp customers A listing of sales offices and locations is included in this document

Technical support is available through the website at wwwmicrochipcomsupport

Microchip Devices Code Protection Feature

Note the following details of the code protection feature on Microchip devices

bull Microchip products meet the specifications contained in their particular Microchip Data Sheetbull Microchip believes that its family of products is secure when used in the intended manner and under normal

conditionsbull There are dishonest and possibly illegal methods being used in attempts to breach the code protection features

of the Microchip devices We believe that these methods require using the Microchip products in a manneroutside the operating specifications contained in Microchiprsquos Data Sheets Attempts to breach these codeprotection features most likely cannot be accomplished without violating Microchiprsquos intellectual property rights

bull Microchip is willing to work with any customer who is concerned about the integrity of its codebull Neither Microchip nor any other semiconductor manufacturer can guarantee the security of its code Code

protection does not mean that we are guaranteeing the product is ldquounbreakablerdquo Code protection is constantlyevolving We at Microchip are committed to continuously improving the code protection features of our productsAttempts to break Microchiprsquos code protection feature may be a violation of the Digital Millennium Copyright ActIf such acts allow unauthorized access to your software or other copyrighted work you may have a right to suefor relief under that Act

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 42

Legal Notice

Information contained in this publication is provided for the sole purpose of designing with and using Microchipproducts Information regarding device applications and the like is provided only for your convenience and may besuperseded by updates It is your responsibility to ensure that your application meets with your specifications

THIS INFORMATION IS PROVIDED BY MICROCHIP ldquoAS ISrdquo MICROCHIP MAKES NO REPRESENTATIONS ORWARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED WRITTEN OR ORAL STATUTORY OROTHERWISE RELATED TO THE INFORMATION INCLUDING BUT NOT LIMITED TO ANY IMPLIEDWARRANTIES OF NON-INFRINGEMENT MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSEOR WARRANTIES RELATED TO ITS CONDITION QUALITY OR PERFORMANCE

IN NO EVENT WILL MICROCHIP BE LIABLE FOR ANY INDIRECT SPECIAL PUNITIVE INCIDENTAL ORCONSEQUENTIAL LOSS DAMAGE COST OR EXPENSE OF ANY KIND WHATSOEVER RELATED TO THEINFORMATION OR ITS USE HOWEVER CAUSED EVEN IF MICROCHIP HAS BEEN ADVISED OF THEPOSSIBILITY OR THE DAMAGES ARE FORESEEABLE TO THE FULLEST EXTENT ALLOWED BY LAWMICROCHIPS TOTAL LIABILITY ON ALL CLAIMS IN ANY WAY RELATED TO THE INFORMATION OR ITS USEWILL NOT EXCEED THE AMOUNT OF FEES IF ANY THAT YOU HAVE PAID DIRECTLY TO MICROCHIP FORTHE INFORMATION Use of Microchip devices in life support andor safety applications is entirely at the buyerrsquos riskand the buyer agrees to defend indemnify and hold harmless Microchip from any and all damages claims suits orexpenses resulting from such use No licenses are conveyed implicitly or otherwise under any Microchip intellectualproperty rights unless otherwise stated

Trademarks

The Microchip name and logo the Microchip logo Adaptec AnyRate AVR AVR logo AVR Freaks BesTimeBitCloud chipKIT chipKIT logo CryptoMemory CryptoRF dsPIC FlashFlex flexPWR HELDO IGLOO JukeBloxKeeLoq Kleer LANCheck LinkMD maXStylus maXTouch MediaLB megaAVR Microsemi Microsemi logo MOSTMOST logo MPLAB OptoLyzer PackeTime PIC picoPower PICSTART PIC32 logo PolarFire Prochip DesignerQTouch SAM-BA SenGenuity SpyNIC SST SST Logo SuperFlash Symmetricom SyncServer TachyonTempTrackr TimeSource tinyAVR UNIO Vectron and XMEGA are registered trademarks of Microchip TechnologyIncorporated in the USA and other countries

APT ClockWorks The Embedded Control Solutions Company EtherSynch FlashTec Hyper Speed ControlHyperLight Load IntelliMOS Libero motorBench mTouch Powermite 3 Precision Edge ProASIC ProASIC PlusProASIC Plus logo Quiet-Wire SmartFusion SyncWorld Temux TimeCesium TimeHub TimePictra TimeProviderVite WinPath and ZL are registered trademarks of Microchip Technology Incorporated in the USA

Adjacent Key Suppression AKS Analog-for-the-Digital Age Any Capacitor AnyIn AnyOut BlueSky BodyComCodeGuard CryptoAuthentication CryptoAutomotive CryptoCompanion CryptoController dsPICDEMdsPICDEMnet Dynamic Average Matching DAM ECAN EtherGREEN In-Circuit Serial Programming ICSPINICnet Inter-Chip Connectivity JitterBlocker KleerNet KleerNet logo memBrain Mindi MiWi MPASM MPFMPLAB Certified logo MPLIB MPLINK MultiTRAK NetDetach Omniscient Code Generation PICDEMPICDEMnet PICkit PICtail PowerSmart PureSilicon QMatrix REAL ICE Ripple Blocker SAM-ICE Serial QuadIO SMART-IS SQI SuperSwitcher SuperSwitcher II Total Endurance TSHARC USBCheck VariSenseViewSpan WiperLock Wireless DNA and ZENA are trademarks of Microchip Technology Incorporated in the USAand other countries

SQTP is a service mark of Microchip Technology Incorporated in the USA

The Adaptec logo Frequency on Demand Silicon Storage Technology and Symmcom are registered trademarks ofMicrochip Technology Inc in other countries

GestIC is a registered trademark of Microchip Technology Germany II GmbH amp Co KG a subsidiary of MicrochipTechnology Inc in other countries

All other trademarks mentioned herein are property of their respective companiescopy 2020 Microchip Technology Incorporated Printed in the USA All Rights Reserved

ISBN 978-1-5224-6667-3

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 43

Quality Management SystemFor information regarding Microchiprsquos Quality Management Systems please visit wwwmicrochipcomquality

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 44

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupportwwwmicrochipcomsupportWeb AddresswwwmicrochipcomAtlantaDuluth GATel 678-957-9614Fax 678-957-1455Austin TXTel 512-257-3370BostonWestborough MATel 774-760-0087Fax 774-760-0088ChicagoItasca ILTel 630-285-0071Fax 630-285-0075DallasAddison TXTel 972-818-7423Fax 972-818-2924DetroitNovi MITel 248-848-4000Houston TXTel 281-894-5983IndianapolisNoblesville INTel 317-773-8323Fax 317-773-5453Tel 317-536-2380Los AngelesMission Viejo CATel 949-462-9523Fax 949-462-9608Tel 951-273-7800Raleigh NCTel 919-844-7510New York NYTel 631-435-6000San Jose CATel 408-735-9110Tel 408-436-4270Canada - TorontoTel 905-695-1980Fax 905-695-2078

Australia - SydneyTel 61-2-9868-6733China - BeijingTel 86-10-8569-7000China - ChengduTel 86-28-8665-5511China - ChongqingTel 86-23-8980-9588China - DongguanTel 86-769-8702-9880China - GuangzhouTel 86-20-8755-8029China - HangzhouTel 86-571-8792-8115China - Hong Kong SARTel 852-2943-5100China - NanjingTel 86-25-8473-2460China - QingdaoTel 86-532-8502-7355China - ShanghaiTel 86-21-3326-8000China - ShenyangTel 86-24-2334-2829China - ShenzhenTel 86-755-8864-2200China - SuzhouTel 86-186-6233-1526China - WuhanTel 86-27-5980-5300China - XianTel 86-29-8833-7252China - XiamenTel 86-592-2388138China - ZhuhaiTel 86-756-3210040

India - BangaloreTel 91-80-3090-4444India - New DelhiTel 91-11-4160-8631India - PuneTel 91-20-4121-0141Japan - OsakaTel 81-6-6152-7160Japan - TokyoTel 81-3-6880- 3770Korea - DaeguTel 82-53-744-4301Korea - SeoulTel 82-2-554-7200Malaysia - Kuala LumpurTel 60-3-7651-7906Malaysia - PenangTel 60-4-227-8870Philippines - ManilaTel 63-2-634-9065SingaporeTel 65-6334-8870Taiwan - Hsin ChuTel 886-3-577-8366Taiwan - KaohsiungTel 886-7-213-7830Taiwan - TaipeiTel 886-2-2508-8600Thailand - BangkokTel 66-2-694-1351Vietnam - Ho Chi MinhTel 84-28-5448-2100

Austria - WelsTel 43-7242-2244-39Fax 43-7242-2244-393Denmark - CopenhagenTel 45-4485-5910Fax 45-4485-2829Finland - EspooTel 358-9-4520-820France - ParisTel 33-1-69-53-63-20Fax 33-1-69-30-90-79Germany - GarchingTel 49-8931-9700Germany - HaanTel 49-2129-3766400Germany - HeilbronnTel 49-7131-72400Germany - KarlsruheTel 49-721-625370Germany - MunichTel 49-89-627-144-0Fax 49-89-627-144-44Germany - RosenheimTel 49-8031-354-560Israel - RarsquoananaTel 972-9-744-7705Italy - MilanTel 39-0331-742611Fax 39-0331-466781Italy - PadovaTel 39-049-7625286Netherlands - DrunenTel 31-416-690399Fax 31-416-690340Norway - TrondheimTel 47-72884388Poland - WarsawTel 48-22-3325737Romania - BucharestTel 40-21-407-87-50Spain - MadridTel 34-91-708-08-90Fax 34-91-708-08-91Sweden - GothenbergTel 46-31-704-60-40Sweden - StockholmTel 46-8-5090-4654UK - WokinghamTel 44-118-921-5800Fax 44-118-921-5820

Worldwide Sales and Service

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 45

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Board Overview
      • 2 Getting Started
        • 21 Quick Start
          • 211 Driver Installation
          • 212 Kit Window
          • 213 MPLABreg X IDE Device Family Packs
          • 214 Atmel Studio 7 Device Family Pack
            • 22 Design Documentation and Relevant Links
              • 3 Preprogrammed Application
              • 4 Curiosity Nano
                • 41 On-Board Debugger Overview
                  • 411 Debugger
                  • 412 Virtual Serial Port (CDC)
                    • 4121 Overview
                    • 4122 Operating System Support
                    • 4123 Limitations
                    • 4124 Signaling
                    • 4125 Advanced Use
                      • 413 Mass Storage Device
                        • 4131 Mass Storage Device Implementation
                        • 4132 Limitations of Drag-and-Drop Programming
                        • 4133 Special Commands
                          • 414 Data Gateway Interface (DGI)
                            • 4141 Debug GPIO
                            • 4142 Timestamping
                                • 42 Curiosity Nano Standard Pinout
                                • 43 Power Supply
                                  • 431 Target Regulator
                                  • 432 External Supply
                                  • 433 VBUS Output Pin
                                  • 434 Power Supply Exceptions
                                    • 44 Low-Power Measurement
                                    • 45 Programming External Microcontrollers
                                      • 451 Supported Devices
                                      • 452 Software Configuration
                                      • 453 Hardware Modifications
                                      • 454 Connecting to External Microcontrollers
                                        • 46 Connecting External Debuggers
                                          • 5 Hardware User Guide
                                            • 51 Connectors
                                              • 511 AVR128DB48 Curiosity Nano Pinout
                                              • 512 Using Pin Headers
                                              • 513 Multi-Voltage IO
                                              • 514 Operational Amplifiers
                                                • 52 Peripherals
                                                  • 521 LED
                                                  • 522 Mechanical Switch
                                                  • 523 32768 kHz Crystal
                                                  • 524 1600 MHz Crystal
                                                  • 525 On-Board Debugger Implementation
                                                    • 5251 On-Board Debugger Connections
                                                      • 6 Hardware Revision History and Known Issues
                                                        • 61 Identifying Product ID and Revision
                                                        • 62 Revision 3
                                                        • 63 Revision 2
                                                          • 7 Document Revision History
                                                          • 8 Appendix
                                                            • 81 Schematic
                                                            • 82 Assembly Drawing
                                                            • 83 Curiosity Nano Base for Click boardstrade
                                                            • 84 Disconnecting the On-board Debugger
                                                            • 85 Getting Started with IAR
                                                              • The Microchip Website
                                                              • Product Change Notification Service
                                                              • Customer Support
                                                              • Microchip Devices Code Protection Feature
                                                              • Legal Notice
                                                              • Trademarks
                                                              • Quality Management System
                                                              • Worldwide Sales and Service
Page 2: AVR128DB48 Curiosity Nano Hardware User Guideww1.microchip.com/downloads/en/DeviceDoc/AVR128DB48-Curiosit… · 4. Curiosity Nano Curiosity Nano is an evaluation platform of small

Table of Contents

Preface1

1 Introduction 4

11 Features 412 Board Overview4

2 Getting Started 5

21 Quick Start5211 Driver Installation5212 Kit Window5213 MPLABreg X IDE Device Family Packs5214 Atmel Studio 7 Device Family Pack6

22 Design Documentation and Relevant Links 6

3 Preprogrammed Application7

4 Curiosity Nano8

41 On-Board Debugger Overview8411 Debugger8412 Virtual Serial Port (CDC)9

4121 Overview 94122 Operating System Support 94123 Limitations 104124 Signaling104125 Advanced Use 11

413 Mass Storage Device114131 Mass Storage Device Implementation124132 Limitations of Drag-and-Drop Programming124133 Special Commands 12

414 Data Gateway Interface (DGI) 134141 Debug GPIO134142 Timestamping14

42 Curiosity Nano Standard Pinout1443 Power Supply 15

431 Target Regulator 15432 External Supply17433 VBUS Output Pin17434 Power Supply Exceptions18

44 Low-Power Measurement 1945 Programming External Microcontrollers 20

451 Supported Devices 20452 Software Configuration 20453 Hardware Modifications 21454 Connecting to External Microcontrollers22

46 Connecting External Debuggers 23

5 Hardware User Guide 26

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 2

51 Connectors26511 AVR128DB48 Curiosity Nano Pinout26512 Using Pin Headers26513 Multi-Voltage IO 27514 Operational Amplifiers 28

52 Peripherals 29521 LED29522 Mechanical Switch29523 32768 kHz Crystal 29524 1600 MHz Crystal 30525 On-Board Debugger Implementation31

5251 On-Board Debugger Connections 31

6 Hardware Revision History and Known Issues 32

61 Identifying Product ID and Revision 3262 Revision 33263 Revision 232

7 Document Revision History33

8 Appendix 34

81 Schematic3482 Assembly Drawing3683 Curiosity Nano Base for Click boardstrade 3784 Disconnecting the On-board Debugger3885 Getting Started with IAR39

The Microchip Website42

Product Change Notification Service42

Customer Support 42

Microchip Devices Code Protection Feature 42

Legal Notice 43

Trademarks 43

Quality Management System 44

Worldwide Sales and Service45

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 3

1 Introduction

11 Featuresbull AVR128DB48 Microcontrollerbull One Yellow User LEDbull One Mechanical User Switchbull One 32768 kHz Crystalbull One 1600 MHz Crystalbull On-Board Debugger

ndash Board identification in Microchip MPLABreg X IDE and Atmel Studio 7ndash One green power and status LEDndash Programming and debuggingndash Virtual serial port (CDC)ndash Two debug GPIO channels (DGI GPIO)

bull USB Poweredbull Adjustable Target Voltage

ndash MIC5353 LDO regulator controlled by the on-board debuggerndash 18ndash51V output voltage (limited by USB input voltage)ndash 500 mA maximum output current (limited by ambient temperature and output voltage)

12 Board OverviewThe Microchip AVR128DB48 Curiosity Nano Evaluation Kit is a hardware platform to evaluate the AVR128DB48microcontroller

Figure 1-1 AVR128DB48 Curiosity Nano Board Overview

User Switch

User LED(LED0)

AVR128DB48MCU

32768 kHz Crystal

1600 MHzCrystal

DebuggerPowerStatus

Micro-USBConnector

VDDIO2 MVIO Pins

AVR128DB48 Curiosity NanoIntroduction

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 4

2 Getting Started

21 Quick StartSteps to start exploring the AVR128DB48 Curiosity Nano board

1 Download Microchip MPLABreg X IDE and MPLABreg XC C Compiler or download Atmel Studio 72 Launch MPLABreg X IDE or Atmel Studio 73 Optional Use MPLABreg Code Configurator or Atmel START to generate drivers and examples4 Write your application code5 Connect a USB cable (Standard-A to Micro-B or Micro-AB) between the PC and the debug USB port on the

board

Info bull MPLABreg X IDE supports XC C compilers and the AVRreg and Armreg Toolchains (GCC Compilers)bull Microchiprsquos XC8 C Compiler supports all 8-bit PICreg and AVRreg microcontrollersbull Included in the Atmel Studio 7 download are the AVRreg and Armreg Toolchains (GCC Compilers)

211 Driver Installation

When the board is connected to your computer for the first time the operating system will perform a driver softwareinstallation The driver file supports both 32- and 64-bit versions of Microsoftreg Windowsreg XP Windows VistaregWindows 7 Windows 8 and Windows 10 The drivers for the board are included with both MPLABreg X IDE and AtmelStudio 7

212 Kit Window

Once the board is powered the green status LED will be lit and both MPLABreg X IDE and Atmel Studio 7 will auto-detect which boards are connected The Kit Window in MPLABreg X IDE and Atmel Studio 7 will present relevantinformation like data sheets and board documentation The AVR128DB48 device on the AVR128DB48 CuriosityNano board is programmed and debugged by the on-board debugger and therefore no external programmer ordebugger tool is required

Tip  The Kit Window can be opened in MPLABreg X IDE through the menu bar Window gt Kit Window

213 MPLABreg X IDE Device Family Packs

Microchip MPLABreg X IDE requires specific information to support devices and tools This information is contained inversioned packs For the AVR128DB48 Curiosity Nano board MPLABreg X version 540 with device family pack ldquoAVR-Dx_DFPrdquo version 12 and tool pack ldquonEDBG_TPrdquo version 11 or newer are required For more information on packsand how to upgrade them refer to the MPLABreg X IDE Userrsquos guide - Work with Device Packs

Tip  The latest device family packs are available through Tools gt Packs in MPLABreg X IDE or online at Microchip MPLABreg X Packs Repository

AVR128DB48 Curiosity NanoGetting Started

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 5

214 Atmel Studio 7 Device Family PackAtmel Studio 7 requires specific information to support devices This information is contained in versioned packs Forthe AVR128DB48 Curiosity Nano board Atmel Studio 7 version 702397 with device family pack ldquoAVR-Dx_DFPrdquoversion 11 or newer are required For more information on packs and how to upgrade them refer to the Atmel Studio7 User Guide - Device Pack Manager

Tip  The latest device family packs are available through Tools gt Device Pack Manager in Atmel Studio 7or online at Atmel Studio Packs Repository

22 Design Documentation and Relevant LinksThe following list contains links to the most relevant documents and software for the AVR128DB48 Curiosity Nanoboard

bull MPLABreg X IDE - MPLAB X IDE is a software program that runs on a PC (Windowsreg Mac OSreg Linuxreg) todevelop applications for Microchip microcontrollers and digital signal controllers It is called an IntegratedDevelopment Environment (IDE) because it provides a single integrated ldquoenvironmentrdquo to develop code forembedded microcontrollers

bull Atmel Studio - Free IDE for the development of CC++ and assembler code for microcontrollersbull IAR Embedded Workbenchreg for AVRreg - This is a commercial CC++ compiler that is available for AVR

microcontrollers There is a 30-day evaluation version as well as a 4 KB code-size-limited kick-start versionavailable from their website

bull MPLABreg XC Compilers - MPLABreg XC8 C Compiler is available as a free unrestricted-use downloadMicrochips MPLABreg XC8 C Compiler is a comprehensive solution for your projectrsquos software development onWindowsreg macOSreg or Linuxreg MPLABreg XC8 supports all 8-bit PICreg and AVRreg microcontrollers (MCUs)

bull MPLABreg Code Configurator - MPLAB Code Configurator (MCC) is a free software plug-in that provides agraphical interface to configure peripherals and functions specific to your application

bull Atmel START - Atmel START is an online tool that hosts code examples helps the user to select and configuresoftware components and tailor your embedded application in a usable and optimized manner

bull Microchip Sample Store - Microchip sample store where you can order samples of devicesbull MPLAB Data Visualizer - MPLAB Data Visualizer is a program used for processing and visualizing data The

Data Visualizer can receive data from various sources such as serial ports and on-board debuggerrsquos DataGateway Interface as found on Curiosity Nano and Xplained Pro boards

bull Studio Data Visualizer - Studio Data Visualizer is a program used for processing and visualizing data TheData Visualizer can receive data from various sources such as serial ports on-board debuggerrsquos Data GatewayInterface as found on Curiosity Nano and Xplained Pro boards and power data from the Power Debugger

bull Microchip PICreg and AVRreg Examples - Microchip PIC and AVR Device Examples is a collection of examplesand labs that use Microchip development boards to showcase the use of PIC and AVR device peripherals

bull Microchip PICreg and AVRreg Solutions - Microchip PIC and AVR Device Solutions contains completeapplications for use with Microchip development boards ready to be adapted and extended

bull AVR128DB48 Curiosity Nano website - Kit information latest user guide and design documentationbull AVR128DB48 Curiosity Nano on Microchip Direct - Purchase this kit on Microchip Direct

AVR128DB48 Curiosity NanoGetting Started

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 6

3 Preprogrammed ApplicationThe AVR128DB48 mounted on the Curiosity Nano Evaluation Kit is preprogrammed with an application ready toutilize the integrated operational amplifiers

To get started with the application you can find the user guide code and hex files for this application available onlineon GitHub

bull MPLAB Xreg IDEbull Atmel Studio 7

AVR128DB48 Curiosity NanoPreprogrammed Application

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 7

4 Curiosity NanoCuriosity Nano is an evaluation platform of small boards with access to most of the microcontrollers IOs Theplatform consists of a series of low pin count microcontroller (MCU) boards with on-board debuggers which areintegrated with MPLABreg X IDE and Atmel Studio 7 Each board is identified in the IDE When plugged in a KitWindow is displayed with links to key documentation including relevant user guides application notes data sheetsand example code Everything is easy to find The on-board debugger features a virtual serial port (CDC) for serialcommunication to a host PC and a Data Gateway Interface (DGI) with debug GPIO pin(s)

41 On-Board Debugger OverviewAVR128DB48 Curiosity Nano contains an on-board debugger for programming and debugging The on-boarddebugger is a composite USB device consisting of several interfaces

bull A debugger that can program and debug the AVR128DB48 in both MPLABreg X IDE and Atmel Studio 7bull A mass storage device that allows drag-and-drop programming of the AVR128DB48bull A virtual serial port (CDC) that is connected to a Universal Asynchronous ReceiverTransmitter (UART) on the

AVR128DB48 and provides an easy way to communicate with the target application through terminal softwarebull A Data Gateway Interface (DGI) for code instrumentation with logic analyzer channels (debug GPIO) to visualize

program flow

The on-board debugger controls a Power and Status LED (marked PS) on the AVR128DB48 Curiosity Nano BoardThe table below shows how the LED is controlled in different operation modes

Table 4-1 On-Board Debugger LED Control

Operation Mode Power and Status LED

Boot Loader mode The LED blinks slowly during power-up

Power-up The LED is ON

Normal operation The LED is ON

Programming Activity indicator The LED blinks slowly during programmingdebugging

Drag-and-dropprogramming Success The LED blinks slowly for 2 sec

Failure The LED blinks rapidly for 2 sec

Fault The LED blinks rapidly if a power fault is detected

SleepOff The LED is OFF The on-board debugger is either in a sleep mode or powered downThis can occur if the board is externally powered

Info  Slow blinking is approximately 1 Hz and rapid blinking is approximately 5 Hz

411 DebuggerThe on-board debugger on the AVR128DB48 Curiosity Nano Board appears as a Human Interface Device (HID) onthe host computerrsquos USB subsystem The debugger supports full-featured programming and debugging of theAVR128DB48 using both MPLABreg X IDE and Atmel Studio 7 as well as some third-party IDEs

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 8

Remember  Keep the debuggerrsquos firmware up-to-date Firmware upgrades are done automatically whenusing MPLABreg X IDE or Atmel Studio 7

412 Virtual Serial Port (CDC)The virtual serial port (CDC) is a general purpose serial bridge between a host PC and a target device

4121 OverviewThe on-board debugger implements a composite USB device that includes a standard Communications Device Class(CDC) interface which appears on the host as a virtual serial port The CDC can be used to stream arbitrary data inboth directions between the host computer and the target All characters sent through the virtual serial port on thehost computer will be transmitted as UART on the debuggerrsquos CDC TX pin and UART characters captured on thedebuggerrsquos CDC RX pin will be returned to the host computer through the virtual serial port

Figure 4-1 CDC Connection

Target MCU

UART TX

UART RX

Debugger

USBCDC RX

CDC TX

PCTerminalSoftware

TargetReceive

TargetSend

TerminalReceive

TerminalSend

Info  As shown in Figure 4-1 the debuggerrsquos CDC TX pin is connected to a UART RX pin on the targetfor receiving characters from the host computer Similarly the debuggerrsquos CDC RX pin is connected to aUART TX pin on the target for transmitting characters to the host computer

4122 Operating System SupportOn Windows machines the CDC will enumerate as Curiosity Virtual COM Port and appear in the Ports section of theWindows Device Manager The COM port number can also be found there

Info  On older Windows systems a USB driver is required for CDC This driver is included in installationsof both MPLABreg X IDE and Atmel Studio 7

On Linux machines the CDC will enumerate and appear as devttyACM

Info  tty devices belong to the ldquodialoutrdquo group in Linux so it may be necessary to become a member ofthat group to have permissions to access the CDC

On MAC machines the CDC will enumerate and appear as devttyusbmodem Depending on which terminalprogram is used it will appear in the available list of modems as usbmodem

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 9

Info  For all operating systems Be sure to use a terminal emulator that supports DTR signaling See 4124 Signaling

4123 LimitationsNot all UART features are implemented in the on-board debugger CDC The constraints are outlined here

bull Baud rate Must be in the range of 1200 bps to 500 kbps Any baud rate outside this range will be set to theclosest limit without warning Baud rate can be changed on-the-fly

bull Character format Only 8-bit characters are supportedbull Parity Can be odd even or nonebull Hardware flow control Not supportedbull Stop bits One or two bits are supported

4124 SignalingDuring USB enumeration the host OS will start both communication and data pipes of the CDC interface At thispoint it is possible to set and read back the baud rate and other UART parameters of the CDC but data sending andreceiving will not be enabled

When a terminal connects on the host it must assert the DTR signal As this is a virtual control signal implementedon the USB interface it is not physically present on the board Asserting the DTR signal from the host will indicate tothe on-board debugger that a CDC session is active The debugger will then enable its level shifters (if available) andstart the CDC data send and receive mechanisms

Deasserting DTR in debugger firmware version 120 or earlier has the following behaviorbull Debugger UART receiver is disabled so no further data will be transferred to the host computerbull Debugger UART transmitter will continue to send data that is queued for sending but no new data is accepted

from the host computerbull Level shifters (if available) are not disabled so the debugger CDC TX line remains driven

Deasserting DTR in debugger firmware version 121 or later has the following behaviorbull Debugger UART receiver is disabled so no further data will be transferred to the host computerbull Debugger UART transmitter will continue to send data that is queued for sending but no new data is accepted

from the host computerbull Once the ongoing transmission is complete level shifters (if available) are disabled so the debugger CDC TX

line will become high-impedance

Remember  Set up the terminal emulator to assert the DTR signal Without the signal the on-boarddebugger will not send or receive any data through its UART

Tip  The on-board debuggerrsquos CDC TX pin will not be driven until the CDC interface is enabled by thehost computer Also there are no external pull-up resistors on the CDC lines connecting the debugger andthe target which means that during power-up these lines are floating To avoid any glitches resulting inunpredictable behavior like framing errors the target device should enable the internal pull-up resistor onthe pin connected to the debuggerrsquos CDC TX pin

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 10

4125 Advanced Use

CDC Override ModeIn normal operation the on-board debugger is a true UART bridge between the host and the device However incertain use cases the on-board debugger can override the basic operating mode and use the CDC TX and RX pinsfor other purposes

Dropping a text file into the on-board debuggerrsquos mass storage drive can be used to send characters out of thedebuggerrsquos CDC TX pin The filename and extension are trivial but the text file must start with the charactersCMDSEND_UART=

Debugger firmware version 120 or earlier has the following limitationsbull The maximum message length is 50 characters ndash all remaining data in the frame are ignoredbull The default baud rate used in this mode is 9600 bps but if the CDC is already active or has been configured

the previously used baud rate still applies

Debugger firmware version 121 and later has the following limitationsfeaturesbull The maximum message length may vary depending on the MSCSCSI layer timeouts on the host computer

andor operating system A single SCSI frame of 512 bytes (498 characters of payload) is guaranteed and filesof up to 4 KB will work on most systems The transfer will complete on the first NULL character encountered inthe file

bull The baud rate used is always 9600 bps for the default commandCMDSEND_UART=

The CDC Override Mode should not be used simultaneously with data transfer over CDCterminal If a CDCterminal session is active at the time a file is received via CDC Override Mode it will be suspended for theduration of the operation and resumed once complete

bull Additional commands are supported with explicit baud ratesCMDSEND_9600=

CMDSEND_115200=

CMDSEND_460800=

USB-Level Framing ConsiderationsSending data from the host to the CDC can be done byte-wise or in blocks which will be chunked into 64-byte USBframes Each such frame will be queued up for sending to the debuggerrsquos CDC TX pin Transferring a small amountof data per frame can be inefficient particularly at low baud rates as the on-board debugger buffers frames and notbytes A maximum of four 64-byte frames can be active at any time The on-board debugger will throttle the incomingframes accordingly Sending full 64-byte frames containing data is the most efficient method

When receiving data on the debuggerrsquos CDC RX pin the on-board debugger will queue up the incoming bytes into64-byte frames which are sent to the USB queue for transmission to the host when they are full Incomplete framesare also pushed to the USB queue at approximately 100 ms intervals triggered by USB start-of-frame tokens Up toeight 64-byte frames can be active at any time

If the host (or the software running on it) fails to receive data fast enough an overrun will occur When this happensthe last-filled buffer frame will be recycled instead of being sent to the USB queue and a full frame of data will belost To prevent this occurrence the user must ensure that the CDC data pipe is being read continuously or theincoming data rate must be reduced

413 Mass Storage DeviceThe on-board debugger includes a simple Mass Storage Device implementation which is accessible for readwriteoperations via the host operating system to which it is connected

It providesbull Read access to basic text and HTML files for detailed kit information and support

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 11

bull Write access for programming Intelreg HEX formatted files into the target devicersquos memorybull Write access for simple text files for utility purposes

4131 Mass Storage Device ImplementationThe on-board debugger implements a highly optimized variant of the FAT12 file system that has several limitationspartly due to the nature of FAT12 itself and optimizations made to fulfill its purpose for its embedded application

The Curiosity Nano USB device is USB Chapter 9-compliant as a mass storage device but does not in any way fulfillthe expectations of a general purpose mass storage device This behavior is intentional

When using the Windows operating system the on-board debugger enumerates as a Curiosity Nano USB Devicethat can be found in the disk drives section of the device manager The CURIOSITY drive appears in the file managerand claims the next available drive letter in the system

The CURIOSITY drive contains approximately one MB of free space This does not reflect the size of the targetdevicersquos Flash in any way When programming an Intelreg HEX file the binary data are encoded in ASCII withmetadata providing a large overhead so one MB is a trivially chosen value for disk size

It is not possible to format the CURIOSITY drive When programming a file to the target the filename may appear inthe disk directory listing This is merely the operating systemrsquos view of the directory which in reality has not beenupdated It is not possible to read out the file contents Removing and replugging the board will return the file systemto its original state but the target will still contain the application that has been previously programmed

To erase the target device copy a text file starting with ldquoCMDERASErdquo onto the disk

By default the CURIOSITY drive contains several read-only files for generating icons as well as reporting status andlinking to further information

bull AUTORUNICO ndash icon file for the Microchip logobull AUTORUNINF ndash system file required for Windows Explorer to show the icon filebull KIT-INFOHTM ndash redirect to the development board websitebull KIT-INFOTXT ndash a text file containing details about the boardrsquos debugger firmware version board name USB

serial number device and drag-and-drop supportbull STATUSTXT ndash a text file containing the programming status of the board

Info  STATUSTXT is dynamically updated by the on-board debugger The contents may be cached bythe OS and therefore do not reflect the correct status

4132 Limitations of Drag-and-Drop Programming

Lock BitsLock bits included in the hex file will be ignored when using drag-and-drop programming To program lock bits useMPLABreg X IDE or Atmel Studio 7

Enabling CRC Check in FusesIt is not advisable to enable the CRC check in the target devicersquos fuses when using drag-and-drop programming Thisis because a subsequent chip erase (which does not affect fuse bits) will effect a CRC mismatch and the applicationwill fail to boot To recover a target from this state a chip erase must be done using MPLABreg X IDE orAtmel Studio 7 which will automatically clear the CRC fuses after erasing

4133 Special CommandsSeveral utility commands are supported by copying text files to the mass storage disk The filename or extension isirrelevant ndash the command handler reacts to content only

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 12

Table 4-2 Special File Commands

Command Content Description

CMDERASE Executes a chip erase of the target

CMDSEND_UART= Sends a string of characters to the CDC UART See ldquoCDCOverride Moderdquo

CMDSEND_9600=CMDSEND_115200=CMDSEND_460800=

Sends a string of characters to the CDC UART at the baud ratespecified Note that only the baud rates explicitly specified hereare supported See ldquoCDC Override Moderdquo (Debugger firmwarev121 or newer)

CMDRESET Resets the target device by entering Programming mode andthen exiting Programming mode immediately thereafter Exacttiming can vary according to the programming interface of thetarget device (Debugger firmware v116 or newer)

CMDPOWERTOGGLE Powers down the target and restores power after a 100 msdelay If external power is provided this has no effect(Debugger firmware v116 or newer)

CMD0V Powers down the target device by disabling the target supplyregulator If external power is provided this has no effect(Debugger firmware v116 or newer)

CMD1V8 Sets the target voltage to 18V If external power is providedthis has no effect (Debugger firmware v121 or newer)

CMD3V3 Sets the target voltage to 33V If external power is providedthis has no effect (Debugger firmware v116 or newer)

CMD5V0 Sets the target voltage to 50V If external power is providedthis has no effect (Debugger firmware v116 or newer)

Info  The commands listed here are triggered by the content being sent to the mass storage emulateddisk and no feedback is provided in the case of either success or failure

414 Data Gateway Interface (DGI)Data Gateway Interface (DGI) is a USB interface for transporting raw and timestamped data between on-boarddebuggers and host computer-based visualization tools MPLAB Data Visualizer is used on the host computer todisplay debug GPIO data It is available as a plug-in for MPLABreg X IDE or a stand-alone application that can be usedin parallel with MPLABreg X IDE or Atmel Studio 7

Although DGI encompasses several physical data interfaces the AVR128DB48 Curiosity Nano implementationincludes logic analyzer channels

bull Two debug GPIO channels (also known as DGI GPIO)

4141 Debug GPIODebug GPIO channels are timestamped digital signal lines connecting the target application to a host computervisualization application They are typically used to plot the occurrence of low-frequency events on a time-axis ndash forexample when certain application state transitions occur

The figure below shows the monitoring of the digital state of a mechanical switch connected to a debug GPIO inMPLAB Data Visualizer

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 13

Figure 4-2 Monitoring Debug GPIO with MPLABreg Data Visualizer

Debug GPIO channels are timestamped so the resolution of DGI GPIO events is determined by the resolution of theDGI timestamp module

Important  Although bursts of higher-frequency signals can be captured the useful frequency range ofsignals for which debug GPIO can be used is up to about 2 kHz Attempting to capture signals above thisfrequency will result in data saturation and overflow which may cause the DGI session to be aborted

4142 TimestampingDGI sources are timestamped as they are captured by the debugger The timestamp counter implemented in theCuriosity Nano debugger increments at 2 MHz frequency providing a timestamp resolution of a half microsecond

42 Curiosity Nano Standard PinoutThe 12 edge connections closest to the USB connector on Curiosity Nano boards have a standardized pinout Theprogramdebug pins have different functions depending on the target programming interface as shown in the tableand figure below

Table 4-3 Curiosity Nano Standard Pinout

Debugger Signal Target MCU Description

ID mdash ID line for extensions

CDC TX UART RX USB CDC TX line

CDC RX UART TX USB CDC RX line

DBG0 UPDI Debug data line

DBG1 GPIO1 debug GPIO1

DBG2 GPIO0 debug GPIO0

DBG3 RESET Reset line

NC mdash No connect

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 14

continuedDebugger Signal Target MCU Description

VBUS mdash VBUS voltage for external use

VOFF mdash Voltage Off input Disables the target regulator andtarget voltage when pulled low

VTG mdash Target voltage

GND mdash Common ground

Figure 4-3 Curiosity Nano Standard Pinout

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

43 Power SupplyThe board is powered through the USB port and contains two LDO regulators one to generate 33V for the on-boarddebugger and an adjustable LDO regulator for the target microcontroller AVR128DB48 and its peripherals Thevoltage from the USB connector can vary between 44V to 525V (according to the USB specification) and will limitthe maximum voltage to the target The figure below shows the entire power supply system on AVR128DB48Curiosity Nano

Figure 4-4 Power Supply Block Diagram

USBTarget MCU

Power source

Cut strap

Power consumer P3V3DEBUGGER

Power converter

DEBUGGERRegulator

VUSB

TargetRegulator

Power Supply strap

Adjust

Level shifter

VLVLVREG

IO IO GPIOstraps

IO

OnOffMeasure OnOff

ID systemVOFF

PTC Fuse

Power protection

VBUS

Target Power strap

VTG

431 Target RegulatorThe target voltage regulator is a MIC5353 variable output LDO The on-board debugger can adjust the voltage outputsupplied to the board target section by manipulating the MIC5353rsquos feedback voltage The hardware implementation

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 15

is limited to an approximate voltage range from 17V to 51V Additional output voltage limits are configured in thedebugger firmware to ensure that the output voltage never exceeds the hardware limits of the AVR128DB48microcontroller The voltage limits configured in the on-board debugger on AVR128DB48 Curiosity Nano are 18ndash55V

Info  The target voltage is set to 33V when the board is manufactured It can be changed throughMPLABreg X IDE project properties and in the Atmel Studio 7 device programming dialog Any change tothe target voltage is persistent even after a power toggle The resolution is less than 5 mV but may belimited to 10 mV by the adjustment program

Info  Voltage settings that are set up in MPLABreg X IDE are not immediately applied to the board Thenew voltage setting is applied to the board when the debugger is accessed in any way like pushing theRefresh Debug Tool Status button in the project dashboard tab or programmingreading program memory

Info  There is a simple option to adjust the target voltage with a drag-and-drop command text file to theboard This supports a set of common target voltages See section 4133 Special Commands for furtherdetails

The MIC5353 supports a maximum current load of 500 mA It is an LDO regulator in a small package placed on asmall printed circuit board (PCB) and the thermal shutdown condition can be reached at lower loads than 500 mAThe maximum current load depends on the input voltage the selected output voltage and the ambient temperatureThe figure below shows the safe operating area for the regulator with an input voltage of 51V and an ambienttemperature of 23degC

Figure 4-5 Target Regulator Safe Operation Area

The voltage output of the target regulator is continuously monitored (measured) by the on-board debugger If it ismore than 100 mV overunder the voltage setting value an error condition will be flagged and the target voltageregulator will be turned off This will detect and handle any short-circuit conditions It will also detect and handle if anexternal voltage which causes VCC_TARGET to move outside of the voltage setting monitoring window of plusmn100 mVis suddenly applied to the VTG pin without setting the VOFF pin low

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 16

Info  If the external voltage is lower than the monitoring window lower limit (target voltage setting ndash 100mV) the on-board debugger status LED will blink rapidly If the external voltage is higher than themonitoring window upper limit (target voltage setting + 100 mV) the on-board debugger status LED willcontinue to shine If the external voltage is removed the status LED will start to blink rapidly until the on-board debugger detects the new situation and turns the target voltage regulator back on

432 External SupplyAVR128DB48 Curiosity Nano can be powered by an external voltage instead of the on-board target regulator Whenthe Voltage Off (VOFF) pin is shorted to ground (GND) the on-board debugger firmware disables the target regulatorand it is safe to apply an external voltage to the VTG pin

It is also safe to apply an external voltage to the VTG pin when no USB cable is plugged into the DEBUG connectoron the board

The VOFF pin can be tied lowlet go at any time This will be detected by a pin-change interrupt to the on-boarddebugger which controls the target voltage regulator accordingly

WARNINGApplying an external voltage to the VTG pin without shorting VOFF to GND may cause permanent damageto the board

WARNINGDo not apply any voltage to the VOFF pin Let the pin float to enable the power supply

WARNINGAbsolute maximum external voltage is 55V for the on-board level shifters and the standard operatingcondition of the AVR128DB48 is 18ndash55V Applying a higher voltage may cause permanent damage to theboard

Info  If an external voltage is applied without pulling the VOFF pin low and an external supply pulls thevoltage lower than the monitoring windowrsquos lower limit (target voltage setting - 100 mV) the on-boarddebugger status LED will blink rapidly and shut the on-board regulator off If an external voltage issuddenly removed when the VOFF pin is not pulled low the status LED will start to blink rapidly until theon-board debugger detects the new situation and switches the target voltage regulator back on

Programming debugging and data streaming is still possible with an external power supply ndash the debugger andsignal level shifters will be powered from the USB cable Both regulators the debugger and the level shifters arepowered down when the USB cable is removed

Info  In addition to the power consumed by the AVR128DB48 and its peripherals approximately 100 microAwill be drawn from any external power source to power the on-board level shifters and voltage monitorcircuitry when a USB cable is plugged in the DEBUG connector on the board When a USB cable is notplugged in some current is used to supply the level shifters voltage pins which have a worst-case currentconsumption of approximately 5 microA Typical values may be as low as 100 nA

433 VBUS Output PinAVR128DB48 Curiosity Nano has a VBUS output pin that can be used to power external components that need a 5Vsupply The VBUS output pin has a PTC fuse to protect the USB against short circuits A side effect of the PTC fuseis a voltage drop on the VBUS output with higher current loads The chart below shows the voltage versus the currentload of the VBUS output

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 17

Figure 4-6 VBUS Output Voltage vs Current

434 Power Supply ExceptionsThis is a summary of most exceptions that can occur with the power supply

Target Voltage Shuts DownThis can happen if the target section draws too much current at a given voltage This will cause the thermal shutdownsafety feature of the MIC5353 regulator to kick in To avoid this reduce the current load of the target section

Target Voltage Setting is Not ReachedThe maximum output voltage is limited by the USB input voltage (specified to be 44-525V) and the voltage dropover the MIC5353 regulator at a given voltage setting and current consumption If a higher output voltage is neededuse a USB power source that can provide a higher input voltage or use an external voltage supply on the VTG pin

Target Voltage is Different From SettingThis can be caused by an externally applied voltage to the VTG pin without setting the VOFF pin low If the targetvoltage differs more than 100 mV overunder the voltage setting it will be detected by the on-board debugger andthe internal voltage regulator will be shut down To fix this issue remove the applied voltage from the VTG pin andthe on-board debugger will enable the on-board voltage regulator when the new condition is detected Note that thePS LED will be blinking rapidly if the target voltage is below 100 mV of the setting but will be lit normally when it ishigher than 100 mV above the setting

No Or Very Low Target Voltage and PS LED is Blinking RapidlyThis can be caused by a full or partial short-circuit and is a special case of the issue mentioned above Remove theshort-circuit and the on-board debugger will re-enable the on-board target voltage regulator

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 18

No Target Voltage and PS LED is Lit 1This occurs if the target voltage is set to 00V To fix this set the target voltage to a value within the specified voltagerange for the target device

No Target Voltage and PS LED is Lit 2This can be the issue if power jumper J100 andor J101 is cut and the target voltage regulator is set to a value withinthe specified voltage range for the target device To fix this solder a wirebridge between the pads for J100J101 oradd a jumper on J101 if a pin header is mounted

VBUS Output Voltage is Low or Not PresentThis is most lightly caused by a high-current drain on VBUS and the protection fuse (PTC) will reduce the current orcut off completely Reduce the current consumption on the VBUS pin to fix this issue

44 Low-Power MeasurementPower to the AVR128DB48 is connected from the on-board power supply and VTG pin through a 100 mil pin headermarked with ldquoPOWERrdquo in silkscreen (J101) To measure the power consumption of the AVR128DB48 and otherperipherals connected to the board cut the Target Power strap and connect an ammeter over the strap

To measure the lowest possible power consumption follow these steps1 Cut the POWER strap with a sharp tool2 Solder a 1x2 100 mil pin header in the footprint3 Connect an ammeter to the pin header4 Write firmware that

41 Tri-states any IO connected to the on-board debugger42 Sets the microcontroller in its lowest power Sleep state

5 Program the firmware into the AVR128DB48

Figure 4-7 Target Power Strap

Target Power strap (top side)

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 19

Tip  A 100-mil pin header can be soldered into the Target Power strap (J101) footprint for easyconnection of an ammeter Once the ammeter is no longer needed place a jumper cap on the pin header

Info  The on-board level shifters will draw a small amount of current even when they are not in use Amaximum of 2 microA can be drawn from each IO pin connected to a level shifter for a total of 10 microA Keepany IO pin connected to a level shifter in tri-state to prevent leakage All IOs connected to the on-boarddebugger are listed in 5251 On-Board Debugger Connections To prevent any leakage to the on-boardlevel shifters they can be disconnected completely as described in 84 Disconnecting the On-boardDebugger

45 Programming External MicrocontrollersThe on-board debugger on AVR128DB48 Curiosity Nano can be used to program and debug microcontrollers onexternal hardware

451 Supported DevicesAll external AVR microcontrollers with the UPDI interface can be programmed and debugged with the on-boarddebugger with Atmel Studio

External SAM microcontrollers that have a Curiosity Nano Board can be programmed and debugged with the on-board debugger with Atmel Studio

AVR128DB48 Curiosity Nano can program and debug external AVR128DB48 microcontrollers with MPLAB X IDE

452 Software ConfigurationNo software configuration is required to program and debug the same device that is mounted on the board

To program and debug a different microcontroller than what is mounted on the board Atmel Studio must beconfigured to allow free selection of devices and programming interfaces

1 Navigate to Tools gt Options through the menu system at the top of the application2 Select the Tools gt Tool settings category in the options window3 Set the Hide unsupported devices option to False

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 20

Figure 4-8 Hide Unsupported Devices

Info  Atmel Studio allows any microcontroller and interface to be selected when Hide unsupporteddevices is set to False also microcontrollers and interfaces which are not supported by the on-boarddebugger

453 Hardware ModificationsThe on-board debugger is connected to the AVR128DB48 by default These connections must be removed beforeany external microcontroller can be programmed or debugged Cut the GPIO straps shown in the figure below with asharp tool to disconnect the AVR128DB48 from the on-board debugger

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 21

Figure 4-9 Programming and Debugging Connections to Debugger

GPIO straps (bottom side)

Info  Cutting the connections to the debugger will disable programming debugging and data streamingfrom the AVR128DB48 mounted on the board

Tip  Solder in 0Ω resistors across the footprints or short-circuit them with solder to reconnect the signalsbetween the on-board debugger and the AVR128DB48

454 Connecting to External MicrocontrollersThe figure and table below show where the programming and debugging signals must be connected to program anddebug external microcontrollers The on-board debugger can supply power to the external hardware or use anexternal voltage as a reference for its level shifters Read more about the power supply in 43 Power Supply

The on-board debugger and level shifters actively drive data and clock signals (DBG0 DBG1 and DBG2) used forprogramming and debugging and in most cases the external resistor on these signals can be ignored Pull-downresistors are required on the ICSPtrade data and clock signals to debug PICreg microcontrollers

DBG3 is an open-drain connection and requires a pull-up resistor to function

AVR128DB48 Curiosity Nano has a pull-up resistor R200 connected to its RESET signal (DBG3) The location ofthe pull-up resistor is shown in the 82 Assembly Drawing in the appendix

Remember bull Connect GND and VTG to the external microcontrollerbull Tie the VOFF pin to GND if the external hardware has its own power supplybull Make sure there are pull-down resistors on the ICSP data and clock signals (DBG0 and DBG1) to

support the debugging of PIC microcontrollers

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 22

Figure 4-10 Curiosity Nano Standard Pinout

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

Table 4-4 Programming and Debugging Interfaces

Curiosity Nano Pin UPDI ICSPtrade SWD

DBG0 UPDI DATA SWDIO

DBG1 mdash CLK SWCLK

DBG2 mdash mdash mdash

DBG3 mdash MCLR RESET

46 Connecting External DebuggersEven though there is an on-board debugger external debuggers can be connected directly to the AVR128DB48Curiosity Nano to programdebug the AVR128DB48 The on-board debugger keeps all the pins connected to theAVR128DB48 and board edge in tri-state when not actively used Therefore the on-board debugger will not interferewith any external debug tools

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 23

Figure 4-11 Connecting the MPLABreg PICkittrade 4 In-Circuit DebuggerProgrammer to AVR128DB48 CuriosityNano

2345678 1

VDD

GroundDATA

2 = VDD

3 = Ground

4 = PGD

5 = Unused

6 = Unused

7 = Unused

8 = Unused

1 = Unused

MPLABreg PICkittrade 4

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 24

Figure 4-12 Connecting the Atmel-ICE to AVR128DB48 Curiosity Nano

VDD

Ground

DATA

AVRregSAM

3 = UPDI

4 = VTG

5 = Unused

6 = Unused

7 = Unused

8 = Unused

1 = Unused

2 = GND

9 = Unused

10 = Unused

Atmel-ICE

21 9

10

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

CAUTIONTo avoid contention between the external debugger and the on-board debugger do not start anyprogrammingdebug operation with the on-board debugger through MPLABreg X IDE or Atmel Studio 7 ormass storage programming while the external tool is active

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 25

5 Hardware User Guide

51 Connectors

511 AVR128DB48 Curiosity Nano PinoutAll the AVR128DB48 IO pins are accessible at the edge connectors on the board The image below shows the boardpinout For all available functions on each pin refer to the IO Multiplexing and Considerations section in theAVR128DB48 data sheet

Figure 5-1 AVR128DB48 Curiosity Nano Pinout

USB

DEBUGGER

AVR128DB48

SW0

LED0

PS LEDNC

NC

IDID

CDC RX

CD

CR

XUSART3 TXPB0

CDC TX

CD

CT

XUSART3 RXPB1

DBG1

DB

G1PB3LED0

DBG2

DB

G2PB2SW0

PF4

PF

4USART2 TX

PF5

PF

5USART2 RX

PA2

PA

2TWI0 SDA

PA3

PA

3TWI0 SCL

PA4

PA

4SPI0 MOSI

PA5

PA

5SPI0 MISO

PA6

PA

6SPI0 SCK

PA7

PA

7SPI0 SS

GND

GN

D

PB0

PB

0USART3 TXCDC RX

PB1

PB

1USART3 RXCDC TX

PF2

PF

2

PF3

PF

3

PC0

PC

0

PC1

PC

1

PC2

PC

2

PC3

PC

3

GND

GN

D

(PA0)

(PA

0)XTALHF1

(PA1)

(PA

1)XTALHF2

PB2

PB

2SW0

PB3

PB

3LED0

VBUS

VB

US

VOFF

VO

FF

DBG3

DB

G3 PF6

DBG0

DB

G0 UPDI

GND

GN

D

VTG

VT

G

PD6

PD

6 AIN6

PD3

PD

3 AIN3 OP0 INN

PD2

PD

2 AIN2 OP0 OUT TCA0 WO2

PD1

PD

1 AIN1 OP0 INP TCA0 WO1

PD0

PD

0 AIN0 TCA0 WO0

PD7

PD

7 AIN7 OP1 INN

PD5

PD

5 AIN5 OP1 OUT

PD4

PD

4 AIN4 OP1 INP

GND

GN

D

PE3

PE

3 OP2 INN

PE2

PE

2 OP2 OUT

PE1

PE

1 OP2 INP

PE0

PE

0

PC7

PC

7

PC6

PC

6

PC5

PC

5

PC4

PC

4

GND

GN

D

PB5

PB

5

PB4

PB

4

(PF1)

(PF

1) XTAL32K2

(PF0)

(PF

0) XTAL32K1

DEBUGGERAVR128DB48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

MVIO

OPAMP

Shared pin

AVR128DB48Curiosity Nano

512 Using Pin HeadersThe edge connector footprint on AVR128DB48 Curiosity Nano has a staggered design where each hole is shifted 8mil (~02 mm) off-center The hole shift allows the use of regular 100 mil pin headers on the board without solderingOnce the pin headers are firmly in place they can be used in normal applications like pin sockets and prototypingboards without any issues

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 26

Figure 5-2 Attaching Pin-Headers to the Curiostiy Nano Board

Figure 5-3 Connecting to Curiosity Nano Base for Click boardstrade

Tip  Start at one end of the pin header and gradually insert the header along the length of the boardOnce all the pins are in place use a flat surface to push them in

Tip  For applications where the pin headers will be used permanently it is still recommended to solderthem in place

Important  Once the pin headers are in place they are hard to remove by hand Use a set of pliers andcarefully remove the pin headers to avoid damage to the pin headers and PCB

513 Multi-Voltage IO

The AVR128DB48 Curiosity Nano MCU has support for Multi-Voltage IO (MVIO) AVR128DB48 MVIO pins areconnected to the edge connector at PC0-PC7 MVIO pins are capable of regular IO-pin behavior

MVIO can be configured in one of two supply modesbull Single-Supply mode All IO pins including MVIO-capable pins are powered by VCC_TARGET By default

VCC_TARGET is connected to VDDIO2 through a 0-ohm resistor (R204)bull Dual-Supply mode MVIO-capable pins are powered by an external power supply connected to VDDIO2 Non-

MVIO pins are powered by VCC_TARGET

Dual-Supply mode allows MVIO-pins to be powered at different voltages than pins powered from VCC_TARGET

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 27

WARNINGThe absolute maximum external voltage range for the AVR128DB48 is 18ndash55V Applying a higher voltagemay cause permanent damage to the board

By default AVR128DB48 Curiosity Nano board is configured for single-supply mode To use Dual-Supply mode somehardware modifications are required

WARNINGBefore any hardware modifications are done make sure the board is disconnected from USB or externalpower

bull Disconnect resistor R204 connecting VDDIO2 to VCC_TARGETbull Connect a new power supply to VDDIO2 and ground at J212bull J212 does not have reverse polarity protection Make sure to match polarity between the power supply and

J212 Positive-polarity to J212-pin 1 and negative-polarity to J212-pin 2

The resistor R204 VDDIO2 and J212 can be seen in Figure 5-4

Figure 5-4 MVIO and VDDIO2 Connections

J212 R204

WARNINGApplying an external voltage to VDDIO2 pin without removing resistor R204 may cause permanentdamage to the board

WARNINGJ212 does not have reverse polarity protection Applying voltage to the wrong pin may cause permanentdamage to the board

514 Operational AmplifiersAVR128DB48 features three internal operational amplifiers with a flexible connection scheme using analogmultiplexers and resistor ladders This allows a large number of analog signal conditioning configurations manyrequiring no external components

Table 5-1 OPAMP Pin Connections

OPAMP Poisitive Input (INP) Negative Input (INN) Output (OUT)

OP0 PD1 PD3 PD2

OP1 PD4 PD7 PD5

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 28

continuedOPAMP Poisitive Input (INP) Negative Input (INN) Output (OUT)

OP2 PE1 PE3 PE2

For information about OPAMP on the edge connector and any shared functionality see 511 AVR128DB48 CuriosityNano Pinout

52 Peripherals

521 LEDThere is one yellow user LED available on the AVR128DB48 Curiosity Nano board that can be controlled by eitherGPIO or PWM The LED can be activated by driving the connected IO line to GND

Table 5-2 LED Connection

AVR128DB48 Pin Function Shared Functionality

PB3 Yellow LED0 Edge connector On-board debugger

522 Mechanical SwitchThe AVR128DB48 Curiosity Nano board has one mechanical switch This is a generic user-configurable switchWhen the switch is pressed it will drive the IO line to ground (GND)

Tip  There is no externally connected pull-up resistor on the switch To use the switch make sure that aninternal pull-up resistor is enabled on pin PB2

Table 5-3 Mechanical Switch

AVR128DB48 Pin Description Shared Functionality

PB2 User switch (SW0) Edge connector On-board debugger

523 32768 kHz Crystal

On the AVR128DB48 Curiosity Nano board is a mounted 32768 kHz crystal of type VMK3-9001-32K7680000 thecrystal is accurate to within 20 ppm Using the External 32768 kHz Crystal Oscillator (XOSC32K) module inAVR128DB48 with the mounted 32768 kHz crystal generates a clock signal that is significantly more accurate thanthe Internal 32768 kHz Ultra Low-Power Oscillator (OSC32K) module can generate alone With the Auto-Tunefeature the 32768 kHz can be used as a reference to improve the accuracy of the internal oscillator This is an idealreference clock for the Real-Time Counter module in AVR128DB48

The 32768 kHz crystal is connected to AVR128DB48 on PF0 and PF1 which are also routed to the edge connectorthrough two solder points PF0 and PF1 are disconnected from the edge connector by default to reduce the chanceof an external signal causing contention with the crystal and to remove excessive capacitance on the lines

Next to the 32768 kHz crystal is a cut-strap (J209) which can be used to measure the oscillator safety factor This isdone by cutting the strap and adding a 0402 SMD resistor across the strap More information about oscillatorallowance and safety factor can be found in the AN2648 application note from Microchip

Cut straps and solder points can be seen in Figure 5-5

Table 5-4 32768 kHz Crystal Connections

AVR128DB48 Pin Function Shared Functionality

PF0 XTAL32K1 (Crystal input) Edge connector

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 29

continuedAVR128DB48 Pin Function Shared Functionality

PF1 XTAL32K2 (Crystal output) Edge connector

PA0 and PA1 can be used as GPIO To do so some hardware modifications are required

WARNINGBefore any hardware modifications are done make sure the board is disconnected from the USB orexternal power

bull Disconnect the 32768 kHz crystal by cutting the two straps on the top side of the board next to the crystal(J207 J208) The crystal should be disconnected when using the pin as GPIO as this might harm the crystal

bull Connect the IO lines to the edge connector by placing solder blobs on the circular solder points marked PF0and PF1 on the bottom side of the board (J210 J211)

Figure 5-5 Crystal Connection and Cut Straps

Top side Boom side

J211

J210

J207

J20832768 kHz Crystal

J209

524 1600 MHz Crystal

On the AVR128DB48 Curiosity Nano board is a mounted 1600 MHz crystal of type VXM7-9040-16M0000000 thecrystal is accurate to within 20 ppm Using the External High-Frequency Crystal Oscillator (XOSCHF) module inAVR128DB48 with the mounted 1600 MHz crystal generates a clock signal that is significantly more accurate thanthe Internal High-Frequency Oscillator (OSCHF) module

The 1600 MHz crystal is connected to AVR128DB48 on PA0 and PA1 which are also routed to the edge connectorthrough two solder points PA0 and PA1 are disconnected from the edge connector by default to reduce the chanceof an external signal causing contention with the crystal and to remove excessive capacitance on the lines

Next to the 1600 MHz crystal is a cut-strap (J217) which can be used to measure the oscillator safety factor This isdone by cutting the strap and adding a 0402 SMD resistor across the strap More information about oscillatorallowance and safety factor can be found in the AN2648 application note from Microchip

Cut straps and solder points can be seen in Figure 5-6

Table 5-5 Crystal Connections

AVR128DB48 Pin Function Shared Functionality

PA0 XTALHF1 (Crystal input) Edge connector

PA1 XTALHF2 (Crystal output) Edge connector

PA0 and PA1 can be used as GPIO To do so some hardware modifications are required

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 30

WARNINGBefore any hardware modifications are done make sure the board is disconnected from USB or externalpower

bull Disconnect the 1600 MHz crystal by cutting the two straps on the top side of the board next to the crystal (J215J216) The crystal should be disconnected when using the pin as GPIO as this might harm the crystal

bull Connect the IO lines to the edge connector by placing solder blobs on the circular solder points marked PA0and PA1 on the bottom side of the board (J213 J214)

Figure 5-6 Crystal Connection and Cut Straps

Top side Boom side

J214

J213

J216

J2151600 MHzCrystal

J217

525 On-Board Debugger ImplementationAVR128DB48 Curiosity Nano features an on-board debugger that can be used to program and debug theAVR128DB48 using UPDI The on-board debugger also includes a virtual serial port (CDC) interface over UART anddebug GPIO Both MPLABreg X IDE and Atmel Studio 7 can be used as a front-end for the on-board debugger forprogramming and debugging MPLAB Data Visualizer can be used as a front-end for the CDC and debug GPIO

5251 On-Board Debugger ConnectionsThe table below shows the connections between the target and the debugger section All connections between thetarget and the debugger are tri-stated as long as the debugger is not actively using the interface Hence since thereare little contaminations of the signals the pins can be configured to anything the user wants

For further information on how to use the capabilities of the on-board debugger see 41 On-Board DebuggerOverview

Table 5-6 On-Board Debugger Connections

AVR128DB48Pin

Debugger Pin Function Shared Functionality

PB1 CDC TX UART RX (AVR128DB48 RX line) Edge connector

PB0 CDC RX UART TX (AVR128DB48 TX line) Edge connector

UPDI DBG0 UPDI Edge connector

PB3 DBG1 LED0Debug GPIO1 Edge connector

PB2 DBG2 SW0Debug GPIO0 Edge connector

PF6 DBG3 RESET Edge connector

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 31

6 Hardware Revision History and Known IssuesThis user guide is written to provide information about the latest available revision of the board The followingsections contain information about known issues a revision history of older revisions and how older revisions differfrom the latest revision

61 Identifying Product ID and RevisionThe revision and product identifier of the AVR128DB48 Curiosity Nano Board can be found in two ways Either byutilizing the MPLABreg X IDE or Atmel Studio 7 Kit Window or by looking at the sticker on the bottom side of the PCB

By connecting AVR128DB48 Curiosity Nano to a computer with MPLABreg X IDE or Atmel Studio 7 running the KitWindow will pop up The first six digits of the serial number which is listed under kit information contain the productidentifier and revision

Tip  The Kit Window can be opened in MPLABreg X IDE through the menu bar Window gt Kit Window

The same information can be found on the sticker on the bottom side of the PCB Most boards will have the identifierand revision printed in plain text as A09-nnnnrr where ldquonnnnrdquo is the identifier and ldquorrrdquo is the revision Boards withlimited space have a sticker with only a data matrix code containing the product identifier revision and serialnumber

The serial number string has the following format

nnnnrrssssssssss

n = product identifier

r = revision

s = serial number

The product identifier for AVR128DB48 Curiosity Nano is A09‑3372

62 Revision 3AVR128DB48 silicon revision A5 or later is mounted on this revision of the board

63 Revision 2Revision 2 is the initially released board revision

AVR128DB48 silicon revision A4 is mounted on this revision of the board

AVR128DB48 Curiosity NanoHardware Revision History and Known Issues

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 32

7 Document Revision HistoryDoc Rev Date Comments

A 092020 Initial document release

AVR128DB48 Curiosity NanoDocument Revision History

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 33

8 Appendix

81 SchematicFigure 8-1 AVR128DB48 Curiosity Nano Schematic

11

22

33

44

55

66

77

88

DD

CC

BB

AA

2 of

4

AV

R12

8DB

48 C

uri

osit

y N

ano

240

820

20A

VR

128D

B48

_Cur

iosi

ty_N

ano_

Targ

et_M

CU

Sch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA

Rev

isio

n

File

P

CB

Num

ber

PC

B

Rev

isio

n

Des

ign

ed w

ith

Dra

wn

By

ML

Shee

t Titl

e

Targ

et M

CU

Eng

inee

rA

H

A08

-305

71

Size

A3

A09

-337

22

Page

D

ateA

ltium

com

GN

D

VD

DIO

2

100n

C20

1

GN

D

PA5_

SPI0

_MIS

OPA

6_SP

I0_S

CK

PA7_

SPI0

_SS

PB0_

USA

RT

3_T

XPB

1_U

SAR

T3_

RX

PB2_

SW0_

DB

G2

PB3_

LE

D0_

DB

G1

PB

4P

B5

PC

0P

C1

PC

2

PC3

PC4PC5PC6PC7PD0_AIN0_TCA0_WO0PD1_AIN1_OP0_INP_TCA0_WO1PD2_AIN2_OP0_OUT_TCA0_WO2PD3_AIN3_OP0_INNPD4_AIN4_OP1_INP

PA3_TWI0_SCL

PA1_XTALHF2

UPDI_DBG0

PF5_USART2_RX

PF3

PF

2PF

1_X

TA

L32

K2

PF0_

XT

AL

32K

1P

E3_

OP

2_IN

NP

E2_

OP

2_O

UT

PE

1_O

P2_

INP

PE

0

PD5_

AIN

5_O

P1_

OU

TPD

6_A

IN6

PD7_

AIN

7_O

P1_

INN

GN

D

VC

C_T

AR

GE

T

100n

C20

2

GN

DV

CC

_TA

RG

ET

100n

C20

0

PF1_XTAL32K2

PF0_XTAL32K1

PA2_TWI0_SDA

PA0_XTALHF1

PF4_USART2_TX

PA4_SPI0_MOSI

GN

D

PA7_

SPI0

_SS

PA6_

SPI0

_SC

KPA

5_SP

I0_M

ISO

PA4_

SPI0

_MO

SIPA

3_T

WI0

_SC

LPA

2_T

WI0

_SD

A

PC

0P

C1

PC

2P

C3

PB

4P

B5

PD7_

AIN

7_O

P1_

INN

PD6_

AIN

6

PD2_

AIN

2_O

P0_

OU

T_T

CA

0_W

O2

PD1_

AIN

1_O

P0_

INP_

TC

A0_

WO

1PD

0_A

IN0_

TC

A0_

WO

0

PD5_

AIN

5_O

P1_

OU

TPD

4_A

IN4_

OP

1_IN

P

PD3_

AIN

3_O

P0_

INN

32K

Hz

Cry

stal

PB0_

USA

RT

3_T

XPB

1_U

SAR

T3_

RX

1kR203

US

ER

LE

D

VC

C_T

AR

GE

T

PF6_DBG3

PB2_SW0_DBG2

PB3_LED0_DBG1

GN

D

USE

R B

UT

TO

N

PB3_

LE

D0_

DB

G1

PB2_

SW0_

DB

G2

PB1_

USA

RT

3_R

XPB

0_U

SAR

T3_

TX

PF4_

USA

RT

2_T

XPF

5_U

SAR

T2_

RX

PF

2P

F3

PC

4P

C5

PC

6P

C7

1kR202

YELLOWLEDSML-D12Y1WT86

2 1

D200

TS604VM1-035CR13

4 2

SW20

0

GN

DV

CC

_ED

GE

GN

DG

ND

GN

DG

ND

UPD

I_D

BG

0P

F6_

DB

G3

J209

PB3_

LE

D0_

DB

G1

PB2_

SW0_

DB

G2

AV

R12

8DB

48

22u

FC

205

VC

C_E

DG

E

GN

D

DBG0

CDC_TXCDC_RX

DBG2

DBG1

DBG3

DBG2

DE

BU

GG

ER

CO

NN

EC

TIO

NS

DBG1

DBG3DBG0

VOFF

ID_SYS

ID_SYS

VOFF

TA

RG

ET

BU

LK

VC

C_T

AR

GE

TR

ESE

T P

ull

VB

US

CD

C R

X3

CD

C T

X4

DB

G1

5

DB

G2

6

0 T

X7

1 R

X8

2 SD

A9

3 S

CL

10

4 M

OSI

11

5 M

ISO

12

6 S

CK

13

7 S

S14

GN

D15

0 (T

X)

16

1 (R

X)

17

218

319

020

GN

D24

DB

G3

54

DB

G0

53

GN

D52

VC

C51

PW

M 3

46

AD

C 2

45

AD

C 1

44

AD

C 0

43

GN

D42

438

434

GN

D33

AD

C 7

50

AD

C 6

49

AD

C 5

48

PW

M 4

47

DE

BU

GG

ER

TAR

GE

T

ID2

VO

FF

55

121

222

323

025

126

227

328

429

530

631

732

535

636

737

539

640

741

RE

SER

VE

D1

VB

US

56

CN

AN

O56

-pin

edg

e co

nnec

tor

J200

J201

J203

J205

J206

J202

J204

PF1_

XT

AL

32K

2PF

0_X

TA

L32

K1

NC

XOUT

XIN

47kR200

AV

R12

8DB

48

UPD

I

GPI

O1

GPI

O0

RE

SET

DB

G0

DB

G1

DB

G2

DB

G3

Deb

ugge

r

CD

C T

X

CD

C R

X

UA

RT

3 R

X

UA

RT

3 T

X

VT

G1

8V -

55

VPB

3

PB

2

PF

6

UP

DI

PB

0

PB

1

Nam

eP

in

PE

3_O

P2_

INN

PE

2_O

P2_

OU

TP

E1_

OP

2_IN

PP

E0

J207

J208

PF

0P

F1

PA5

1

PA6

2

PA7

3

PB0

4

PB1

5

PB2

6

PB3

7

PB4

8

PB5

9

PC0

10

PC1

11

PC2

12

PC313

VDDIO214

GND15

PC416

PC517

PC618

PC719

PD020

PD121

PD222

PD323

PD424

PD5

25

PD6

26

PD7

27

AVDD

28

GND

29

PE0

30

PE1

31

PE2

32

PE3

33

XTAL32K1PF0

34

XTAL32K2PF1

35

PF2

36

PF337

PF438

PF539

PF640

UPDI41

VDD42

GND43

XTALHF1PA044

XTALHF2PA145

PA246

PA347

PA448

AV

R12

8DB

48-I

PT

U20

0

0RR204

GN

D

VC

C_T

AR

GE

T

VDDIO2

GND

J210

J211

82p

C20

48

2pC

203

GN

DG

ND

16M

Hz

Cry

stal

J217

XHFOUT

XHFIN

J214

J213

GN

D

J215

J216

PA0_XTALHF1

PA1_XTALHF2

PA0_

XT

AL

HF

1PA

1_X

TA

LH

F2

PA0

PA1

1 2

J212 N

M

15pF

C20

615

pFC

207

13

24 16

000

MH

zV

XM

7-90

40-1

6M00

0000

0TR

XC

201

GN

D32

768

kHz

VM

K3-

9001

-32K

7680

000T

R

XC

200

CDC_TX

CDC_RX

CD

C_T

XC

DC

_RX

Cry

stal

dat

ashe

et

Ccr

ysta

l = 9

pFm

ax E

SR

= 7

0kO

hmA

ccur

acy

plusmn20p

pm

AV

R48

DB

128

data

shee

tC

xin

= 4

0pF

(ty

pica

l val

ue)

Cxo

ut =

40

pF (

typi

cal v

alue

)C

lasymp1

( (1

40

pF)+

(1

40p

F)

)asymp

20p

FM

axim

um L

oad

= 1

25p

FM

axim

um E

SR =

50k

Ohm

Est

imat

ed C

pcb

= 0

5pF

Est

imat

ed lo

adC

= 2

(C

crys

tal-

Cpa

ra -

Cpc

b)C

= 2

(9p

F -

20

pF -

05

pF)

C =

13

0pF

Sele

cted

in d

esig

n af

ter

veri

fica

tion

C=

82

pF8

2pF

NO

TE

on

UA

RT

CD

C

RX

TX

onth

ehe

ader

deno

tes

the

inpu

tout

put d

irec

tion

of th

e si

gnal

resp

ectiv

e to

its

sou

rce

CD

C T

X is

out

put f

rom

the

DE

BU

GG

ER

C

DC

RX

is in

put t

o th

e D

EB

UG

GE

R

TX

is o

utpu

t fro

m th

e T

AR

GE

T d

evic

eR

X is

inpu

t to

the

TA

RG

ET

dev

ice

NO

TE

on

I2C

No

pull

-ups

on

boar

d P

ull-

ups

shou

ld b

em

ount

ed c

lose

to s

lave

dev

ice(

s)

WA

RN

ING

M

ake

sure

tore

mov

e R

204

befo

reap

plyi

ng p

ower

to J

212

Cry

stal

dat

ashe

et

Ccr

ysta

l = 1

2pF

max

ES

R =

60O

hmA

ccur

acy

plusmn30p

pm

AV

R48

DB

128

data

shee

tC

xin

= 4

0pF

(ty

pica

l val

ue)

Cxo

ut =

40

pF (

typi

cal v

alue

)C

lasymp1

( (1

40

pF)+

(1

40p

F)

)asymp

20p

FM

axim

um L

oad

= 1

25p

FM

axim

um E

SR =

k

Ohm

Est

imat

ed C

pcb

= 0

5pF

Est

imat

ed lo

adC

= 2

(C

crys

tal-

Cpa

ra -

Cpc

b)C

= 2

(12

pF -

20

pF -

05

pF)

C =

19

0pF

Sele

cted

in d

esig

n af

ter

veri

fica

tion

C=

15p

F1

5pF

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 34

11

22

33

44

55

66

77

88

DD

CC

BB

AA

3 of

4

AV

R12

8DB

48 C

uri

osit

y N

ano

2020

-06-

26A

VR

128D

B48

_Cur

iosi

ty_N

ano_

Deb

ugge

rSch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA

Rev

isio

n

Fil

eP

CB

Num

ber

PC

B

Rev

isio

n

Des

ign

ed w

ith

Dra

wn

By

ML

Shee

t Tit

le

Deb

ugge

r

Eng

inee

rA

H

A08

-305

71

Size

A3

A09

-337

22

Page

D

ateA

ltium

com

DE

BU

GG

ER

USB

MIC

RO

-B C

ON

NE

CT

OR

GN

D

USB

D_P

USB

D_N

100n

C10

7

100n

C10

8

1kR

107

VC

C_P

3V3

SRST

STA

TU

S_L

ED

SHIE

LD

VB

US

VC

C_P

3V3

GN

D

TP

100

Test

poin

t Arr

ay

12

34

56

78

910

TC

KT

DO

TM

SV

sup

TD

IG

ND

TR

STSR

STV

Tre

fG

ND

J102

GN

D

47u

F

C10

0

DBG0

DB

G0

21

GR

EE

N L

ED

SML

-P12

MT

T86

R

D10

0

VBUS

1

D-

2

D+

3

GND

5

SHIELD1

6

SHIELD2

7

ID

4

SHIELD3

8

SHIELD4

9 MU

-MB

0142

AB

2-26

9

J105

PAD

33

PA00

1

PA01

2

PA02

3

PA03

4

GND 10VDDANA 9

PA04

5

PA05

6

PA06

7

PA07

8

PA08 11

PA09 12

PA10 13

PA11 14

PA14 15

PA15 16

PA16

17

PA17

18

PA18

19

PA19

20

PA22

21

USB_SOFPA23

22

USB_DMPA24

23

USB_DPPA25

24

PA2725 RESETN26 PA2827 GND28 VDDCORE29 VDDIN30 SWDCLKPA3031 SWDIOPA3132

SAM

D21

E18

A-M

UT

U10

0

VOUT

1

VOUT

2

GND 3

EN

4

VIN

6

NC

5

EP 7

MIC

5528

-33

YM

TU

101

VC

C_P

3V3

GN

D

USB

D_P

USB

D_N

GN

D

1uC

106

VC

C_M

CU

_CO

RE

VC

C_P

3V3

VC

C_P

3V3

22u

FC

101

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

3

VC

C_P

3V3

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

4

VC

C_P

3V3

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

5

VC

C_P

3V3

GN

D

GN

D GN

D

GN

D

VC

C_E

DG

E

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

7

VC

C_P

3V3

GN

DDBG2

DB

G3_

CT

RL

S1_0

_TX

S1_1

_RX

S0_2

_TX

DA

CV

TG

_AD

C

RE

SER

VE

D

S0_3

_CL

K

DBG0_CTRL

CD

C_T

X_C

TR

L

BO

OT

DE

BU

GG

ER

PO

WE

RS

TA

TU

S L

ED

EN

1

BYP

6

VOUT

4

GND

2

VIN

3

NCADJ

5

GND

7

MIC

5353

U10

2

100n

C10

2

GN

D

GN

D

47kR101

27kR104 G

ND

33k

R10

6

22u

F

C10

3 GN

D

1kR

108

J100

VC

C_L

EV

EL

VC

C_R

EG

UL

AT

OR

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

6

VC

C_P

3V3

GN

DDBG1

CD

C_R

X

CD

C_T

X

DBG3

DBG1_CTRL

DE

BU

GG

ER

RE

GU

LA

TO

R

REG_ENABLE

RE

G_E

NA

BL

E

47kR103

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

47kR102

47kR105

SWC

LK

GN

D

47kR100 G

ND

DB

G2

S0_0

_RX

DB

G1_

CT

RL

DB

G0_

CT

RL

DB

G3

OP

EN

DR

AIN

TA

RG

ET

AD

JUST

AB

LE

RE

GU

LA

TO

R

SRST

DE

BU

GG

ER

TE

ST

PO

INT DBG2_CTRL

VO

FF

CD

C_R

X_C

TR

L

47kR109

DB

G1

CD

C_T

X_C

TR

L

CD

C_R

X_C

TR

L

SWC

LK

REG_ADJUST

DBG2_GPIO

DB

G3_

CT

RL

DB

G2_

CT

RL

UP

DI

UPD

I

GPI

O

GPI

O

RE

SET

Sign

al

DB

G0

DB

G1

DB

G2

DB

G3

ICS

PIn

terf

ace

DA

T

CL

K

GPI

O

MC

LR

DB

G3

CD

C T

X

CD

C R

X

UA

RT

RX

UA

RT

TX

UA

RT

RX

UA

RT

TX

TA

RG

ET

TA

RG

ET

1kR

110

VBUS_ADC

1

23

DM

N65

D8L

FB

Q10

1

VC

C-

-

ID_SYS

VOFF

1kR112

VC

C_P

3V3

VT

G_A

DC

DA

C

MIC

9416

3

VIN

B2

VOUT

A1

VIN

A2

EN

C2

GND

C1

VOUT

B1

U10

8

GN

D

ID_S

YS

VT

G_E

N

VTG_EN

VBUS_ADC

SWD

IO

ID_S

YS

TP

101

GN

DSW

DIO

VO

FF

47kR111 G

ND

ID P

IN

MC

3621

3

F10

0

VC

C_V

BU

S

VC

C_V

BU

S

VC

C_V

BU

S

J101

VC

C_T

AR

GE

T

47k

R11

3

CDC_TX

CDC_RX

Prog

ram

min

g co

nnec

tor

for

fact

ory

prog

ram

min

g of

DE

BU

GG

ER

MIC

5528

V

in 2

5V

to 5

5V

Vou

t F

ixed

33

VIm

ax 5

00m

AD

ropo

ut 2

60m

V

500

mA

MIC

5353

V

in 2

6V

to 6

VV

out

12

5V to

51

VIm

ax 5

00m

AD

ropo

ut (

typi

cal)

50m

V

150m

A 1

60m

V

500

mA

Acc

urac

y 2

in

itia

lT

herm

al s

hutd

own

and

curr

ent l

imit

Max

imum

out

put v

olta

ge is

lim

ited

by

the

inpu

t vol

tage

and

the

drop

out v

olta

ge in

the

regu

lato

r(V

max

= V

in -

dro

pout

)

J100

-

Cut

-str

ap u

sed

for

full

sep

arat

ion

of ta

rget

pow

er f

rom

the

leve

l shi

fter

s an

don

-boa

rd r

egul

ator

s-

For

cur

rent

mea

sure

men

ts u

sing

the

on-b

oard

pow

er s

uppl

y th

isst

rap

mus

t be

cut a

nd a

nam

met

er c

onne

cted

acr

oss

- F

or c

urre

nt m

easu

rem

ents

usi

ng a

n ex

tern

al p

ower

sup

ply

this

str

ap c

ould

be

cut f

or m

ore

accu

rate

mea

sure

men

ts L

eaka

ge b

ack

thro

ugh

the

swit

ch is

in th

e m

icro

am

pere

ran

ge

PT

C R

eset

tabl

e fu

se

Hol

d cu

rren

t 5

00m

AT

rip

curr

ent

100

0mA

Adj

usta

ble

outp

ut a

nd li

mit

atio

ns

- T

he D

EB

UG

GE

R c

an a

djus

t the

out

put v

olta

ge o

f th

e re

gula

tor

betw

een

125

V a

nd 5

1V

to th

e ta

rget

-

The

vol

tage

out

put i

s li

mit

ed b

y th

e in

put (

US

B)

whi

ch c

an v

ary

betw

een

440

V to

52

5V-

The

leve

l shi

fter

s ha

ve a

min

imal

vol

tage

leve

l of

165

V a

nd w

ill l

imit

the

min

imum

ope

ratin

g vo

ltage

all

owed

for

the

targ

et to

sti

ll a

llow

com

mun

icat

ion

- T

he M

IC94

163

has

a m

inim

al v

olat

ege

leve

l of

170

V a

nd w

ill l

imit

the

min

imum

vol

tage

del

iver

ed to

the

targ

et

- F

irm

war

e co

nfig

urat

ion

wil

l lim

it th

e vo

ltage

ran

ge to

be

wit

hin

the

the

targ

et s

peci

fica

tion

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 35

82 Assembly DrawingFigure 8-2 AVR128DB48 Curiosity Nano Assembly Drawing Top

+

Cb

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20001 PAC20002 COC200

PAC20101 PAC20102 COC201

PAC20201 PAC20202 COC202 PAC20301

PAC20302 COC203

PAC20401

PAC20402 COC204

PAC20502

PAC20501 COC205

PAC20601

PAC20602 COC206 PAC20701

PAC20702 COC207 PAD10002 PAD10001 COD100

PAD20002

PAD20001 COD200

PAF10002

PAF10001 COF100

PAJ10002 PAJ10001 COJ100

PAJ10101 PAJ10102 COJ101

PAJ10201

PAJ10202

PAJ10203

PAJ10204

PAJ10205

PAJ10206 COJ102

PAJ10506

PAJ10507 PAJ10509

PAJ10508 PAJ105010

PAJ105011 PAJ10505

PAJ10504

PAJ10503

PAJ10502

PAJ10501

PAJ10500

COJ105

PAJ200056 PAJ200053

PAJ200028 PAJ20002 PAJ20001

PAJ200051 PAJ200050 PAJ200052 PAJ200049 PAJ200048 PAJ200047 PAJ200046 PAJ200045 PAJ200044 PAJ200043 PAJ200042 PAJ200041 PAJ200040 PAJ200039 PAJ200038 PAJ200037 PAJ200036 PAJ200035 PAJ200034 PAJ200033 PAJ200032 PAJ200031 PAJ200030 PAJ200029

PAJ20003 PAJ20004 PAJ20005 PAJ20006 PAJ20007 PAJ20008 PAJ20009 PAJ200010 PAJ200011 PAJ200012 PAJ200013 PAJ200014 PAJ200015 PAJ200016 PAJ200017 PAJ200018 PAJ200019 PAJ200020 PAJ200021 PAJ200022 PAJ200023 PAJ200026 PAJ200025 PAJ200024 PAJ200027

PAJ200054 PAJ200055 PAJ20000

COJ200

PAJ20102 PAJ20101 COJ201

PAJ20202 PAJ20201 COJ202

PAJ20302 PAJ20301 COJ203

PAJ20402 PAJ20401 COJ204

PAJ20502 PAJ20501 COJ205

PAJ20602 PAJ20601 COJ206 PAJ20702 PAJ20701 COJ207

PAJ20802 PAJ20801 COJ208

PAJ20902 PAJ20901 COJ209

PAJ21001 PAJ21002 PAJ21005 COJ210

PAJ21102 PAJ21101 PAJ21105 COJ211

PAJ21202 PAJ21201 COJ212

PAJ21301 PAJ21302 PAJ21305 COJ213

PAJ21401 PAJ21402 PAJ21405 COJ214

PAJ21502 PAJ21501 COJ215

PAJ21602 PAJ21601 COJ216 PAJ21702 PAJ21701 COJ217

COLABEL1

PAQ10101 PAQ10102 PAQ10103 PAQ10100

COQ101 PAR10002

PAR10001 COR100 PAR10101 PAR10102 COR101

PAR10202 PAR10201 COR102

PAR10302 PAR10301 COR103

PAR10401 PAR10402 COR104

PAR10502

PAR10501 COR105

PAR10601 PAR10602 COR106

PAR10702 PAR10701 COR107

PAR10801

PAR10802 COR108

PAR10901 PAR10902 COR109

PAR11001 PAR11002 COR110

PAR11101 PAR11102 COR111

PAR11201 PAR11202 COR112

PAR11302 PAR11301 COR113

PAR20001 PAR20002 COR200 PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203 PAR20401 PAR20402 COR204

PASW20003

PASW20004 PASW20002

PASW20001 COSW200

PATP10001 COTP100

PATP10101 COTP101 PAU100033

PAU100032 PAU100031 PAU100030 PAU100029 PAU100028 PAU100027 PAU100026 PAU100025 PAU100024

PAU100023

PAU100022

PAU100021

PAU100020

PAU100019

PAU100018

PAU100017 PAU100016 PAU100015 PAU100014 PAU100013 PAU100012 PAU100011 PAU100010

PAU10001

PAU10002

PAU10003

PAU10004

PAU10005

PAU10006

PAU10007

PAU10008 PAU10009

COU100

PAU10107

PAU10104 PAU10105 PAU10106

PAU10103 PAU10102 PAU10101 PAU10100 COU101 PAU10207

PAU10204 PAU10205

PAU10206

PAU10203 PAU10202

PAU10201

COU102

PAU10306

PAU10305 PAU10304 PAU10303

PAU10302 PAU10301 PAU10300

COU103

PAU10406

PAU10405 PAU10404 PAU10403

PAU10402 PAU10401 PAU10400

COU104

PAU10506

PAU10505 PAU10504 PAU10503

PAU10502 PAU10501 PAU10500

COU105

PAU10606

PAU10605 PAU10604 PAU10603

PAU10602 PAU10601 PAU10600

COU106

PAU10706

PAU10705 PAU10704 PAU10703

PAU10702 PAU10701 PAU10700

COU107

PAU1080A1 PAU1080A2

PAU1080B1 PAU1080B2

PAU1080C1 PAU1080C2 COU108

PAU20001 PAU20002 PAU20003 PAU20004 PAU20005 PAU20006 PAU20007 PAU20008 PAU20009 PAU200010 PAU200011 PAU200012 PAU200013 PAU200014 PAU200015 PAU200016 PAU200017 PAU200018 PAU200019 PAU200020 PAU200021 PAU200022 PAU200023 PAU200024 PAU200025 PAU200026 PAU200027 PAU200028 PAU200029 PAU200030 PAU200031 PAU200032 PAU200033 PAU200034 PAU200035 PAU200036

PAU200037 PAU200038 PAU200039 PAU200040 PAU200041 PAU200042 PAU200043 PAU200044 PAU200045 PAU200046 PAU200047 PAU200048

COU200

PAXC20001

PAXC20002 COXC200

PAXC20101 PAXC20102

PAXC20103 PAXC20104 COXC201

Figure 8-3 AVR128DB48 Curiosity Nano Assembly Drawing Bottom

tcR

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20001 PAC20002 COC200

PAC20101 PAC20102 COC201

PAC20201 PAC20202 COC202 PAC20301

PAC20302 COC203

PAC20401

PAC20402 COC204

PAC20502

PAC20501 COC205

PAC20601

PAC20602 COC206 PAC20701

PAC20702 COC207 PAD10002 PAD10001 COD100

PAD20002

PAD20001 COD200

PAF10002

PAF10001 COF100

PAJ10002 PAJ10001 COJ100

PAJ10101 PAJ10102 COJ101

PAJ10201

PAJ10202

PAJ10203

PAJ10204

PAJ10205

PAJ10206 COJ102

PAJ10506

PAJ10507 PAJ10509

PAJ10508 PAJ105010

PAJ105011 PAJ10505

PAJ10504

PAJ10503

PAJ10502

PAJ10501

PAJ10500

COJ105

PAJ200056 PAJ200053

PAJ200028 PAJ20002 PAJ20001

PAJ200051 PAJ200050 PAJ200052 PAJ200049 PAJ200048 PAJ200047 PAJ200046 PAJ200045 PAJ200044 PAJ200043 PAJ200042 PAJ200041 PAJ200040 PAJ200039 PAJ200038 PAJ200037 PAJ200036 PAJ200035 PAJ200034 PAJ200033 PAJ200032 PAJ200031 PAJ200030 PAJ200029

PAJ20003 PAJ20004 PAJ20005 PAJ20006 PAJ20007 PAJ20008 PAJ20009 PAJ200010 PAJ200011 PAJ200012 PAJ200013 PAJ200014 PAJ200015 PAJ200016 PAJ200017 PAJ200018 PAJ200019 PAJ200020 PAJ200021 PAJ200022 PAJ200023 PAJ200026 PAJ200025 PAJ200024 PAJ200027

PAJ200054 PAJ200055 PAJ20000

COJ200

PAJ20102 PAJ20101 COJ201

PAJ20202 PAJ20201 COJ202

PAJ20302 PAJ20301 COJ203

PAJ20402 PAJ20401 COJ204

PAJ20502 PAJ20501 COJ205

PAJ20602 PAJ20601 COJ206 PAJ20702 PAJ20701 COJ207

PAJ20802 PAJ20801 COJ208

PAJ20902 PAJ20901 COJ209

PAJ21001 PAJ21002 PAJ21005 COJ210

PAJ21102 PAJ21101 PAJ21105 COJ211

PAJ21202 PAJ21201 COJ212

PAJ21301 PAJ21302 PAJ21305 COJ213

PAJ21401 PAJ21402 PAJ21405 COJ214

PAJ21502 PAJ21501 COJ215

PAJ21602 PAJ21601 COJ216 PAJ21702 PAJ21701 COJ217

COLABEL1

PAQ10101 PAQ10102 PAQ10103 PAQ10100

COQ101 PAR10002

PAR10001 COR100 PAR10101 PAR10102 COR101

PAR10202 PAR10201 COR102

PAR10302 PAR10301 COR103

PAR10401 PAR10402 COR104

PAR10502

PAR10501 COR105

PAR10601 PAR10602 COR106

PAR10702 PAR10701 COR107

PAR10801

PAR10802 COR108

PAR10901 PAR10902 COR109

PAR11001 PAR11002 COR110

PAR11101 PAR11102 COR111

PAR11201 PAR11202 COR112

PAR11302 PAR11301 COR113

PAR20001 PAR20002 COR200 PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203 PAR20401 PAR20402 COR204

PASW20003

PASW20004 PASW20002

PASW20001 COSW200

PATP10001 COTP100

PATP10101 COTP101 PAU100033

PAU100032 PAU100031 PAU100030 PAU100029 PAU100028 PAU100027 PAU100026 PAU100025 PAU100024

PAU100023

PAU100022

PAU100021

PAU100020

PAU100019

PAU100018

PAU100017 PAU100016 PAU100015 PAU100014 PAU100013 PAU100012 PAU100011 PAU100010

PAU10001

PAU10002

PAU10003

PAU10004

PAU10005

PAU10006

PAU10007

PAU10008 PAU10009

COU100

PAU10107

PAU10104 PAU10105 PAU10106

PAU10103 PAU10102 PAU10101 PAU10100 COU101 PAU10207

PAU10204 PAU10205

PAU10206

PAU10203 PAU10202

PAU10201

COU102

PAU10306

PAU10305 PAU10304 PAU10303

PAU10302 PAU10301 PAU10300

COU103

PAU10406

PAU10405 PAU10404 PAU10403

PAU10402 PAU10401 PAU10400

COU104

PAU10506

PAU10505 PAU10504 PAU10503

PAU10502 PAU10501 PAU10500

COU105

PAU10606

PAU10605 PAU10604 PAU10603

PAU10602 PAU10601 PAU10600

COU106

PAU10706

PAU10705 PAU10704 PAU10703

PAU10702 PAU10701 PAU10700

COU107

PAU1080A1 PAU1080A2

PAU1080B1 PAU1080B2

PAU1080C1 PAU1080C2 COU108

PAU20001 PAU20002 PAU20003 PAU20004 PAU20005 PAU20006 PAU20007 PAU20008 PAU20009 PAU200010 PAU200011 PAU200012 PAU200013 PAU200014 PAU200015 PAU200016 PAU200017 PAU200018 PAU200019 PAU200020 PAU200021 PAU200022 PAU200023 PAU200024 PAU200025 PAU200026 PAU200027 PAU200028 PAU200029 PAU200030 PAU200031 PAU200032 PAU200033 PAU200034 PAU200035 PAU200036

PAU200037 PAU200038 PAU200039 PAU200040 PAU200041 PAU200042 PAU200043 PAU200044 PAU200045 PAU200046 PAU200047 PAU200048

COU200

PAXC20001

PAXC20002 COXC200

PAXC20101 PAXC20102

PAXC20103 PAXC20104 COXC201

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 36

83 Curiosity Nano Base for Click boardstrade

Figure 8-4 AVR128DB48 Curiosity Nano Pinout Mapping

US

B

DE

BU

GG

ER

AV

R1

28

DB

48

SW

0

LE

D0

PS

LE

DNC

NC

ID

ID

CDC RX

CDCRX

USART3 TX

PB0

CDC TX

CDCTX

USART3 RX

PB1

DBG1

DBG1

PB3

LED0

DBG2

DBG2

PB2

SW0

PF4

PF4

USART2 TX

PF5

PF5

USART2 RX

PA2

PA2

TWI0 SDA

PA3

PA3

TWI0 SCL

PA4

PA4

SPI0 MOSI

PA5

PA5

SPI0 MISO

PA6

PA6

SPI0 SCK

PA7

PA7

SPI0 SS

GND

GND

PB0

PB0

USART3 TX

CDC RX

PB1

PB1

USART3 RX

CDC TX

PF2

PF2

PF3

PF3

PC0

PC0

PC1

PC1

PC2

PC2

PC3

PC3

GND

GND

(PA0)

(PA0)

XTALHF1

(PA1)

(PA1)

XTALHF2

PB2

PB2

SW0

PB3

PB3

LED0

VBUS

VBUS

VOFF

VOFF

DBG3

DBG3

PF6

DBG0

DBG0

UPDI

GND

GND

VTG

VTG

PD6

PD6

AIN6

PD3

PD3

AIN3

OP0 INN

PD2

PD2

AIN2

OP0 OUT

TCA0 WO2

PD1

PD1

AIN1

OP0 INP

TCA0 WO1

PD0

PD0

AIN0

TCA0 WO0

PD7

PD7

AIN7

OP1 INN

PD5

PD5

AIN5

OP1 OUT

PD4

PD4

AIN4

OP1 INP

GND

GND

PE3

PE3

OP2 INN

PE2

PE2

OP2 OUT

PE1

PE1

OP2 INP

PE0

PE0

PC7

PC7

PC6

PC6

PC5

PC5

PC4

PC4

GND

GND

PB5

PB5

PB4

PB4

(PF1)

(PF1)

XTAL32K2

(PF0)

(PF0)

XTAL32K1

DE

BU

GG

ER

AV

R1

28

DB

48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

MVIO

OPAMP

Shared pin

AV

R1

28

DB

48

Cu

rio

sity

Na

no

1

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

2

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

3

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

Xp

lain

ed

Pro

Ext

en

sio

nE

XT

11

2

19

20

Cu

rio

sity

Na

no

Ba

sefo

r cl

ick

bo

ard

sT

M

PD4

PD0

PD6

PD3

PA7

PF5

PA6

PF4

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

PD5

PD1

PF3

PF2

PE2

PB1

PA6

PB0

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

PD7

PD2

PE1

PE0

PE3

PF5

PA6

PF4

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

ID

GND

PD5

PD7

PF3

PE1

PD1

PD2

PF2

PE3

PA2

PA3

PB1

PB0

PE2

PA4

PA5

PA6

GND

+33V

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 37

84 Disconnecting the On-board DebuggerThe on-board debugger and level shifters can be completely disconnected from the AVR128DB48

The block diagram below shows all connections between the debugger and the AVR128DB48 The rounded boxesrepresent connections to the board edge The signal names shown are also printed in silkscreen on the bottom sideof the board

To disconnect the debugger cut the straps shown in Figure 8-6

Attention  Cutting the GPIO straps to the on-board debugger will disable the virtual serial portprogramming debugging and data streaming Cutting the power supply strap will disconnect the on-boardpower supply

Tip  Any connection that is cut can be reconnected using solder Alternatively a 0Ω 0402 resistor can bemounted

Tip  When the debugger is disconnected an external debugger can be connected to holes shown in Figure 8-6 Details about connecting an external debugger are described in 46 Connecting ExternalDebuggers

Figure 8-5  On-Board Debugger Connections Block Diagram

DE

BU

GG

ER

TARGETLevel-Shift

PA04PA06PA07PA08PA16PA00PA01

USB

DIR x 5

VCC_P3V3

VBUS

VC

C_L

EV

EL

VC

C_T

AR

GE

TDBG0DBG1DBG2DBG3CDC TXCDC RX

CDC RX

CDC TX

DBG3

DBG2

DBG1

DBG0

GPIO straps

LDO

VOFF

LDO

VBUS VTG

VCC_EDGE

Power Supply strap Target Power strap

UART RXUART TX

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 38

Figure 8-6 On-Board Debugger Connection Cut Straps

GPIO straps (bottom side) Power Supply strap (top side)

85 Getting Started with IARIAR Embedded Workbenchreg for AVRreg is a proprietary high-efficiency compiler not based on GCC Programming anddebugging of AVR128DB48 Curiosity Nano is supported in IARtrade Embedded Workbench for AVR using the Atmel-ICEinterface Some initial settings must be set up in the project to get the programming and debugging to work

The following steps will explain how to get your project ready for programming and debugging

1 Make sure you have opened the project you want to configure Open the OPTIONS dialog for the project2 In the category General Options select the Target tab Select the device for the project or if not listed the

core of the device as shown in Figure 8-73 In the category Debugger select the Setup tab Select Atmel-ICE as the driver as shown in Figure 8-84 In the category Debugger gt Atmel-ICE select the Atmel-ICE 1 tab Select UPDI as the interface and

optionally select the UPDI frequency as shown in Figure 8-9

Info  If the selection of Debug Port (mentioned in step 4) is grayed out the interface is preselected andthe user can skip this configuration step

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 39

Figure 8-7 Select Target Device

Figure 8-8 Select Debugger

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 40

Figure 8-9 Configure Interface

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 41

The Microchip Website

Microchip provides online support via our website at wwwmicrochipcom This website is used to make files andinformation easily available to customers Some of the content available includes

bull Product Support ndash Data sheets and errata application notes and sample programs design resources userrsquosguides and hardware support documents latest software releases and archived software

bull General Technical Support ndash Frequently Asked Questions (FAQs) technical support requests onlinediscussion groups Microchip design partner program member listing

bull Business of Microchip ndash Product selector and ordering guides latest Microchip press releases listing ofseminars and events listings of Microchip sales offices distributors and factory representatives

Product Change Notification Service

Microchiprsquos product change notification service helps keep customers current on Microchip products Subscribers willreceive email notification whenever there are changes updates revisions or errata related to a specified productfamily or development tool of interest

To register go to wwwmicrochipcompcn and follow the registration instructions

Customer Support

Users of Microchip products can receive assistance through several channels

bull Distributor or Representativebull Local Sales Officebull Embedded Solutions Engineer (ESE)bull Technical Support

Customers should contact their distributor representative or ESE for support Local sales offices are also available tohelp customers A listing of sales offices and locations is included in this document

Technical support is available through the website at wwwmicrochipcomsupport

Microchip Devices Code Protection Feature

Note the following details of the code protection feature on Microchip devices

bull Microchip products meet the specifications contained in their particular Microchip Data Sheetbull Microchip believes that its family of products is secure when used in the intended manner and under normal

conditionsbull There are dishonest and possibly illegal methods being used in attempts to breach the code protection features

of the Microchip devices We believe that these methods require using the Microchip products in a manneroutside the operating specifications contained in Microchiprsquos Data Sheets Attempts to breach these codeprotection features most likely cannot be accomplished without violating Microchiprsquos intellectual property rights

bull Microchip is willing to work with any customer who is concerned about the integrity of its codebull Neither Microchip nor any other semiconductor manufacturer can guarantee the security of its code Code

protection does not mean that we are guaranteeing the product is ldquounbreakablerdquo Code protection is constantlyevolving We at Microchip are committed to continuously improving the code protection features of our productsAttempts to break Microchiprsquos code protection feature may be a violation of the Digital Millennium Copyright ActIf such acts allow unauthorized access to your software or other copyrighted work you may have a right to suefor relief under that Act

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 42

Legal Notice

Information contained in this publication is provided for the sole purpose of designing with and using Microchipproducts Information regarding device applications and the like is provided only for your convenience and may besuperseded by updates It is your responsibility to ensure that your application meets with your specifications

THIS INFORMATION IS PROVIDED BY MICROCHIP ldquoAS ISrdquo MICROCHIP MAKES NO REPRESENTATIONS ORWARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED WRITTEN OR ORAL STATUTORY OROTHERWISE RELATED TO THE INFORMATION INCLUDING BUT NOT LIMITED TO ANY IMPLIEDWARRANTIES OF NON-INFRINGEMENT MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSEOR WARRANTIES RELATED TO ITS CONDITION QUALITY OR PERFORMANCE

IN NO EVENT WILL MICROCHIP BE LIABLE FOR ANY INDIRECT SPECIAL PUNITIVE INCIDENTAL ORCONSEQUENTIAL LOSS DAMAGE COST OR EXPENSE OF ANY KIND WHATSOEVER RELATED TO THEINFORMATION OR ITS USE HOWEVER CAUSED EVEN IF MICROCHIP HAS BEEN ADVISED OF THEPOSSIBILITY OR THE DAMAGES ARE FORESEEABLE TO THE FULLEST EXTENT ALLOWED BY LAWMICROCHIPS TOTAL LIABILITY ON ALL CLAIMS IN ANY WAY RELATED TO THE INFORMATION OR ITS USEWILL NOT EXCEED THE AMOUNT OF FEES IF ANY THAT YOU HAVE PAID DIRECTLY TO MICROCHIP FORTHE INFORMATION Use of Microchip devices in life support andor safety applications is entirely at the buyerrsquos riskand the buyer agrees to defend indemnify and hold harmless Microchip from any and all damages claims suits orexpenses resulting from such use No licenses are conveyed implicitly or otherwise under any Microchip intellectualproperty rights unless otherwise stated

Trademarks

The Microchip name and logo the Microchip logo Adaptec AnyRate AVR AVR logo AVR Freaks BesTimeBitCloud chipKIT chipKIT logo CryptoMemory CryptoRF dsPIC FlashFlex flexPWR HELDO IGLOO JukeBloxKeeLoq Kleer LANCheck LinkMD maXStylus maXTouch MediaLB megaAVR Microsemi Microsemi logo MOSTMOST logo MPLAB OptoLyzer PackeTime PIC picoPower PICSTART PIC32 logo PolarFire Prochip DesignerQTouch SAM-BA SenGenuity SpyNIC SST SST Logo SuperFlash Symmetricom SyncServer TachyonTempTrackr TimeSource tinyAVR UNIO Vectron and XMEGA are registered trademarks of Microchip TechnologyIncorporated in the USA and other countries

APT ClockWorks The Embedded Control Solutions Company EtherSynch FlashTec Hyper Speed ControlHyperLight Load IntelliMOS Libero motorBench mTouch Powermite 3 Precision Edge ProASIC ProASIC PlusProASIC Plus logo Quiet-Wire SmartFusion SyncWorld Temux TimeCesium TimeHub TimePictra TimeProviderVite WinPath and ZL are registered trademarks of Microchip Technology Incorporated in the USA

Adjacent Key Suppression AKS Analog-for-the-Digital Age Any Capacitor AnyIn AnyOut BlueSky BodyComCodeGuard CryptoAuthentication CryptoAutomotive CryptoCompanion CryptoController dsPICDEMdsPICDEMnet Dynamic Average Matching DAM ECAN EtherGREEN In-Circuit Serial Programming ICSPINICnet Inter-Chip Connectivity JitterBlocker KleerNet KleerNet logo memBrain Mindi MiWi MPASM MPFMPLAB Certified logo MPLIB MPLINK MultiTRAK NetDetach Omniscient Code Generation PICDEMPICDEMnet PICkit PICtail PowerSmart PureSilicon QMatrix REAL ICE Ripple Blocker SAM-ICE Serial QuadIO SMART-IS SQI SuperSwitcher SuperSwitcher II Total Endurance TSHARC USBCheck VariSenseViewSpan WiperLock Wireless DNA and ZENA are trademarks of Microchip Technology Incorporated in the USAand other countries

SQTP is a service mark of Microchip Technology Incorporated in the USA

The Adaptec logo Frequency on Demand Silicon Storage Technology and Symmcom are registered trademarks ofMicrochip Technology Inc in other countries

GestIC is a registered trademark of Microchip Technology Germany II GmbH amp Co KG a subsidiary of MicrochipTechnology Inc in other countries

All other trademarks mentioned herein are property of their respective companiescopy 2020 Microchip Technology Incorporated Printed in the USA All Rights Reserved

ISBN 978-1-5224-6667-3

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 43

Quality Management SystemFor information regarding Microchiprsquos Quality Management Systems please visit wwwmicrochipcomquality

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 44

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupportwwwmicrochipcomsupportWeb AddresswwwmicrochipcomAtlantaDuluth GATel 678-957-9614Fax 678-957-1455Austin TXTel 512-257-3370BostonWestborough MATel 774-760-0087Fax 774-760-0088ChicagoItasca ILTel 630-285-0071Fax 630-285-0075DallasAddison TXTel 972-818-7423Fax 972-818-2924DetroitNovi MITel 248-848-4000Houston TXTel 281-894-5983IndianapolisNoblesville INTel 317-773-8323Fax 317-773-5453Tel 317-536-2380Los AngelesMission Viejo CATel 949-462-9523Fax 949-462-9608Tel 951-273-7800Raleigh NCTel 919-844-7510New York NYTel 631-435-6000San Jose CATel 408-735-9110Tel 408-436-4270Canada - TorontoTel 905-695-1980Fax 905-695-2078

Australia - SydneyTel 61-2-9868-6733China - BeijingTel 86-10-8569-7000China - ChengduTel 86-28-8665-5511China - ChongqingTel 86-23-8980-9588China - DongguanTel 86-769-8702-9880China - GuangzhouTel 86-20-8755-8029China - HangzhouTel 86-571-8792-8115China - Hong Kong SARTel 852-2943-5100China - NanjingTel 86-25-8473-2460China - QingdaoTel 86-532-8502-7355China - ShanghaiTel 86-21-3326-8000China - ShenyangTel 86-24-2334-2829China - ShenzhenTel 86-755-8864-2200China - SuzhouTel 86-186-6233-1526China - WuhanTel 86-27-5980-5300China - XianTel 86-29-8833-7252China - XiamenTel 86-592-2388138China - ZhuhaiTel 86-756-3210040

India - BangaloreTel 91-80-3090-4444India - New DelhiTel 91-11-4160-8631India - PuneTel 91-20-4121-0141Japan - OsakaTel 81-6-6152-7160Japan - TokyoTel 81-3-6880- 3770Korea - DaeguTel 82-53-744-4301Korea - SeoulTel 82-2-554-7200Malaysia - Kuala LumpurTel 60-3-7651-7906Malaysia - PenangTel 60-4-227-8870Philippines - ManilaTel 63-2-634-9065SingaporeTel 65-6334-8870Taiwan - Hsin ChuTel 886-3-577-8366Taiwan - KaohsiungTel 886-7-213-7830Taiwan - TaipeiTel 886-2-2508-8600Thailand - BangkokTel 66-2-694-1351Vietnam - Ho Chi MinhTel 84-28-5448-2100

Austria - WelsTel 43-7242-2244-39Fax 43-7242-2244-393Denmark - CopenhagenTel 45-4485-5910Fax 45-4485-2829Finland - EspooTel 358-9-4520-820France - ParisTel 33-1-69-53-63-20Fax 33-1-69-30-90-79Germany - GarchingTel 49-8931-9700Germany - HaanTel 49-2129-3766400Germany - HeilbronnTel 49-7131-72400Germany - KarlsruheTel 49-721-625370Germany - MunichTel 49-89-627-144-0Fax 49-89-627-144-44Germany - RosenheimTel 49-8031-354-560Israel - RarsquoananaTel 972-9-744-7705Italy - MilanTel 39-0331-742611Fax 39-0331-466781Italy - PadovaTel 39-049-7625286Netherlands - DrunenTel 31-416-690399Fax 31-416-690340Norway - TrondheimTel 47-72884388Poland - WarsawTel 48-22-3325737Romania - BucharestTel 40-21-407-87-50Spain - MadridTel 34-91-708-08-90Fax 34-91-708-08-91Sweden - GothenbergTel 46-31-704-60-40Sweden - StockholmTel 46-8-5090-4654UK - WokinghamTel 44-118-921-5800Fax 44-118-921-5820

Worldwide Sales and Service

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 45

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Board Overview
      • 2 Getting Started
        • 21 Quick Start
          • 211 Driver Installation
          • 212 Kit Window
          • 213 MPLABreg X IDE Device Family Packs
          • 214 Atmel Studio 7 Device Family Pack
            • 22 Design Documentation and Relevant Links
              • 3 Preprogrammed Application
              • 4 Curiosity Nano
                • 41 On-Board Debugger Overview
                  • 411 Debugger
                  • 412 Virtual Serial Port (CDC)
                    • 4121 Overview
                    • 4122 Operating System Support
                    • 4123 Limitations
                    • 4124 Signaling
                    • 4125 Advanced Use
                      • 413 Mass Storage Device
                        • 4131 Mass Storage Device Implementation
                        • 4132 Limitations of Drag-and-Drop Programming
                        • 4133 Special Commands
                          • 414 Data Gateway Interface (DGI)
                            • 4141 Debug GPIO
                            • 4142 Timestamping
                                • 42 Curiosity Nano Standard Pinout
                                • 43 Power Supply
                                  • 431 Target Regulator
                                  • 432 External Supply
                                  • 433 VBUS Output Pin
                                  • 434 Power Supply Exceptions
                                    • 44 Low-Power Measurement
                                    • 45 Programming External Microcontrollers
                                      • 451 Supported Devices
                                      • 452 Software Configuration
                                      • 453 Hardware Modifications
                                      • 454 Connecting to External Microcontrollers
                                        • 46 Connecting External Debuggers
                                          • 5 Hardware User Guide
                                            • 51 Connectors
                                              • 511 AVR128DB48 Curiosity Nano Pinout
                                              • 512 Using Pin Headers
                                              • 513 Multi-Voltage IO
                                              • 514 Operational Amplifiers
                                                • 52 Peripherals
                                                  • 521 LED
                                                  • 522 Mechanical Switch
                                                  • 523 32768 kHz Crystal
                                                  • 524 1600 MHz Crystal
                                                  • 525 On-Board Debugger Implementation
                                                    • 5251 On-Board Debugger Connections
                                                      • 6 Hardware Revision History and Known Issues
                                                        • 61 Identifying Product ID and Revision
                                                        • 62 Revision 3
                                                        • 63 Revision 2
                                                          • 7 Document Revision History
                                                          • 8 Appendix
                                                            • 81 Schematic
                                                            • 82 Assembly Drawing
                                                            • 83 Curiosity Nano Base for Click boardstrade
                                                            • 84 Disconnecting the On-board Debugger
                                                            • 85 Getting Started with IAR
                                                              • The Microchip Website
                                                              • Product Change Notification Service
                                                              • Customer Support
                                                              • Microchip Devices Code Protection Feature
                                                              • Legal Notice
                                                              • Trademarks
                                                              • Quality Management System
                                                              • Worldwide Sales and Service
Page 3: AVR128DB48 Curiosity Nano Hardware User Guideww1.microchip.com/downloads/en/DeviceDoc/AVR128DB48-Curiosit… · 4. Curiosity Nano Curiosity Nano is an evaluation platform of small

51 Connectors26511 AVR128DB48 Curiosity Nano Pinout26512 Using Pin Headers26513 Multi-Voltage IO 27514 Operational Amplifiers 28

52 Peripherals 29521 LED29522 Mechanical Switch29523 32768 kHz Crystal 29524 1600 MHz Crystal 30525 On-Board Debugger Implementation31

5251 On-Board Debugger Connections 31

6 Hardware Revision History and Known Issues 32

61 Identifying Product ID and Revision 3262 Revision 33263 Revision 232

7 Document Revision History33

8 Appendix 34

81 Schematic3482 Assembly Drawing3683 Curiosity Nano Base for Click boardstrade 3784 Disconnecting the On-board Debugger3885 Getting Started with IAR39

The Microchip Website42

Product Change Notification Service42

Customer Support 42

Microchip Devices Code Protection Feature 42

Legal Notice 43

Trademarks 43

Quality Management System 44

Worldwide Sales and Service45

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 3

1 Introduction

11 Featuresbull AVR128DB48 Microcontrollerbull One Yellow User LEDbull One Mechanical User Switchbull One 32768 kHz Crystalbull One 1600 MHz Crystalbull On-Board Debugger

ndash Board identification in Microchip MPLABreg X IDE and Atmel Studio 7ndash One green power and status LEDndash Programming and debuggingndash Virtual serial port (CDC)ndash Two debug GPIO channels (DGI GPIO)

bull USB Poweredbull Adjustable Target Voltage

ndash MIC5353 LDO regulator controlled by the on-board debuggerndash 18ndash51V output voltage (limited by USB input voltage)ndash 500 mA maximum output current (limited by ambient temperature and output voltage)

12 Board OverviewThe Microchip AVR128DB48 Curiosity Nano Evaluation Kit is a hardware platform to evaluate the AVR128DB48microcontroller

Figure 1-1 AVR128DB48 Curiosity Nano Board Overview

User Switch

User LED(LED0)

AVR128DB48MCU

32768 kHz Crystal

1600 MHzCrystal

DebuggerPowerStatus

Micro-USBConnector

VDDIO2 MVIO Pins

AVR128DB48 Curiosity NanoIntroduction

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 4

2 Getting Started

21 Quick StartSteps to start exploring the AVR128DB48 Curiosity Nano board

1 Download Microchip MPLABreg X IDE and MPLABreg XC C Compiler or download Atmel Studio 72 Launch MPLABreg X IDE or Atmel Studio 73 Optional Use MPLABreg Code Configurator or Atmel START to generate drivers and examples4 Write your application code5 Connect a USB cable (Standard-A to Micro-B or Micro-AB) between the PC and the debug USB port on the

board

Info bull MPLABreg X IDE supports XC C compilers and the AVRreg and Armreg Toolchains (GCC Compilers)bull Microchiprsquos XC8 C Compiler supports all 8-bit PICreg and AVRreg microcontrollersbull Included in the Atmel Studio 7 download are the AVRreg and Armreg Toolchains (GCC Compilers)

211 Driver Installation

When the board is connected to your computer for the first time the operating system will perform a driver softwareinstallation The driver file supports both 32- and 64-bit versions of Microsoftreg Windowsreg XP Windows VistaregWindows 7 Windows 8 and Windows 10 The drivers for the board are included with both MPLABreg X IDE and AtmelStudio 7

212 Kit Window

Once the board is powered the green status LED will be lit and both MPLABreg X IDE and Atmel Studio 7 will auto-detect which boards are connected The Kit Window in MPLABreg X IDE and Atmel Studio 7 will present relevantinformation like data sheets and board documentation The AVR128DB48 device on the AVR128DB48 CuriosityNano board is programmed and debugged by the on-board debugger and therefore no external programmer ordebugger tool is required

Tip  The Kit Window can be opened in MPLABreg X IDE through the menu bar Window gt Kit Window

213 MPLABreg X IDE Device Family Packs

Microchip MPLABreg X IDE requires specific information to support devices and tools This information is contained inversioned packs For the AVR128DB48 Curiosity Nano board MPLABreg X version 540 with device family pack ldquoAVR-Dx_DFPrdquo version 12 and tool pack ldquonEDBG_TPrdquo version 11 or newer are required For more information on packsand how to upgrade them refer to the MPLABreg X IDE Userrsquos guide - Work with Device Packs

Tip  The latest device family packs are available through Tools gt Packs in MPLABreg X IDE or online at Microchip MPLABreg X Packs Repository

AVR128DB48 Curiosity NanoGetting Started

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 5

214 Atmel Studio 7 Device Family PackAtmel Studio 7 requires specific information to support devices This information is contained in versioned packs Forthe AVR128DB48 Curiosity Nano board Atmel Studio 7 version 702397 with device family pack ldquoAVR-Dx_DFPrdquoversion 11 or newer are required For more information on packs and how to upgrade them refer to the Atmel Studio7 User Guide - Device Pack Manager

Tip  The latest device family packs are available through Tools gt Device Pack Manager in Atmel Studio 7or online at Atmel Studio Packs Repository

22 Design Documentation and Relevant LinksThe following list contains links to the most relevant documents and software for the AVR128DB48 Curiosity Nanoboard

bull MPLABreg X IDE - MPLAB X IDE is a software program that runs on a PC (Windowsreg Mac OSreg Linuxreg) todevelop applications for Microchip microcontrollers and digital signal controllers It is called an IntegratedDevelopment Environment (IDE) because it provides a single integrated ldquoenvironmentrdquo to develop code forembedded microcontrollers

bull Atmel Studio - Free IDE for the development of CC++ and assembler code for microcontrollersbull IAR Embedded Workbenchreg for AVRreg - This is a commercial CC++ compiler that is available for AVR

microcontrollers There is a 30-day evaluation version as well as a 4 KB code-size-limited kick-start versionavailable from their website

bull MPLABreg XC Compilers - MPLABreg XC8 C Compiler is available as a free unrestricted-use downloadMicrochips MPLABreg XC8 C Compiler is a comprehensive solution for your projectrsquos software development onWindowsreg macOSreg or Linuxreg MPLABreg XC8 supports all 8-bit PICreg and AVRreg microcontrollers (MCUs)

bull MPLABreg Code Configurator - MPLAB Code Configurator (MCC) is a free software plug-in that provides agraphical interface to configure peripherals and functions specific to your application

bull Atmel START - Atmel START is an online tool that hosts code examples helps the user to select and configuresoftware components and tailor your embedded application in a usable and optimized manner

bull Microchip Sample Store - Microchip sample store where you can order samples of devicesbull MPLAB Data Visualizer - MPLAB Data Visualizer is a program used for processing and visualizing data The

Data Visualizer can receive data from various sources such as serial ports and on-board debuggerrsquos DataGateway Interface as found on Curiosity Nano and Xplained Pro boards

bull Studio Data Visualizer - Studio Data Visualizer is a program used for processing and visualizing data TheData Visualizer can receive data from various sources such as serial ports on-board debuggerrsquos Data GatewayInterface as found on Curiosity Nano and Xplained Pro boards and power data from the Power Debugger

bull Microchip PICreg and AVRreg Examples - Microchip PIC and AVR Device Examples is a collection of examplesand labs that use Microchip development boards to showcase the use of PIC and AVR device peripherals

bull Microchip PICreg and AVRreg Solutions - Microchip PIC and AVR Device Solutions contains completeapplications for use with Microchip development boards ready to be adapted and extended

bull AVR128DB48 Curiosity Nano website - Kit information latest user guide and design documentationbull AVR128DB48 Curiosity Nano on Microchip Direct - Purchase this kit on Microchip Direct

AVR128DB48 Curiosity NanoGetting Started

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 6

3 Preprogrammed ApplicationThe AVR128DB48 mounted on the Curiosity Nano Evaluation Kit is preprogrammed with an application ready toutilize the integrated operational amplifiers

To get started with the application you can find the user guide code and hex files for this application available onlineon GitHub

bull MPLAB Xreg IDEbull Atmel Studio 7

AVR128DB48 Curiosity NanoPreprogrammed Application

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 7

4 Curiosity NanoCuriosity Nano is an evaluation platform of small boards with access to most of the microcontrollers IOs Theplatform consists of a series of low pin count microcontroller (MCU) boards with on-board debuggers which areintegrated with MPLABreg X IDE and Atmel Studio 7 Each board is identified in the IDE When plugged in a KitWindow is displayed with links to key documentation including relevant user guides application notes data sheetsand example code Everything is easy to find The on-board debugger features a virtual serial port (CDC) for serialcommunication to a host PC and a Data Gateway Interface (DGI) with debug GPIO pin(s)

41 On-Board Debugger OverviewAVR128DB48 Curiosity Nano contains an on-board debugger for programming and debugging The on-boarddebugger is a composite USB device consisting of several interfaces

bull A debugger that can program and debug the AVR128DB48 in both MPLABreg X IDE and Atmel Studio 7bull A mass storage device that allows drag-and-drop programming of the AVR128DB48bull A virtual serial port (CDC) that is connected to a Universal Asynchronous ReceiverTransmitter (UART) on the

AVR128DB48 and provides an easy way to communicate with the target application through terminal softwarebull A Data Gateway Interface (DGI) for code instrumentation with logic analyzer channels (debug GPIO) to visualize

program flow

The on-board debugger controls a Power and Status LED (marked PS) on the AVR128DB48 Curiosity Nano BoardThe table below shows how the LED is controlled in different operation modes

Table 4-1 On-Board Debugger LED Control

Operation Mode Power and Status LED

Boot Loader mode The LED blinks slowly during power-up

Power-up The LED is ON

Normal operation The LED is ON

Programming Activity indicator The LED blinks slowly during programmingdebugging

Drag-and-dropprogramming Success The LED blinks slowly for 2 sec

Failure The LED blinks rapidly for 2 sec

Fault The LED blinks rapidly if a power fault is detected

SleepOff The LED is OFF The on-board debugger is either in a sleep mode or powered downThis can occur if the board is externally powered

Info  Slow blinking is approximately 1 Hz and rapid blinking is approximately 5 Hz

411 DebuggerThe on-board debugger on the AVR128DB48 Curiosity Nano Board appears as a Human Interface Device (HID) onthe host computerrsquos USB subsystem The debugger supports full-featured programming and debugging of theAVR128DB48 using both MPLABreg X IDE and Atmel Studio 7 as well as some third-party IDEs

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 8

Remember  Keep the debuggerrsquos firmware up-to-date Firmware upgrades are done automatically whenusing MPLABreg X IDE or Atmel Studio 7

412 Virtual Serial Port (CDC)The virtual serial port (CDC) is a general purpose serial bridge between a host PC and a target device

4121 OverviewThe on-board debugger implements a composite USB device that includes a standard Communications Device Class(CDC) interface which appears on the host as a virtual serial port The CDC can be used to stream arbitrary data inboth directions between the host computer and the target All characters sent through the virtual serial port on thehost computer will be transmitted as UART on the debuggerrsquos CDC TX pin and UART characters captured on thedebuggerrsquos CDC RX pin will be returned to the host computer through the virtual serial port

Figure 4-1 CDC Connection

Target MCU

UART TX

UART RX

Debugger

USBCDC RX

CDC TX

PCTerminalSoftware

TargetReceive

TargetSend

TerminalReceive

TerminalSend

Info  As shown in Figure 4-1 the debuggerrsquos CDC TX pin is connected to a UART RX pin on the targetfor receiving characters from the host computer Similarly the debuggerrsquos CDC RX pin is connected to aUART TX pin on the target for transmitting characters to the host computer

4122 Operating System SupportOn Windows machines the CDC will enumerate as Curiosity Virtual COM Port and appear in the Ports section of theWindows Device Manager The COM port number can also be found there

Info  On older Windows systems a USB driver is required for CDC This driver is included in installationsof both MPLABreg X IDE and Atmel Studio 7

On Linux machines the CDC will enumerate and appear as devttyACM

Info  tty devices belong to the ldquodialoutrdquo group in Linux so it may be necessary to become a member ofthat group to have permissions to access the CDC

On MAC machines the CDC will enumerate and appear as devttyusbmodem Depending on which terminalprogram is used it will appear in the available list of modems as usbmodem

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 9

Info  For all operating systems Be sure to use a terminal emulator that supports DTR signaling See 4124 Signaling

4123 LimitationsNot all UART features are implemented in the on-board debugger CDC The constraints are outlined here

bull Baud rate Must be in the range of 1200 bps to 500 kbps Any baud rate outside this range will be set to theclosest limit without warning Baud rate can be changed on-the-fly

bull Character format Only 8-bit characters are supportedbull Parity Can be odd even or nonebull Hardware flow control Not supportedbull Stop bits One or two bits are supported

4124 SignalingDuring USB enumeration the host OS will start both communication and data pipes of the CDC interface At thispoint it is possible to set and read back the baud rate and other UART parameters of the CDC but data sending andreceiving will not be enabled

When a terminal connects on the host it must assert the DTR signal As this is a virtual control signal implementedon the USB interface it is not physically present on the board Asserting the DTR signal from the host will indicate tothe on-board debugger that a CDC session is active The debugger will then enable its level shifters (if available) andstart the CDC data send and receive mechanisms

Deasserting DTR in debugger firmware version 120 or earlier has the following behaviorbull Debugger UART receiver is disabled so no further data will be transferred to the host computerbull Debugger UART transmitter will continue to send data that is queued for sending but no new data is accepted

from the host computerbull Level shifters (if available) are not disabled so the debugger CDC TX line remains driven

Deasserting DTR in debugger firmware version 121 or later has the following behaviorbull Debugger UART receiver is disabled so no further data will be transferred to the host computerbull Debugger UART transmitter will continue to send data that is queued for sending but no new data is accepted

from the host computerbull Once the ongoing transmission is complete level shifters (if available) are disabled so the debugger CDC TX

line will become high-impedance

Remember  Set up the terminal emulator to assert the DTR signal Without the signal the on-boarddebugger will not send or receive any data through its UART

Tip  The on-board debuggerrsquos CDC TX pin will not be driven until the CDC interface is enabled by thehost computer Also there are no external pull-up resistors on the CDC lines connecting the debugger andthe target which means that during power-up these lines are floating To avoid any glitches resulting inunpredictable behavior like framing errors the target device should enable the internal pull-up resistor onthe pin connected to the debuggerrsquos CDC TX pin

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 10

4125 Advanced Use

CDC Override ModeIn normal operation the on-board debugger is a true UART bridge between the host and the device However incertain use cases the on-board debugger can override the basic operating mode and use the CDC TX and RX pinsfor other purposes

Dropping a text file into the on-board debuggerrsquos mass storage drive can be used to send characters out of thedebuggerrsquos CDC TX pin The filename and extension are trivial but the text file must start with the charactersCMDSEND_UART=

Debugger firmware version 120 or earlier has the following limitationsbull The maximum message length is 50 characters ndash all remaining data in the frame are ignoredbull The default baud rate used in this mode is 9600 bps but if the CDC is already active or has been configured

the previously used baud rate still applies

Debugger firmware version 121 and later has the following limitationsfeaturesbull The maximum message length may vary depending on the MSCSCSI layer timeouts on the host computer

andor operating system A single SCSI frame of 512 bytes (498 characters of payload) is guaranteed and filesof up to 4 KB will work on most systems The transfer will complete on the first NULL character encountered inthe file

bull The baud rate used is always 9600 bps for the default commandCMDSEND_UART=

The CDC Override Mode should not be used simultaneously with data transfer over CDCterminal If a CDCterminal session is active at the time a file is received via CDC Override Mode it will be suspended for theduration of the operation and resumed once complete

bull Additional commands are supported with explicit baud ratesCMDSEND_9600=

CMDSEND_115200=

CMDSEND_460800=

USB-Level Framing ConsiderationsSending data from the host to the CDC can be done byte-wise or in blocks which will be chunked into 64-byte USBframes Each such frame will be queued up for sending to the debuggerrsquos CDC TX pin Transferring a small amountof data per frame can be inefficient particularly at low baud rates as the on-board debugger buffers frames and notbytes A maximum of four 64-byte frames can be active at any time The on-board debugger will throttle the incomingframes accordingly Sending full 64-byte frames containing data is the most efficient method

When receiving data on the debuggerrsquos CDC RX pin the on-board debugger will queue up the incoming bytes into64-byte frames which are sent to the USB queue for transmission to the host when they are full Incomplete framesare also pushed to the USB queue at approximately 100 ms intervals triggered by USB start-of-frame tokens Up toeight 64-byte frames can be active at any time

If the host (or the software running on it) fails to receive data fast enough an overrun will occur When this happensthe last-filled buffer frame will be recycled instead of being sent to the USB queue and a full frame of data will belost To prevent this occurrence the user must ensure that the CDC data pipe is being read continuously or theincoming data rate must be reduced

413 Mass Storage DeviceThe on-board debugger includes a simple Mass Storage Device implementation which is accessible for readwriteoperations via the host operating system to which it is connected

It providesbull Read access to basic text and HTML files for detailed kit information and support

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 11

bull Write access for programming Intelreg HEX formatted files into the target devicersquos memorybull Write access for simple text files for utility purposes

4131 Mass Storage Device ImplementationThe on-board debugger implements a highly optimized variant of the FAT12 file system that has several limitationspartly due to the nature of FAT12 itself and optimizations made to fulfill its purpose for its embedded application

The Curiosity Nano USB device is USB Chapter 9-compliant as a mass storage device but does not in any way fulfillthe expectations of a general purpose mass storage device This behavior is intentional

When using the Windows operating system the on-board debugger enumerates as a Curiosity Nano USB Devicethat can be found in the disk drives section of the device manager The CURIOSITY drive appears in the file managerand claims the next available drive letter in the system

The CURIOSITY drive contains approximately one MB of free space This does not reflect the size of the targetdevicersquos Flash in any way When programming an Intelreg HEX file the binary data are encoded in ASCII withmetadata providing a large overhead so one MB is a trivially chosen value for disk size

It is not possible to format the CURIOSITY drive When programming a file to the target the filename may appear inthe disk directory listing This is merely the operating systemrsquos view of the directory which in reality has not beenupdated It is not possible to read out the file contents Removing and replugging the board will return the file systemto its original state but the target will still contain the application that has been previously programmed

To erase the target device copy a text file starting with ldquoCMDERASErdquo onto the disk

By default the CURIOSITY drive contains several read-only files for generating icons as well as reporting status andlinking to further information

bull AUTORUNICO ndash icon file for the Microchip logobull AUTORUNINF ndash system file required for Windows Explorer to show the icon filebull KIT-INFOHTM ndash redirect to the development board websitebull KIT-INFOTXT ndash a text file containing details about the boardrsquos debugger firmware version board name USB

serial number device and drag-and-drop supportbull STATUSTXT ndash a text file containing the programming status of the board

Info  STATUSTXT is dynamically updated by the on-board debugger The contents may be cached bythe OS and therefore do not reflect the correct status

4132 Limitations of Drag-and-Drop Programming

Lock BitsLock bits included in the hex file will be ignored when using drag-and-drop programming To program lock bits useMPLABreg X IDE or Atmel Studio 7

Enabling CRC Check in FusesIt is not advisable to enable the CRC check in the target devicersquos fuses when using drag-and-drop programming Thisis because a subsequent chip erase (which does not affect fuse bits) will effect a CRC mismatch and the applicationwill fail to boot To recover a target from this state a chip erase must be done using MPLABreg X IDE orAtmel Studio 7 which will automatically clear the CRC fuses after erasing

4133 Special CommandsSeveral utility commands are supported by copying text files to the mass storage disk The filename or extension isirrelevant ndash the command handler reacts to content only

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 12

Table 4-2 Special File Commands

Command Content Description

CMDERASE Executes a chip erase of the target

CMDSEND_UART= Sends a string of characters to the CDC UART See ldquoCDCOverride Moderdquo

CMDSEND_9600=CMDSEND_115200=CMDSEND_460800=

Sends a string of characters to the CDC UART at the baud ratespecified Note that only the baud rates explicitly specified hereare supported See ldquoCDC Override Moderdquo (Debugger firmwarev121 or newer)

CMDRESET Resets the target device by entering Programming mode andthen exiting Programming mode immediately thereafter Exacttiming can vary according to the programming interface of thetarget device (Debugger firmware v116 or newer)

CMDPOWERTOGGLE Powers down the target and restores power after a 100 msdelay If external power is provided this has no effect(Debugger firmware v116 or newer)

CMD0V Powers down the target device by disabling the target supplyregulator If external power is provided this has no effect(Debugger firmware v116 or newer)

CMD1V8 Sets the target voltage to 18V If external power is providedthis has no effect (Debugger firmware v121 or newer)

CMD3V3 Sets the target voltage to 33V If external power is providedthis has no effect (Debugger firmware v116 or newer)

CMD5V0 Sets the target voltage to 50V If external power is providedthis has no effect (Debugger firmware v116 or newer)

Info  The commands listed here are triggered by the content being sent to the mass storage emulateddisk and no feedback is provided in the case of either success or failure

414 Data Gateway Interface (DGI)Data Gateway Interface (DGI) is a USB interface for transporting raw and timestamped data between on-boarddebuggers and host computer-based visualization tools MPLAB Data Visualizer is used on the host computer todisplay debug GPIO data It is available as a plug-in for MPLABreg X IDE or a stand-alone application that can be usedin parallel with MPLABreg X IDE or Atmel Studio 7

Although DGI encompasses several physical data interfaces the AVR128DB48 Curiosity Nano implementationincludes logic analyzer channels

bull Two debug GPIO channels (also known as DGI GPIO)

4141 Debug GPIODebug GPIO channels are timestamped digital signal lines connecting the target application to a host computervisualization application They are typically used to plot the occurrence of low-frequency events on a time-axis ndash forexample when certain application state transitions occur

The figure below shows the monitoring of the digital state of a mechanical switch connected to a debug GPIO inMPLAB Data Visualizer

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 13

Figure 4-2 Monitoring Debug GPIO with MPLABreg Data Visualizer

Debug GPIO channels are timestamped so the resolution of DGI GPIO events is determined by the resolution of theDGI timestamp module

Important  Although bursts of higher-frequency signals can be captured the useful frequency range ofsignals for which debug GPIO can be used is up to about 2 kHz Attempting to capture signals above thisfrequency will result in data saturation and overflow which may cause the DGI session to be aborted

4142 TimestampingDGI sources are timestamped as they are captured by the debugger The timestamp counter implemented in theCuriosity Nano debugger increments at 2 MHz frequency providing a timestamp resolution of a half microsecond

42 Curiosity Nano Standard PinoutThe 12 edge connections closest to the USB connector on Curiosity Nano boards have a standardized pinout Theprogramdebug pins have different functions depending on the target programming interface as shown in the tableand figure below

Table 4-3 Curiosity Nano Standard Pinout

Debugger Signal Target MCU Description

ID mdash ID line for extensions

CDC TX UART RX USB CDC TX line

CDC RX UART TX USB CDC RX line

DBG0 UPDI Debug data line

DBG1 GPIO1 debug GPIO1

DBG2 GPIO0 debug GPIO0

DBG3 RESET Reset line

NC mdash No connect

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 14

continuedDebugger Signal Target MCU Description

VBUS mdash VBUS voltage for external use

VOFF mdash Voltage Off input Disables the target regulator andtarget voltage when pulled low

VTG mdash Target voltage

GND mdash Common ground

Figure 4-3 Curiosity Nano Standard Pinout

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

43 Power SupplyThe board is powered through the USB port and contains two LDO regulators one to generate 33V for the on-boarddebugger and an adjustable LDO regulator for the target microcontroller AVR128DB48 and its peripherals Thevoltage from the USB connector can vary between 44V to 525V (according to the USB specification) and will limitthe maximum voltage to the target The figure below shows the entire power supply system on AVR128DB48Curiosity Nano

Figure 4-4 Power Supply Block Diagram

USBTarget MCU

Power source

Cut strap

Power consumer P3V3DEBUGGER

Power converter

DEBUGGERRegulator

VUSB

TargetRegulator

Power Supply strap

Adjust

Level shifter

VLVLVREG

IO IO GPIOstraps

IO

OnOffMeasure OnOff

ID systemVOFF

PTC Fuse

Power protection

VBUS

Target Power strap

VTG

431 Target RegulatorThe target voltage regulator is a MIC5353 variable output LDO The on-board debugger can adjust the voltage outputsupplied to the board target section by manipulating the MIC5353rsquos feedback voltage The hardware implementation

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 15

is limited to an approximate voltage range from 17V to 51V Additional output voltage limits are configured in thedebugger firmware to ensure that the output voltage never exceeds the hardware limits of the AVR128DB48microcontroller The voltage limits configured in the on-board debugger on AVR128DB48 Curiosity Nano are 18ndash55V

Info  The target voltage is set to 33V when the board is manufactured It can be changed throughMPLABreg X IDE project properties and in the Atmel Studio 7 device programming dialog Any change tothe target voltage is persistent even after a power toggle The resolution is less than 5 mV but may belimited to 10 mV by the adjustment program

Info  Voltage settings that are set up in MPLABreg X IDE are not immediately applied to the board Thenew voltage setting is applied to the board when the debugger is accessed in any way like pushing theRefresh Debug Tool Status button in the project dashboard tab or programmingreading program memory

Info  There is a simple option to adjust the target voltage with a drag-and-drop command text file to theboard This supports a set of common target voltages See section 4133 Special Commands for furtherdetails

The MIC5353 supports a maximum current load of 500 mA It is an LDO regulator in a small package placed on asmall printed circuit board (PCB) and the thermal shutdown condition can be reached at lower loads than 500 mAThe maximum current load depends on the input voltage the selected output voltage and the ambient temperatureThe figure below shows the safe operating area for the regulator with an input voltage of 51V and an ambienttemperature of 23degC

Figure 4-5 Target Regulator Safe Operation Area

The voltage output of the target regulator is continuously monitored (measured) by the on-board debugger If it ismore than 100 mV overunder the voltage setting value an error condition will be flagged and the target voltageregulator will be turned off This will detect and handle any short-circuit conditions It will also detect and handle if anexternal voltage which causes VCC_TARGET to move outside of the voltage setting monitoring window of plusmn100 mVis suddenly applied to the VTG pin without setting the VOFF pin low

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 16

Info  If the external voltage is lower than the monitoring window lower limit (target voltage setting ndash 100mV) the on-board debugger status LED will blink rapidly If the external voltage is higher than themonitoring window upper limit (target voltage setting + 100 mV) the on-board debugger status LED willcontinue to shine If the external voltage is removed the status LED will start to blink rapidly until the on-board debugger detects the new situation and turns the target voltage regulator back on

432 External SupplyAVR128DB48 Curiosity Nano can be powered by an external voltage instead of the on-board target regulator Whenthe Voltage Off (VOFF) pin is shorted to ground (GND) the on-board debugger firmware disables the target regulatorand it is safe to apply an external voltage to the VTG pin

It is also safe to apply an external voltage to the VTG pin when no USB cable is plugged into the DEBUG connectoron the board

The VOFF pin can be tied lowlet go at any time This will be detected by a pin-change interrupt to the on-boarddebugger which controls the target voltage regulator accordingly

WARNINGApplying an external voltage to the VTG pin without shorting VOFF to GND may cause permanent damageto the board

WARNINGDo not apply any voltage to the VOFF pin Let the pin float to enable the power supply

WARNINGAbsolute maximum external voltage is 55V for the on-board level shifters and the standard operatingcondition of the AVR128DB48 is 18ndash55V Applying a higher voltage may cause permanent damage to theboard

Info  If an external voltage is applied without pulling the VOFF pin low and an external supply pulls thevoltage lower than the monitoring windowrsquos lower limit (target voltage setting - 100 mV) the on-boarddebugger status LED will blink rapidly and shut the on-board regulator off If an external voltage issuddenly removed when the VOFF pin is not pulled low the status LED will start to blink rapidly until theon-board debugger detects the new situation and switches the target voltage regulator back on

Programming debugging and data streaming is still possible with an external power supply ndash the debugger andsignal level shifters will be powered from the USB cable Both regulators the debugger and the level shifters arepowered down when the USB cable is removed

Info  In addition to the power consumed by the AVR128DB48 and its peripherals approximately 100 microAwill be drawn from any external power source to power the on-board level shifters and voltage monitorcircuitry when a USB cable is plugged in the DEBUG connector on the board When a USB cable is notplugged in some current is used to supply the level shifters voltage pins which have a worst-case currentconsumption of approximately 5 microA Typical values may be as low as 100 nA

433 VBUS Output PinAVR128DB48 Curiosity Nano has a VBUS output pin that can be used to power external components that need a 5Vsupply The VBUS output pin has a PTC fuse to protect the USB against short circuits A side effect of the PTC fuseis a voltage drop on the VBUS output with higher current loads The chart below shows the voltage versus the currentload of the VBUS output

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 17

Figure 4-6 VBUS Output Voltage vs Current

434 Power Supply ExceptionsThis is a summary of most exceptions that can occur with the power supply

Target Voltage Shuts DownThis can happen if the target section draws too much current at a given voltage This will cause the thermal shutdownsafety feature of the MIC5353 regulator to kick in To avoid this reduce the current load of the target section

Target Voltage Setting is Not ReachedThe maximum output voltage is limited by the USB input voltage (specified to be 44-525V) and the voltage dropover the MIC5353 regulator at a given voltage setting and current consumption If a higher output voltage is neededuse a USB power source that can provide a higher input voltage or use an external voltage supply on the VTG pin

Target Voltage is Different From SettingThis can be caused by an externally applied voltage to the VTG pin without setting the VOFF pin low If the targetvoltage differs more than 100 mV overunder the voltage setting it will be detected by the on-board debugger andthe internal voltage regulator will be shut down To fix this issue remove the applied voltage from the VTG pin andthe on-board debugger will enable the on-board voltage regulator when the new condition is detected Note that thePS LED will be blinking rapidly if the target voltage is below 100 mV of the setting but will be lit normally when it ishigher than 100 mV above the setting

No Or Very Low Target Voltage and PS LED is Blinking RapidlyThis can be caused by a full or partial short-circuit and is a special case of the issue mentioned above Remove theshort-circuit and the on-board debugger will re-enable the on-board target voltage regulator

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 18

No Target Voltage and PS LED is Lit 1This occurs if the target voltage is set to 00V To fix this set the target voltage to a value within the specified voltagerange for the target device

No Target Voltage and PS LED is Lit 2This can be the issue if power jumper J100 andor J101 is cut and the target voltage regulator is set to a value withinthe specified voltage range for the target device To fix this solder a wirebridge between the pads for J100J101 oradd a jumper on J101 if a pin header is mounted

VBUS Output Voltage is Low or Not PresentThis is most lightly caused by a high-current drain on VBUS and the protection fuse (PTC) will reduce the current orcut off completely Reduce the current consumption on the VBUS pin to fix this issue

44 Low-Power MeasurementPower to the AVR128DB48 is connected from the on-board power supply and VTG pin through a 100 mil pin headermarked with ldquoPOWERrdquo in silkscreen (J101) To measure the power consumption of the AVR128DB48 and otherperipherals connected to the board cut the Target Power strap and connect an ammeter over the strap

To measure the lowest possible power consumption follow these steps1 Cut the POWER strap with a sharp tool2 Solder a 1x2 100 mil pin header in the footprint3 Connect an ammeter to the pin header4 Write firmware that

41 Tri-states any IO connected to the on-board debugger42 Sets the microcontroller in its lowest power Sleep state

5 Program the firmware into the AVR128DB48

Figure 4-7 Target Power Strap

Target Power strap (top side)

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 19

Tip  A 100-mil pin header can be soldered into the Target Power strap (J101) footprint for easyconnection of an ammeter Once the ammeter is no longer needed place a jumper cap on the pin header

Info  The on-board level shifters will draw a small amount of current even when they are not in use Amaximum of 2 microA can be drawn from each IO pin connected to a level shifter for a total of 10 microA Keepany IO pin connected to a level shifter in tri-state to prevent leakage All IOs connected to the on-boarddebugger are listed in 5251 On-Board Debugger Connections To prevent any leakage to the on-boardlevel shifters they can be disconnected completely as described in 84 Disconnecting the On-boardDebugger

45 Programming External MicrocontrollersThe on-board debugger on AVR128DB48 Curiosity Nano can be used to program and debug microcontrollers onexternal hardware

451 Supported DevicesAll external AVR microcontrollers with the UPDI interface can be programmed and debugged with the on-boarddebugger with Atmel Studio

External SAM microcontrollers that have a Curiosity Nano Board can be programmed and debugged with the on-board debugger with Atmel Studio

AVR128DB48 Curiosity Nano can program and debug external AVR128DB48 microcontrollers with MPLAB X IDE

452 Software ConfigurationNo software configuration is required to program and debug the same device that is mounted on the board

To program and debug a different microcontroller than what is mounted on the board Atmel Studio must beconfigured to allow free selection of devices and programming interfaces

1 Navigate to Tools gt Options through the menu system at the top of the application2 Select the Tools gt Tool settings category in the options window3 Set the Hide unsupported devices option to False

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 20

Figure 4-8 Hide Unsupported Devices

Info  Atmel Studio allows any microcontroller and interface to be selected when Hide unsupporteddevices is set to False also microcontrollers and interfaces which are not supported by the on-boarddebugger

453 Hardware ModificationsThe on-board debugger is connected to the AVR128DB48 by default These connections must be removed beforeany external microcontroller can be programmed or debugged Cut the GPIO straps shown in the figure below with asharp tool to disconnect the AVR128DB48 from the on-board debugger

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 21

Figure 4-9 Programming and Debugging Connections to Debugger

GPIO straps (bottom side)

Info  Cutting the connections to the debugger will disable programming debugging and data streamingfrom the AVR128DB48 mounted on the board

Tip  Solder in 0Ω resistors across the footprints or short-circuit them with solder to reconnect the signalsbetween the on-board debugger and the AVR128DB48

454 Connecting to External MicrocontrollersThe figure and table below show where the programming and debugging signals must be connected to program anddebug external microcontrollers The on-board debugger can supply power to the external hardware or use anexternal voltage as a reference for its level shifters Read more about the power supply in 43 Power Supply

The on-board debugger and level shifters actively drive data and clock signals (DBG0 DBG1 and DBG2) used forprogramming and debugging and in most cases the external resistor on these signals can be ignored Pull-downresistors are required on the ICSPtrade data and clock signals to debug PICreg microcontrollers

DBG3 is an open-drain connection and requires a pull-up resistor to function

AVR128DB48 Curiosity Nano has a pull-up resistor R200 connected to its RESET signal (DBG3) The location ofthe pull-up resistor is shown in the 82 Assembly Drawing in the appendix

Remember bull Connect GND and VTG to the external microcontrollerbull Tie the VOFF pin to GND if the external hardware has its own power supplybull Make sure there are pull-down resistors on the ICSP data and clock signals (DBG0 and DBG1) to

support the debugging of PIC microcontrollers

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 22

Figure 4-10 Curiosity Nano Standard Pinout

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

Table 4-4 Programming and Debugging Interfaces

Curiosity Nano Pin UPDI ICSPtrade SWD

DBG0 UPDI DATA SWDIO

DBG1 mdash CLK SWCLK

DBG2 mdash mdash mdash

DBG3 mdash MCLR RESET

46 Connecting External DebuggersEven though there is an on-board debugger external debuggers can be connected directly to the AVR128DB48Curiosity Nano to programdebug the AVR128DB48 The on-board debugger keeps all the pins connected to theAVR128DB48 and board edge in tri-state when not actively used Therefore the on-board debugger will not interferewith any external debug tools

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 23

Figure 4-11 Connecting the MPLABreg PICkittrade 4 In-Circuit DebuggerProgrammer to AVR128DB48 CuriosityNano

2345678 1

VDD

GroundDATA

2 = VDD

3 = Ground

4 = PGD

5 = Unused

6 = Unused

7 = Unused

8 = Unused

1 = Unused

MPLABreg PICkittrade 4

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 24

Figure 4-12 Connecting the Atmel-ICE to AVR128DB48 Curiosity Nano

VDD

Ground

DATA

AVRregSAM

3 = UPDI

4 = VTG

5 = Unused

6 = Unused

7 = Unused

8 = Unused

1 = Unused

2 = GND

9 = Unused

10 = Unused

Atmel-ICE

21 9

10

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

CAUTIONTo avoid contention between the external debugger and the on-board debugger do not start anyprogrammingdebug operation with the on-board debugger through MPLABreg X IDE or Atmel Studio 7 ormass storage programming while the external tool is active

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 25

5 Hardware User Guide

51 Connectors

511 AVR128DB48 Curiosity Nano PinoutAll the AVR128DB48 IO pins are accessible at the edge connectors on the board The image below shows the boardpinout For all available functions on each pin refer to the IO Multiplexing and Considerations section in theAVR128DB48 data sheet

Figure 5-1 AVR128DB48 Curiosity Nano Pinout

USB

DEBUGGER

AVR128DB48

SW0

LED0

PS LEDNC

NC

IDID

CDC RX

CD

CR

XUSART3 TXPB0

CDC TX

CD

CT

XUSART3 RXPB1

DBG1

DB

G1PB3LED0

DBG2

DB

G2PB2SW0

PF4

PF

4USART2 TX

PF5

PF

5USART2 RX

PA2

PA

2TWI0 SDA

PA3

PA

3TWI0 SCL

PA4

PA

4SPI0 MOSI

PA5

PA

5SPI0 MISO

PA6

PA

6SPI0 SCK

PA7

PA

7SPI0 SS

GND

GN

D

PB0

PB

0USART3 TXCDC RX

PB1

PB

1USART3 RXCDC TX

PF2

PF

2

PF3

PF

3

PC0

PC

0

PC1

PC

1

PC2

PC

2

PC3

PC

3

GND

GN

D

(PA0)

(PA

0)XTALHF1

(PA1)

(PA

1)XTALHF2

PB2

PB

2SW0

PB3

PB

3LED0

VBUS

VB

US

VOFF

VO

FF

DBG3

DB

G3 PF6

DBG0

DB

G0 UPDI

GND

GN

D

VTG

VT

G

PD6

PD

6 AIN6

PD3

PD

3 AIN3 OP0 INN

PD2

PD

2 AIN2 OP0 OUT TCA0 WO2

PD1

PD

1 AIN1 OP0 INP TCA0 WO1

PD0

PD

0 AIN0 TCA0 WO0

PD7

PD

7 AIN7 OP1 INN

PD5

PD

5 AIN5 OP1 OUT

PD4

PD

4 AIN4 OP1 INP

GND

GN

D

PE3

PE

3 OP2 INN

PE2

PE

2 OP2 OUT

PE1

PE

1 OP2 INP

PE0

PE

0

PC7

PC

7

PC6

PC

6

PC5

PC

5

PC4

PC

4

GND

GN

D

PB5

PB

5

PB4

PB

4

(PF1)

(PF

1) XTAL32K2

(PF0)

(PF

0) XTAL32K1

DEBUGGERAVR128DB48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

MVIO

OPAMP

Shared pin

AVR128DB48Curiosity Nano

512 Using Pin HeadersThe edge connector footprint on AVR128DB48 Curiosity Nano has a staggered design where each hole is shifted 8mil (~02 mm) off-center The hole shift allows the use of regular 100 mil pin headers on the board without solderingOnce the pin headers are firmly in place they can be used in normal applications like pin sockets and prototypingboards without any issues

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 26

Figure 5-2 Attaching Pin-Headers to the Curiostiy Nano Board

Figure 5-3 Connecting to Curiosity Nano Base for Click boardstrade

Tip  Start at one end of the pin header and gradually insert the header along the length of the boardOnce all the pins are in place use a flat surface to push them in

Tip  For applications where the pin headers will be used permanently it is still recommended to solderthem in place

Important  Once the pin headers are in place they are hard to remove by hand Use a set of pliers andcarefully remove the pin headers to avoid damage to the pin headers and PCB

513 Multi-Voltage IO

The AVR128DB48 Curiosity Nano MCU has support for Multi-Voltage IO (MVIO) AVR128DB48 MVIO pins areconnected to the edge connector at PC0-PC7 MVIO pins are capable of regular IO-pin behavior

MVIO can be configured in one of two supply modesbull Single-Supply mode All IO pins including MVIO-capable pins are powered by VCC_TARGET By default

VCC_TARGET is connected to VDDIO2 through a 0-ohm resistor (R204)bull Dual-Supply mode MVIO-capable pins are powered by an external power supply connected to VDDIO2 Non-

MVIO pins are powered by VCC_TARGET

Dual-Supply mode allows MVIO-pins to be powered at different voltages than pins powered from VCC_TARGET

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 27

WARNINGThe absolute maximum external voltage range for the AVR128DB48 is 18ndash55V Applying a higher voltagemay cause permanent damage to the board

By default AVR128DB48 Curiosity Nano board is configured for single-supply mode To use Dual-Supply mode somehardware modifications are required

WARNINGBefore any hardware modifications are done make sure the board is disconnected from USB or externalpower

bull Disconnect resistor R204 connecting VDDIO2 to VCC_TARGETbull Connect a new power supply to VDDIO2 and ground at J212bull J212 does not have reverse polarity protection Make sure to match polarity between the power supply and

J212 Positive-polarity to J212-pin 1 and negative-polarity to J212-pin 2

The resistor R204 VDDIO2 and J212 can be seen in Figure 5-4

Figure 5-4 MVIO and VDDIO2 Connections

J212 R204

WARNINGApplying an external voltage to VDDIO2 pin without removing resistor R204 may cause permanentdamage to the board

WARNINGJ212 does not have reverse polarity protection Applying voltage to the wrong pin may cause permanentdamage to the board

514 Operational AmplifiersAVR128DB48 features three internal operational amplifiers with a flexible connection scheme using analogmultiplexers and resistor ladders This allows a large number of analog signal conditioning configurations manyrequiring no external components

Table 5-1 OPAMP Pin Connections

OPAMP Poisitive Input (INP) Negative Input (INN) Output (OUT)

OP0 PD1 PD3 PD2

OP1 PD4 PD7 PD5

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 28

continuedOPAMP Poisitive Input (INP) Negative Input (INN) Output (OUT)

OP2 PE1 PE3 PE2

For information about OPAMP on the edge connector and any shared functionality see 511 AVR128DB48 CuriosityNano Pinout

52 Peripherals

521 LEDThere is one yellow user LED available on the AVR128DB48 Curiosity Nano board that can be controlled by eitherGPIO or PWM The LED can be activated by driving the connected IO line to GND

Table 5-2 LED Connection

AVR128DB48 Pin Function Shared Functionality

PB3 Yellow LED0 Edge connector On-board debugger

522 Mechanical SwitchThe AVR128DB48 Curiosity Nano board has one mechanical switch This is a generic user-configurable switchWhen the switch is pressed it will drive the IO line to ground (GND)

Tip  There is no externally connected pull-up resistor on the switch To use the switch make sure that aninternal pull-up resistor is enabled on pin PB2

Table 5-3 Mechanical Switch

AVR128DB48 Pin Description Shared Functionality

PB2 User switch (SW0) Edge connector On-board debugger

523 32768 kHz Crystal

On the AVR128DB48 Curiosity Nano board is a mounted 32768 kHz crystal of type VMK3-9001-32K7680000 thecrystal is accurate to within 20 ppm Using the External 32768 kHz Crystal Oscillator (XOSC32K) module inAVR128DB48 with the mounted 32768 kHz crystal generates a clock signal that is significantly more accurate thanthe Internal 32768 kHz Ultra Low-Power Oscillator (OSC32K) module can generate alone With the Auto-Tunefeature the 32768 kHz can be used as a reference to improve the accuracy of the internal oscillator This is an idealreference clock for the Real-Time Counter module in AVR128DB48

The 32768 kHz crystal is connected to AVR128DB48 on PF0 and PF1 which are also routed to the edge connectorthrough two solder points PF0 and PF1 are disconnected from the edge connector by default to reduce the chanceof an external signal causing contention with the crystal and to remove excessive capacitance on the lines

Next to the 32768 kHz crystal is a cut-strap (J209) which can be used to measure the oscillator safety factor This isdone by cutting the strap and adding a 0402 SMD resistor across the strap More information about oscillatorallowance and safety factor can be found in the AN2648 application note from Microchip

Cut straps and solder points can be seen in Figure 5-5

Table 5-4 32768 kHz Crystal Connections

AVR128DB48 Pin Function Shared Functionality

PF0 XTAL32K1 (Crystal input) Edge connector

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 29

continuedAVR128DB48 Pin Function Shared Functionality

PF1 XTAL32K2 (Crystal output) Edge connector

PA0 and PA1 can be used as GPIO To do so some hardware modifications are required

WARNINGBefore any hardware modifications are done make sure the board is disconnected from the USB orexternal power

bull Disconnect the 32768 kHz crystal by cutting the two straps on the top side of the board next to the crystal(J207 J208) The crystal should be disconnected when using the pin as GPIO as this might harm the crystal

bull Connect the IO lines to the edge connector by placing solder blobs on the circular solder points marked PF0and PF1 on the bottom side of the board (J210 J211)

Figure 5-5 Crystal Connection and Cut Straps

Top side Boom side

J211

J210

J207

J20832768 kHz Crystal

J209

524 1600 MHz Crystal

On the AVR128DB48 Curiosity Nano board is a mounted 1600 MHz crystal of type VXM7-9040-16M0000000 thecrystal is accurate to within 20 ppm Using the External High-Frequency Crystal Oscillator (XOSCHF) module inAVR128DB48 with the mounted 1600 MHz crystal generates a clock signal that is significantly more accurate thanthe Internal High-Frequency Oscillator (OSCHF) module

The 1600 MHz crystal is connected to AVR128DB48 on PA0 and PA1 which are also routed to the edge connectorthrough two solder points PA0 and PA1 are disconnected from the edge connector by default to reduce the chanceof an external signal causing contention with the crystal and to remove excessive capacitance on the lines

Next to the 1600 MHz crystal is a cut-strap (J217) which can be used to measure the oscillator safety factor This isdone by cutting the strap and adding a 0402 SMD resistor across the strap More information about oscillatorallowance and safety factor can be found in the AN2648 application note from Microchip

Cut straps and solder points can be seen in Figure 5-6

Table 5-5 Crystal Connections

AVR128DB48 Pin Function Shared Functionality

PA0 XTALHF1 (Crystal input) Edge connector

PA1 XTALHF2 (Crystal output) Edge connector

PA0 and PA1 can be used as GPIO To do so some hardware modifications are required

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 30

WARNINGBefore any hardware modifications are done make sure the board is disconnected from USB or externalpower

bull Disconnect the 1600 MHz crystal by cutting the two straps on the top side of the board next to the crystal (J215J216) The crystal should be disconnected when using the pin as GPIO as this might harm the crystal

bull Connect the IO lines to the edge connector by placing solder blobs on the circular solder points marked PA0and PA1 on the bottom side of the board (J213 J214)

Figure 5-6 Crystal Connection and Cut Straps

Top side Boom side

J214

J213

J216

J2151600 MHzCrystal

J217

525 On-Board Debugger ImplementationAVR128DB48 Curiosity Nano features an on-board debugger that can be used to program and debug theAVR128DB48 using UPDI The on-board debugger also includes a virtual serial port (CDC) interface over UART anddebug GPIO Both MPLABreg X IDE and Atmel Studio 7 can be used as a front-end for the on-board debugger forprogramming and debugging MPLAB Data Visualizer can be used as a front-end for the CDC and debug GPIO

5251 On-Board Debugger ConnectionsThe table below shows the connections between the target and the debugger section All connections between thetarget and the debugger are tri-stated as long as the debugger is not actively using the interface Hence since thereare little contaminations of the signals the pins can be configured to anything the user wants

For further information on how to use the capabilities of the on-board debugger see 41 On-Board DebuggerOverview

Table 5-6 On-Board Debugger Connections

AVR128DB48Pin

Debugger Pin Function Shared Functionality

PB1 CDC TX UART RX (AVR128DB48 RX line) Edge connector

PB0 CDC RX UART TX (AVR128DB48 TX line) Edge connector

UPDI DBG0 UPDI Edge connector

PB3 DBG1 LED0Debug GPIO1 Edge connector

PB2 DBG2 SW0Debug GPIO0 Edge connector

PF6 DBG3 RESET Edge connector

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 31

6 Hardware Revision History and Known IssuesThis user guide is written to provide information about the latest available revision of the board The followingsections contain information about known issues a revision history of older revisions and how older revisions differfrom the latest revision

61 Identifying Product ID and RevisionThe revision and product identifier of the AVR128DB48 Curiosity Nano Board can be found in two ways Either byutilizing the MPLABreg X IDE or Atmel Studio 7 Kit Window or by looking at the sticker on the bottom side of the PCB

By connecting AVR128DB48 Curiosity Nano to a computer with MPLABreg X IDE or Atmel Studio 7 running the KitWindow will pop up The first six digits of the serial number which is listed under kit information contain the productidentifier and revision

Tip  The Kit Window can be opened in MPLABreg X IDE through the menu bar Window gt Kit Window

The same information can be found on the sticker on the bottom side of the PCB Most boards will have the identifierand revision printed in plain text as A09-nnnnrr where ldquonnnnrdquo is the identifier and ldquorrrdquo is the revision Boards withlimited space have a sticker with only a data matrix code containing the product identifier revision and serialnumber

The serial number string has the following format

nnnnrrssssssssss

n = product identifier

r = revision

s = serial number

The product identifier for AVR128DB48 Curiosity Nano is A09‑3372

62 Revision 3AVR128DB48 silicon revision A5 or later is mounted on this revision of the board

63 Revision 2Revision 2 is the initially released board revision

AVR128DB48 silicon revision A4 is mounted on this revision of the board

AVR128DB48 Curiosity NanoHardware Revision History and Known Issues

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 32

7 Document Revision HistoryDoc Rev Date Comments

A 092020 Initial document release

AVR128DB48 Curiosity NanoDocument Revision History

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 33

8 Appendix

81 SchematicFigure 8-1 AVR128DB48 Curiosity Nano Schematic

11

22

33

44

55

66

77

88

DD

CC

BB

AA

2 of

4

AV

R12

8DB

48 C

uri

osit

y N

ano

240

820

20A

VR

128D

B48

_Cur

iosi

ty_N

ano_

Targ

et_M

CU

Sch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA

Rev

isio

n

File

P

CB

Num

ber

PC

B

Rev

isio

n

Des

ign

ed w

ith

Dra

wn

By

ML

Shee

t Titl

e

Targ

et M

CU

Eng

inee

rA

H

A08

-305

71

Size

A3

A09

-337

22

Page

D

ateA

ltium

com

GN

D

VD

DIO

2

100n

C20

1

GN

D

PA5_

SPI0

_MIS

OPA

6_SP

I0_S

CK

PA7_

SPI0

_SS

PB0_

USA

RT

3_T

XPB

1_U

SAR

T3_

RX

PB2_

SW0_

DB

G2

PB3_

LE

D0_

DB

G1

PB

4P

B5

PC

0P

C1

PC

2

PC3

PC4PC5PC6PC7PD0_AIN0_TCA0_WO0PD1_AIN1_OP0_INP_TCA0_WO1PD2_AIN2_OP0_OUT_TCA0_WO2PD3_AIN3_OP0_INNPD4_AIN4_OP1_INP

PA3_TWI0_SCL

PA1_XTALHF2

UPDI_DBG0

PF5_USART2_RX

PF3

PF

2PF

1_X

TA

L32

K2

PF0_

XT

AL

32K

1P

E3_

OP

2_IN

NP

E2_

OP

2_O

UT

PE

1_O

P2_

INP

PE

0

PD5_

AIN

5_O

P1_

OU

TPD

6_A

IN6

PD7_

AIN

7_O

P1_

INN

GN

D

VC

C_T

AR

GE

T

100n

C20

2

GN

DV

CC

_TA

RG

ET

100n

C20

0

PF1_XTAL32K2

PF0_XTAL32K1

PA2_TWI0_SDA

PA0_XTALHF1

PF4_USART2_TX

PA4_SPI0_MOSI

GN

D

PA7_

SPI0

_SS

PA6_

SPI0

_SC

KPA

5_SP

I0_M

ISO

PA4_

SPI0

_MO

SIPA

3_T

WI0

_SC

LPA

2_T

WI0

_SD

A

PC

0P

C1

PC

2P

C3

PB

4P

B5

PD7_

AIN

7_O

P1_

INN

PD6_

AIN

6

PD2_

AIN

2_O

P0_

OU

T_T

CA

0_W

O2

PD1_

AIN

1_O

P0_

INP_

TC

A0_

WO

1PD

0_A

IN0_

TC

A0_

WO

0

PD5_

AIN

5_O

P1_

OU

TPD

4_A

IN4_

OP

1_IN

P

PD3_

AIN

3_O

P0_

INN

32K

Hz

Cry

stal

PB0_

USA

RT

3_T

XPB

1_U

SAR

T3_

RX

1kR203

US

ER

LE

D

VC

C_T

AR

GE

T

PF6_DBG3

PB2_SW0_DBG2

PB3_LED0_DBG1

GN

D

USE

R B

UT

TO

N

PB3_

LE

D0_

DB

G1

PB2_

SW0_

DB

G2

PB1_

USA

RT

3_R

XPB

0_U

SAR

T3_

TX

PF4_

USA

RT

2_T

XPF

5_U

SAR

T2_

RX

PF

2P

F3

PC

4P

C5

PC

6P

C7

1kR202

YELLOWLEDSML-D12Y1WT86

2 1

D200

TS604VM1-035CR13

4 2

SW20

0

GN

DV

CC

_ED

GE

GN

DG

ND

GN

DG

ND

UPD

I_D

BG

0P

F6_

DB

G3

J209

PB3_

LE

D0_

DB

G1

PB2_

SW0_

DB

G2

AV

R12

8DB

48

22u

FC

205

VC

C_E

DG

E

GN

D

DBG0

CDC_TXCDC_RX

DBG2

DBG1

DBG3

DBG2

DE

BU

GG

ER

CO

NN

EC

TIO

NS

DBG1

DBG3DBG0

VOFF

ID_SYS

ID_SYS

VOFF

TA

RG

ET

BU

LK

VC

C_T

AR

GE

TR

ESE

T P

ull

VB

US

CD

C R

X3

CD

C T

X4

DB

G1

5

DB

G2

6

0 T

X7

1 R

X8

2 SD

A9

3 S

CL

10

4 M

OSI

11

5 M

ISO

12

6 S

CK

13

7 S

S14

GN

D15

0 (T

X)

16

1 (R

X)

17

218

319

020

GN

D24

DB

G3

54

DB

G0

53

GN

D52

VC

C51

PW

M 3

46

AD

C 2

45

AD

C 1

44

AD

C 0

43

GN

D42

438

434

GN

D33

AD

C 7

50

AD

C 6

49

AD

C 5

48

PW

M 4

47

DE

BU

GG

ER

TAR

GE

T

ID2

VO

FF

55

121

222

323

025

126

227

328

429

530

631

732

535

636

737

539

640

741

RE

SER

VE

D1

VB

US

56

CN

AN

O56

-pin

edg

e co

nnec

tor

J200

J201

J203

J205

J206

J202

J204

PF1_

XT

AL

32K

2PF

0_X

TA

L32

K1

NC

XOUT

XIN

47kR200

AV

R12

8DB

48

UPD

I

GPI

O1

GPI

O0

RE

SET

DB

G0

DB

G1

DB

G2

DB

G3

Deb

ugge

r

CD

C T

X

CD

C R

X

UA

RT

3 R

X

UA

RT

3 T

X

VT

G1

8V -

55

VPB

3

PB

2

PF

6

UP

DI

PB

0

PB

1

Nam

eP

in

PE

3_O

P2_

INN

PE

2_O

P2_

OU

TP

E1_

OP

2_IN

PP

E0

J207

J208

PF

0P

F1

PA5

1

PA6

2

PA7

3

PB0

4

PB1

5

PB2

6

PB3

7

PB4

8

PB5

9

PC0

10

PC1

11

PC2

12

PC313

VDDIO214

GND15

PC416

PC517

PC618

PC719

PD020

PD121

PD222

PD323

PD424

PD5

25

PD6

26

PD7

27

AVDD

28

GND

29

PE0

30

PE1

31

PE2

32

PE3

33

XTAL32K1PF0

34

XTAL32K2PF1

35

PF2

36

PF337

PF438

PF539

PF640

UPDI41

VDD42

GND43

XTALHF1PA044

XTALHF2PA145

PA246

PA347

PA448

AV

R12

8DB

48-I

PT

U20

0

0RR204

GN

D

VC

C_T

AR

GE

T

VDDIO2

GND

J210

J211

82p

C20

48

2pC

203

GN

DG

ND

16M

Hz

Cry

stal

J217

XHFOUT

XHFIN

J214

J213

GN

D

J215

J216

PA0_XTALHF1

PA1_XTALHF2

PA0_

XT

AL

HF

1PA

1_X

TA

LH

F2

PA0

PA1

1 2

J212 N

M

15pF

C20

615

pFC

207

13

24 16

000

MH

zV

XM

7-90

40-1

6M00

0000

0TR

XC

201

GN

D32

768

kHz

VM

K3-

9001

-32K

7680

000T

R

XC

200

CDC_TX

CDC_RX

CD

C_T

XC

DC

_RX

Cry

stal

dat

ashe

et

Ccr

ysta

l = 9

pFm

ax E

SR

= 7

0kO

hmA

ccur

acy

plusmn20p

pm

AV

R48

DB

128

data

shee

tC

xin

= 4

0pF

(ty

pica

l val

ue)

Cxo

ut =

40

pF (

typi

cal v

alue

)C

lasymp1

( (1

40

pF)+

(1

40p

F)

)asymp

20p

FM

axim

um L

oad

= 1

25p

FM

axim

um E

SR =

50k

Ohm

Est

imat

ed C

pcb

= 0

5pF

Est

imat

ed lo

adC

= 2

(C

crys

tal-

Cpa

ra -

Cpc

b)C

= 2

(9p

F -

20

pF -

05

pF)

C =

13

0pF

Sele

cted

in d

esig

n af

ter

veri

fica

tion

C=

82

pF8

2pF

NO

TE

on

UA

RT

CD

C

RX

TX

onth

ehe

ader

deno

tes

the

inpu

tout

put d

irec

tion

of th

e si

gnal

resp

ectiv

e to

its

sou

rce

CD

C T

X is

out

put f

rom

the

DE

BU

GG

ER

C

DC

RX

is in

put t

o th

e D

EB

UG

GE

R

TX

is o

utpu

t fro

m th

e T

AR

GE

T d

evic

eR

X is

inpu

t to

the

TA

RG

ET

dev

ice

NO

TE

on

I2C

No

pull

-ups

on

boar

d P

ull-

ups

shou

ld b

em

ount

ed c

lose

to s

lave

dev

ice(

s)

WA

RN

ING

M

ake

sure

tore

mov

e R

204

befo

reap

plyi

ng p

ower

to J

212

Cry

stal

dat

ashe

et

Ccr

ysta

l = 1

2pF

max

ES

R =

60O

hmA

ccur

acy

plusmn30p

pm

AV

R48

DB

128

data

shee

tC

xin

= 4

0pF

(ty

pica

l val

ue)

Cxo

ut =

40

pF (

typi

cal v

alue

)C

lasymp1

( (1

40

pF)+

(1

40p

F)

)asymp

20p

FM

axim

um L

oad

= 1

25p

FM

axim

um E

SR =

k

Ohm

Est

imat

ed C

pcb

= 0

5pF

Est

imat

ed lo

adC

= 2

(C

crys

tal-

Cpa

ra -

Cpc

b)C

= 2

(12

pF -

20

pF -

05

pF)

C =

19

0pF

Sele

cted

in d

esig

n af

ter

veri

fica

tion

C=

15p

F1

5pF

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 34

11

22

33

44

55

66

77

88

DD

CC

BB

AA

3 of

4

AV

R12

8DB

48 C

uri

osit

y N

ano

2020

-06-

26A

VR

128D

B48

_Cur

iosi

ty_N

ano_

Deb

ugge

rSch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA

Rev

isio

n

Fil

eP

CB

Num

ber

PC

B

Rev

isio

n

Des

ign

ed w

ith

Dra

wn

By

ML

Shee

t Tit

le

Deb

ugge

r

Eng

inee

rA

H

A08

-305

71

Size

A3

A09

-337

22

Page

D

ateA

ltium

com

DE

BU

GG

ER

USB

MIC

RO

-B C

ON

NE

CT

OR

GN

D

USB

D_P

USB

D_N

100n

C10

7

100n

C10

8

1kR

107

VC

C_P

3V3

SRST

STA

TU

S_L

ED

SHIE

LD

VB

US

VC

C_P

3V3

GN

D

TP

100

Test

poin

t Arr

ay

12

34

56

78

910

TC

KT

DO

TM

SV

sup

TD

IG

ND

TR

STSR

STV

Tre

fG

ND

J102

GN

D

47u

F

C10

0

DBG0

DB

G0

21

GR

EE

N L

ED

SML

-P12

MT

T86

R

D10

0

VBUS

1

D-

2

D+

3

GND

5

SHIELD1

6

SHIELD2

7

ID

4

SHIELD3

8

SHIELD4

9 MU

-MB

0142

AB

2-26

9

J105

PAD

33

PA00

1

PA01

2

PA02

3

PA03

4

GND 10VDDANA 9

PA04

5

PA05

6

PA06

7

PA07

8

PA08 11

PA09 12

PA10 13

PA11 14

PA14 15

PA15 16

PA16

17

PA17

18

PA18

19

PA19

20

PA22

21

USB_SOFPA23

22

USB_DMPA24

23

USB_DPPA25

24

PA2725 RESETN26 PA2827 GND28 VDDCORE29 VDDIN30 SWDCLKPA3031 SWDIOPA3132

SAM

D21

E18

A-M

UT

U10

0

VOUT

1

VOUT

2

GND 3

EN

4

VIN

6

NC

5

EP 7

MIC

5528

-33

YM

TU

101

VC

C_P

3V3

GN

D

USB

D_P

USB

D_N

GN

D

1uC

106

VC

C_M

CU

_CO

RE

VC

C_P

3V3

VC

C_P

3V3

22u

FC

101

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

3

VC

C_P

3V3

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

4

VC

C_P

3V3

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

5

VC

C_P

3V3

GN

D

GN

D GN

D

GN

D

VC

C_E

DG

E

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

7

VC

C_P

3V3

GN

DDBG2

DB

G3_

CT

RL

S1_0

_TX

S1_1

_RX

S0_2

_TX

DA

CV

TG

_AD

C

RE

SER

VE

D

S0_3

_CL

K

DBG0_CTRL

CD

C_T

X_C

TR

L

BO

OT

DE

BU

GG

ER

PO

WE

RS

TA

TU

S L

ED

EN

1

BYP

6

VOUT

4

GND

2

VIN

3

NCADJ

5

GND

7

MIC

5353

U10

2

100n

C10

2

GN

D

GN

D

47kR101

27kR104 G

ND

33k

R10

6

22u

F

C10

3 GN

D

1kR

108

J100

VC

C_L

EV

EL

VC

C_R

EG

UL

AT

OR

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

6

VC

C_P

3V3

GN

DDBG1

CD

C_R

X

CD

C_T

X

DBG3

DBG1_CTRL

DE

BU

GG

ER

RE

GU

LA

TO

R

REG_ENABLE

RE

G_E

NA

BL

E

47kR103

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

47kR102

47kR105

SWC

LK

GN

D

47kR100 G

ND

DB

G2

S0_0

_RX

DB

G1_

CT

RL

DB

G0_

CT

RL

DB

G3

OP

EN

DR

AIN

TA

RG

ET

AD

JUST

AB

LE

RE

GU

LA

TO

R

SRST

DE

BU

GG

ER

TE

ST

PO

INT DBG2_CTRL

VO

FF

CD

C_R

X_C

TR

L

47kR109

DB

G1

CD

C_T

X_C

TR

L

CD

C_R

X_C

TR

L

SWC

LK

REG_ADJUST

DBG2_GPIO

DB

G3_

CT

RL

DB

G2_

CT

RL

UP

DI

UPD

I

GPI

O

GPI

O

RE

SET

Sign

al

DB

G0

DB

G1

DB

G2

DB

G3

ICS

PIn

terf

ace

DA

T

CL

K

GPI

O

MC

LR

DB

G3

CD

C T

X

CD

C R

X

UA

RT

RX

UA

RT

TX

UA

RT

RX

UA

RT

TX

TA

RG

ET

TA

RG

ET

1kR

110

VBUS_ADC

1

23

DM

N65

D8L

FB

Q10

1

VC

C-

-

ID_SYS

VOFF

1kR112

VC

C_P

3V3

VT

G_A

DC

DA

C

MIC

9416

3

VIN

B2

VOUT

A1

VIN

A2

EN

C2

GND

C1

VOUT

B1

U10

8

GN

D

ID_S

YS

VT

G_E

N

VTG_EN

VBUS_ADC

SWD

IO

ID_S

YS

TP

101

GN

DSW

DIO

VO

FF

47kR111 G

ND

ID P

IN

MC

3621

3

F10

0

VC

C_V

BU

S

VC

C_V

BU

S

VC

C_V

BU

S

J101

VC

C_T

AR

GE

T

47k

R11

3

CDC_TX

CDC_RX

Prog

ram

min

g co

nnec

tor

for

fact

ory

prog

ram

min

g of

DE

BU

GG

ER

MIC

5528

V

in 2

5V

to 5

5V

Vou

t F

ixed

33

VIm

ax 5

00m

AD

ropo

ut 2

60m

V

500

mA

MIC

5353

V

in 2

6V

to 6

VV

out

12

5V to

51

VIm

ax 5

00m

AD

ropo

ut (

typi

cal)

50m

V

150m

A 1

60m

V

500

mA

Acc

urac

y 2

in

itia

lT

herm

al s

hutd

own

and

curr

ent l

imit

Max

imum

out

put v

olta

ge is

lim

ited

by

the

inpu

t vol

tage

and

the

drop

out v

olta

ge in

the

regu

lato

r(V

max

= V

in -

dro

pout

)

J100

-

Cut

-str

ap u

sed

for

full

sep

arat

ion

of ta

rget

pow

er f

rom

the

leve

l shi

fter

s an

don

-boa

rd r

egul

ator

s-

For

cur

rent

mea

sure

men

ts u

sing

the

on-b

oard

pow

er s

uppl

y th

isst

rap

mus

t be

cut a

nd a

nam

met

er c

onne

cted

acr

oss

- F

or c

urre

nt m

easu

rem

ents

usi

ng a

n ex

tern

al p

ower

sup

ply

this

str

ap c

ould

be

cut f

or m

ore

accu

rate

mea

sure

men

ts L

eaka

ge b

ack

thro

ugh

the

swit

ch is

in th

e m

icro

am

pere

ran

ge

PT

C R

eset

tabl

e fu

se

Hol

d cu

rren

t 5

00m

AT

rip

curr

ent

100

0mA

Adj

usta

ble

outp

ut a

nd li

mit

atio

ns

- T

he D

EB

UG

GE

R c

an a

djus

t the

out

put v

olta

ge o

f th

e re

gula

tor

betw

een

125

V a

nd 5

1V

to th

e ta

rget

-

The

vol

tage

out

put i

s li

mit

ed b

y th

e in

put (

US

B)

whi

ch c

an v

ary

betw

een

440

V to

52

5V-

The

leve

l shi

fter

s ha

ve a

min

imal

vol

tage

leve

l of

165

V a

nd w

ill l

imit

the

min

imum

ope

ratin

g vo

ltage

all

owed

for

the

targ

et to

sti

ll a

llow

com

mun

icat

ion

- T

he M

IC94

163

has

a m

inim

al v

olat

ege

leve

l of

170

V a

nd w

ill l

imit

the

min

imum

vol

tage

del

iver

ed to

the

targ

et

- F

irm

war

e co

nfig

urat

ion

wil

l lim

it th

e vo

ltage

ran

ge to

be

wit

hin

the

the

targ

et s

peci

fica

tion

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 35

82 Assembly DrawingFigure 8-2 AVR128DB48 Curiosity Nano Assembly Drawing Top

+

Cb

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20001 PAC20002 COC200

PAC20101 PAC20102 COC201

PAC20201 PAC20202 COC202 PAC20301

PAC20302 COC203

PAC20401

PAC20402 COC204

PAC20502

PAC20501 COC205

PAC20601

PAC20602 COC206 PAC20701

PAC20702 COC207 PAD10002 PAD10001 COD100

PAD20002

PAD20001 COD200

PAF10002

PAF10001 COF100

PAJ10002 PAJ10001 COJ100

PAJ10101 PAJ10102 COJ101

PAJ10201

PAJ10202

PAJ10203

PAJ10204

PAJ10205

PAJ10206 COJ102

PAJ10506

PAJ10507 PAJ10509

PAJ10508 PAJ105010

PAJ105011 PAJ10505

PAJ10504

PAJ10503

PAJ10502

PAJ10501

PAJ10500

COJ105

PAJ200056 PAJ200053

PAJ200028 PAJ20002 PAJ20001

PAJ200051 PAJ200050 PAJ200052 PAJ200049 PAJ200048 PAJ200047 PAJ200046 PAJ200045 PAJ200044 PAJ200043 PAJ200042 PAJ200041 PAJ200040 PAJ200039 PAJ200038 PAJ200037 PAJ200036 PAJ200035 PAJ200034 PAJ200033 PAJ200032 PAJ200031 PAJ200030 PAJ200029

PAJ20003 PAJ20004 PAJ20005 PAJ20006 PAJ20007 PAJ20008 PAJ20009 PAJ200010 PAJ200011 PAJ200012 PAJ200013 PAJ200014 PAJ200015 PAJ200016 PAJ200017 PAJ200018 PAJ200019 PAJ200020 PAJ200021 PAJ200022 PAJ200023 PAJ200026 PAJ200025 PAJ200024 PAJ200027

PAJ200054 PAJ200055 PAJ20000

COJ200

PAJ20102 PAJ20101 COJ201

PAJ20202 PAJ20201 COJ202

PAJ20302 PAJ20301 COJ203

PAJ20402 PAJ20401 COJ204

PAJ20502 PAJ20501 COJ205

PAJ20602 PAJ20601 COJ206 PAJ20702 PAJ20701 COJ207

PAJ20802 PAJ20801 COJ208

PAJ20902 PAJ20901 COJ209

PAJ21001 PAJ21002 PAJ21005 COJ210

PAJ21102 PAJ21101 PAJ21105 COJ211

PAJ21202 PAJ21201 COJ212

PAJ21301 PAJ21302 PAJ21305 COJ213

PAJ21401 PAJ21402 PAJ21405 COJ214

PAJ21502 PAJ21501 COJ215

PAJ21602 PAJ21601 COJ216 PAJ21702 PAJ21701 COJ217

COLABEL1

PAQ10101 PAQ10102 PAQ10103 PAQ10100

COQ101 PAR10002

PAR10001 COR100 PAR10101 PAR10102 COR101

PAR10202 PAR10201 COR102

PAR10302 PAR10301 COR103

PAR10401 PAR10402 COR104

PAR10502

PAR10501 COR105

PAR10601 PAR10602 COR106

PAR10702 PAR10701 COR107

PAR10801

PAR10802 COR108

PAR10901 PAR10902 COR109

PAR11001 PAR11002 COR110

PAR11101 PAR11102 COR111

PAR11201 PAR11202 COR112

PAR11302 PAR11301 COR113

PAR20001 PAR20002 COR200 PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203 PAR20401 PAR20402 COR204

PASW20003

PASW20004 PASW20002

PASW20001 COSW200

PATP10001 COTP100

PATP10101 COTP101 PAU100033

PAU100032 PAU100031 PAU100030 PAU100029 PAU100028 PAU100027 PAU100026 PAU100025 PAU100024

PAU100023

PAU100022

PAU100021

PAU100020

PAU100019

PAU100018

PAU100017 PAU100016 PAU100015 PAU100014 PAU100013 PAU100012 PAU100011 PAU100010

PAU10001

PAU10002

PAU10003

PAU10004

PAU10005

PAU10006

PAU10007

PAU10008 PAU10009

COU100

PAU10107

PAU10104 PAU10105 PAU10106

PAU10103 PAU10102 PAU10101 PAU10100 COU101 PAU10207

PAU10204 PAU10205

PAU10206

PAU10203 PAU10202

PAU10201

COU102

PAU10306

PAU10305 PAU10304 PAU10303

PAU10302 PAU10301 PAU10300

COU103

PAU10406

PAU10405 PAU10404 PAU10403

PAU10402 PAU10401 PAU10400

COU104

PAU10506

PAU10505 PAU10504 PAU10503

PAU10502 PAU10501 PAU10500

COU105

PAU10606

PAU10605 PAU10604 PAU10603

PAU10602 PAU10601 PAU10600

COU106

PAU10706

PAU10705 PAU10704 PAU10703

PAU10702 PAU10701 PAU10700

COU107

PAU1080A1 PAU1080A2

PAU1080B1 PAU1080B2

PAU1080C1 PAU1080C2 COU108

PAU20001 PAU20002 PAU20003 PAU20004 PAU20005 PAU20006 PAU20007 PAU20008 PAU20009 PAU200010 PAU200011 PAU200012 PAU200013 PAU200014 PAU200015 PAU200016 PAU200017 PAU200018 PAU200019 PAU200020 PAU200021 PAU200022 PAU200023 PAU200024 PAU200025 PAU200026 PAU200027 PAU200028 PAU200029 PAU200030 PAU200031 PAU200032 PAU200033 PAU200034 PAU200035 PAU200036

PAU200037 PAU200038 PAU200039 PAU200040 PAU200041 PAU200042 PAU200043 PAU200044 PAU200045 PAU200046 PAU200047 PAU200048

COU200

PAXC20001

PAXC20002 COXC200

PAXC20101 PAXC20102

PAXC20103 PAXC20104 COXC201

Figure 8-3 AVR128DB48 Curiosity Nano Assembly Drawing Bottom

tcR

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20001 PAC20002 COC200

PAC20101 PAC20102 COC201

PAC20201 PAC20202 COC202 PAC20301

PAC20302 COC203

PAC20401

PAC20402 COC204

PAC20502

PAC20501 COC205

PAC20601

PAC20602 COC206 PAC20701

PAC20702 COC207 PAD10002 PAD10001 COD100

PAD20002

PAD20001 COD200

PAF10002

PAF10001 COF100

PAJ10002 PAJ10001 COJ100

PAJ10101 PAJ10102 COJ101

PAJ10201

PAJ10202

PAJ10203

PAJ10204

PAJ10205

PAJ10206 COJ102

PAJ10506

PAJ10507 PAJ10509

PAJ10508 PAJ105010

PAJ105011 PAJ10505

PAJ10504

PAJ10503

PAJ10502

PAJ10501

PAJ10500

COJ105

PAJ200056 PAJ200053

PAJ200028 PAJ20002 PAJ20001

PAJ200051 PAJ200050 PAJ200052 PAJ200049 PAJ200048 PAJ200047 PAJ200046 PAJ200045 PAJ200044 PAJ200043 PAJ200042 PAJ200041 PAJ200040 PAJ200039 PAJ200038 PAJ200037 PAJ200036 PAJ200035 PAJ200034 PAJ200033 PAJ200032 PAJ200031 PAJ200030 PAJ200029

PAJ20003 PAJ20004 PAJ20005 PAJ20006 PAJ20007 PAJ20008 PAJ20009 PAJ200010 PAJ200011 PAJ200012 PAJ200013 PAJ200014 PAJ200015 PAJ200016 PAJ200017 PAJ200018 PAJ200019 PAJ200020 PAJ200021 PAJ200022 PAJ200023 PAJ200026 PAJ200025 PAJ200024 PAJ200027

PAJ200054 PAJ200055 PAJ20000

COJ200

PAJ20102 PAJ20101 COJ201

PAJ20202 PAJ20201 COJ202

PAJ20302 PAJ20301 COJ203

PAJ20402 PAJ20401 COJ204

PAJ20502 PAJ20501 COJ205

PAJ20602 PAJ20601 COJ206 PAJ20702 PAJ20701 COJ207

PAJ20802 PAJ20801 COJ208

PAJ20902 PAJ20901 COJ209

PAJ21001 PAJ21002 PAJ21005 COJ210

PAJ21102 PAJ21101 PAJ21105 COJ211

PAJ21202 PAJ21201 COJ212

PAJ21301 PAJ21302 PAJ21305 COJ213

PAJ21401 PAJ21402 PAJ21405 COJ214

PAJ21502 PAJ21501 COJ215

PAJ21602 PAJ21601 COJ216 PAJ21702 PAJ21701 COJ217

COLABEL1

PAQ10101 PAQ10102 PAQ10103 PAQ10100

COQ101 PAR10002

PAR10001 COR100 PAR10101 PAR10102 COR101

PAR10202 PAR10201 COR102

PAR10302 PAR10301 COR103

PAR10401 PAR10402 COR104

PAR10502

PAR10501 COR105

PAR10601 PAR10602 COR106

PAR10702 PAR10701 COR107

PAR10801

PAR10802 COR108

PAR10901 PAR10902 COR109

PAR11001 PAR11002 COR110

PAR11101 PAR11102 COR111

PAR11201 PAR11202 COR112

PAR11302 PAR11301 COR113

PAR20001 PAR20002 COR200 PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203 PAR20401 PAR20402 COR204

PASW20003

PASW20004 PASW20002

PASW20001 COSW200

PATP10001 COTP100

PATP10101 COTP101 PAU100033

PAU100032 PAU100031 PAU100030 PAU100029 PAU100028 PAU100027 PAU100026 PAU100025 PAU100024

PAU100023

PAU100022

PAU100021

PAU100020

PAU100019

PAU100018

PAU100017 PAU100016 PAU100015 PAU100014 PAU100013 PAU100012 PAU100011 PAU100010

PAU10001

PAU10002

PAU10003

PAU10004

PAU10005

PAU10006

PAU10007

PAU10008 PAU10009

COU100

PAU10107

PAU10104 PAU10105 PAU10106

PAU10103 PAU10102 PAU10101 PAU10100 COU101 PAU10207

PAU10204 PAU10205

PAU10206

PAU10203 PAU10202

PAU10201

COU102

PAU10306

PAU10305 PAU10304 PAU10303

PAU10302 PAU10301 PAU10300

COU103

PAU10406

PAU10405 PAU10404 PAU10403

PAU10402 PAU10401 PAU10400

COU104

PAU10506

PAU10505 PAU10504 PAU10503

PAU10502 PAU10501 PAU10500

COU105

PAU10606

PAU10605 PAU10604 PAU10603

PAU10602 PAU10601 PAU10600

COU106

PAU10706

PAU10705 PAU10704 PAU10703

PAU10702 PAU10701 PAU10700

COU107

PAU1080A1 PAU1080A2

PAU1080B1 PAU1080B2

PAU1080C1 PAU1080C2 COU108

PAU20001 PAU20002 PAU20003 PAU20004 PAU20005 PAU20006 PAU20007 PAU20008 PAU20009 PAU200010 PAU200011 PAU200012 PAU200013 PAU200014 PAU200015 PAU200016 PAU200017 PAU200018 PAU200019 PAU200020 PAU200021 PAU200022 PAU200023 PAU200024 PAU200025 PAU200026 PAU200027 PAU200028 PAU200029 PAU200030 PAU200031 PAU200032 PAU200033 PAU200034 PAU200035 PAU200036

PAU200037 PAU200038 PAU200039 PAU200040 PAU200041 PAU200042 PAU200043 PAU200044 PAU200045 PAU200046 PAU200047 PAU200048

COU200

PAXC20001

PAXC20002 COXC200

PAXC20101 PAXC20102

PAXC20103 PAXC20104 COXC201

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 36

83 Curiosity Nano Base for Click boardstrade

Figure 8-4 AVR128DB48 Curiosity Nano Pinout Mapping

US

B

DE

BU

GG

ER

AV

R1

28

DB

48

SW

0

LE

D0

PS

LE

DNC

NC

ID

ID

CDC RX

CDCRX

USART3 TX

PB0

CDC TX

CDCTX

USART3 RX

PB1

DBG1

DBG1

PB3

LED0

DBG2

DBG2

PB2

SW0

PF4

PF4

USART2 TX

PF5

PF5

USART2 RX

PA2

PA2

TWI0 SDA

PA3

PA3

TWI0 SCL

PA4

PA4

SPI0 MOSI

PA5

PA5

SPI0 MISO

PA6

PA6

SPI0 SCK

PA7

PA7

SPI0 SS

GND

GND

PB0

PB0

USART3 TX

CDC RX

PB1

PB1

USART3 RX

CDC TX

PF2

PF2

PF3

PF3

PC0

PC0

PC1

PC1

PC2

PC2

PC3

PC3

GND

GND

(PA0)

(PA0)

XTALHF1

(PA1)

(PA1)

XTALHF2

PB2

PB2

SW0

PB3

PB3

LED0

VBUS

VBUS

VOFF

VOFF

DBG3

DBG3

PF6

DBG0

DBG0

UPDI

GND

GND

VTG

VTG

PD6

PD6

AIN6

PD3

PD3

AIN3

OP0 INN

PD2

PD2

AIN2

OP0 OUT

TCA0 WO2

PD1

PD1

AIN1

OP0 INP

TCA0 WO1

PD0

PD0

AIN0

TCA0 WO0

PD7

PD7

AIN7

OP1 INN

PD5

PD5

AIN5

OP1 OUT

PD4

PD4

AIN4

OP1 INP

GND

GND

PE3

PE3

OP2 INN

PE2

PE2

OP2 OUT

PE1

PE1

OP2 INP

PE0

PE0

PC7

PC7

PC6

PC6

PC5

PC5

PC4

PC4

GND

GND

PB5

PB5

PB4

PB4

(PF1)

(PF1)

XTAL32K2

(PF0)

(PF0)

XTAL32K1

DE

BU

GG

ER

AV

R1

28

DB

48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

MVIO

OPAMP

Shared pin

AV

R1

28

DB

48

Cu

rio

sity

Na

no

1

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

2

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

3

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

Xp

lain

ed

Pro

Ext

en

sio

nE

XT

11

2

19

20

Cu

rio

sity

Na

no

Ba

sefo

r cl

ick

bo

ard

sT

M

PD4

PD0

PD6

PD3

PA7

PF5

PA6

PF4

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

PD5

PD1

PF3

PF2

PE2

PB1

PA6

PB0

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

PD7

PD2

PE1

PE0

PE3

PF5

PA6

PF4

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

ID

GND

PD5

PD7

PF3

PE1

PD1

PD2

PF2

PE3

PA2

PA3

PB1

PB0

PE2

PA4

PA5

PA6

GND

+33V

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 37

84 Disconnecting the On-board DebuggerThe on-board debugger and level shifters can be completely disconnected from the AVR128DB48

The block diagram below shows all connections between the debugger and the AVR128DB48 The rounded boxesrepresent connections to the board edge The signal names shown are also printed in silkscreen on the bottom sideof the board

To disconnect the debugger cut the straps shown in Figure 8-6

Attention  Cutting the GPIO straps to the on-board debugger will disable the virtual serial portprogramming debugging and data streaming Cutting the power supply strap will disconnect the on-boardpower supply

Tip  Any connection that is cut can be reconnected using solder Alternatively a 0Ω 0402 resistor can bemounted

Tip  When the debugger is disconnected an external debugger can be connected to holes shown in Figure 8-6 Details about connecting an external debugger are described in 46 Connecting ExternalDebuggers

Figure 8-5  On-Board Debugger Connections Block Diagram

DE

BU

GG

ER

TARGETLevel-Shift

PA04PA06PA07PA08PA16PA00PA01

USB

DIR x 5

VCC_P3V3

VBUS

VC

C_L

EV

EL

VC

C_T

AR

GE

TDBG0DBG1DBG2DBG3CDC TXCDC RX

CDC RX

CDC TX

DBG3

DBG2

DBG1

DBG0

GPIO straps

LDO

VOFF

LDO

VBUS VTG

VCC_EDGE

Power Supply strap Target Power strap

UART RXUART TX

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 38

Figure 8-6 On-Board Debugger Connection Cut Straps

GPIO straps (bottom side) Power Supply strap (top side)

85 Getting Started with IARIAR Embedded Workbenchreg for AVRreg is a proprietary high-efficiency compiler not based on GCC Programming anddebugging of AVR128DB48 Curiosity Nano is supported in IARtrade Embedded Workbench for AVR using the Atmel-ICEinterface Some initial settings must be set up in the project to get the programming and debugging to work

The following steps will explain how to get your project ready for programming and debugging

1 Make sure you have opened the project you want to configure Open the OPTIONS dialog for the project2 In the category General Options select the Target tab Select the device for the project or if not listed the

core of the device as shown in Figure 8-73 In the category Debugger select the Setup tab Select Atmel-ICE as the driver as shown in Figure 8-84 In the category Debugger gt Atmel-ICE select the Atmel-ICE 1 tab Select UPDI as the interface and

optionally select the UPDI frequency as shown in Figure 8-9

Info  If the selection of Debug Port (mentioned in step 4) is grayed out the interface is preselected andthe user can skip this configuration step

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 39

Figure 8-7 Select Target Device

Figure 8-8 Select Debugger

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 40

Figure 8-9 Configure Interface

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 41

The Microchip Website

Microchip provides online support via our website at wwwmicrochipcom This website is used to make files andinformation easily available to customers Some of the content available includes

bull Product Support ndash Data sheets and errata application notes and sample programs design resources userrsquosguides and hardware support documents latest software releases and archived software

bull General Technical Support ndash Frequently Asked Questions (FAQs) technical support requests onlinediscussion groups Microchip design partner program member listing

bull Business of Microchip ndash Product selector and ordering guides latest Microchip press releases listing ofseminars and events listings of Microchip sales offices distributors and factory representatives

Product Change Notification Service

Microchiprsquos product change notification service helps keep customers current on Microchip products Subscribers willreceive email notification whenever there are changes updates revisions or errata related to a specified productfamily or development tool of interest

To register go to wwwmicrochipcompcn and follow the registration instructions

Customer Support

Users of Microchip products can receive assistance through several channels

bull Distributor or Representativebull Local Sales Officebull Embedded Solutions Engineer (ESE)bull Technical Support

Customers should contact their distributor representative or ESE for support Local sales offices are also available tohelp customers A listing of sales offices and locations is included in this document

Technical support is available through the website at wwwmicrochipcomsupport

Microchip Devices Code Protection Feature

Note the following details of the code protection feature on Microchip devices

bull Microchip products meet the specifications contained in their particular Microchip Data Sheetbull Microchip believes that its family of products is secure when used in the intended manner and under normal

conditionsbull There are dishonest and possibly illegal methods being used in attempts to breach the code protection features

of the Microchip devices We believe that these methods require using the Microchip products in a manneroutside the operating specifications contained in Microchiprsquos Data Sheets Attempts to breach these codeprotection features most likely cannot be accomplished without violating Microchiprsquos intellectual property rights

bull Microchip is willing to work with any customer who is concerned about the integrity of its codebull Neither Microchip nor any other semiconductor manufacturer can guarantee the security of its code Code

protection does not mean that we are guaranteeing the product is ldquounbreakablerdquo Code protection is constantlyevolving We at Microchip are committed to continuously improving the code protection features of our productsAttempts to break Microchiprsquos code protection feature may be a violation of the Digital Millennium Copyright ActIf such acts allow unauthorized access to your software or other copyrighted work you may have a right to suefor relief under that Act

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 42

Legal Notice

Information contained in this publication is provided for the sole purpose of designing with and using Microchipproducts Information regarding device applications and the like is provided only for your convenience and may besuperseded by updates It is your responsibility to ensure that your application meets with your specifications

THIS INFORMATION IS PROVIDED BY MICROCHIP ldquoAS ISrdquo MICROCHIP MAKES NO REPRESENTATIONS ORWARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED WRITTEN OR ORAL STATUTORY OROTHERWISE RELATED TO THE INFORMATION INCLUDING BUT NOT LIMITED TO ANY IMPLIEDWARRANTIES OF NON-INFRINGEMENT MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSEOR WARRANTIES RELATED TO ITS CONDITION QUALITY OR PERFORMANCE

IN NO EVENT WILL MICROCHIP BE LIABLE FOR ANY INDIRECT SPECIAL PUNITIVE INCIDENTAL ORCONSEQUENTIAL LOSS DAMAGE COST OR EXPENSE OF ANY KIND WHATSOEVER RELATED TO THEINFORMATION OR ITS USE HOWEVER CAUSED EVEN IF MICROCHIP HAS BEEN ADVISED OF THEPOSSIBILITY OR THE DAMAGES ARE FORESEEABLE TO THE FULLEST EXTENT ALLOWED BY LAWMICROCHIPS TOTAL LIABILITY ON ALL CLAIMS IN ANY WAY RELATED TO THE INFORMATION OR ITS USEWILL NOT EXCEED THE AMOUNT OF FEES IF ANY THAT YOU HAVE PAID DIRECTLY TO MICROCHIP FORTHE INFORMATION Use of Microchip devices in life support andor safety applications is entirely at the buyerrsquos riskand the buyer agrees to defend indemnify and hold harmless Microchip from any and all damages claims suits orexpenses resulting from such use No licenses are conveyed implicitly or otherwise under any Microchip intellectualproperty rights unless otherwise stated

Trademarks

The Microchip name and logo the Microchip logo Adaptec AnyRate AVR AVR logo AVR Freaks BesTimeBitCloud chipKIT chipKIT logo CryptoMemory CryptoRF dsPIC FlashFlex flexPWR HELDO IGLOO JukeBloxKeeLoq Kleer LANCheck LinkMD maXStylus maXTouch MediaLB megaAVR Microsemi Microsemi logo MOSTMOST logo MPLAB OptoLyzer PackeTime PIC picoPower PICSTART PIC32 logo PolarFire Prochip DesignerQTouch SAM-BA SenGenuity SpyNIC SST SST Logo SuperFlash Symmetricom SyncServer TachyonTempTrackr TimeSource tinyAVR UNIO Vectron and XMEGA are registered trademarks of Microchip TechnologyIncorporated in the USA and other countries

APT ClockWorks The Embedded Control Solutions Company EtherSynch FlashTec Hyper Speed ControlHyperLight Load IntelliMOS Libero motorBench mTouch Powermite 3 Precision Edge ProASIC ProASIC PlusProASIC Plus logo Quiet-Wire SmartFusion SyncWorld Temux TimeCesium TimeHub TimePictra TimeProviderVite WinPath and ZL are registered trademarks of Microchip Technology Incorporated in the USA

Adjacent Key Suppression AKS Analog-for-the-Digital Age Any Capacitor AnyIn AnyOut BlueSky BodyComCodeGuard CryptoAuthentication CryptoAutomotive CryptoCompanion CryptoController dsPICDEMdsPICDEMnet Dynamic Average Matching DAM ECAN EtherGREEN In-Circuit Serial Programming ICSPINICnet Inter-Chip Connectivity JitterBlocker KleerNet KleerNet logo memBrain Mindi MiWi MPASM MPFMPLAB Certified logo MPLIB MPLINK MultiTRAK NetDetach Omniscient Code Generation PICDEMPICDEMnet PICkit PICtail PowerSmart PureSilicon QMatrix REAL ICE Ripple Blocker SAM-ICE Serial QuadIO SMART-IS SQI SuperSwitcher SuperSwitcher II Total Endurance TSHARC USBCheck VariSenseViewSpan WiperLock Wireless DNA and ZENA are trademarks of Microchip Technology Incorporated in the USAand other countries

SQTP is a service mark of Microchip Technology Incorporated in the USA

The Adaptec logo Frequency on Demand Silicon Storage Technology and Symmcom are registered trademarks ofMicrochip Technology Inc in other countries

GestIC is a registered trademark of Microchip Technology Germany II GmbH amp Co KG a subsidiary of MicrochipTechnology Inc in other countries

All other trademarks mentioned herein are property of their respective companiescopy 2020 Microchip Technology Incorporated Printed in the USA All Rights Reserved

ISBN 978-1-5224-6667-3

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 43

Quality Management SystemFor information regarding Microchiprsquos Quality Management Systems please visit wwwmicrochipcomquality

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 44

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupportwwwmicrochipcomsupportWeb AddresswwwmicrochipcomAtlantaDuluth GATel 678-957-9614Fax 678-957-1455Austin TXTel 512-257-3370BostonWestborough MATel 774-760-0087Fax 774-760-0088ChicagoItasca ILTel 630-285-0071Fax 630-285-0075DallasAddison TXTel 972-818-7423Fax 972-818-2924DetroitNovi MITel 248-848-4000Houston TXTel 281-894-5983IndianapolisNoblesville INTel 317-773-8323Fax 317-773-5453Tel 317-536-2380Los AngelesMission Viejo CATel 949-462-9523Fax 949-462-9608Tel 951-273-7800Raleigh NCTel 919-844-7510New York NYTel 631-435-6000San Jose CATel 408-735-9110Tel 408-436-4270Canada - TorontoTel 905-695-1980Fax 905-695-2078

Australia - SydneyTel 61-2-9868-6733China - BeijingTel 86-10-8569-7000China - ChengduTel 86-28-8665-5511China - ChongqingTel 86-23-8980-9588China - DongguanTel 86-769-8702-9880China - GuangzhouTel 86-20-8755-8029China - HangzhouTel 86-571-8792-8115China - Hong Kong SARTel 852-2943-5100China - NanjingTel 86-25-8473-2460China - QingdaoTel 86-532-8502-7355China - ShanghaiTel 86-21-3326-8000China - ShenyangTel 86-24-2334-2829China - ShenzhenTel 86-755-8864-2200China - SuzhouTel 86-186-6233-1526China - WuhanTel 86-27-5980-5300China - XianTel 86-29-8833-7252China - XiamenTel 86-592-2388138China - ZhuhaiTel 86-756-3210040

India - BangaloreTel 91-80-3090-4444India - New DelhiTel 91-11-4160-8631India - PuneTel 91-20-4121-0141Japan - OsakaTel 81-6-6152-7160Japan - TokyoTel 81-3-6880- 3770Korea - DaeguTel 82-53-744-4301Korea - SeoulTel 82-2-554-7200Malaysia - Kuala LumpurTel 60-3-7651-7906Malaysia - PenangTel 60-4-227-8870Philippines - ManilaTel 63-2-634-9065SingaporeTel 65-6334-8870Taiwan - Hsin ChuTel 886-3-577-8366Taiwan - KaohsiungTel 886-7-213-7830Taiwan - TaipeiTel 886-2-2508-8600Thailand - BangkokTel 66-2-694-1351Vietnam - Ho Chi MinhTel 84-28-5448-2100

Austria - WelsTel 43-7242-2244-39Fax 43-7242-2244-393Denmark - CopenhagenTel 45-4485-5910Fax 45-4485-2829Finland - EspooTel 358-9-4520-820France - ParisTel 33-1-69-53-63-20Fax 33-1-69-30-90-79Germany - GarchingTel 49-8931-9700Germany - HaanTel 49-2129-3766400Germany - HeilbronnTel 49-7131-72400Germany - KarlsruheTel 49-721-625370Germany - MunichTel 49-89-627-144-0Fax 49-89-627-144-44Germany - RosenheimTel 49-8031-354-560Israel - RarsquoananaTel 972-9-744-7705Italy - MilanTel 39-0331-742611Fax 39-0331-466781Italy - PadovaTel 39-049-7625286Netherlands - DrunenTel 31-416-690399Fax 31-416-690340Norway - TrondheimTel 47-72884388Poland - WarsawTel 48-22-3325737Romania - BucharestTel 40-21-407-87-50Spain - MadridTel 34-91-708-08-90Fax 34-91-708-08-91Sweden - GothenbergTel 46-31-704-60-40Sweden - StockholmTel 46-8-5090-4654UK - WokinghamTel 44-118-921-5800Fax 44-118-921-5820

Worldwide Sales and Service

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 45

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Board Overview
      • 2 Getting Started
        • 21 Quick Start
          • 211 Driver Installation
          • 212 Kit Window
          • 213 MPLABreg X IDE Device Family Packs
          • 214 Atmel Studio 7 Device Family Pack
            • 22 Design Documentation and Relevant Links
              • 3 Preprogrammed Application
              • 4 Curiosity Nano
                • 41 On-Board Debugger Overview
                  • 411 Debugger
                  • 412 Virtual Serial Port (CDC)
                    • 4121 Overview
                    • 4122 Operating System Support
                    • 4123 Limitations
                    • 4124 Signaling
                    • 4125 Advanced Use
                      • 413 Mass Storage Device
                        • 4131 Mass Storage Device Implementation
                        • 4132 Limitations of Drag-and-Drop Programming
                        • 4133 Special Commands
                          • 414 Data Gateway Interface (DGI)
                            • 4141 Debug GPIO
                            • 4142 Timestamping
                                • 42 Curiosity Nano Standard Pinout
                                • 43 Power Supply
                                  • 431 Target Regulator
                                  • 432 External Supply
                                  • 433 VBUS Output Pin
                                  • 434 Power Supply Exceptions
                                    • 44 Low-Power Measurement
                                    • 45 Programming External Microcontrollers
                                      • 451 Supported Devices
                                      • 452 Software Configuration
                                      • 453 Hardware Modifications
                                      • 454 Connecting to External Microcontrollers
                                        • 46 Connecting External Debuggers
                                          • 5 Hardware User Guide
                                            • 51 Connectors
                                              • 511 AVR128DB48 Curiosity Nano Pinout
                                              • 512 Using Pin Headers
                                              • 513 Multi-Voltage IO
                                              • 514 Operational Amplifiers
                                                • 52 Peripherals
                                                  • 521 LED
                                                  • 522 Mechanical Switch
                                                  • 523 32768 kHz Crystal
                                                  • 524 1600 MHz Crystal
                                                  • 525 On-Board Debugger Implementation
                                                    • 5251 On-Board Debugger Connections
                                                      • 6 Hardware Revision History and Known Issues
                                                        • 61 Identifying Product ID and Revision
                                                        • 62 Revision 3
                                                        • 63 Revision 2
                                                          • 7 Document Revision History
                                                          • 8 Appendix
                                                            • 81 Schematic
                                                            • 82 Assembly Drawing
                                                            • 83 Curiosity Nano Base for Click boardstrade
                                                            • 84 Disconnecting the On-board Debugger
                                                            • 85 Getting Started with IAR
                                                              • The Microchip Website
                                                              • Product Change Notification Service
                                                              • Customer Support
                                                              • Microchip Devices Code Protection Feature
                                                              • Legal Notice
                                                              • Trademarks
                                                              • Quality Management System
                                                              • Worldwide Sales and Service
Page 4: AVR128DB48 Curiosity Nano Hardware User Guideww1.microchip.com/downloads/en/DeviceDoc/AVR128DB48-Curiosit… · 4. Curiosity Nano Curiosity Nano is an evaluation platform of small

1 Introduction

11 Featuresbull AVR128DB48 Microcontrollerbull One Yellow User LEDbull One Mechanical User Switchbull One 32768 kHz Crystalbull One 1600 MHz Crystalbull On-Board Debugger

ndash Board identification in Microchip MPLABreg X IDE and Atmel Studio 7ndash One green power and status LEDndash Programming and debuggingndash Virtual serial port (CDC)ndash Two debug GPIO channels (DGI GPIO)

bull USB Poweredbull Adjustable Target Voltage

ndash MIC5353 LDO regulator controlled by the on-board debuggerndash 18ndash51V output voltage (limited by USB input voltage)ndash 500 mA maximum output current (limited by ambient temperature and output voltage)

12 Board OverviewThe Microchip AVR128DB48 Curiosity Nano Evaluation Kit is a hardware platform to evaluate the AVR128DB48microcontroller

Figure 1-1 AVR128DB48 Curiosity Nano Board Overview

User Switch

User LED(LED0)

AVR128DB48MCU

32768 kHz Crystal

1600 MHzCrystal

DebuggerPowerStatus

Micro-USBConnector

VDDIO2 MVIO Pins

AVR128DB48 Curiosity NanoIntroduction

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 4

2 Getting Started

21 Quick StartSteps to start exploring the AVR128DB48 Curiosity Nano board

1 Download Microchip MPLABreg X IDE and MPLABreg XC C Compiler or download Atmel Studio 72 Launch MPLABreg X IDE or Atmel Studio 73 Optional Use MPLABreg Code Configurator or Atmel START to generate drivers and examples4 Write your application code5 Connect a USB cable (Standard-A to Micro-B or Micro-AB) between the PC and the debug USB port on the

board

Info bull MPLABreg X IDE supports XC C compilers and the AVRreg and Armreg Toolchains (GCC Compilers)bull Microchiprsquos XC8 C Compiler supports all 8-bit PICreg and AVRreg microcontrollersbull Included in the Atmel Studio 7 download are the AVRreg and Armreg Toolchains (GCC Compilers)

211 Driver Installation

When the board is connected to your computer for the first time the operating system will perform a driver softwareinstallation The driver file supports both 32- and 64-bit versions of Microsoftreg Windowsreg XP Windows VistaregWindows 7 Windows 8 and Windows 10 The drivers for the board are included with both MPLABreg X IDE and AtmelStudio 7

212 Kit Window

Once the board is powered the green status LED will be lit and both MPLABreg X IDE and Atmel Studio 7 will auto-detect which boards are connected The Kit Window in MPLABreg X IDE and Atmel Studio 7 will present relevantinformation like data sheets and board documentation The AVR128DB48 device on the AVR128DB48 CuriosityNano board is programmed and debugged by the on-board debugger and therefore no external programmer ordebugger tool is required

Tip  The Kit Window can be opened in MPLABreg X IDE through the menu bar Window gt Kit Window

213 MPLABreg X IDE Device Family Packs

Microchip MPLABreg X IDE requires specific information to support devices and tools This information is contained inversioned packs For the AVR128DB48 Curiosity Nano board MPLABreg X version 540 with device family pack ldquoAVR-Dx_DFPrdquo version 12 and tool pack ldquonEDBG_TPrdquo version 11 or newer are required For more information on packsand how to upgrade them refer to the MPLABreg X IDE Userrsquos guide - Work with Device Packs

Tip  The latest device family packs are available through Tools gt Packs in MPLABreg X IDE or online at Microchip MPLABreg X Packs Repository

AVR128DB48 Curiosity NanoGetting Started

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 5

214 Atmel Studio 7 Device Family PackAtmel Studio 7 requires specific information to support devices This information is contained in versioned packs Forthe AVR128DB48 Curiosity Nano board Atmel Studio 7 version 702397 with device family pack ldquoAVR-Dx_DFPrdquoversion 11 or newer are required For more information on packs and how to upgrade them refer to the Atmel Studio7 User Guide - Device Pack Manager

Tip  The latest device family packs are available through Tools gt Device Pack Manager in Atmel Studio 7or online at Atmel Studio Packs Repository

22 Design Documentation and Relevant LinksThe following list contains links to the most relevant documents and software for the AVR128DB48 Curiosity Nanoboard

bull MPLABreg X IDE - MPLAB X IDE is a software program that runs on a PC (Windowsreg Mac OSreg Linuxreg) todevelop applications for Microchip microcontrollers and digital signal controllers It is called an IntegratedDevelopment Environment (IDE) because it provides a single integrated ldquoenvironmentrdquo to develop code forembedded microcontrollers

bull Atmel Studio - Free IDE for the development of CC++ and assembler code for microcontrollersbull IAR Embedded Workbenchreg for AVRreg - This is a commercial CC++ compiler that is available for AVR

microcontrollers There is a 30-day evaluation version as well as a 4 KB code-size-limited kick-start versionavailable from their website

bull MPLABreg XC Compilers - MPLABreg XC8 C Compiler is available as a free unrestricted-use downloadMicrochips MPLABreg XC8 C Compiler is a comprehensive solution for your projectrsquos software development onWindowsreg macOSreg or Linuxreg MPLABreg XC8 supports all 8-bit PICreg and AVRreg microcontrollers (MCUs)

bull MPLABreg Code Configurator - MPLAB Code Configurator (MCC) is a free software plug-in that provides agraphical interface to configure peripherals and functions specific to your application

bull Atmel START - Atmel START is an online tool that hosts code examples helps the user to select and configuresoftware components and tailor your embedded application in a usable and optimized manner

bull Microchip Sample Store - Microchip sample store where you can order samples of devicesbull MPLAB Data Visualizer - MPLAB Data Visualizer is a program used for processing and visualizing data The

Data Visualizer can receive data from various sources such as serial ports and on-board debuggerrsquos DataGateway Interface as found on Curiosity Nano and Xplained Pro boards

bull Studio Data Visualizer - Studio Data Visualizer is a program used for processing and visualizing data TheData Visualizer can receive data from various sources such as serial ports on-board debuggerrsquos Data GatewayInterface as found on Curiosity Nano and Xplained Pro boards and power data from the Power Debugger

bull Microchip PICreg and AVRreg Examples - Microchip PIC and AVR Device Examples is a collection of examplesand labs that use Microchip development boards to showcase the use of PIC and AVR device peripherals

bull Microchip PICreg and AVRreg Solutions - Microchip PIC and AVR Device Solutions contains completeapplications for use with Microchip development boards ready to be adapted and extended

bull AVR128DB48 Curiosity Nano website - Kit information latest user guide and design documentationbull AVR128DB48 Curiosity Nano on Microchip Direct - Purchase this kit on Microchip Direct

AVR128DB48 Curiosity NanoGetting Started

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 6

3 Preprogrammed ApplicationThe AVR128DB48 mounted on the Curiosity Nano Evaluation Kit is preprogrammed with an application ready toutilize the integrated operational amplifiers

To get started with the application you can find the user guide code and hex files for this application available onlineon GitHub

bull MPLAB Xreg IDEbull Atmel Studio 7

AVR128DB48 Curiosity NanoPreprogrammed Application

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 7

4 Curiosity NanoCuriosity Nano is an evaluation platform of small boards with access to most of the microcontrollers IOs Theplatform consists of a series of low pin count microcontroller (MCU) boards with on-board debuggers which areintegrated with MPLABreg X IDE and Atmel Studio 7 Each board is identified in the IDE When plugged in a KitWindow is displayed with links to key documentation including relevant user guides application notes data sheetsand example code Everything is easy to find The on-board debugger features a virtual serial port (CDC) for serialcommunication to a host PC and a Data Gateway Interface (DGI) with debug GPIO pin(s)

41 On-Board Debugger OverviewAVR128DB48 Curiosity Nano contains an on-board debugger for programming and debugging The on-boarddebugger is a composite USB device consisting of several interfaces

bull A debugger that can program and debug the AVR128DB48 in both MPLABreg X IDE and Atmel Studio 7bull A mass storage device that allows drag-and-drop programming of the AVR128DB48bull A virtual serial port (CDC) that is connected to a Universal Asynchronous ReceiverTransmitter (UART) on the

AVR128DB48 and provides an easy way to communicate with the target application through terminal softwarebull A Data Gateway Interface (DGI) for code instrumentation with logic analyzer channels (debug GPIO) to visualize

program flow

The on-board debugger controls a Power and Status LED (marked PS) on the AVR128DB48 Curiosity Nano BoardThe table below shows how the LED is controlled in different operation modes

Table 4-1 On-Board Debugger LED Control

Operation Mode Power and Status LED

Boot Loader mode The LED blinks slowly during power-up

Power-up The LED is ON

Normal operation The LED is ON

Programming Activity indicator The LED blinks slowly during programmingdebugging

Drag-and-dropprogramming Success The LED blinks slowly for 2 sec

Failure The LED blinks rapidly for 2 sec

Fault The LED blinks rapidly if a power fault is detected

SleepOff The LED is OFF The on-board debugger is either in a sleep mode or powered downThis can occur if the board is externally powered

Info  Slow blinking is approximately 1 Hz and rapid blinking is approximately 5 Hz

411 DebuggerThe on-board debugger on the AVR128DB48 Curiosity Nano Board appears as a Human Interface Device (HID) onthe host computerrsquos USB subsystem The debugger supports full-featured programming and debugging of theAVR128DB48 using both MPLABreg X IDE and Atmel Studio 7 as well as some third-party IDEs

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 8

Remember  Keep the debuggerrsquos firmware up-to-date Firmware upgrades are done automatically whenusing MPLABreg X IDE or Atmel Studio 7

412 Virtual Serial Port (CDC)The virtual serial port (CDC) is a general purpose serial bridge between a host PC and a target device

4121 OverviewThe on-board debugger implements a composite USB device that includes a standard Communications Device Class(CDC) interface which appears on the host as a virtual serial port The CDC can be used to stream arbitrary data inboth directions between the host computer and the target All characters sent through the virtual serial port on thehost computer will be transmitted as UART on the debuggerrsquos CDC TX pin and UART characters captured on thedebuggerrsquos CDC RX pin will be returned to the host computer through the virtual serial port

Figure 4-1 CDC Connection

Target MCU

UART TX

UART RX

Debugger

USBCDC RX

CDC TX

PCTerminalSoftware

TargetReceive

TargetSend

TerminalReceive

TerminalSend

Info  As shown in Figure 4-1 the debuggerrsquos CDC TX pin is connected to a UART RX pin on the targetfor receiving characters from the host computer Similarly the debuggerrsquos CDC RX pin is connected to aUART TX pin on the target for transmitting characters to the host computer

4122 Operating System SupportOn Windows machines the CDC will enumerate as Curiosity Virtual COM Port and appear in the Ports section of theWindows Device Manager The COM port number can also be found there

Info  On older Windows systems a USB driver is required for CDC This driver is included in installationsof both MPLABreg X IDE and Atmel Studio 7

On Linux machines the CDC will enumerate and appear as devttyACM

Info  tty devices belong to the ldquodialoutrdquo group in Linux so it may be necessary to become a member ofthat group to have permissions to access the CDC

On MAC machines the CDC will enumerate and appear as devttyusbmodem Depending on which terminalprogram is used it will appear in the available list of modems as usbmodem

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 9

Info  For all operating systems Be sure to use a terminal emulator that supports DTR signaling See 4124 Signaling

4123 LimitationsNot all UART features are implemented in the on-board debugger CDC The constraints are outlined here

bull Baud rate Must be in the range of 1200 bps to 500 kbps Any baud rate outside this range will be set to theclosest limit without warning Baud rate can be changed on-the-fly

bull Character format Only 8-bit characters are supportedbull Parity Can be odd even or nonebull Hardware flow control Not supportedbull Stop bits One or two bits are supported

4124 SignalingDuring USB enumeration the host OS will start both communication and data pipes of the CDC interface At thispoint it is possible to set and read back the baud rate and other UART parameters of the CDC but data sending andreceiving will not be enabled

When a terminal connects on the host it must assert the DTR signal As this is a virtual control signal implementedon the USB interface it is not physically present on the board Asserting the DTR signal from the host will indicate tothe on-board debugger that a CDC session is active The debugger will then enable its level shifters (if available) andstart the CDC data send and receive mechanisms

Deasserting DTR in debugger firmware version 120 or earlier has the following behaviorbull Debugger UART receiver is disabled so no further data will be transferred to the host computerbull Debugger UART transmitter will continue to send data that is queued for sending but no new data is accepted

from the host computerbull Level shifters (if available) are not disabled so the debugger CDC TX line remains driven

Deasserting DTR in debugger firmware version 121 or later has the following behaviorbull Debugger UART receiver is disabled so no further data will be transferred to the host computerbull Debugger UART transmitter will continue to send data that is queued for sending but no new data is accepted

from the host computerbull Once the ongoing transmission is complete level shifters (if available) are disabled so the debugger CDC TX

line will become high-impedance

Remember  Set up the terminal emulator to assert the DTR signal Without the signal the on-boarddebugger will not send or receive any data through its UART

Tip  The on-board debuggerrsquos CDC TX pin will not be driven until the CDC interface is enabled by thehost computer Also there are no external pull-up resistors on the CDC lines connecting the debugger andthe target which means that during power-up these lines are floating To avoid any glitches resulting inunpredictable behavior like framing errors the target device should enable the internal pull-up resistor onthe pin connected to the debuggerrsquos CDC TX pin

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 10

4125 Advanced Use

CDC Override ModeIn normal operation the on-board debugger is a true UART bridge between the host and the device However incertain use cases the on-board debugger can override the basic operating mode and use the CDC TX and RX pinsfor other purposes

Dropping a text file into the on-board debuggerrsquos mass storage drive can be used to send characters out of thedebuggerrsquos CDC TX pin The filename and extension are trivial but the text file must start with the charactersCMDSEND_UART=

Debugger firmware version 120 or earlier has the following limitationsbull The maximum message length is 50 characters ndash all remaining data in the frame are ignoredbull The default baud rate used in this mode is 9600 bps but if the CDC is already active or has been configured

the previously used baud rate still applies

Debugger firmware version 121 and later has the following limitationsfeaturesbull The maximum message length may vary depending on the MSCSCSI layer timeouts on the host computer

andor operating system A single SCSI frame of 512 bytes (498 characters of payload) is guaranteed and filesof up to 4 KB will work on most systems The transfer will complete on the first NULL character encountered inthe file

bull The baud rate used is always 9600 bps for the default commandCMDSEND_UART=

The CDC Override Mode should not be used simultaneously with data transfer over CDCterminal If a CDCterminal session is active at the time a file is received via CDC Override Mode it will be suspended for theduration of the operation and resumed once complete

bull Additional commands are supported with explicit baud ratesCMDSEND_9600=

CMDSEND_115200=

CMDSEND_460800=

USB-Level Framing ConsiderationsSending data from the host to the CDC can be done byte-wise or in blocks which will be chunked into 64-byte USBframes Each such frame will be queued up for sending to the debuggerrsquos CDC TX pin Transferring a small amountof data per frame can be inefficient particularly at low baud rates as the on-board debugger buffers frames and notbytes A maximum of four 64-byte frames can be active at any time The on-board debugger will throttle the incomingframes accordingly Sending full 64-byte frames containing data is the most efficient method

When receiving data on the debuggerrsquos CDC RX pin the on-board debugger will queue up the incoming bytes into64-byte frames which are sent to the USB queue for transmission to the host when they are full Incomplete framesare also pushed to the USB queue at approximately 100 ms intervals triggered by USB start-of-frame tokens Up toeight 64-byte frames can be active at any time

If the host (or the software running on it) fails to receive data fast enough an overrun will occur When this happensthe last-filled buffer frame will be recycled instead of being sent to the USB queue and a full frame of data will belost To prevent this occurrence the user must ensure that the CDC data pipe is being read continuously or theincoming data rate must be reduced

413 Mass Storage DeviceThe on-board debugger includes a simple Mass Storage Device implementation which is accessible for readwriteoperations via the host operating system to which it is connected

It providesbull Read access to basic text and HTML files for detailed kit information and support

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 11

bull Write access for programming Intelreg HEX formatted files into the target devicersquos memorybull Write access for simple text files for utility purposes

4131 Mass Storage Device ImplementationThe on-board debugger implements a highly optimized variant of the FAT12 file system that has several limitationspartly due to the nature of FAT12 itself and optimizations made to fulfill its purpose for its embedded application

The Curiosity Nano USB device is USB Chapter 9-compliant as a mass storage device but does not in any way fulfillthe expectations of a general purpose mass storage device This behavior is intentional

When using the Windows operating system the on-board debugger enumerates as a Curiosity Nano USB Devicethat can be found in the disk drives section of the device manager The CURIOSITY drive appears in the file managerand claims the next available drive letter in the system

The CURIOSITY drive contains approximately one MB of free space This does not reflect the size of the targetdevicersquos Flash in any way When programming an Intelreg HEX file the binary data are encoded in ASCII withmetadata providing a large overhead so one MB is a trivially chosen value for disk size

It is not possible to format the CURIOSITY drive When programming a file to the target the filename may appear inthe disk directory listing This is merely the operating systemrsquos view of the directory which in reality has not beenupdated It is not possible to read out the file contents Removing and replugging the board will return the file systemto its original state but the target will still contain the application that has been previously programmed

To erase the target device copy a text file starting with ldquoCMDERASErdquo onto the disk

By default the CURIOSITY drive contains several read-only files for generating icons as well as reporting status andlinking to further information

bull AUTORUNICO ndash icon file for the Microchip logobull AUTORUNINF ndash system file required for Windows Explorer to show the icon filebull KIT-INFOHTM ndash redirect to the development board websitebull KIT-INFOTXT ndash a text file containing details about the boardrsquos debugger firmware version board name USB

serial number device and drag-and-drop supportbull STATUSTXT ndash a text file containing the programming status of the board

Info  STATUSTXT is dynamically updated by the on-board debugger The contents may be cached bythe OS and therefore do not reflect the correct status

4132 Limitations of Drag-and-Drop Programming

Lock BitsLock bits included in the hex file will be ignored when using drag-and-drop programming To program lock bits useMPLABreg X IDE or Atmel Studio 7

Enabling CRC Check in FusesIt is not advisable to enable the CRC check in the target devicersquos fuses when using drag-and-drop programming Thisis because a subsequent chip erase (which does not affect fuse bits) will effect a CRC mismatch and the applicationwill fail to boot To recover a target from this state a chip erase must be done using MPLABreg X IDE orAtmel Studio 7 which will automatically clear the CRC fuses after erasing

4133 Special CommandsSeveral utility commands are supported by copying text files to the mass storage disk The filename or extension isirrelevant ndash the command handler reacts to content only

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 12

Table 4-2 Special File Commands

Command Content Description

CMDERASE Executes a chip erase of the target

CMDSEND_UART= Sends a string of characters to the CDC UART See ldquoCDCOverride Moderdquo

CMDSEND_9600=CMDSEND_115200=CMDSEND_460800=

Sends a string of characters to the CDC UART at the baud ratespecified Note that only the baud rates explicitly specified hereare supported See ldquoCDC Override Moderdquo (Debugger firmwarev121 or newer)

CMDRESET Resets the target device by entering Programming mode andthen exiting Programming mode immediately thereafter Exacttiming can vary according to the programming interface of thetarget device (Debugger firmware v116 or newer)

CMDPOWERTOGGLE Powers down the target and restores power after a 100 msdelay If external power is provided this has no effect(Debugger firmware v116 or newer)

CMD0V Powers down the target device by disabling the target supplyregulator If external power is provided this has no effect(Debugger firmware v116 or newer)

CMD1V8 Sets the target voltage to 18V If external power is providedthis has no effect (Debugger firmware v121 or newer)

CMD3V3 Sets the target voltage to 33V If external power is providedthis has no effect (Debugger firmware v116 or newer)

CMD5V0 Sets the target voltage to 50V If external power is providedthis has no effect (Debugger firmware v116 or newer)

Info  The commands listed here are triggered by the content being sent to the mass storage emulateddisk and no feedback is provided in the case of either success or failure

414 Data Gateway Interface (DGI)Data Gateway Interface (DGI) is a USB interface for transporting raw and timestamped data between on-boarddebuggers and host computer-based visualization tools MPLAB Data Visualizer is used on the host computer todisplay debug GPIO data It is available as a plug-in for MPLABreg X IDE or a stand-alone application that can be usedin parallel with MPLABreg X IDE or Atmel Studio 7

Although DGI encompasses several physical data interfaces the AVR128DB48 Curiosity Nano implementationincludes logic analyzer channels

bull Two debug GPIO channels (also known as DGI GPIO)

4141 Debug GPIODebug GPIO channels are timestamped digital signal lines connecting the target application to a host computervisualization application They are typically used to plot the occurrence of low-frequency events on a time-axis ndash forexample when certain application state transitions occur

The figure below shows the monitoring of the digital state of a mechanical switch connected to a debug GPIO inMPLAB Data Visualizer

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 13

Figure 4-2 Monitoring Debug GPIO with MPLABreg Data Visualizer

Debug GPIO channels are timestamped so the resolution of DGI GPIO events is determined by the resolution of theDGI timestamp module

Important  Although bursts of higher-frequency signals can be captured the useful frequency range ofsignals for which debug GPIO can be used is up to about 2 kHz Attempting to capture signals above thisfrequency will result in data saturation and overflow which may cause the DGI session to be aborted

4142 TimestampingDGI sources are timestamped as they are captured by the debugger The timestamp counter implemented in theCuriosity Nano debugger increments at 2 MHz frequency providing a timestamp resolution of a half microsecond

42 Curiosity Nano Standard PinoutThe 12 edge connections closest to the USB connector on Curiosity Nano boards have a standardized pinout Theprogramdebug pins have different functions depending on the target programming interface as shown in the tableand figure below

Table 4-3 Curiosity Nano Standard Pinout

Debugger Signal Target MCU Description

ID mdash ID line for extensions

CDC TX UART RX USB CDC TX line

CDC RX UART TX USB CDC RX line

DBG0 UPDI Debug data line

DBG1 GPIO1 debug GPIO1

DBG2 GPIO0 debug GPIO0

DBG3 RESET Reset line

NC mdash No connect

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 14

continuedDebugger Signal Target MCU Description

VBUS mdash VBUS voltage for external use

VOFF mdash Voltage Off input Disables the target regulator andtarget voltage when pulled low

VTG mdash Target voltage

GND mdash Common ground

Figure 4-3 Curiosity Nano Standard Pinout

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

43 Power SupplyThe board is powered through the USB port and contains two LDO regulators one to generate 33V for the on-boarddebugger and an adjustable LDO regulator for the target microcontroller AVR128DB48 and its peripherals Thevoltage from the USB connector can vary between 44V to 525V (according to the USB specification) and will limitthe maximum voltage to the target The figure below shows the entire power supply system on AVR128DB48Curiosity Nano

Figure 4-4 Power Supply Block Diagram

USBTarget MCU

Power source

Cut strap

Power consumer P3V3DEBUGGER

Power converter

DEBUGGERRegulator

VUSB

TargetRegulator

Power Supply strap

Adjust

Level shifter

VLVLVREG

IO IO GPIOstraps

IO

OnOffMeasure OnOff

ID systemVOFF

PTC Fuse

Power protection

VBUS

Target Power strap

VTG

431 Target RegulatorThe target voltage regulator is a MIC5353 variable output LDO The on-board debugger can adjust the voltage outputsupplied to the board target section by manipulating the MIC5353rsquos feedback voltage The hardware implementation

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 15

is limited to an approximate voltage range from 17V to 51V Additional output voltage limits are configured in thedebugger firmware to ensure that the output voltage never exceeds the hardware limits of the AVR128DB48microcontroller The voltage limits configured in the on-board debugger on AVR128DB48 Curiosity Nano are 18ndash55V

Info  The target voltage is set to 33V when the board is manufactured It can be changed throughMPLABreg X IDE project properties and in the Atmel Studio 7 device programming dialog Any change tothe target voltage is persistent even after a power toggle The resolution is less than 5 mV but may belimited to 10 mV by the adjustment program

Info  Voltage settings that are set up in MPLABreg X IDE are not immediately applied to the board Thenew voltage setting is applied to the board when the debugger is accessed in any way like pushing theRefresh Debug Tool Status button in the project dashboard tab or programmingreading program memory

Info  There is a simple option to adjust the target voltage with a drag-and-drop command text file to theboard This supports a set of common target voltages See section 4133 Special Commands for furtherdetails

The MIC5353 supports a maximum current load of 500 mA It is an LDO regulator in a small package placed on asmall printed circuit board (PCB) and the thermal shutdown condition can be reached at lower loads than 500 mAThe maximum current load depends on the input voltage the selected output voltage and the ambient temperatureThe figure below shows the safe operating area for the regulator with an input voltage of 51V and an ambienttemperature of 23degC

Figure 4-5 Target Regulator Safe Operation Area

The voltage output of the target regulator is continuously monitored (measured) by the on-board debugger If it ismore than 100 mV overunder the voltage setting value an error condition will be flagged and the target voltageregulator will be turned off This will detect and handle any short-circuit conditions It will also detect and handle if anexternal voltage which causes VCC_TARGET to move outside of the voltage setting monitoring window of plusmn100 mVis suddenly applied to the VTG pin without setting the VOFF pin low

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 16

Info  If the external voltage is lower than the monitoring window lower limit (target voltage setting ndash 100mV) the on-board debugger status LED will blink rapidly If the external voltage is higher than themonitoring window upper limit (target voltage setting + 100 mV) the on-board debugger status LED willcontinue to shine If the external voltage is removed the status LED will start to blink rapidly until the on-board debugger detects the new situation and turns the target voltage regulator back on

432 External SupplyAVR128DB48 Curiosity Nano can be powered by an external voltage instead of the on-board target regulator Whenthe Voltage Off (VOFF) pin is shorted to ground (GND) the on-board debugger firmware disables the target regulatorand it is safe to apply an external voltage to the VTG pin

It is also safe to apply an external voltage to the VTG pin when no USB cable is plugged into the DEBUG connectoron the board

The VOFF pin can be tied lowlet go at any time This will be detected by a pin-change interrupt to the on-boarddebugger which controls the target voltage regulator accordingly

WARNINGApplying an external voltage to the VTG pin without shorting VOFF to GND may cause permanent damageto the board

WARNINGDo not apply any voltage to the VOFF pin Let the pin float to enable the power supply

WARNINGAbsolute maximum external voltage is 55V for the on-board level shifters and the standard operatingcondition of the AVR128DB48 is 18ndash55V Applying a higher voltage may cause permanent damage to theboard

Info  If an external voltage is applied without pulling the VOFF pin low and an external supply pulls thevoltage lower than the monitoring windowrsquos lower limit (target voltage setting - 100 mV) the on-boarddebugger status LED will blink rapidly and shut the on-board regulator off If an external voltage issuddenly removed when the VOFF pin is not pulled low the status LED will start to blink rapidly until theon-board debugger detects the new situation and switches the target voltage regulator back on

Programming debugging and data streaming is still possible with an external power supply ndash the debugger andsignal level shifters will be powered from the USB cable Both regulators the debugger and the level shifters arepowered down when the USB cable is removed

Info  In addition to the power consumed by the AVR128DB48 and its peripherals approximately 100 microAwill be drawn from any external power source to power the on-board level shifters and voltage monitorcircuitry when a USB cable is plugged in the DEBUG connector on the board When a USB cable is notplugged in some current is used to supply the level shifters voltage pins which have a worst-case currentconsumption of approximately 5 microA Typical values may be as low as 100 nA

433 VBUS Output PinAVR128DB48 Curiosity Nano has a VBUS output pin that can be used to power external components that need a 5Vsupply The VBUS output pin has a PTC fuse to protect the USB against short circuits A side effect of the PTC fuseis a voltage drop on the VBUS output with higher current loads The chart below shows the voltage versus the currentload of the VBUS output

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 17

Figure 4-6 VBUS Output Voltage vs Current

434 Power Supply ExceptionsThis is a summary of most exceptions that can occur with the power supply

Target Voltage Shuts DownThis can happen if the target section draws too much current at a given voltage This will cause the thermal shutdownsafety feature of the MIC5353 regulator to kick in To avoid this reduce the current load of the target section

Target Voltage Setting is Not ReachedThe maximum output voltage is limited by the USB input voltage (specified to be 44-525V) and the voltage dropover the MIC5353 regulator at a given voltage setting and current consumption If a higher output voltage is neededuse a USB power source that can provide a higher input voltage or use an external voltage supply on the VTG pin

Target Voltage is Different From SettingThis can be caused by an externally applied voltage to the VTG pin without setting the VOFF pin low If the targetvoltage differs more than 100 mV overunder the voltage setting it will be detected by the on-board debugger andthe internal voltage regulator will be shut down To fix this issue remove the applied voltage from the VTG pin andthe on-board debugger will enable the on-board voltage regulator when the new condition is detected Note that thePS LED will be blinking rapidly if the target voltage is below 100 mV of the setting but will be lit normally when it ishigher than 100 mV above the setting

No Or Very Low Target Voltage and PS LED is Blinking RapidlyThis can be caused by a full or partial short-circuit and is a special case of the issue mentioned above Remove theshort-circuit and the on-board debugger will re-enable the on-board target voltage regulator

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 18

No Target Voltage and PS LED is Lit 1This occurs if the target voltage is set to 00V To fix this set the target voltage to a value within the specified voltagerange for the target device

No Target Voltage and PS LED is Lit 2This can be the issue if power jumper J100 andor J101 is cut and the target voltage regulator is set to a value withinthe specified voltage range for the target device To fix this solder a wirebridge between the pads for J100J101 oradd a jumper on J101 if a pin header is mounted

VBUS Output Voltage is Low or Not PresentThis is most lightly caused by a high-current drain on VBUS and the protection fuse (PTC) will reduce the current orcut off completely Reduce the current consumption on the VBUS pin to fix this issue

44 Low-Power MeasurementPower to the AVR128DB48 is connected from the on-board power supply and VTG pin through a 100 mil pin headermarked with ldquoPOWERrdquo in silkscreen (J101) To measure the power consumption of the AVR128DB48 and otherperipherals connected to the board cut the Target Power strap and connect an ammeter over the strap

To measure the lowest possible power consumption follow these steps1 Cut the POWER strap with a sharp tool2 Solder a 1x2 100 mil pin header in the footprint3 Connect an ammeter to the pin header4 Write firmware that

41 Tri-states any IO connected to the on-board debugger42 Sets the microcontroller in its lowest power Sleep state

5 Program the firmware into the AVR128DB48

Figure 4-7 Target Power Strap

Target Power strap (top side)

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 19

Tip  A 100-mil pin header can be soldered into the Target Power strap (J101) footprint for easyconnection of an ammeter Once the ammeter is no longer needed place a jumper cap on the pin header

Info  The on-board level shifters will draw a small amount of current even when they are not in use Amaximum of 2 microA can be drawn from each IO pin connected to a level shifter for a total of 10 microA Keepany IO pin connected to a level shifter in tri-state to prevent leakage All IOs connected to the on-boarddebugger are listed in 5251 On-Board Debugger Connections To prevent any leakage to the on-boardlevel shifters they can be disconnected completely as described in 84 Disconnecting the On-boardDebugger

45 Programming External MicrocontrollersThe on-board debugger on AVR128DB48 Curiosity Nano can be used to program and debug microcontrollers onexternal hardware

451 Supported DevicesAll external AVR microcontrollers with the UPDI interface can be programmed and debugged with the on-boarddebugger with Atmel Studio

External SAM microcontrollers that have a Curiosity Nano Board can be programmed and debugged with the on-board debugger with Atmel Studio

AVR128DB48 Curiosity Nano can program and debug external AVR128DB48 microcontrollers with MPLAB X IDE

452 Software ConfigurationNo software configuration is required to program and debug the same device that is mounted on the board

To program and debug a different microcontroller than what is mounted on the board Atmel Studio must beconfigured to allow free selection of devices and programming interfaces

1 Navigate to Tools gt Options through the menu system at the top of the application2 Select the Tools gt Tool settings category in the options window3 Set the Hide unsupported devices option to False

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 20

Figure 4-8 Hide Unsupported Devices

Info  Atmel Studio allows any microcontroller and interface to be selected when Hide unsupporteddevices is set to False also microcontrollers and interfaces which are not supported by the on-boarddebugger

453 Hardware ModificationsThe on-board debugger is connected to the AVR128DB48 by default These connections must be removed beforeany external microcontroller can be programmed or debugged Cut the GPIO straps shown in the figure below with asharp tool to disconnect the AVR128DB48 from the on-board debugger

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 21

Figure 4-9 Programming and Debugging Connections to Debugger

GPIO straps (bottom side)

Info  Cutting the connections to the debugger will disable programming debugging and data streamingfrom the AVR128DB48 mounted on the board

Tip  Solder in 0Ω resistors across the footprints or short-circuit them with solder to reconnect the signalsbetween the on-board debugger and the AVR128DB48

454 Connecting to External MicrocontrollersThe figure and table below show where the programming and debugging signals must be connected to program anddebug external microcontrollers The on-board debugger can supply power to the external hardware or use anexternal voltage as a reference for its level shifters Read more about the power supply in 43 Power Supply

The on-board debugger and level shifters actively drive data and clock signals (DBG0 DBG1 and DBG2) used forprogramming and debugging and in most cases the external resistor on these signals can be ignored Pull-downresistors are required on the ICSPtrade data and clock signals to debug PICreg microcontrollers

DBG3 is an open-drain connection and requires a pull-up resistor to function

AVR128DB48 Curiosity Nano has a pull-up resistor R200 connected to its RESET signal (DBG3) The location ofthe pull-up resistor is shown in the 82 Assembly Drawing in the appendix

Remember bull Connect GND and VTG to the external microcontrollerbull Tie the VOFF pin to GND if the external hardware has its own power supplybull Make sure there are pull-down resistors on the ICSP data and clock signals (DBG0 and DBG1) to

support the debugging of PIC microcontrollers

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 22

Figure 4-10 Curiosity Nano Standard Pinout

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

Table 4-4 Programming and Debugging Interfaces

Curiosity Nano Pin UPDI ICSPtrade SWD

DBG0 UPDI DATA SWDIO

DBG1 mdash CLK SWCLK

DBG2 mdash mdash mdash

DBG3 mdash MCLR RESET

46 Connecting External DebuggersEven though there is an on-board debugger external debuggers can be connected directly to the AVR128DB48Curiosity Nano to programdebug the AVR128DB48 The on-board debugger keeps all the pins connected to theAVR128DB48 and board edge in tri-state when not actively used Therefore the on-board debugger will not interferewith any external debug tools

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 23

Figure 4-11 Connecting the MPLABreg PICkittrade 4 In-Circuit DebuggerProgrammer to AVR128DB48 CuriosityNano

2345678 1

VDD

GroundDATA

2 = VDD

3 = Ground

4 = PGD

5 = Unused

6 = Unused

7 = Unused

8 = Unused

1 = Unused

MPLABreg PICkittrade 4

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 24

Figure 4-12 Connecting the Atmel-ICE to AVR128DB48 Curiosity Nano

VDD

Ground

DATA

AVRregSAM

3 = UPDI

4 = VTG

5 = Unused

6 = Unused

7 = Unused

8 = Unused

1 = Unused

2 = GND

9 = Unused

10 = Unused

Atmel-ICE

21 9

10

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

CAUTIONTo avoid contention between the external debugger and the on-board debugger do not start anyprogrammingdebug operation with the on-board debugger through MPLABreg X IDE or Atmel Studio 7 ormass storage programming while the external tool is active

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 25

5 Hardware User Guide

51 Connectors

511 AVR128DB48 Curiosity Nano PinoutAll the AVR128DB48 IO pins are accessible at the edge connectors on the board The image below shows the boardpinout For all available functions on each pin refer to the IO Multiplexing and Considerations section in theAVR128DB48 data sheet

Figure 5-1 AVR128DB48 Curiosity Nano Pinout

USB

DEBUGGER

AVR128DB48

SW0

LED0

PS LEDNC

NC

IDID

CDC RX

CD

CR

XUSART3 TXPB0

CDC TX

CD

CT

XUSART3 RXPB1

DBG1

DB

G1PB3LED0

DBG2

DB

G2PB2SW0

PF4

PF

4USART2 TX

PF5

PF

5USART2 RX

PA2

PA

2TWI0 SDA

PA3

PA

3TWI0 SCL

PA4

PA

4SPI0 MOSI

PA5

PA

5SPI0 MISO

PA6

PA

6SPI0 SCK

PA7

PA

7SPI0 SS

GND

GN

D

PB0

PB

0USART3 TXCDC RX

PB1

PB

1USART3 RXCDC TX

PF2

PF

2

PF3

PF

3

PC0

PC

0

PC1

PC

1

PC2

PC

2

PC3

PC

3

GND

GN

D

(PA0)

(PA

0)XTALHF1

(PA1)

(PA

1)XTALHF2

PB2

PB

2SW0

PB3

PB

3LED0

VBUS

VB

US

VOFF

VO

FF

DBG3

DB

G3 PF6

DBG0

DB

G0 UPDI

GND

GN

D

VTG

VT

G

PD6

PD

6 AIN6

PD3

PD

3 AIN3 OP0 INN

PD2

PD

2 AIN2 OP0 OUT TCA0 WO2

PD1

PD

1 AIN1 OP0 INP TCA0 WO1

PD0

PD

0 AIN0 TCA0 WO0

PD7

PD

7 AIN7 OP1 INN

PD5

PD

5 AIN5 OP1 OUT

PD4

PD

4 AIN4 OP1 INP

GND

GN

D

PE3

PE

3 OP2 INN

PE2

PE

2 OP2 OUT

PE1

PE

1 OP2 INP

PE0

PE

0

PC7

PC

7

PC6

PC

6

PC5

PC

5

PC4

PC

4

GND

GN

D

PB5

PB

5

PB4

PB

4

(PF1)

(PF

1) XTAL32K2

(PF0)

(PF

0) XTAL32K1

DEBUGGERAVR128DB48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

MVIO

OPAMP

Shared pin

AVR128DB48Curiosity Nano

512 Using Pin HeadersThe edge connector footprint on AVR128DB48 Curiosity Nano has a staggered design where each hole is shifted 8mil (~02 mm) off-center The hole shift allows the use of regular 100 mil pin headers on the board without solderingOnce the pin headers are firmly in place they can be used in normal applications like pin sockets and prototypingboards without any issues

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 26

Figure 5-2 Attaching Pin-Headers to the Curiostiy Nano Board

Figure 5-3 Connecting to Curiosity Nano Base for Click boardstrade

Tip  Start at one end of the pin header and gradually insert the header along the length of the boardOnce all the pins are in place use a flat surface to push them in

Tip  For applications where the pin headers will be used permanently it is still recommended to solderthem in place

Important  Once the pin headers are in place they are hard to remove by hand Use a set of pliers andcarefully remove the pin headers to avoid damage to the pin headers and PCB

513 Multi-Voltage IO

The AVR128DB48 Curiosity Nano MCU has support for Multi-Voltage IO (MVIO) AVR128DB48 MVIO pins areconnected to the edge connector at PC0-PC7 MVIO pins are capable of regular IO-pin behavior

MVIO can be configured in one of two supply modesbull Single-Supply mode All IO pins including MVIO-capable pins are powered by VCC_TARGET By default

VCC_TARGET is connected to VDDIO2 through a 0-ohm resistor (R204)bull Dual-Supply mode MVIO-capable pins are powered by an external power supply connected to VDDIO2 Non-

MVIO pins are powered by VCC_TARGET

Dual-Supply mode allows MVIO-pins to be powered at different voltages than pins powered from VCC_TARGET

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 27

WARNINGThe absolute maximum external voltage range for the AVR128DB48 is 18ndash55V Applying a higher voltagemay cause permanent damage to the board

By default AVR128DB48 Curiosity Nano board is configured for single-supply mode To use Dual-Supply mode somehardware modifications are required

WARNINGBefore any hardware modifications are done make sure the board is disconnected from USB or externalpower

bull Disconnect resistor R204 connecting VDDIO2 to VCC_TARGETbull Connect a new power supply to VDDIO2 and ground at J212bull J212 does not have reverse polarity protection Make sure to match polarity between the power supply and

J212 Positive-polarity to J212-pin 1 and negative-polarity to J212-pin 2

The resistor R204 VDDIO2 and J212 can be seen in Figure 5-4

Figure 5-4 MVIO and VDDIO2 Connections

J212 R204

WARNINGApplying an external voltage to VDDIO2 pin without removing resistor R204 may cause permanentdamage to the board

WARNINGJ212 does not have reverse polarity protection Applying voltage to the wrong pin may cause permanentdamage to the board

514 Operational AmplifiersAVR128DB48 features three internal operational amplifiers with a flexible connection scheme using analogmultiplexers and resistor ladders This allows a large number of analog signal conditioning configurations manyrequiring no external components

Table 5-1 OPAMP Pin Connections

OPAMP Poisitive Input (INP) Negative Input (INN) Output (OUT)

OP0 PD1 PD3 PD2

OP1 PD4 PD7 PD5

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 28

continuedOPAMP Poisitive Input (INP) Negative Input (INN) Output (OUT)

OP2 PE1 PE3 PE2

For information about OPAMP on the edge connector and any shared functionality see 511 AVR128DB48 CuriosityNano Pinout

52 Peripherals

521 LEDThere is one yellow user LED available on the AVR128DB48 Curiosity Nano board that can be controlled by eitherGPIO or PWM The LED can be activated by driving the connected IO line to GND

Table 5-2 LED Connection

AVR128DB48 Pin Function Shared Functionality

PB3 Yellow LED0 Edge connector On-board debugger

522 Mechanical SwitchThe AVR128DB48 Curiosity Nano board has one mechanical switch This is a generic user-configurable switchWhen the switch is pressed it will drive the IO line to ground (GND)

Tip  There is no externally connected pull-up resistor on the switch To use the switch make sure that aninternal pull-up resistor is enabled on pin PB2

Table 5-3 Mechanical Switch

AVR128DB48 Pin Description Shared Functionality

PB2 User switch (SW0) Edge connector On-board debugger

523 32768 kHz Crystal

On the AVR128DB48 Curiosity Nano board is a mounted 32768 kHz crystal of type VMK3-9001-32K7680000 thecrystal is accurate to within 20 ppm Using the External 32768 kHz Crystal Oscillator (XOSC32K) module inAVR128DB48 with the mounted 32768 kHz crystal generates a clock signal that is significantly more accurate thanthe Internal 32768 kHz Ultra Low-Power Oscillator (OSC32K) module can generate alone With the Auto-Tunefeature the 32768 kHz can be used as a reference to improve the accuracy of the internal oscillator This is an idealreference clock for the Real-Time Counter module in AVR128DB48

The 32768 kHz crystal is connected to AVR128DB48 on PF0 and PF1 which are also routed to the edge connectorthrough two solder points PF0 and PF1 are disconnected from the edge connector by default to reduce the chanceof an external signal causing contention with the crystal and to remove excessive capacitance on the lines

Next to the 32768 kHz crystal is a cut-strap (J209) which can be used to measure the oscillator safety factor This isdone by cutting the strap and adding a 0402 SMD resistor across the strap More information about oscillatorallowance and safety factor can be found in the AN2648 application note from Microchip

Cut straps and solder points can be seen in Figure 5-5

Table 5-4 32768 kHz Crystal Connections

AVR128DB48 Pin Function Shared Functionality

PF0 XTAL32K1 (Crystal input) Edge connector

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 29

continuedAVR128DB48 Pin Function Shared Functionality

PF1 XTAL32K2 (Crystal output) Edge connector

PA0 and PA1 can be used as GPIO To do so some hardware modifications are required

WARNINGBefore any hardware modifications are done make sure the board is disconnected from the USB orexternal power

bull Disconnect the 32768 kHz crystal by cutting the two straps on the top side of the board next to the crystal(J207 J208) The crystal should be disconnected when using the pin as GPIO as this might harm the crystal

bull Connect the IO lines to the edge connector by placing solder blobs on the circular solder points marked PF0and PF1 on the bottom side of the board (J210 J211)

Figure 5-5 Crystal Connection and Cut Straps

Top side Boom side

J211

J210

J207

J20832768 kHz Crystal

J209

524 1600 MHz Crystal

On the AVR128DB48 Curiosity Nano board is a mounted 1600 MHz crystal of type VXM7-9040-16M0000000 thecrystal is accurate to within 20 ppm Using the External High-Frequency Crystal Oscillator (XOSCHF) module inAVR128DB48 with the mounted 1600 MHz crystal generates a clock signal that is significantly more accurate thanthe Internal High-Frequency Oscillator (OSCHF) module

The 1600 MHz crystal is connected to AVR128DB48 on PA0 and PA1 which are also routed to the edge connectorthrough two solder points PA0 and PA1 are disconnected from the edge connector by default to reduce the chanceof an external signal causing contention with the crystal and to remove excessive capacitance on the lines

Next to the 1600 MHz crystal is a cut-strap (J217) which can be used to measure the oscillator safety factor This isdone by cutting the strap and adding a 0402 SMD resistor across the strap More information about oscillatorallowance and safety factor can be found in the AN2648 application note from Microchip

Cut straps and solder points can be seen in Figure 5-6

Table 5-5 Crystal Connections

AVR128DB48 Pin Function Shared Functionality

PA0 XTALHF1 (Crystal input) Edge connector

PA1 XTALHF2 (Crystal output) Edge connector

PA0 and PA1 can be used as GPIO To do so some hardware modifications are required

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 30

WARNINGBefore any hardware modifications are done make sure the board is disconnected from USB or externalpower

bull Disconnect the 1600 MHz crystal by cutting the two straps on the top side of the board next to the crystal (J215J216) The crystal should be disconnected when using the pin as GPIO as this might harm the crystal

bull Connect the IO lines to the edge connector by placing solder blobs on the circular solder points marked PA0and PA1 on the bottom side of the board (J213 J214)

Figure 5-6 Crystal Connection and Cut Straps

Top side Boom side

J214

J213

J216

J2151600 MHzCrystal

J217

525 On-Board Debugger ImplementationAVR128DB48 Curiosity Nano features an on-board debugger that can be used to program and debug theAVR128DB48 using UPDI The on-board debugger also includes a virtual serial port (CDC) interface over UART anddebug GPIO Both MPLABreg X IDE and Atmel Studio 7 can be used as a front-end for the on-board debugger forprogramming and debugging MPLAB Data Visualizer can be used as a front-end for the CDC and debug GPIO

5251 On-Board Debugger ConnectionsThe table below shows the connections between the target and the debugger section All connections between thetarget and the debugger are tri-stated as long as the debugger is not actively using the interface Hence since thereare little contaminations of the signals the pins can be configured to anything the user wants

For further information on how to use the capabilities of the on-board debugger see 41 On-Board DebuggerOverview

Table 5-6 On-Board Debugger Connections

AVR128DB48Pin

Debugger Pin Function Shared Functionality

PB1 CDC TX UART RX (AVR128DB48 RX line) Edge connector

PB0 CDC RX UART TX (AVR128DB48 TX line) Edge connector

UPDI DBG0 UPDI Edge connector

PB3 DBG1 LED0Debug GPIO1 Edge connector

PB2 DBG2 SW0Debug GPIO0 Edge connector

PF6 DBG3 RESET Edge connector

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 31

6 Hardware Revision History and Known IssuesThis user guide is written to provide information about the latest available revision of the board The followingsections contain information about known issues a revision history of older revisions and how older revisions differfrom the latest revision

61 Identifying Product ID and RevisionThe revision and product identifier of the AVR128DB48 Curiosity Nano Board can be found in two ways Either byutilizing the MPLABreg X IDE or Atmel Studio 7 Kit Window or by looking at the sticker on the bottom side of the PCB

By connecting AVR128DB48 Curiosity Nano to a computer with MPLABreg X IDE or Atmel Studio 7 running the KitWindow will pop up The first six digits of the serial number which is listed under kit information contain the productidentifier and revision

Tip  The Kit Window can be opened in MPLABreg X IDE through the menu bar Window gt Kit Window

The same information can be found on the sticker on the bottom side of the PCB Most boards will have the identifierand revision printed in plain text as A09-nnnnrr where ldquonnnnrdquo is the identifier and ldquorrrdquo is the revision Boards withlimited space have a sticker with only a data matrix code containing the product identifier revision and serialnumber

The serial number string has the following format

nnnnrrssssssssss

n = product identifier

r = revision

s = serial number

The product identifier for AVR128DB48 Curiosity Nano is A09‑3372

62 Revision 3AVR128DB48 silicon revision A5 or later is mounted on this revision of the board

63 Revision 2Revision 2 is the initially released board revision

AVR128DB48 silicon revision A4 is mounted on this revision of the board

AVR128DB48 Curiosity NanoHardware Revision History and Known Issues

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 32

7 Document Revision HistoryDoc Rev Date Comments

A 092020 Initial document release

AVR128DB48 Curiosity NanoDocument Revision History

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 33

8 Appendix

81 SchematicFigure 8-1 AVR128DB48 Curiosity Nano Schematic

11

22

33

44

55

66

77

88

DD

CC

BB

AA

2 of

4

AV

R12

8DB

48 C

uri

osit

y N

ano

240

820

20A

VR

128D

B48

_Cur

iosi

ty_N

ano_

Targ

et_M

CU

Sch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA

Rev

isio

n

File

P

CB

Num

ber

PC

B

Rev

isio

n

Des

ign

ed w

ith

Dra

wn

By

ML

Shee

t Titl

e

Targ

et M

CU

Eng

inee

rA

H

A08

-305

71

Size

A3

A09

-337

22

Page

D

ateA

ltium

com

GN

D

VD

DIO

2

100n

C20

1

GN

D

PA5_

SPI0

_MIS

OPA

6_SP

I0_S

CK

PA7_

SPI0

_SS

PB0_

USA

RT

3_T

XPB

1_U

SAR

T3_

RX

PB2_

SW0_

DB

G2

PB3_

LE

D0_

DB

G1

PB

4P

B5

PC

0P

C1

PC

2

PC3

PC4PC5PC6PC7PD0_AIN0_TCA0_WO0PD1_AIN1_OP0_INP_TCA0_WO1PD2_AIN2_OP0_OUT_TCA0_WO2PD3_AIN3_OP0_INNPD4_AIN4_OP1_INP

PA3_TWI0_SCL

PA1_XTALHF2

UPDI_DBG0

PF5_USART2_RX

PF3

PF

2PF

1_X

TA

L32

K2

PF0_

XT

AL

32K

1P

E3_

OP

2_IN

NP

E2_

OP

2_O

UT

PE

1_O

P2_

INP

PE

0

PD5_

AIN

5_O

P1_

OU

TPD

6_A

IN6

PD7_

AIN

7_O

P1_

INN

GN

D

VC

C_T

AR

GE

T

100n

C20

2

GN

DV

CC

_TA

RG

ET

100n

C20

0

PF1_XTAL32K2

PF0_XTAL32K1

PA2_TWI0_SDA

PA0_XTALHF1

PF4_USART2_TX

PA4_SPI0_MOSI

GN

D

PA7_

SPI0

_SS

PA6_

SPI0

_SC

KPA

5_SP

I0_M

ISO

PA4_

SPI0

_MO

SIPA

3_T

WI0

_SC

LPA

2_T

WI0

_SD

A

PC

0P

C1

PC

2P

C3

PB

4P

B5

PD7_

AIN

7_O

P1_

INN

PD6_

AIN

6

PD2_

AIN

2_O

P0_

OU

T_T

CA

0_W

O2

PD1_

AIN

1_O

P0_

INP_

TC

A0_

WO

1PD

0_A

IN0_

TC

A0_

WO

0

PD5_

AIN

5_O

P1_

OU

TPD

4_A

IN4_

OP

1_IN

P

PD3_

AIN

3_O

P0_

INN

32K

Hz

Cry

stal

PB0_

USA

RT

3_T

XPB

1_U

SAR

T3_

RX

1kR203

US

ER

LE

D

VC

C_T

AR

GE

T

PF6_DBG3

PB2_SW0_DBG2

PB3_LED0_DBG1

GN

D

USE

R B

UT

TO

N

PB3_

LE

D0_

DB

G1

PB2_

SW0_

DB

G2

PB1_

USA

RT

3_R

XPB

0_U

SAR

T3_

TX

PF4_

USA

RT

2_T

XPF

5_U

SAR

T2_

RX

PF

2P

F3

PC

4P

C5

PC

6P

C7

1kR202

YELLOWLEDSML-D12Y1WT86

2 1

D200

TS604VM1-035CR13

4 2

SW20

0

GN

DV

CC

_ED

GE

GN

DG

ND

GN

DG

ND

UPD

I_D

BG

0P

F6_

DB

G3

J209

PB3_

LE

D0_

DB

G1

PB2_

SW0_

DB

G2

AV

R12

8DB

48

22u

FC

205

VC

C_E

DG

E

GN

D

DBG0

CDC_TXCDC_RX

DBG2

DBG1

DBG3

DBG2

DE

BU

GG

ER

CO

NN

EC

TIO

NS

DBG1

DBG3DBG0

VOFF

ID_SYS

ID_SYS

VOFF

TA

RG

ET

BU

LK

VC

C_T

AR

GE

TR

ESE

T P

ull

VB

US

CD

C R

X3

CD

C T

X4

DB

G1

5

DB

G2

6

0 T

X7

1 R

X8

2 SD

A9

3 S

CL

10

4 M

OSI

11

5 M

ISO

12

6 S

CK

13

7 S

S14

GN

D15

0 (T

X)

16

1 (R

X)

17

218

319

020

GN

D24

DB

G3

54

DB

G0

53

GN

D52

VC

C51

PW

M 3

46

AD

C 2

45

AD

C 1

44

AD

C 0

43

GN

D42

438

434

GN

D33

AD

C 7

50

AD

C 6

49

AD

C 5

48

PW

M 4

47

DE

BU

GG

ER

TAR

GE

T

ID2

VO

FF

55

121

222

323

025

126

227

328

429

530

631

732

535

636

737

539

640

741

RE

SER

VE

D1

VB

US

56

CN

AN

O56

-pin

edg

e co

nnec

tor

J200

J201

J203

J205

J206

J202

J204

PF1_

XT

AL

32K

2PF

0_X

TA

L32

K1

NC

XOUT

XIN

47kR200

AV

R12

8DB

48

UPD

I

GPI

O1

GPI

O0

RE

SET

DB

G0

DB

G1

DB

G2

DB

G3

Deb

ugge

r

CD

C T

X

CD

C R

X

UA

RT

3 R

X

UA

RT

3 T

X

VT

G1

8V -

55

VPB

3

PB

2

PF

6

UP

DI

PB

0

PB

1

Nam

eP

in

PE

3_O

P2_

INN

PE

2_O

P2_

OU

TP

E1_

OP

2_IN

PP

E0

J207

J208

PF

0P

F1

PA5

1

PA6

2

PA7

3

PB0

4

PB1

5

PB2

6

PB3

7

PB4

8

PB5

9

PC0

10

PC1

11

PC2

12

PC313

VDDIO214

GND15

PC416

PC517

PC618

PC719

PD020

PD121

PD222

PD323

PD424

PD5

25

PD6

26

PD7

27

AVDD

28

GND

29

PE0

30

PE1

31

PE2

32

PE3

33

XTAL32K1PF0

34

XTAL32K2PF1

35

PF2

36

PF337

PF438

PF539

PF640

UPDI41

VDD42

GND43

XTALHF1PA044

XTALHF2PA145

PA246

PA347

PA448

AV

R12

8DB

48-I

PT

U20

0

0RR204

GN

D

VC

C_T

AR

GE

T

VDDIO2

GND

J210

J211

82p

C20

48

2pC

203

GN

DG

ND

16M

Hz

Cry

stal

J217

XHFOUT

XHFIN

J214

J213

GN

D

J215

J216

PA0_XTALHF1

PA1_XTALHF2

PA0_

XT

AL

HF

1PA

1_X

TA

LH

F2

PA0

PA1

1 2

J212 N

M

15pF

C20

615

pFC

207

13

24 16

000

MH

zV

XM

7-90

40-1

6M00

0000

0TR

XC

201

GN

D32

768

kHz

VM

K3-

9001

-32K

7680

000T

R

XC

200

CDC_TX

CDC_RX

CD

C_T

XC

DC

_RX

Cry

stal

dat

ashe

et

Ccr

ysta

l = 9

pFm

ax E

SR

= 7

0kO

hmA

ccur

acy

plusmn20p

pm

AV

R48

DB

128

data

shee

tC

xin

= 4

0pF

(ty

pica

l val

ue)

Cxo

ut =

40

pF (

typi

cal v

alue

)C

lasymp1

( (1

40

pF)+

(1

40p

F)

)asymp

20p

FM

axim

um L

oad

= 1

25p

FM

axim

um E

SR =

50k

Ohm

Est

imat

ed C

pcb

= 0

5pF

Est

imat

ed lo

adC

= 2

(C

crys

tal-

Cpa

ra -

Cpc

b)C

= 2

(9p

F -

20

pF -

05

pF)

C =

13

0pF

Sele

cted

in d

esig

n af

ter

veri

fica

tion

C=

82

pF8

2pF

NO

TE

on

UA

RT

CD

C

RX

TX

onth

ehe

ader

deno

tes

the

inpu

tout

put d

irec

tion

of th

e si

gnal

resp

ectiv

e to

its

sou

rce

CD

C T

X is

out

put f

rom

the

DE

BU

GG

ER

C

DC

RX

is in

put t

o th

e D

EB

UG

GE

R

TX

is o

utpu

t fro

m th

e T

AR

GE

T d

evic

eR

X is

inpu

t to

the

TA

RG

ET

dev

ice

NO

TE

on

I2C

No

pull

-ups

on

boar

d P

ull-

ups

shou

ld b

em

ount

ed c

lose

to s

lave

dev

ice(

s)

WA

RN

ING

M

ake

sure

tore

mov

e R

204

befo

reap

plyi

ng p

ower

to J

212

Cry

stal

dat

ashe

et

Ccr

ysta

l = 1

2pF

max

ES

R =

60O

hmA

ccur

acy

plusmn30p

pm

AV

R48

DB

128

data

shee

tC

xin

= 4

0pF

(ty

pica

l val

ue)

Cxo

ut =

40

pF (

typi

cal v

alue

)C

lasymp1

( (1

40

pF)+

(1

40p

F)

)asymp

20p

FM

axim

um L

oad

= 1

25p

FM

axim

um E

SR =

k

Ohm

Est

imat

ed C

pcb

= 0

5pF

Est

imat

ed lo

adC

= 2

(C

crys

tal-

Cpa

ra -

Cpc

b)C

= 2

(12

pF -

20

pF -

05

pF)

C =

19

0pF

Sele

cted

in d

esig

n af

ter

veri

fica

tion

C=

15p

F1

5pF

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 34

11

22

33

44

55

66

77

88

DD

CC

BB

AA

3 of

4

AV

R12

8DB

48 C

uri

osit

y N

ano

2020

-06-

26A

VR

128D

B48

_Cur

iosi

ty_N

ano_

Deb

ugge

rSch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA

Rev

isio

n

Fil

eP

CB

Num

ber

PC

B

Rev

isio

n

Des

ign

ed w

ith

Dra

wn

By

ML

Shee

t Tit

le

Deb

ugge

r

Eng

inee

rA

H

A08

-305

71

Size

A3

A09

-337

22

Page

D

ateA

ltium

com

DE

BU

GG

ER

USB

MIC

RO

-B C

ON

NE

CT

OR

GN

D

USB

D_P

USB

D_N

100n

C10

7

100n

C10

8

1kR

107

VC

C_P

3V3

SRST

STA

TU

S_L

ED

SHIE

LD

VB

US

VC

C_P

3V3

GN

D

TP

100

Test

poin

t Arr

ay

12

34

56

78

910

TC

KT

DO

TM

SV

sup

TD

IG

ND

TR

STSR

STV

Tre

fG

ND

J102

GN

D

47u

F

C10

0

DBG0

DB

G0

21

GR

EE

N L

ED

SML

-P12

MT

T86

R

D10

0

VBUS

1

D-

2

D+

3

GND

5

SHIELD1

6

SHIELD2

7

ID

4

SHIELD3

8

SHIELD4

9 MU

-MB

0142

AB

2-26

9

J105

PAD

33

PA00

1

PA01

2

PA02

3

PA03

4

GND 10VDDANA 9

PA04

5

PA05

6

PA06

7

PA07

8

PA08 11

PA09 12

PA10 13

PA11 14

PA14 15

PA15 16

PA16

17

PA17

18

PA18

19

PA19

20

PA22

21

USB_SOFPA23

22

USB_DMPA24

23

USB_DPPA25

24

PA2725 RESETN26 PA2827 GND28 VDDCORE29 VDDIN30 SWDCLKPA3031 SWDIOPA3132

SAM

D21

E18

A-M

UT

U10

0

VOUT

1

VOUT

2

GND 3

EN

4

VIN

6

NC

5

EP 7

MIC

5528

-33

YM

TU

101

VC

C_P

3V3

GN

D

USB

D_P

USB

D_N

GN

D

1uC

106

VC

C_M

CU

_CO

RE

VC

C_P

3V3

VC

C_P

3V3

22u

FC

101

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

3

VC

C_P

3V3

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

4

VC

C_P

3V3

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

5

VC

C_P

3V3

GN

D

GN

D GN

D

GN

D

VC

C_E

DG

E

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

7

VC

C_P

3V3

GN

DDBG2

DB

G3_

CT

RL

S1_0

_TX

S1_1

_RX

S0_2

_TX

DA

CV

TG

_AD

C

RE

SER

VE

D

S0_3

_CL

K

DBG0_CTRL

CD

C_T

X_C

TR

L

BO

OT

DE

BU

GG

ER

PO

WE

RS

TA

TU

S L

ED

EN

1

BYP

6

VOUT

4

GND

2

VIN

3

NCADJ

5

GND

7

MIC

5353

U10

2

100n

C10

2

GN

D

GN

D

47kR101

27kR104 G

ND

33k

R10

6

22u

F

C10

3 GN

D

1kR

108

J100

VC

C_L

EV

EL

VC

C_R

EG

UL

AT

OR

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

6

VC

C_P

3V3

GN

DDBG1

CD

C_R

X

CD

C_T

X

DBG3

DBG1_CTRL

DE

BU

GG

ER

RE

GU

LA

TO

R

REG_ENABLE

RE

G_E

NA

BL

E

47kR103

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

47kR102

47kR105

SWC

LK

GN

D

47kR100 G

ND

DB

G2

S0_0

_RX

DB

G1_

CT

RL

DB

G0_

CT

RL

DB

G3

OP

EN

DR

AIN

TA

RG

ET

AD

JUST

AB

LE

RE

GU

LA

TO

R

SRST

DE

BU

GG

ER

TE

ST

PO

INT DBG2_CTRL

VO

FF

CD

C_R

X_C

TR

L

47kR109

DB

G1

CD

C_T

X_C

TR

L

CD

C_R

X_C

TR

L

SWC

LK

REG_ADJUST

DBG2_GPIO

DB

G3_

CT

RL

DB

G2_

CT

RL

UP

DI

UPD

I

GPI

O

GPI

O

RE

SET

Sign

al

DB

G0

DB

G1

DB

G2

DB

G3

ICS

PIn

terf

ace

DA

T

CL

K

GPI

O

MC

LR

DB

G3

CD

C T

X

CD

C R

X

UA

RT

RX

UA

RT

TX

UA

RT

RX

UA

RT

TX

TA

RG

ET

TA

RG

ET

1kR

110

VBUS_ADC

1

23

DM

N65

D8L

FB

Q10

1

VC

C-

-

ID_SYS

VOFF

1kR112

VC

C_P

3V3

VT

G_A

DC

DA

C

MIC

9416

3

VIN

B2

VOUT

A1

VIN

A2

EN

C2

GND

C1

VOUT

B1

U10

8

GN

D

ID_S

YS

VT

G_E

N

VTG_EN

VBUS_ADC

SWD

IO

ID_S

YS

TP

101

GN

DSW

DIO

VO

FF

47kR111 G

ND

ID P

IN

MC

3621

3

F10

0

VC

C_V

BU

S

VC

C_V

BU

S

VC

C_V

BU

S

J101

VC

C_T

AR

GE

T

47k

R11

3

CDC_TX

CDC_RX

Prog

ram

min

g co

nnec

tor

for

fact

ory

prog

ram

min

g of

DE

BU

GG

ER

MIC

5528

V

in 2

5V

to 5

5V

Vou

t F

ixed

33

VIm

ax 5

00m

AD

ropo

ut 2

60m

V

500

mA

MIC

5353

V

in 2

6V

to 6

VV

out

12

5V to

51

VIm

ax 5

00m

AD

ropo

ut (

typi

cal)

50m

V

150m

A 1

60m

V

500

mA

Acc

urac

y 2

in

itia

lT

herm

al s

hutd

own

and

curr

ent l

imit

Max

imum

out

put v

olta

ge is

lim

ited

by

the

inpu

t vol

tage

and

the

drop

out v

olta

ge in

the

regu

lato

r(V

max

= V

in -

dro

pout

)

J100

-

Cut

-str

ap u

sed

for

full

sep

arat

ion

of ta

rget

pow

er f

rom

the

leve

l shi

fter

s an

don

-boa

rd r

egul

ator

s-

For

cur

rent

mea

sure

men

ts u

sing

the

on-b

oard

pow

er s

uppl

y th

isst

rap

mus

t be

cut a

nd a

nam

met

er c

onne

cted

acr

oss

- F

or c

urre

nt m

easu

rem

ents

usi

ng a

n ex

tern

al p

ower

sup

ply

this

str

ap c

ould

be

cut f

or m

ore

accu

rate

mea

sure

men

ts L

eaka

ge b

ack

thro

ugh

the

swit

ch is

in th

e m

icro

am

pere

ran

ge

PT

C R

eset

tabl

e fu

se

Hol

d cu

rren

t 5

00m

AT

rip

curr

ent

100

0mA

Adj

usta

ble

outp

ut a

nd li

mit

atio

ns

- T

he D

EB

UG

GE

R c

an a

djus

t the

out

put v

olta

ge o

f th

e re

gula

tor

betw

een

125

V a

nd 5

1V

to th

e ta

rget

-

The

vol

tage

out

put i

s li

mit

ed b

y th

e in

put (

US

B)

whi

ch c

an v

ary

betw

een

440

V to

52

5V-

The

leve

l shi

fter

s ha

ve a

min

imal

vol

tage

leve

l of

165

V a

nd w

ill l

imit

the

min

imum

ope

ratin

g vo

ltage

all

owed

for

the

targ

et to

sti

ll a

llow

com

mun

icat

ion

- T

he M

IC94

163

has

a m

inim

al v

olat

ege

leve

l of

170

V a

nd w

ill l

imit

the

min

imum

vol

tage

del

iver

ed to

the

targ

et

- F

irm

war

e co

nfig

urat

ion

wil

l lim

it th

e vo

ltage

ran

ge to

be

wit

hin

the

the

targ

et s

peci

fica

tion

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 35

82 Assembly DrawingFigure 8-2 AVR128DB48 Curiosity Nano Assembly Drawing Top

+

Cb

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20001 PAC20002 COC200

PAC20101 PAC20102 COC201

PAC20201 PAC20202 COC202 PAC20301

PAC20302 COC203

PAC20401

PAC20402 COC204

PAC20502

PAC20501 COC205

PAC20601

PAC20602 COC206 PAC20701

PAC20702 COC207 PAD10002 PAD10001 COD100

PAD20002

PAD20001 COD200

PAF10002

PAF10001 COF100

PAJ10002 PAJ10001 COJ100

PAJ10101 PAJ10102 COJ101

PAJ10201

PAJ10202

PAJ10203

PAJ10204

PAJ10205

PAJ10206 COJ102

PAJ10506

PAJ10507 PAJ10509

PAJ10508 PAJ105010

PAJ105011 PAJ10505

PAJ10504

PAJ10503

PAJ10502

PAJ10501

PAJ10500

COJ105

PAJ200056 PAJ200053

PAJ200028 PAJ20002 PAJ20001

PAJ200051 PAJ200050 PAJ200052 PAJ200049 PAJ200048 PAJ200047 PAJ200046 PAJ200045 PAJ200044 PAJ200043 PAJ200042 PAJ200041 PAJ200040 PAJ200039 PAJ200038 PAJ200037 PAJ200036 PAJ200035 PAJ200034 PAJ200033 PAJ200032 PAJ200031 PAJ200030 PAJ200029

PAJ20003 PAJ20004 PAJ20005 PAJ20006 PAJ20007 PAJ20008 PAJ20009 PAJ200010 PAJ200011 PAJ200012 PAJ200013 PAJ200014 PAJ200015 PAJ200016 PAJ200017 PAJ200018 PAJ200019 PAJ200020 PAJ200021 PAJ200022 PAJ200023 PAJ200026 PAJ200025 PAJ200024 PAJ200027

PAJ200054 PAJ200055 PAJ20000

COJ200

PAJ20102 PAJ20101 COJ201

PAJ20202 PAJ20201 COJ202

PAJ20302 PAJ20301 COJ203

PAJ20402 PAJ20401 COJ204

PAJ20502 PAJ20501 COJ205

PAJ20602 PAJ20601 COJ206 PAJ20702 PAJ20701 COJ207

PAJ20802 PAJ20801 COJ208

PAJ20902 PAJ20901 COJ209

PAJ21001 PAJ21002 PAJ21005 COJ210

PAJ21102 PAJ21101 PAJ21105 COJ211

PAJ21202 PAJ21201 COJ212

PAJ21301 PAJ21302 PAJ21305 COJ213

PAJ21401 PAJ21402 PAJ21405 COJ214

PAJ21502 PAJ21501 COJ215

PAJ21602 PAJ21601 COJ216 PAJ21702 PAJ21701 COJ217

COLABEL1

PAQ10101 PAQ10102 PAQ10103 PAQ10100

COQ101 PAR10002

PAR10001 COR100 PAR10101 PAR10102 COR101

PAR10202 PAR10201 COR102

PAR10302 PAR10301 COR103

PAR10401 PAR10402 COR104

PAR10502

PAR10501 COR105

PAR10601 PAR10602 COR106

PAR10702 PAR10701 COR107

PAR10801

PAR10802 COR108

PAR10901 PAR10902 COR109

PAR11001 PAR11002 COR110

PAR11101 PAR11102 COR111

PAR11201 PAR11202 COR112

PAR11302 PAR11301 COR113

PAR20001 PAR20002 COR200 PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203 PAR20401 PAR20402 COR204

PASW20003

PASW20004 PASW20002

PASW20001 COSW200

PATP10001 COTP100

PATP10101 COTP101 PAU100033

PAU100032 PAU100031 PAU100030 PAU100029 PAU100028 PAU100027 PAU100026 PAU100025 PAU100024

PAU100023

PAU100022

PAU100021

PAU100020

PAU100019

PAU100018

PAU100017 PAU100016 PAU100015 PAU100014 PAU100013 PAU100012 PAU100011 PAU100010

PAU10001

PAU10002

PAU10003

PAU10004

PAU10005

PAU10006

PAU10007

PAU10008 PAU10009

COU100

PAU10107

PAU10104 PAU10105 PAU10106

PAU10103 PAU10102 PAU10101 PAU10100 COU101 PAU10207

PAU10204 PAU10205

PAU10206

PAU10203 PAU10202

PAU10201

COU102

PAU10306

PAU10305 PAU10304 PAU10303

PAU10302 PAU10301 PAU10300

COU103

PAU10406

PAU10405 PAU10404 PAU10403

PAU10402 PAU10401 PAU10400

COU104

PAU10506

PAU10505 PAU10504 PAU10503

PAU10502 PAU10501 PAU10500

COU105

PAU10606

PAU10605 PAU10604 PAU10603

PAU10602 PAU10601 PAU10600

COU106

PAU10706

PAU10705 PAU10704 PAU10703

PAU10702 PAU10701 PAU10700

COU107

PAU1080A1 PAU1080A2

PAU1080B1 PAU1080B2

PAU1080C1 PAU1080C2 COU108

PAU20001 PAU20002 PAU20003 PAU20004 PAU20005 PAU20006 PAU20007 PAU20008 PAU20009 PAU200010 PAU200011 PAU200012 PAU200013 PAU200014 PAU200015 PAU200016 PAU200017 PAU200018 PAU200019 PAU200020 PAU200021 PAU200022 PAU200023 PAU200024 PAU200025 PAU200026 PAU200027 PAU200028 PAU200029 PAU200030 PAU200031 PAU200032 PAU200033 PAU200034 PAU200035 PAU200036

PAU200037 PAU200038 PAU200039 PAU200040 PAU200041 PAU200042 PAU200043 PAU200044 PAU200045 PAU200046 PAU200047 PAU200048

COU200

PAXC20001

PAXC20002 COXC200

PAXC20101 PAXC20102

PAXC20103 PAXC20104 COXC201

Figure 8-3 AVR128DB48 Curiosity Nano Assembly Drawing Bottom

tcR

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20001 PAC20002 COC200

PAC20101 PAC20102 COC201

PAC20201 PAC20202 COC202 PAC20301

PAC20302 COC203

PAC20401

PAC20402 COC204

PAC20502

PAC20501 COC205

PAC20601

PAC20602 COC206 PAC20701

PAC20702 COC207 PAD10002 PAD10001 COD100

PAD20002

PAD20001 COD200

PAF10002

PAF10001 COF100

PAJ10002 PAJ10001 COJ100

PAJ10101 PAJ10102 COJ101

PAJ10201

PAJ10202

PAJ10203

PAJ10204

PAJ10205

PAJ10206 COJ102

PAJ10506

PAJ10507 PAJ10509

PAJ10508 PAJ105010

PAJ105011 PAJ10505

PAJ10504

PAJ10503

PAJ10502

PAJ10501

PAJ10500

COJ105

PAJ200056 PAJ200053

PAJ200028 PAJ20002 PAJ20001

PAJ200051 PAJ200050 PAJ200052 PAJ200049 PAJ200048 PAJ200047 PAJ200046 PAJ200045 PAJ200044 PAJ200043 PAJ200042 PAJ200041 PAJ200040 PAJ200039 PAJ200038 PAJ200037 PAJ200036 PAJ200035 PAJ200034 PAJ200033 PAJ200032 PAJ200031 PAJ200030 PAJ200029

PAJ20003 PAJ20004 PAJ20005 PAJ20006 PAJ20007 PAJ20008 PAJ20009 PAJ200010 PAJ200011 PAJ200012 PAJ200013 PAJ200014 PAJ200015 PAJ200016 PAJ200017 PAJ200018 PAJ200019 PAJ200020 PAJ200021 PAJ200022 PAJ200023 PAJ200026 PAJ200025 PAJ200024 PAJ200027

PAJ200054 PAJ200055 PAJ20000

COJ200

PAJ20102 PAJ20101 COJ201

PAJ20202 PAJ20201 COJ202

PAJ20302 PAJ20301 COJ203

PAJ20402 PAJ20401 COJ204

PAJ20502 PAJ20501 COJ205

PAJ20602 PAJ20601 COJ206 PAJ20702 PAJ20701 COJ207

PAJ20802 PAJ20801 COJ208

PAJ20902 PAJ20901 COJ209

PAJ21001 PAJ21002 PAJ21005 COJ210

PAJ21102 PAJ21101 PAJ21105 COJ211

PAJ21202 PAJ21201 COJ212

PAJ21301 PAJ21302 PAJ21305 COJ213

PAJ21401 PAJ21402 PAJ21405 COJ214

PAJ21502 PAJ21501 COJ215

PAJ21602 PAJ21601 COJ216 PAJ21702 PAJ21701 COJ217

COLABEL1

PAQ10101 PAQ10102 PAQ10103 PAQ10100

COQ101 PAR10002

PAR10001 COR100 PAR10101 PAR10102 COR101

PAR10202 PAR10201 COR102

PAR10302 PAR10301 COR103

PAR10401 PAR10402 COR104

PAR10502

PAR10501 COR105

PAR10601 PAR10602 COR106

PAR10702 PAR10701 COR107

PAR10801

PAR10802 COR108

PAR10901 PAR10902 COR109

PAR11001 PAR11002 COR110

PAR11101 PAR11102 COR111

PAR11201 PAR11202 COR112

PAR11302 PAR11301 COR113

PAR20001 PAR20002 COR200 PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203 PAR20401 PAR20402 COR204

PASW20003

PASW20004 PASW20002

PASW20001 COSW200

PATP10001 COTP100

PATP10101 COTP101 PAU100033

PAU100032 PAU100031 PAU100030 PAU100029 PAU100028 PAU100027 PAU100026 PAU100025 PAU100024

PAU100023

PAU100022

PAU100021

PAU100020

PAU100019

PAU100018

PAU100017 PAU100016 PAU100015 PAU100014 PAU100013 PAU100012 PAU100011 PAU100010

PAU10001

PAU10002

PAU10003

PAU10004

PAU10005

PAU10006

PAU10007

PAU10008 PAU10009

COU100

PAU10107

PAU10104 PAU10105 PAU10106

PAU10103 PAU10102 PAU10101 PAU10100 COU101 PAU10207

PAU10204 PAU10205

PAU10206

PAU10203 PAU10202

PAU10201

COU102

PAU10306

PAU10305 PAU10304 PAU10303

PAU10302 PAU10301 PAU10300

COU103

PAU10406

PAU10405 PAU10404 PAU10403

PAU10402 PAU10401 PAU10400

COU104

PAU10506

PAU10505 PAU10504 PAU10503

PAU10502 PAU10501 PAU10500

COU105

PAU10606

PAU10605 PAU10604 PAU10603

PAU10602 PAU10601 PAU10600

COU106

PAU10706

PAU10705 PAU10704 PAU10703

PAU10702 PAU10701 PAU10700

COU107

PAU1080A1 PAU1080A2

PAU1080B1 PAU1080B2

PAU1080C1 PAU1080C2 COU108

PAU20001 PAU20002 PAU20003 PAU20004 PAU20005 PAU20006 PAU20007 PAU20008 PAU20009 PAU200010 PAU200011 PAU200012 PAU200013 PAU200014 PAU200015 PAU200016 PAU200017 PAU200018 PAU200019 PAU200020 PAU200021 PAU200022 PAU200023 PAU200024 PAU200025 PAU200026 PAU200027 PAU200028 PAU200029 PAU200030 PAU200031 PAU200032 PAU200033 PAU200034 PAU200035 PAU200036

PAU200037 PAU200038 PAU200039 PAU200040 PAU200041 PAU200042 PAU200043 PAU200044 PAU200045 PAU200046 PAU200047 PAU200048

COU200

PAXC20001

PAXC20002 COXC200

PAXC20101 PAXC20102

PAXC20103 PAXC20104 COXC201

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 36

83 Curiosity Nano Base for Click boardstrade

Figure 8-4 AVR128DB48 Curiosity Nano Pinout Mapping

US

B

DE

BU

GG

ER

AV

R1

28

DB

48

SW

0

LE

D0

PS

LE

DNC

NC

ID

ID

CDC RX

CDCRX

USART3 TX

PB0

CDC TX

CDCTX

USART3 RX

PB1

DBG1

DBG1

PB3

LED0

DBG2

DBG2

PB2

SW0

PF4

PF4

USART2 TX

PF5

PF5

USART2 RX

PA2

PA2

TWI0 SDA

PA3

PA3

TWI0 SCL

PA4

PA4

SPI0 MOSI

PA5

PA5

SPI0 MISO

PA6

PA6

SPI0 SCK

PA7

PA7

SPI0 SS

GND

GND

PB0

PB0

USART3 TX

CDC RX

PB1

PB1

USART3 RX

CDC TX

PF2

PF2

PF3

PF3

PC0

PC0

PC1

PC1

PC2

PC2

PC3

PC3

GND

GND

(PA0)

(PA0)

XTALHF1

(PA1)

(PA1)

XTALHF2

PB2

PB2

SW0

PB3

PB3

LED0

VBUS

VBUS

VOFF

VOFF

DBG3

DBG3

PF6

DBG0

DBG0

UPDI

GND

GND

VTG

VTG

PD6

PD6

AIN6

PD3

PD3

AIN3

OP0 INN

PD2

PD2

AIN2

OP0 OUT

TCA0 WO2

PD1

PD1

AIN1

OP0 INP

TCA0 WO1

PD0

PD0

AIN0

TCA0 WO0

PD7

PD7

AIN7

OP1 INN

PD5

PD5

AIN5

OP1 OUT

PD4

PD4

AIN4

OP1 INP

GND

GND

PE3

PE3

OP2 INN

PE2

PE2

OP2 OUT

PE1

PE1

OP2 INP

PE0

PE0

PC7

PC7

PC6

PC6

PC5

PC5

PC4

PC4

GND

GND

PB5

PB5

PB4

PB4

(PF1)

(PF1)

XTAL32K2

(PF0)

(PF0)

XTAL32K1

DE

BU

GG

ER

AV

R1

28

DB

48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

MVIO

OPAMP

Shared pin

AV

R1

28

DB

48

Cu

rio

sity

Na

no

1

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

2

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

3

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

Xp

lain

ed

Pro

Ext

en

sio

nE

XT

11

2

19

20

Cu

rio

sity

Na

no

Ba

sefo

r cl

ick

bo

ard

sT

M

PD4

PD0

PD6

PD3

PA7

PF5

PA6

PF4

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

PD5

PD1

PF3

PF2

PE2

PB1

PA6

PB0

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

PD7

PD2

PE1

PE0

PE3

PF5

PA6

PF4

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

ID

GND

PD5

PD7

PF3

PE1

PD1

PD2

PF2

PE3

PA2

PA3

PB1

PB0

PE2

PA4

PA5

PA6

GND

+33V

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 37

84 Disconnecting the On-board DebuggerThe on-board debugger and level shifters can be completely disconnected from the AVR128DB48

The block diagram below shows all connections between the debugger and the AVR128DB48 The rounded boxesrepresent connections to the board edge The signal names shown are also printed in silkscreen on the bottom sideof the board

To disconnect the debugger cut the straps shown in Figure 8-6

Attention  Cutting the GPIO straps to the on-board debugger will disable the virtual serial portprogramming debugging and data streaming Cutting the power supply strap will disconnect the on-boardpower supply

Tip  Any connection that is cut can be reconnected using solder Alternatively a 0Ω 0402 resistor can bemounted

Tip  When the debugger is disconnected an external debugger can be connected to holes shown in Figure 8-6 Details about connecting an external debugger are described in 46 Connecting ExternalDebuggers

Figure 8-5  On-Board Debugger Connections Block Diagram

DE

BU

GG

ER

TARGETLevel-Shift

PA04PA06PA07PA08PA16PA00PA01

USB

DIR x 5

VCC_P3V3

VBUS

VC

C_L

EV

EL

VC

C_T

AR

GE

TDBG0DBG1DBG2DBG3CDC TXCDC RX

CDC RX

CDC TX

DBG3

DBG2

DBG1

DBG0

GPIO straps

LDO

VOFF

LDO

VBUS VTG

VCC_EDGE

Power Supply strap Target Power strap

UART RXUART TX

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 38

Figure 8-6 On-Board Debugger Connection Cut Straps

GPIO straps (bottom side) Power Supply strap (top side)

85 Getting Started with IARIAR Embedded Workbenchreg for AVRreg is a proprietary high-efficiency compiler not based on GCC Programming anddebugging of AVR128DB48 Curiosity Nano is supported in IARtrade Embedded Workbench for AVR using the Atmel-ICEinterface Some initial settings must be set up in the project to get the programming and debugging to work

The following steps will explain how to get your project ready for programming and debugging

1 Make sure you have opened the project you want to configure Open the OPTIONS dialog for the project2 In the category General Options select the Target tab Select the device for the project or if not listed the

core of the device as shown in Figure 8-73 In the category Debugger select the Setup tab Select Atmel-ICE as the driver as shown in Figure 8-84 In the category Debugger gt Atmel-ICE select the Atmel-ICE 1 tab Select UPDI as the interface and

optionally select the UPDI frequency as shown in Figure 8-9

Info  If the selection of Debug Port (mentioned in step 4) is grayed out the interface is preselected andthe user can skip this configuration step

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 39

Figure 8-7 Select Target Device

Figure 8-8 Select Debugger

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 40

Figure 8-9 Configure Interface

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 41

The Microchip Website

Microchip provides online support via our website at wwwmicrochipcom This website is used to make files andinformation easily available to customers Some of the content available includes

bull Product Support ndash Data sheets and errata application notes and sample programs design resources userrsquosguides and hardware support documents latest software releases and archived software

bull General Technical Support ndash Frequently Asked Questions (FAQs) technical support requests onlinediscussion groups Microchip design partner program member listing

bull Business of Microchip ndash Product selector and ordering guides latest Microchip press releases listing ofseminars and events listings of Microchip sales offices distributors and factory representatives

Product Change Notification Service

Microchiprsquos product change notification service helps keep customers current on Microchip products Subscribers willreceive email notification whenever there are changes updates revisions or errata related to a specified productfamily or development tool of interest

To register go to wwwmicrochipcompcn and follow the registration instructions

Customer Support

Users of Microchip products can receive assistance through several channels

bull Distributor or Representativebull Local Sales Officebull Embedded Solutions Engineer (ESE)bull Technical Support

Customers should contact their distributor representative or ESE for support Local sales offices are also available tohelp customers A listing of sales offices and locations is included in this document

Technical support is available through the website at wwwmicrochipcomsupport

Microchip Devices Code Protection Feature

Note the following details of the code protection feature on Microchip devices

bull Microchip products meet the specifications contained in their particular Microchip Data Sheetbull Microchip believes that its family of products is secure when used in the intended manner and under normal

conditionsbull There are dishonest and possibly illegal methods being used in attempts to breach the code protection features

of the Microchip devices We believe that these methods require using the Microchip products in a manneroutside the operating specifications contained in Microchiprsquos Data Sheets Attempts to breach these codeprotection features most likely cannot be accomplished without violating Microchiprsquos intellectual property rights

bull Microchip is willing to work with any customer who is concerned about the integrity of its codebull Neither Microchip nor any other semiconductor manufacturer can guarantee the security of its code Code

protection does not mean that we are guaranteeing the product is ldquounbreakablerdquo Code protection is constantlyevolving We at Microchip are committed to continuously improving the code protection features of our productsAttempts to break Microchiprsquos code protection feature may be a violation of the Digital Millennium Copyright ActIf such acts allow unauthorized access to your software or other copyrighted work you may have a right to suefor relief under that Act

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 42

Legal Notice

Information contained in this publication is provided for the sole purpose of designing with and using Microchipproducts Information regarding device applications and the like is provided only for your convenience and may besuperseded by updates It is your responsibility to ensure that your application meets with your specifications

THIS INFORMATION IS PROVIDED BY MICROCHIP ldquoAS ISrdquo MICROCHIP MAKES NO REPRESENTATIONS ORWARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED WRITTEN OR ORAL STATUTORY OROTHERWISE RELATED TO THE INFORMATION INCLUDING BUT NOT LIMITED TO ANY IMPLIEDWARRANTIES OF NON-INFRINGEMENT MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSEOR WARRANTIES RELATED TO ITS CONDITION QUALITY OR PERFORMANCE

IN NO EVENT WILL MICROCHIP BE LIABLE FOR ANY INDIRECT SPECIAL PUNITIVE INCIDENTAL ORCONSEQUENTIAL LOSS DAMAGE COST OR EXPENSE OF ANY KIND WHATSOEVER RELATED TO THEINFORMATION OR ITS USE HOWEVER CAUSED EVEN IF MICROCHIP HAS BEEN ADVISED OF THEPOSSIBILITY OR THE DAMAGES ARE FORESEEABLE TO THE FULLEST EXTENT ALLOWED BY LAWMICROCHIPS TOTAL LIABILITY ON ALL CLAIMS IN ANY WAY RELATED TO THE INFORMATION OR ITS USEWILL NOT EXCEED THE AMOUNT OF FEES IF ANY THAT YOU HAVE PAID DIRECTLY TO MICROCHIP FORTHE INFORMATION Use of Microchip devices in life support andor safety applications is entirely at the buyerrsquos riskand the buyer agrees to defend indemnify and hold harmless Microchip from any and all damages claims suits orexpenses resulting from such use No licenses are conveyed implicitly or otherwise under any Microchip intellectualproperty rights unless otherwise stated

Trademarks

The Microchip name and logo the Microchip logo Adaptec AnyRate AVR AVR logo AVR Freaks BesTimeBitCloud chipKIT chipKIT logo CryptoMemory CryptoRF dsPIC FlashFlex flexPWR HELDO IGLOO JukeBloxKeeLoq Kleer LANCheck LinkMD maXStylus maXTouch MediaLB megaAVR Microsemi Microsemi logo MOSTMOST logo MPLAB OptoLyzer PackeTime PIC picoPower PICSTART PIC32 logo PolarFire Prochip DesignerQTouch SAM-BA SenGenuity SpyNIC SST SST Logo SuperFlash Symmetricom SyncServer TachyonTempTrackr TimeSource tinyAVR UNIO Vectron and XMEGA are registered trademarks of Microchip TechnologyIncorporated in the USA and other countries

APT ClockWorks The Embedded Control Solutions Company EtherSynch FlashTec Hyper Speed ControlHyperLight Load IntelliMOS Libero motorBench mTouch Powermite 3 Precision Edge ProASIC ProASIC PlusProASIC Plus logo Quiet-Wire SmartFusion SyncWorld Temux TimeCesium TimeHub TimePictra TimeProviderVite WinPath and ZL are registered trademarks of Microchip Technology Incorporated in the USA

Adjacent Key Suppression AKS Analog-for-the-Digital Age Any Capacitor AnyIn AnyOut BlueSky BodyComCodeGuard CryptoAuthentication CryptoAutomotive CryptoCompanion CryptoController dsPICDEMdsPICDEMnet Dynamic Average Matching DAM ECAN EtherGREEN In-Circuit Serial Programming ICSPINICnet Inter-Chip Connectivity JitterBlocker KleerNet KleerNet logo memBrain Mindi MiWi MPASM MPFMPLAB Certified logo MPLIB MPLINK MultiTRAK NetDetach Omniscient Code Generation PICDEMPICDEMnet PICkit PICtail PowerSmart PureSilicon QMatrix REAL ICE Ripple Blocker SAM-ICE Serial QuadIO SMART-IS SQI SuperSwitcher SuperSwitcher II Total Endurance TSHARC USBCheck VariSenseViewSpan WiperLock Wireless DNA and ZENA are trademarks of Microchip Technology Incorporated in the USAand other countries

SQTP is a service mark of Microchip Technology Incorporated in the USA

The Adaptec logo Frequency on Demand Silicon Storage Technology and Symmcom are registered trademarks ofMicrochip Technology Inc in other countries

GestIC is a registered trademark of Microchip Technology Germany II GmbH amp Co KG a subsidiary of MicrochipTechnology Inc in other countries

All other trademarks mentioned herein are property of their respective companiescopy 2020 Microchip Technology Incorporated Printed in the USA All Rights Reserved

ISBN 978-1-5224-6667-3

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 43

Quality Management SystemFor information regarding Microchiprsquos Quality Management Systems please visit wwwmicrochipcomquality

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 44

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupportwwwmicrochipcomsupportWeb AddresswwwmicrochipcomAtlantaDuluth GATel 678-957-9614Fax 678-957-1455Austin TXTel 512-257-3370BostonWestborough MATel 774-760-0087Fax 774-760-0088ChicagoItasca ILTel 630-285-0071Fax 630-285-0075DallasAddison TXTel 972-818-7423Fax 972-818-2924DetroitNovi MITel 248-848-4000Houston TXTel 281-894-5983IndianapolisNoblesville INTel 317-773-8323Fax 317-773-5453Tel 317-536-2380Los AngelesMission Viejo CATel 949-462-9523Fax 949-462-9608Tel 951-273-7800Raleigh NCTel 919-844-7510New York NYTel 631-435-6000San Jose CATel 408-735-9110Tel 408-436-4270Canada - TorontoTel 905-695-1980Fax 905-695-2078

Australia - SydneyTel 61-2-9868-6733China - BeijingTel 86-10-8569-7000China - ChengduTel 86-28-8665-5511China - ChongqingTel 86-23-8980-9588China - DongguanTel 86-769-8702-9880China - GuangzhouTel 86-20-8755-8029China - HangzhouTel 86-571-8792-8115China - Hong Kong SARTel 852-2943-5100China - NanjingTel 86-25-8473-2460China - QingdaoTel 86-532-8502-7355China - ShanghaiTel 86-21-3326-8000China - ShenyangTel 86-24-2334-2829China - ShenzhenTel 86-755-8864-2200China - SuzhouTel 86-186-6233-1526China - WuhanTel 86-27-5980-5300China - XianTel 86-29-8833-7252China - XiamenTel 86-592-2388138China - ZhuhaiTel 86-756-3210040

India - BangaloreTel 91-80-3090-4444India - New DelhiTel 91-11-4160-8631India - PuneTel 91-20-4121-0141Japan - OsakaTel 81-6-6152-7160Japan - TokyoTel 81-3-6880- 3770Korea - DaeguTel 82-53-744-4301Korea - SeoulTel 82-2-554-7200Malaysia - Kuala LumpurTel 60-3-7651-7906Malaysia - PenangTel 60-4-227-8870Philippines - ManilaTel 63-2-634-9065SingaporeTel 65-6334-8870Taiwan - Hsin ChuTel 886-3-577-8366Taiwan - KaohsiungTel 886-7-213-7830Taiwan - TaipeiTel 886-2-2508-8600Thailand - BangkokTel 66-2-694-1351Vietnam - Ho Chi MinhTel 84-28-5448-2100

Austria - WelsTel 43-7242-2244-39Fax 43-7242-2244-393Denmark - CopenhagenTel 45-4485-5910Fax 45-4485-2829Finland - EspooTel 358-9-4520-820France - ParisTel 33-1-69-53-63-20Fax 33-1-69-30-90-79Germany - GarchingTel 49-8931-9700Germany - HaanTel 49-2129-3766400Germany - HeilbronnTel 49-7131-72400Germany - KarlsruheTel 49-721-625370Germany - MunichTel 49-89-627-144-0Fax 49-89-627-144-44Germany - RosenheimTel 49-8031-354-560Israel - RarsquoananaTel 972-9-744-7705Italy - MilanTel 39-0331-742611Fax 39-0331-466781Italy - PadovaTel 39-049-7625286Netherlands - DrunenTel 31-416-690399Fax 31-416-690340Norway - TrondheimTel 47-72884388Poland - WarsawTel 48-22-3325737Romania - BucharestTel 40-21-407-87-50Spain - MadridTel 34-91-708-08-90Fax 34-91-708-08-91Sweden - GothenbergTel 46-31-704-60-40Sweden - StockholmTel 46-8-5090-4654UK - WokinghamTel 44-118-921-5800Fax 44-118-921-5820

Worldwide Sales and Service

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 45

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Board Overview
      • 2 Getting Started
        • 21 Quick Start
          • 211 Driver Installation
          • 212 Kit Window
          • 213 MPLABreg X IDE Device Family Packs
          • 214 Atmel Studio 7 Device Family Pack
            • 22 Design Documentation and Relevant Links
              • 3 Preprogrammed Application
              • 4 Curiosity Nano
                • 41 On-Board Debugger Overview
                  • 411 Debugger
                  • 412 Virtual Serial Port (CDC)
                    • 4121 Overview
                    • 4122 Operating System Support
                    • 4123 Limitations
                    • 4124 Signaling
                    • 4125 Advanced Use
                      • 413 Mass Storage Device
                        • 4131 Mass Storage Device Implementation
                        • 4132 Limitations of Drag-and-Drop Programming
                        • 4133 Special Commands
                          • 414 Data Gateway Interface (DGI)
                            • 4141 Debug GPIO
                            • 4142 Timestamping
                                • 42 Curiosity Nano Standard Pinout
                                • 43 Power Supply
                                  • 431 Target Regulator
                                  • 432 External Supply
                                  • 433 VBUS Output Pin
                                  • 434 Power Supply Exceptions
                                    • 44 Low-Power Measurement
                                    • 45 Programming External Microcontrollers
                                      • 451 Supported Devices
                                      • 452 Software Configuration
                                      • 453 Hardware Modifications
                                      • 454 Connecting to External Microcontrollers
                                        • 46 Connecting External Debuggers
                                          • 5 Hardware User Guide
                                            • 51 Connectors
                                              • 511 AVR128DB48 Curiosity Nano Pinout
                                              • 512 Using Pin Headers
                                              • 513 Multi-Voltage IO
                                              • 514 Operational Amplifiers
                                                • 52 Peripherals
                                                  • 521 LED
                                                  • 522 Mechanical Switch
                                                  • 523 32768 kHz Crystal
                                                  • 524 1600 MHz Crystal
                                                  • 525 On-Board Debugger Implementation
                                                    • 5251 On-Board Debugger Connections
                                                      • 6 Hardware Revision History and Known Issues
                                                        • 61 Identifying Product ID and Revision
                                                        • 62 Revision 3
                                                        • 63 Revision 2
                                                          • 7 Document Revision History
                                                          • 8 Appendix
                                                            • 81 Schematic
                                                            • 82 Assembly Drawing
                                                            • 83 Curiosity Nano Base for Click boardstrade
                                                            • 84 Disconnecting the On-board Debugger
                                                            • 85 Getting Started with IAR
                                                              • The Microchip Website
                                                              • Product Change Notification Service
                                                              • Customer Support
                                                              • Microchip Devices Code Protection Feature
                                                              • Legal Notice
                                                              • Trademarks
                                                              • Quality Management System
                                                              • Worldwide Sales and Service
Page 5: AVR128DB48 Curiosity Nano Hardware User Guideww1.microchip.com/downloads/en/DeviceDoc/AVR128DB48-Curiosit… · 4. Curiosity Nano Curiosity Nano is an evaluation platform of small

2 Getting Started

21 Quick StartSteps to start exploring the AVR128DB48 Curiosity Nano board

1 Download Microchip MPLABreg X IDE and MPLABreg XC C Compiler or download Atmel Studio 72 Launch MPLABreg X IDE or Atmel Studio 73 Optional Use MPLABreg Code Configurator or Atmel START to generate drivers and examples4 Write your application code5 Connect a USB cable (Standard-A to Micro-B or Micro-AB) between the PC and the debug USB port on the

board

Info bull MPLABreg X IDE supports XC C compilers and the AVRreg and Armreg Toolchains (GCC Compilers)bull Microchiprsquos XC8 C Compiler supports all 8-bit PICreg and AVRreg microcontrollersbull Included in the Atmel Studio 7 download are the AVRreg and Armreg Toolchains (GCC Compilers)

211 Driver Installation

When the board is connected to your computer for the first time the operating system will perform a driver softwareinstallation The driver file supports both 32- and 64-bit versions of Microsoftreg Windowsreg XP Windows VistaregWindows 7 Windows 8 and Windows 10 The drivers for the board are included with both MPLABreg X IDE and AtmelStudio 7

212 Kit Window

Once the board is powered the green status LED will be lit and both MPLABreg X IDE and Atmel Studio 7 will auto-detect which boards are connected The Kit Window in MPLABreg X IDE and Atmel Studio 7 will present relevantinformation like data sheets and board documentation The AVR128DB48 device on the AVR128DB48 CuriosityNano board is programmed and debugged by the on-board debugger and therefore no external programmer ordebugger tool is required

Tip  The Kit Window can be opened in MPLABreg X IDE through the menu bar Window gt Kit Window

213 MPLABreg X IDE Device Family Packs

Microchip MPLABreg X IDE requires specific information to support devices and tools This information is contained inversioned packs For the AVR128DB48 Curiosity Nano board MPLABreg X version 540 with device family pack ldquoAVR-Dx_DFPrdquo version 12 and tool pack ldquonEDBG_TPrdquo version 11 or newer are required For more information on packsand how to upgrade them refer to the MPLABreg X IDE Userrsquos guide - Work with Device Packs

Tip  The latest device family packs are available through Tools gt Packs in MPLABreg X IDE or online at Microchip MPLABreg X Packs Repository

AVR128DB48 Curiosity NanoGetting Started

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 5

214 Atmel Studio 7 Device Family PackAtmel Studio 7 requires specific information to support devices This information is contained in versioned packs Forthe AVR128DB48 Curiosity Nano board Atmel Studio 7 version 702397 with device family pack ldquoAVR-Dx_DFPrdquoversion 11 or newer are required For more information on packs and how to upgrade them refer to the Atmel Studio7 User Guide - Device Pack Manager

Tip  The latest device family packs are available through Tools gt Device Pack Manager in Atmel Studio 7or online at Atmel Studio Packs Repository

22 Design Documentation and Relevant LinksThe following list contains links to the most relevant documents and software for the AVR128DB48 Curiosity Nanoboard

bull MPLABreg X IDE - MPLAB X IDE is a software program that runs on a PC (Windowsreg Mac OSreg Linuxreg) todevelop applications for Microchip microcontrollers and digital signal controllers It is called an IntegratedDevelopment Environment (IDE) because it provides a single integrated ldquoenvironmentrdquo to develop code forembedded microcontrollers

bull Atmel Studio - Free IDE for the development of CC++ and assembler code for microcontrollersbull IAR Embedded Workbenchreg for AVRreg - This is a commercial CC++ compiler that is available for AVR

microcontrollers There is a 30-day evaluation version as well as a 4 KB code-size-limited kick-start versionavailable from their website

bull MPLABreg XC Compilers - MPLABreg XC8 C Compiler is available as a free unrestricted-use downloadMicrochips MPLABreg XC8 C Compiler is a comprehensive solution for your projectrsquos software development onWindowsreg macOSreg or Linuxreg MPLABreg XC8 supports all 8-bit PICreg and AVRreg microcontrollers (MCUs)

bull MPLABreg Code Configurator - MPLAB Code Configurator (MCC) is a free software plug-in that provides agraphical interface to configure peripherals and functions specific to your application

bull Atmel START - Atmel START is an online tool that hosts code examples helps the user to select and configuresoftware components and tailor your embedded application in a usable and optimized manner

bull Microchip Sample Store - Microchip sample store where you can order samples of devicesbull MPLAB Data Visualizer - MPLAB Data Visualizer is a program used for processing and visualizing data The

Data Visualizer can receive data from various sources such as serial ports and on-board debuggerrsquos DataGateway Interface as found on Curiosity Nano and Xplained Pro boards

bull Studio Data Visualizer - Studio Data Visualizer is a program used for processing and visualizing data TheData Visualizer can receive data from various sources such as serial ports on-board debuggerrsquos Data GatewayInterface as found on Curiosity Nano and Xplained Pro boards and power data from the Power Debugger

bull Microchip PICreg and AVRreg Examples - Microchip PIC and AVR Device Examples is a collection of examplesand labs that use Microchip development boards to showcase the use of PIC and AVR device peripherals

bull Microchip PICreg and AVRreg Solutions - Microchip PIC and AVR Device Solutions contains completeapplications for use with Microchip development boards ready to be adapted and extended

bull AVR128DB48 Curiosity Nano website - Kit information latest user guide and design documentationbull AVR128DB48 Curiosity Nano on Microchip Direct - Purchase this kit on Microchip Direct

AVR128DB48 Curiosity NanoGetting Started

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 6

3 Preprogrammed ApplicationThe AVR128DB48 mounted on the Curiosity Nano Evaluation Kit is preprogrammed with an application ready toutilize the integrated operational amplifiers

To get started with the application you can find the user guide code and hex files for this application available onlineon GitHub

bull MPLAB Xreg IDEbull Atmel Studio 7

AVR128DB48 Curiosity NanoPreprogrammed Application

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 7

4 Curiosity NanoCuriosity Nano is an evaluation platform of small boards with access to most of the microcontrollers IOs Theplatform consists of a series of low pin count microcontroller (MCU) boards with on-board debuggers which areintegrated with MPLABreg X IDE and Atmel Studio 7 Each board is identified in the IDE When plugged in a KitWindow is displayed with links to key documentation including relevant user guides application notes data sheetsand example code Everything is easy to find The on-board debugger features a virtual serial port (CDC) for serialcommunication to a host PC and a Data Gateway Interface (DGI) with debug GPIO pin(s)

41 On-Board Debugger OverviewAVR128DB48 Curiosity Nano contains an on-board debugger for programming and debugging The on-boarddebugger is a composite USB device consisting of several interfaces

bull A debugger that can program and debug the AVR128DB48 in both MPLABreg X IDE and Atmel Studio 7bull A mass storage device that allows drag-and-drop programming of the AVR128DB48bull A virtual serial port (CDC) that is connected to a Universal Asynchronous ReceiverTransmitter (UART) on the

AVR128DB48 and provides an easy way to communicate with the target application through terminal softwarebull A Data Gateway Interface (DGI) for code instrumentation with logic analyzer channels (debug GPIO) to visualize

program flow

The on-board debugger controls a Power and Status LED (marked PS) on the AVR128DB48 Curiosity Nano BoardThe table below shows how the LED is controlled in different operation modes

Table 4-1 On-Board Debugger LED Control

Operation Mode Power and Status LED

Boot Loader mode The LED blinks slowly during power-up

Power-up The LED is ON

Normal operation The LED is ON

Programming Activity indicator The LED blinks slowly during programmingdebugging

Drag-and-dropprogramming Success The LED blinks slowly for 2 sec

Failure The LED blinks rapidly for 2 sec

Fault The LED blinks rapidly if a power fault is detected

SleepOff The LED is OFF The on-board debugger is either in a sleep mode or powered downThis can occur if the board is externally powered

Info  Slow blinking is approximately 1 Hz and rapid blinking is approximately 5 Hz

411 DebuggerThe on-board debugger on the AVR128DB48 Curiosity Nano Board appears as a Human Interface Device (HID) onthe host computerrsquos USB subsystem The debugger supports full-featured programming and debugging of theAVR128DB48 using both MPLABreg X IDE and Atmel Studio 7 as well as some third-party IDEs

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 8

Remember  Keep the debuggerrsquos firmware up-to-date Firmware upgrades are done automatically whenusing MPLABreg X IDE or Atmel Studio 7

412 Virtual Serial Port (CDC)The virtual serial port (CDC) is a general purpose serial bridge between a host PC and a target device

4121 OverviewThe on-board debugger implements a composite USB device that includes a standard Communications Device Class(CDC) interface which appears on the host as a virtual serial port The CDC can be used to stream arbitrary data inboth directions between the host computer and the target All characters sent through the virtual serial port on thehost computer will be transmitted as UART on the debuggerrsquos CDC TX pin and UART characters captured on thedebuggerrsquos CDC RX pin will be returned to the host computer through the virtual serial port

Figure 4-1 CDC Connection

Target MCU

UART TX

UART RX

Debugger

USBCDC RX

CDC TX

PCTerminalSoftware

TargetReceive

TargetSend

TerminalReceive

TerminalSend

Info  As shown in Figure 4-1 the debuggerrsquos CDC TX pin is connected to a UART RX pin on the targetfor receiving characters from the host computer Similarly the debuggerrsquos CDC RX pin is connected to aUART TX pin on the target for transmitting characters to the host computer

4122 Operating System SupportOn Windows machines the CDC will enumerate as Curiosity Virtual COM Port and appear in the Ports section of theWindows Device Manager The COM port number can also be found there

Info  On older Windows systems a USB driver is required for CDC This driver is included in installationsof both MPLABreg X IDE and Atmel Studio 7

On Linux machines the CDC will enumerate and appear as devttyACM

Info  tty devices belong to the ldquodialoutrdquo group in Linux so it may be necessary to become a member ofthat group to have permissions to access the CDC

On MAC machines the CDC will enumerate and appear as devttyusbmodem Depending on which terminalprogram is used it will appear in the available list of modems as usbmodem

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 9

Info  For all operating systems Be sure to use a terminal emulator that supports DTR signaling See 4124 Signaling

4123 LimitationsNot all UART features are implemented in the on-board debugger CDC The constraints are outlined here

bull Baud rate Must be in the range of 1200 bps to 500 kbps Any baud rate outside this range will be set to theclosest limit without warning Baud rate can be changed on-the-fly

bull Character format Only 8-bit characters are supportedbull Parity Can be odd even or nonebull Hardware flow control Not supportedbull Stop bits One or two bits are supported

4124 SignalingDuring USB enumeration the host OS will start both communication and data pipes of the CDC interface At thispoint it is possible to set and read back the baud rate and other UART parameters of the CDC but data sending andreceiving will not be enabled

When a terminal connects on the host it must assert the DTR signal As this is a virtual control signal implementedon the USB interface it is not physically present on the board Asserting the DTR signal from the host will indicate tothe on-board debugger that a CDC session is active The debugger will then enable its level shifters (if available) andstart the CDC data send and receive mechanisms

Deasserting DTR in debugger firmware version 120 or earlier has the following behaviorbull Debugger UART receiver is disabled so no further data will be transferred to the host computerbull Debugger UART transmitter will continue to send data that is queued for sending but no new data is accepted

from the host computerbull Level shifters (if available) are not disabled so the debugger CDC TX line remains driven

Deasserting DTR in debugger firmware version 121 or later has the following behaviorbull Debugger UART receiver is disabled so no further data will be transferred to the host computerbull Debugger UART transmitter will continue to send data that is queued for sending but no new data is accepted

from the host computerbull Once the ongoing transmission is complete level shifters (if available) are disabled so the debugger CDC TX

line will become high-impedance

Remember  Set up the terminal emulator to assert the DTR signal Without the signal the on-boarddebugger will not send or receive any data through its UART

Tip  The on-board debuggerrsquos CDC TX pin will not be driven until the CDC interface is enabled by thehost computer Also there are no external pull-up resistors on the CDC lines connecting the debugger andthe target which means that during power-up these lines are floating To avoid any glitches resulting inunpredictable behavior like framing errors the target device should enable the internal pull-up resistor onthe pin connected to the debuggerrsquos CDC TX pin

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 10

4125 Advanced Use

CDC Override ModeIn normal operation the on-board debugger is a true UART bridge between the host and the device However incertain use cases the on-board debugger can override the basic operating mode and use the CDC TX and RX pinsfor other purposes

Dropping a text file into the on-board debuggerrsquos mass storage drive can be used to send characters out of thedebuggerrsquos CDC TX pin The filename and extension are trivial but the text file must start with the charactersCMDSEND_UART=

Debugger firmware version 120 or earlier has the following limitationsbull The maximum message length is 50 characters ndash all remaining data in the frame are ignoredbull The default baud rate used in this mode is 9600 bps but if the CDC is already active or has been configured

the previously used baud rate still applies

Debugger firmware version 121 and later has the following limitationsfeaturesbull The maximum message length may vary depending on the MSCSCSI layer timeouts on the host computer

andor operating system A single SCSI frame of 512 bytes (498 characters of payload) is guaranteed and filesof up to 4 KB will work on most systems The transfer will complete on the first NULL character encountered inthe file

bull The baud rate used is always 9600 bps for the default commandCMDSEND_UART=

The CDC Override Mode should not be used simultaneously with data transfer over CDCterminal If a CDCterminal session is active at the time a file is received via CDC Override Mode it will be suspended for theduration of the operation and resumed once complete

bull Additional commands are supported with explicit baud ratesCMDSEND_9600=

CMDSEND_115200=

CMDSEND_460800=

USB-Level Framing ConsiderationsSending data from the host to the CDC can be done byte-wise or in blocks which will be chunked into 64-byte USBframes Each such frame will be queued up for sending to the debuggerrsquos CDC TX pin Transferring a small amountof data per frame can be inefficient particularly at low baud rates as the on-board debugger buffers frames and notbytes A maximum of four 64-byte frames can be active at any time The on-board debugger will throttle the incomingframes accordingly Sending full 64-byte frames containing data is the most efficient method

When receiving data on the debuggerrsquos CDC RX pin the on-board debugger will queue up the incoming bytes into64-byte frames which are sent to the USB queue for transmission to the host when they are full Incomplete framesare also pushed to the USB queue at approximately 100 ms intervals triggered by USB start-of-frame tokens Up toeight 64-byte frames can be active at any time

If the host (or the software running on it) fails to receive data fast enough an overrun will occur When this happensthe last-filled buffer frame will be recycled instead of being sent to the USB queue and a full frame of data will belost To prevent this occurrence the user must ensure that the CDC data pipe is being read continuously or theincoming data rate must be reduced

413 Mass Storage DeviceThe on-board debugger includes a simple Mass Storage Device implementation which is accessible for readwriteoperations via the host operating system to which it is connected

It providesbull Read access to basic text and HTML files for detailed kit information and support

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 11

bull Write access for programming Intelreg HEX formatted files into the target devicersquos memorybull Write access for simple text files for utility purposes

4131 Mass Storage Device ImplementationThe on-board debugger implements a highly optimized variant of the FAT12 file system that has several limitationspartly due to the nature of FAT12 itself and optimizations made to fulfill its purpose for its embedded application

The Curiosity Nano USB device is USB Chapter 9-compliant as a mass storage device but does not in any way fulfillthe expectations of a general purpose mass storage device This behavior is intentional

When using the Windows operating system the on-board debugger enumerates as a Curiosity Nano USB Devicethat can be found in the disk drives section of the device manager The CURIOSITY drive appears in the file managerand claims the next available drive letter in the system

The CURIOSITY drive contains approximately one MB of free space This does not reflect the size of the targetdevicersquos Flash in any way When programming an Intelreg HEX file the binary data are encoded in ASCII withmetadata providing a large overhead so one MB is a trivially chosen value for disk size

It is not possible to format the CURIOSITY drive When programming a file to the target the filename may appear inthe disk directory listing This is merely the operating systemrsquos view of the directory which in reality has not beenupdated It is not possible to read out the file contents Removing and replugging the board will return the file systemto its original state but the target will still contain the application that has been previously programmed

To erase the target device copy a text file starting with ldquoCMDERASErdquo onto the disk

By default the CURIOSITY drive contains several read-only files for generating icons as well as reporting status andlinking to further information

bull AUTORUNICO ndash icon file for the Microchip logobull AUTORUNINF ndash system file required for Windows Explorer to show the icon filebull KIT-INFOHTM ndash redirect to the development board websitebull KIT-INFOTXT ndash a text file containing details about the boardrsquos debugger firmware version board name USB

serial number device and drag-and-drop supportbull STATUSTXT ndash a text file containing the programming status of the board

Info  STATUSTXT is dynamically updated by the on-board debugger The contents may be cached bythe OS and therefore do not reflect the correct status

4132 Limitations of Drag-and-Drop Programming

Lock BitsLock bits included in the hex file will be ignored when using drag-and-drop programming To program lock bits useMPLABreg X IDE or Atmel Studio 7

Enabling CRC Check in FusesIt is not advisable to enable the CRC check in the target devicersquos fuses when using drag-and-drop programming Thisis because a subsequent chip erase (which does not affect fuse bits) will effect a CRC mismatch and the applicationwill fail to boot To recover a target from this state a chip erase must be done using MPLABreg X IDE orAtmel Studio 7 which will automatically clear the CRC fuses after erasing

4133 Special CommandsSeveral utility commands are supported by copying text files to the mass storage disk The filename or extension isirrelevant ndash the command handler reacts to content only

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 12

Table 4-2 Special File Commands

Command Content Description

CMDERASE Executes a chip erase of the target

CMDSEND_UART= Sends a string of characters to the CDC UART See ldquoCDCOverride Moderdquo

CMDSEND_9600=CMDSEND_115200=CMDSEND_460800=

Sends a string of characters to the CDC UART at the baud ratespecified Note that only the baud rates explicitly specified hereare supported See ldquoCDC Override Moderdquo (Debugger firmwarev121 or newer)

CMDRESET Resets the target device by entering Programming mode andthen exiting Programming mode immediately thereafter Exacttiming can vary according to the programming interface of thetarget device (Debugger firmware v116 or newer)

CMDPOWERTOGGLE Powers down the target and restores power after a 100 msdelay If external power is provided this has no effect(Debugger firmware v116 or newer)

CMD0V Powers down the target device by disabling the target supplyregulator If external power is provided this has no effect(Debugger firmware v116 or newer)

CMD1V8 Sets the target voltage to 18V If external power is providedthis has no effect (Debugger firmware v121 or newer)

CMD3V3 Sets the target voltage to 33V If external power is providedthis has no effect (Debugger firmware v116 or newer)

CMD5V0 Sets the target voltage to 50V If external power is providedthis has no effect (Debugger firmware v116 or newer)

Info  The commands listed here are triggered by the content being sent to the mass storage emulateddisk and no feedback is provided in the case of either success or failure

414 Data Gateway Interface (DGI)Data Gateway Interface (DGI) is a USB interface for transporting raw and timestamped data between on-boarddebuggers and host computer-based visualization tools MPLAB Data Visualizer is used on the host computer todisplay debug GPIO data It is available as a plug-in for MPLABreg X IDE or a stand-alone application that can be usedin parallel with MPLABreg X IDE or Atmel Studio 7

Although DGI encompasses several physical data interfaces the AVR128DB48 Curiosity Nano implementationincludes logic analyzer channels

bull Two debug GPIO channels (also known as DGI GPIO)

4141 Debug GPIODebug GPIO channels are timestamped digital signal lines connecting the target application to a host computervisualization application They are typically used to plot the occurrence of low-frequency events on a time-axis ndash forexample when certain application state transitions occur

The figure below shows the monitoring of the digital state of a mechanical switch connected to a debug GPIO inMPLAB Data Visualizer

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 13

Figure 4-2 Monitoring Debug GPIO with MPLABreg Data Visualizer

Debug GPIO channels are timestamped so the resolution of DGI GPIO events is determined by the resolution of theDGI timestamp module

Important  Although bursts of higher-frequency signals can be captured the useful frequency range ofsignals for which debug GPIO can be used is up to about 2 kHz Attempting to capture signals above thisfrequency will result in data saturation and overflow which may cause the DGI session to be aborted

4142 TimestampingDGI sources are timestamped as they are captured by the debugger The timestamp counter implemented in theCuriosity Nano debugger increments at 2 MHz frequency providing a timestamp resolution of a half microsecond

42 Curiosity Nano Standard PinoutThe 12 edge connections closest to the USB connector on Curiosity Nano boards have a standardized pinout Theprogramdebug pins have different functions depending on the target programming interface as shown in the tableand figure below

Table 4-3 Curiosity Nano Standard Pinout

Debugger Signal Target MCU Description

ID mdash ID line for extensions

CDC TX UART RX USB CDC TX line

CDC RX UART TX USB CDC RX line

DBG0 UPDI Debug data line

DBG1 GPIO1 debug GPIO1

DBG2 GPIO0 debug GPIO0

DBG3 RESET Reset line

NC mdash No connect

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 14

continuedDebugger Signal Target MCU Description

VBUS mdash VBUS voltage for external use

VOFF mdash Voltage Off input Disables the target regulator andtarget voltage when pulled low

VTG mdash Target voltage

GND mdash Common ground

Figure 4-3 Curiosity Nano Standard Pinout

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

43 Power SupplyThe board is powered through the USB port and contains two LDO regulators one to generate 33V for the on-boarddebugger and an adjustable LDO regulator for the target microcontroller AVR128DB48 and its peripherals Thevoltage from the USB connector can vary between 44V to 525V (according to the USB specification) and will limitthe maximum voltage to the target The figure below shows the entire power supply system on AVR128DB48Curiosity Nano

Figure 4-4 Power Supply Block Diagram

USBTarget MCU

Power source

Cut strap

Power consumer P3V3DEBUGGER

Power converter

DEBUGGERRegulator

VUSB

TargetRegulator

Power Supply strap

Adjust

Level shifter

VLVLVREG

IO IO GPIOstraps

IO

OnOffMeasure OnOff

ID systemVOFF

PTC Fuse

Power protection

VBUS

Target Power strap

VTG

431 Target RegulatorThe target voltage regulator is a MIC5353 variable output LDO The on-board debugger can adjust the voltage outputsupplied to the board target section by manipulating the MIC5353rsquos feedback voltage The hardware implementation

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 15

is limited to an approximate voltage range from 17V to 51V Additional output voltage limits are configured in thedebugger firmware to ensure that the output voltage never exceeds the hardware limits of the AVR128DB48microcontroller The voltage limits configured in the on-board debugger on AVR128DB48 Curiosity Nano are 18ndash55V

Info  The target voltage is set to 33V when the board is manufactured It can be changed throughMPLABreg X IDE project properties and in the Atmel Studio 7 device programming dialog Any change tothe target voltage is persistent even after a power toggle The resolution is less than 5 mV but may belimited to 10 mV by the adjustment program

Info  Voltage settings that are set up in MPLABreg X IDE are not immediately applied to the board Thenew voltage setting is applied to the board when the debugger is accessed in any way like pushing theRefresh Debug Tool Status button in the project dashboard tab or programmingreading program memory

Info  There is a simple option to adjust the target voltage with a drag-and-drop command text file to theboard This supports a set of common target voltages See section 4133 Special Commands for furtherdetails

The MIC5353 supports a maximum current load of 500 mA It is an LDO regulator in a small package placed on asmall printed circuit board (PCB) and the thermal shutdown condition can be reached at lower loads than 500 mAThe maximum current load depends on the input voltage the selected output voltage and the ambient temperatureThe figure below shows the safe operating area for the regulator with an input voltage of 51V and an ambienttemperature of 23degC

Figure 4-5 Target Regulator Safe Operation Area

The voltage output of the target regulator is continuously monitored (measured) by the on-board debugger If it ismore than 100 mV overunder the voltage setting value an error condition will be flagged and the target voltageregulator will be turned off This will detect and handle any short-circuit conditions It will also detect and handle if anexternal voltage which causes VCC_TARGET to move outside of the voltage setting monitoring window of plusmn100 mVis suddenly applied to the VTG pin without setting the VOFF pin low

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 16

Info  If the external voltage is lower than the monitoring window lower limit (target voltage setting ndash 100mV) the on-board debugger status LED will blink rapidly If the external voltage is higher than themonitoring window upper limit (target voltage setting + 100 mV) the on-board debugger status LED willcontinue to shine If the external voltage is removed the status LED will start to blink rapidly until the on-board debugger detects the new situation and turns the target voltage regulator back on

432 External SupplyAVR128DB48 Curiosity Nano can be powered by an external voltage instead of the on-board target regulator Whenthe Voltage Off (VOFF) pin is shorted to ground (GND) the on-board debugger firmware disables the target regulatorand it is safe to apply an external voltage to the VTG pin

It is also safe to apply an external voltage to the VTG pin when no USB cable is plugged into the DEBUG connectoron the board

The VOFF pin can be tied lowlet go at any time This will be detected by a pin-change interrupt to the on-boarddebugger which controls the target voltage regulator accordingly

WARNINGApplying an external voltage to the VTG pin without shorting VOFF to GND may cause permanent damageto the board

WARNINGDo not apply any voltage to the VOFF pin Let the pin float to enable the power supply

WARNINGAbsolute maximum external voltage is 55V for the on-board level shifters and the standard operatingcondition of the AVR128DB48 is 18ndash55V Applying a higher voltage may cause permanent damage to theboard

Info  If an external voltage is applied without pulling the VOFF pin low and an external supply pulls thevoltage lower than the monitoring windowrsquos lower limit (target voltage setting - 100 mV) the on-boarddebugger status LED will blink rapidly and shut the on-board regulator off If an external voltage issuddenly removed when the VOFF pin is not pulled low the status LED will start to blink rapidly until theon-board debugger detects the new situation and switches the target voltage regulator back on

Programming debugging and data streaming is still possible with an external power supply ndash the debugger andsignal level shifters will be powered from the USB cable Both regulators the debugger and the level shifters arepowered down when the USB cable is removed

Info  In addition to the power consumed by the AVR128DB48 and its peripherals approximately 100 microAwill be drawn from any external power source to power the on-board level shifters and voltage monitorcircuitry when a USB cable is plugged in the DEBUG connector on the board When a USB cable is notplugged in some current is used to supply the level shifters voltage pins which have a worst-case currentconsumption of approximately 5 microA Typical values may be as low as 100 nA

433 VBUS Output PinAVR128DB48 Curiosity Nano has a VBUS output pin that can be used to power external components that need a 5Vsupply The VBUS output pin has a PTC fuse to protect the USB against short circuits A side effect of the PTC fuseis a voltage drop on the VBUS output with higher current loads The chart below shows the voltage versus the currentload of the VBUS output

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 17

Figure 4-6 VBUS Output Voltage vs Current

434 Power Supply ExceptionsThis is a summary of most exceptions that can occur with the power supply

Target Voltage Shuts DownThis can happen if the target section draws too much current at a given voltage This will cause the thermal shutdownsafety feature of the MIC5353 regulator to kick in To avoid this reduce the current load of the target section

Target Voltage Setting is Not ReachedThe maximum output voltage is limited by the USB input voltage (specified to be 44-525V) and the voltage dropover the MIC5353 regulator at a given voltage setting and current consumption If a higher output voltage is neededuse a USB power source that can provide a higher input voltage or use an external voltage supply on the VTG pin

Target Voltage is Different From SettingThis can be caused by an externally applied voltage to the VTG pin without setting the VOFF pin low If the targetvoltage differs more than 100 mV overunder the voltage setting it will be detected by the on-board debugger andthe internal voltage regulator will be shut down To fix this issue remove the applied voltage from the VTG pin andthe on-board debugger will enable the on-board voltage regulator when the new condition is detected Note that thePS LED will be blinking rapidly if the target voltage is below 100 mV of the setting but will be lit normally when it ishigher than 100 mV above the setting

No Or Very Low Target Voltage and PS LED is Blinking RapidlyThis can be caused by a full or partial short-circuit and is a special case of the issue mentioned above Remove theshort-circuit and the on-board debugger will re-enable the on-board target voltage regulator

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 18

No Target Voltage and PS LED is Lit 1This occurs if the target voltage is set to 00V To fix this set the target voltage to a value within the specified voltagerange for the target device

No Target Voltage and PS LED is Lit 2This can be the issue if power jumper J100 andor J101 is cut and the target voltage regulator is set to a value withinthe specified voltage range for the target device To fix this solder a wirebridge between the pads for J100J101 oradd a jumper on J101 if a pin header is mounted

VBUS Output Voltage is Low or Not PresentThis is most lightly caused by a high-current drain on VBUS and the protection fuse (PTC) will reduce the current orcut off completely Reduce the current consumption on the VBUS pin to fix this issue

44 Low-Power MeasurementPower to the AVR128DB48 is connected from the on-board power supply and VTG pin through a 100 mil pin headermarked with ldquoPOWERrdquo in silkscreen (J101) To measure the power consumption of the AVR128DB48 and otherperipherals connected to the board cut the Target Power strap and connect an ammeter over the strap

To measure the lowest possible power consumption follow these steps1 Cut the POWER strap with a sharp tool2 Solder a 1x2 100 mil pin header in the footprint3 Connect an ammeter to the pin header4 Write firmware that

41 Tri-states any IO connected to the on-board debugger42 Sets the microcontroller in its lowest power Sleep state

5 Program the firmware into the AVR128DB48

Figure 4-7 Target Power Strap

Target Power strap (top side)

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 19

Tip  A 100-mil pin header can be soldered into the Target Power strap (J101) footprint for easyconnection of an ammeter Once the ammeter is no longer needed place a jumper cap on the pin header

Info  The on-board level shifters will draw a small amount of current even when they are not in use Amaximum of 2 microA can be drawn from each IO pin connected to a level shifter for a total of 10 microA Keepany IO pin connected to a level shifter in tri-state to prevent leakage All IOs connected to the on-boarddebugger are listed in 5251 On-Board Debugger Connections To prevent any leakage to the on-boardlevel shifters they can be disconnected completely as described in 84 Disconnecting the On-boardDebugger

45 Programming External MicrocontrollersThe on-board debugger on AVR128DB48 Curiosity Nano can be used to program and debug microcontrollers onexternal hardware

451 Supported DevicesAll external AVR microcontrollers with the UPDI interface can be programmed and debugged with the on-boarddebugger with Atmel Studio

External SAM microcontrollers that have a Curiosity Nano Board can be programmed and debugged with the on-board debugger with Atmel Studio

AVR128DB48 Curiosity Nano can program and debug external AVR128DB48 microcontrollers with MPLAB X IDE

452 Software ConfigurationNo software configuration is required to program and debug the same device that is mounted on the board

To program and debug a different microcontroller than what is mounted on the board Atmel Studio must beconfigured to allow free selection of devices and programming interfaces

1 Navigate to Tools gt Options through the menu system at the top of the application2 Select the Tools gt Tool settings category in the options window3 Set the Hide unsupported devices option to False

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 20

Figure 4-8 Hide Unsupported Devices

Info  Atmel Studio allows any microcontroller and interface to be selected when Hide unsupporteddevices is set to False also microcontrollers and interfaces which are not supported by the on-boarddebugger

453 Hardware ModificationsThe on-board debugger is connected to the AVR128DB48 by default These connections must be removed beforeany external microcontroller can be programmed or debugged Cut the GPIO straps shown in the figure below with asharp tool to disconnect the AVR128DB48 from the on-board debugger

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 21

Figure 4-9 Programming and Debugging Connections to Debugger

GPIO straps (bottom side)

Info  Cutting the connections to the debugger will disable programming debugging and data streamingfrom the AVR128DB48 mounted on the board

Tip  Solder in 0Ω resistors across the footprints or short-circuit them with solder to reconnect the signalsbetween the on-board debugger and the AVR128DB48

454 Connecting to External MicrocontrollersThe figure and table below show where the programming and debugging signals must be connected to program anddebug external microcontrollers The on-board debugger can supply power to the external hardware or use anexternal voltage as a reference for its level shifters Read more about the power supply in 43 Power Supply

The on-board debugger and level shifters actively drive data and clock signals (DBG0 DBG1 and DBG2) used forprogramming and debugging and in most cases the external resistor on these signals can be ignored Pull-downresistors are required on the ICSPtrade data and clock signals to debug PICreg microcontrollers

DBG3 is an open-drain connection and requires a pull-up resistor to function

AVR128DB48 Curiosity Nano has a pull-up resistor R200 connected to its RESET signal (DBG3) The location ofthe pull-up resistor is shown in the 82 Assembly Drawing in the appendix

Remember bull Connect GND and VTG to the external microcontrollerbull Tie the VOFF pin to GND if the external hardware has its own power supplybull Make sure there are pull-down resistors on the ICSP data and clock signals (DBG0 and DBG1) to

support the debugging of PIC microcontrollers

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 22

Figure 4-10 Curiosity Nano Standard Pinout

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

Table 4-4 Programming and Debugging Interfaces

Curiosity Nano Pin UPDI ICSPtrade SWD

DBG0 UPDI DATA SWDIO

DBG1 mdash CLK SWCLK

DBG2 mdash mdash mdash

DBG3 mdash MCLR RESET

46 Connecting External DebuggersEven though there is an on-board debugger external debuggers can be connected directly to the AVR128DB48Curiosity Nano to programdebug the AVR128DB48 The on-board debugger keeps all the pins connected to theAVR128DB48 and board edge in tri-state when not actively used Therefore the on-board debugger will not interferewith any external debug tools

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 23

Figure 4-11 Connecting the MPLABreg PICkittrade 4 In-Circuit DebuggerProgrammer to AVR128DB48 CuriosityNano

2345678 1

VDD

GroundDATA

2 = VDD

3 = Ground

4 = PGD

5 = Unused

6 = Unused

7 = Unused

8 = Unused

1 = Unused

MPLABreg PICkittrade 4

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 24

Figure 4-12 Connecting the Atmel-ICE to AVR128DB48 Curiosity Nano

VDD

Ground

DATA

AVRregSAM

3 = UPDI

4 = VTG

5 = Unused

6 = Unused

7 = Unused

8 = Unused

1 = Unused

2 = GND

9 = Unused

10 = Unused

Atmel-ICE

21 9

10

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

CAUTIONTo avoid contention between the external debugger and the on-board debugger do not start anyprogrammingdebug operation with the on-board debugger through MPLABreg X IDE or Atmel Studio 7 ormass storage programming while the external tool is active

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 25

5 Hardware User Guide

51 Connectors

511 AVR128DB48 Curiosity Nano PinoutAll the AVR128DB48 IO pins are accessible at the edge connectors on the board The image below shows the boardpinout For all available functions on each pin refer to the IO Multiplexing and Considerations section in theAVR128DB48 data sheet

Figure 5-1 AVR128DB48 Curiosity Nano Pinout

USB

DEBUGGER

AVR128DB48

SW0

LED0

PS LEDNC

NC

IDID

CDC RX

CD

CR

XUSART3 TXPB0

CDC TX

CD

CT

XUSART3 RXPB1

DBG1

DB

G1PB3LED0

DBG2

DB

G2PB2SW0

PF4

PF

4USART2 TX

PF5

PF

5USART2 RX

PA2

PA

2TWI0 SDA

PA3

PA

3TWI0 SCL

PA4

PA

4SPI0 MOSI

PA5

PA

5SPI0 MISO

PA6

PA

6SPI0 SCK

PA7

PA

7SPI0 SS

GND

GN

D

PB0

PB

0USART3 TXCDC RX

PB1

PB

1USART3 RXCDC TX

PF2

PF

2

PF3

PF

3

PC0

PC

0

PC1

PC

1

PC2

PC

2

PC3

PC

3

GND

GN

D

(PA0)

(PA

0)XTALHF1

(PA1)

(PA

1)XTALHF2

PB2

PB

2SW0

PB3

PB

3LED0

VBUS

VB

US

VOFF

VO

FF

DBG3

DB

G3 PF6

DBG0

DB

G0 UPDI

GND

GN

D

VTG

VT

G

PD6

PD

6 AIN6

PD3

PD

3 AIN3 OP0 INN

PD2

PD

2 AIN2 OP0 OUT TCA0 WO2

PD1

PD

1 AIN1 OP0 INP TCA0 WO1

PD0

PD

0 AIN0 TCA0 WO0

PD7

PD

7 AIN7 OP1 INN

PD5

PD

5 AIN5 OP1 OUT

PD4

PD

4 AIN4 OP1 INP

GND

GN

D

PE3

PE

3 OP2 INN

PE2

PE

2 OP2 OUT

PE1

PE

1 OP2 INP

PE0

PE

0

PC7

PC

7

PC6

PC

6

PC5

PC

5

PC4

PC

4

GND

GN

D

PB5

PB

5

PB4

PB

4

(PF1)

(PF

1) XTAL32K2

(PF0)

(PF

0) XTAL32K1

DEBUGGERAVR128DB48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

MVIO

OPAMP

Shared pin

AVR128DB48Curiosity Nano

512 Using Pin HeadersThe edge connector footprint on AVR128DB48 Curiosity Nano has a staggered design where each hole is shifted 8mil (~02 mm) off-center The hole shift allows the use of regular 100 mil pin headers on the board without solderingOnce the pin headers are firmly in place they can be used in normal applications like pin sockets and prototypingboards without any issues

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 26

Figure 5-2 Attaching Pin-Headers to the Curiostiy Nano Board

Figure 5-3 Connecting to Curiosity Nano Base for Click boardstrade

Tip  Start at one end of the pin header and gradually insert the header along the length of the boardOnce all the pins are in place use a flat surface to push them in

Tip  For applications where the pin headers will be used permanently it is still recommended to solderthem in place

Important  Once the pin headers are in place they are hard to remove by hand Use a set of pliers andcarefully remove the pin headers to avoid damage to the pin headers and PCB

513 Multi-Voltage IO

The AVR128DB48 Curiosity Nano MCU has support for Multi-Voltage IO (MVIO) AVR128DB48 MVIO pins areconnected to the edge connector at PC0-PC7 MVIO pins are capable of regular IO-pin behavior

MVIO can be configured in one of two supply modesbull Single-Supply mode All IO pins including MVIO-capable pins are powered by VCC_TARGET By default

VCC_TARGET is connected to VDDIO2 through a 0-ohm resistor (R204)bull Dual-Supply mode MVIO-capable pins are powered by an external power supply connected to VDDIO2 Non-

MVIO pins are powered by VCC_TARGET

Dual-Supply mode allows MVIO-pins to be powered at different voltages than pins powered from VCC_TARGET

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 27

WARNINGThe absolute maximum external voltage range for the AVR128DB48 is 18ndash55V Applying a higher voltagemay cause permanent damage to the board

By default AVR128DB48 Curiosity Nano board is configured for single-supply mode To use Dual-Supply mode somehardware modifications are required

WARNINGBefore any hardware modifications are done make sure the board is disconnected from USB or externalpower

bull Disconnect resistor R204 connecting VDDIO2 to VCC_TARGETbull Connect a new power supply to VDDIO2 and ground at J212bull J212 does not have reverse polarity protection Make sure to match polarity between the power supply and

J212 Positive-polarity to J212-pin 1 and negative-polarity to J212-pin 2

The resistor R204 VDDIO2 and J212 can be seen in Figure 5-4

Figure 5-4 MVIO and VDDIO2 Connections

J212 R204

WARNINGApplying an external voltage to VDDIO2 pin without removing resistor R204 may cause permanentdamage to the board

WARNINGJ212 does not have reverse polarity protection Applying voltage to the wrong pin may cause permanentdamage to the board

514 Operational AmplifiersAVR128DB48 features three internal operational amplifiers with a flexible connection scheme using analogmultiplexers and resistor ladders This allows a large number of analog signal conditioning configurations manyrequiring no external components

Table 5-1 OPAMP Pin Connections

OPAMP Poisitive Input (INP) Negative Input (INN) Output (OUT)

OP0 PD1 PD3 PD2

OP1 PD4 PD7 PD5

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 28

continuedOPAMP Poisitive Input (INP) Negative Input (INN) Output (OUT)

OP2 PE1 PE3 PE2

For information about OPAMP on the edge connector and any shared functionality see 511 AVR128DB48 CuriosityNano Pinout

52 Peripherals

521 LEDThere is one yellow user LED available on the AVR128DB48 Curiosity Nano board that can be controlled by eitherGPIO or PWM The LED can be activated by driving the connected IO line to GND

Table 5-2 LED Connection

AVR128DB48 Pin Function Shared Functionality

PB3 Yellow LED0 Edge connector On-board debugger

522 Mechanical SwitchThe AVR128DB48 Curiosity Nano board has one mechanical switch This is a generic user-configurable switchWhen the switch is pressed it will drive the IO line to ground (GND)

Tip  There is no externally connected pull-up resistor on the switch To use the switch make sure that aninternal pull-up resistor is enabled on pin PB2

Table 5-3 Mechanical Switch

AVR128DB48 Pin Description Shared Functionality

PB2 User switch (SW0) Edge connector On-board debugger

523 32768 kHz Crystal

On the AVR128DB48 Curiosity Nano board is a mounted 32768 kHz crystal of type VMK3-9001-32K7680000 thecrystal is accurate to within 20 ppm Using the External 32768 kHz Crystal Oscillator (XOSC32K) module inAVR128DB48 with the mounted 32768 kHz crystal generates a clock signal that is significantly more accurate thanthe Internal 32768 kHz Ultra Low-Power Oscillator (OSC32K) module can generate alone With the Auto-Tunefeature the 32768 kHz can be used as a reference to improve the accuracy of the internal oscillator This is an idealreference clock for the Real-Time Counter module in AVR128DB48

The 32768 kHz crystal is connected to AVR128DB48 on PF0 and PF1 which are also routed to the edge connectorthrough two solder points PF0 and PF1 are disconnected from the edge connector by default to reduce the chanceof an external signal causing contention with the crystal and to remove excessive capacitance on the lines

Next to the 32768 kHz crystal is a cut-strap (J209) which can be used to measure the oscillator safety factor This isdone by cutting the strap and adding a 0402 SMD resistor across the strap More information about oscillatorallowance and safety factor can be found in the AN2648 application note from Microchip

Cut straps and solder points can be seen in Figure 5-5

Table 5-4 32768 kHz Crystal Connections

AVR128DB48 Pin Function Shared Functionality

PF0 XTAL32K1 (Crystal input) Edge connector

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 29

continuedAVR128DB48 Pin Function Shared Functionality

PF1 XTAL32K2 (Crystal output) Edge connector

PA0 and PA1 can be used as GPIO To do so some hardware modifications are required

WARNINGBefore any hardware modifications are done make sure the board is disconnected from the USB orexternal power

bull Disconnect the 32768 kHz crystal by cutting the two straps on the top side of the board next to the crystal(J207 J208) The crystal should be disconnected when using the pin as GPIO as this might harm the crystal

bull Connect the IO lines to the edge connector by placing solder blobs on the circular solder points marked PF0and PF1 on the bottom side of the board (J210 J211)

Figure 5-5 Crystal Connection and Cut Straps

Top side Boom side

J211

J210

J207

J20832768 kHz Crystal

J209

524 1600 MHz Crystal

On the AVR128DB48 Curiosity Nano board is a mounted 1600 MHz crystal of type VXM7-9040-16M0000000 thecrystal is accurate to within 20 ppm Using the External High-Frequency Crystal Oscillator (XOSCHF) module inAVR128DB48 with the mounted 1600 MHz crystal generates a clock signal that is significantly more accurate thanthe Internal High-Frequency Oscillator (OSCHF) module

The 1600 MHz crystal is connected to AVR128DB48 on PA0 and PA1 which are also routed to the edge connectorthrough two solder points PA0 and PA1 are disconnected from the edge connector by default to reduce the chanceof an external signal causing contention with the crystal and to remove excessive capacitance on the lines

Next to the 1600 MHz crystal is a cut-strap (J217) which can be used to measure the oscillator safety factor This isdone by cutting the strap and adding a 0402 SMD resistor across the strap More information about oscillatorallowance and safety factor can be found in the AN2648 application note from Microchip

Cut straps and solder points can be seen in Figure 5-6

Table 5-5 Crystal Connections

AVR128DB48 Pin Function Shared Functionality

PA0 XTALHF1 (Crystal input) Edge connector

PA1 XTALHF2 (Crystal output) Edge connector

PA0 and PA1 can be used as GPIO To do so some hardware modifications are required

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 30

WARNINGBefore any hardware modifications are done make sure the board is disconnected from USB or externalpower

bull Disconnect the 1600 MHz crystal by cutting the two straps on the top side of the board next to the crystal (J215J216) The crystal should be disconnected when using the pin as GPIO as this might harm the crystal

bull Connect the IO lines to the edge connector by placing solder blobs on the circular solder points marked PA0and PA1 on the bottom side of the board (J213 J214)

Figure 5-6 Crystal Connection and Cut Straps

Top side Boom side

J214

J213

J216

J2151600 MHzCrystal

J217

525 On-Board Debugger ImplementationAVR128DB48 Curiosity Nano features an on-board debugger that can be used to program and debug theAVR128DB48 using UPDI The on-board debugger also includes a virtual serial port (CDC) interface over UART anddebug GPIO Both MPLABreg X IDE and Atmel Studio 7 can be used as a front-end for the on-board debugger forprogramming and debugging MPLAB Data Visualizer can be used as a front-end for the CDC and debug GPIO

5251 On-Board Debugger ConnectionsThe table below shows the connections between the target and the debugger section All connections between thetarget and the debugger are tri-stated as long as the debugger is not actively using the interface Hence since thereare little contaminations of the signals the pins can be configured to anything the user wants

For further information on how to use the capabilities of the on-board debugger see 41 On-Board DebuggerOverview

Table 5-6 On-Board Debugger Connections

AVR128DB48Pin

Debugger Pin Function Shared Functionality

PB1 CDC TX UART RX (AVR128DB48 RX line) Edge connector

PB0 CDC RX UART TX (AVR128DB48 TX line) Edge connector

UPDI DBG0 UPDI Edge connector

PB3 DBG1 LED0Debug GPIO1 Edge connector

PB2 DBG2 SW0Debug GPIO0 Edge connector

PF6 DBG3 RESET Edge connector

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 31

6 Hardware Revision History and Known IssuesThis user guide is written to provide information about the latest available revision of the board The followingsections contain information about known issues a revision history of older revisions and how older revisions differfrom the latest revision

61 Identifying Product ID and RevisionThe revision and product identifier of the AVR128DB48 Curiosity Nano Board can be found in two ways Either byutilizing the MPLABreg X IDE or Atmel Studio 7 Kit Window or by looking at the sticker on the bottom side of the PCB

By connecting AVR128DB48 Curiosity Nano to a computer with MPLABreg X IDE or Atmel Studio 7 running the KitWindow will pop up The first six digits of the serial number which is listed under kit information contain the productidentifier and revision

Tip  The Kit Window can be opened in MPLABreg X IDE through the menu bar Window gt Kit Window

The same information can be found on the sticker on the bottom side of the PCB Most boards will have the identifierand revision printed in plain text as A09-nnnnrr where ldquonnnnrdquo is the identifier and ldquorrrdquo is the revision Boards withlimited space have a sticker with only a data matrix code containing the product identifier revision and serialnumber

The serial number string has the following format

nnnnrrssssssssss

n = product identifier

r = revision

s = serial number

The product identifier for AVR128DB48 Curiosity Nano is A09‑3372

62 Revision 3AVR128DB48 silicon revision A5 or later is mounted on this revision of the board

63 Revision 2Revision 2 is the initially released board revision

AVR128DB48 silicon revision A4 is mounted on this revision of the board

AVR128DB48 Curiosity NanoHardware Revision History and Known Issues

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 32

7 Document Revision HistoryDoc Rev Date Comments

A 092020 Initial document release

AVR128DB48 Curiosity NanoDocument Revision History

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 33

8 Appendix

81 SchematicFigure 8-1 AVR128DB48 Curiosity Nano Schematic

11

22

33

44

55

66

77

88

DD

CC

BB

AA

2 of

4

AV

R12

8DB

48 C

uri

osit

y N

ano

240

820

20A

VR

128D

B48

_Cur

iosi

ty_N

ano_

Targ

et_M

CU

Sch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA

Rev

isio

n

File

P

CB

Num

ber

PC

B

Rev

isio

n

Des

ign

ed w

ith

Dra

wn

By

ML

Shee

t Titl

e

Targ

et M

CU

Eng

inee

rA

H

A08

-305

71

Size

A3

A09

-337

22

Page

D

ateA

ltium

com

GN

D

VD

DIO

2

100n

C20

1

GN

D

PA5_

SPI0

_MIS

OPA

6_SP

I0_S

CK

PA7_

SPI0

_SS

PB0_

USA

RT

3_T

XPB

1_U

SAR

T3_

RX

PB2_

SW0_

DB

G2

PB3_

LE

D0_

DB

G1

PB

4P

B5

PC

0P

C1

PC

2

PC3

PC4PC5PC6PC7PD0_AIN0_TCA0_WO0PD1_AIN1_OP0_INP_TCA0_WO1PD2_AIN2_OP0_OUT_TCA0_WO2PD3_AIN3_OP0_INNPD4_AIN4_OP1_INP

PA3_TWI0_SCL

PA1_XTALHF2

UPDI_DBG0

PF5_USART2_RX

PF3

PF

2PF

1_X

TA

L32

K2

PF0_

XT

AL

32K

1P

E3_

OP

2_IN

NP

E2_

OP

2_O

UT

PE

1_O

P2_

INP

PE

0

PD5_

AIN

5_O

P1_

OU

TPD

6_A

IN6

PD7_

AIN

7_O

P1_

INN

GN

D

VC

C_T

AR

GE

T

100n

C20

2

GN

DV

CC

_TA

RG

ET

100n

C20

0

PF1_XTAL32K2

PF0_XTAL32K1

PA2_TWI0_SDA

PA0_XTALHF1

PF4_USART2_TX

PA4_SPI0_MOSI

GN

D

PA7_

SPI0

_SS

PA6_

SPI0

_SC

KPA

5_SP

I0_M

ISO

PA4_

SPI0

_MO

SIPA

3_T

WI0

_SC

LPA

2_T

WI0

_SD

A

PC

0P

C1

PC

2P

C3

PB

4P

B5

PD7_

AIN

7_O

P1_

INN

PD6_

AIN

6

PD2_

AIN

2_O

P0_

OU

T_T

CA

0_W

O2

PD1_

AIN

1_O

P0_

INP_

TC

A0_

WO

1PD

0_A

IN0_

TC

A0_

WO

0

PD5_

AIN

5_O

P1_

OU

TPD

4_A

IN4_

OP

1_IN

P

PD3_

AIN

3_O

P0_

INN

32K

Hz

Cry

stal

PB0_

USA

RT

3_T

XPB

1_U

SAR

T3_

RX

1kR203

US

ER

LE

D

VC

C_T

AR

GE

T

PF6_DBG3

PB2_SW0_DBG2

PB3_LED0_DBG1

GN

D

USE

R B

UT

TO

N

PB3_

LE

D0_

DB

G1

PB2_

SW0_

DB

G2

PB1_

USA

RT

3_R

XPB

0_U

SAR

T3_

TX

PF4_

USA

RT

2_T

XPF

5_U

SAR

T2_

RX

PF

2P

F3

PC

4P

C5

PC

6P

C7

1kR202

YELLOWLEDSML-D12Y1WT86

2 1

D200

TS604VM1-035CR13

4 2

SW20

0

GN

DV

CC

_ED

GE

GN

DG

ND

GN

DG

ND

UPD

I_D

BG

0P

F6_

DB

G3

J209

PB3_

LE

D0_

DB

G1

PB2_

SW0_

DB

G2

AV

R12

8DB

48

22u

FC

205

VC

C_E

DG

E

GN

D

DBG0

CDC_TXCDC_RX

DBG2

DBG1

DBG3

DBG2

DE

BU

GG

ER

CO

NN

EC

TIO

NS

DBG1

DBG3DBG0

VOFF

ID_SYS

ID_SYS

VOFF

TA

RG

ET

BU

LK

VC

C_T

AR

GE

TR

ESE

T P

ull

VB

US

CD

C R

X3

CD

C T

X4

DB

G1

5

DB

G2

6

0 T

X7

1 R

X8

2 SD

A9

3 S

CL

10

4 M

OSI

11

5 M

ISO

12

6 S

CK

13

7 S

S14

GN

D15

0 (T

X)

16

1 (R

X)

17

218

319

020

GN

D24

DB

G3

54

DB

G0

53

GN

D52

VC

C51

PW

M 3

46

AD

C 2

45

AD

C 1

44

AD

C 0

43

GN

D42

438

434

GN

D33

AD

C 7

50

AD

C 6

49

AD

C 5

48

PW

M 4

47

DE

BU

GG

ER

TAR

GE

T

ID2

VO

FF

55

121

222

323

025

126

227

328

429

530

631

732

535

636

737

539

640

741

RE

SER

VE

D1

VB

US

56

CN

AN

O56

-pin

edg

e co

nnec

tor

J200

J201

J203

J205

J206

J202

J204

PF1_

XT

AL

32K

2PF

0_X

TA

L32

K1

NC

XOUT

XIN

47kR200

AV

R12

8DB

48

UPD

I

GPI

O1

GPI

O0

RE

SET

DB

G0

DB

G1

DB

G2

DB

G3

Deb

ugge

r

CD

C T

X

CD

C R

X

UA

RT

3 R

X

UA

RT

3 T

X

VT

G1

8V -

55

VPB

3

PB

2

PF

6

UP

DI

PB

0

PB

1

Nam

eP

in

PE

3_O

P2_

INN

PE

2_O

P2_

OU

TP

E1_

OP

2_IN

PP

E0

J207

J208

PF

0P

F1

PA5

1

PA6

2

PA7

3

PB0

4

PB1

5

PB2

6

PB3

7

PB4

8

PB5

9

PC0

10

PC1

11

PC2

12

PC313

VDDIO214

GND15

PC416

PC517

PC618

PC719

PD020

PD121

PD222

PD323

PD424

PD5

25

PD6

26

PD7

27

AVDD

28

GND

29

PE0

30

PE1

31

PE2

32

PE3

33

XTAL32K1PF0

34

XTAL32K2PF1

35

PF2

36

PF337

PF438

PF539

PF640

UPDI41

VDD42

GND43

XTALHF1PA044

XTALHF2PA145

PA246

PA347

PA448

AV

R12

8DB

48-I

PT

U20

0

0RR204

GN

D

VC

C_T

AR

GE

T

VDDIO2

GND

J210

J211

82p

C20

48

2pC

203

GN

DG

ND

16M

Hz

Cry

stal

J217

XHFOUT

XHFIN

J214

J213

GN

D

J215

J216

PA0_XTALHF1

PA1_XTALHF2

PA0_

XT

AL

HF

1PA

1_X

TA

LH

F2

PA0

PA1

1 2

J212 N

M

15pF

C20

615

pFC

207

13

24 16

000

MH

zV

XM

7-90

40-1

6M00

0000

0TR

XC

201

GN

D32

768

kHz

VM

K3-

9001

-32K

7680

000T

R

XC

200

CDC_TX

CDC_RX

CD

C_T

XC

DC

_RX

Cry

stal

dat

ashe

et

Ccr

ysta

l = 9

pFm

ax E

SR

= 7

0kO

hmA

ccur

acy

plusmn20p

pm

AV

R48

DB

128

data

shee

tC

xin

= 4

0pF

(ty

pica

l val

ue)

Cxo

ut =

40

pF (

typi

cal v

alue

)C

lasymp1

( (1

40

pF)+

(1

40p

F)

)asymp

20p

FM

axim

um L

oad

= 1

25p

FM

axim

um E

SR =

50k

Ohm

Est

imat

ed C

pcb

= 0

5pF

Est

imat

ed lo

adC

= 2

(C

crys

tal-

Cpa

ra -

Cpc

b)C

= 2

(9p

F -

20

pF -

05

pF)

C =

13

0pF

Sele

cted

in d

esig

n af

ter

veri

fica

tion

C=

82

pF8

2pF

NO

TE

on

UA

RT

CD

C

RX

TX

onth

ehe

ader

deno

tes

the

inpu

tout

put d

irec

tion

of th

e si

gnal

resp

ectiv

e to

its

sou

rce

CD

C T

X is

out

put f

rom

the

DE

BU

GG

ER

C

DC

RX

is in

put t

o th

e D

EB

UG

GE

R

TX

is o

utpu

t fro

m th

e T

AR

GE

T d

evic

eR

X is

inpu

t to

the

TA

RG

ET

dev

ice

NO

TE

on

I2C

No

pull

-ups

on

boar

d P

ull-

ups

shou

ld b

em

ount

ed c

lose

to s

lave

dev

ice(

s)

WA

RN

ING

M

ake

sure

tore

mov

e R

204

befo

reap

plyi

ng p

ower

to J

212

Cry

stal

dat

ashe

et

Ccr

ysta

l = 1

2pF

max

ES

R =

60O

hmA

ccur

acy

plusmn30p

pm

AV

R48

DB

128

data

shee

tC

xin

= 4

0pF

(ty

pica

l val

ue)

Cxo

ut =

40

pF (

typi

cal v

alue

)C

lasymp1

( (1

40

pF)+

(1

40p

F)

)asymp

20p

FM

axim

um L

oad

= 1

25p

FM

axim

um E

SR =

k

Ohm

Est

imat

ed C

pcb

= 0

5pF

Est

imat

ed lo

adC

= 2

(C

crys

tal-

Cpa

ra -

Cpc

b)C

= 2

(12

pF -

20

pF -

05

pF)

C =

19

0pF

Sele

cted

in d

esig

n af

ter

veri

fica

tion

C=

15p

F1

5pF

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 34

11

22

33

44

55

66

77

88

DD

CC

BB

AA

3 of

4

AV

R12

8DB

48 C

uri

osit

y N

ano

2020

-06-

26A

VR

128D

B48

_Cur

iosi

ty_N

ano_

Deb

ugge

rSch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA

Rev

isio

n

Fil

eP

CB

Num

ber

PC

B

Rev

isio

n

Des

ign

ed w

ith

Dra

wn

By

ML

Shee

t Tit

le

Deb

ugge

r

Eng

inee

rA

H

A08

-305

71

Size

A3

A09

-337

22

Page

D

ateA

ltium

com

DE

BU

GG

ER

USB

MIC

RO

-B C

ON

NE

CT

OR

GN

D

USB

D_P

USB

D_N

100n

C10

7

100n

C10

8

1kR

107

VC

C_P

3V3

SRST

STA

TU

S_L

ED

SHIE

LD

VB

US

VC

C_P

3V3

GN

D

TP

100

Test

poin

t Arr

ay

12

34

56

78

910

TC

KT

DO

TM

SV

sup

TD

IG

ND

TR

STSR

STV

Tre

fG

ND

J102

GN

D

47u

F

C10

0

DBG0

DB

G0

21

GR

EE

N L

ED

SML

-P12

MT

T86

R

D10

0

VBUS

1

D-

2

D+

3

GND

5

SHIELD1

6

SHIELD2

7

ID

4

SHIELD3

8

SHIELD4

9 MU

-MB

0142

AB

2-26

9

J105

PAD

33

PA00

1

PA01

2

PA02

3

PA03

4

GND 10VDDANA 9

PA04

5

PA05

6

PA06

7

PA07

8

PA08 11

PA09 12

PA10 13

PA11 14

PA14 15

PA15 16

PA16

17

PA17

18

PA18

19

PA19

20

PA22

21

USB_SOFPA23

22

USB_DMPA24

23

USB_DPPA25

24

PA2725 RESETN26 PA2827 GND28 VDDCORE29 VDDIN30 SWDCLKPA3031 SWDIOPA3132

SAM

D21

E18

A-M

UT

U10

0

VOUT

1

VOUT

2

GND 3

EN

4

VIN

6

NC

5

EP 7

MIC

5528

-33

YM

TU

101

VC

C_P

3V3

GN

D

USB

D_P

USB

D_N

GN

D

1uC

106

VC

C_M

CU

_CO

RE

VC

C_P

3V3

VC

C_P

3V3

22u

FC

101

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

3

VC

C_P

3V3

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

4

VC

C_P

3V3

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

5

VC

C_P

3V3

GN

D

GN

D GN

D

GN

D

VC

C_E

DG

E

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

7

VC

C_P

3V3

GN

DDBG2

DB

G3_

CT

RL

S1_0

_TX

S1_1

_RX

S0_2

_TX

DA

CV

TG

_AD

C

RE

SER

VE

D

S0_3

_CL

K

DBG0_CTRL

CD

C_T

X_C

TR

L

BO

OT

DE

BU

GG

ER

PO

WE

RS

TA

TU

S L

ED

EN

1

BYP

6

VOUT

4

GND

2

VIN

3

NCADJ

5

GND

7

MIC

5353

U10

2

100n

C10

2

GN

D

GN

D

47kR101

27kR104 G

ND

33k

R10

6

22u

F

C10

3 GN

D

1kR

108

J100

VC

C_L

EV

EL

VC

C_R

EG

UL

AT

OR

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

6

VC

C_P

3V3

GN

DDBG1

CD

C_R

X

CD

C_T

X

DBG3

DBG1_CTRL

DE

BU

GG

ER

RE

GU

LA

TO

R

REG_ENABLE

RE

G_E

NA

BL

E

47kR103

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

47kR102

47kR105

SWC

LK

GN

D

47kR100 G

ND

DB

G2

S0_0

_RX

DB

G1_

CT

RL

DB

G0_

CT

RL

DB

G3

OP

EN

DR

AIN

TA

RG

ET

AD

JUST

AB

LE

RE

GU

LA

TO

R

SRST

DE

BU

GG

ER

TE

ST

PO

INT DBG2_CTRL

VO

FF

CD

C_R

X_C

TR

L

47kR109

DB

G1

CD

C_T

X_C

TR

L

CD

C_R

X_C

TR

L

SWC

LK

REG_ADJUST

DBG2_GPIO

DB

G3_

CT

RL

DB

G2_

CT

RL

UP

DI

UPD

I

GPI

O

GPI

O

RE

SET

Sign

al

DB

G0

DB

G1

DB

G2

DB

G3

ICS

PIn

terf

ace

DA

T

CL

K

GPI

O

MC

LR

DB

G3

CD

C T

X

CD

C R

X

UA

RT

RX

UA

RT

TX

UA

RT

RX

UA

RT

TX

TA

RG

ET

TA

RG

ET

1kR

110

VBUS_ADC

1

23

DM

N65

D8L

FB

Q10

1

VC

C-

-

ID_SYS

VOFF

1kR112

VC

C_P

3V3

VT

G_A

DC

DA

C

MIC

9416

3

VIN

B2

VOUT

A1

VIN

A2

EN

C2

GND

C1

VOUT

B1

U10

8

GN

D

ID_S

YS

VT

G_E

N

VTG_EN

VBUS_ADC

SWD

IO

ID_S

YS

TP

101

GN

DSW

DIO

VO

FF

47kR111 G

ND

ID P

IN

MC

3621

3

F10

0

VC

C_V

BU

S

VC

C_V

BU

S

VC

C_V

BU

S

J101

VC

C_T

AR

GE

T

47k

R11

3

CDC_TX

CDC_RX

Prog

ram

min

g co

nnec

tor

for

fact

ory

prog

ram

min

g of

DE

BU

GG

ER

MIC

5528

V

in 2

5V

to 5

5V

Vou

t F

ixed

33

VIm

ax 5

00m

AD

ropo

ut 2

60m

V

500

mA

MIC

5353

V

in 2

6V

to 6

VV

out

12

5V to

51

VIm

ax 5

00m

AD

ropo

ut (

typi

cal)

50m

V

150m

A 1

60m

V

500

mA

Acc

urac

y 2

in

itia

lT

herm

al s

hutd

own

and

curr

ent l

imit

Max

imum

out

put v

olta

ge is

lim

ited

by

the

inpu

t vol

tage

and

the

drop

out v

olta

ge in

the

regu

lato

r(V

max

= V

in -

dro

pout

)

J100

-

Cut

-str

ap u

sed

for

full

sep

arat

ion

of ta

rget

pow

er f

rom

the

leve

l shi

fter

s an

don

-boa

rd r

egul

ator

s-

For

cur

rent

mea

sure

men

ts u

sing

the

on-b

oard

pow

er s

uppl

y th

isst

rap

mus

t be

cut a

nd a

nam

met

er c

onne

cted

acr

oss

- F

or c

urre

nt m

easu

rem

ents

usi

ng a

n ex

tern

al p

ower

sup

ply

this

str

ap c

ould

be

cut f

or m

ore

accu

rate

mea

sure

men

ts L

eaka

ge b

ack

thro

ugh

the

swit

ch is

in th

e m

icro

am

pere

ran

ge

PT

C R

eset

tabl

e fu

se

Hol

d cu

rren

t 5

00m

AT

rip

curr

ent

100

0mA

Adj

usta

ble

outp

ut a

nd li

mit

atio

ns

- T

he D

EB

UG

GE

R c

an a

djus

t the

out

put v

olta

ge o

f th

e re

gula

tor

betw

een

125

V a

nd 5

1V

to th

e ta

rget

-

The

vol

tage

out

put i

s li

mit

ed b

y th

e in

put (

US

B)

whi

ch c

an v

ary

betw

een

440

V to

52

5V-

The

leve

l shi

fter

s ha

ve a

min

imal

vol

tage

leve

l of

165

V a

nd w

ill l

imit

the

min

imum

ope

ratin

g vo

ltage

all

owed

for

the

targ

et to

sti

ll a

llow

com

mun

icat

ion

- T

he M

IC94

163

has

a m

inim

al v

olat

ege

leve

l of

170

V a

nd w

ill l

imit

the

min

imum

vol

tage

del

iver

ed to

the

targ

et

- F

irm

war

e co

nfig

urat

ion

wil

l lim

it th

e vo

ltage

ran

ge to

be

wit

hin

the

the

targ

et s

peci

fica

tion

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 35

82 Assembly DrawingFigure 8-2 AVR128DB48 Curiosity Nano Assembly Drawing Top

+

Cb

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20001 PAC20002 COC200

PAC20101 PAC20102 COC201

PAC20201 PAC20202 COC202 PAC20301

PAC20302 COC203

PAC20401

PAC20402 COC204

PAC20502

PAC20501 COC205

PAC20601

PAC20602 COC206 PAC20701

PAC20702 COC207 PAD10002 PAD10001 COD100

PAD20002

PAD20001 COD200

PAF10002

PAF10001 COF100

PAJ10002 PAJ10001 COJ100

PAJ10101 PAJ10102 COJ101

PAJ10201

PAJ10202

PAJ10203

PAJ10204

PAJ10205

PAJ10206 COJ102

PAJ10506

PAJ10507 PAJ10509

PAJ10508 PAJ105010

PAJ105011 PAJ10505

PAJ10504

PAJ10503

PAJ10502

PAJ10501

PAJ10500

COJ105

PAJ200056 PAJ200053

PAJ200028 PAJ20002 PAJ20001

PAJ200051 PAJ200050 PAJ200052 PAJ200049 PAJ200048 PAJ200047 PAJ200046 PAJ200045 PAJ200044 PAJ200043 PAJ200042 PAJ200041 PAJ200040 PAJ200039 PAJ200038 PAJ200037 PAJ200036 PAJ200035 PAJ200034 PAJ200033 PAJ200032 PAJ200031 PAJ200030 PAJ200029

PAJ20003 PAJ20004 PAJ20005 PAJ20006 PAJ20007 PAJ20008 PAJ20009 PAJ200010 PAJ200011 PAJ200012 PAJ200013 PAJ200014 PAJ200015 PAJ200016 PAJ200017 PAJ200018 PAJ200019 PAJ200020 PAJ200021 PAJ200022 PAJ200023 PAJ200026 PAJ200025 PAJ200024 PAJ200027

PAJ200054 PAJ200055 PAJ20000

COJ200

PAJ20102 PAJ20101 COJ201

PAJ20202 PAJ20201 COJ202

PAJ20302 PAJ20301 COJ203

PAJ20402 PAJ20401 COJ204

PAJ20502 PAJ20501 COJ205

PAJ20602 PAJ20601 COJ206 PAJ20702 PAJ20701 COJ207

PAJ20802 PAJ20801 COJ208

PAJ20902 PAJ20901 COJ209

PAJ21001 PAJ21002 PAJ21005 COJ210

PAJ21102 PAJ21101 PAJ21105 COJ211

PAJ21202 PAJ21201 COJ212

PAJ21301 PAJ21302 PAJ21305 COJ213

PAJ21401 PAJ21402 PAJ21405 COJ214

PAJ21502 PAJ21501 COJ215

PAJ21602 PAJ21601 COJ216 PAJ21702 PAJ21701 COJ217

COLABEL1

PAQ10101 PAQ10102 PAQ10103 PAQ10100

COQ101 PAR10002

PAR10001 COR100 PAR10101 PAR10102 COR101

PAR10202 PAR10201 COR102

PAR10302 PAR10301 COR103

PAR10401 PAR10402 COR104

PAR10502

PAR10501 COR105

PAR10601 PAR10602 COR106

PAR10702 PAR10701 COR107

PAR10801

PAR10802 COR108

PAR10901 PAR10902 COR109

PAR11001 PAR11002 COR110

PAR11101 PAR11102 COR111

PAR11201 PAR11202 COR112

PAR11302 PAR11301 COR113

PAR20001 PAR20002 COR200 PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203 PAR20401 PAR20402 COR204

PASW20003

PASW20004 PASW20002

PASW20001 COSW200

PATP10001 COTP100

PATP10101 COTP101 PAU100033

PAU100032 PAU100031 PAU100030 PAU100029 PAU100028 PAU100027 PAU100026 PAU100025 PAU100024

PAU100023

PAU100022

PAU100021

PAU100020

PAU100019

PAU100018

PAU100017 PAU100016 PAU100015 PAU100014 PAU100013 PAU100012 PAU100011 PAU100010

PAU10001

PAU10002

PAU10003

PAU10004

PAU10005

PAU10006

PAU10007

PAU10008 PAU10009

COU100

PAU10107

PAU10104 PAU10105 PAU10106

PAU10103 PAU10102 PAU10101 PAU10100 COU101 PAU10207

PAU10204 PAU10205

PAU10206

PAU10203 PAU10202

PAU10201

COU102

PAU10306

PAU10305 PAU10304 PAU10303

PAU10302 PAU10301 PAU10300

COU103

PAU10406

PAU10405 PAU10404 PAU10403

PAU10402 PAU10401 PAU10400

COU104

PAU10506

PAU10505 PAU10504 PAU10503

PAU10502 PAU10501 PAU10500

COU105

PAU10606

PAU10605 PAU10604 PAU10603

PAU10602 PAU10601 PAU10600

COU106

PAU10706

PAU10705 PAU10704 PAU10703

PAU10702 PAU10701 PAU10700

COU107

PAU1080A1 PAU1080A2

PAU1080B1 PAU1080B2

PAU1080C1 PAU1080C2 COU108

PAU20001 PAU20002 PAU20003 PAU20004 PAU20005 PAU20006 PAU20007 PAU20008 PAU20009 PAU200010 PAU200011 PAU200012 PAU200013 PAU200014 PAU200015 PAU200016 PAU200017 PAU200018 PAU200019 PAU200020 PAU200021 PAU200022 PAU200023 PAU200024 PAU200025 PAU200026 PAU200027 PAU200028 PAU200029 PAU200030 PAU200031 PAU200032 PAU200033 PAU200034 PAU200035 PAU200036

PAU200037 PAU200038 PAU200039 PAU200040 PAU200041 PAU200042 PAU200043 PAU200044 PAU200045 PAU200046 PAU200047 PAU200048

COU200

PAXC20001

PAXC20002 COXC200

PAXC20101 PAXC20102

PAXC20103 PAXC20104 COXC201

Figure 8-3 AVR128DB48 Curiosity Nano Assembly Drawing Bottom

tcR

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20001 PAC20002 COC200

PAC20101 PAC20102 COC201

PAC20201 PAC20202 COC202 PAC20301

PAC20302 COC203

PAC20401

PAC20402 COC204

PAC20502

PAC20501 COC205

PAC20601

PAC20602 COC206 PAC20701

PAC20702 COC207 PAD10002 PAD10001 COD100

PAD20002

PAD20001 COD200

PAF10002

PAF10001 COF100

PAJ10002 PAJ10001 COJ100

PAJ10101 PAJ10102 COJ101

PAJ10201

PAJ10202

PAJ10203

PAJ10204

PAJ10205

PAJ10206 COJ102

PAJ10506

PAJ10507 PAJ10509

PAJ10508 PAJ105010

PAJ105011 PAJ10505

PAJ10504

PAJ10503

PAJ10502

PAJ10501

PAJ10500

COJ105

PAJ200056 PAJ200053

PAJ200028 PAJ20002 PAJ20001

PAJ200051 PAJ200050 PAJ200052 PAJ200049 PAJ200048 PAJ200047 PAJ200046 PAJ200045 PAJ200044 PAJ200043 PAJ200042 PAJ200041 PAJ200040 PAJ200039 PAJ200038 PAJ200037 PAJ200036 PAJ200035 PAJ200034 PAJ200033 PAJ200032 PAJ200031 PAJ200030 PAJ200029

PAJ20003 PAJ20004 PAJ20005 PAJ20006 PAJ20007 PAJ20008 PAJ20009 PAJ200010 PAJ200011 PAJ200012 PAJ200013 PAJ200014 PAJ200015 PAJ200016 PAJ200017 PAJ200018 PAJ200019 PAJ200020 PAJ200021 PAJ200022 PAJ200023 PAJ200026 PAJ200025 PAJ200024 PAJ200027

PAJ200054 PAJ200055 PAJ20000

COJ200

PAJ20102 PAJ20101 COJ201

PAJ20202 PAJ20201 COJ202

PAJ20302 PAJ20301 COJ203

PAJ20402 PAJ20401 COJ204

PAJ20502 PAJ20501 COJ205

PAJ20602 PAJ20601 COJ206 PAJ20702 PAJ20701 COJ207

PAJ20802 PAJ20801 COJ208

PAJ20902 PAJ20901 COJ209

PAJ21001 PAJ21002 PAJ21005 COJ210

PAJ21102 PAJ21101 PAJ21105 COJ211

PAJ21202 PAJ21201 COJ212

PAJ21301 PAJ21302 PAJ21305 COJ213

PAJ21401 PAJ21402 PAJ21405 COJ214

PAJ21502 PAJ21501 COJ215

PAJ21602 PAJ21601 COJ216 PAJ21702 PAJ21701 COJ217

COLABEL1

PAQ10101 PAQ10102 PAQ10103 PAQ10100

COQ101 PAR10002

PAR10001 COR100 PAR10101 PAR10102 COR101

PAR10202 PAR10201 COR102

PAR10302 PAR10301 COR103

PAR10401 PAR10402 COR104

PAR10502

PAR10501 COR105

PAR10601 PAR10602 COR106

PAR10702 PAR10701 COR107

PAR10801

PAR10802 COR108

PAR10901 PAR10902 COR109

PAR11001 PAR11002 COR110

PAR11101 PAR11102 COR111

PAR11201 PAR11202 COR112

PAR11302 PAR11301 COR113

PAR20001 PAR20002 COR200 PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203 PAR20401 PAR20402 COR204

PASW20003

PASW20004 PASW20002

PASW20001 COSW200

PATP10001 COTP100

PATP10101 COTP101 PAU100033

PAU100032 PAU100031 PAU100030 PAU100029 PAU100028 PAU100027 PAU100026 PAU100025 PAU100024

PAU100023

PAU100022

PAU100021

PAU100020

PAU100019

PAU100018

PAU100017 PAU100016 PAU100015 PAU100014 PAU100013 PAU100012 PAU100011 PAU100010

PAU10001

PAU10002

PAU10003

PAU10004

PAU10005

PAU10006

PAU10007

PAU10008 PAU10009

COU100

PAU10107

PAU10104 PAU10105 PAU10106

PAU10103 PAU10102 PAU10101 PAU10100 COU101 PAU10207

PAU10204 PAU10205

PAU10206

PAU10203 PAU10202

PAU10201

COU102

PAU10306

PAU10305 PAU10304 PAU10303

PAU10302 PAU10301 PAU10300

COU103

PAU10406

PAU10405 PAU10404 PAU10403

PAU10402 PAU10401 PAU10400

COU104

PAU10506

PAU10505 PAU10504 PAU10503

PAU10502 PAU10501 PAU10500

COU105

PAU10606

PAU10605 PAU10604 PAU10603

PAU10602 PAU10601 PAU10600

COU106

PAU10706

PAU10705 PAU10704 PAU10703

PAU10702 PAU10701 PAU10700

COU107

PAU1080A1 PAU1080A2

PAU1080B1 PAU1080B2

PAU1080C1 PAU1080C2 COU108

PAU20001 PAU20002 PAU20003 PAU20004 PAU20005 PAU20006 PAU20007 PAU20008 PAU20009 PAU200010 PAU200011 PAU200012 PAU200013 PAU200014 PAU200015 PAU200016 PAU200017 PAU200018 PAU200019 PAU200020 PAU200021 PAU200022 PAU200023 PAU200024 PAU200025 PAU200026 PAU200027 PAU200028 PAU200029 PAU200030 PAU200031 PAU200032 PAU200033 PAU200034 PAU200035 PAU200036

PAU200037 PAU200038 PAU200039 PAU200040 PAU200041 PAU200042 PAU200043 PAU200044 PAU200045 PAU200046 PAU200047 PAU200048

COU200

PAXC20001

PAXC20002 COXC200

PAXC20101 PAXC20102

PAXC20103 PAXC20104 COXC201

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 36

83 Curiosity Nano Base for Click boardstrade

Figure 8-4 AVR128DB48 Curiosity Nano Pinout Mapping

US

B

DE

BU

GG

ER

AV

R1

28

DB

48

SW

0

LE

D0

PS

LE

DNC

NC

ID

ID

CDC RX

CDCRX

USART3 TX

PB0

CDC TX

CDCTX

USART3 RX

PB1

DBG1

DBG1

PB3

LED0

DBG2

DBG2

PB2

SW0

PF4

PF4

USART2 TX

PF5

PF5

USART2 RX

PA2

PA2

TWI0 SDA

PA3

PA3

TWI0 SCL

PA4

PA4

SPI0 MOSI

PA5

PA5

SPI0 MISO

PA6

PA6

SPI0 SCK

PA7

PA7

SPI0 SS

GND

GND

PB0

PB0

USART3 TX

CDC RX

PB1

PB1

USART3 RX

CDC TX

PF2

PF2

PF3

PF3

PC0

PC0

PC1

PC1

PC2

PC2

PC3

PC3

GND

GND

(PA0)

(PA0)

XTALHF1

(PA1)

(PA1)

XTALHF2

PB2

PB2

SW0

PB3

PB3

LED0

VBUS

VBUS

VOFF

VOFF

DBG3

DBG3

PF6

DBG0

DBG0

UPDI

GND

GND

VTG

VTG

PD6

PD6

AIN6

PD3

PD3

AIN3

OP0 INN

PD2

PD2

AIN2

OP0 OUT

TCA0 WO2

PD1

PD1

AIN1

OP0 INP

TCA0 WO1

PD0

PD0

AIN0

TCA0 WO0

PD7

PD7

AIN7

OP1 INN

PD5

PD5

AIN5

OP1 OUT

PD4

PD4

AIN4

OP1 INP

GND

GND

PE3

PE3

OP2 INN

PE2

PE2

OP2 OUT

PE1

PE1

OP2 INP

PE0

PE0

PC7

PC7

PC6

PC6

PC5

PC5

PC4

PC4

GND

GND

PB5

PB5

PB4

PB4

(PF1)

(PF1)

XTAL32K2

(PF0)

(PF0)

XTAL32K1

DE

BU

GG

ER

AV

R1

28

DB

48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

MVIO

OPAMP

Shared pin

AV

R1

28

DB

48

Cu

rio

sity

Na

no

1

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

2

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

3

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

Xp

lain

ed

Pro

Ext

en

sio

nE

XT

11

2

19

20

Cu

rio

sity

Na

no

Ba

sefo

r cl

ick

bo

ard

sT

M

PD4

PD0

PD6

PD3

PA7

PF5

PA6

PF4

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

PD5

PD1

PF3

PF2

PE2

PB1

PA6

PB0

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

PD7

PD2

PE1

PE0

PE3

PF5

PA6

PF4

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

ID

GND

PD5

PD7

PF3

PE1

PD1

PD2

PF2

PE3

PA2

PA3

PB1

PB0

PE2

PA4

PA5

PA6

GND

+33V

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 37

84 Disconnecting the On-board DebuggerThe on-board debugger and level shifters can be completely disconnected from the AVR128DB48

The block diagram below shows all connections between the debugger and the AVR128DB48 The rounded boxesrepresent connections to the board edge The signal names shown are also printed in silkscreen on the bottom sideof the board

To disconnect the debugger cut the straps shown in Figure 8-6

Attention  Cutting the GPIO straps to the on-board debugger will disable the virtual serial portprogramming debugging and data streaming Cutting the power supply strap will disconnect the on-boardpower supply

Tip  Any connection that is cut can be reconnected using solder Alternatively a 0Ω 0402 resistor can bemounted

Tip  When the debugger is disconnected an external debugger can be connected to holes shown in Figure 8-6 Details about connecting an external debugger are described in 46 Connecting ExternalDebuggers

Figure 8-5  On-Board Debugger Connections Block Diagram

DE

BU

GG

ER

TARGETLevel-Shift

PA04PA06PA07PA08PA16PA00PA01

USB

DIR x 5

VCC_P3V3

VBUS

VC

C_L

EV

EL

VC

C_T

AR

GE

TDBG0DBG1DBG2DBG3CDC TXCDC RX

CDC RX

CDC TX

DBG3

DBG2

DBG1

DBG0

GPIO straps

LDO

VOFF

LDO

VBUS VTG

VCC_EDGE

Power Supply strap Target Power strap

UART RXUART TX

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 38

Figure 8-6 On-Board Debugger Connection Cut Straps

GPIO straps (bottom side) Power Supply strap (top side)

85 Getting Started with IARIAR Embedded Workbenchreg for AVRreg is a proprietary high-efficiency compiler not based on GCC Programming anddebugging of AVR128DB48 Curiosity Nano is supported in IARtrade Embedded Workbench for AVR using the Atmel-ICEinterface Some initial settings must be set up in the project to get the programming and debugging to work

The following steps will explain how to get your project ready for programming and debugging

1 Make sure you have opened the project you want to configure Open the OPTIONS dialog for the project2 In the category General Options select the Target tab Select the device for the project or if not listed the

core of the device as shown in Figure 8-73 In the category Debugger select the Setup tab Select Atmel-ICE as the driver as shown in Figure 8-84 In the category Debugger gt Atmel-ICE select the Atmel-ICE 1 tab Select UPDI as the interface and

optionally select the UPDI frequency as shown in Figure 8-9

Info  If the selection of Debug Port (mentioned in step 4) is grayed out the interface is preselected andthe user can skip this configuration step

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 39

Figure 8-7 Select Target Device

Figure 8-8 Select Debugger

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 40

Figure 8-9 Configure Interface

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 41

The Microchip Website

Microchip provides online support via our website at wwwmicrochipcom This website is used to make files andinformation easily available to customers Some of the content available includes

bull Product Support ndash Data sheets and errata application notes and sample programs design resources userrsquosguides and hardware support documents latest software releases and archived software

bull General Technical Support ndash Frequently Asked Questions (FAQs) technical support requests onlinediscussion groups Microchip design partner program member listing

bull Business of Microchip ndash Product selector and ordering guides latest Microchip press releases listing ofseminars and events listings of Microchip sales offices distributors and factory representatives

Product Change Notification Service

Microchiprsquos product change notification service helps keep customers current on Microchip products Subscribers willreceive email notification whenever there are changes updates revisions or errata related to a specified productfamily or development tool of interest

To register go to wwwmicrochipcompcn and follow the registration instructions

Customer Support

Users of Microchip products can receive assistance through several channels

bull Distributor or Representativebull Local Sales Officebull Embedded Solutions Engineer (ESE)bull Technical Support

Customers should contact their distributor representative or ESE for support Local sales offices are also available tohelp customers A listing of sales offices and locations is included in this document

Technical support is available through the website at wwwmicrochipcomsupport

Microchip Devices Code Protection Feature

Note the following details of the code protection feature on Microchip devices

bull Microchip products meet the specifications contained in their particular Microchip Data Sheetbull Microchip believes that its family of products is secure when used in the intended manner and under normal

conditionsbull There are dishonest and possibly illegal methods being used in attempts to breach the code protection features

of the Microchip devices We believe that these methods require using the Microchip products in a manneroutside the operating specifications contained in Microchiprsquos Data Sheets Attempts to breach these codeprotection features most likely cannot be accomplished without violating Microchiprsquos intellectual property rights

bull Microchip is willing to work with any customer who is concerned about the integrity of its codebull Neither Microchip nor any other semiconductor manufacturer can guarantee the security of its code Code

protection does not mean that we are guaranteeing the product is ldquounbreakablerdquo Code protection is constantlyevolving We at Microchip are committed to continuously improving the code protection features of our productsAttempts to break Microchiprsquos code protection feature may be a violation of the Digital Millennium Copyright ActIf such acts allow unauthorized access to your software or other copyrighted work you may have a right to suefor relief under that Act

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 42

Legal Notice

Information contained in this publication is provided for the sole purpose of designing with and using Microchipproducts Information regarding device applications and the like is provided only for your convenience and may besuperseded by updates It is your responsibility to ensure that your application meets with your specifications

THIS INFORMATION IS PROVIDED BY MICROCHIP ldquoAS ISrdquo MICROCHIP MAKES NO REPRESENTATIONS ORWARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED WRITTEN OR ORAL STATUTORY OROTHERWISE RELATED TO THE INFORMATION INCLUDING BUT NOT LIMITED TO ANY IMPLIEDWARRANTIES OF NON-INFRINGEMENT MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSEOR WARRANTIES RELATED TO ITS CONDITION QUALITY OR PERFORMANCE

IN NO EVENT WILL MICROCHIP BE LIABLE FOR ANY INDIRECT SPECIAL PUNITIVE INCIDENTAL ORCONSEQUENTIAL LOSS DAMAGE COST OR EXPENSE OF ANY KIND WHATSOEVER RELATED TO THEINFORMATION OR ITS USE HOWEVER CAUSED EVEN IF MICROCHIP HAS BEEN ADVISED OF THEPOSSIBILITY OR THE DAMAGES ARE FORESEEABLE TO THE FULLEST EXTENT ALLOWED BY LAWMICROCHIPS TOTAL LIABILITY ON ALL CLAIMS IN ANY WAY RELATED TO THE INFORMATION OR ITS USEWILL NOT EXCEED THE AMOUNT OF FEES IF ANY THAT YOU HAVE PAID DIRECTLY TO MICROCHIP FORTHE INFORMATION Use of Microchip devices in life support andor safety applications is entirely at the buyerrsquos riskand the buyer agrees to defend indemnify and hold harmless Microchip from any and all damages claims suits orexpenses resulting from such use No licenses are conveyed implicitly or otherwise under any Microchip intellectualproperty rights unless otherwise stated

Trademarks

The Microchip name and logo the Microchip logo Adaptec AnyRate AVR AVR logo AVR Freaks BesTimeBitCloud chipKIT chipKIT logo CryptoMemory CryptoRF dsPIC FlashFlex flexPWR HELDO IGLOO JukeBloxKeeLoq Kleer LANCheck LinkMD maXStylus maXTouch MediaLB megaAVR Microsemi Microsemi logo MOSTMOST logo MPLAB OptoLyzer PackeTime PIC picoPower PICSTART PIC32 logo PolarFire Prochip DesignerQTouch SAM-BA SenGenuity SpyNIC SST SST Logo SuperFlash Symmetricom SyncServer TachyonTempTrackr TimeSource tinyAVR UNIO Vectron and XMEGA are registered trademarks of Microchip TechnologyIncorporated in the USA and other countries

APT ClockWorks The Embedded Control Solutions Company EtherSynch FlashTec Hyper Speed ControlHyperLight Load IntelliMOS Libero motorBench mTouch Powermite 3 Precision Edge ProASIC ProASIC PlusProASIC Plus logo Quiet-Wire SmartFusion SyncWorld Temux TimeCesium TimeHub TimePictra TimeProviderVite WinPath and ZL are registered trademarks of Microchip Technology Incorporated in the USA

Adjacent Key Suppression AKS Analog-for-the-Digital Age Any Capacitor AnyIn AnyOut BlueSky BodyComCodeGuard CryptoAuthentication CryptoAutomotive CryptoCompanion CryptoController dsPICDEMdsPICDEMnet Dynamic Average Matching DAM ECAN EtherGREEN In-Circuit Serial Programming ICSPINICnet Inter-Chip Connectivity JitterBlocker KleerNet KleerNet logo memBrain Mindi MiWi MPASM MPFMPLAB Certified logo MPLIB MPLINK MultiTRAK NetDetach Omniscient Code Generation PICDEMPICDEMnet PICkit PICtail PowerSmart PureSilicon QMatrix REAL ICE Ripple Blocker SAM-ICE Serial QuadIO SMART-IS SQI SuperSwitcher SuperSwitcher II Total Endurance TSHARC USBCheck VariSenseViewSpan WiperLock Wireless DNA and ZENA are trademarks of Microchip Technology Incorporated in the USAand other countries

SQTP is a service mark of Microchip Technology Incorporated in the USA

The Adaptec logo Frequency on Demand Silicon Storage Technology and Symmcom are registered trademarks ofMicrochip Technology Inc in other countries

GestIC is a registered trademark of Microchip Technology Germany II GmbH amp Co KG a subsidiary of MicrochipTechnology Inc in other countries

All other trademarks mentioned herein are property of their respective companiescopy 2020 Microchip Technology Incorporated Printed in the USA All Rights Reserved

ISBN 978-1-5224-6667-3

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 43

Quality Management SystemFor information regarding Microchiprsquos Quality Management Systems please visit wwwmicrochipcomquality

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 44

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupportwwwmicrochipcomsupportWeb AddresswwwmicrochipcomAtlantaDuluth GATel 678-957-9614Fax 678-957-1455Austin TXTel 512-257-3370BostonWestborough MATel 774-760-0087Fax 774-760-0088ChicagoItasca ILTel 630-285-0071Fax 630-285-0075DallasAddison TXTel 972-818-7423Fax 972-818-2924DetroitNovi MITel 248-848-4000Houston TXTel 281-894-5983IndianapolisNoblesville INTel 317-773-8323Fax 317-773-5453Tel 317-536-2380Los AngelesMission Viejo CATel 949-462-9523Fax 949-462-9608Tel 951-273-7800Raleigh NCTel 919-844-7510New York NYTel 631-435-6000San Jose CATel 408-735-9110Tel 408-436-4270Canada - TorontoTel 905-695-1980Fax 905-695-2078

Australia - SydneyTel 61-2-9868-6733China - BeijingTel 86-10-8569-7000China - ChengduTel 86-28-8665-5511China - ChongqingTel 86-23-8980-9588China - DongguanTel 86-769-8702-9880China - GuangzhouTel 86-20-8755-8029China - HangzhouTel 86-571-8792-8115China - Hong Kong SARTel 852-2943-5100China - NanjingTel 86-25-8473-2460China - QingdaoTel 86-532-8502-7355China - ShanghaiTel 86-21-3326-8000China - ShenyangTel 86-24-2334-2829China - ShenzhenTel 86-755-8864-2200China - SuzhouTel 86-186-6233-1526China - WuhanTel 86-27-5980-5300China - XianTel 86-29-8833-7252China - XiamenTel 86-592-2388138China - ZhuhaiTel 86-756-3210040

India - BangaloreTel 91-80-3090-4444India - New DelhiTel 91-11-4160-8631India - PuneTel 91-20-4121-0141Japan - OsakaTel 81-6-6152-7160Japan - TokyoTel 81-3-6880- 3770Korea - DaeguTel 82-53-744-4301Korea - SeoulTel 82-2-554-7200Malaysia - Kuala LumpurTel 60-3-7651-7906Malaysia - PenangTel 60-4-227-8870Philippines - ManilaTel 63-2-634-9065SingaporeTel 65-6334-8870Taiwan - Hsin ChuTel 886-3-577-8366Taiwan - KaohsiungTel 886-7-213-7830Taiwan - TaipeiTel 886-2-2508-8600Thailand - BangkokTel 66-2-694-1351Vietnam - Ho Chi MinhTel 84-28-5448-2100

Austria - WelsTel 43-7242-2244-39Fax 43-7242-2244-393Denmark - CopenhagenTel 45-4485-5910Fax 45-4485-2829Finland - EspooTel 358-9-4520-820France - ParisTel 33-1-69-53-63-20Fax 33-1-69-30-90-79Germany - GarchingTel 49-8931-9700Germany - HaanTel 49-2129-3766400Germany - HeilbronnTel 49-7131-72400Germany - KarlsruheTel 49-721-625370Germany - MunichTel 49-89-627-144-0Fax 49-89-627-144-44Germany - RosenheimTel 49-8031-354-560Israel - RarsquoananaTel 972-9-744-7705Italy - MilanTel 39-0331-742611Fax 39-0331-466781Italy - PadovaTel 39-049-7625286Netherlands - DrunenTel 31-416-690399Fax 31-416-690340Norway - TrondheimTel 47-72884388Poland - WarsawTel 48-22-3325737Romania - BucharestTel 40-21-407-87-50Spain - MadridTel 34-91-708-08-90Fax 34-91-708-08-91Sweden - GothenbergTel 46-31-704-60-40Sweden - StockholmTel 46-8-5090-4654UK - WokinghamTel 44-118-921-5800Fax 44-118-921-5820

Worldwide Sales and Service

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 45

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Board Overview
      • 2 Getting Started
        • 21 Quick Start
          • 211 Driver Installation
          • 212 Kit Window
          • 213 MPLABreg X IDE Device Family Packs
          • 214 Atmel Studio 7 Device Family Pack
            • 22 Design Documentation and Relevant Links
              • 3 Preprogrammed Application
              • 4 Curiosity Nano
                • 41 On-Board Debugger Overview
                  • 411 Debugger
                  • 412 Virtual Serial Port (CDC)
                    • 4121 Overview
                    • 4122 Operating System Support
                    • 4123 Limitations
                    • 4124 Signaling
                    • 4125 Advanced Use
                      • 413 Mass Storage Device
                        • 4131 Mass Storage Device Implementation
                        • 4132 Limitations of Drag-and-Drop Programming
                        • 4133 Special Commands
                          • 414 Data Gateway Interface (DGI)
                            • 4141 Debug GPIO
                            • 4142 Timestamping
                                • 42 Curiosity Nano Standard Pinout
                                • 43 Power Supply
                                  • 431 Target Regulator
                                  • 432 External Supply
                                  • 433 VBUS Output Pin
                                  • 434 Power Supply Exceptions
                                    • 44 Low-Power Measurement
                                    • 45 Programming External Microcontrollers
                                      • 451 Supported Devices
                                      • 452 Software Configuration
                                      • 453 Hardware Modifications
                                      • 454 Connecting to External Microcontrollers
                                        • 46 Connecting External Debuggers
                                          • 5 Hardware User Guide
                                            • 51 Connectors
                                              • 511 AVR128DB48 Curiosity Nano Pinout
                                              • 512 Using Pin Headers
                                              • 513 Multi-Voltage IO
                                              • 514 Operational Amplifiers
                                                • 52 Peripherals
                                                  • 521 LED
                                                  • 522 Mechanical Switch
                                                  • 523 32768 kHz Crystal
                                                  • 524 1600 MHz Crystal
                                                  • 525 On-Board Debugger Implementation
                                                    • 5251 On-Board Debugger Connections
                                                      • 6 Hardware Revision History and Known Issues
                                                        • 61 Identifying Product ID and Revision
                                                        • 62 Revision 3
                                                        • 63 Revision 2
                                                          • 7 Document Revision History
                                                          • 8 Appendix
                                                            • 81 Schematic
                                                            • 82 Assembly Drawing
                                                            • 83 Curiosity Nano Base for Click boardstrade
                                                            • 84 Disconnecting the On-board Debugger
                                                            • 85 Getting Started with IAR
                                                              • The Microchip Website
                                                              • Product Change Notification Service
                                                              • Customer Support
                                                              • Microchip Devices Code Protection Feature
                                                              • Legal Notice
                                                              • Trademarks
                                                              • Quality Management System
                                                              • Worldwide Sales and Service
Page 6: AVR128DB48 Curiosity Nano Hardware User Guideww1.microchip.com/downloads/en/DeviceDoc/AVR128DB48-Curiosit… · 4. Curiosity Nano Curiosity Nano is an evaluation platform of small

214 Atmel Studio 7 Device Family PackAtmel Studio 7 requires specific information to support devices This information is contained in versioned packs Forthe AVR128DB48 Curiosity Nano board Atmel Studio 7 version 702397 with device family pack ldquoAVR-Dx_DFPrdquoversion 11 or newer are required For more information on packs and how to upgrade them refer to the Atmel Studio7 User Guide - Device Pack Manager

Tip  The latest device family packs are available through Tools gt Device Pack Manager in Atmel Studio 7or online at Atmel Studio Packs Repository

22 Design Documentation and Relevant LinksThe following list contains links to the most relevant documents and software for the AVR128DB48 Curiosity Nanoboard

bull MPLABreg X IDE - MPLAB X IDE is a software program that runs on a PC (Windowsreg Mac OSreg Linuxreg) todevelop applications for Microchip microcontrollers and digital signal controllers It is called an IntegratedDevelopment Environment (IDE) because it provides a single integrated ldquoenvironmentrdquo to develop code forembedded microcontrollers

bull Atmel Studio - Free IDE for the development of CC++ and assembler code for microcontrollersbull IAR Embedded Workbenchreg for AVRreg - This is a commercial CC++ compiler that is available for AVR

microcontrollers There is a 30-day evaluation version as well as a 4 KB code-size-limited kick-start versionavailable from their website

bull MPLABreg XC Compilers - MPLABreg XC8 C Compiler is available as a free unrestricted-use downloadMicrochips MPLABreg XC8 C Compiler is a comprehensive solution for your projectrsquos software development onWindowsreg macOSreg or Linuxreg MPLABreg XC8 supports all 8-bit PICreg and AVRreg microcontrollers (MCUs)

bull MPLABreg Code Configurator - MPLAB Code Configurator (MCC) is a free software plug-in that provides agraphical interface to configure peripherals and functions specific to your application

bull Atmel START - Atmel START is an online tool that hosts code examples helps the user to select and configuresoftware components and tailor your embedded application in a usable and optimized manner

bull Microchip Sample Store - Microchip sample store where you can order samples of devicesbull MPLAB Data Visualizer - MPLAB Data Visualizer is a program used for processing and visualizing data The

Data Visualizer can receive data from various sources such as serial ports and on-board debuggerrsquos DataGateway Interface as found on Curiosity Nano and Xplained Pro boards

bull Studio Data Visualizer - Studio Data Visualizer is a program used for processing and visualizing data TheData Visualizer can receive data from various sources such as serial ports on-board debuggerrsquos Data GatewayInterface as found on Curiosity Nano and Xplained Pro boards and power data from the Power Debugger

bull Microchip PICreg and AVRreg Examples - Microchip PIC and AVR Device Examples is a collection of examplesand labs that use Microchip development boards to showcase the use of PIC and AVR device peripherals

bull Microchip PICreg and AVRreg Solutions - Microchip PIC and AVR Device Solutions contains completeapplications for use with Microchip development boards ready to be adapted and extended

bull AVR128DB48 Curiosity Nano website - Kit information latest user guide and design documentationbull AVR128DB48 Curiosity Nano on Microchip Direct - Purchase this kit on Microchip Direct

AVR128DB48 Curiosity NanoGetting Started

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 6

3 Preprogrammed ApplicationThe AVR128DB48 mounted on the Curiosity Nano Evaluation Kit is preprogrammed with an application ready toutilize the integrated operational amplifiers

To get started with the application you can find the user guide code and hex files for this application available onlineon GitHub

bull MPLAB Xreg IDEbull Atmel Studio 7

AVR128DB48 Curiosity NanoPreprogrammed Application

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 7

4 Curiosity NanoCuriosity Nano is an evaluation platform of small boards with access to most of the microcontrollers IOs Theplatform consists of a series of low pin count microcontroller (MCU) boards with on-board debuggers which areintegrated with MPLABreg X IDE and Atmel Studio 7 Each board is identified in the IDE When plugged in a KitWindow is displayed with links to key documentation including relevant user guides application notes data sheetsand example code Everything is easy to find The on-board debugger features a virtual serial port (CDC) for serialcommunication to a host PC and a Data Gateway Interface (DGI) with debug GPIO pin(s)

41 On-Board Debugger OverviewAVR128DB48 Curiosity Nano contains an on-board debugger for programming and debugging The on-boarddebugger is a composite USB device consisting of several interfaces

bull A debugger that can program and debug the AVR128DB48 in both MPLABreg X IDE and Atmel Studio 7bull A mass storage device that allows drag-and-drop programming of the AVR128DB48bull A virtual serial port (CDC) that is connected to a Universal Asynchronous ReceiverTransmitter (UART) on the

AVR128DB48 and provides an easy way to communicate with the target application through terminal softwarebull A Data Gateway Interface (DGI) for code instrumentation with logic analyzer channels (debug GPIO) to visualize

program flow

The on-board debugger controls a Power and Status LED (marked PS) on the AVR128DB48 Curiosity Nano BoardThe table below shows how the LED is controlled in different operation modes

Table 4-1 On-Board Debugger LED Control

Operation Mode Power and Status LED

Boot Loader mode The LED blinks slowly during power-up

Power-up The LED is ON

Normal operation The LED is ON

Programming Activity indicator The LED blinks slowly during programmingdebugging

Drag-and-dropprogramming Success The LED blinks slowly for 2 sec

Failure The LED blinks rapidly for 2 sec

Fault The LED blinks rapidly if a power fault is detected

SleepOff The LED is OFF The on-board debugger is either in a sleep mode or powered downThis can occur if the board is externally powered

Info  Slow blinking is approximately 1 Hz and rapid blinking is approximately 5 Hz

411 DebuggerThe on-board debugger on the AVR128DB48 Curiosity Nano Board appears as a Human Interface Device (HID) onthe host computerrsquos USB subsystem The debugger supports full-featured programming and debugging of theAVR128DB48 using both MPLABreg X IDE and Atmel Studio 7 as well as some third-party IDEs

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 8

Remember  Keep the debuggerrsquos firmware up-to-date Firmware upgrades are done automatically whenusing MPLABreg X IDE or Atmel Studio 7

412 Virtual Serial Port (CDC)The virtual serial port (CDC) is a general purpose serial bridge between a host PC and a target device

4121 OverviewThe on-board debugger implements a composite USB device that includes a standard Communications Device Class(CDC) interface which appears on the host as a virtual serial port The CDC can be used to stream arbitrary data inboth directions between the host computer and the target All characters sent through the virtual serial port on thehost computer will be transmitted as UART on the debuggerrsquos CDC TX pin and UART characters captured on thedebuggerrsquos CDC RX pin will be returned to the host computer through the virtual serial port

Figure 4-1 CDC Connection

Target MCU

UART TX

UART RX

Debugger

USBCDC RX

CDC TX

PCTerminalSoftware

TargetReceive

TargetSend

TerminalReceive

TerminalSend

Info  As shown in Figure 4-1 the debuggerrsquos CDC TX pin is connected to a UART RX pin on the targetfor receiving characters from the host computer Similarly the debuggerrsquos CDC RX pin is connected to aUART TX pin on the target for transmitting characters to the host computer

4122 Operating System SupportOn Windows machines the CDC will enumerate as Curiosity Virtual COM Port and appear in the Ports section of theWindows Device Manager The COM port number can also be found there

Info  On older Windows systems a USB driver is required for CDC This driver is included in installationsof both MPLABreg X IDE and Atmel Studio 7

On Linux machines the CDC will enumerate and appear as devttyACM

Info  tty devices belong to the ldquodialoutrdquo group in Linux so it may be necessary to become a member ofthat group to have permissions to access the CDC

On MAC machines the CDC will enumerate and appear as devttyusbmodem Depending on which terminalprogram is used it will appear in the available list of modems as usbmodem

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 9

Info  For all operating systems Be sure to use a terminal emulator that supports DTR signaling See 4124 Signaling

4123 LimitationsNot all UART features are implemented in the on-board debugger CDC The constraints are outlined here

bull Baud rate Must be in the range of 1200 bps to 500 kbps Any baud rate outside this range will be set to theclosest limit without warning Baud rate can be changed on-the-fly

bull Character format Only 8-bit characters are supportedbull Parity Can be odd even or nonebull Hardware flow control Not supportedbull Stop bits One or two bits are supported

4124 SignalingDuring USB enumeration the host OS will start both communication and data pipes of the CDC interface At thispoint it is possible to set and read back the baud rate and other UART parameters of the CDC but data sending andreceiving will not be enabled

When a terminal connects on the host it must assert the DTR signal As this is a virtual control signal implementedon the USB interface it is not physically present on the board Asserting the DTR signal from the host will indicate tothe on-board debugger that a CDC session is active The debugger will then enable its level shifters (if available) andstart the CDC data send and receive mechanisms

Deasserting DTR in debugger firmware version 120 or earlier has the following behaviorbull Debugger UART receiver is disabled so no further data will be transferred to the host computerbull Debugger UART transmitter will continue to send data that is queued for sending but no new data is accepted

from the host computerbull Level shifters (if available) are not disabled so the debugger CDC TX line remains driven

Deasserting DTR in debugger firmware version 121 or later has the following behaviorbull Debugger UART receiver is disabled so no further data will be transferred to the host computerbull Debugger UART transmitter will continue to send data that is queued for sending but no new data is accepted

from the host computerbull Once the ongoing transmission is complete level shifters (if available) are disabled so the debugger CDC TX

line will become high-impedance

Remember  Set up the terminal emulator to assert the DTR signal Without the signal the on-boarddebugger will not send or receive any data through its UART

Tip  The on-board debuggerrsquos CDC TX pin will not be driven until the CDC interface is enabled by thehost computer Also there are no external pull-up resistors on the CDC lines connecting the debugger andthe target which means that during power-up these lines are floating To avoid any glitches resulting inunpredictable behavior like framing errors the target device should enable the internal pull-up resistor onthe pin connected to the debuggerrsquos CDC TX pin

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 10

4125 Advanced Use

CDC Override ModeIn normal operation the on-board debugger is a true UART bridge between the host and the device However incertain use cases the on-board debugger can override the basic operating mode and use the CDC TX and RX pinsfor other purposes

Dropping a text file into the on-board debuggerrsquos mass storage drive can be used to send characters out of thedebuggerrsquos CDC TX pin The filename and extension are trivial but the text file must start with the charactersCMDSEND_UART=

Debugger firmware version 120 or earlier has the following limitationsbull The maximum message length is 50 characters ndash all remaining data in the frame are ignoredbull The default baud rate used in this mode is 9600 bps but if the CDC is already active or has been configured

the previously used baud rate still applies

Debugger firmware version 121 and later has the following limitationsfeaturesbull The maximum message length may vary depending on the MSCSCSI layer timeouts on the host computer

andor operating system A single SCSI frame of 512 bytes (498 characters of payload) is guaranteed and filesof up to 4 KB will work on most systems The transfer will complete on the first NULL character encountered inthe file

bull The baud rate used is always 9600 bps for the default commandCMDSEND_UART=

The CDC Override Mode should not be used simultaneously with data transfer over CDCterminal If a CDCterminal session is active at the time a file is received via CDC Override Mode it will be suspended for theduration of the operation and resumed once complete

bull Additional commands are supported with explicit baud ratesCMDSEND_9600=

CMDSEND_115200=

CMDSEND_460800=

USB-Level Framing ConsiderationsSending data from the host to the CDC can be done byte-wise or in blocks which will be chunked into 64-byte USBframes Each such frame will be queued up for sending to the debuggerrsquos CDC TX pin Transferring a small amountof data per frame can be inefficient particularly at low baud rates as the on-board debugger buffers frames and notbytes A maximum of four 64-byte frames can be active at any time The on-board debugger will throttle the incomingframes accordingly Sending full 64-byte frames containing data is the most efficient method

When receiving data on the debuggerrsquos CDC RX pin the on-board debugger will queue up the incoming bytes into64-byte frames which are sent to the USB queue for transmission to the host when they are full Incomplete framesare also pushed to the USB queue at approximately 100 ms intervals triggered by USB start-of-frame tokens Up toeight 64-byte frames can be active at any time

If the host (or the software running on it) fails to receive data fast enough an overrun will occur When this happensthe last-filled buffer frame will be recycled instead of being sent to the USB queue and a full frame of data will belost To prevent this occurrence the user must ensure that the CDC data pipe is being read continuously or theincoming data rate must be reduced

413 Mass Storage DeviceThe on-board debugger includes a simple Mass Storage Device implementation which is accessible for readwriteoperations via the host operating system to which it is connected

It providesbull Read access to basic text and HTML files for detailed kit information and support

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 11

bull Write access for programming Intelreg HEX formatted files into the target devicersquos memorybull Write access for simple text files for utility purposes

4131 Mass Storage Device ImplementationThe on-board debugger implements a highly optimized variant of the FAT12 file system that has several limitationspartly due to the nature of FAT12 itself and optimizations made to fulfill its purpose for its embedded application

The Curiosity Nano USB device is USB Chapter 9-compliant as a mass storage device but does not in any way fulfillthe expectations of a general purpose mass storage device This behavior is intentional

When using the Windows operating system the on-board debugger enumerates as a Curiosity Nano USB Devicethat can be found in the disk drives section of the device manager The CURIOSITY drive appears in the file managerand claims the next available drive letter in the system

The CURIOSITY drive contains approximately one MB of free space This does not reflect the size of the targetdevicersquos Flash in any way When programming an Intelreg HEX file the binary data are encoded in ASCII withmetadata providing a large overhead so one MB is a trivially chosen value for disk size

It is not possible to format the CURIOSITY drive When programming a file to the target the filename may appear inthe disk directory listing This is merely the operating systemrsquos view of the directory which in reality has not beenupdated It is not possible to read out the file contents Removing and replugging the board will return the file systemto its original state but the target will still contain the application that has been previously programmed

To erase the target device copy a text file starting with ldquoCMDERASErdquo onto the disk

By default the CURIOSITY drive contains several read-only files for generating icons as well as reporting status andlinking to further information

bull AUTORUNICO ndash icon file for the Microchip logobull AUTORUNINF ndash system file required for Windows Explorer to show the icon filebull KIT-INFOHTM ndash redirect to the development board websitebull KIT-INFOTXT ndash a text file containing details about the boardrsquos debugger firmware version board name USB

serial number device and drag-and-drop supportbull STATUSTXT ndash a text file containing the programming status of the board

Info  STATUSTXT is dynamically updated by the on-board debugger The contents may be cached bythe OS and therefore do not reflect the correct status

4132 Limitations of Drag-and-Drop Programming

Lock BitsLock bits included in the hex file will be ignored when using drag-and-drop programming To program lock bits useMPLABreg X IDE or Atmel Studio 7

Enabling CRC Check in FusesIt is not advisable to enable the CRC check in the target devicersquos fuses when using drag-and-drop programming Thisis because a subsequent chip erase (which does not affect fuse bits) will effect a CRC mismatch and the applicationwill fail to boot To recover a target from this state a chip erase must be done using MPLABreg X IDE orAtmel Studio 7 which will automatically clear the CRC fuses after erasing

4133 Special CommandsSeveral utility commands are supported by copying text files to the mass storage disk The filename or extension isirrelevant ndash the command handler reacts to content only

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 12

Table 4-2 Special File Commands

Command Content Description

CMDERASE Executes a chip erase of the target

CMDSEND_UART= Sends a string of characters to the CDC UART See ldquoCDCOverride Moderdquo

CMDSEND_9600=CMDSEND_115200=CMDSEND_460800=

Sends a string of characters to the CDC UART at the baud ratespecified Note that only the baud rates explicitly specified hereare supported See ldquoCDC Override Moderdquo (Debugger firmwarev121 or newer)

CMDRESET Resets the target device by entering Programming mode andthen exiting Programming mode immediately thereafter Exacttiming can vary according to the programming interface of thetarget device (Debugger firmware v116 or newer)

CMDPOWERTOGGLE Powers down the target and restores power after a 100 msdelay If external power is provided this has no effect(Debugger firmware v116 or newer)

CMD0V Powers down the target device by disabling the target supplyregulator If external power is provided this has no effect(Debugger firmware v116 or newer)

CMD1V8 Sets the target voltage to 18V If external power is providedthis has no effect (Debugger firmware v121 or newer)

CMD3V3 Sets the target voltage to 33V If external power is providedthis has no effect (Debugger firmware v116 or newer)

CMD5V0 Sets the target voltage to 50V If external power is providedthis has no effect (Debugger firmware v116 or newer)

Info  The commands listed here are triggered by the content being sent to the mass storage emulateddisk and no feedback is provided in the case of either success or failure

414 Data Gateway Interface (DGI)Data Gateway Interface (DGI) is a USB interface for transporting raw and timestamped data between on-boarddebuggers and host computer-based visualization tools MPLAB Data Visualizer is used on the host computer todisplay debug GPIO data It is available as a plug-in for MPLABreg X IDE or a stand-alone application that can be usedin parallel with MPLABreg X IDE or Atmel Studio 7

Although DGI encompasses several physical data interfaces the AVR128DB48 Curiosity Nano implementationincludes logic analyzer channels

bull Two debug GPIO channels (also known as DGI GPIO)

4141 Debug GPIODebug GPIO channels are timestamped digital signal lines connecting the target application to a host computervisualization application They are typically used to plot the occurrence of low-frequency events on a time-axis ndash forexample when certain application state transitions occur

The figure below shows the monitoring of the digital state of a mechanical switch connected to a debug GPIO inMPLAB Data Visualizer

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 13

Figure 4-2 Monitoring Debug GPIO with MPLABreg Data Visualizer

Debug GPIO channels are timestamped so the resolution of DGI GPIO events is determined by the resolution of theDGI timestamp module

Important  Although bursts of higher-frequency signals can be captured the useful frequency range ofsignals for which debug GPIO can be used is up to about 2 kHz Attempting to capture signals above thisfrequency will result in data saturation and overflow which may cause the DGI session to be aborted

4142 TimestampingDGI sources are timestamped as they are captured by the debugger The timestamp counter implemented in theCuriosity Nano debugger increments at 2 MHz frequency providing a timestamp resolution of a half microsecond

42 Curiosity Nano Standard PinoutThe 12 edge connections closest to the USB connector on Curiosity Nano boards have a standardized pinout Theprogramdebug pins have different functions depending on the target programming interface as shown in the tableand figure below

Table 4-3 Curiosity Nano Standard Pinout

Debugger Signal Target MCU Description

ID mdash ID line for extensions

CDC TX UART RX USB CDC TX line

CDC RX UART TX USB CDC RX line

DBG0 UPDI Debug data line

DBG1 GPIO1 debug GPIO1

DBG2 GPIO0 debug GPIO0

DBG3 RESET Reset line

NC mdash No connect

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 14

continuedDebugger Signal Target MCU Description

VBUS mdash VBUS voltage for external use

VOFF mdash Voltage Off input Disables the target regulator andtarget voltage when pulled low

VTG mdash Target voltage

GND mdash Common ground

Figure 4-3 Curiosity Nano Standard Pinout

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

43 Power SupplyThe board is powered through the USB port and contains two LDO regulators one to generate 33V for the on-boarddebugger and an adjustable LDO regulator for the target microcontroller AVR128DB48 and its peripherals Thevoltage from the USB connector can vary between 44V to 525V (according to the USB specification) and will limitthe maximum voltage to the target The figure below shows the entire power supply system on AVR128DB48Curiosity Nano

Figure 4-4 Power Supply Block Diagram

USBTarget MCU

Power source

Cut strap

Power consumer P3V3DEBUGGER

Power converter

DEBUGGERRegulator

VUSB

TargetRegulator

Power Supply strap

Adjust

Level shifter

VLVLVREG

IO IO GPIOstraps

IO

OnOffMeasure OnOff

ID systemVOFF

PTC Fuse

Power protection

VBUS

Target Power strap

VTG

431 Target RegulatorThe target voltage regulator is a MIC5353 variable output LDO The on-board debugger can adjust the voltage outputsupplied to the board target section by manipulating the MIC5353rsquos feedback voltage The hardware implementation

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 15

is limited to an approximate voltage range from 17V to 51V Additional output voltage limits are configured in thedebugger firmware to ensure that the output voltage never exceeds the hardware limits of the AVR128DB48microcontroller The voltage limits configured in the on-board debugger on AVR128DB48 Curiosity Nano are 18ndash55V

Info  The target voltage is set to 33V when the board is manufactured It can be changed throughMPLABreg X IDE project properties and in the Atmel Studio 7 device programming dialog Any change tothe target voltage is persistent even after a power toggle The resolution is less than 5 mV but may belimited to 10 mV by the adjustment program

Info  Voltage settings that are set up in MPLABreg X IDE are not immediately applied to the board Thenew voltage setting is applied to the board when the debugger is accessed in any way like pushing theRefresh Debug Tool Status button in the project dashboard tab or programmingreading program memory

Info  There is a simple option to adjust the target voltage with a drag-and-drop command text file to theboard This supports a set of common target voltages See section 4133 Special Commands for furtherdetails

The MIC5353 supports a maximum current load of 500 mA It is an LDO regulator in a small package placed on asmall printed circuit board (PCB) and the thermal shutdown condition can be reached at lower loads than 500 mAThe maximum current load depends on the input voltage the selected output voltage and the ambient temperatureThe figure below shows the safe operating area for the regulator with an input voltage of 51V and an ambienttemperature of 23degC

Figure 4-5 Target Regulator Safe Operation Area

The voltage output of the target regulator is continuously monitored (measured) by the on-board debugger If it ismore than 100 mV overunder the voltage setting value an error condition will be flagged and the target voltageregulator will be turned off This will detect and handle any short-circuit conditions It will also detect and handle if anexternal voltage which causes VCC_TARGET to move outside of the voltage setting monitoring window of plusmn100 mVis suddenly applied to the VTG pin without setting the VOFF pin low

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 16

Info  If the external voltage is lower than the monitoring window lower limit (target voltage setting ndash 100mV) the on-board debugger status LED will blink rapidly If the external voltage is higher than themonitoring window upper limit (target voltage setting + 100 mV) the on-board debugger status LED willcontinue to shine If the external voltage is removed the status LED will start to blink rapidly until the on-board debugger detects the new situation and turns the target voltage regulator back on

432 External SupplyAVR128DB48 Curiosity Nano can be powered by an external voltage instead of the on-board target regulator Whenthe Voltage Off (VOFF) pin is shorted to ground (GND) the on-board debugger firmware disables the target regulatorand it is safe to apply an external voltage to the VTG pin

It is also safe to apply an external voltage to the VTG pin when no USB cable is plugged into the DEBUG connectoron the board

The VOFF pin can be tied lowlet go at any time This will be detected by a pin-change interrupt to the on-boarddebugger which controls the target voltage regulator accordingly

WARNINGApplying an external voltage to the VTG pin without shorting VOFF to GND may cause permanent damageto the board

WARNINGDo not apply any voltage to the VOFF pin Let the pin float to enable the power supply

WARNINGAbsolute maximum external voltage is 55V for the on-board level shifters and the standard operatingcondition of the AVR128DB48 is 18ndash55V Applying a higher voltage may cause permanent damage to theboard

Info  If an external voltage is applied without pulling the VOFF pin low and an external supply pulls thevoltage lower than the monitoring windowrsquos lower limit (target voltage setting - 100 mV) the on-boarddebugger status LED will blink rapidly and shut the on-board regulator off If an external voltage issuddenly removed when the VOFF pin is not pulled low the status LED will start to blink rapidly until theon-board debugger detects the new situation and switches the target voltage regulator back on

Programming debugging and data streaming is still possible with an external power supply ndash the debugger andsignal level shifters will be powered from the USB cable Both regulators the debugger and the level shifters arepowered down when the USB cable is removed

Info  In addition to the power consumed by the AVR128DB48 and its peripherals approximately 100 microAwill be drawn from any external power source to power the on-board level shifters and voltage monitorcircuitry when a USB cable is plugged in the DEBUG connector on the board When a USB cable is notplugged in some current is used to supply the level shifters voltage pins which have a worst-case currentconsumption of approximately 5 microA Typical values may be as low as 100 nA

433 VBUS Output PinAVR128DB48 Curiosity Nano has a VBUS output pin that can be used to power external components that need a 5Vsupply The VBUS output pin has a PTC fuse to protect the USB against short circuits A side effect of the PTC fuseis a voltage drop on the VBUS output with higher current loads The chart below shows the voltage versus the currentload of the VBUS output

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 17

Figure 4-6 VBUS Output Voltage vs Current

434 Power Supply ExceptionsThis is a summary of most exceptions that can occur with the power supply

Target Voltage Shuts DownThis can happen if the target section draws too much current at a given voltage This will cause the thermal shutdownsafety feature of the MIC5353 regulator to kick in To avoid this reduce the current load of the target section

Target Voltage Setting is Not ReachedThe maximum output voltage is limited by the USB input voltage (specified to be 44-525V) and the voltage dropover the MIC5353 regulator at a given voltage setting and current consumption If a higher output voltage is neededuse a USB power source that can provide a higher input voltage or use an external voltage supply on the VTG pin

Target Voltage is Different From SettingThis can be caused by an externally applied voltage to the VTG pin without setting the VOFF pin low If the targetvoltage differs more than 100 mV overunder the voltage setting it will be detected by the on-board debugger andthe internal voltage regulator will be shut down To fix this issue remove the applied voltage from the VTG pin andthe on-board debugger will enable the on-board voltage regulator when the new condition is detected Note that thePS LED will be blinking rapidly if the target voltage is below 100 mV of the setting but will be lit normally when it ishigher than 100 mV above the setting

No Or Very Low Target Voltage and PS LED is Blinking RapidlyThis can be caused by a full or partial short-circuit and is a special case of the issue mentioned above Remove theshort-circuit and the on-board debugger will re-enable the on-board target voltage regulator

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 18

No Target Voltage and PS LED is Lit 1This occurs if the target voltage is set to 00V To fix this set the target voltage to a value within the specified voltagerange for the target device

No Target Voltage and PS LED is Lit 2This can be the issue if power jumper J100 andor J101 is cut and the target voltage regulator is set to a value withinthe specified voltage range for the target device To fix this solder a wirebridge between the pads for J100J101 oradd a jumper on J101 if a pin header is mounted

VBUS Output Voltage is Low or Not PresentThis is most lightly caused by a high-current drain on VBUS and the protection fuse (PTC) will reduce the current orcut off completely Reduce the current consumption on the VBUS pin to fix this issue

44 Low-Power MeasurementPower to the AVR128DB48 is connected from the on-board power supply and VTG pin through a 100 mil pin headermarked with ldquoPOWERrdquo in silkscreen (J101) To measure the power consumption of the AVR128DB48 and otherperipherals connected to the board cut the Target Power strap and connect an ammeter over the strap

To measure the lowest possible power consumption follow these steps1 Cut the POWER strap with a sharp tool2 Solder a 1x2 100 mil pin header in the footprint3 Connect an ammeter to the pin header4 Write firmware that

41 Tri-states any IO connected to the on-board debugger42 Sets the microcontroller in its lowest power Sleep state

5 Program the firmware into the AVR128DB48

Figure 4-7 Target Power Strap

Target Power strap (top side)

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 19

Tip  A 100-mil pin header can be soldered into the Target Power strap (J101) footprint for easyconnection of an ammeter Once the ammeter is no longer needed place a jumper cap on the pin header

Info  The on-board level shifters will draw a small amount of current even when they are not in use Amaximum of 2 microA can be drawn from each IO pin connected to a level shifter for a total of 10 microA Keepany IO pin connected to a level shifter in tri-state to prevent leakage All IOs connected to the on-boarddebugger are listed in 5251 On-Board Debugger Connections To prevent any leakage to the on-boardlevel shifters they can be disconnected completely as described in 84 Disconnecting the On-boardDebugger

45 Programming External MicrocontrollersThe on-board debugger on AVR128DB48 Curiosity Nano can be used to program and debug microcontrollers onexternal hardware

451 Supported DevicesAll external AVR microcontrollers with the UPDI interface can be programmed and debugged with the on-boarddebugger with Atmel Studio

External SAM microcontrollers that have a Curiosity Nano Board can be programmed and debugged with the on-board debugger with Atmel Studio

AVR128DB48 Curiosity Nano can program and debug external AVR128DB48 microcontrollers with MPLAB X IDE

452 Software ConfigurationNo software configuration is required to program and debug the same device that is mounted on the board

To program and debug a different microcontroller than what is mounted on the board Atmel Studio must beconfigured to allow free selection of devices and programming interfaces

1 Navigate to Tools gt Options through the menu system at the top of the application2 Select the Tools gt Tool settings category in the options window3 Set the Hide unsupported devices option to False

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 20

Figure 4-8 Hide Unsupported Devices

Info  Atmel Studio allows any microcontroller and interface to be selected when Hide unsupporteddevices is set to False also microcontrollers and interfaces which are not supported by the on-boarddebugger

453 Hardware ModificationsThe on-board debugger is connected to the AVR128DB48 by default These connections must be removed beforeany external microcontroller can be programmed or debugged Cut the GPIO straps shown in the figure below with asharp tool to disconnect the AVR128DB48 from the on-board debugger

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 21

Figure 4-9 Programming and Debugging Connections to Debugger

GPIO straps (bottom side)

Info  Cutting the connections to the debugger will disable programming debugging and data streamingfrom the AVR128DB48 mounted on the board

Tip  Solder in 0Ω resistors across the footprints or short-circuit them with solder to reconnect the signalsbetween the on-board debugger and the AVR128DB48

454 Connecting to External MicrocontrollersThe figure and table below show where the programming and debugging signals must be connected to program anddebug external microcontrollers The on-board debugger can supply power to the external hardware or use anexternal voltage as a reference for its level shifters Read more about the power supply in 43 Power Supply

The on-board debugger and level shifters actively drive data and clock signals (DBG0 DBG1 and DBG2) used forprogramming and debugging and in most cases the external resistor on these signals can be ignored Pull-downresistors are required on the ICSPtrade data and clock signals to debug PICreg microcontrollers

DBG3 is an open-drain connection and requires a pull-up resistor to function

AVR128DB48 Curiosity Nano has a pull-up resistor R200 connected to its RESET signal (DBG3) The location ofthe pull-up resistor is shown in the 82 Assembly Drawing in the appendix

Remember bull Connect GND and VTG to the external microcontrollerbull Tie the VOFF pin to GND if the external hardware has its own power supplybull Make sure there are pull-down resistors on the ICSP data and clock signals (DBG0 and DBG1) to

support the debugging of PIC microcontrollers

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 22

Figure 4-10 Curiosity Nano Standard Pinout

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

Table 4-4 Programming and Debugging Interfaces

Curiosity Nano Pin UPDI ICSPtrade SWD

DBG0 UPDI DATA SWDIO

DBG1 mdash CLK SWCLK

DBG2 mdash mdash mdash

DBG3 mdash MCLR RESET

46 Connecting External DebuggersEven though there is an on-board debugger external debuggers can be connected directly to the AVR128DB48Curiosity Nano to programdebug the AVR128DB48 The on-board debugger keeps all the pins connected to theAVR128DB48 and board edge in tri-state when not actively used Therefore the on-board debugger will not interferewith any external debug tools

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 23

Figure 4-11 Connecting the MPLABreg PICkittrade 4 In-Circuit DebuggerProgrammer to AVR128DB48 CuriosityNano

2345678 1

VDD

GroundDATA

2 = VDD

3 = Ground

4 = PGD

5 = Unused

6 = Unused

7 = Unused

8 = Unused

1 = Unused

MPLABreg PICkittrade 4

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 24

Figure 4-12 Connecting the Atmel-ICE to AVR128DB48 Curiosity Nano

VDD

Ground

DATA

AVRregSAM

3 = UPDI

4 = VTG

5 = Unused

6 = Unused

7 = Unused

8 = Unused

1 = Unused

2 = GND

9 = Unused

10 = Unused

Atmel-ICE

21 9

10

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

CAUTIONTo avoid contention between the external debugger and the on-board debugger do not start anyprogrammingdebug operation with the on-board debugger through MPLABreg X IDE or Atmel Studio 7 ormass storage programming while the external tool is active

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 25

5 Hardware User Guide

51 Connectors

511 AVR128DB48 Curiosity Nano PinoutAll the AVR128DB48 IO pins are accessible at the edge connectors on the board The image below shows the boardpinout For all available functions on each pin refer to the IO Multiplexing and Considerations section in theAVR128DB48 data sheet

Figure 5-1 AVR128DB48 Curiosity Nano Pinout

USB

DEBUGGER

AVR128DB48

SW0

LED0

PS LEDNC

NC

IDID

CDC RX

CD

CR

XUSART3 TXPB0

CDC TX

CD

CT

XUSART3 RXPB1

DBG1

DB

G1PB3LED0

DBG2

DB

G2PB2SW0

PF4

PF

4USART2 TX

PF5

PF

5USART2 RX

PA2

PA

2TWI0 SDA

PA3

PA

3TWI0 SCL

PA4

PA

4SPI0 MOSI

PA5

PA

5SPI0 MISO

PA6

PA

6SPI0 SCK

PA7

PA

7SPI0 SS

GND

GN

D

PB0

PB

0USART3 TXCDC RX

PB1

PB

1USART3 RXCDC TX

PF2

PF

2

PF3

PF

3

PC0

PC

0

PC1

PC

1

PC2

PC

2

PC3

PC

3

GND

GN

D

(PA0)

(PA

0)XTALHF1

(PA1)

(PA

1)XTALHF2

PB2

PB

2SW0

PB3

PB

3LED0

VBUS

VB

US

VOFF

VO

FF

DBG3

DB

G3 PF6

DBG0

DB

G0 UPDI

GND

GN

D

VTG

VT

G

PD6

PD

6 AIN6

PD3

PD

3 AIN3 OP0 INN

PD2

PD

2 AIN2 OP0 OUT TCA0 WO2

PD1

PD

1 AIN1 OP0 INP TCA0 WO1

PD0

PD

0 AIN0 TCA0 WO0

PD7

PD

7 AIN7 OP1 INN

PD5

PD

5 AIN5 OP1 OUT

PD4

PD

4 AIN4 OP1 INP

GND

GN

D

PE3

PE

3 OP2 INN

PE2

PE

2 OP2 OUT

PE1

PE

1 OP2 INP

PE0

PE

0

PC7

PC

7

PC6

PC

6

PC5

PC

5

PC4

PC

4

GND

GN

D

PB5

PB

5

PB4

PB

4

(PF1)

(PF

1) XTAL32K2

(PF0)

(PF

0) XTAL32K1

DEBUGGERAVR128DB48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

MVIO

OPAMP

Shared pin

AVR128DB48Curiosity Nano

512 Using Pin HeadersThe edge connector footprint on AVR128DB48 Curiosity Nano has a staggered design where each hole is shifted 8mil (~02 mm) off-center The hole shift allows the use of regular 100 mil pin headers on the board without solderingOnce the pin headers are firmly in place they can be used in normal applications like pin sockets and prototypingboards without any issues

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 26

Figure 5-2 Attaching Pin-Headers to the Curiostiy Nano Board

Figure 5-3 Connecting to Curiosity Nano Base for Click boardstrade

Tip  Start at one end of the pin header and gradually insert the header along the length of the boardOnce all the pins are in place use a flat surface to push them in

Tip  For applications where the pin headers will be used permanently it is still recommended to solderthem in place

Important  Once the pin headers are in place they are hard to remove by hand Use a set of pliers andcarefully remove the pin headers to avoid damage to the pin headers and PCB

513 Multi-Voltage IO

The AVR128DB48 Curiosity Nano MCU has support for Multi-Voltage IO (MVIO) AVR128DB48 MVIO pins areconnected to the edge connector at PC0-PC7 MVIO pins are capable of regular IO-pin behavior

MVIO can be configured in one of two supply modesbull Single-Supply mode All IO pins including MVIO-capable pins are powered by VCC_TARGET By default

VCC_TARGET is connected to VDDIO2 through a 0-ohm resistor (R204)bull Dual-Supply mode MVIO-capable pins are powered by an external power supply connected to VDDIO2 Non-

MVIO pins are powered by VCC_TARGET

Dual-Supply mode allows MVIO-pins to be powered at different voltages than pins powered from VCC_TARGET

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 27

WARNINGThe absolute maximum external voltage range for the AVR128DB48 is 18ndash55V Applying a higher voltagemay cause permanent damage to the board

By default AVR128DB48 Curiosity Nano board is configured for single-supply mode To use Dual-Supply mode somehardware modifications are required

WARNINGBefore any hardware modifications are done make sure the board is disconnected from USB or externalpower

bull Disconnect resistor R204 connecting VDDIO2 to VCC_TARGETbull Connect a new power supply to VDDIO2 and ground at J212bull J212 does not have reverse polarity protection Make sure to match polarity between the power supply and

J212 Positive-polarity to J212-pin 1 and negative-polarity to J212-pin 2

The resistor R204 VDDIO2 and J212 can be seen in Figure 5-4

Figure 5-4 MVIO and VDDIO2 Connections

J212 R204

WARNINGApplying an external voltage to VDDIO2 pin without removing resistor R204 may cause permanentdamage to the board

WARNINGJ212 does not have reverse polarity protection Applying voltage to the wrong pin may cause permanentdamage to the board

514 Operational AmplifiersAVR128DB48 features three internal operational amplifiers with a flexible connection scheme using analogmultiplexers and resistor ladders This allows a large number of analog signal conditioning configurations manyrequiring no external components

Table 5-1 OPAMP Pin Connections

OPAMP Poisitive Input (INP) Negative Input (INN) Output (OUT)

OP0 PD1 PD3 PD2

OP1 PD4 PD7 PD5

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 28

continuedOPAMP Poisitive Input (INP) Negative Input (INN) Output (OUT)

OP2 PE1 PE3 PE2

For information about OPAMP on the edge connector and any shared functionality see 511 AVR128DB48 CuriosityNano Pinout

52 Peripherals

521 LEDThere is one yellow user LED available on the AVR128DB48 Curiosity Nano board that can be controlled by eitherGPIO or PWM The LED can be activated by driving the connected IO line to GND

Table 5-2 LED Connection

AVR128DB48 Pin Function Shared Functionality

PB3 Yellow LED0 Edge connector On-board debugger

522 Mechanical SwitchThe AVR128DB48 Curiosity Nano board has one mechanical switch This is a generic user-configurable switchWhen the switch is pressed it will drive the IO line to ground (GND)

Tip  There is no externally connected pull-up resistor on the switch To use the switch make sure that aninternal pull-up resistor is enabled on pin PB2

Table 5-3 Mechanical Switch

AVR128DB48 Pin Description Shared Functionality

PB2 User switch (SW0) Edge connector On-board debugger

523 32768 kHz Crystal

On the AVR128DB48 Curiosity Nano board is a mounted 32768 kHz crystal of type VMK3-9001-32K7680000 thecrystal is accurate to within 20 ppm Using the External 32768 kHz Crystal Oscillator (XOSC32K) module inAVR128DB48 with the mounted 32768 kHz crystal generates a clock signal that is significantly more accurate thanthe Internal 32768 kHz Ultra Low-Power Oscillator (OSC32K) module can generate alone With the Auto-Tunefeature the 32768 kHz can be used as a reference to improve the accuracy of the internal oscillator This is an idealreference clock for the Real-Time Counter module in AVR128DB48

The 32768 kHz crystal is connected to AVR128DB48 on PF0 and PF1 which are also routed to the edge connectorthrough two solder points PF0 and PF1 are disconnected from the edge connector by default to reduce the chanceof an external signal causing contention with the crystal and to remove excessive capacitance on the lines

Next to the 32768 kHz crystal is a cut-strap (J209) which can be used to measure the oscillator safety factor This isdone by cutting the strap and adding a 0402 SMD resistor across the strap More information about oscillatorallowance and safety factor can be found in the AN2648 application note from Microchip

Cut straps and solder points can be seen in Figure 5-5

Table 5-4 32768 kHz Crystal Connections

AVR128DB48 Pin Function Shared Functionality

PF0 XTAL32K1 (Crystal input) Edge connector

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 29

continuedAVR128DB48 Pin Function Shared Functionality

PF1 XTAL32K2 (Crystal output) Edge connector

PA0 and PA1 can be used as GPIO To do so some hardware modifications are required

WARNINGBefore any hardware modifications are done make sure the board is disconnected from the USB orexternal power

bull Disconnect the 32768 kHz crystal by cutting the two straps on the top side of the board next to the crystal(J207 J208) The crystal should be disconnected when using the pin as GPIO as this might harm the crystal

bull Connect the IO lines to the edge connector by placing solder blobs on the circular solder points marked PF0and PF1 on the bottom side of the board (J210 J211)

Figure 5-5 Crystal Connection and Cut Straps

Top side Boom side

J211

J210

J207

J20832768 kHz Crystal

J209

524 1600 MHz Crystal

On the AVR128DB48 Curiosity Nano board is a mounted 1600 MHz crystal of type VXM7-9040-16M0000000 thecrystal is accurate to within 20 ppm Using the External High-Frequency Crystal Oscillator (XOSCHF) module inAVR128DB48 with the mounted 1600 MHz crystal generates a clock signal that is significantly more accurate thanthe Internal High-Frequency Oscillator (OSCHF) module

The 1600 MHz crystal is connected to AVR128DB48 on PA0 and PA1 which are also routed to the edge connectorthrough two solder points PA0 and PA1 are disconnected from the edge connector by default to reduce the chanceof an external signal causing contention with the crystal and to remove excessive capacitance on the lines

Next to the 1600 MHz crystal is a cut-strap (J217) which can be used to measure the oscillator safety factor This isdone by cutting the strap and adding a 0402 SMD resistor across the strap More information about oscillatorallowance and safety factor can be found in the AN2648 application note from Microchip

Cut straps and solder points can be seen in Figure 5-6

Table 5-5 Crystal Connections

AVR128DB48 Pin Function Shared Functionality

PA0 XTALHF1 (Crystal input) Edge connector

PA1 XTALHF2 (Crystal output) Edge connector

PA0 and PA1 can be used as GPIO To do so some hardware modifications are required

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 30

WARNINGBefore any hardware modifications are done make sure the board is disconnected from USB or externalpower

bull Disconnect the 1600 MHz crystal by cutting the two straps on the top side of the board next to the crystal (J215J216) The crystal should be disconnected when using the pin as GPIO as this might harm the crystal

bull Connect the IO lines to the edge connector by placing solder blobs on the circular solder points marked PA0and PA1 on the bottom side of the board (J213 J214)

Figure 5-6 Crystal Connection and Cut Straps

Top side Boom side

J214

J213

J216

J2151600 MHzCrystal

J217

525 On-Board Debugger ImplementationAVR128DB48 Curiosity Nano features an on-board debugger that can be used to program and debug theAVR128DB48 using UPDI The on-board debugger also includes a virtual serial port (CDC) interface over UART anddebug GPIO Both MPLABreg X IDE and Atmel Studio 7 can be used as a front-end for the on-board debugger forprogramming and debugging MPLAB Data Visualizer can be used as a front-end for the CDC and debug GPIO

5251 On-Board Debugger ConnectionsThe table below shows the connections between the target and the debugger section All connections between thetarget and the debugger are tri-stated as long as the debugger is not actively using the interface Hence since thereare little contaminations of the signals the pins can be configured to anything the user wants

For further information on how to use the capabilities of the on-board debugger see 41 On-Board DebuggerOverview

Table 5-6 On-Board Debugger Connections

AVR128DB48Pin

Debugger Pin Function Shared Functionality

PB1 CDC TX UART RX (AVR128DB48 RX line) Edge connector

PB0 CDC RX UART TX (AVR128DB48 TX line) Edge connector

UPDI DBG0 UPDI Edge connector

PB3 DBG1 LED0Debug GPIO1 Edge connector

PB2 DBG2 SW0Debug GPIO0 Edge connector

PF6 DBG3 RESET Edge connector

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 31

6 Hardware Revision History and Known IssuesThis user guide is written to provide information about the latest available revision of the board The followingsections contain information about known issues a revision history of older revisions and how older revisions differfrom the latest revision

61 Identifying Product ID and RevisionThe revision and product identifier of the AVR128DB48 Curiosity Nano Board can be found in two ways Either byutilizing the MPLABreg X IDE or Atmel Studio 7 Kit Window or by looking at the sticker on the bottom side of the PCB

By connecting AVR128DB48 Curiosity Nano to a computer with MPLABreg X IDE or Atmel Studio 7 running the KitWindow will pop up The first six digits of the serial number which is listed under kit information contain the productidentifier and revision

Tip  The Kit Window can be opened in MPLABreg X IDE through the menu bar Window gt Kit Window

The same information can be found on the sticker on the bottom side of the PCB Most boards will have the identifierand revision printed in plain text as A09-nnnnrr where ldquonnnnrdquo is the identifier and ldquorrrdquo is the revision Boards withlimited space have a sticker with only a data matrix code containing the product identifier revision and serialnumber

The serial number string has the following format

nnnnrrssssssssss

n = product identifier

r = revision

s = serial number

The product identifier for AVR128DB48 Curiosity Nano is A09‑3372

62 Revision 3AVR128DB48 silicon revision A5 or later is mounted on this revision of the board

63 Revision 2Revision 2 is the initially released board revision

AVR128DB48 silicon revision A4 is mounted on this revision of the board

AVR128DB48 Curiosity NanoHardware Revision History and Known Issues

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 32

7 Document Revision HistoryDoc Rev Date Comments

A 092020 Initial document release

AVR128DB48 Curiosity NanoDocument Revision History

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 33

8 Appendix

81 SchematicFigure 8-1 AVR128DB48 Curiosity Nano Schematic

11

22

33

44

55

66

77

88

DD

CC

BB

AA

2 of

4

AV

R12

8DB

48 C

uri

osit

y N

ano

240

820

20A

VR

128D

B48

_Cur

iosi

ty_N

ano_

Targ

et_M

CU

Sch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA

Rev

isio

n

File

P

CB

Num

ber

PC

B

Rev

isio

n

Des

ign

ed w

ith

Dra

wn

By

ML

Shee

t Titl

e

Targ

et M

CU

Eng

inee

rA

H

A08

-305

71

Size

A3

A09

-337

22

Page

D

ateA

ltium

com

GN

D

VD

DIO

2

100n

C20

1

GN

D

PA5_

SPI0

_MIS

OPA

6_SP

I0_S

CK

PA7_

SPI0

_SS

PB0_

USA

RT

3_T

XPB

1_U

SAR

T3_

RX

PB2_

SW0_

DB

G2

PB3_

LE

D0_

DB

G1

PB

4P

B5

PC

0P

C1

PC

2

PC3

PC4PC5PC6PC7PD0_AIN0_TCA0_WO0PD1_AIN1_OP0_INP_TCA0_WO1PD2_AIN2_OP0_OUT_TCA0_WO2PD3_AIN3_OP0_INNPD4_AIN4_OP1_INP

PA3_TWI0_SCL

PA1_XTALHF2

UPDI_DBG0

PF5_USART2_RX

PF3

PF

2PF

1_X

TA

L32

K2

PF0_

XT

AL

32K

1P

E3_

OP

2_IN

NP

E2_

OP

2_O

UT

PE

1_O

P2_

INP

PE

0

PD5_

AIN

5_O

P1_

OU

TPD

6_A

IN6

PD7_

AIN

7_O

P1_

INN

GN

D

VC

C_T

AR

GE

T

100n

C20

2

GN

DV

CC

_TA

RG

ET

100n

C20

0

PF1_XTAL32K2

PF0_XTAL32K1

PA2_TWI0_SDA

PA0_XTALHF1

PF4_USART2_TX

PA4_SPI0_MOSI

GN

D

PA7_

SPI0

_SS

PA6_

SPI0

_SC

KPA

5_SP

I0_M

ISO

PA4_

SPI0

_MO

SIPA

3_T

WI0

_SC

LPA

2_T

WI0

_SD

A

PC

0P

C1

PC

2P

C3

PB

4P

B5

PD7_

AIN

7_O

P1_

INN

PD6_

AIN

6

PD2_

AIN

2_O

P0_

OU

T_T

CA

0_W

O2

PD1_

AIN

1_O

P0_

INP_

TC

A0_

WO

1PD

0_A

IN0_

TC

A0_

WO

0

PD5_

AIN

5_O

P1_

OU

TPD

4_A

IN4_

OP

1_IN

P

PD3_

AIN

3_O

P0_

INN

32K

Hz

Cry

stal

PB0_

USA

RT

3_T

XPB

1_U

SAR

T3_

RX

1kR203

US

ER

LE

D

VC

C_T

AR

GE

T

PF6_DBG3

PB2_SW0_DBG2

PB3_LED0_DBG1

GN

D

USE

R B

UT

TO

N

PB3_

LE

D0_

DB

G1

PB2_

SW0_

DB

G2

PB1_

USA

RT

3_R

XPB

0_U

SAR

T3_

TX

PF4_

USA

RT

2_T

XPF

5_U

SAR

T2_

RX

PF

2P

F3

PC

4P

C5

PC

6P

C7

1kR202

YELLOWLEDSML-D12Y1WT86

2 1

D200

TS604VM1-035CR13

4 2

SW20

0

GN

DV

CC

_ED

GE

GN

DG

ND

GN

DG

ND

UPD

I_D

BG

0P

F6_

DB

G3

J209

PB3_

LE

D0_

DB

G1

PB2_

SW0_

DB

G2

AV

R12

8DB

48

22u

FC

205

VC

C_E

DG

E

GN

D

DBG0

CDC_TXCDC_RX

DBG2

DBG1

DBG3

DBG2

DE

BU

GG

ER

CO

NN

EC

TIO

NS

DBG1

DBG3DBG0

VOFF

ID_SYS

ID_SYS

VOFF

TA

RG

ET

BU

LK

VC

C_T

AR

GE

TR

ESE

T P

ull

VB

US

CD

C R

X3

CD

C T

X4

DB

G1

5

DB

G2

6

0 T

X7

1 R

X8

2 SD

A9

3 S

CL

10

4 M

OSI

11

5 M

ISO

12

6 S

CK

13

7 S

S14

GN

D15

0 (T

X)

16

1 (R

X)

17

218

319

020

GN

D24

DB

G3

54

DB

G0

53

GN

D52

VC

C51

PW

M 3

46

AD

C 2

45

AD

C 1

44

AD

C 0

43

GN

D42

438

434

GN

D33

AD

C 7

50

AD

C 6

49

AD

C 5

48

PW

M 4

47

DE

BU

GG

ER

TAR

GE

T

ID2

VO

FF

55

121

222

323

025

126

227

328

429

530

631

732

535

636

737

539

640

741

RE

SER

VE

D1

VB

US

56

CN

AN

O56

-pin

edg

e co

nnec

tor

J200

J201

J203

J205

J206

J202

J204

PF1_

XT

AL

32K

2PF

0_X

TA

L32

K1

NC

XOUT

XIN

47kR200

AV

R12

8DB

48

UPD

I

GPI

O1

GPI

O0

RE

SET

DB

G0

DB

G1

DB

G2

DB

G3

Deb

ugge

r

CD

C T

X

CD

C R

X

UA

RT

3 R

X

UA

RT

3 T

X

VT

G1

8V -

55

VPB

3

PB

2

PF

6

UP

DI

PB

0

PB

1

Nam

eP

in

PE

3_O

P2_

INN

PE

2_O

P2_

OU

TP

E1_

OP

2_IN

PP

E0

J207

J208

PF

0P

F1

PA5

1

PA6

2

PA7

3

PB0

4

PB1

5

PB2

6

PB3

7

PB4

8

PB5

9

PC0

10

PC1

11

PC2

12

PC313

VDDIO214

GND15

PC416

PC517

PC618

PC719

PD020

PD121

PD222

PD323

PD424

PD5

25

PD6

26

PD7

27

AVDD

28

GND

29

PE0

30

PE1

31

PE2

32

PE3

33

XTAL32K1PF0

34

XTAL32K2PF1

35

PF2

36

PF337

PF438

PF539

PF640

UPDI41

VDD42

GND43

XTALHF1PA044

XTALHF2PA145

PA246

PA347

PA448

AV

R12

8DB

48-I

PT

U20

0

0RR204

GN

D

VC

C_T

AR

GE

T

VDDIO2

GND

J210

J211

82p

C20

48

2pC

203

GN

DG

ND

16M

Hz

Cry

stal

J217

XHFOUT

XHFIN

J214

J213

GN

D

J215

J216

PA0_XTALHF1

PA1_XTALHF2

PA0_

XT

AL

HF

1PA

1_X

TA

LH

F2

PA0

PA1

1 2

J212 N

M

15pF

C20

615

pFC

207

13

24 16

000

MH

zV

XM

7-90

40-1

6M00

0000

0TR

XC

201

GN

D32

768

kHz

VM

K3-

9001

-32K

7680

000T

R

XC

200

CDC_TX

CDC_RX

CD

C_T

XC

DC

_RX

Cry

stal

dat

ashe

et

Ccr

ysta

l = 9

pFm

ax E

SR

= 7

0kO

hmA

ccur

acy

plusmn20p

pm

AV

R48

DB

128

data

shee

tC

xin

= 4

0pF

(ty

pica

l val

ue)

Cxo

ut =

40

pF (

typi

cal v

alue

)C

lasymp1

( (1

40

pF)+

(1

40p

F)

)asymp

20p

FM

axim

um L

oad

= 1

25p

FM

axim

um E

SR =

50k

Ohm

Est

imat

ed C

pcb

= 0

5pF

Est

imat

ed lo

adC

= 2

(C

crys

tal-

Cpa

ra -

Cpc

b)C

= 2

(9p

F -

20

pF -

05

pF)

C =

13

0pF

Sele

cted

in d

esig

n af

ter

veri

fica

tion

C=

82

pF8

2pF

NO

TE

on

UA

RT

CD

C

RX

TX

onth

ehe

ader

deno

tes

the

inpu

tout

put d

irec

tion

of th

e si

gnal

resp

ectiv

e to

its

sou

rce

CD

C T

X is

out

put f

rom

the

DE

BU

GG

ER

C

DC

RX

is in

put t

o th

e D

EB

UG

GE

R

TX

is o

utpu

t fro

m th

e T

AR

GE

T d

evic

eR

X is

inpu

t to

the

TA

RG

ET

dev

ice

NO

TE

on

I2C

No

pull

-ups

on

boar

d P

ull-

ups

shou

ld b

em

ount

ed c

lose

to s

lave

dev

ice(

s)

WA

RN

ING

M

ake

sure

tore

mov

e R

204

befo

reap

plyi

ng p

ower

to J

212

Cry

stal

dat

ashe

et

Ccr

ysta

l = 1

2pF

max

ES

R =

60O

hmA

ccur

acy

plusmn30p

pm

AV

R48

DB

128

data

shee

tC

xin

= 4

0pF

(ty

pica

l val

ue)

Cxo

ut =

40

pF (

typi

cal v

alue

)C

lasymp1

( (1

40

pF)+

(1

40p

F)

)asymp

20p

FM

axim

um L

oad

= 1

25p

FM

axim

um E

SR =

k

Ohm

Est

imat

ed C

pcb

= 0

5pF

Est

imat

ed lo

adC

= 2

(C

crys

tal-

Cpa

ra -

Cpc

b)C

= 2

(12

pF -

20

pF -

05

pF)

C =

19

0pF

Sele

cted

in d

esig

n af

ter

veri

fica

tion

C=

15p

F1

5pF

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 34

11

22

33

44

55

66

77

88

DD

CC

BB

AA

3 of

4

AV

R12

8DB

48 C

uri

osit

y N

ano

2020

-06-

26A

VR

128D

B48

_Cur

iosi

ty_N

ano_

Deb

ugge

rSch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA

Rev

isio

n

Fil

eP

CB

Num

ber

PC

B

Rev

isio

n

Des

ign

ed w

ith

Dra

wn

By

ML

Shee

t Tit

le

Deb

ugge

r

Eng

inee

rA

H

A08

-305

71

Size

A3

A09

-337

22

Page

D

ateA

ltium

com

DE

BU

GG

ER

USB

MIC

RO

-B C

ON

NE

CT

OR

GN

D

USB

D_P

USB

D_N

100n

C10

7

100n

C10

8

1kR

107

VC

C_P

3V3

SRST

STA

TU

S_L

ED

SHIE

LD

VB

US

VC

C_P

3V3

GN

D

TP

100

Test

poin

t Arr

ay

12

34

56

78

910

TC

KT

DO

TM

SV

sup

TD

IG

ND

TR

STSR

STV

Tre

fG

ND

J102

GN

D

47u

F

C10

0

DBG0

DB

G0

21

GR

EE

N L

ED

SML

-P12

MT

T86

R

D10

0

VBUS

1

D-

2

D+

3

GND

5

SHIELD1

6

SHIELD2

7

ID

4

SHIELD3

8

SHIELD4

9 MU

-MB

0142

AB

2-26

9

J105

PAD

33

PA00

1

PA01

2

PA02

3

PA03

4

GND 10VDDANA 9

PA04

5

PA05

6

PA06

7

PA07

8

PA08 11

PA09 12

PA10 13

PA11 14

PA14 15

PA15 16

PA16

17

PA17

18

PA18

19

PA19

20

PA22

21

USB_SOFPA23

22

USB_DMPA24

23

USB_DPPA25

24

PA2725 RESETN26 PA2827 GND28 VDDCORE29 VDDIN30 SWDCLKPA3031 SWDIOPA3132

SAM

D21

E18

A-M

UT

U10

0

VOUT

1

VOUT

2

GND 3

EN

4

VIN

6

NC

5

EP 7

MIC

5528

-33

YM

TU

101

VC

C_P

3V3

GN

D

USB

D_P

USB

D_N

GN

D

1uC

106

VC

C_M

CU

_CO

RE

VC

C_P

3V3

VC

C_P

3V3

22u

FC

101

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

3

VC

C_P

3V3

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

4

VC

C_P

3V3

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

5

VC

C_P

3V3

GN

D

GN

D GN

D

GN

D

VC

C_E

DG

E

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

7

VC

C_P

3V3

GN

DDBG2

DB

G3_

CT

RL

S1_0

_TX

S1_1

_RX

S0_2

_TX

DA

CV

TG

_AD

C

RE

SER

VE

D

S0_3

_CL

K

DBG0_CTRL

CD

C_T

X_C

TR

L

BO

OT

DE

BU

GG

ER

PO

WE

RS

TA

TU

S L

ED

EN

1

BYP

6

VOUT

4

GND

2

VIN

3

NCADJ

5

GND

7

MIC

5353

U10

2

100n

C10

2

GN

D

GN

D

47kR101

27kR104 G

ND

33k

R10

6

22u

F

C10

3 GN

D

1kR

108

J100

VC

C_L

EV

EL

VC

C_R

EG

UL

AT

OR

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

6

VC

C_P

3V3

GN

DDBG1

CD

C_R

X

CD

C_T

X

DBG3

DBG1_CTRL

DE

BU

GG

ER

RE

GU

LA

TO

R

REG_ENABLE

RE

G_E

NA

BL

E

47kR103

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

47kR102

47kR105

SWC

LK

GN

D

47kR100 G

ND

DB

G2

S0_0

_RX

DB

G1_

CT

RL

DB

G0_

CT

RL

DB

G3

OP

EN

DR

AIN

TA

RG

ET

AD

JUST

AB

LE

RE

GU

LA

TO

R

SRST

DE

BU

GG

ER

TE

ST

PO

INT DBG2_CTRL

VO

FF

CD

C_R

X_C

TR

L

47kR109

DB

G1

CD

C_T

X_C

TR

L

CD

C_R

X_C

TR

L

SWC

LK

REG_ADJUST

DBG2_GPIO

DB

G3_

CT

RL

DB

G2_

CT

RL

UP

DI

UPD

I

GPI

O

GPI

O

RE

SET

Sign

al

DB

G0

DB

G1

DB

G2

DB

G3

ICS

PIn

terf

ace

DA

T

CL

K

GPI

O

MC

LR

DB

G3

CD

C T

X

CD

C R

X

UA

RT

RX

UA

RT

TX

UA

RT

RX

UA

RT

TX

TA

RG

ET

TA

RG

ET

1kR

110

VBUS_ADC

1

23

DM

N65

D8L

FB

Q10

1

VC

C-

-

ID_SYS

VOFF

1kR112

VC

C_P

3V3

VT

G_A

DC

DA

C

MIC

9416

3

VIN

B2

VOUT

A1

VIN

A2

EN

C2

GND

C1

VOUT

B1

U10

8

GN

D

ID_S

YS

VT

G_E

N

VTG_EN

VBUS_ADC

SWD

IO

ID_S

YS

TP

101

GN

DSW

DIO

VO

FF

47kR111 G

ND

ID P

IN

MC

3621

3

F10

0

VC

C_V

BU

S

VC

C_V

BU

S

VC

C_V

BU

S

J101

VC

C_T

AR

GE

T

47k

R11

3

CDC_TX

CDC_RX

Prog

ram

min

g co

nnec

tor

for

fact

ory

prog

ram

min

g of

DE

BU

GG

ER

MIC

5528

V

in 2

5V

to 5

5V

Vou

t F

ixed

33

VIm

ax 5

00m

AD

ropo

ut 2

60m

V

500

mA

MIC

5353

V

in 2

6V

to 6

VV

out

12

5V to

51

VIm

ax 5

00m

AD

ropo

ut (

typi

cal)

50m

V

150m

A 1

60m

V

500

mA

Acc

urac

y 2

in

itia

lT

herm

al s

hutd

own

and

curr

ent l

imit

Max

imum

out

put v

olta

ge is

lim

ited

by

the

inpu

t vol

tage

and

the

drop

out v

olta

ge in

the

regu

lato

r(V

max

= V

in -

dro

pout

)

J100

-

Cut

-str

ap u

sed

for

full

sep

arat

ion

of ta

rget

pow

er f

rom

the

leve

l shi

fter

s an

don

-boa

rd r

egul

ator

s-

For

cur

rent

mea

sure

men

ts u

sing

the

on-b

oard

pow

er s

uppl

y th

isst

rap

mus

t be

cut a

nd a

nam

met

er c

onne

cted

acr

oss

- F

or c

urre

nt m

easu

rem

ents

usi

ng a

n ex

tern

al p

ower

sup

ply

this

str

ap c

ould

be

cut f

or m

ore

accu

rate

mea

sure

men

ts L

eaka

ge b

ack

thro

ugh

the

swit

ch is

in th

e m

icro

am

pere

ran

ge

PT

C R

eset

tabl

e fu

se

Hol

d cu

rren

t 5

00m

AT

rip

curr

ent

100

0mA

Adj

usta

ble

outp

ut a

nd li

mit

atio

ns

- T

he D

EB

UG

GE

R c

an a

djus

t the

out

put v

olta

ge o

f th

e re

gula

tor

betw

een

125

V a

nd 5

1V

to th

e ta

rget

-

The

vol

tage

out

put i

s li

mit

ed b

y th

e in

put (

US

B)

whi

ch c

an v

ary

betw

een

440

V to

52

5V-

The

leve

l shi

fter

s ha

ve a

min

imal

vol

tage

leve

l of

165

V a

nd w

ill l

imit

the

min

imum

ope

ratin

g vo

ltage

all

owed

for

the

targ

et to

sti

ll a

llow

com

mun

icat

ion

- T

he M

IC94

163

has

a m

inim

al v

olat

ege

leve

l of

170

V a

nd w

ill l

imit

the

min

imum

vol

tage

del

iver

ed to

the

targ

et

- F

irm

war

e co

nfig

urat

ion

wil

l lim

it th

e vo

ltage

ran

ge to

be

wit

hin

the

the

targ

et s

peci

fica

tion

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 35

82 Assembly DrawingFigure 8-2 AVR128DB48 Curiosity Nano Assembly Drawing Top

+

Cb

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20001 PAC20002 COC200

PAC20101 PAC20102 COC201

PAC20201 PAC20202 COC202 PAC20301

PAC20302 COC203

PAC20401

PAC20402 COC204

PAC20502

PAC20501 COC205

PAC20601

PAC20602 COC206 PAC20701

PAC20702 COC207 PAD10002 PAD10001 COD100

PAD20002

PAD20001 COD200

PAF10002

PAF10001 COF100

PAJ10002 PAJ10001 COJ100

PAJ10101 PAJ10102 COJ101

PAJ10201

PAJ10202

PAJ10203

PAJ10204

PAJ10205

PAJ10206 COJ102

PAJ10506

PAJ10507 PAJ10509

PAJ10508 PAJ105010

PAJ105011 PAJ10505

PAJ10504

PAJ10503

PAJ10502

PAJ10501

PAJ10500

COJ105

PAJ200056 PAJ200053

PAJ200028 PAJ20002 PAJ20001

PAJ200051 PAJ200050 PAJ200052 PAJ200049 PAJ200048 PAJ200047 PAJ200046 PAJ200045 PAJ200044 PAJ200043 PAJ200042 PAJ200041 PAJ200040 PAJ200039 PAJ200038 PAJ200037 PAJ200036 PAJ200035 PAJ200034 PAJ200033 PAJ200032 PAJ200031 PAJ200030 PAJ200029

PAJ20003 PAJ20004 PAJ20005 PAJ20006 PAJ20007 PAJ20008 PAJ20009 PAJ200010 PAJ200011 PAJ200012 PAJ200013 PAJ200014 PAJ200015 PAJ200016 PAJ200017 PAJ200018 PAJ200019 PAJ200020 PAJ200021 PAJ200022 PAJ200023 PAJ200026 PAJ200025 PAJ200024 PAJ200027

PAJ200054 PAJ200055 PAJ20000

COJ200

PAJ20102 PAJ20101 COJ201

PAJ20202 PAJ20201 COJ202

PAJ20302 PAJ20301 COJ203

PAJ20402 PAJ20401 COJ204

PAJ20502 PAJ20501 COJ205

PAJ20602 PAJ20601 COJ206 PAJ20702 PAJ20701 COJ207

PAJ20802 PAJ20801 COJ208

PAJ20902 PAJ20901 COJ209

PAJ21001 PAJ21002 PAJ21005 COJ210

PAJ21102 PAJ21101 PAJ21105 COJ211

PAJ21202 PAJ21201 COJ212

PAJ21301 PAJ21302 PAJ21305 COJ213

PAJ21401 PAJ21402 PAJ21405 COJ214

PAJ21502 PAJ21501 COJ215

PAJ21602 PAJ21601 COJ216 PAJ21702 PAJ21701 COJ217

COLABEL1

PAQ10101 PAQ10102 PAQ10103 PAQ10100

COQ101 PAR10002

PAR10001 COR100 PAR10101 PAR10102 COR101

PAR10202 PAR10201 COR102

PAR10302 PAR10301 COR103

PAR10401 PAR10402 COR104

PAR10502

PAR10501 COR105

PAR10601 PAR10602 COR106

PAR10702 PAR10701 COR107

PAR10801

PAR10802 COR108

PAR10901 PAR10902 COR109

PAR11001 PAR11002 COR110

PAR11101 PAR11102 COR111

PAR11201 PAR11202 COR112

PAR11302 PAR11301 COR113

PAR20001 PAR20002 COR200 PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203 PAR20401 PAR20402 COR204

PASW20003

PASW20004 PASW20002

PASW20001 COSW200

PATP10001 COTP100

PATP10101 COTP101 PAU100033

PAU100032 PAU100031 PAU100030 PAU100029 PAU100028 PAU100027 PAU100026 PAU100025 PAU100024

PAU100023

PAU100022

PAU100021

PAU100020

PAU100019

PAU100018

PAU100017 PAU100016 PAU100015 PAU100014 PAU100013 PAU100012 PAU100011 PAU100010

PAU10001

PAU10002

PAU10003

PAU10004

PAU10005

PAU10006

PAU10007

PAU10008 PAU10009

COU100

PAU10107

PAU10104 PAU10105 PAU10106

PAU10103 PAU10102 PAU10101 PAU10100 COU101 PAU10207

PAU10204 PAU10205

PAU10206

PAU10203 PAU10202

PAU10201

COU102

PAU10306

PAU10305 PAU10304 PAU10303

PAU10302 PAU10301 PAU10300

COU103

PAU10406

PAU10405 PAU10404 PAU10403

PAU10402 PAU10401 PAU10400

COU104

PAU10506

PAU10505 PAU10504 PAU10503

PAU10502 PAU10501 PAU10500

COU105

PAU10606

PAU10605 PAU10604 PAU10603

PAU10602 PAU10601 PAU10600

COU106

PAU10706

PAU10705 PAU10704 PAU10703

PAU10702 PAU10701 PAU10700

COU107

PAU1080A1 PAU1080A2

PAU1080B1 PAU1080B2

PAU1080C1 PAU1080C2 COU108

PAU20001 PAU20002 PAU20003 PAU20004 PAU20005 PAU20006 PAU20007 PAU20008 PAU20009 PAU200010 PAU200011 PAU200012 PAU200013 PAU200014 PAU200015 PAU200016 PAU200017 PAU200018 PAU200019 PAU200020 PAU200021 PAU200022 PAU200023 PAU200024 PAU200025 PAU200026 PAU200027 PAU200028 PAU200029 PAU200030 PAU200031 PAU200032 PAU200033 PAU200034 PAU200035 PAU200036

PAU200037 PAU200038 PAU200039 PAU200040 PAU200041 PAU200042 PAU200043 PAU200044 PAU200045 PAU200046 PAU200047 PAU200048

COU200

PAXC20001

PAXC20002 COXC200

PAXC20101 PAXC20102

PAXC20103 PAXC20104 COXC201

Figure 8-3 AVR128DB48 Curiosity Nano Assembly Drawing Bottom

tcR

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20001 PAC20002 COC200

PAC20101 PAC20102 COC201

PAC20201 PAC20202 COC202 PAC20301

PAC20302 COC203

PAC20401

PAC20402 COC204

PAC20502

PAC20501 COC205

PAC20601

PAC20602 COC206 PAC20701

PAC20702 COC207 PAD10002 PAD10001 COD100

PAD20002

PAD20001 COD200

PAF10002

PAF10001 COF100

PAJ10002 PAJ10001 COJ100

PAJ10101 PAJ10102 COJ101

PAJ10201

PAJ10202

PAJ10203

PAJ10204

PAJ10205

PAJ10206 COJ102

PAJ10506

PAJ10507 PAJ10509

PAJ10508 PAJ105010

PAJ105011 PAJ10505

PAJ10504

PAJ10503

PAJ10502

PAJ10501

PAJ10500

COJ105

PAJ200056 PAJ200053

PAJ200028 PAJ20002 PAJ20001

PAJ200051 PAJ200050 PAJ200052 PAJ200049 PAJ200048 PAJ200047 PAJ200046 PAJ200045 PAJ200044 PAJ200043 PAJ200042 PAJ200041 PAJ200040 PAJ200039 PAJ200038 PAJ200037 PAJ200036 PAJ200035 PAJ200034 PAJ200033 PAJ200032 PAJ200031 PAJ200030 PAJ200029

PAJ20003 PAJ20004 PAJ20005 PAJ20006 PAJ20007 PAJ20008 PAJ20009 PAJ200010 PAJ200011 PAJ200012 PAJ200013 PAJ200014 PAJ200015 PAJ200016 PAJ200017 PAJ200018 PAJ200019 PAJ200020 PAJ200021 PAJ200022 PAJ200023 PAJ200026 PAJ200025 PAJ200024 PAJ200027

PAJ200054 PAJ200055 PAJ20000

COJ200

PAJ20102 PAJ20101 COJ201

PAJ20202 PAJ20201 COJ202

PAJ20302 PAJ20301 COJ203

PAJ20402 PAJ20401 COJ204

PAJ20502 PAJ20501 COJ205

PAJ20602 PAJ20601 COJ206 PAJ20702 PAJ20701 COJ207

PAJ20802 PAJ20801 COJ208

PAJ20902 PAJ20901 COJ209

PAJ21001 PAJ21002 PAJ21005 COJ210

PAJ21102 PAJ21101 PAJ21105 COJ211

PAJ21202 PAJ21201 COJ212

PAJ21301 PAJ21302 PAJ21305 COJ213

PAJ21401 PAJ21402 PAJ21405 COJ214

PAJ21502 PAJ21501 COJ215

PAJ21602 PAJ21601 COJ216 PAJ21702 PAJ21701 COJ217

COLABEL1

PAQ10101 PAQ10102 PAQ10103 PAQ10100

COQ101 PAR10002

PAR10001 COR100 PAR10101 PAR10102 COR101

PAR10202 PAR10201 COR102

PAR10302 PAR10301 COR103

PAR10401 PAR10402 COR104

PAR10502

PAR10501 COR105

PAR10601 PAR10602 COR106

PAR10702 PAR10701 COR107

PAR10801

PAR10802 COR108

PAR10901 PAR10902 COR109

PAR11001 PAR11002 COR110

PAR11101 PAR11102 COR111

PAR11201 PAR11202 COR112

PAR11302 PAR11301 COR113

PAR20001 PAR20002 COR200 PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203 PAR20401 PAR20402 COR204

PASW20003

PASW20004 PASW20002

PASW20001 COSW200

PATP10001 COTP100

PATP10101 COTP101 PAU100033

PAU100032 PAU100031 PAU100030 PAU100029 PAU100028 PAU100027 PAU100026 PAU100025 PAU100024

PAU100023

PAU100022

PAU100021

PAU100020

PAU100019

PAU100018

PAU100017 PAU100016 PAU100015 PAU100014 PAU100013 PAU100012 PAU100011 PAU100010

PAU10001

PAU10002

PAU10003

PAU10004

PAU10005

PAU10006

PAU10007

PAU10008 PAU10009

COU100

PAU10107

PAU10104 PAU10105 PAU10106

PAU10103 PAU10102 PAU10101 PAU10100 COU101 PAU10207

PAU10204 PAU10205

PAU10206

PAU10203 PAU10202

PAU10201

COU102

PAU10306

PAU10305 PAU10304 PAU10303

PAU10302 PAU10301 PAU10300

COU103

PAU10406

PAU10405 PAU10404 PAU10403

PAU10402 PAU10401 PAU10400

COU104

PAU10506

PAU10505 PAU10504 PAU10503

PAU10502 PAU10501 PAU10500

COU105

PAU10606

PAU10605 PAU10604 PAU10603

PAU10602 PAU10601 PAU10600

COU106

PAU10706

PAU10705 PAU10704 PAU10703

PAU10702 PAU10701 PAU10700

COU107

PAU1080A1 PAU1080A2

PAU1080B1 PAU1080B2

PAU1080C1 PAU1080C2 COU108

PAU20001 PAU20002 PAU20003 PAU20004 PAU20005 PAU20006 PAU20007 PAU20008 PAU20009 PAU200010 PAU200011 PAU200012 PAU200013 PAU200014 PAU200015 PAU200016 PAU200017 PAU200018 PAU200019 PAU200020 PAU200021 PAU200022 PAU200023 PAU200024 PAU200025 PAU200026 PAU200027 PAU200028 PAU200029 PAU200030 PAU200031 PAU200032 PAU200033 PAU200034 PAU200035 PAU200036

PAU200037 PAU200038 PAU200039 PAU200040 PAU200041 PAU200042 PAU200043 PAU200044 PAU200045 PAU200046 PAU200047 PAU200048

COU200

PAXC20001

PAXC20002 COXC200

PAXC20101 PAXC20102

PAXC20103 PAXC20104 COXC201

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 36

83 Curiosity Nano Base for Click boardstrade

Figure 8-4 AVR128DB48 Curiosity Nano Pinout Mapping

US

B

DE

BU

GG

ER

AV

R1

28

DB

48

SW

0

LE

D0

PS

LE

DNC

NC

ID

ID

CDC RX

CDCRX

USART3 TX

PB0

CDC TX

CDCTX

USART3 RX

PB1

DBG1

DBG1

PB3

LED0

DBG2

DBG2

PB2

SW0

PF4

PF4

USART2 TX

PF5

PF5

USART2 RX

PA2

PA2

TWI0 SDA

PA3

PA3

TWI0 SCL

PA4

PA4

SPI0 MOSI

PA5

PA5

SPI0 MISO

PA6

PA6

SPI0 SCK

PA7

PA7

SPI0 SS

GND

GND

PB0

PB0

USART3 TX

CDC RX

PB1

PB1

USART3 RX

CDC TX

PF2

PF2

PF3

PF3

PC0

PC0

PC1

PC1

PC2

PC2

PC3

PC3

GND

GND

(PA0)

(PA0)

XTALHF1

(PA1)

(PA1)

XTALHF2

PB2

PB2

SW0

PB3

PB3

LED0

VBUS

VBUS

VOFF

VOFF

DBG3

DBG3

PF6

DBG0

DBG0

UPDI

GND

GND

VTG

VTG

PD6

PD6

AIN6

PD3

PD3

AIN3

OP0 INN

PD2

PD2

AIN2

OP0 OUT

TCA0 WO2

PD1

PD1

AIN1

OP0 INP

TCA0 WO1

PD0

PD0

AIN0

TCA0 WO0

PD7

PD7

AIN7

OP1 INN

PD5

PD5

AIN5

OP1 OUT

PD4

PD4

AIN4

OP1 INP

GND

GND

PE3

PE3

OP2 INN

PE2

PE2

OP2 OUT

PE1

PE1

OP2 INP

PE0

PE0

PC7

PC7

PC6

PC6

PC5

PC5

PC4

PC4

GND

GND

PB5

PB5

PB4

PB4

(PF1)

(PF1)

XTAL32K2

(PF0)

(PF0)

XTAL32K1

DE

BU

GG

ER

AV

R1

28

DB

48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

MVIO

OPAMP

Shared pin

AV

R1

28

DB

48

Cu

rio

sity

Na

no

1

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

2

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

3

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

Xp

lain

ed

Pro

Ext

en

sio

nE

XT

11

2

19

20

Cu

rio

sity

Na

no

Ba

sefo

r cl

ick

bo

ard

sT

M

PD4

PD0

PD6

PD3

PA7

PF5

PA6

PF4

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

PD5

PD1

PF3

PF2

PE2

PB1

PA6

PB0

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

PD7

PD2

PE1

PE0

PE3

PF5

PA6

PF4

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

ID

GND

PD5

PD7

PF3

PE1

PD1

PD2

PF2

PE3

PA2

PA3

PB1

PB0

PE2

PA4

PA5

PA6

GND

+33V

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 37

84 Disconnecting the On-board DebuggerThe on-board debugger and level shifters can be completely disconnected from the AVR128DB48

The block diagram below shows all connections between the debugger and the AVR128DB48 The rounded boxesrepresent connections to the board edge The signal names shown are also printed in silkscreen on the bottom sideof the board

To disconnect the debugger cut the straps shown in Figure 8-6

Attention  Cutting the GPIO straps to the on-board debugger will disable the virtual serial portprogramming debugging and data streaming Cutting the power supply strap will disconnect the on-boardpower supply

Tip  Any connection that is cut can be reconnected using solder Alternatively a 0Ω 0402 resistor can bemounted

Tip  When the debugger is disconnected an external debugger can be connected to holes shown in Figure 8-6 Details about connecting an external debugger are described in 46 Connecting ExternalDebuggers

Figure 8-5  On-Board Debugger Connections Block Diagram

DE

BU

GG

ER

TARGETLevel-Shift

PA04PA06PA07PA08PA16PA00PA01

USB

DIR x 5

VCC_P3V3

VBUS

VC

C_L

EV

EL

VC

C_T

AR

GE

TDBG0DBG1DBG2DBG3CDC TXCDC RX

CDC RX

CDC TX

DBG3

DBG2

DBG1

DBG0

GPIO straps

LDO

VOFF

LDO

VBUS VTG

VCC_EDGE

Power Supply strap Target Power strap

UART RXUART TX

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 38

Figure 8-6 On-Board Debugger Connection Cut Straps

GPIO straps (bottom side) Power Supply strap (top side)

85 Getting Started with IARIAR Embedded Workbenchreg for AVRreg is a proprietary high-efficiency compiler not based on GCC Programming anddebugging of AVR128DB48 Curiosity Nano is supported in IARtrade Embedded Workbench for AVR using the Atmel-ICEinterface Some initial settings must be set up in the project to get the programming and debugging to work

The following steps will explain how to get your project ready for programming and debugging

1 Make sure you have opened the project you want to configure Open the OPTIONS dialog for the project2 In the category General Options select the Target tab Select the device for the project or if not listed the

core of the device as shown in Figure 8-73 In the category Debugger select the Setup tab Select Atmel-ICE as the driver as shown in Figure 8-84 In the category Debugger gt Atmel-ICE select the Atmel-ICE 1 tab Select UPDI as the interface and

optionally select the UPDI frequency as shown in Figure 8-9

Info  If the selection of Debug Port (mentioned in step 4) is grayed out the interface is preselected andthe user can skip this configuration step

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 39

Figure 8-7 Select Target Device

Figure 8-8 Select Debugger

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 40

Figure 8-9 Configure Interface

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 41

The Microchip Website

Microchip provides online support via our website at wwwmicrochipcom This website is used to make files andinformation easily available to customers Some of the content available includes

bull Product Support ndash Data sheets and errata application notes and sample programs design resources userrsquosguides and hardware support documents latest software releases and archived software

bull General Technical Support ndash Frequently Asked Questions (FAQs) technical support requests onlinediscussion groups Microchip design partner program member listing

bull Business of Microchip ndash Product selector and ordering guides latest Microchip press releases listing ofseminars and events listings of Microchip sales offices distributors and factory representatives

Product Change Notification Service

Microchiprsquos product change notification service helps keep customers current on Microchip products Subscribers willreceive email notification whenever there are changes updates revisions or errata related to a specified productfamily or development tool of interest

To register go to wwwmicrochipcompcn and follow the registration instructions

Customer Support

Users of Microchip products can receive assistance through several channels

bull Distributor or Representativebull Local Sales Officebull Embedded Solutions Engineer (ESE)bull Technical Support

Customers should contact their distributor representative or ESE for support Local sales offices are also available tohelp customers A listing of sales offices and locations is included in this document

Technical support is available through the website at wwwmicrochipcomsupport

Microchip Devices Code Protection Feature

Note the following details of the code protection feature on Microchip devices

bull Microchip products meet the specifications contained in their particular Microchip Data Sheetbull Microchip believes that its family of products is secure when used in the intended manner and under normal

conditionsbull There are dishonest and possibly illegal methods being used in attempts to breach the code protection features

of the Microchip devices We believe that these methods require using the Microchip products in a manneroutside the operating specifications contained in Microchiprsquos Data Sheets Attempts to breach these codeprotection features most likely cannot be accomplished without violating Microchiprsquos intellectual property rights

bull Microchip is willing to work with any customer who is concerned about the integrity of its codebull Neither Microchip nor any other semiconductor manufacturer can guarantee the security of its code Code

protection does not mean that we are guaranteeing the product is ldquounbreakablerdquo Code protection is constantlyevolving We at Microchip are committed to continuously improving the code protection features of our productsAttempts to break Microchiprsquos code protection feature may be a violation of the Digital Millennium Copyright ActIf such acts allow unauthorized access to your software or other copyrighted work you may have a right to suefor relief under that Act

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 42

Legal Notice

Information contained in this publication is provided for the sole purpose of designing with and using Microchipproducts Information regarding device applications and the like is provided only for your convenience and may besuperseded by updates It is your responsibility to ensure that your application meets with your specifications

THIS INFORMATION IS PROVIDED BY MICROCHIP ldquoAS ISrdquo MICROCHIP MAKES NO REPRESENTATIONS ORWARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED WRITTEN OR ORAL STATUTORY OROTHERWISE RELATED TO THE INFORMATION INCLUDING BUT NOT LIMITED TO ANY IMPLIEDWARRANTIES OF NON-INFRINGEMENT MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSEOR WARRANTIES RELATED TO ITS CONDITION QUALITY OR PERFORMANCE

IN NO EVENT WILL MICROCHIP BE LIABLE FOR ANY INDIRECT SPECIAL PUNITIVE INCIDENTAL ORCONSEQUENTIAL LOSS DAMAGE COST OR EXPENSE OF ANY KIND WHATSOEVER RELATED TO THEINFORMATION OR ITS USE HOWEVER CAUSED EVEN IF MICROCHIP HAS BEEN ADVISED OF THEPOSSIBILITY OR THE DAMAGES ARE FORESEEABLE TO THE FULLEST EXTENT ALLOWED BY LAWMICROCHIPS TOTAL LIABILITY ON ALL CLAIMS IN ANY WAY RELATED TO THE INFORMATION OR ITS USEWILL NOT EXCEED THE AMOUNT OF FEES IF ANY THAT YOU HAVE PAID DIRECTLY TO MICROCHIP FORTHE INFORMATION Use of Microchip devices in life support andor safety applications is entirely at the buyerrsquos riskand the buyer agrees to defend indemnify and hold harmless Microchip from any and all damages claims suits orexpenses resulting from such use No licenses are conveyed implicitly or otherwise under any Microchip intellectualproperty rights unless otherwise stated

Trademarks

The Microchip name and logo the Microchip logo Adaptec AnyRate AVR AVR logo AVR Freaks BesTimeBitCloud chipKIT chipKIT logo CryptoMemory CryptoRF dsPIC FlashFlex flexPWR HELDO IGLOO JukeBloxKeeLoq Kleer LANCheck LinkMD maXStylus maXTouch MediaLB megaAVR Microsemi Microsemi logo MOSTMOST logo MPLAB OptoLyzer PackeTime PIC picoPower PICSTART PIC32 logo PolarFire Prochip DesignerQTouch SAM-BA SenGenuity SpyNIC SST SST Logo SuperFlash Symmetricom SyncServer TachyonTempTrackr TimeSource tinyAVR UNIO Vectron and XMEGA are registered trademarks of Microchip TechnologyIncorporated in the USA and other countries

APT ClockWorks The Embedded Control Solutions Company EtherSynch FlashTec Hyper Speed ControlHyperLight Load IntelliMOS Libero motorBench mTouch Powermite 3 Precision Edge ProASIC ProASIC PlusProASIC Plus logo Quiet-Wire SmartFusion SyncWorld Temux TimeCesium TimeHub TimePictra TimeProviderVite WinPath and ZL are registered trademarks of Microchip Technology Incorporated in the USA

Adjacent Key Suppression AKS Analog-for-the-Digital Age Any Capacitor AnyIn AnyOut BlueSky BodyComCodeGuard CryptoAuthentication CryptoAutomotive CryptoCompanion CryptoController dsPICDEMdsPICDEMnet Dynamic Average Matching DAM ECAN EtherGREEN In-Circuit Serial Programming ICSPINICnet Inter-Chip Connectivity JitterBlocker KleerNet KleerNet logo memBrain Mindi MiWi MPASM MPFMPLAB Certified logo MPLIB MPLINK MultiTRAK NetDetach Omniscient Code Generation PICDEMPICDEMnet PICkit PICtail PowerSmart PureSilicon QMatrix REAL ICE Ripple Blocker SAM-ICE Serial QuadIO SMART-IS SQI SuperSwitcher SuperSwitcher II Total Endurance TSHARC USBCheck VariSenseViewSpan WiperLock Wireless DNA and ZENA are trademarks of Microchip Technology Incorporated in the USAand other countries

SQTP is a service mark of Microchip Technology Incorporated in the USA

The Adaptec logo Frequency on Demand Silicon Storage Technology and Symmcom are registered trademarks ofMicrochip Technology Inc in other countries

GestIC is a registered trademark of Microchip Technology Germany II GmbH amp Co KG a subsidiary of MicrochipTechnology Inc in other countries

All other trademarks mentioned herein are property of their respective companiescopy 2020 Microchip Technology Incorporated Printed in the USA All Rights Reserved

ISBN 978-1-5224-6667-3

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 43

Quality Management SystemFor information regarding Microchiprsquos Quality Management Systems please visit wwwmicrochipcomquality

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 44

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupportwwwmicrochipcomsupportWeb AddresswwwmicrochipcomAtlantaDuluth GATel 678-957-9614Fax 678-957-1455Austin TXTel 512-257-3370BostonWestborough MATel 774-760-0087Fax 774-760-0088ChicagoItasca ILTel 630-285-0071Fax 630-285-0075DallasAddison TXTel 972-818-7423Fax 972-818-2924DetroitNovi MITel 248-848-4000Houston TXTel 281-894-5983IndianapolisNoblesville INTel 317-773-8323Fax 317-773-5453Tel 317-536-2380Los AngelesMission Viejo CATel 949-462-9523Fax 949-462-9608Tel 951-273-7800Raleigh NCTel 919-844-7510New York NYTel 631-435-6000San Jose CATel 408-735-9110Tel 408-436-4270Canada - TorontoTel 905-695-1980Fax 905-695-2078

Australia - SydneyTel 61-2-9868-6733China - BeijingTel 86-10-8569-7000China - ChengduTel 86-28-8665-5511China - ChongqingTel 86-23-8980-9588China - DongguanTel 86-769-8702-9880China - GuangzhouTel 86-20-8755-8029China - HangzhouTel 86-571-8792-8115China - Hong Kong SARTel 852-2943-5100China - NanjingTel 86-25-8473-2460China - QingdaoTel 86-532-8502-7355China - ShanghaiTel 86-21-3326-8000China - ShenyangTel 86-24-2334-2829China - ShenzhenTel 86-755-8864-2200China - SuzhouTel 86-186-6233-1526China - WuhanTel 86-27-5980-5300China - XianTel 86-29-8833-7252China - XiamenTel 86-592-2388138China - ZhuhaiTel 86-756-3210040

India - BangaloreTel 91-80-3090-4444India - New DelhiTel 91-11-4160-8631India - PuneTel 91-20-4121-0141Japan - OsakaTel 81-6-6152-7160Japan - TokyoTel 81-3-6880- 3770Korea - DaeguTel 82-53-744-4301Korea - SeoulTel 82-2-554-7200Malaysia - Kuala LumpurTel 60-3-7651-7906Malaysia - PenangTel 60-4-227-8870Philippines - ManilaTel 63-2-634-9065SingaporeTel 65-6334-8870Taiwan - Hsin ChuTel 886-3-577-8366Taiwan - KaohsiungTel 886-7-213-7830Taiwan - TaipeiTel 886-2-2508-8600Thailand - BangkokTel 66-2-694-1351Vietnam - Ho Chi MinhTel 84-28-5448-2100

Austria - WelsTel 43-7242-2244-39Fax 43-7242-2244-393Denmark - CopenhagenTel 45-4485-5910Fax 45-4485-2829Finland - EspooTel 358-9-4520-820France - ParisTel 33-1-69-53-63-20Fax 33-1-69-30-90-79Germany - GarchingTel 49-8931-9700Germany - HaanTel 49-2129-3766400Germany - HeilbronnTel 49-7131-72400Germany - KarlsruheTel 49-721-625370Germany - MunichTel 49-89-627-144-0Fax 49-89-627-144-44Germany - RosenheimTel 49-8031-354-560Israel - RarsquoananaTel 972-9-744-7705Italy - MilanTel 39-0331-742611Fax 39-0331-466781Italy - PadovaTel 39-049-7625286Netherlands - DrunenTel 31-416-690399Fax 31-416-690340Norway - TrondheimTel 47-72884388Poland - WarsawTel 48-22-3325737Romania - BucharestTel 40-21-407-87-50Spain - MadridTel 34-91-708-08-90Fax 34-91-708-08-91Sweden - GothenbergTel 46-31-704-60-40Sweden - StockholmTel 46-8-5090-4654UK - WokinghamTel 44-118-921-5800Fax 44-118-921-5820

Worldwide Sales and Service

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 45

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Board Overview
      • 2 Getting Started
        • 21 Quick Start
          • 211 Driver Installation
          • 212 Kit Window
          • 213 MPLABreg X IDE Device Family Packs
          • 214 Atmel Studio 7 Device Family Pack
            • 22 Design Documentation and Relevant Links
              • 3 Preprogrammed Application
              • 4 Curiosity Nano
                • 41 On-Board Debugger Overview
                  • 411 Debugger
                  • 412 Virtual Serial Port (CDC)
                    • 4121 Overview
                    • 4122 Operating System Support
                    • 4123 Limitations
                    • 4124 Signaling
                    • 4125 Advanced Use
                      • 413 Mass Storage Device
                        • 4131 Mass Storage Device Implementation
                        • 4132 Limitations of Drag-and-Drop Programming
                        • 4133 Special Commands
                          • 414 Data Gateway Interface (DGI)
                            • 4141 Debug GPIO
                            • 4142 Timestamping
                                • 42 Curiosity Nano Standard Pinout
                                • 43 Power Supply
                                  • 431 Target Regulator
                                  • 432 External Supply
                                  • 433 VBUS Output Pin
                                  • 434 Power Supply Exceptions
                                    • 44 Low-Power Measurement
                                    • 45 Programming External Microcontrollers
                                      • 451 Supported Devices
                                      • 452 Software Configuration
                                      • 453 Hardware Modifications
                                      • 454 Connecting to External Microcontrollers
                                        • 46 Connecting External Debuggers
                                          • 5 Hardware User Guide
                                            • 51 Connectors
                                              • 511 AVR128DB48 Curiosity Nano Pinout
                                              • 512 Using Pin Headers
                                              • 513 Multi-Voltage IO
                                              • 514 Operational Amplifiers
                                                • 52 Peripherals
                                                  • 521 LED
                                                  • 522 Mechanical Switch
                                                  • 523 32768 kHz Crystal
                                                  • 524 1600 MHz Crystal
                                                  • 525 On-Board Debugger Implementation
                                                    • 5251 On-Board Debugger Connections
                                                      • 6 Hardware Revision History and Known Issues
                                                        • 61 Identifying Product ID and Revision
                                                        • 62 Revision 3
                                                        • 63 Revision 2
                                                          • 7 Document Revision History
                                                          • 8 Appendix
                                                            • 81 Schematic
                                                            • 82 Assembly Drawing
                                                            • 83 Curiosity Nano Base for Click boardstrade
                                                            • 84 Disconnecting the On-board Debugger
                                                            • 85 Getting Started with IAR
                                                              • The Microchip Website
                                                              • Product Change Notification Service
                                                              • Customer Support
                                                              • Microchip Devices Code Protection Feature
                                                              • Legal Notice
                                                              • Trademarks
                                                              • Quality Management System
                                                              • Worldwide Sales and Service
Page 7: AVR128DB48 Curiosity Nano Hardware User Guideww1.microchip.com/downloads/en/DeviceDoc/AVR128DB48-Curiosit… · 4. Curiosity Nano Curiosity Nano is an evaluation platform of small

3 Preprogrammed ApplicationThe AVR128DB48 mounted on the Curiosity Nano Evaluation Kit is preprogrammed with an application ready toutilize the integrated operational amplifiers

To get started with the application you can find the user guide code and hex files for this application available onlineon GitHub

bull MPLAB Xreg IDEbull Atmel Studio 7

AVR128DB48 Curiosity NanoPreprogrammed Application

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 7

4 Curiosity NanoCuriosity Nano is an evaluation platform of small boards with access to most of the microcontrollers IOs Theplatform consists of a series of low pin count microcontroller (MCU) boards with on-board debuggers which areintegrated with MPLABreg X IDE and Atmel Studio 7 Each board is identified in the IDE When plugged in a KitWindow is displayed with links to key documentation including relevant user guides application notes data sheetsand example code Everything is easy to find The on-board debugger features a virtual serial port (CDC) for serialcommunication to a host PC and a Data Gateway Interface (DGI) with debug GPIO pin(s)

41 On-Board Debugger OverviewAVR128DB48 Curiosity Nano contains an on-board debugger for programming and debugging The on-boarddebugger is a composite USB device consisting of several interfaces

bull A debugger that can program and debug the AVR128DB48 in both MPLABreg X IDE and Atmel Studio 7bull A mass storage device that allows drag-and-drop programming of the AVR128DB48bull A virtual serial port (CDC) that is connected to a Universal Asynchronous ReceiverTransmitter (UART) on the

AVR128DB48 and provides an easy way to communicate with the target application through terminal softwarebull A Data Gateway Interface (DGI) for code instrumentation with logic analyzer channels (debug GPIO) to visualize

program flow

The on-board debugger controls a Power and Status LED (marked PS) on the AVR128DB48 Curiosity Nano BoardThe table below shows how the LED is controlled in different operation modes

Table 4-1 On-Board Debugger LED Control

Operation Mode Power and Status LED

Boot Loader mode The LED blinks slowly during power-up

Power-up The LED is ON

Normal operation The LED is ON

Programming Activity indicator The LED blinks slowly during programmingdebugging

Drag-and-dropprogramming Success The LED blinks slowly for 2 sec

Failure The LED blinks rapidly for 2 sec

Fault The LED blinks rapidly if a power fault is detected

SleepOff The LED is OFF The on-board debugger is either in a sleep mode or powered downThis can occur if the board is externally powered

Info  Slow blinking is approximately 1 Hz and rapid blinking is approximately 5 Hz

411 DebuggerThe on-board debugger on the AVR128DB48 Curiosity Nano Board appears as a Human Interface Device (HID) onthe host computerrsquos USB subsystem The debugger supports full-featured programming and debugging of theAVR128DB48 using both MPLABreg X IDE and Atmel Studio 7 as well as some third-party IDEs

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 8

Remember  Keep the debuggerrsquos firmware up-to-date Firmware upgrades are done automatically whenusing MPLABreg X IDE or Atmel Studio 7

412 Virtual Serial Port (CDC)The virtual serial port (CDC) is a general purpose serial bridge between a host PC and a target device

4121 OverviewThe on-board debugger implements a composite USB device that includes a standard Communications Device Class(CDC) interface which appears on the host as a virtual serial port The CDC can be used to stream arbitrary data inboth directions between the host computer and the target All characters sent through the virtual serial port on thehost computer will be transmitted as UART on the debuggerrsquos CDC TX pin and UART characters captured on thedebuggerrsquos CDC RX pin will be returned to the host computer through the virtual serial port

Figure 4-1 CDC Connection

Target MCU

UART TX

UART RX

Debugger

USBCDC RX

CDC TX

PCTerminalSoftware

TargetReceive

TargetSend

TerminalReceive

TerminalSend

Info  As shown in Figure 4-1 the debuggerrsquos CDC TX pin is connected to a UART RX pin on the targetfor receiving characters from the host computer Similarly the debuggerrsquos CDC RX pin is connected to aUART TX pin on the target for transmitting characters to the host computer

4122 Operating System SupportOn Windows machines the CDC will enumerate as Curiosity Virtual COM Port and appear in the Ports section of theWindows Device Manager The COM port number can also be found there

Info  On older Windows systems a USB driver is required for CDC This driver is included in installationsof both MPLABreg X IDE and Atmel Studio 7

On Linux machines the CDC will enumerate and appear as devttyACM

Info  tty devices belong to the ldquodialoutrdquo group in Linux so it may be necessary to become a member ofthat group to have permissions to access the CDC

On MAC machines the CDC will enumerate and appear as devttyusbmodem Depending on which terminalprogram is used it will appear in the available list of modems as usbmodem

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 9

Info  For all operating systems Be sure to use a terminal emulator that supports DTR signaling See 4124 Signaling

4123 LimitationsNot all UART features are implemented in the on-board debugger CDC The constraints are outlined here

bull Baud rate Must be in the range of 1200 bps to 500 kbps Any baud rate outside this range will be set to theclosest limit without warning Baud rate can be changed on-the-fly

bull Character format Only 8-bit characters are supportedbull Parity Can be odd even or nonebull Hardware flow control Not supportedbull Stop bits One or two bits are supported

4124 SignalingDuring USB enumeration the host OS will start both communication and data pipes of the CDC interface At thispoint it is possible to set and read back the baud rate and other UART parameters of the CDC but data sending andreceiving will not be enabled

When a terminal connects on the host it must assert the DTR signal As this is a virtual control signal implementedon the USB interface it is not physically present on the board Asserting the DTR signal from the host will indicate tothe on-board debugger that a CDC session is active The debugger will then enable its level shifters (if available) andstart the CDC data send and receive mechanisms

Deasserting DTR in debugger firmware version 120 or earlier has the following behaviorbull Debugger UART receiver is disabled so no further data will be transferred to the host computerbull Debugger UART transmitter will continue to send data that is queued for sending but no new data is accepted

from the host computerbull Level shifters (if available) are not disabled so the debugger CDC TX line remains driven

Deasserting DTR in debugger firmware version 121 or later has the following behaviorbull Debugger UART receiver is disabled so no further data will be transferred to the host computerbull Debugger UART transmitter will continue to send data that is queued for sending but no new data is accepted

from the host computerbull Once the ongoing transmission is complete level shifters (if available) are disabled so the debugger CDC TX

line will become high-impedance

Remember  Set up the terminal emulator to assert the DTR signal Without the signal the on-boarddebugger will not send or receive any data through its UART

Tip  The on-board debuggerrsquos CDC TX pin will not be driven until the CDC interface is enabled by thehost computer Also there are no external pull-up resistors on the CDC lines connecting the debugger andthe target which means that during power-up these lines are floating To avoid any glitches resulting inunpredictable behavior like framing errors the target device should enable the internal pull-up resistor onthe pin connected to the debuggerrsquos CDC TX pin

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 10

4125 Advanced Use

CDC Override ModeIn normal operation the on-board debugger is a true UART bridge between the host and the device However incertain use cases the on-board debugger can override the basic operating mode and use the CDC TX and RX pinsfor other purposes

Dropping a text file into the on-board debuggerrsquos mass storage drive can be used to send characters out of thedebuggerrsquos CDC TX pin The filename and extension are trivial but the text file must start with the charactersCMDSEND_UART=

Debugger firmware version 120 or earlier has the following limitationsbull The maximum message length is 50 characters ndash all remaining data in the frame are ignoredbull The default baud rate used in this mode is 9600 bps but if the CDC is already active or has been configured

the previously used baud rate still applies

Debugger firmware version 121 and later has the following limitationsfeaturesbull The maximum message length may vary depending on the MSCSCSI layer timeouts on the host computer

andor operating system A single SCSI frame of 512 bytes (498 characters of payload) is guaranteed and filesof up to 4 KB will work on most systems The transfer will complete on the first NULL character encountered inthe file

bull The baud rate used is always 9600 bps for the default commandCMDSEND_UART=

The CDC Override Mode should not be used simultaneously with data transfer over CDCterminal If a CDCterminal session is active at the time a file is received via CDC Override Mode it will be suspended for theduration of the operation and resumed once complete

bull Additional commands are supported with explicit baud ratesCMDSEND_9600=

CMDSEND_115200=

CMDSEND_460800=

USB-Level Framing ConsiderationsSending data from the host to the CDC can be done byte-wise or in blocks which will be chunked into 64-byte USBframes Each such frame will be queued up for sending to the debuggerrsquos CDC TX pin Transferring a small amountof data per frame can be inefficient particularly at low baud rates as the on-board debugger buffers frames and notbytes A maximum of four 64-byte frames can be active at any time The on-board debugger will throttle the incomingframes accordingly Sending full 64-byte frames containing data is the most efficient method

When receiving data on the debuggerrsquos CDC RX pin the on-board debugger will queue up the incoming bytes into64-byte frames which are sent to the USB queue for transmission to the host when they are full Incomplete framesare also pushed to the USB queue at approximately 100 ms intervals triggered by USB start-of-frame tokens Up toeight 64-byte frames can be active at any time

If the host (or the software running on it) fails to receive data fast enough an overrun will occur When this happensthe last-filled buffer frame will be recycled instead of being sent to the USB queue and a full frame of data will belost To prevent this occurrence the user must ensure that the CDC data pipe is being read continuously or theincoming data rate must be reduced

413 Mass Storage DeviceThe on-board debugger includes a simple Mass Storage Device implementation which is accessible for readwriteoperations via the host operating system to which it is connected

It providesbull Read access to basic text and HTML files for detailed kit information and support

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 11

bull Write access for programming Intelreg HEX formatted files into the target devicersquos memorybull Write access for simple text files for utility purposes

4131 Mass Storage Device ImplementationThe on-board debugger implements a highly optimized variant of the FAT12 file system that has several limitationspartly due to the nature of FAT12 itself and optimizations made to fulfill its purpose for its embedded application

The Curiosity Nano USB device is USB Chapter 9-compliant as a mass storage device but does not in any way fulfillthe expectations of a general purpose mass storage device This behavior is intentional

When using the Windows operating system the on-board debugger enumerates as a Curiosity Nano USB Devicethat can be found in the disk drives section of the device manager The CURIOSITY drive appears in the file managerand claims the next available drive letter in the system

The CURIOSITY drive contains approximately one MB of free space This does not reflect the size of the targetdevicersquos Flash in any way When programming an Intelreg HEX file the binary data are encoded in ASCII withmetadata providing a large overhead so one MB is a trivially chosen value for disk size

It is not possible to format the CURIOSITY drive When programming a file to the target the filename may appear inthe disk directory listing This is merely the operating systemrsquos view of the directory which in reality has not beenupdated It is not possible to read out the file contents Removing and replugging the board will return the file systemto its original state but the target will still contain the application that has been previously programmed

To erase the target device copy a text file starting with ldquoCMDERASErdquo onto the disk

By default the CURIOSITY drive contains several read-only files for generating icons as well as reporting status andlinking to further information

bull AUTORUNICO ndash icon file for the Microchip logobull AUTORUNINF ndash system file required for Windows Explorer to show the icon filebull KIT-INFOHTM ndash redirect to the development board websitebull KIT-INFOTXT ndash a text file containing details about the boardrsquos debugger firmware version board name USB

serial number device and drag-and-drop supportbull STATUSTXT ndash a text file containing the programming status of the board

Info  STATUSTXT is dynamically updated by the on-board debugger The contents may be cached bythe OS and therefore do not reflect the correct status

4132 Limitations of Drag-and-Drop Programming

Lock BitsLock bits included in the hex file will be ignored when using drag-and-drop programming To program lock bits useMPLABreg X IDE or Atmel Studio 7

Enabling CRC Check in FusesIt is not advisable to enable the CRC check in the target devicersquos fuses when using drag-and-drop programming Thisis because a subsequent chip erase (which does not affect fuse bits) will effect a CRC mismatch and the applicationwill fail to boot To recover a target from this state a chip erase must be done using MPLABreg X IDE orAtmel Studio 7 which will automatically clear the CRC fuses after erasing

4133 Special CommandsSeveral utility commands are supported by copying text files to the mass storage disk The filename or extension isirrelevant ndash the command handler reacts to content only

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 12

Table 4-2 Special File Commands

Command Content Description

CMDERASE Executes a chip erase of the target

CMDSEND_UART= Sends a string of characters to the CDC UART See ldquoCDCOverride Moderdquo

CMDSEND_9600=CMDSEND_115200=CMDSEND_460800=

Sends a string of characters to the CDC UART at the baud ratespecified Note that only the baud rates explicitly specified hereare supported See ldquoCDC Override Moderdquo (Debugger firmwarev121 or newer)

CMDRESET Resets the target device by entering Programming mode andthen exiting Programming mode immediately thereafter Exacttiming can vary according to the programming interface of thetarget device (Debugger firmware v116 or newer)

CMDPOWERTOGGLE Powers down the target and restores power after a 100 msdelay If external power is provided this has no effect(Debugger firmware v116 or newer)

CMD0V Powers down the target device by disabling the target supplyregulator If external power is provided this has no effect(Debugger firmware v116 or newer)

CMD1V8 Sets the target voltage to 18V If external power is providedthis has no effect (Debugger firmware v121 or newer)

CMD3V3 Sets the target voltage to 33V If external power is providedthis has no effect (Debugger firmware v116 or newer)

CMD5V0 Sets the target voltage to 50V If external power is providedthis has no effect (Debugger firmware v116 or newer)

Info  The commands listed here are triggered by the content being sent to the mass storage emulateddisk and no feedback is provided in the case of either success or failure

414 Data Gateway Interface (DGI)Data Gateway Interface (DGI) is a USB interface for transporting raw and timestamped data between on-boarddebuggers and host computer-based visualization tools MPLAB Data Visualizer is used on the host computer todisplay debug GPIO data It is available as a plug-in for MPLABreg X IDE or a stand-alone application that can be usedin parallel with MPLABreg X IDE or Atmel Studio 7

Although DGI encompasses several physical data interfaces the AVR128DB48 Curiosity Nano implementationincludes logic analyzer channels

bull Two debug GPIO channels (also known as DGI GPIO)

4141 Debug GPIODebug GPIO channels are timestamped digital signal lines connecting the target application to a host computervisualization application They are typically used to plot the occurrence of low-frequency events on a time-axis ndash forexample when certain application state transitions occur

The figure below shows the monitoring of the digital state of a mechanical switch connected to a debug GPIO inMPLAB Data Visualizer

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 13

Figure 4-2 Monitoring Debug GPIO with MPLABreg Data Visualizer

Debug GPIO channels are timestamped so the resolution of DGI GPIO events is determined by the resolution of theDGI timestamp module

Important  Although bursts of higher-frequency signals can be captured the useful frequency range ofsignals for which debug GPIO can be used is up to about 2 kHz Attempting to capture signals above thisfrequency will result in data saturation and overflow which may cause the DGI session to be aborted

4142 TimestampingDGI sources are timestamped as they are captured by the debugger The timestamp counter implemented in theCuriosity Nano debugger increments at 2 MHz frequency providing a timestamp resolution of a half microsecond

42 Curiosity Nano Standard PinoutThe 12 edge connections closest to the USB connector on Curiosity Nano boards have a standardized pinout Theprogramdebug pins have different functions depending on the target programming interface as shown in the tableand figure below

Table 4-3 Curiosity Nano Standard Pinout

Debugger Signal Target MCU Description

ID mdash ID line for extensions

CDC TX UART RX USB CDC TX line

CDC RX UART TX USB CDC RX line

DBG0 UPDI Debug data line

DBG1 GPIO1 debug GPIO1

DBG2 GPIO0 debug GPIO0

DBG3 RESET Reset line

NC mdash No connect

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 14

continuedDebugger Signal Target MCU Description

VBUS mdash VBUS voltage for external use

VOFF mdash Voltage Off input Disables the target regulator andtarget voltage when pulled low

VTG mdash Target voltage

GND mdash Common ground

Figure 4-3 Curiosity Nano Standard Pinout

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

43 Power SupplyThe board is powered through the USB port and contains two LDO regulators one to generate 33V for the on-boarddebugger and an adjustable LDO regulator for the target microcontroller AVR128DB48 and its peripherals Thevoltage from the USB connector can vary between 44V to 525V (according to the USB specification) and will limitthe maximum voltage to the target The figure below shows the entire power supply system on AVR128DB48Curiosity Nano

Figure 4-4 Power Supply Block Diagram

USBTarget MCU

Power source

Cut strap

Power consumer P3V3DEBUGGER

Power converter

DEBUGGERRegulator

VUSB

TargetRegulator

Power Supply strap

Adjust

Level shifter

VLVLVREG

IO IO GPIOstraps

IO

OnOffMeasure OnOff

ID systemVOFF

PTC Fuse

Power protection

VBUS

Target Power strap

VTG

431 Target RegulatorThe target voltage regulator is a MIC5353 variable output LDO The on-board debugger can adjust the voltage outputsupplied to the board target section by manipulating the MIC5353rsquos feedback voltage The hardware implementation

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 15

is limited to an approximate voltage range from 17V to 51V Additional output voltage limits are configured in thedebugger firmware to ensure that the output voltage never exceeds the hardware limits of the AVR128DB48microcontroller The voltage limits configured in the on-board debugger on AVR128DB48 Curiosity Nano are 18ndash55V

Info  The target voltage is set to 33V when the board is manufactured It can be changed throughMPLABreg X IDE project properties and in the Atmel Studio 7 device programming dialog Any change tothe target voltage is persistent even after a power toggle The resolution is less than 5 mV but may belimited to 10 mV by the adjustment program

Info  Voltage settings that are set up in MPLABreg X IDE are not immediately applied to the board Thenew voltage setting is applied to the board when the debugger is accessed in any way like pushing theRefresh Debug Tool Status button in the project dashboard tab or programmingreading program memory

Info  There is a simple option to adjust the target voltage with a drag-and-drop command text file to theboard This supports a set of common target voltages See section 4133 Special Commands for furtherdetails

The MIC5353 supports a maximum current load of 500 mA It is an LDO regulator in a small package placed on asmall printed circuit board (PCB) and the thermal shutdown condition can be reached at lower loads than 500 mAThe maximum current load depends on the input voltage the selected output voltage and the ambient temperatureThe figure below shows the safe operating area for the regulator with an input voltage of 51V and an ambienttemperature of 23degC

Figure 4-5 Target Regulator Safe Operation Area

The voltage output of the target regulator is continuously monitored (measured) by the on-board debugger If it ismore than 100 mV overunder the voltage setting value an error condition will be flagged and the target voltageregulator will be turned off This will detect and handle any short-circuit conditions It will also detect and handle if anexternal voltage which causes VCC_TARGET to move outside of the voltage setting monitoring window of plusmn100 mVis suddenly applied to the VTG pin without setting the VOFF pin low

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 16

Info  If the external voltage is lower than the monitoring window lower limit (target voltage setting ndash 100mV) the on-board debugger status LED will blink rapidly If the external voltage is higher than themonitoring window upper limit (target voltage setting + 100 mV) the on-board debugger status LED willcontinue to shine If the external voltage is removed the status LED will start to blink rapidly until the on-board debugger detects the new situation and turns the target voltage regulator back on

432 External SupplyAVR128DB48 Curiosity Nano can be powered by an external voltage instead of the on-board target regulator Whenthe Voltage Off (VOFF) pin is shorted to ground (GND) the on-board debugger firmware disables the target regulatorand it is safe to apply an external voltage to the VTG pin

It is also safe to apply an external voltage to the VTG pin when no USB cable is plugged into the DEBUG connectoron the board

The VOFF pin can be tied lowlet go at any time This will be detected by a pin-change interrupt to the on-boarddebugger which controls the target voltage regulator accordingly

WARNINGApplying an external voltage to the VTG pin without shorting VOFF to GND may cause permanent damageto the board

WARNINGDo not apply any voltage to the VOFF pin Let the pin float to enable the power supply

WARNINGAbsolute maximum external voltage is 55V for the on-board level shifters and the standard operatingcondition of the AVR128DB48 is 18ndash55V Applying a higher voltage may cause permanent damage to theboard

Info  If an external voltage is applied without pulling the VOFF pin low and an external supply pulls thevoltage lower than the monitoring windowrsquos lower limit (target voltage setting - 100 mV) the on-boarddebugger status LED will blink rapidly and shut the on-board regulator off If an external voltage issuddenly removed when the VOFF pin is not pulled low the status LED will start to blink rapidly until theon-board debugger detects the new situation and switches the target voltage regulator back on

Programming debugging and data streaming is still possible with an external power supply ndash the debugger andsignal level shifters will be powered from the USB cable Both regulators the debugger and the level shifters arepowered down when the USB cable is removed

Info  In addition to the power consumed by the AVR128DB48 and its peripherals approximately 100 microAwill be drawn from any external power source to power the on-board level shifters and voltage monitorcircuitry when a USB cable is plugged in the DEBUG connector on the board When a USB cable is notplugged in some current is used to supply the level shifters voltage pins which have a worst-case currentconsumption of approximately 5 microA Typical values may be as low as 100 nA

433 VBUS Output PinAVR128DB48 Curiosity Nano has a VBUS output pin that can be used to power external components that need a 5Vsupply The VBUS output pin has a PTC fuse to protect the USB against short circuits A side effect of the PTC fuseis a voltage drop on the VBUS output with higher current loads The chart below shows the voltage versus the currentload of the VBUS output

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 17

Figure 4-6 VBUS Output Voltage vs Current

434 Power Supply ExceptionsThis is a summary of most exceptions that can occur with the power supply

Target Voltage Shuts DownThis can happen if the target section draws too much current at a given voltage This will cause the thermal shutdownsafety feature of the MIC5353 regulator to kick in To avoid this reduce the current load of the target section

Target Voltage Setting is Not ReachedThe maximum output voltage is limited by the USB input voltage (specified to be 44-525V) and the voltage dropover the MIC5353 regulator at a given voltage setting and current consumption If a higher output voltage is neededuse a USB power source that can provide a higher input voltage or use an external voltage supply on the VTG pin

Target Voltage is Different From SettingThis can be caused by an externally applied voltage to the VTG pin without setting the VOFF pin low If the targetvoltage differs more than 100 mV overunder the voltage setting it will be detected by the on-board debugger andthe internal voltage regulator will be shut down To fix this issue remove the applied voltage from the VTG pin andthe on-board debugger will enable the on-board voltage regulator when the new condition is detected Note that thePS LED will be blinking rapidly if the target voltage is below 100 mV of the setting but will be lit normally when it ishigher than 100 mV above the setting

No Or Very Low Target Voltage and PS LED is Blinking RapidlyThis can be caused by a full or partial short-circuit and is a special case of the issue mentioned above Remove theshort-circuit and the on-board debugger will re-enable the on-board target voltage regulator

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 18

No Target Voltage and PS LED is Lit 1This occurs if the target voltage is set to 00V To fix this set the target voltage to a value within the specified voltagerange for the target device

No Target Voltage and PS LED is Lit 2This can be the issue if power jumper J100 andor J101 is cut and the target voltage regulator is set to a value withinthe specified voltage range for the target device To fix this solder a wirebridge between the pads for J100J101 oradd a jumper on J101 if a pin header is mounted

VBUS Output Voltage is Low or Not PresentThis is most lightly caused by a high-current drain on VBUS and the protection fuse (PTC) will reduce the current orcut off completely Reduce the current consumption on the VBUS pin to fix this issue

44 Low-Power MeasurementPower to the AVR128DB48 is connected from the on-board power supply and VTG pin through a 100 mil pin headermarked with ldquoPOWERrdquo in silkscreen (J101) To measure the power consumption of the AVR128DB48 and otherperipherals connected to the board cut the Target Power strap and connect an ammeter over the strap

To measure the lowest possible power consumption follow these steps1 Cut the POWER strap with a sharp tool2 Solder a 1x2 100 mil pin header in the footprint3 Connect an ammeter to the pin header4 Write firmware that

41 Tri-states any IO connected to the on-board debugger42 Sets the microcontroller in its lowest power Sleep state

5 Program the firmware into the AVR128DB48

Figure 4-7 Target Power Strap

Target Power strap (top side)

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 19

Tip  A 100-mil pin header can be soldered into the Target Power strap (J101) footprint for easyconnection of an ammeter Once the ammeter is no longer needed place a jumper cap on the pin header

Info  The on-board level shifters will draw a small amount of current even when they are not in use Amaximum of 2 microA can be drawn from each IO pin connected to a level shifter for a total of 10 microA Keepany IO pin connected to a level shifter in tri-state to prevent leakage All IOs connected to the on-boarddebugger are listed in 5251 On-Board Debugger Connections To prevent any leakage to the on-boardlevel shifters they can be disconnected completely as described in 84 Disconnecting the On-boardDebugger

45 Programming External MicrocontrollersThe on-board debugger on AVR128DB48 Curiosity Nano can be used to program and debug microcontrollers onexternal hardware

451 Supported DevicesAll external AVR microcontrollers with the UPDI interface can be programmed and debugged with the on-boarddebugger with Atmel Studio

External SAM microcontrollers that have a Curiosity Nano Board can be programmed and debugged with the on-board debugger with Atmel Studio

AVR128DB48 Curiosity Nano can program and debug external AVR128DB48 microcontrollers with MPLAB X IDE

452 Software ConfigurationNo software configuration is required to program and debug the same device that is mounted on the board

To program and debug a different microcontroller than what is mounted on the board Atmel Studio must beconfigured to allow free selection of devices and programming interfaces

1 Navigate to Tools gt Options through the menu system at the top of the application2 Select the Tools gt Tool settings category in the options window3 Set the Hide unsupported devices option to False

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 20

Figure 4-8 Hide Unsupported Devices

Info  Atmel Studio allows any microcontroller and interface to be selected when Hide unsupporteddevices is set to False also microcontrollers and interfaces which are not supported by the on-boarddebugger

453 Hardware ModificationsThe on-board debugger is connected to the AVR128DB48 by default These connections must be removed beforeany external microcontroller can be programmed or debugged Cut the GPIO straps shown in the figure below with asharp tool to disconnect the AVR128DB48 from the on-board debugger

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 21

Figure 4-9 Programming and Debugging Connections to Debugger

GPIO straps (bottom side)

Info  Cutting the connections to the debugger will disable programming debugging and data streamingfrom the AVR128DB48 mounted on the board

Tip  Solder in 0Ω resistors across the footprints or short-circuit them with solder to reconnect the signalsbetween the on-board debugger and the AVR128DB48

454 Connecting to External MicrocontrollersThe figure and table below show where the programming and debugging signals must be connected to program anddebug external microcontrollers The on-board debugger can supply power to the external hardware or use anexternal voltage as a reference for its level shifters Read more about the power supply in 43 Power Supply

The on-board debugger and level shifters actively drive data and clock signals (DBG0 DBG1 and DBG2) used forprogramming and debugging and in most cases the external resistor on these signals can be ignored Pull-downresistors are required on the ICSPtrade data and clock signals to debug PICreg microcontrollers

DBG3 is an open-drain connection and requires a pull-up resistor to function

AVR128DB48 Curiosity Nano has a pull-up resistor R200 connected to its RESET signal (DBG3) The location ofthe pull-up resistor is shown in the 82 Assembly Drawing in the appendix

Remember bull Connect GND and VTG to the external microcontrollerbull Tie the VOFF pin to GND if the external hardware has its own power supplybull Make sure there are pull-down resistors on the ICSP data and clock signals (DBG0 and DBG1) to

support the debugging of PIC microcontrollers

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 22

Figure 4-10 Curiosity Nano Standard Pinout

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

Table 4-4 Programming and Debugging Interfaces

Curiosity Nano Pin UPDI ICSPtrade SWD

DBG0 UPDI DATA SWDIO

DBG1 mdash CLK SWCLK

DBG2 mdash mdash mdash

DBG3 mdash MCLR RESET

46 Connecting External DebuggersEven though there is an on-board debugger external debuggers can be connected directly to the AVR128DB48Curiosity Nano to programdebug the AVR128DB48 The on-board debugger keeps all the pins connected to theAVR128DB48 and board edge in tri-state when not actively used Therefore the on-board debugger will not interferewith any external debug tools

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 23

Figure 4-11 Connecting the MPLABreg PICkittrade 4 In-Circuit DebuggerProgrammer to AVR128DB48 CuriosityNano

2345678 1

VDD

GroundDATA

2 = VDD

3 = Ground

4 = PGD

5 = Unused

6 = Unused

7 = Unused

8 = Unused

1 = Unused

MPLABreg PICkittrade 4

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 24

Figure 4-12 Connecting the Atmel-ICE to AVR128DB48 Curiosity Nano

VDD

Ground

DATA

AVRregSAM

3 = UPDI

4 = VTG

5 = Unused

6 = Unused

7 = Unused

8 = Unused

1 = Unused

2 = GND

9 = Unused

10 = Unused

Atmel-ICE

21 9

10

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

CAUTIONTo avoid contention between the external debugger and the on-board debugger do not start anyprogrammingdebug operation with the on-board debugger through MPLABreg X IDE or Atmel Studio 7 ormass storage programming while the external tool is active

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 25

5 Hardware User Guide

51 Connectors

511 AVR128DB48 Curiosity Nano PinoutAll the AVR128DB48 IO pins are accessible at the edge connectors on the board The image below shows the boardpinout For all available functions on each pin refer to the IO Multiplexing and Considerations section in theAVR128DB48 data sheet

Figure 5-1 AVR128DB48 Curiosity Nano Pinout

USB

DEBUGGER

AVR128DB48

SW0

LED0

PS LEDNC

NC

IDID

CDC RX

CD

CR

XUSART3 TXPB0

CDC TX

CD

CT

XUSART3 RXPB1

DBG1

DB

G1PB3LED0

DBG2

DB

G2PB2SW0

PF4

PF

4USART2 TX

PF5

PF

5USART2 RX

PA2

PA

2TWI0 SDA

PA3

PA

3TWI0 SCL

PA4

PA

4SPI0 MOSI

PA5

PA

5SPI0 MISO

PA6

PA

6SPI0 SCK

PA7

PA

7SPI0 SS

GND

GN

D

PB0

PB

0USART3 TXCDC RX

PB1

PB

1USART3 RXCDC TX

PF2

PF

2

PF3

PF

3

PC0

PC

0

PC1

PC

1

PC2

PC

2

PC3

PC

3

GND

GN

D

(PA0)

(PA

0)XTALHF1

(PA1)

(PA

1)XTALHF2

PB2

PB

2SW0

PB3

PB

3LED0

VBUS

VB

US

VOFF

VO

FF

DBG3

DB

G3 PF6

DBG0

DB

G0 UPDI

GND

GN

D

VTG

VT

G

PD6

PD

6 AIN6

PD3

PD

3 AIN3 OP0 INN

PD2

PD

2 AIN2 OP0 OUT TCA0 WO2

PD1

PD

1 AIN1 OP0 INP TCA0 WO1

PD0

PD

0 AIN0 TCA0 WO0

PD7

PD

7 AIN7 OP1 INN

PD5

PD

5 AIN5 OP1 OUT

PD4

PD

4 AIN4 OP1 INP

GND

GN

D

PE3

PE

3 OP2 INN

PE2

PE

2 OP2 OUT

PE1

PE

1 OP2 INP

PE0

PE

0

PC7

PC

7

PC6

PC

6

PC5

PC

5

PC4

PC

4

GND

GN

D

PB5

PB

5

PB4

PB

4

(PF1)

(PF

1) XTAL32K2

(PF0)

(PF

0) XTAL32K1

DEBUGGERAVR128DB48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

MVIO

OPAMP

Shared pin

AVR128DB48Curiosity Nano

512 Using Pin HeadersThe edge connector footprint on AVR128DB48 Curiosity Nano has a staggered design where each hole is shifted 8mil (~02 mm) off-center The hole shift allows the use of regular 100 mil pin headers on the board without solderingOnce the pin headers are firmly in place they can be used in normal applications like pin sockets and prototypingboards without any issues

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 26

Figure 5-2 Attaching Pin-Headers to the Curiostiy Nano Board

Figure 5-3 Connecting to Curiosity Nano Base for Click boardstrade

Tip  Start at one end of the pin header and gradually insert the header along the length of the boardOnce all the pins are in place use a flat surface to push them in

Tip  For applications where the pin headers will be used permanently it is still recommended to solderthem in place

Important  Once the pin headers are in place they are hard to remove by hand Use a set of pliers andcarefully remove the pin headers to avoid damage to the pin headers and PCB

513 Multi-Voltage IO

The AVR128DB48 Curiosity Nano MCU has support for Multi-Voltage IO (MVIO) AVR128DB48 MVIO pins areconnected to the edge connector at PC0-PC7 MVIO pins are capable of regular IO-pin behavior

MVIO can be configured in one of two supply modesbull Single-Supply mode All IO pins including MVIO-capable pins are powered by VCC_TARGET By default

VCC_TARGET is connected to VDDIO2 through a 0-ohm resistor (R204)bull Dual-Supply mode MVIO-capable pins are powered by an external power supply connected to VDDIO2 Non-

MVIO pins are powered by VCC_TARGET

Dual-Supply mode allows MVIO-pins to be powered at different voltages than pins powered from VCC_TARGET

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 27

WARNINGThe absolute maximum external voltage range for the AVR128DB48 is 18ndash55V Applying a higher voltagemay cause permanent damage to the board

By default AVR128DB48 Curiosity Nano board is configured for single-supply mode To use Dual-Supply mode somehardware modifications are required

WARNINGBefore any hardware modifications are done make sure the board is disconnected from USB or externalpower

bull Disconnect resistor R204 connecting VDDIO2 to VCC_TARGETbull Connect a new power supply to VDDIO2 and ground at J212bull J212 does not have reverse polarity protection Make sure to match polarity between the power supply and

J212 Positive-polarity to J212-pin 1 and negative-polarity to J212-pin 2

The resistor R204 VDDIO2 and J212 can be seen in Figure 5-4

Figure 5-4 MVIO and VDDIO2 Connections

J212 R204

WARNINGApplying an external voltage to VDDIO2 pin without removing resistor R204 may cause permanentdamage to the board

WARNINGJ212 does not have reverse polarity protection Applying voltage to the wrong pin may cause permanentdamage to the board

514 Operational AmplifiersAVR128DB48 features three internal operational amplifiers with a flexible connection scheme using analogmultiplexers and resistor ladders This allows a large number of analog signal conditioning configurations manyrequiring no external components

Table 5-1 OPAMP Pin Connections

OPAMP Poisitive Input (INP) Negative Input (INN) Output (OUT)

OP0 PD1 PD3 PD2

OP1 PD4 PD7 PD5

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 28

continuedOPAMP Poisitive Input (INP) Negative Input (INN) Output (OUT)

OP2 PE1 PE3 PE2

For information about OPAMP on the edge connector and any shared functionality see 511 AVR128DB48 CuriosityNano Pinout

52 Peripherals

521 LEDThere is one yellow user LED available on the AVR128DB48 Curiosity Nano board that can be controlled by eitherGPIO or PWM The LED can be activated by driving the connected IO line to GND

Table 5-2 LED Connection

AVR128DB48 Pin Function Shared Functionality

PB3 Yellow LED0 Edge connector On-board debugger

522 Mechanical SwitchThe AVR128DB48 Curiosity Nano board has one mechanical switch This is a generic user-configurable switchWhen the switch is pressed it will drive the IO line to ground (GND)

Tip  There is no externally connected pull-up resistor on the switch To use the switch make sure that aninternal pull-up resistor is enabled on pin PB2

Table 5-3 Mechanical Switch

AVR128DB48 Pin Description Shared Functionality

PB2 User switch (SW0) Edge connector On-board debugger

523 32768 kHz Crystal

On the AVR128DB48 Curiosity Nano board is a mounted 32768 kHz crystal of type VMK3-9001-32K7680000 thecrystal is accurate to within 20 ppm Using the External 32768 kHz Crystal Oscillator (XOSC32K) module inAVR128DB48 with the mounted 32768 kHz crystal generates a clock signal that is significantly more accurate thanthe Internal 32768 kHz Ultra Low-Power Oscillator (OSC32K) module can generate alone With the Auto-Tunefeature the 32768 kHz can be used as a reference to improve the accuracy of the internal oscillator This is an idealreference clock for the Real-Time Counter module in AVR128DB48

The 32768 kHz crystal is connected to AVR128DB48 on PF0 and PF1 which are also routed to the edge connectorthrough two solder points PF0 and PF1 are disconnected from the edge connector by default to reduce the chanceof an external signal causing contention with the crystal and to remove excessive capacitance on the lines

Next to the 32768 kHz crystal is a cut-strap (J209) which can be used to measure the oscillator safety factor This isdone by cutting the strap and adding a 0402 SMD resistor across the strap More information about oscillatorallowance and safety factor can be found in the AN2648 application note from Microchip

Cut straps and solder points can be seen in Figure 5-5

Table 5-4 32768 kHz Crystal Connections

AVR128DB48 Pin Function Shared Functionality

PF0 XTAL32K1 (Crystal input) Edge connector

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 29

continuedAVR128DB48 Pin Function Shared Functionality

PF1 XTAL32K2 (Crystal output) Edge connector

PA0 and PA1 can be used as GPIO To do so some hardware modifications are required

WARNINGBefore any hardware modifications are done make sure the board is disconnected from the USB orexternal power

bull Disconnect the 32768 kHz crystal by cutting the two straps on the top side of the board next to the crystal(J207 J208) The crystal should be disconnected when using the pin as GPIO as this might harm the crystal

bull Connect the IO lines to the edge connector by placing solder blobs on the circular solder points marked PF0and PF1 on the bottom side of the board (J210 J211)

Figure 5-5 Crystal Connection and Cut Straps

Top side Boom side

J211

J210

J207

J20832768 kHz Crystal

J209

524 1600 MHz Crystal

On the AVR128DB48 Curiosity Nano board is a mounted 1600 MHz crystal of type VXM7-9040-16M0000000 thecrystal is accurate to within 20 ppm Using the External High-Frequency Crystal Oscillator (XOSCHF) module inAVR128DB48 with the mounted 1600 MHz crystal generates a clock signal that is significantly more accurate thanthe Internal High-Frequency Oscillator (OSCHF) module

The 1600 MHz crystal is connected to AVR128DB48 on PA0 and PA1 which are also routed to the edge connectorthrough two solder points PA0 and PA1 are disconnected from the edge connector by default to reduce the chanceof an external signal causing contention with the crystal and to remove excessive capacitance on the lines

Next to the 1600 MHz crystal is a cut-strap (J217) which can be used to measure the oscillator safety factor This isdone by cutting the strap and adding a 0402 SMD resistor across the strap More information about oscillatorallowance and safety factor can be found in the AN2648 application note from Microchip

Cut straps and solder points can be seen in Figure 5-6

Table 5-5 Crystal Connections

AVR128DB48 Pin Function Shared Functionality

PA0 XTALHF1 (Crystal input) Edge connector

PA1 XTALHF2 (Crystal output) Edge connector

PA0 and PA1 can be used as GPIO To do so some hardware modifications are required

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 30

WARNINGBefore any hardware modifications are done make sure the board is disconnected from USB or externalpower

bull Disconnect the 1600 MHz crystal by cutting the two straps on the top side of the board next to the crystal (J215J216) The crystal should be disconnected when using the pin as GPIO as this might harm the crystal

bull Connect the IO lines to the edge connector by placing solder blobs on the circular solder points marked PA0and PA1 on the bottom side of the board (J213 J214)

Figure 5-6 Crystal Connection and Cut Straps

Top side Boom side

J214

J213

J216

J2151600 MHzCrystal

J217

525 On-Board Debugger ImplementationAVR128DB48 Curiosity Nano features an on-board debugger that can be used to program and debug theAVR128DB48 using UPDI The on-board debugger also includes a virtual serial port (CDC) interface over UART anddebug GPIO Both MPLABreg X IDE and Atmel Studio 7 can be used as a front-end for the on-board debugger forprogramming and debugging MPLAB Data Visualizer can be used as a front-end for the CDC and debug GPIO

5251 On-Board Debugger ConnectionsThe table below shows the connections between the target and the debugger section All connections between thetarget and the debugger are tri-stated as long as the debugger is not actively using the interface Hence since thereare little contaminations of the signals the pins can be configured to anything the user wants

For further information on how to use the capabilities of the on-board debugger see 41 On-Board DebuggerOverview

Table 5-6 On-Board Debugger Connections

AVR128DB48Pin

Debugger Pin Function Shared Functionality

PB1 CDC TX UART RX (AVR128DB48 RX line) Edge connector

PB0 CDC RX UART TX (AVR128DB48 TX line) Edge connector

UPDI DBG0 UPDI Edge connector

PB3 DBG1 LED0Debug GPIO1 Edge connector

PB2 DBG2 SW0Debug GPIO0 Edge connector

PF6 DBG3 RESET Edge connector

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 31

6 Hardware Revision History and Known IssuesThis user guide is written to provide information about the latest available revision of the board The followingsections contain information about known issues a revision history of older revisions and how older revisions differfrom the latest revision

61 Identifying Product ID and RevisionThe revision and product identifier of the AVR128DB48 Curiosity Nano Board can be found in two ways Either byutilizing the MPLABreg X IDE or Atmel Studio 7 Kit Window or by looking at the sticker on the bottom side of the PCB

By connecting AVR128DB48 Curiosity Nano to a computer with MPLABreg X IDE or Atmel Studio 7 running the KitWindow will pop up The first six digits of the serial number which is listed under kit information contain the productidentifier and revision

Tip  The Kit Window can be opened in MPLABreg X IDE through the menu bar Window gt Kit Window

The same information can be found on the sticker on the bottom side of the PCB Most boards will have the identifierand revision printed in plain text as A09-nnnnrr where ldquonnnnrdquo is the identifier and ldquorrrdquo is the revision Boards withlimited space have a sticker with only a data matrix code containing the product identifier revision and serialnumber

The serial number string has the following format

nnnnrrssssssssss

n = product identifier

r = revision

s = serial number

The product identifier for AVR128DB48 Curiosity Nano is A09‑3372

62 Revision 3AVR128DB48 silicon revision A5 or later is mounted on this revision of the board

63 Revision 2Revision 2 is the initially released board revision

AVR128DB48 silicon revision A4 is mounted on this revision of the board

AVR128DB48 Curiosity NanoHardware Revision History and Known Issues

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 32

7 Document Revision HistoryDoc Rev Date Comments

A 092020 Initial document release

AVR128DB48 Curiosity NanoDocument Revision History

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 33

8 Appendix

81 SchematicFigure 8-1 AVR128DB48 Curiosity Nano Schematic

11

22

33

44

55

66

77

88

DD

CC

BB

AA

2 of

4

AV

R12

8DB

48 C

uri

osit

y N

ano

240

820

20A

VR

128D

B48

_Cur

iosi

ty_N

ano_

Targ

et_M

CU

Sch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA

Rev

isio

n

File

P

CB

Num

ber

PC

B

Rev

isio

n

Des

ign

ed w

ith

Dra

wn

By

ML

Shee

t Titl

e

Targ

et M

CU

Eng

inee

rA

H

A08

-305

71

Size

A3

A09

-337

22

Page

D

ateA

ltium

com

GN

D

VD

DIO

2

100n

C20

1

GN

D

PA5_

SPI0

_MIS

OPA

6_SP

I0_S

CK

PA7_

SPI0

_SS

PB0_

USA

RT

3_T

XPB

1_U

SAR

T3_

RX

PB2_

SW0_

DB

G2

PB3_

LE

D0_

DB

G1

PB

4P

B5

PC

0P

C1

PC

2

PC3

PC4PC5PC6PC7PD0_AIN0_TCA0_WO0PD1_AIN1_OP0_INP_TCA0_WO1PD2_AIN2_OP0_OUT_TCA0_WO2PD3_AIN3_OP0_INNPD4_AIN4_OP1_INP

PA3_TWI0_SCL

PA1_XTALHF2

UPDI_DBG0

PF5_USART2_RX

PF3

PF

2PF

1_X

TA

L32

K2

PF0_

XT

AL

32K

1P

E3_

OP

2_IN

NP

E2_

OP

2_O

UT

PE

1_O

P2_

INP

PE

0

PD5_

AIN

5_O

P1_

OU

TPD

6_A

IN6

PD7_

AIN

7_O

P1_

INN

GN

D

VC

C_T

AR

GE

T

100n

C20

2

GN

DV

CC

_TA

RG

ET

100n

C20

0

PF1_XTAL32K2

PF0_XTAL32K1

PA2_TWI0_SDA

PA0_XTALHF1

PF4_USART2_TX

PA4_SPI0_MOSI

GN

D

PA7_

SPI0

_SS

PA6_

SPI0

_SC

KPA

5_SP

I0_M

ISO

PA4_

SPI0

_MO

SIPA

3_T

WI0

_SC

LPA

2_T

WI0

_SD

A

PC

0P

C1

PC

2P

C3

PB

4P

B5

PD7_

AIN

7_O

P1_

INN

PD6_

AIN

6

PD2_

AIN

2_O

P0_

OU

T_T

CA

0_W

O2

PD1_

AIN

1_O

P0_

INP_

TC

A0_

WO

1PD

0_A

IN0_

TC

A0_

WO

0

PD5_

AIN

5_O

P1_

OU

TPD

4_A

IN4_

OP

1_IN

P

PD3_

AIN

3_O

P0_

INN

32K

Hz

Cry

stal

PB0_

USA

RT

3_T

XPB

1_U

SAR

T3_

RX

1kR203

US

ER

LE

D

VC

C_T

AR

GE

T

PF6_DBG3

PB2_SW0_DBG2

PB3_LED0_DBG1

GN

D

USE

R B

UT

TO

N

PB3_

LE

D0_

DB

G1

PB2_

SW0_

DB

G2

PB1_

USA

RT

3_R

XPB

0_U

SAR

T3_

TX

PF4_

USA

RT

2_T

XPF

5_U

SAR

T2_

RX

PF

2P

F3

PC

4P

C5

PC

6P

C7

1kR202

YELLOWLEDSML-D12Y1WT86

2 1

D200

TS604VM1-035CR13

4 2

SW20

0

GN

DV

CC

_ED

GE

GN

DG

ND

GN

DG

ND

UPD

I_D

BG

0P

F6_

DB

G3

J209

PB3_

LE

D0_

DB

G1

PB2_

SW0_

DB

G2

AV

R12

8DB

48

22u

FC

205

VC

C_E

DG

E

GN

D

DBG0

CDC_TXCDC_RX

DBG2

DBG1

DBG3

DBG2

DE

BU

GG

ER

CO

NN

EC

TIO

NS

DBG1

DBG3DBG0

VOFF

ID_SYS

ID_SYS

VOFF

TA

RG

ET

BU

LK

VC

C_T

AR

GE

TR

ESE

T P

ull

VB

US

CD

C R

X3

CD

C T

X4

DB

G1

5

DB

G2

6

0 T

X7

1 R

X8

2 SD

A9

3 S

CL

10

4 M

OSI

11

5 M

ISO

12

6 S

CK

13

7 S

S14

GN

D15

0 (T

X)

16

1 (R

X)

17

218

319

020

GN

D24

DB

G3

54

DB

G0

53

GN

D52

VC

C51

PW

M 3

46

AD

C 2

45

AD

C 1

44

AD

C 0

43

GN

D42

438

434

GN

D33

AD

C 7

50

AD

C 6

49

AD

C 5

48

PW

M 4

47

DE

BU

GG

ER

TAR

GE

T

ID2

VO

FF

55

121

222

323

025

126

227

328

429

530

631

732

535

636

737

539

640

741

RE

SER

VE

D1

VB

US

56

CN

AN

O56

-pin

edg

e co

nnec

tor

J200

J201

J203

J205

J206

J202

J204

PF1_

XT

AL

32K

2PF

0_X

TA

L32

K1

NC

XOUT

XIN

47kR200

AV

R12

8DB

48

UPD

I

GPI

O1

GPI

O0

RE

SET

DB

G0

DB

G1

DB

G2

DB

G3

Deb

ugge

r

CD

C T

X

CD

C R

X

UA

RT

3 R

X

UA

RT

3 T

X

VT

G1

8V -

55

VPB

3

PB

2

PF

6

UP

DI

PB

0

PB

1

Nam

eP

in

PE

3_O

P2_

INN

PE

2_O

P2_

OU

TP

E1_

OP

2_IN

PP

E0

J207

J208

PF

0P

F1

PA5

1

PA6

2

PA7

3

PB0

4

PB1

5

PB2

6

PB3

7

PB4

8

PB5

9

PC0

10

PC1

11

PC2

12

PC313

VDDIO214

GND15

PC416

PC517

PC618

PC719

PD020

PD121

PD222

PD323

PD424

PD5

25

PD6

26

PD7

27

AVDD

28

GND

29

PE0

30

PE1

31

PE2

32

PE3

33

XTAL32K1PF0

34

XTAL32K2PF1

35

PF2

36

PF337

PF438

PF539

PF640

UPDI41

VDD42

GND43

XTALHF1PA044

XTALHF2PA145

PA246

PA347

PA448

AV

R12

8DB

48-I

PT

U20

0

0RR204

GN

D

VC

C_T

AR

GE

T

VDDIO2

GND

J210

J211

82p

C20

48

2pC

203

GN

DG

ND

16M

Hz

Cry

stal

J217

XHFOUT

XHFIN

J214

J213

GN

D

J215

J216

PA0_XTALHF1

PA1_XTALHF2

PA0_

XT

AL

HF

1PA

1_X

TA

LH

F2

PA0

PA1

1 2

J212 N

M

15pF

C20

615

pFC

207

13

24 16

000

MH

zV

XM

7-90

40-1

6M00

0000

0TR

XC

201

GN

D32

768

kHz

VM

K3-

9001

-32K

7680

000T

R

XC

200

CDC_TX

CDC_RX

CD

C_T

XC

DC

_RX

Cry

stal

dat

ashe

et

Ccr

ysta

l = 9

pFm

ax E

SR

= 7

0kO

hmA

ccur

acy

plusmn20p

pm

AV

R48

DB

128

data

shee

tC

xin

= 4

0pF

(ty

pica

l val

ue)

Cxo

ut =

40

pF (

typi

cal v

alue

)C

lasymp1

( (1

40

pF)+

(1

40p

F)

)asymp

20p

FM

axim

um L

oad

= 1

25p

FM

axim

um E

SR =

50k

Ohm

Est

imat

ed C

pcb

= 0

5pF

Est

imat

ed lo

adC

= 2

(C

crys

tal-

Cpa

ra -

Cpc

b)C

= 2

(9p

F -

20

pF -

05

pF)

C =

13

0pF

Sele

cted

in d

esig

n af

ter

veri

fica

tion

C=

82

pF8

2pF

NO

TE

on

UA

RT

CD

C

RX

TX

onth

ehe

ader

deno

tes

the

inpu

tout

put d

irec

tion

of th

e si

gnal

resp

ectiv

e to

its

sou

rce

CD

C T

X is

out

put f

rom

the

DE

BU

GG

ER

C

DC

RX

is in

put t

o th

e D

EB

UG

GE

R

TX

is o

utpu

t fro

m th

e T

AR

GE

T d

evic

eR

X is

inpu

t to

the

TA

RG

ET

dev

ice

NO

TE

on

I2C

No

pull

-ups

on

boar

d P

ull-

ups

shou

ld b

em

ount

ed c

lose

to s

lave

dev

ice(

s)

WA

RN

ING

M

ake

sure

tore

mov

e R

204

befo

reap

plyi

ng p

ower

to J

212

Cry

stal

dat

ashe

et

Ccr

ysta

l = 1

2pF

max

ES

R =

60O

hmA

ccur

acy

plusmn30p

pm

AV

R48

DB

128

data

shee

tC

xin

= 4

0pF

(ty

pica

l val

ue)

Cxo

ut =

40

pF (

typi

cal v

alue

)C

lasymp1

( (1

40

pF)+

(1

40p

F)

)asymp

20p

FM

axim

um L

oad

= 1

25p

FM

axim

um E

SR =

k

Ohm

Est

imat

ed C

pcb

= 0

5pF

Est

imat

ed lo

adC

= 2

(C

crys

tal-

Cpa

ra -

Cpc

b)C

= 2

(12

pF -

20

pF -

05

pF)

C =

19

0pF

Sele

cted

in d

esig

n af

ter

veri

fica

tion

C=

15p

F1

5pF

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 34

11

22

33

44

55

66

77

88

DD

CC

BB

AA

3 of

4

AV

R12

8DB

48 C

uri

osit

y N

ano

2020

-06-

26A

VR

128D

B48

_Cur

iosi

ty_N

ano_

Deb

ugge

rSch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA

Rev

isio

n

Fil

eP

CB

Num

ber

PC

B

Rev

isio

n

Des

ign

ed w

ith

Dra

wn

By

ML

Shee

t Tit

le

Deb

ugge

r

Eng

inee

rA

H

A08

-305

71

Size

A3

A09

-337

22

Page

D

ateA

ltium

com

DE

BU

GG

ER

USB

MIC

RO

-B C

ON

NE

CT

OR

GN

D

USB

D_P

USB

D_N

100n

C10

7

100n

C10

8

1kR

107

VC

C_P

3V3

SRST

STA

TU

S_L

ED

SHIE

LD

VB

US

VC

C_P

3V3

GN

D

TP

100

Test

poin

t Arr

ay

12

34

56

78

910

TC

KT

DO

TM

SV

sup

TD

IG

ND

TR

STSR

STV

Tre

fG

ND

J102

GN

D

47u

F

C10

0

DBG0

DB

G0

21

GR

EE

N L

ED

SML

-P12

MT

T86

R

D10

0

VBUS

1

D-

2

D+

3

GND

5

SHIELD1

6

SHIELD2

7

ID

4

SHIELD3

8

SHIELD4

9 MU

-MB

0142

AB

2-26

9

J105

PAD

33

PA00

1

PA01

2

PA02

3

PA03

4

GND 10VDDANA 9

PA04

5

PA05

6

PA06

7

PA07

8

PA08 11

PA09 12

PA10 13

PA11 14

PA14 15

PA15 16

PA16

17

PA17

18

PA18

19

PA19

20

PA22

21

USB_SOFPA23

22

USB_DMPA24

23

USB_DPPA25

24

PA2725 RESETN26 PA2827 GND28 VDDCORE29 VDDIN30 SWDCLKPA3031 SWDIOPA3132

SAM

D21

E18

A-M

UT

U10

0

VOUT

1

VOUT

2

GND 3

EN

4

VIN

6

NC

5

EP 7

MIC

5528

-33

YM

TU

101

VC

C_P

3V3

GN

D

USB

D_P

USB

D_N

GN

D

1uC

106

VC

C_M

CU

_CO

RE

VC

C_P

3V3

VC

C_P

3V3

22u

FC

101

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

3

VC

C_P

3V3

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

4

VC

C_P

3V3

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

5

VC

C_P

3V3

GN

D

GN

D GN

D

GN

D

VC

C_E

DG

E

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

7

VC

C_P

3V3

GN

DDBG2

DB

G3_

CT

RL

S1_0

_TX

S1_1

_RX

S0_2

_TX

DA

CV

TG

_AD

C

RE

SER

VE

D

S0_3

_CL

K

DBG0_CTRL

CD

C_T

X_C

TR

L

BO

OT

DE

BU

GG

ER

PO

WE

RS

TA

TU

S L

ED

EN

1

BYP

6

VOUT

4

GND

2

VIN

3

NCADJ

5

GND

7

MIC

5353

U10

2

100n

C10

2

GN

D

GN

D

47kR101

27kR104 G

ND

33k

R10

6

22u

F

C10

3 GN

D

1kR

108

J100

VC

C_L

EV

EL

VC

C_R

EG

UL

AT

OR

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

6

VC

C_P

3V3

GN

DDBG1

CD

C_R

X

CD

C_T

X

DBG3

DBG1_CTRL

DE

BU

GG

ER

RE

GU

LA

TO

R

REG_ENABLE

RE

G_E

NA

BL

E

47kR103

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

47kR102

47kR105

SWC

LK

GN

D

47kR100 G

ND

DB

G2

S0_0

_RX

DB

G1_

CT

RL

DB

G0_

CT

RL

DB

G3

OP

EN

DR

AIN

TA

RG

ET

AD

JUST

AB

LE

RE

GU

LA

TO

R

SRST

DE

BU

GG

ER

TE

ST

PO

INT DBG2_CTRL

VO

FF

CD

C_R

X_C

TR

L

47kR109

DB

G1

CD

C_T

X_C

TR

L

CD

C_R

X_C

TR

L

SWC

LK

REG_ADJUST

DBG2_GPIO

DB

G3_

CT

RL

DB

G2_

CT

RL

UP

DI

UPD

I

GPI

O

GPI

O

RE

SET

Sign

al

DB

G0

DB

G1

DB

G2

DB

G3

ICS

PIn

terf

ace

DA

T

CL

K

GPI

O

MC

LR

DB

G3

CD

C T

X

CD

C R

X

UA

RT

RX

UA

RT

TX

UA

RT

RX

UA

RT

TX

TA

RG

ET

TA

RG

ET

1kR

110

VBUS_ADC

1

23

DM

N65

D8L

FB

Q10

1

VC

C-

-

ID_SYS

VOFF

1kR112

VC

C_P

3V3

VT

G_A

DC

DA

C

MIC

9416

3

VIN

B2

VOUT

A1

VIN

A2

EN

C2

GND

C1

VOUT

B1

U10

8

GN

D

ID_S

YS

VT

G_E

N

VTG_EN

VBUS_ADC

SWD

IO

ID_S

YS

TP

101

GN

DSW

DIO

VO

FF

47kR111 G

ND

ID P

IN

MC

3621

3

F10

0

VC

C_V

BU

S

VC

C_V

BU

S

VC

C_V

BU

S

J101

VC

C_T

AR

GE

T

47k

R11

3

CDC_TX

CDC_RX

Prog

ram

min

g co

nnec

tor

for

fact

ory

prog

ram

min

g of

DE

BU

GG

ER

MIC

5528

V

in 2

5V

to 5

5V

Vou

t F

ixed

33

VIm

ax 5

00m

AD

ropo

ut 2

60m

V

500

mA

MIC

5353

V

in 2

6V

to 6

VV

out

12

5V to

51

VIm

ax 5

00m

AD

ropo

ut (

typi

cal)

50m

V

150m

A 1

60m

V

500

mA

Acc

urac

y 2

in

itia

lT

herm

al s

hutd

own

and

curr

ent l

imit

Max

imum

out

put v

olta

ge is

lim

ited

by

the

inpu

t vol

tage

and

the

drop

out v

olta

ge in

the

regu

lato

r(V

max

= V

in -

dro

pout

)

J100

-

Cut

-str

ap u

sed

for

full

sep

arat

ion

of ta

rget

pow

er f

rom

the

leve

l shi

fter

s an

don

-boa

rd r

egul

ator

s-

For

cur

rent

mea

sure

men

ts u

sing

the

on-b

oard

pow

er s

uppl

y th

isst

rap

mus

t be

cut a

nd a

nam

met

er c

onne

cted

acr

oss

- F

or c

urre

nt m

easu

rem

ents

usi

ng a

n ex

tern

al p

ower

sup

ply

this

str

ap c

ould

be

cut f

or m

ore

accu

rate

mea

sure

men

ts L

eaka

ge b

ack

thro

ugh

the

swit

ch is

in th

e m

icro

am

pere

ran

ge

PT

C R

eset

tabl

e fu

se

Hol

d cu

rren

t 5

00m

AT

rip

curr

ent

100

0mA

Adj

usta

ble

outp

ut a

nd li

mit

atio

ns

- T

he D

EB

UG

GE

R c

an a

djus

t the

out

put v

olta

ge o

f th

e re

gula

tor

betw

een

125

V a

nd 5

1V

to th

e ta

rget

-

The

vol

tage

out

put i

s li

mit

ed b

y th

e in

put (

US

B)

whi

ch c

an v

ary

betw

een

440

V to

52

5V-

The

leve

l shi

fter

s ha

ve a

min

imal

vol

tage

leve

l of

165

V a

nd w

ill l

imit

the

min

imum

ope

ratin

g vo

ltage

all

owed

for

the

targ

et to

sti

ll a

llow

com

mun

icat

ion

- T

he M

IC94

163

has

a m

inim

al v

olat

ege

leve

l of

170

V a

nd w

ill l

imit

the

min

imum

vol

tage

del

iver

ed to

the

targ

et

- F

irm

war

e co

nfig

urat

ion

wil

l lim

it th

e vo

ltage

ran

ge to

be

wit

hin

the

the

targ

et s

peci

fica

tion

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 35

82 Assembly DrawingFigure 8-2 AVR128DB48 Curiosity Nano Assembly Drawing Top

+

Cb

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20001 PAC20002 COC200

PAC20101 PAC20102 COC201

PAC20201 PAC20202 COC202 PAC20301

PAC20302 COC203

PAC20401

PAC20402 COC204

PAC20502

PAC20501 COC205

PAC20601

PAC20602 COC206 PAC20701

PAC20702 COC207 PAD10002 PAD10001 COD100

PAD20002

PAD20001 COD200

PAF10002

PAF10001 COF100

PAJ10002 PAJ10001 COJ100

PAJ10101 PAJ10102 COJ101

PAJ10201

PAJ10202

PAJ10203

PAJ10204

PAJ10205

PAJ10206 COJ102

PAJ10506

PAJ10507 PAJ10509

PAJ10508 PAJ105010

PAJ105011 PAJ10505

PAJ10504

PAJ10503

PAJ10502

PAJ10501

PAJ10500

COJ105

PAJ200056 PAJ200053

PAJ200028 PAJ20002 PAJ20001

PAJ200051 PAJ200050 PAJ200052 PAJ200049 PAJ200048 PAJ200047 PAJ200046 PAJ200045 PAJ200044 PAJ200043 PAJ200042 PAJ200041 PAJ200040 PAJ200039 PAJ200038 PAJ200037 PAJ200036 PAJ200035 PAJ200034 PAJ200033 PAJ200032 PAJ200031 PAJ200030 PAJ200029

PAJ20003 PAJ20004 PAJ20005 PAJ20006 PAJ20007 PAJ20008 PAJ20009 PAJ200010 PAJ200011 PAJ200012 PAJ200013 PAJ200014 PAJ200015 PAJ200016 PAJ200017 PAJ200018 PAJ200019 PAJ200020 PAJ200021 PAJ200022 PAJ200023 PAJ200026 PAJ200025 PAJ200024 PAJ200027

PAJ200054 PAJ200055 PAJ20000

COJ200

PAJ20102 PAJ20101 COJ201

PAJ20202 PAJ20201 COJ202

PAJ20302 PAJ20301 COJ203

PAJ20402 PAJ20401 COJ204

PAJ20502 PAJ20501 COJ205

PAJ20602 PAJ20601 COJ206 PAJ20702 PAJ20701 COJ207

PAJ20802 PAJ20801 COJ208

PAJ20902 PAJ20901 COJ209

PAJ21001 PAJ21002 PAJ21005 COJ210

PAJ21102 PAJ21101 PAJ21105 COJ211

PAJ21202 PAJ21201 COJ212

PAJ21301 PAJ21302 PAJ21305 COJ213

PAJ21401 PAJ21402 PAJ21405 COJ214

PAJ21502 PAJ21501 COJ215

PAJ21602 PAJ21601 COJ216 PAJ21702 PAJ21701 COJ217

COLABEL1

PAQ10101 PAQ10102 PAQ10103 PAQ10100

COQ101 PAR10002

PAR10001 COR100 PAR10101 PAR10102 COR101

PAR10202 PAR10201 COR102

PAR10302 PAR10301 COR103

PAR10401 PAR10402 COR104

PAR10502

PAR10501 COR105

PAR10601 PAR10602 COR106

PAR10702 PAR10701 COR107

PAR10801

PAR10802 COR108

PAR10901 PAR10902 COR109

PAR11001 PAR11002 COR110

PAR11101 PAR11102 COR111

PAR11201 PAR11202 COR112

PAR11302 PAR11301 COR113

PAR20001 PAR20002 COR200 PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203 PAR20401 PAR20402 COR204

PASW20003

PASW20004 PASW20002

PASW20001 COSW200

PATP10001 COTP100

PATP10101 COTP101 PAU100033

PAU100032 PAU100031 PAU100030 PAU100029 PAU100028 PAU100027 PAU100026 PAU100025 PAU100024

PAU100023

PAU100022

PAU100021

PAU100020

PAU100019

PAU100018

PAU100017 PAU100016 PAU100015 PAU100014 PAU100013 PAU100012 PAU100011 PAU100010

PAU10001

PAU10002

PAU10003

PAU10004

PAU10005

PAU10006

PAU10007

PAU10008 PAU10009

COU100

PAU10107

PAU10104 PAU10105 PAU10106

PAU10103 PAU10102 PAU10101 PAU10100 COU101 PAU10207

PAU10204 PAU10205

PAU10206

PAU10203 PAU10202

PAU10201

COU102

PAU10306

PAU10305 PAU10304 PAU10303

PAU10302 PAU10301 PAU10300

COU103

PAU10406

PAU10405 PAU10404 PAU10403

PAU10402 PAU10401 PAU10400

COU104

PAU10506

PAU10505 PAU10504 PAU10503

PAU10502 PAU10501 PAU10500

COU105

PAU10606

PAU10605 PAU10604 PAU10603

PAU10602 PAU10601 PAU10600

COU106

PAU10706

PAU10705 PAU10704 PAU10703

PAU10702 PAU10701 PAU10700

COU107

PAU1080A1 PAU1080A2

PAU1080B1 PAU1080B2

PAU1080C1 PAU1080C2 COU108

PAU20001 PAU20002 PAU20003 PAU20004 PAU20005 PAU20006 PAU20007 PAU20008 PAU20009 PAU200010 PAU200011 PAU200012 PAU200013 PAU200014 PAU200015 PAU200016 PAU200017 PAU200018 PAU200019 PAU200020 PAU200021 PAU200022 PAU200023 PAU200024 PAU200025 PAU200026 PAU200027 PAU200028 PAU200029 PAU200030 PAU200031 PAU200032 PAU200033 PAU200034 PAU200035 PAU200036

PAU200037 PAU200038 PAU200039 PAU200040 PAU200041 PAU200042 PAU200043 PAU200044 PAU200045 PAU200046 PAU200047 PAU200048

COU200

PAXC20001

PAXC20002 COXC200

PAXC20101 PAXC20102

PAXC20103 PAXC20104 COXC201

Figure 8-3 AVR128DB48 Curiosity Nano Assembly Drawing Bottom

tcR

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20001 PAC20002 COC200

PAC20101 PAC20102 COC201

PAC20201 PAC20202 COC202 PAC20301

PAC20302 COC203

PAC20401

PAC20402 COC204

PAC20502

PAC20501 COC205

PAC20601

PAC20602 COC206 PAC20701

PAC20702 COC207 PAD10002 PAD10001 COD100

PAD20002

PAD20001 COD200

PAF10002

PAF10001 COF100

PAJ10002 PAJ10001 COJ100

PAJ10101 PAJ10102 COJ101

PAJ10201

PAJ10202

PAJ10203

PAJ10204

PAJ10205

PAJ10206 COJ102

PAJ10506

PAJ10507 PAJ10509

PAJ10508 PAJ105010

PAJ105011 PAJ10505

PAJ10504

PAJ10503

PAJ10502

PAJ10501

PAJ10500

COJ105

PAJ200056 PAJ200053

PAJ200028 PAJ20002 PAJ20001

PAJ200051 PAJ200050 PAJ200052 PAJ200049 PAJ200048 PAJ200047 PAJ200046 PAJ200045 PAJ200044 PAJ200043 PAJ200042 PAJ200041 PAJ200040 PAJ200039 PAJ200038 PAJ200037 PAJ200036 PAJ200035 PAJ200034 PAJ200033 PAJ200032 PAJ200031 PAJ200030 PAJ200029

PAJ20003 PAJ20004 PAJ20005 PAJ20006 PAJ20007 PAJ20008 PAJ20009 PAJ200010 PAJ200011 PAJ200012 PAJ200013 PAJ200014 PAJ200015 PAJ200016 PAJ200017 PAJ200018 PAJ200019 PAJ200020 PAJ200021 PAJ200022 PAJ200023 PAJ200026 PAJ200025 PAJ200024 PAJ200027

PAJ200054 PAJ200055 PAJ20000

COJ200

PAJ20102 PAJ20101 COJ201

PAJ20202 PAJ20201 COJ202

PAJ20302 PAJ20301 COJ203

PAJ20402 PAJ20401 COJ204

PAJ20502 PAJ20501 COJ205

PAJ20602 PAJ20601 COJ206 PAJ20702 PAJ20701 COJ207

PAJ20802 PAJ20801 COJ208

PAJ20902 PAJ20901 COJ209

PAJ21001 PAJ21002 PAJ21005 COJ210

PAJ21102 PAJ21101 PAJ21105 COJ211

PAJ21202 PAJ21201 COJ212

PAJ21301 PAJ21302 PAJ21305 COJ213

PAJ21401 PAJ21402 PAJ21405 COJ214

PAJ21502 PAJ21501 COJ215

PAJ21602 PAJ21601 COJ216 PAJ21702 PAJ21701 COJ217

COLABEL1

PAQ10101 PAQ10102 PAQ10103 PAQ10100

COQ101 PAR10002

PAR10001 COR100 PAR10101 PAR10102 COR101

PAR10202 PAR10201 COR102

PAR10302 PAR10301 COR103

PAR10401 PAR10402 COR104

PAR10502

PAR10501 COR105

PAR10601 PAR10602 COR106

PAR10702 PAR10701 COR107

PAR10801

PAR10802 COR108

PAR10901 PAR10902 COR109

PAR11001 PAR11002 COR110

PAR11101 PAR11102 COR111

PAR11201 PAR11202 COR112

PAR11302 PAR11301 COR113

PAR20001 PAR20002 COR200 PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203 PAR20401 PAR20402 COR204

PASW20003

PASW20004 PASW20002

PASW20001 COSW200

PATP10001 COTP100

PATP10101 COTP101 PAU100033

PAU100032 PAU100031 PAU100030 PAU100029 PAU100028 PAU100027 PAU100026 PAU100025 PAU100024

PAU100023

PAU100022

PAU100021

PAU100020

PAU100019

PAU100018

PAU100017 PAU100016 PAU100015 PAU100014 PAU100013 PAU100012 PAU100011 PAU100010

PAU10001

PAU10002

PAU10003

PAU10004

PAU10005

PAU10006

PAU10007

PAU10008 PAU10009

COU100

PAU10107

PAU10104 PAU10105 PAU10106

PAU10103 PAU10102 PAU10101 PAU10100 COU101 PAU10207

PAU10204 PAU10205

PAU10206

PAU10203 PAU10202

PAU10201

COU102

PAU10306

PAU10305 PAU10304 PAU10303

PAU10302 PAU10301 PAU10300

COU103

PAU10406

PAU10405 PAU10404 PAU10403

PAU10402 PAU10401 PAU10400

COU104

PAU10506

PAU10505 PAU10504 PAU10503

PAU10502 PAU10501 PAU10500

COU105

PAU10606

PAU10605 PAU10604 PAU10603

PAU10602 PAU10601 PAU10600

COU106

PAU10706

PAU10705 PAU10704 PAU10703

PAU10702 PAU10701 PAU10700

COU107

PAU1080A1 PAU1080A2

PAU1080B1 PAU1080B2

PAU1080C1 PAU1080C2 COU108

PAU20001 PAU20002 PAU20003 PAU20004 PAU20005 PAU20006 PAU20007 PAU20008 PAU20009 PAU200010 PAU200011 PAU200012 PAU200013 PAU200014 PAU200015 PAU200016 PAU200017 PAU200018 PAU200019 PAU200020 PAU200021 PAU200022 PAU200023 PAU200024 PAU200025 PAU200026 PAU200027 PAU200028 PAU200029 PAU200030 PAU200031 PAU200032 PAU200033 PAU200034 PAU200035 PAU200036

PAU200037 PAU200038 PAU200039 PAU200040 PAU200041 PAU200042 PAU200043 PAU200044 PAU200045 PAU200046 PAU200047 PAU200048

COU200

PAXC20001

PAXC20002 COXC200

PAXC20101 PAXC20102

PAXC20103 PAXC20104 COXC201

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 36

83 Curiosity Nano Base for Click boardstrade

Figure 8-4 AVR128DB48 Curiosity Nano Pinout Mapping

US

B

DE

BU

GG

ER

AV

R1

28

DB

48

SW

0

LE

D0

PS

LE

DNC

NC

ID

ID

CDC RX

CDCRX

USART3 TX

PB0

CDC TX

CDCTX

USART3 RX

PB1

DBG1

DBG1

PB3

LED0

DBG2

DBG2

PB2

SW0

PF4

PF4

USART2 TX

PF5

PF5

USART2 RX

PA2

PA2

TWI0 SDA

PA3

PA3

TWI0 SCL

PA4

PA4

SPI0 MOSI

PA5

PA5

SPI0 MISO

PA6

PA6

SPI0 SCK

PA7

PA7

SPI0 SS

GND

GND

PB0

PB0

USART3 TX

CDC RX

PB1

PB1

USART3 RX

CDC TX

PF2

PF2

PF3

PF3

PC0

PC0

PC1

PC1

PC2

PC2

PC3

PC3

GND

GND

(PA0)

(PA0)

XTALHF1

(PA1)

(PA1)

XTALHF2

PB2

PB2

SW0

PB3

PB3

LED0

VBUS

VBUS

VOFF

VOFF

DBG3

DBG3

PF6

DBG0

DBG0

UPDI

GND

GND

VTG

VTG

PD6

PD6

AIN6

PD3

PD3

AIN3

OP0 INN

PD2

PD2

AIN2

OP0 OUT

TCA0 WO2

PD1

PD1

AIN1

OP0 INP

TCA0 WO1

PD0

PD0

AIN0

TCA0 WO0

PD7

PD7

AIN7

OP1 INN

PD5

PD5

AIN5

OP1 OUT

PD4

PD4

AIN4

OP1 INP

GND

GND

PE3

PE3

OP2 INN

PE2

PE2

OP2 OUT

PE1

PE1

OP2 INP

PE0

PE0

PC7

PC7

PC6

PC6

PC5

PC5

PC4

PC4

GND

GND

PB5

PB5

PB4

PB4

(PF1)

(PF1)

XTAL32K2

(PF0)

(PF0)

XTAL32K1

DE

BU

GG

ER

AV

R1

28

DB

48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

MVIO

OPAMP

Shared pin

AV

R1

28

DB

48

Cu

rio

sity

Na

no

1

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

2

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

3

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

Xp

lain

ed

Pro

Ext

en

sio

nE

XT

11

2

19

20

Cu

rio

sity

Na

no

Ba

sefo

r cl

ick

bo

ard

sT

M

PD4

PD0

PD6

PD3

PA7

PF5

PA6

PF4

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

PD5

PD1

PF3

PF2

PE2

PB1

PA6

PB0

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

PD7

PD2

PE1

PE0

PE3

PF5

PA6

PF4

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

ID

GND

PD5

PD7

PF3

PE1

PD1

PD2

PF2

PE3

PA2

PA3

PB1

PB0

PE2

PA4

PA5

PA6

GND

+33V

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 37

84 Disconnecting the On-board DebuggerThe on-board debugger and level shifters can be completely disconnected from the AVR128DB48

The block diagram below shows all connections between the debugger and the AVR128DB48 The rounded boxesrepresent connections to the board edge The signal names shown are also printed in silkscreen on the bottom sideof the board

To disconnect the debugger cut the straps shown in Figure 8-6

Attention  Cutting the GPIO straps to the on-board debugger will disable the virtual serial portprogramming debugging and data streaming Cutting the power supply strap will disconnect the on-boardpower supply

Tip  Any connection that is cut can be reconnected using solder Alternatively a 0Ω 0402 resistor can bemounted

Tip  When the debugger is disconnected an external debugger can be connected to holes shown in Figure 8-6 Details about connecting an external debugger are described in 46 Connecting ExternalDebuggers

Figure 8-5  On-Board Debugger Connections Block Diagram

DE

BU

GG

ER

TARGETLevel-Shift

PA04PA06PA07PA08PA16PA00PA01

USB

DIR x 5

VCC_P3V3

VBUS

VC

C_L

EV

EL

VC

C_T

AR

GE

TDBG0DBG1DBG2DBG3CDC TXCDC RX

CDC RX

CDC TX

DBG3

DBG2

DBG1

DBG0

GPIO straps

LDO

VOFF

LDO

VBUS VTG

VCC_EDGE

Power Supply strap Target Power strap

UART RXUART TX

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 38

Figure 8-6 On-Board Debugger Connection Cut Straps

GPIO straps (bottom side) Power Supply strap (top side)

85 Getting Started with IARIAR Embedded Workbenchreg for AVRreg is a proprietary high-efficiency compiler not based on GCC Programming anddebugging of AVR128DB48 Curiosity Nano is supported in IARtrade Embedded Workbench for AVR using the Atmel-ICEinterface Some initial settings must be set up in the project to get the programming and debugging to work

The following steps will explain how to get your project ready for programming and debugging

1 Make sure you have opened the project you want to configure Open the OPTIONS dialog for the project2 In the category General Options select the Target tab Select the device for the project or if not listed the

core of the device as shown in Figure 8-73 In the category Debugger select the Setup tab Select Atmel-ICE as the driver as shown in Figure 8-84 In the category Debugger gt Atmel-ICE select the Atmel-ICE 1 tab Select UPDI as the interface and

optionally select the UPDI frequency as shown in Figure 8-9

Info  If the selection of Debug Port (mentioned in step 4) is grayed out the interface is preselected andthe user can skip this configuration step

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 39

Figure 8-7 Select Target Device

Figure 8-8 Select Debugger

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 40

Figure 8-9 Configure Interface

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 41

The Microchip Website

Microchip provides online support via our website at wwwmicrochipcom This website is used to make files andinformation easily available to customers Some of the content available includes

bull Product Support ndash Data sheets and errata application notes and sample programs design resources userrsquosguides and hardware support documents latest software releases and archived software

bull General Technical Support ndash Frequently Asked Questions (FAQs) technical support requests onlinediscussion groups Microchip design partner program member listing

bull Business of Microchip ndash Product selector and ordering guides latest Microchip press releases listing ofseminars and events listings of Microchip sales offices distributors and factory representatives

Product Change Notification Service

Microchiprsquos product change notification service helps keep customers current on Microchip products Subscribers willreceive email notification whenever there are changes updates revisions or errata related to a specified productfamily or development tool of interest

To register go to wwwmicrochipcompcn and follow the registration instructions

Customer Support

Users of Microchip products can receive assistance through several channels

bull Distributor or Representativebull Local Sales Officebull Embedded Solutions Engineer (ESE)bull Technical Support

Customers should contact their distributor representative or ESE for support Local sales offices are also available tohelp customers A listing of sales offices and locations is included in this document

Technical support is available through the website at wwwmicrochipcomsupport

Microchip Devices Code Protection Feature

Note the following details of the code protection feature on Microchip devices

bull Microchip products meet the specifications contained in their particular Microchip Data Sheetbull Microchip believes that its family of products is secure when used in the intended manner and under normal

conditionsbull There are dishonest and possibly illegal methods being used in attempts to breach the code protection features

of the Microchip devices We believe that these methods require using the Microchip products in a manneroutside the operating specifications contained in Microchiprsquos Data Sheets Attempts to breach these codeprotection features most likely cannot be accomplished without violating Microchiprsquos intellectual property rights

bull Microchip is willing to work with any customer who is concerned about the integrity of its codebull Neither Microchip nor any other semiconductor manufacturer can guarantee the security of its code Code

protection does not mean that we are guaranteeing the product is ldquounbreakablerdquo Code protection is constantlyevolving We at Microchip are committed to continuously improving the code protection features of our productsAttempts to break Microchiprsquos code protection feature may be a violation of the Digital Millennium Copyright ActIf such acts allow unauthorized access to your software or other copyrighted work you may have a right to suefor relief under that Act

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 42

Legal Notice

Information contained in this publication is provided for the sole purpose of designing with and using Microchipproducts Information regarding device applications and the like is provided only for your convenience and may besuperseded by updates It is your responsibility to ensure that your application meets with your specifications

THIS INFORMATION IS PROVIDED BY MICROCHIP ldquoAS ISrdquo MICROCHIP MAKES NO REPRESENTATIONS ORWARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED WRITTEN OR ORAL STATUTORY OROTHERWISE RELATED TO THE INFORMATION INCLUDING BUT NOT LIMITED TO ANY IMPLIEDWARRANTIES OF NON-INFRINGEMENT MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSEOR WARRANTIES RELATED TO ITS CONDITION QUALITY OR PERFORMANCE

IN NO EVENT WILL MICROCHIP BE LIABLE FOR ANY INDIRECT SPECIAL PUNITIVE INCIDENTAL ORCONSEQUENTIAL LOSS DAMAGE COST OR EXPENSE OF ANY KIND WHATSOEVER RELATED TO THEINFORMATION OR ITS USE HOWEVER CAUSED EVEN IF MICROCHIP HAS BEEN ADVISED OF THEPOSSIBILITY OR THE DAMAGES ARE FORESEEABLE TO THE FULLEST EXTENT ALLOWED BY LAWMICROCHIPS TOTAL LIABILITY ON ALL CLAIMS IN ANY WAY RELATED TO THE INFORMATION OR ITS USEWILL NOT EXCEED THE AMOUNT OF FEES IF ANY THAT YOU HAVE PAID DIRECTLY TO MICROCHIP FORTHE INFORMATION Use of Microchip devices in life support andor safety applications is entirely at the buyerrsquos riskand the buyer agrees to defend indemnify and hold harmless Microchip from any and all damages claims suits orexpenses resulting from such use No licenses are conveyed implicitly or otherwise under any Microchip intellectualproperty rights unless otherwise stated

Trademarks

The Microchip name and logo the Microchip logo Adaptec AnyRate AVR AVR logo AVR Freaks BesTimeBitCloud chipKIT chipKIT logo CryptoMemory CryptoRF dsPIC FlashFlex flexPWR HELDO IGLOO JukeBloxKeeLoq Kleer LANCheck LinkMD maXStylus maXTouch MediaLB megaAVR Microsemi Microsemi logo MOSTMOST logo MPLAB OptoLyzer PackeTime PIC picoPower PICSTART PIC32 logo PolarFire Prochip DesignerQTouch SAM-BA SenGenuity SpyNIC SST SST Logo SuperFlash Symmetricom SyncServer TachyonTempTrackr TimeSource tinyAVR UNIO Vectron and XMEGA are registered trademarks of Microchip TechnologyIncorporated in the USA and other countries

APT ClockWorks The Embedded Control Solutions Company EtherSynch FlashTec Hyper Speed ControlHyperLight Load IntelliMOS Libero motorBench mTouch Powermite 3 Precision Edge ProASIC ProASIC PlusProASIC Plus logo Quiet-Wire SmartFusion SyncWorld Temux TimeCesium TimeHub TimePictra TimeProviderVite WinPath and ZL are registered trademarks of Microchip Technology Incorporated in the USA

Adjacent Key Suppression AKS Analog-for-the-Digital Age Any Capacitor AnyIn AnyOut BlueSky BodyComCodeGuard CryptoAuthentication CryptoAutomotive CryptoCompanion CryptoController dsPICDEMdsPICDEMnet Dynamic Average Matching DAM ECAN EtherGREEN In-Circuit Serial Programming ICSPINICnet Inter-Chip Connectivity JitterBlocker KleerNet KleerNet logo memBrain Mindi MiWi MPASM MPFMPLAB Certified logo MPLIB MPLINK MultiTRAK NetDetach Omniscient Code Generation PICDEMPICDEMnet PICkit PICtail PowerSmart PureSilicon QMatrix REAL ICE Ripple Blocker SAM-ICE Serial QuadIO SMART-IS SQI SuperSwitcher SuperSwitcher II Total Endurance TSHARC USBCheck VariSenseViewSpan WiperLock Wireless DNA and ZENA are trademarks of Microchip Technology Incorporated in the USAand other countries

SQTP is a service mark of Microchip Technology Incorporated in the USA

The Adaptec logo Frequency on Demand Silicon Storage Technology and Symmcom are registered trademarks ofMicrochip Technology Inc in other countries

GestIC is a registered trademark of Microchip Technology Germany II GmbH amp Co KG a subsidiary of MicrochipTechnology Inc in other countries

All other trademarks mentioned herein are property of their respective companiescopy 2020 Microchip Technology Incorporated Printed in the USA All Rights Reserved

ISBN 978-1-5224-6667-3

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 43

Quality Management SystemFor information regarding Microchiprsquos Quality Management Systems please visit wwwmicrochipcomquality

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 44

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupportwwwmicrochipcomsupportWeb AddresswwwmicrochipcomAtlantaDuluth GATel 678-957-9614Fax 678-957-1455Austin TXTel 512-257-3370BostonWestborough MATel 774-760-0087Fax 774-760-0088ChicagoItasca ILTel 630-285-0071Fax 630-285-0075DallasAddison TXTel 972-818-7423Fax 972-818-2924DetroitNovi MITel 248-848-4000Houston TXTel 281-894-5983IndianapolisNoblesville INTel 317-773-8323Fax 317-773-5453Tel 317-536-2380Los AngelesMission Viejo CATel 949-462-9523Fax 949-462-9608Tel 951-273-7800Raleigh NCTel 919-844-7510New York NYTel 631-435-6000San Jose CATel 408-735-9110Tel 408-436-4270Canada - TorontoTel 905-695-1980Fax 905-695-2078

Australia - SydneyTel 61-2-9868-6733China - BeijingTel 86-10-8569-7000China - ChengduTel 86-28-8665-5511China - ChongqingTel 86-23-8980-9588China - DongguanTel 86-769-8702-9880China - GuangzhouTel 86-20-8755-8029China - HangzhouTel 86-571-8792-8115China - Hong Kong SARTel 852-2943-5100China - NanjingTel 86-25-8473-2460China - QingdaoTel 86-532-8502-7355China - ShanghaiTel 86-21-3326-8000China - ShenyangTel 86-24-2334-2829China - ShenzhenTel 86-755-8864-2200China - SuzhouTel 86-186-6233-1526China - WuhanTel 86-27-5980-5300China - XianTel 86-29-8833-7252China - XiamenTel 86-592-2388138China - ZhuhaiTel 86-756-3210040

India - BangaloreTel 91-80-3090-4444India - New DelhiTel 91-11-4160-8631India - PuneTel 91-20-4121-0141Japan - OsakaTel 81-6-6152-7160Japan - TokyoTel 81-3-6880- 3770Korea - DaeguTel 82-53-744-4301Korea - SeoulTel 82-2-554-7200Malaysia - Kuala LumpurTel 60-3-7651-7906Malaysia - PenangTel 60-4-227-8870Philippines - ManilaTel 63-2-634-9065SingaporeTel 65-6334-8870Taiwan - Hsin ChuTel 886-3-577-8366Taiwan - KaohsiungTel 886-7-213-7830Taiwan - TaipeiTel 886-2-2508-8600Thailand - BangkokTel 66-2-694-1351Vietnam - Ho Chi MinhTel 84-28-5448-2100

Austria - WelsTel 43-7242-2244-39Fax 43-7242-2244-393Denmark - CopenhagenTel 45-4485-5910Fax 45-4485-2829Finland - EspooTel 358-9-4520-820France - ParisTel 33-1-69-53-63-20Fax 33-1-69-30-90-79Germany - GarchingTel 49-8931-9700Germany - HaanTel 49-2129-3766400Germany - HeilbronnTel 49-7131-72400Germany - KarlsruheTel 49-721-625370Germany - MunichTel 49-89-627-144-0Fax 49-89-627-144-44Germany - RosenheimTel 49-8031-354-560Israel - RarsquoananaTel 972-9-744-7705Italy - MilanTel 39-0331-742611Fax 39-0331-466781Italy - PadovaTel 39-049-7625286Netherlands - DrunenTel 31-416-690399Fax 31-416-690340Norway - TrondheimTel 47-72884388Poland - WarsawTel 48-22-3325737Romania - BucharestTel 40-21-407-87-50Spain - MadridTel 34-91-708-08-90Fax 34-91-708-08-91Sweden - GothenbergTel 46-31-704-60-40Sweden - StockholmTel 46-8-5090-4654UK - WokinghamTel 44-118-921-5800Fax 44-118-921-5820

Worldwide Sales and Service

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 45

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Board Overview
      • 2 Getting Started
        • 21 Quick Start
          • 211 Driver Installation
          • 212 Kit Window
          • 213 MPLABreg X IDE Device Family Packs
          • 214 Atmel Studio 7 Device Family Pack
            • 22 Design Documentation and Relevant Links
              • 3 Preprogrammed Application
              • 4 Curiosity Nano
                • 41 On-Board Debugger Overview
                  • 411 Debugger
                  • 412 Virtual Serial Port (CDC)
                    • 4121 Overview
                    • 4122 Operating System Support
                    • 4123 Limitations
                    • 4124 Signaling
                    • 4125 Advanced Use
                      • 413 Mass Storage Device
                        • 4131 Mass Storage Device Implementation
                        • 4132 Limitations of Drag-and-Drop Programming
                        • 4133 Special Commands
                          • 414 Data Gateway Interface (DGI)
                            • 4141 Debug GPIO
                            • 4142 Timestamping
                                • 42 Curiosity Nano Standard Pinout
                                • 43 Power Supply
                                  • 431 Target Regulator
                                  • 432 External Supply
                                  • 433 VBUS Output Pin
                                  • 434 Power Supply Exceptions
                                    • 44 Low-Power Measurement
                                    • 45 Programming External Microcontrollers
                                      • 451 Supported Devices
                                      • 452 Software Configuration
                                      • 453 Hardware Modifications
                                      • 454 Connecting to External Microcontrollers
                                        • 46 Connecting External Debuggers
                                          • 5 Hardware User Guide
                                            • 51 Connectors
                                              • 511 AVR128DB48 Curiosity Nano Pinout
                                              • 512 Using Pin Headers
                                              • 513 Multi-Voltage IO
                                              • 514 Operational Amplifiers
                                                • 52 Peripherals
                                                  • 521 LED
                                                  • 522 Mechanical Switch
                                                  • 523 32768 kHz Crystal
                                                  • 524 1600 MHz Crystal
                                                  • 525 On-Board Debugger Implementation
                                                    • 5251 On-Board Debugger Connections
                                                      • 6 Hardware Revision History and Known Issues
                                                        • 61 Identifying Product ID and Revision
                                                        • 62 Revision 3
                                                        • 63 Revision 2
                                                          • 7 Document Revision History
                                                          • 8 Appendix
                                                            • 81 Schematic
                                                            • 82 Assembly Drawing
                                                            • 83 Curiosity Nano Base for Click boardstrade
                                                            • 84 Disconnecting the On-board Debugger
                                                            • 85 Getting Started with IAR
                                                              • The Microchip Website
                                                              • Product Change Notification Service
                                                              • Customer Support
                                                              • Microchip Devices Code Protection Feature
                                                              • Legal Notice
                                                              • Trademarks
                                                              • Quality Management System
                                                              • Worldwide Sales and Service
Page 8: AVR128DB48 Curiosity Nano Hardware User Guideww1.microchip.com/downloads/en/DeviceDoc/AVR128DB48-Curiosit… · 4. Curiosity Nano Curiosity Nano is an evaluation platform of small

4 Curiosity NanoCuriosity Nano is an evaluation platform of small boards with access to most of the microcontrollers IOs Theplatform consists of a series of low pin count microcontroller (MCU) boards with on-board debuggers which areintegrated with MPLABreg X IDE and Atmel Studio 7 Each board is identified in the IDE When plugged in a KitWindow is displayed with links to key documentation including relevant user guides application notes data sheetsand example code Everything is easy to find The on-board debugger features a virtual serial port (CDC) for serialcommunication to a host PC and a Data Gateway Interface (DGI) with debug GPIO pin(s)

41 On-Board Debugger OverviewAVR128DB48 Curiosity Nano contains an on-board debugger for programming and debugging The on-boarddebugger is a composite USB device consisting of several interfaces

bull A debugger that can program and debug the AVR128DB48 in both MPLABreg X IDE and Atmel Studio 7bull A mass storage device that allows drag-and-drop programming of the AVR128DB48bull A virtual serial port (CDC) that is connected to a Universal Asynchronous ReceiverTransmitter (UART) on the

AVR128DB48 and provides an easy way to communicate with the target application through terminal softwarebull A Data Gateway Interface (DGI) for code instrumentation with logic analyzer channels (debug GPIO) to visualize

program flow

The on-board debugger controls a Power and Status LED (marked PS) on the AVR128DB48 Curiosity Nano BoardThe table below shows how the LED is controlled in different operation modes

Table 4-1 On-Board Debugger LED Control

Operation Mode Power and Status LED

Boot Loader mode The LED blinks slowly during power-up

Power-up The LED is ON

Normal operation The LED is ON

Programming Activity indicator The LED blinks slowly during programmingdebugging

Drag-and-dropprogramming Success The LED blinks slowly for 2 sec

Failure The LED blinks rapidly for 2 sec

Fault The LED blinks rapidly if a power fault is detected

SleepOff The LED is OFF The on-board debugger is either in a sleep mode or powered downThis can occur if the board is externally powered

Info  Slow blinking is approximately 1 Hz and rapid blinking is approximately 5 Hz

411 DebuggerThe on-board debugger on the AVR128DB48 Curiosity Nano Board appears as a Human Interface Device (HID) onthe host computerrsquos USB subsystem The debugger supports full-featured programming and debugging of theAVR128DB48 using both MPLABreg X IDE and Atmel Studio 7 as well as some third-party IDEs

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 8

Remember  Keep the debuggerrsquos firmware up-to-date Firmware upgrades are done automatically whenusing MPLABreg X IDE or Atmel Studio 7

412 Virtual Serial Port (CDC)The virtual serial port (CDC) is a general purpose serial bridge between a host PC and a target device

4121 OverviewThe on-board debugger implements a composite USB device that includes a standard Communications Device Class(CDC) interface which appears on the host as a virtual serial port The CDC can be used to stream arbitrary data inboth directions between the host computer and the target All characters sent through the virtual serial port on thehost computer will be transmitted as UART on the debuggerrsquos CDC TX pin and UART characters captured on thedebuggerrsquos CDC RX pin will be returned to the host computer through the virtual serial port

Figure 4-1 CDC Connection

Target MCU

UART TX

UART RX

Debugger

USBCDC RX

CDC TX

PCTerminalSoftware

TargetReceive

TargetSend

TerminalReceive

TerminalSend

Info  As shown in Figure 4-1 the debuggerrsquos CDC TX pin is connected to a UART RX pin on the targetfor receiving characters from the host computer Similarly the debuggerrsquos CDC RX pin is connected to aUART TX pin on the target for transmitting characters to the host computer

4122 Operating System SupportOn Windows machines the CDC will enumerate as Curiosity Virtual COM Port and appear in the Ports section of theWindows Device Manager The COM port number can also be found there

Info  On older Windows systems a USB driver is required for CDC This driver is included in installationsof both MPLABreg X IDE and Atmel Studio 7

On Linux machines the CDC will enumerate and appear as devttyACM

Info  tty devices belong to the ldquodialoutrdquo group in Linux so it may be necessary to become a member ofthat group to have permissions to access the CDC

On MAC machines the CDC will enumerate and appear as devttyusbmodem Depending on which terminalprogram is used it will appear in the available list of modems as usbmodem

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 9

Info  For all operating systems Be sure to use a terminal emulator that supports DTR signaling See 4124 Signaling

4123 LimitationsNot all UART features are implemented in the on-board debugger CDC The constraints are outlined here

bull Baud rate Must be in the range of 1200 bps to 500 kbps Any baud rate outside this range will be set to theclosest limit without warning Baud rate can be changed on-the-fly

bull Character format Only 8-bit characters are supportedbull Parity Can be odd even or nonebull Hardware flow control Not supportedbull Stop bits One or two bits are supported

4124 SignalingDuring USB enumeration the host OS will start both communication and data pipes of the CDC interface At thispoint it is possible to set and read back the baud rate and other UART parameters of the CDC but data sending andreceiving will not be enabled

When a terminal connects on the host it must assert the DTR signal As this is a virtual control signal implementedon the USB interface it is not physically present on the board Asserting the DTR signal from the host will indicate tothe on-board debugger that a CDC session is active The debugger will then enable its level shifters (if available) andstart the CDC data send and receive mechanisms

Deasserting DTR in debugger firmware version 120 or earlier has the following behaviorbull Debugger UART receiver is disabled so no further data will be transferred to the host computerbull Debugger UART transmitter will continue to send data that is queued for sending but no new data is accepted

from the host computerbull Level shifters (if available) are not disabled so the debugger CDC TX line remains driven

Deasserting DTR in debugger firmware version 121 or later has the following behaviorbull Debugger UART receiver is disabled so no further data will be transferred to the host computerbull Debugger UART transmitter will continue to send data that is queued for sending but no new data is accepted

from the host computerbull Once the ongoing transmission is complete level shifters (if available) are disabled so the debugger CDC TX

line will become high-impedance

Remember  Set up the terminal emulator to assert the DTR signal Without the signal the on-boarddebugger will not send or receive any data through its UART

Tip  The on-board debuggerrsquos CDC TX pin will not be driven until the CDC interface is enabled by thehost computer Also there are no external pull-up resistors on the CDC lines connecting the debugger andthe target which means that during power-up these lines are floating To avoid any glitches resulting inunpredictable behavior like framing errors the target device should enable the internal pull-up resistor onthe pin connected to the debuggerrsquos CDC TX pin

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 10

4125 Advanced Use

CDC Override ModeIn normal operation the on-board debugger is a true UART bridge between the host and the device However incertain use cases the on-board debugger can override the basic operating mode and use the CDC TX and RX pinsfor other purposes

Dropping a text file into the on-board debuggerrsquos mass storage drive can be used to send characters out of thedebuggerrsquos CDC TX pin The filename and extension are trivial but the text file must start with the charactersCMDSEND_UART=

Debugger firmware version 120 or earlier has the following limitationsbull The maximum message length is 50 characters ndash all remaining data in the frame are ignoredbull The default baud rate used in this mode is 9600 bps but if the CDC is already active or has been configured

the previously used baud rate still applies

Debugger firmware version 121 and later has the following limitationsfeaturesbull The maximum message length may vary depending on the MSCSCSI layer timeouts on the host computer

andor operating system A single SCSI frame of 512 bytes (498 characters of payload) is guaranteed and filesof up to 4 KB will work on most systems The transfer will complete on the first NULL character encountered inthe file

bull The baud rate used is always 9600 bps for the default commandCMDSEND_UART=

The CDC Override Mode should not be used simultaneously with data transfer over CDCterminal If a CDCterminal session is active at the time a file is received via CDC Override Mode it will be suspended for theduration of the operation and resumed once complete

bull Additional commands are supported with explicit baud ratesCMDSEND_9600=

CMDSEND_115200=

CMDSEND_460800=

USB-Level Framing ConsiderationsSending data from the host to the CDC can be done byte-wise or in blocks which will be chunked into 64-byte USBframes Each such frame will be queued up for sending to the debuggerrsquos CDC TX pin Transferring a small amountof data per frame can be inefficient particularly at low baud rates as the on-board debugger buffers frames and notbytes A maximum of four 64-byte frames can be active at any time The on-board debugger will throttle the incomingframes accordingly Sending full 64-byte frames containing data is the most efficient method

When receiving data on the debuggerrsquos CDC RX pin the on-board debugger will queue up the incoming bytes into64-byte frames which are sent to the USB queue for transmission to the host when they are full Incomplete framesare also pushed to the USB queue at approximately 100 ms intervals triggered by USB start-of-frame tokens Up toeight 64-byte frames can be active at any time

If the host (or the software running on it) fails to receive data fast enough an overrun will occur When this happensthe last-filled buffer frame will be recycled instead of being sent to the USB queue and a full frame of data will belost To prevent this occurrence the user must ensure that the CDC data pipe is being read continuously or theincoming data rate must be reduced

413 Mass Storage DeviceThe on-board debugger includes a simple Mass Storage Device implementation which is accessible for readwriteoperations via the host operating system to which it is connected

It providesbull Read access to basic text and HTML files for detailed kit information and support

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 11

bull Write access for programming Intelreg HEX formatted files into the target devicersquos memorybull Write access for simple text files for utility purposes

4131 Mass Storage Device ImplementationThe on-board debugger implements a highly optimized variant of the FAT12 file system that has several limitationspartly due to the nature of FAT12 itself and optimizations made to fulfill its purpose for its embedded application

The Curiosity Nano USB device is USB Chapter 9-compliant as a mass storage device but does not in any way fulfillthe expectations of a general purpose mass storage device This behavior is intentional

When using the Windows operating system the on-board debugger enumerates as a Curiosity Nano USB Devicethat can be found in the disk drives section of the device manager The CURIOSITY drive appears in the file managerand claims the next available drive letter in the system

The CURIOSITY drive contains approximately one MB of free space This does not reflect the size of the targetdevicersquos Flash in any way When programming an Intelreg HEX file the binary data are encoded in ASCII withmetadata providing a large overhead so one MB is a trivially chosen value for disk size

It is not possible to format the CURIOSITY drive When programming a file to the target the filename may appear inthe disk directory listing This is merely the operating systemrsquos view of the directory which in reality has not beenupdated It is not possible to read out the file contents Removing and replugging the board will return the file systemto its original state but the target will still contain the application that has been previously programmed

To erase the target device copy a text file starting with ldquoCMDERASErdquo onto the disk

By default the CURIOSITY drive contains several read-only files for generating icons as well as reporting status andlinking to further information

bull AUTORUNICO ndash icon file for the Microchip logobull AUTORUNINF ndash system file required for Windows Explorer to show the icon filebull KIT-INFOHTM ndash redirect to the development board websitebull KIT-INFOTXT ndash a text file containing details about the boardrsquos debugger firmware version board name USB

serial number device and drag-and-drop supportbull STATUSTXT ndash a text file containing the programming status of the board

Info  STATUSTXT is dynamically updated by the on-board debugger The contents may be cached bythe OS and therefore do not reflect the correct status

4132 Limitations of Drag-and-Drop Programming

Lock BitsLock bits included in the hex file will be ignored when using drag-and-drop programming To program lock bits useMPLABreg X IDE or Atmel Studio 7

Enabling CRC Check in FusesIt is not advisable to enable the CRC check in the target devicersquos fuses when using drag-and-drop programming Thisis because a subsequent chip erase (which does not affect fuse bits) will effect a CRC mismatch and the applicationwill fail to boot To recover a target from this state a chip erase must be done using MPLABreg X IDE orAtmel Studio 7 which will automatically clear the CRC fuses after erasing

4133 Special CommandsSeveral utility commands are supported by copying text files to the mass storage disk The filename or extension isirrelevant ndash the command handler reacts to content only

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 12

Table 4-2 Special File Commands

Command Content Description

CMDERASE Executes a chip erase of the target

CMDSEND_UART= Sends a string of characters to the CDC UART See ldquoCDCOverride Moderdquo

CMDSEND_9600=CMDSEND_115200=CMDSEND_460800=

Sends a string of characters to the CDC UART at the baud ratespecified Note that only the baud rates explicitly specified hereare supported See ldquoCDC Override Moderdquo (Debugger firmwarev121 or newer)

CMDRESET Resets the target device by entering Programming mode andthen exiting Programming mode immediately thereafter Exacttiming can vary according to the programming interface of thetarget device (Debugger firmware v116 or newer)

CMDPOWERTOGGLE Powers down the target and restores power after a 100 msdelay If external power is provided this has no effect(Debugger firmware v116 or newer)

CMD0V Powers down the target device by disabling the target supplyregulator If external power is provided this has no effect(Debugger firmware v116 or newer)

CMD1V8 Sets the target voltage to 18V If external power is providedthis has no effect (Debugger firmware v121 or newer)

CMD3V3 Sets the target voltage to 33V If external power is providedthis has no effect (Debugger firmware v116 or newer)

CMD5V0 Sets the target voltage to 50V If external power is providedthis has no effect (Debugger firmware v116 or newer)

Info  The commands listed here are triggered by the content being sent to the mass storage emulateddisk and no feedback is provided in the case of either success or failure

414 Data Gateway Interface (DGI)Data Gateway Interface (DGI) is a USB interface for transporting raw and timestamped data between on-boarddebuggers and host computer-based visualization tools MPLAB Data Visualizer is used on the host computer todisplay debug GPIO data It is available as a plug-in for MPLABreg X IDE or a stand-alone application that can be usedin parallel with MPLABreg X IDE or Atmel Studio 7

Although DGI encompasses several physical data interfaces the AVR128DB48 Curiosity Nano implementationincludes logic analyzer channels

bull Two debug GPIO channels (also known as DGI GPIO)

4141 Debug GPIODebug GPIO channels are timestamped digital signal lines connecting the target application to a host computervisualization application They are typically used to plot the occurrence of low-frequency events on a time-axis ndash forexample when certain application state transitions occur

The figure below shows the monitoring of the digital state of a mechanical switch connected to a debug GPIO inMPLAB Data Visualizer

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 13

Figure 4-2 Monitoring Debug GPIO with MPLABreg Data Visualizer

Debug GPIO channels are timestamped so the resolution of DGI GPIO events is determined by the resolution of theDGI timestamp module

Important  Although bursts of higher-frequency signals can be captured the useful frequency range ofsignals for which debug GPIO can be used is up to about 2 kHz Attempting to capture signals above thisfrequency will result in data saturation and overflow which may cause the DGI session to be aborted

4142 TimestampingDGI sources are timestamped as they are captured by the debugger The timestamp counter implemented in theCuriosity Nano debugger increments at 2 MHz frequency providing a timestamp resolution of a half microsecond

42 Curiosity Nano Standard PinoutThe 12 edge connections closest to the USB connector on Curiosity Nano boards have a standardized pinout Theprogramdebug pins have different functions depending on the target programming interface as shown in the tableand figure below

Table 4-3 Curiosity Nano Standard Pinout

Debugger Signal Target MCU Description

ID mdash ID line for extensions

CDC TX UART RX USB CDC TX line

CDC RX UART TX USB CDC RX line

DBG0 UPDI Debug data line

DBG1 GPIO1 debug GPIO1

DBG2 GPIO0 debug GPIO0

DBG3 RESET Reset line

NC mdash No connect

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 14

continuedDebugger Signal Target MCU Description

VBUS mdash VBUS voltage for external use

VOFF mdash Voltage Off input Disables the target regulator andtarget voltage when pulled low

VTG mdash Target voltage

GND mdash Common ground

Figure 4-3 Curiosity Nano Standard Pinout

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

43 Power SupplyThe board is powered through the USB port and contains two LDO regulators one to generate 33V for the on-boarddebugger and an adjustable LDO regulator for the target microcontroller AVR128DB48 and its peripherals Thevoltage from the USB connector can vary between 44V to 525V (according to the USB specification) and will limitthe maximum voltage to the target The figure below shows the entire power supply system on AVR128DB48Curiosity Nano

Figure 4-4 Power Supply Block Diagram

USBTarget MCU

Power source

Cut strap

Power consumer P3V3DEBUGGER

Power converter

DEBUGGERRegulator

VUSB

TargetRegulator

Power Supply strap

Adjust

Level shifter

VLVLVREG

IO IO GPIOstraps

IO

OnOffMeasure OnOff

ID systemVOFF

PTC Fuse

Power protection

VBUS

Target Power strap

VTG

431 Target RegulatorThe target voltage regulator is a MIC5353 variable output LDO The on-board debugger can adjust the voltage outputsupplied to the board target section by manipulating the MIC5353rsquos feedback voltage The hardware implementation

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 15

is limited to an approximate voltage range from 17V to 51V Additional output voltage limits are configured in thedebugger firmware to ensure that the output voltage never exceeds the hardware limits of the AVR128DB48microcontroller The voltage limits configured in the on-board debugger on AVR128DB48 Curiosity Nano are 18ndash55V

Info  The target voltage is set to 33V when the board is manufactured It can be changed throughMPLABreg X IDE project properties and in the Atmel Studio 7 device programming dialog Any change tothe target voltage is persistent even after a power toggle The resolution is less than 5 mV but may belimited to 10 mV by the adjustment program

Info  Voltage settings that are set up in MPLABreg X IDE are not immediately applied to the board Thenew voltage setting is applied to the board when the debugger is accessed in any way like pushing theRefresh Debug Tool Status button in the project dashboard tab or programmingreading program memory

Info  There is a simple option to adjust the target voltage with a drag-and-drop command text file to theboard This supports a set of common target voltages See section 4133 Special Commands for furtherdetails

The MIC5353 supports a maximum current load of 500 mA It is an LDO regulator in a small package placed on asmall printed circuit board (PCB) and the thermal shutdown condition can be reached at lower loads than 500 mAThe maximum current load depends on the input voltage the selected output voltage and the ambient temperatureThe figure below shows the safe operating area for the regulator with an input voltage of 51V and an ambienttemperature of 23degC

Figure 4-5 Target Regulator Safe Operation Area

The voltage output of the target regulator is continuously monitored (measured) by the on-board debugger If it ismore than 100 mV overunder the voltage setting value an error condition will be flagged and the target voltageregulator will be turned off This will detect and handle any short-circuit conditions It will also detect and handle if anexternal voltage which causes VCC_TARGET to move outside of the voltage setting monitoring window of plusmn100 mVis suddenly applied to the VTG pin without setting the VOFF pin low

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 16

Info  If the external voltage is lower than the monitoring window lower limit (target voltage setting ndash 100mV) the on-board debugger status LED will blink rapidly If the external voltage is higher than themonitoring window upper limit (target voltage setting + 100 mV) the on-board debugger status LED willcontinue to shine If the external voltage is removed the status LED will start to blink rapidly until the on-board debugger detects the new situation and turns the target voltage regulator back on

432 External SupplyAVR128DB48 Curiosity Nano can be powered by an external voltage instead of the on-board target regulator Whenthe Voltage Off (VOFF) pin is shorted to ground (GND) the on-board debugger firmware disables the target regulatorand it is safe to apply an external voltage to the VTG pin

It is also safe to apply an external voltage to the VTG pin when no USB cable is plugged into the DEBUG connectoron the board

The VOFF pin can be tied lowlet go at any time This will be detected by a pin-change interrupt to the on-boarddebugger which controls the target voltage regulator accordingly

WARNINGApplying an external voltage to the VTG pin without shorting VOFF to GND may cause permanent damageto the board

WARNINGDo not apply any voltage to the VOFF pin Let the pin float to enable the power supply

WARNINGAbsolute maximum external voltage is 55V for the on-board level shifters and the standard operatingcondition of the AVR128DB48 is 18ndash55V Applying a higher voltage may cause permanent damage to theboard

Info  If an external voltage is applied without pulling the VOFF pin low and an external supply pulls thevoltage lower than the monitoring windowrsquos lower limit (target voltage setting - 100 mV) the on-boarddebugger status LED will blink rapidly and shut the on-board regulator off If an external voltage issuddenly removed when the VOFF pin is not pulled low the status LED will start to blink rapidly until theon-board debugger detects the new situation and switches the target voltage regulator back on

Programming debugging and data streaming is still possible with an external power supply ndash the debugger andsignal level shifters will be powered from the USB cable Both regulators the debugger and the level shifters arepowered down when the USB cable is removed

Info  In addition to the power consumed by the AVR128DB48 and its peripherals approximately 100 microAwill be drawn from any external power source to power the on-board level shifters and voltage monitorcircuitry when a USB cable is plugged in the DEBUG connector on the board When a USB cable is notplugged in some current is used to supply the level shifters voltage pins which have a worst-case currentconsumption of approximately 5 microA Typical values may be as low as 100 nA

433 VBUS Output PinAVR128DB48 Curiosity Nano has a VBUS output pin that can be used to power external components that need a 5Vsupply The VBUS output pin has a PTC fuse to protect the USB against short circuits A side effect of the PTC fuseis a voltage drop on the VBUS output with higher current loads The chart below shows the voltage versus the currentload of the VBUS output

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 17

Figure 4-6 VBUS Output Voltage vs Current

434 Power Supply ExceptionsThis is a summary of most exceptions that can occur with the power supply

Target Voltage Shuts DownThis can happen if the target section draws too much current at a given voltage This will cause the thermal shutdownsafety feature of the MIC5353 regulator to kick in To avoid this reduce the current load of the target section

Target Voltage Setting is Not ReachedThe maximum output voltage is limited by the USB input voltage (specified to be 44-525V) and the voltage dropover the MIC5353 regulator at a given voltage setting and current consumption If a higher output voltage is neededuse a USB power source that can provide a higher input voltage or use an external voltage supply on the VTG pin

Target Voltage is Different From SettingThis can be caused by an externally applied voltage to the VTG pin without setting the VOFF pin low If the targetvoltage differs more than 100 mV overunder the voltage setting it will be detected by the on-board debugger andthe internal voltage regulator will be shut down To fix this issue remove the applied voltage from the VTG pin andthe on-board debugger will enable the on-board voltage regulator when the new condition is detected Note that thePS LED will be blinking rapidly if the target voltage is below 100 mV of the setting but will be lit normally when it ishigher than 100 mV above the setting

No Or Very Low Target Voltage and PS LED is Blinking RapidlyThis can be caused by a full or partial short-circuit and is a special case of the issue mentioned above Remove theshort-circuit and the on-board debugger will re-enable the on-board target voltage regulator

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 18

No Target Voltage and PS LED is Lit 1This occurs if the target voltage is set to 00V To fix this set the target voltage to a value within the specified voltagerange for the target device

No Target Voltage and PS LED is Lit 2This can be the issue if power jumper J100 andor J101 is cut and the target voltage regulator is set to a value withinthe specified voltage range for the target device To fix this solder a wirebridge between the pads for J100J101 oradd a jumper on J101 if a pin header is mounted

VBUS Output Voltage is Low or Not PresentThis is most lightly caused by a high-current drain on VBUS and the protection fuse (PTC) will reduce the current orcut off completely Reduce the current consumption on the VBUS pin to fix this issue

44 Low-Power MeasurementPower to the AVR128DB48 is connected from the on-board power supply and VTG pin through a 100 mil pin headermarked with ldquoPOWERrdquo in silkscreen (J101) To measure the power consumption of the AVR128DB48 and otherperipherals connected to the board cut the Target Power strap and connect an ammeter over the strap

To measure the lowest possible power consumption follow these steps1 Cut the POWER strap with a sharp tool2 Solder a 1x2 100 mil pin header in the footprint3 Connect an ammeter to the pin header4 Write firmware that

41 Tri-states any IO connected to the on-board debugger42 Sets the microcontroller in its lowest power Sleep state

5 Program the firmware into the AVR128DB48

Figure 4-7 Target Power Strap

Target Power strap (top side)

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 19

Tip  A 100-mil pin header can be soldered into the Target Power strap (J101) footprint for easyconnection of an ammeter Once the ammeter is no longer needed place a jumper cap on the pin header

Info  The on-board level shifters will draw a small amount of current even when they are not in use Amaximum of 2 microA can be drawn from each IO pin connected to a level shifter for a total of 10 microA Keepany IO pin connected to a level shifter in tri-state to prevent leakage All IOs connected to the on-boarddebugger are listed in 5251 On-Board Debugger Connections To prevent any leakage to the on-boardlevel shifters they can be disconnected completely as described in 84 Disconnecting the On-boardDebugger

45 Programming External MicrocontrollersThe on-board debugger on AVR128DB48 Curiosity Nano can be used to program and debug microcontrollers onexternal hardware

451 Supported DevicesAll external AVR microcontrollers with the UPDI interface can be programmed and debugged with the on-boarddebugger with Atmel Studio

External SAM microcontrollers that have a Curiosity Nano Board can be programmed and debugged with the on-board debugger with Atmel Studio

AVR128DB48 Curiosity Nano can program and debug external AVR128DB48 microcontrollers with MPLAB X IDE

452 Software ConfigurationNo software configuration is required to program and debug the same device that is mounted on the board

To program and debug a different microcontroller than what is mounted on the board Atmel Studio must beconfigured to allow free selection of devices and programming interfaces

1 Navigate to Tools gt Options through the menu system at the top of the application2 Select the Tools gt Tool settings category in the options window3 Set the Hide unsupported devices option to False

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 20

Figure 4-8 Hide Unsupported Devices

Info  Atmel Studio allows any microcontroller and interface to be selected when Hide unsupporteddevices is set to False also microcontrollers and interfaces which are not supported by the on-boarddebugger

453 Hardware ModificationsThe on-board debugger is connected to the AVR128DB48 by default These connections must be removed beforeany external microcontroller can be programmed or debugged Cut the GPIO straps shown in the figure below with asharp tool to disconnect the AVR128DB48 from the on-board debugger

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 21

Figure 4-9 Programming and Debugging Connections to Debugger

GPIO straps (bottom side)

Info  Cutting the connections to the debugger will disable programming debugging and data streamingfrom the AVR128DB48 mounted on the board

Tip  Solder in 0Ω resistors across the footprints or short-circuit them with solder to reconnect the signalsbetween the on-board debugger and the AVR128DB48

454 Connecting to External MicrocontrollersThe figure and table below show where the programming and debugging signals must be connected to program anddebug external microcontrollers The on-board debugger can supply power to the external hardware or use anexternal voltage as a reference for its level shifters Read more about the power supply in 43 Power Supply

The on-board debugger and level shifters actively drive data and clock signals (DBG0 DBG1 and DBG2) used forprogramming and debugging and in most cases the external resistor on these signals can be ignored Pull-downresistors are required on the ICSPtrade data and clock signals to debug PICreg microcontrollers

DBG3 is an open-drain connection and requires a pull-up resistor to function

AVR128DB48 Curiosity Nano has a pull-up resistor R200 connected to its RESET signal (DBG3) The location ofthe pull-up resistor is shown in the 82 Assembly Drawing in the appendix

Remember bull Connect GND and VTG to the external microcontrollerbull Tie the VOFF pin to GND if the external hardware has its own power supplybull Make sure there are pull-down resistors on the ICSP data and clock signals (DBG0 and DBG1) to

support the debugging of PIC microcontrollers

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 22

Figure 4-10 Curiosity Nano Standard Pinout

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

Table 4-4 Programming and Debugging Interfaces

Curiosity Nano Pin UPDI ICSPtrade SWD

DBG0 UPDI DATA SWDIO

DBG1 mdash CLK SWCLK

DBG2 mdash mdash mdash

DBG3 mdash MCLR RESET

46 Connecting External DebuggersEven though there is an on-board debugger external debuggers can be connected directly to the AVR128DB48Curiosity Nano to programdebug the AVR128DB48 The on-board debugger keeps all the pins connected to theAVR128DB48 and board edge in tri-state when not actively used Therefore the on-board debugger will not interferewith any external debug tools

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 23

Figure 4-11 Connecting the MPLABreg PICkittrade 4 In-Circuit DebuggerProgrammer to AVR128DB48 CuriosityNano

2345678 1

VDD

GroundDATA

2 = VDD

3 = Ground

4 = PGD

5 = Unused

6 = Unused

7 = Unused

8 = Unused

1 = Unused

MPLABreg PICkittrade 4

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 24

Figure 4-12 Connecting the Atmel-ICE to AVR128DB48 Curiosity Nano

VDD

Ground

DATA

AVRregSAM

3 = UPDI

4 = VTG

5 = Unused

6 = Unused

7 = Unused

8 = Unused

1 = Unused

2 = GND

9 = Unused

10 = Unused

Atmel-ICE

21 9

10

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

CAUTIONTo avoid contention between the external debugger and the on-board debugger do not start anyprogrammingdebug operation with the on-board debugger through MPLABreg X IDE or Atmel Studio 7 ormass storage programming while the external tool is active

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 25

5 Hardware User Guide

51 Connectors

511 AVR128DB48 Curiosity Nano PinoutAll the AVR128DB48 IO pins are accessible at the edge connectors on the board The image below shows the boardpinout For all available functions on each pin refer to the IO Multiplexing and Considerations section in theAVR128DB48 data sheet

Figure 5-1 AVR128DB48 Curiosity Nano Pinout

USB

DEBUGGER

AVR128DB48

SW0

LED0

PS LEDNC

NC

IDID

CDC RX

CD

CR

XUSART3 TXPB0

CDC TX

CD

CT

XUSART3 RXPB1

DBG1

DB

G1PB3LED0

DBG2

DB

G2PB2SW0

PF4

PF

4USART2 TX

PF5

PF

5USART2 RX

PA2

PA

2TWI0 SDA

PA3

PA

3TWI0 SCL

PA4

PA

4SPI0 MOSI

PA5

PA

5SPI0 MISO

PA6

PA

6SPI0 SCK

PA7

PA

7SPI0 SS

GND

GN

D

PB0

PB

0USART3 TXCDC RX

PB1

PB

1USART3 RXCDC TX

PF2

PF

2

PF3

PF

3

PC0

PC

0

PC1

PC

1

PC2

PC

2

PC3

PC

3

GND

GN

D

(PA0)

(PA

0)XTALHF1

(PA1)

(PA

1)XTALHF2

PB2

PB

2SW0

PB3

PB

3LED0

VBUS

VB

US

VOFF

VO

FF

DBG3

DB

G3 PF6

DBG0

DB

G0 UPDI

GND

GN

D

VTG

VT

G

PD6

PD

6 AIN6

PD3

PD

3 AIN3 OP0 INN

PD2

PD

2 AIN2 OP0 OUT TCA0 WO2

PD1

PD

1 AIN1 OP0 INP TCA0 WO1

PD0

PD

0 AIN0 TCA0 WO0

PD7

PD

7 AIN7 OP1 INN

PD5

PD

5 AIN5 OP1 OUT

PD4

PD

4 AIN4 OP1 INP

GND

GN

D

PE3

PE

3 OP2 INN

PE2

PE

2 OP2 OUT

PE1

PE

1 OP2 INP

PE0

PE

0

PC7

PC

7

PC6

PC

6

PC5

PC

5

PC4

PC

4

GND

GN

D

PB5

PB

5

PB4

PB

4

(PF1)

(PF

1) XTAL32K2

(PF0)

(PF

0) XTAL32K1

DEBUGGERAVR128DB48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

MVIO

OPAMP

Shared pin

AVR128DB48Curiosity Nano

512 Using Pin HeadersThe edge connector footprint on AVR128DB48 Curiosity Nano has a staggered design where each hole is shifted 8mil (~02 mm) off-center The hole shift allows the use of regular 100 mil pin headers on the board without solderingOnce the pin headers are firmly in place they can be used in normal applications like pin sockets and prototypingboards without any issues

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 26

Figure 5-2 Attaching Pin-Headers to the Curiostiy Nano Board

Figure 5-3 Connecting to Curiosity Nano Base for Click boardstrade

Tip  Start at one end of the pin header and gradually insert the header along the length of the boardOnce all the pins are in place use a flat surface to push them in

Tip  For applications where the pin headers will be used permanently it is still recommended to solderthem in place

Important  Once the pin headers are in place they are hard to remove by hand Use a set of pliers andcarefully remove the pin headers to avoid damage to the pin headers and PCB

513 Multi-Voltage IO

The AVR128DB48 Curiosity Nano MCU has support for Multi-Voltage IO (MVIO) AVR128DB48 MVIO pins areconnected to the edge connector at PC0-PC7 MVIO pins are capable of regular IO-pin behavior

MVIO can be configured in one of two supply modesbull Single-Supply mode All IO pins including MVIO-capable pins are powered by VCC_TARGET By default

VCC_TARGET is connected to VDDIO2 through a 0-ohm resistor (R204)bull Dual-Supply mode MVIO-capable pins are powered by an external power supply connected to VDDIO2 Non-

MVIO pins are powered by VCC_TARGET

Dual-Supply mode allows MVIO-pins to be powered at different voltages than pins powered from VCC_TARGET

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 27

WARNINGThe absolute maximum external voltage range for the AVR128DB48 is 18ndash55V Applying a higher voltagemay cause permanent damage to the board

By default AVR128DB48 Curiosity Nano board is configured for single-supply mode To use Dual-Supply mode somehardware modifications are required

WARNINGBefore any hardware modifications are done make sure the board is disconnected from USB or externalpower

bull Disconnect resistor R204 connecting VDDIO2 to VCC_TARGETbull Connect a new power supply to VDDIO2 and ground at J212bull J212 does not have reverse polarity protection Make sure to match polarity between the power supply and

J212 Positive-polarity to J212-pin 1 and negative-polarity to J212-pin 2

The resistor R204 VDDIO2 and J212 can be seen in Figure 5-4

Figure 5-4 MVIO and VDDIO2 Connections

J212 R204

WARNINGApplying an external voltage to VDDIO2 pin without removing resistor R204 may cause permanentdamage to the board

WARNINGJ212 does not have reverse polarity protection Applying voltage to the wrong pin may cause permanentdamage to the board

514 Operational AmplifiersAVR128DB48 features three internal operational amplifiers with a flexible connection scheme using analogmultiplexers and resistor ladders This allows a large number of analog signal conditioning configurations manyrequiring no external components

Table 5-1 OPAMP Pin Connections

OPAMP Poisitive Input (INP) Negative Input (INN) Output (OUT)

OP0 PD1 PD3 PD2

OP1 PD4 PD7 PD5

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 28

continuedOPAMP Poisitive Input (INP) Negative Input (INN) Output (OUT)

OP2 PE1 PE3 PE2

For information about OPAMP on the edge connector and any shared functionality see 511 AVR128DB48 CuriosityNano Pinout

52 Peripherals

521 LEDThere is one yellow user LED available on the AVR128DB48 Curiosity Nano board that can be controlled by eitherGPIO or PWM The LED can be activated by driving the connected IO line to GND

Table 5-2 LED Connection

AVR128DB48 Pin Function Shared Functionality

PB3 Yellow LED0 Edge connector On-board debugger

522 Mechanical SwitchThe AVR128DB48 Curiosity Nano board has one mechanical switch This is a generic user-configurable switchWhen the switch is pressed it will drive the IO line to ground (GND)

Tip  There is no externally connected pull-up resistor on the switch To use the switch make sure that aninternal pull-up resistor is enabled on pin PB2

Table 5-3 Mechanical Switch

AVR128DB48 Pin Description Shared Functionality

PB2 User switch (SW0) Edge connector On-board debugger

523 32768 kHz Crystal

On the AVR128DB48 Curiosity Nano board is a mounted 32768 kHz crystal of type VMK3-9001-32K7680000 thecrystal is accurate to within 20 ppm Using the External 32768 kHz Crystal Oscillator (XOSC32K) module inAVR128DB48 with the mounted 32768 kHz crystal generates a clock signal that is significantly more accurate thanthe Internal 32768 kHz Ultra Low-Power Oscillator (OSC32K) module can generate alone With the Auto-Tunefeature the 32768 kHz can be used as a reference to improve the accuracy of the internal oscillator This is an idealreference clock for the Real-Time Counter module in AVR128DB48

The 32768 kHz crystal is connected to AVR128DB48 on PF0 and PF1 which are also routed to the edge connectorthrough two solder points PF0 and PF1 are disconnected from the edge connector by default to reduce the chanceof an external signal causing contention with the crystal and to remove excessive capacitance on the lines

Next to the 32768 kHz crystal is a cut-strap (J209) which can be used to measure the oscillator safety factor This isdone by cutting the strap and adding a 0402 SMD resistor across the strap More information about oscillatorallowance and safety factor can be found in the AN2648 application note from Microchip

Cut straps and solder points can be seen in Figure 5-5

Table 5-4 32768 kHz Crystal Connections

AVR128DB48 Pin Function Shared Functionality

PF0 XTAL32K1 (Crystal input) Edge connector

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 29

continuedAVR128DB48 Pin Function Shared Functionality

PF1 XTAL32K2 (Crystal output) Edge connector

PA0 and PA1 can be used as GPIO To do so some hardware modifications are required

WARNINGBefore any hardware modifications are done make sure the board is disconnected from the USB orexternal power

bull Disconnect the 32768 kHz crystal by cutting the two straps on the top side of the board next to the crystal(J207 J208) The crystal should be disconnected when using the pin as GPIO as this might harm the crystal

bull Connect the IO lines to the edge connector by placing solder blobs on the circular solder points marked PF0and PF1 on the bottom side of the board (J210 J211)

Figure 5-5 Crystal Connection and Cut Straps

Top side Boom side

J211

J210

J207

J20832768 kHz Crystal

J209

524 1600 MHz Crystal

On the AVR128DB48 Curiosity Nano board is a mounted 1600 MHz crystal of type VXM7-9040-16M0000000 thecrystal is accurate to within 20 ppm Using the External High-Frequency Crystal Oscillator (XOSCHF) module inAVR128DB48 with the mounted 1600 MHz crystal generates a clock signal that is significantly more accurate thanthe Internal High-Frequency Oscillator (OSCHF) module

The 1600 MHz crystal is connected to AVR128DB48 on PA0 and PA1 which are also routed to the edge connectorthrough two solder points PA0 and PA1 are disconnected from the edge connector by default to reduce the chanceof an external signal causing contention with the crystal and to remove excessive capacitance on the lines

Next to the 1600 MHz crystal is a cut-strap (J217) which can be used to measure the oscillator safety factor This isdone by cutting the strap and adding a 0402 SMD resistor across the strap More information about oscillatorallowance and safety factor can be found in the AN2648 application note from Microchip

Cut straps and solder points can be seen in Figure 5-6

Table 5-5 Crystal Connections

AVR128DB48 Pin Function Shared Functionality

PA0 XTALHF1 (Crystal input) Edge connector

PA1 XTALHF2 (Crystal output) Edge connector

PA0 and PA1 can be used as GPIO To do so some hardware modifications are required

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 30

WARNINGBefore any hardware modifications are done make sure the board is disconnected from USB or externalpower

bull Disconnect the 1600 MHz crystal by cutting the two straps on the top side of the board next to the crystal (J215J216) The crystal should be disconnected when using the pin as GPIO as this might harm the crystal

bull Connect the IO lines to the edge connector by placing solder blobs on the circular solder points marked PA0and PA1 on the bottom side of the board (J213 J214)

Figure 5-6 Crystal Connection and Cut Straps

Top side Boom side

J214

J213

J216

J2151600 MHzCrystal

J217

525 On-Board Debugger ImplementationAVR128DB48 Curiosity Nano features an on-board debugger that can be used to program and debug theAVR128DB48 using UPDI The on-board debugger also includes a virtual serial port (CDC) interface over UART anddebug GPIO Both MPLABreg X IDE and Atmel Studio 7 can be used as a front-end for the on-board debugger forprogramming and debugging MPLAB Data Visualizer can be used as a front-end for the CDC and debug GPIO

5251 On-Board Debugger ConnectionsThe table below shows the connections between the target and the debugger section All connections between thetarget and the debugger are tri-stated as long as the debugger is not actively using the interface Hence since thereare little contaminations of the signals the pins can be configured to anything the user wants

For further information on how to use the capabilities of the on-board debugger see 41 On-Board DebuggerOverview

Table 5-6 On-Board Debugger Connections

AVR128DB48Pin

Debugger Pin Function Shared Functionality

PB1 CDC TX UART RX (AVR128DB48 RX line) Edge connector

PB0 CDC RX UART TX (AVR128DB48 TX line) Edge connector

UPDI DBG0 UPDI Edge connector

PB3 DBG1 LED0Debug GPIO1 Edge connector

PB2 DBG2 SW0Debug GPIO0 Edge connector

PF6 DBG3 RESET Edge connector

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 31

6 Hardware Revision History and Known IssuesThis user guide is written to provide information about the latest available revision of the board The followingsections contain information about known issues a revision history of older revisions and how older revisions differfrom the latest revision

61 Identifying Product ID and RevisionThe revision and product identifier of the AVR128DB48 Curiosity Nano Board can be found in two ways Either byutilizing the MPLABreg X IDE or Atmel Studio 7 Kit Window or by looking at the sticker on the bottom side of the PCB

By connecting AVR128DB48 Curiosity Nano to a computer with MPLABreg X IDE or Atmel Studio 7 running the KitWindow will pop up The first six digits of the serial number which is listed under kit information contain the productidentifier and revision

Tip  The Kit Window can be opened in MPLABreg X IDE through the menu bar Window gt Kit Window

The same information can be found on the sticker on the bottom side of the PCB Most boards will have the identifierand revision printed in plain text as A09-nnnnrr where ldquonnnnrdquo is the identifier and ldquorrrdquo is the revision Boards withlimited space have a sticker with only a data matrix code containing the product identifier revision and serialnumber

The serial number string has the following format

nnnnrrssssssssss

n = product identifier

r = revision

s = serial number

The product identifier for AVR128DB48 Curiosity Nano is A09‑3372

62 Revision 3AVR128DB48 silicon revision A5 or later is mounted on this revision of the board

63 Revision 2Revision 2 is the initially released board revision

AVR128DB48 silicon revision A4 is mounted on this revision of the board

AVR128DB48 Curiosity NanoHardware Revision History and Known Issues

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 32

7 Document Revision HistoryDoc Rev Date Comments

A 092020 Initial document release

AVR128DB48 Curiosity NanoDocument Revision History

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 33

8 Appendix

81 SchematicFigure 8-1 AVR128DB48 Curiosity Nano Schematic

11

22

33

44

55

66

77

88

DD

CC

BB

AA

2 of

4

AV

R12

8DB

48 C

uri

osit

y N

ano

240

820

20A

VR

128D

B48

_Cur

iosi

ty_N

ano_

Targ

et_M

CU

Sch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA

Rev

isio

n

File

P

CB

Num

ber

PC

B

Rev

isio

n

Des

ign

ed w

ith

Dra

wn

By

ML

Shee

t Titl

e

Targ

et M

CU

Eng

inee

rA

H

A08

-305

71

Size

A3

A09

-337

22

Page

D

ateA

ltium

com

GN

D

VD

DIO

2

100n

C20

1

GN

D

PA5_

SPI0

_MIS

OPA

6_SP

I0_S

CK

PA7_

SPI0

_SS

PB0_

USA

RT

3_T

XPB

1_U

SAR

T3_

RX

PB2_

SW0_

DB

G2

PB3_

LE

D0_

DB

G1

PB

4P

B5

PC

0P

C1

PC

2

PC3

PC4PC5PC6PC7PD0_AIN0_TCA0_WO0PD1_AIN1_OP0_INP_TCA0_WO1PD2_AIN2_OP0_OUT_TCA0_WO2PD3_AIN3_OP0_INNPD4_AIN4_OP1_INP

PA3_TWI0_SCL

PA1_XTALHF2

UPDI_DBG0

PF5_USART2_RX

PF3

PF

2PF

1_X

TA

L32

K2

PF0_

XT

AL

32K

1P

E3_

OP

2_IN

NP

E2_

OP

2_O

UT

PE

1_O

P2_

INP

PE

0

PD5_

AIN

5_O

P1_

OU

TPD

6_A

IN6

PD7_

AIN

7_O

P1_

INN

GN

D

VC

C_T

AR

GE

T

100n

C20

2

GN

DV

CC

_TA

RG

ET

100n

C20

0

PF1_XTAL32K2

PF0_XTAL32K1

PA2_TWI0_SDA

PA0_XTALHF1

PF4_USART2_TX

PA4_SPI0_MOSI

GN

D

PA7_

SPI0

_SS

PA6_

SPI0

_SC

KPA

5_SP

I0_M

ISO

PA4_

SPI0

_MO

SIPA

3_T

WI0

_SC

LPA

2_T

WI0

_SD

A

PC

0P

C1

PC

2P

C3

PB

4P

B5

PD7_

AIN

7_O

P1_

INN

PD6_

AIN

6

PD2_

AIN

2_O

P0_

OU

T_T

CA

0_W

O2

PD1_

AIN

1_O

P0_

INP_

TC

A0_

WO

1PD

0_A

IN0_

TC

A0_

WO

0

PD5_

AIN

5_O

P1_

OU

TPD

4_A

IN4_

OP

1_IN

P

PD3_

AIN

3_O

P0_

INN

32K

Hz

Cry

stal

PB0_

USA

RT

3_T

XPB

1_U

SAR

T3_

RX

1kR203

US

ER

LE

D

VC

C_T

AR

GE

T

PF6_DBG3

PB2_SW0_DBG2

PB3_LED0_DBG1

GN

D

USE

R B

UT

TO

N

PB3_

LE

D0_

DB

G1

PB2_

SW0_

DB

G2

PB1_

USA

RT

3_R

XPB

0_U

SAR

T3_

TX

PF4_

USA

RT

2_T

XPF

5_U

SAR

T2_

RX

PF

2P

F3

PC

4P

C5

PC

6P

C7

1kR202

YELLOWLEDSML-D12Y1WT86

2 1

D200

TS604VM1-035CR13

4 2

SW20

0

GN

DV

CC

_ED

GE

GN

DG

ND

GN

DG

ND

UPD

I_D

BG

0P

F6_

DB

G3

J209

PB3_

LE

D0_

DB

G1

PB2_

SW0_

DB

G2

AV

R12

8DB

48

22u

FC

205

VC

C_E

DG

E

GN

D

DBG0

CDC_TXCDC_RX

DBG2

DBG1

DBG3

DBG2

DE

BU

GG

ER

CO

NN

EC

TIO

NS

DBG1

DBG3DBG0

VOFF

ID_SYS

ID_SYS

VOFF

TA

RG

ET

BU

LK

VC

C_T

AR

GE

TR

ESE

T P

ull

VB

US

CD

C R

X3

CD

C T

X4

DB

G1

5

DB

G2

6

0 T

X7

1 R

X8

2 SD

A9

3 S

CL

10

4 M

OSI

11

5 M

ISO

12

6 S

CK

13

7 S

S14

GN

D15

0 (T

X)

16

1 (R

X)

17

218

319

020

GN

D24

DB

G3

54

DB

G0

53

GN

D52

VC

C51

PW

M 3

46

AD

C 2

45

AD

C 1

44

AD

C 0

43

GN

D42

438

434

GN

D33

AD

C 7

50

AD

C 6

49

AD

C 5

48

PW

M 4

47

DE

BU

GG

ER

TAR

GE

T

ID2

VO

FF

55

121

222

323

025

126

227

328

429

530

631

732

535

636

737

539

640

741

RE

SER

VE

D1

VB

US

56

CN

AN

O56

-pin

edg

e co

nnec

tor

J200

J201

J203

J205

J206

J202

J204

PF1_

XT

AL

32K

2PF

0_X

TA

L32

K1

NC

XOUT

XIN

47kR200

AV

R12

8DB

48

UPD

I

GPI

O1

GPI

O0

RE

SET

DB

G0

DB

G1

DB

G2

DB

G3

Deb

ugge

r

CD

C T

X

CD

C R

X

UA

RT

3 R

X

UA

RT

3 T

X

VT

G1

8V -

55

VPB

3

PB

2

PF

6

UP

DI

PB

0

PB

1

Nam

eP

in

PE

3_O

P2_

INN

PE

2_O

P2_

OU

TP

E1_

OP

2_IN

PP

E0

J207

J208

PF

0P

F1

PA5

1

PA6

2

PA7

3

PB0

4

PB1

5

PB2

6

PB3

7

PB4

8

PB5

9

PC0

10

PC1

11

PC2

12

PC313

VDDIO214

GND15

PC416

PC517

PC618

PC719

PD020

PD121

PD222

PD323

PD424

PD5

25

PD6

26

PD7

27

AVDD

28

GND

29

PE0

30

PE1

31

PE2

32

PE3

33

XTAL32K1PF0

34

XTAL32K2PF1

35

PF2

36

PF337

PF438

PF539

PF640

UPDI41

VDD42

GND43

XTALHF1PA044

XTALHF2PA145

PA246

PA347

PA448

AV

R12

8DB

48-I

PT

U20

0

0RR204

GN

D

VC

C_T

AR

GE

T

VDDIO2

GND

J210

J211

82p

C20

48

2pC

203

GN

DG

ND

16M

Hz

Cry

stal

J217

XHFOUT

XHFIN

J214

J213

GN

D

J215

J216

PA0_XTALHF1

PA1_XTALHF2

PA0_

XT

AL

HF

1PA

1_X

TA

LH

F2

PA0

PA1

1 2

J212 N

M

15pF

C20

615

pFC

207

13

24 16

000

MH

zV

XM

7-90

40-1

6M00

0000

0TR

XC

201

GN

D32

768

kHz

VM

K3-

9001

-32K

7680

000T

R

XC

200

CDC_TX

CDC_RX

CD

C_T

XC

DC

_RX

Cry

stal

dat

ashe

et

Ccr

ysta

l = 9

pFm

ax E

SR

= 7

0kO

hmA

ccur

acy

plusmn20p

pm

AV

R48

DB

128

data

shee

tC

xin

= 4

0pF

(ty

pica

l val

ue)

Cxo

ut =

40

pF (

typi

cal v

alue

)C

lasymp1

( (1

40

pF)+

(1

40p

F)

)asymp

20p

FM

axim

um L

oad

= 1

25p

FM

axim

um E

SR =

50k

Ohm

Est

imat

ed C

pcb

= 0

5pF

Est

imat

ed lo

adC

= 2

(C

crys

tal-

Cpa

ra -

Cpc

b)C

= 2

(9p

F -

20

pF -

05

pF)

C =

13

0pF

Sele

cted

in d

esig

n af

ter

veri

fica

tion

C=

82

pF8

2pF

NO

TE

on

UA

RT

CD

C

RX

TX

onth

ehe

ader

deno

tes

the

inpu

tout

put d

irec

tion

of th

e si

gnal

resp

ectiv

e to

its

sou

rce

CD

C T

X is

out

put f

rom

the

DE

BU

GG

ER

C

DC

RX

is in

put t

o th

e D

EB

UG

GE

R

TX

is o

utpu

t fro

m th

e T

AR

GE

T d

evic

eR

X is

inpu

t to

the

TA

RG

ET

dev

ice

NO

TE

on

I2C

No

pull

-ups

on

boar

d P

ull-

ups

shou

ld b

em

ount

ed c

lose

to s

lave

dev

ice(

s)

WA

RN

ING

M

ake

sure

tore

mov

e R

204

befo

reap

plyi

ng p

ower

to J

212

Cry

stal

dat

ashe

et

Ccr

ysta

l = 1

2pF

max

ES

R =

60O

hmA

ccur

acy

plusmn30p

pm

AV

R48

DB

128

data

shee

tC

xin

= 4

0pF

(ty

pica

l val

ue)

Cxo

ut =

40

pF (

typi

cal v

alue

)C

lasymp1

( (1

40

pF)+

(1

40p

F)

)asymp

20p

FM

axim

um L

oad

= 1

25p

FM

axim

um E

SR =

k

Ohm

Est

imat

ed C

pcb

= 0

5pF

Est

imat

ed lo

adC

= 2

(C

crys

tal-

Cpa

ra -

Cpc

b)C

= 2

(12

pF -

20

pF -

05

pF)

C =

19

0pF

Sele

cted

in d

esig

n af

ter

veri

fica

tion

C=

15p

F1

5pF

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 34

11

22

33

44

55

66

77

88

DD

CC

BB

AA

3 of

4

AV

R12

8DB

48 C

uri

osit

y N

ano

2020

-06-

26A

VR

128D

B48

_Cur

iosi

ty_N

ano_

Deb

ugge

rSch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA

Rev

isio

n

Fil

eP

CB

Num

ber

PC

B

Rev

isio

n

Des

ign

ed w

ith

Dra

wn

By

ML

Shee

t Tit

le

Deb

ugge

r

Eng

inee

rA

H

A08

-305

71

Size

A3

A09

-337

22

Page

D

ateA

ltium

com

DE

BU

GG

ER

USB

MIC

RO

-B C

ON

NE

CT

OR

GN

D

USB

D_P

USB

D_N

100n

C10

7

100n

C10

8

1kR

107

VC

C_P

3V3

SRST

STA

TU

S_L

ED

SHIE

LD

VB

US

VC

C_P

3V3

GN

D

TP

100

Test

poin

t Arr

ay

12

34

56

78

910

TC

KT

DO

TM

SV

sup

TD

IG

ND

TR

STSR

STV

Tre

fG

ND

J102

GN

D

47u

F

C10

0

DBG0

DB

G0

21

GR

EE

N L

ED

SML

-P12

MT

T86

R

D10

0

VBUS

1

D-

2

D+

3

GND

5

SHIELD1

6

SHIELD2

7

ID

4

SHIELD3

8

SHIELD4

9 MU

-MB

0142

AB

2-26

9

J105

PAD

33

PA00

1

PA01

2

PA02

3

PA03

4

GND 10VDDANA 9

PA04

5

PA05

6

PA06

7

PA07

8

PA08 11

PA09 12

PA10 13

PA11 14

PA14 15

PA15 16

PA16

17

PA17

18

PA18

19

PA19

20

PA22

21

USB_SOFPA23

22

USB_DMPA24

23

USB_DPPA25

24

PA2725 RESETN26 PA2827 GND28 VDDCORE29 VDDIN30 SWDCLKPA3031 SWDIOPA3132

SAM

D21

E18

A-M

UT

U10

0

VOUT

1

VOUT

2

GND 3

EN

4

VIN

6

NC

5

EP 7

MIC

5528

-33

YM

TU

101

VC

C_P

3V3

GN

D

USB

D_P

USB

D_N

GN

D

1uC

106

VC

C_M

CU

_CO

RE

VC

C_P

3V3

VC

C_P

3V3

22u

FC

101

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

3

VC

C_P

3V3

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

4

VC

C_P

3V3

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

5

VC

C_P

3V3

GN

D

GN

D GN

D

GN

D

VC

C_E

DG

E

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

7

VC

C_P

3V3

GN

DDBG2

DB

G3_

CT

RL

S1_0

_TX

S1_1

_RX

S0_2

_TX

DA

CV

TG

_AD

C

RE

SER

VE

D

S0_3

_CL

K

DBG0_CTRL

CD

C_T

X_C

TR

L

BO

OT

DE

BU

GG

ER

PO

WE

RS

TA

TU

S L

ED

EN

1

BYP

6

VOUT

4

GND

2

VIN

3

NCADJ

5

GND

7

MIC

5353

U10

2

100n

C10

2

GN

D

GN

D

47kR101

27kR104 G

ND

33k

R10

6

22u

F

C10

3 GN

D

1kR

108

J100

VC

C_L

EV

EL

VC

C_R

EG

UL

AT

OR

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

6

VC

C_P

3V3

GN

DDBG1

CD

C_R

X

CD

C_T

X

DBG3

DBG1_CTRL

DE

BU

GG

ER

RE

GU

LA

TO

R

REG_ENABLE

RE

G_E

NA

BL

E

47kR103

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

47kR102

47kR105

SWC

LK

GN

D

47kR100 G

ND

DB

G2

S0_0

_RX

DB

G1_

CT

RL

DB

G0_

CT

RL

DB

G3

OP

EN

DR

AIN

TA

RG

ET

AD

JUST

AB

LE

RE

GU

LA

TO

R

SRST

DE

BU

GG

ER

TE

ST

PO

INT DBG2_CTRL

VO

FF

CD

C_R

X_C

TR

L

47kR109

DB

G1

CD

C_T

X_C

TR

L

CD

C_R

X_C

TR

L

SWC

LK

REG_ADJUST

DBG2_GPIO

DB

G3_

CT

RL

DB

G2_

CT

RL

UP

DI

UPD

I

GPI

O

GPI

O

RE

SET

Sign

al

DB

G0

DB

G1

DB

G2

DB

G3

ICS

PIn

terf

ace

DA

T

CL

K

GPI

O

MC

LR

DB

G3

CD

C T

X

CD

C R

X

UA

RT

RX

UA

RT

TX

UA

RT

RX

UA

RT

TX

TA

RG

ET

TA

RG

ET

1kR

110

VBUS_ADC

1

23

DM

N65

D8L

FB

Q10

1

VC

C-

-

ID_SYS

VOFF

1kR112

VC

C_P

3V3

VT

G_A

DC

DA

C

MIC

9416

3

VIN

B2

VOUT

A1

VIN

A2

EN

C2

GND

C1

VOUT

B1

U10

8

GN

D

ID_S

YS

VT

G_E

N

VTG_EN

VBUS_ADC

SWD

IO

ID_S

YS

TP

101

GN

DSW

DIO

VO

FF

47kR111 G

ND

ID P

IN

MC

3621

3

F10

0

VC

C_V

BU

S

VC

C_V

BU

S

VC

C_V

BU

S

J101

VC

C_T

AR

GE

T

47k

R11

3

CDC_TX

CDC_RX

Prog

ram

min

g co

nnec

tor

for

fact

ory

prog

ram

min

g of

DE

BU

GG

ER

MIC

5528

V

in 2

5V

to 5

5V

Vou

t F

ixed

33

VIm

ax 5

00m

AD

ropo

ut 2

60m

V

500

mA

MIC

5353

V

in 2

6V

to 6

VV

out

12

5V to

51

VIm

ax 5

00m

AD

ropo

ut (

typi

cal)

50m

V

150m

A 1

60m

V

500

mA

Acc

urac

y 2

in

itia

lT

herm

al s

hutd

own

and

curr

ent l

imit

Max

imum

out

put v

olta

ge is

lim

ited

by

the

inpu

t vol

tage

and

the

drop

out v

olta

ge in

the

regu

lato

r(V

max

= V

in -

dro

pout

)

J100

-

Cut

-str

ap u

sed

for

full

sep

arat

ion

of ta

rget

pow

er f

rom

the

leve

l shi

fter

s an

don

-boa

rd r

egul

ator

s-

For

cur

rent

mea

sure

men

ts u

sing

the

on-b

oard

pow

er s

uppl

y th

isst

rap

mus

t be

cut a

nd a

nam

met

er c

onne

cted

acr

oss

- F

or c

urre

nt m

easu

rem

ents

usi

ng a

n ex

tern

al p

ower

sup

ply

this

str

ap c

ould

be

cut f

or m

ore

accu

rate

mea

sure

men

ts L

eaka

ge b

ack

thro

ugh

the

swit

ch is

in th

e m

icro

am

pere

ran

ge

PT

C R

eset

tabl

e fu

se

Hol

d cu

rren

t 5

00m

AT

rip

curr

ent

100

0mA

Adj

usta

ble

outp

ut a

nd li

mit

atio

ns

- T

he D

EB

UG

GE

R c

an a

djus

t the

out

put v

olta

ge o

f th

e re

gula

tor

betw

een

125

V a

nd 5

1V

to th

e ta

rget

-

The

vol

tage

out

put i

s li

mit

ed b

y th

e in

put (

US

B)

whi

ch c

an v

ary

betw

een

440

V to

52

5V-

The

leve

l shi

fter

s ha

ve a

min

imal

vol

tage

leve

l of

165

V a

nd w

ill l

imit

the

min

imum

ope

ratin

g vo

ltage

all

owed

for

the

targ

et to

sti

ll a

llow

com

mun

icat

ion

- T

he M

IC94

163

has

a m

inim

al v

olat

ege

leve

l of

170

V a

nd w

ill l

imit

the

min

imum

vol

tage

del

iver

ed to

the

targ

et

- F

irm

war

e co

nfig

urat

ion

wil

l lim

it th

e vo

ltage

ran

ge to

be

wit

hin

the

the

targ

et s

peci

fica

tion

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 35

82 Assembly DrawingFigure 8-2 AVR128DB48 Curiosity Nano Assembly Drawing Top

+

Cb

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20001 PAC20002 COC200

PAC20101 PAC20102 COC201

PAC20201 PAC20202 COC202 PAC20301

PAC20302 COC203

PAC20401

PAC20402 COC204

PAC20502

PAC20501 COC205

PAC20601

PAC20602 COC206 PAC20701

PAC20702 COC207 PAD10002 PAD10001 COD100

PAD20002

PAD20001 COD200

PAF10002

PAF10001 COF100

PAJ10002 PAJ10001 COJ100

PAJ10101 PAJ10102 COJ101

PAJ10201

PAJ10202

PAJ10203

PAJ10204

PAJ10205

PAJ10206 COJ102

PAJ10506

PAJ10507 PAJ10509

PAJ10508 PAJ105010

PAJ105011 PAJ10505

PAJ10504

PAJ10503

PAJ10502

PAJ10501

PAJ10500

COJ105

PAJ200056 PAJ200053

PAJ200028 PAJ20002 PAJ20001

PAJ200051 PAJ200050 PAJ200052 PAJ200049 PAJ200048 PAJ200047 PAJ200046 PAJ200045 PAJ200044 PAJ200043 PAJ200042 PAJ200041 PAJ200040 PAJ200039 PAJ200038 PAJ200037 PAJ200036 PAJ200035 PAJ200034 PAJ200033 PAJ200032 PAJ200031 PAJ200030 PAJ200029

PAJ20003 PAJ20004 PAJ20005 PAJ20006 PAJ20007 PAJ20008 PAJ20009 PAJ200010 PAJ200011 PAJ200012 PAJ200013 PAJ200014 PAJ200015 PAJ200016 PAJ200017 PAJ200018 PAJ200019 PAJ200020 PAJ200021 PAJ200022 PAJ200023 PAJ200026 PAJ200025 PAJ200024 PAJ200027

PAJ200054 PAJ200055 PAJ20000

COJ200

PAJ20102 PAJ20101 COJ201

PAJ20202 PAJ20201 COJ202

PAJ20302 PAJ20301 COJ203

PAJ20402 PAJ20401 COJ204

PAJ20502 PAJ20501 COJ205

PAJ20602 PAJ20601 COJ206 PAJ20702 PAJ20701 COJ207

PAJ20802 PAJ20801 COJ208

PAJ20902 PAJ20901 COJ209

PAJ21001 PAJ21002 PAJ21005 COJ210

PAJ21102 PAJ21101 PAJ21105 COJ211

PAJ21202 PAJ21201 COJ212

PAJ21301 PAJ21302 PAJ21305 COJ213

PAJ21401 PAJ21402 PAJ21405 COJ214

PAJ21502 PAJ21501 COJ215

PAJ21602 PAJ21601 COJ216 PAJ21702 PAJ21701 COJ217

COLABEL1

PAQ10101 PAQ10102 PAQ10103 PAQ10100

COQ101 PAR10002

PAR10001 COR100 PAR10101 PAR10102 COR101

PAR10202 PAR10201 COR102

PAR10302 PAR10301 COR103

PAR10401 PAR10402 COR104

PAR10502

PAR10501 COR105

PAR10601 PAR10602 COR106

PAR10702 PAR10701 COR107

PAR10801

PAR10802 COR108

PAR10901 PAR10902 COR109

PAR11001 PAR11002 COR110

PAR11101 PAR11102 COR111

PAR11201 PAR11202 COR112

PAR11302 PAR11301 COR113

PAR20001 PAR20002 COR200 PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203 PAR20401 PAR20402 COR204

PASW20003

PASW20004 PASW20002

PASW20001 COSW200

PATP10001 COTP100

PATP10101 COTP101 PAU100033

PAU100032 PAU100031 PAU100030 PAU100029 PAU100028 PAU100027 PAU100026 PAU100025 PAU100024

PAU100023

PAU100022

PAU100021

PAU100020

PAU100019

PAU100018

PAU100017 PAU100016 PAU100015 PAU100014 PAU100013 PAU100012 PAU100011 PAU100010

PAU10001

PAU10002

PAU10003

PAU10004

PAU10005

PAU10006

PAU10007

PAU10008 PAU10009

COU100

PAU10107

PAU10104 PAU10105 PAU10106

PAU10103 PAU10102 PAU10101 PAU10100 COU101 PAU10207

PAU10204 PAU10205

PAU10206

PAU10203 PAU10202

PAU10201

COU102

PAU10306

PAU10305 PAU10304 PAU10303

PAU10302 PAU10301 PAU10300

COU103

PAU10406

PAU10405 PAU10404 PAU10403

PAU10402 PAU10401 PAU10400

COU104

PAU10506

PAU10505 PAU10504 PAU10503

PAU10502 PAU10501 PAU10500

COU105

PAU10606

PAU10605 PAU10604 PAU10603

PAU10602 PAU10601 PAU10600

COU106

PAU10706

PAU10705 PAU10704 PAU10703

PAU10702 PAU10701 PAU10700

COU107

PAU1080A1 PAU1080A2

PAU1080B1 PAU1080B2

PAU1080C1 PAU1080C2 COU108

PAU20001 PAU20002 PAU20003 PAU20004 PAU20005 PAU20006 PAU20007 PAU20008 PAU20009 PAU200010 PAU200011 PAU200012 PAU200013 PAU200014 PAU200015 PAU200016 PAU200017 PAU200018 PAU200019 PAU200020 PAU200021 PAU200022 PAU200023 PAU200024 PAU200025 PAU200026 PAU200027 PAU200028 PAU200029 PAU200030 PAU200031 PAU200032 PAU200033 PAU200034 PAU200035 PAU200036

PAU200037 PAU200038 PAU200039 PAU200040 PAU200041 PAU200042 PAU200043 PAU200044 PAU200045 PAU200046 PAU200047 PAU200048

COU200

PAXC20001

PAXC20002 COXC200

PAXC20101 PAXC20102

PAXC20103 PAXC20104 COXC201

Figure 8-3 AVR128DB48 Curiosity Nano Assembly Drawing Bottom

tcR

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20001 PAC20002 COC200

PAC20101 PAC20102 COC201

PAC20201 PAC20202 COC202 PAC20301

PAC20302 COC203

PAC20401

PAC20402 COC204

PAC20502

PAC20501 COC205

PAC20601

PAC20602 COC206 PAC20701

PAC20702 COC207 PAD10002 PAD10001 COD100

PAD20002

PAD20001 COD200

PAF10002

PAF10001 COF100

PAJ10002 PAJ10001 COJ100

PAJ10101 PAJ10102 COJ101

PAJ10201

PAJ10202

PAJ10203

PAJ10204

PAJ10205

PAJ10206 COJ102

PAJ10506

PAJ10507 PAJ10509

PAJ10508 PAJ105010

PAJ105011 PAJ10505

PAJ10504

PAJ10503

PAJ10502

PAJ10501

PAJ10500

COJ105

PAJ200056 PAJ200053

PAJ200028 PAJ20002 PAJ20001

PAJ200051 PAJ200050 PAJ200052 PAJ200049 PAJ200048 PAJ200047 PAJ200046 PAJ200045 PAJ200044 PAJ200043 PAJ200042 PAJ200041 PAJ200040 PAJ200039 PAJ200038 PAJ200037 PAJ200036 PAJ200035 PAJ200034 PAJ200033 PAJ200032 PAJ200031 PAJ200030 PAJ200029

PAJ20003 PAJ20004 PAJ20005 PAJ20006 PAJ20007 PAJ20008 PAJ20009 PAJ200010 PAJ200011 PAJ200012 PAJ200013 PAJ200014 PAJ200015 PAJ200016 PAJ200017 PAJ200018 PAJ200019 PAJ200020 PAJ200021 PAJ200022 PAJ200023 PAJ200026 PAJ200025 PAJ200024 PAJ200027

PAJ200054 PAJ200055 PAJ20000

COJ200

PAJ20102 PAJ20101 COJ201

PAJ20202 PAJ20201 COJ202

PAJ20302 PAJ20301 COJ203

PAJ20402 PAJ20401 COJ204

PAJ20502 PAJ20501 COJ205

PAJ20602 PAJ20601 COJ206 PAJ20702 PAJ20701 COJ207

PAJ20802 PAJ20801 COJ208

PAJ20902 PAJ20901 COJ209

PAJ21001 PAJ21002 PAJ21005 COJ210

PAJ21102 PAJ21101 PAJ21105 COJ211

PAJ21202 PAJ21201 COJ212

PAJ21301 PAJ21302 PAJ21305 COJ213

PAJ21401 PAJ21402 PAJ21405 COJ214

PAJ21502 PAJ21501 COJ215

PAJ21602 PAJ21601 COJ216 PAJ21702 PAJ21701 COJ217

COLABEL1

PAQ10101 PAQ10102 PAQ10103 PAQ10100

COQ101 PAR10002

PAR10001 COR100 PAR10101 PAR10102 COR101

PAR10202 PAR10201 COR102

PAR10302 PAR10301 COR103

PAR10401 PAR10402 COR104

PAR10502

PAR10501 COR105

PAR10601 PAR10602 COR106

PAR10702 PAR10701 COR107

PAR10801

PAR10802 COR108

PAR10901 PAR10902 COR109

PAR11001 PAR11002 COR110

PAR11101 PAR11102 COR111

PAR11201 PAR11202 COR112

PAR11302 PAR11301 COR113

PAR20001 PAR20002 COR200 PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203 PAR20401 PAR20402 COR204

PASW20003

PASW20004 PASW20002

PASW20001 COSW200

PATP10001 COTP100

PATP10101 COTP101 PAU100033

PAU100032 PAU100031 PAU100030 PAU100029 PAU100028 PAU100027 PAU100026 PAU100025 PAU100024

PAU100023

PAU100022

PAU100021

PAU100020

PAU100019

PAU100018

PAU100017 PAU100016 PAU100015 PAU100014 PAU100013 PAU100012 PAU100011 PAU100010

PAU10001

PAU10002

PAU10003

PAU10004

PAU10005

PAU10006

PAU10007

PAU10008 PAU10009

COU100

PAU10107

PAU10104 PAU10105 PAU10106

PAU10103 PAU10102 PAU10101 PAU10100 COU101 PAU10207

PAU10204 PAU10205

PAU10206

PAU10203 PAU10202

PAU10201

COU102

PAU10306

PAU10305 PAU10304 PAU10303

PAU10302 PAU10301 PAU10300

COU103

PAU10406

PAU10405 PAU10404 PAU10403

PAU10402 PAU10401 PAU10400

COU104

PAU10506

PAU10505 PAU10504 PAU10503

PAU10502 PAU10501 PAU10500

COU105

PAU10606

PAU10605 PAU10604 PAU10603

PAU10602 PAU10601 PAU10600

COU106

PAU10706

PAU10705 PAU10704 PAU10703

PAU10702 PAU10701 PAU10700

COU107

PAU1080A1 PAU1080A2

PAU1080B1 PAU1080B2

PAU1080C1 PAU1080C2 COU108

PAU20001 PAU20002 PAU20003 PAU20004 PAU20005 PAU20006 PAU20007 PAU20008 PAU20009 PAU200010 PAU200011 PAU200012 PAU200013 PAU200014 PAU200015 PAU200016 PAU200017 PAU200018 PAU200019 PAU200020 PAU200021 PAU200022 PAU200023 PAU200024 PAU200025 PAU200026 PAU200027 PAU200028 PAU200029 PAU200030 PAU200031 PAU200032 PAU200033 PAU200034 PAU200035 PAU200036

PAU200037 PAU200038 PAU200039 PAU200040 PAU200041 PAU200042 PAU200043 PAU200044 PAU200045 PAU200046 PAU200047 PAU200048

COU200

PAXC20001

PAXC20002 COXC200

PAXC20101 PAXC20102

PAXC20103 PAXC20104 COXC201

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 36

83 Curiosity Nano Base for Click boardstrade

Figure 8-4 AVR128DB48 Curiosity Nano Pinout Mapping

US

B

DE

BU

GG

ER

AV

R1

28

DB

48

SW

0

LE

D0

PS

LE

DNC

NC

ID

ID

CDC RX

CDCRX

USART3 TX

PB0

CDC TX

CDCTX

USART3 RX

PB1

DBG1

DBG1

PB3

LED0

DBG2

DBG2

PB2

SW0

PF4

PF4

USART2 TX

PF5

PF5

USART2 RX

PA2

PA2

TWI0 SDA

PA3

PA3

TWI0 SCL

PA4

PA4

SPI0 MOSI

PA5

PA5

SPI0 MISO

PA6

PA6

SPI0 SCK

PA7

PA7

SPI0 SS

GND

GND

PB0

PB0

USART3 TX

CDC RX

PB1

PB1

USART3 RX

CDC TX

PF2

PF2

PF3

PF3

PC0

PC0

PC1

PC1

PC2

PC2

PC3

PC3

GND

GND

(PA0)

(PA0)

XTALHF1

(PA1)

(PA1)

XTALHF2

PB2

PB2

SW0

PB3

PB3

LED0

VBUS

VBUS

VOFF

VOFF

DBG3

DBG3

PF6

DBG0

DBG0

UPDI

GND

GND

VTG

VTG

PD6

PD6

AIN6

PD3

PD3

AIN3

OP0 INN

PD2

PD2

AIN2

OP0 OUT

TCA0 WO2

PD1

PD1

AIN1

OP0 INP

TCA0 WO1

PD0

PD0

AIN0

TCA0 WO0

PD7

PD7

AIN7

OP1 INN

PD5

PD5

AIN5

OP1 OUT

PD4

PD4

AIN4

OP1 INP

GND

GND

PE3

PE3

OP2 INN

PE2

PE2

OP2 OUT

PE1

PE1

OP2 INP

PE0

PE0

PC7

PC7

PC6

PC6

PC5

PC5

PC4

PC4

GND

GND

PB5

PB5

PB4

PB4

(PF1)

(PF1)

XTAL32K2

(PF0)

(PF0)

XTAL32K1

DE

BU

GG

ER

AV

R1

28

DB

48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

MVIO

OPAMP

Shared pin

AV

R1

28

DB

48

Cu

rio

sity

Na

no

1

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

2

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

3

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

Xp

lain

ed

Pro

Ext

en

sio

nE

XT

11

2

19

20

Cu

rio

sity

Na

no

Ba

sefo

r cl

ick

bo

ard

sT

M

PD4

PD0

PD6

PD3

PA7

PF5

PA6

PF4

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

PD5

PD1

PF3

PF2

PE2

PB1

PA6

PB0

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

PD7

PD2

PE1

PE0

PE3

PF5

PA6

PF4

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

ID

GND

PD5

PD7

PF3

PE1

PD1

PD2

PF2

PE3

PA2

PA3

PB1

PB0

PE2

PA4

PA5

PA6

GND

+33V

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 37

84 Disconnecting the On-board DebuggerThe on-board debugger and level shifters can be completely disconnected from the AVR128DB48

The block diagram below shows all connections between the debugger and the AVR128DB48 The rounded boxesrepresent connections to the board edge The signal names shown are also printed in silkscreen on the bottom sideof the board

To disconnect the debugger cut the straps shown in Figure 8-6

Attention  Cutting the GPIO straps to the on-board debugger will disable the virtual serial portprogramming debugging and data streaming Cutting the power supply strap will disconnect the on-boardpower supply

Tip  Any connection that is cut can be reconnected using solder Alternatively a 0Ω 0402 resistor can bemounted

Tip  When the debugger is disconnected an external debugger can be connected to holes shown in Figure 8-6 Details about connecting an external debugger are described in 46 Connecting ExternalDebuggers

Figure 8-5  On-Board Debugger Connections Block Diagram

DE

BU

GG

ER

TARGETLevel-Shift

PA04PA06PA07PA08PA16PA00PA01

USB

DIR x 5

VCC_P3V3

VBUS

VC

C_L

EV

EL

VC

C_T

AR

GE

TDBG0DBG1DBG2DBG3CDC TXCDC RX

CDC RX

CDC TX

DBG3

DBG2

DBG1

DBG0

GPIO straps

LDO

VOFF

LDO

VBUS VTG

VCC_EDGE

Power Supply strap Target Power strap

UART RXUART TX

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 38

Figure 8-6 On-Board Debugger Connection Cut Straps

GPIO straps (bottom side) Power Supply strap (top side)

85 Getting Started with IARIAR Embedded Workbenchreg for AVRreg is a proprietary high-efficiency compiler not based on GCC Programming anddebugging of AVR128DB48 Curiosity Nano is supported in IARtrade Embedded Workbench for AVR using the Atmel-ICEinterface Some initial settings must be set up in the project to get the programming and debugging to work

The following steps will explain how to get your project ready for programming and debugging

1 Make sure you have opened the project you want to configure Open the OPTIONS dialog for the project2 In the category General Options select the Target tab Select the device for the project or if not listed the

core of the device as shown in Figure 8-73 In the category Debugger select the Setup tab Select Atmel-ICE as the driver as shown in Figure 8-84 In the category Debugger gt Atmel-ICE select the Atmel-ICE 1 tab Select UPDI as the interface and

optionally select the UPDI frequency as shown in Figure 8-9

Info  If the selection of Debug Port (mentioned in step 4) is grayed out the interface is preselected andthe user can skip this configuration step

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 39

Figure 8-7 Select Target Device

Figure 8-8 Select Debugger

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 40

Figure 8-9 Configure Interface

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 41

The Microchip Website

Microchip provides online support via our website at wwwmicrochipcom This website is used to make files andinformation easily available to customers Some of the content available includes

bull Product Support ndash Data sheets and errata application notes and sample programs design resources userrsquosguides and hardware support documents latest software releases and archived software

bull General Technical Support ndash Frequently Asked Questions (FAQs) technical support requests onlinediscussion groups Microchip design partner program member listing

bull Business of Microchip ndash Product selector and ordering guides latest Microchip press releases listing ofseminars and events listings of Microchip sales offices distributors and factory representatives

Product Change Notification Service

Microchiprsquos product change notification service helps keep customers current on Microchip products Subscribers willreceive email notification whenever there are changes updates revisions or errata related to a specified productfamily or development tool of interest

To register go to wwwmicrochipcompcn and follow the registration instructions

Customer Support

Users of Microchip products can receive assistance through several channels

bull Distributor or Representativebull Local Sales Officebull Embedded Solutions Engineer (ESE)bull Technical Support

Customers should contact their distributor representative or ESE for support Local sales offices are also available tohelp customers A listing of sales offices and locations is included in this document

Technical support is available through the website at wwwmicrochipcomsupport

Microchip Devices Code Protection Feature

Note the following details of the code protection feature on Microchip devices

bull Microchip products meet the specifications contained in their particular Microchip Data Sheetbull Microchip believes that its family of products is secure when used in the intended manner and under normal

conditionsbull There are dishonest and possibly illegal methods being used in attempts to breach the code protection features

of the Microchip devices We believe that these methods require using the Microchip products in a manneroutside the operating specifications contained in Microchiprsquos Data Sheets Attempts to breach these codeprotection features most likely cannot be accomplished without violating Microchiprsquos intellectual property rights

bull Microchip is willing to work with any customer who is concerned about the integrity of its codebull Neither Microchip nor any other semiconductor manufacturer can guarantee the security of its code Code

protection does not mean that we are guaranteeing the product is ldquounbreakablerdquo Code protection is constantlyevolving We at Microchip are committed to continuously improving the code protection features of our productsAttempts to break Microchiprsquos code protection feature may be a violation of the Digital Millennium Copyright ActIf such acts allow unauthorized access to your software or other copyrighted work you may have a right to suefor relief under that Act

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 42

Legal Notice

Information contained in this publication is provided for the sole purpose of designing with and using Microchipproducts Information regarding device applications and the like is provided only for your convenience and may besuperseded by updates It is your responsibility to ensure that your application meets with your specifications

THIS INFORMATION IS PROVIDED BY MICROCHIP ldquoAS ISrdquo MICROCHIP MAKES NO REPRESENTATIONS ORWARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED WRITTEN OR ORAL STATUTORY OROTHERWISE RELATED TO THE INFORMATION INCLUDING BUT NOT LIMITED TO ANY IMPLIEDWARRANTIES OF NON-INFRINGEMENT MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSEOR WARRANTIES RELATED TO ITS CONDITION QUALITY OR PERFORMANCE

IN NO EVENT WILL MICROCHIP BE LIABLE FOR ANY INDIRECT SPECIAL PUNITIVE INCIDENTAL ORCONSEQUENTIAL LOSS DAMAGE COST OR EXPENSE OF ANY KIND WHATSOEVER RELATED TO THEINFORMATION OR ITS USE HOWEVER CAUSED EVEN IF MICROCHIP HAS BEEN ADVISED OF THEPOSSIBILITY OR THE DAMAGES ARE FORESEEABLE TO THE FULLEST EXTENT ALLOWED BY LAWMICROCHIPS TOTAL LIABILITY ON ALL CLAIMS IN ANY WAY RELATED TO THE INFORMATION OR ITS USEWILL NOT EXCEED THE AMOUNT OF FEES IF ANY THAT YOU HAVE PAID DIRECTLY TO MICROCHIP FORTHE INFORMATION Use of Microchip devices in life support andor safety applications is entirely at the buyerrsquos riskand the buyer agrees to defend indemnify and hold harmless Microchip from any and all damages claims suits orexpenses resulting from such use No licenses are conveyed implicitly or otherwise under any Microchip intellectualproperty rights unless otherwise stated

Trademarks

The Microchip name and logo the Microchip logo Adaptec AnyRate AVR AVR logo AVR Freaks BesTimeBitCloud chipKIT chipKIT logo CryptoMemory CryptoRF dsPIC FlashFlex flexPWR HELDO IGLOO JukeBloxKeeLoq Kleer LANCheck LinkMD maXStylus maXTouch MediaLB megaAVR Microsemi Microsemi logo MOSTMOST logo MPLAB OptoLyzer PackeTime PIC picoPower PICSTART PIC32 logo PolarFire Prochip DesignerQTouch SAM-BA SenGenuity SpyNIC SST SST Logo SuperFlash Symmetricom SyncServer TachyonTempTrackr TimeSource tinyAVR UNIO Vectron and XMEGA are registered trademarks of Microchip TechnologyIncorporated in the USA and other countries

APT ClockWorks The Embedded Control Solutions Company EtherSynch FlashTec Hyper Speed ControlHyperLight Load IntelliMOS Libero motorBench mTouch Powermite 3 Precision Edge ProASIC ProASIC PlusProASIC Plus logo Quiet-Wire SmartFusion SyncWorld Temux TimeCesium TimeHub TimePictra TimeProviderVite WinPath and ZL are registered trademarks of Microchip Technology Incorporated in the USA

Adjacent Key Suppression AKS Analog-for-the-Digital Age Any Capacitor AnyIn AnyOut BlueSky BodyComCodeGuard CryptoAuthentication CryptoAutomotive CryptoCompanion CryptoController dsPICDEMdsPICDEMnet Dynamic Average Matching DAM ECAN EtherGREEN In-Circuit Serial Programming ICSPINICnet Inter-Chip Connectivity JitterBlocker KleerNet KleerNet logo memBrain Mindi MiWi MPASM MPFMPLAB Certified logo MPLIB MPLINK MultiTRAK NetDetach Omniscient Code Generation PICDEMPICDEMnet PICkit PICtail PowerSmart PureSilicon QMatrix REAL ICE Ripple Blocker SAM-ICE Serial QuadIO SMART-IS SQI SuperSwitcher SuperSwitcher II Total Endurance TSHARC USBCheck VariSenseViewSpan WiperLock Wireless DNA and ZENA are trademarks of Microchip Technology Incorporated in the USAand other countries

SQTP is a service mark of Microchip Technology Incorporated in the USA

The Adaptec logo Frequency on Demand Silicon Storage Technology and Symmcom are registered trademarks ofMicrochip Technology Inc in other countries

GestIC is a registered trademark of Microchip Technology Germany II GmbH amp Co KG a subsidiary of MicrochipTechnology Inc in other countries

All other trademarks mentioned herein are property of their respective companiescopy 2020 Microchip Technology Incorporated Printed in the USA All Rights Reserved

ISBN 978-1-5224-6667-3

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 43

Quality Management SystemFor information regarding Microchiprsquos Quality Management Systems please visit wwwmicrochipcomquality

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 44

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupportwwwmicrochipcomsupportWeb AddresswwwmicrochipcomAtlantaDuluth GATel 678-957-9614Fax 678-957-1455Austin TXTel 512-257-3370BostonWestborough MATel 774-760-0087Fax 774-760-0088ChicagoItasca ILTel 630-285-0071Fax 630-285-0075DallasAddison TXTel 972-818-7423Fax 972-818-2924DetroitNovi MITel 248-848-4000Houston TXTel 281-894-5983IndianapolisNoblesville INTel 317-773-8323Fax 317-773-5453Tel 317-536-2380Los AngelesMission Viejo CATel 949-462-9523Fax 949-462-9608Tel 951-273-7800Raleigh NCTel 919-844-7510New York NYTel 631-435-6000San Jose CATel 408-735-9110Tel 408-436-4270Canada - TorontoTel 905-695-1980Fax 905-695-2078

Australia - SydneyTel 61-2-9868-6733China - BeijingTel 86-10-8569-7000China - ChengduTel 86-28-8665-5511China - ChongqingTel 86-23-8980-9588China - DongguanTel 86-769-8702-9880China - GuangzhouTel 86-20-8755-8029China - HangzhouTel 86-571-8792-8115China - Hong Kong SARTel 852-2943-5100China - NanjingTel 86-25-8473-2460China - QingdaoTel 86-532-8502-7355China - ShanghaiTel 86-21-3326-8000China - ShenyangTel 86-24-2334-2829China - ShenzhenTel 86-755-8864-2200China - SuzhouTel 86-186-6233-1526China - WuhanTel 86-27-5980-5300China - XianTel 86-29-8833-7252China - XiamenTel 86-592-2388138China - ZhuhaiTel 86-756-3210040

India - BangaloreTel 91-80-3090-4444India - New DelhiTel 91-11-4160-8631India - PuneTel 91-20-4121-0141Japan - OsakaTel 81-6-6152-7160Japan - TokyoTel 81-3-6880- 3770Korea - DaeguTel 82-53-744-4301Korea - SeoulTel 82-2-554-7200Malaysia - Kuala LumpurTel 60-3-7651-7906Malaysia - PenangTel 60-4-227-8870Philippines - ManilaTel 63-2-634-9065SingaporeTel 65-6334-8870Taiwan - Hsin ChuTel 886-3-577-8366Taiwan - KaohsiungTel 886-7-213-7830Taiwan - TaipeiTel 886-2-2508-8600Thailand - BangkokTel 66-2-694-1351Vietnam - Ho Chi MinhTel 84-28-5448-2100

Austria - WelsTel 43-7242-2244-39Fax 43-7242-2244-393Denmark - CopenhagenTel 45-4485-5910Fax 45-4485-2829Finland - EspooTel 358-9-4520-820France - ParisTel 33-1-69-53-63-20Fax 33-1-69-30-90-79Germany - GarchingTel 49-8931-9700Germany - HaanTel 49-2129-3766400Germany - HeilbronnTel 49-7131-72400Germany - KarlsruheTel 49-721-625370Germany - MunichTel 49-89-627-144-0Fax 49-89-627-144-44Germany - RosenheimTel 49-8031-354-560Israel - RarsquoananaTel 972-9-744-7705Italy - MilanTel 39-0331-742611Fax 39-0331-466781Italy - PadovaTel 39-049-7625286Netherlands - DrunenTel 31-416-690399Fax 31-416-690340Norway - TrondheimTel 47-72884388Poland - WarsawTel 48-22-3325737Romania - BucharestTel 40-21-407-87-50Spain - MadridTel 34-91-708-08-90Fax 34-91-708-08-91Sweden - GothenbergTel 46-31-704-60-40Sweden - StockholmTel 46-8-5090-4654UK - WokinghamTel 44-118-921-5800Fax 44-118-921-5820

Worldwide Sales and Service

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 45

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Board Overview
      • 2 Getting Started
        • 21 Quick Start
          • 211 Driver Installation
          • 212 Kit Window
          • 213 MPLABreg X IDE Device Family Packs
          • 214 Atmel Studio 7 Device Family Pack
            • 22 Design Documentation and Relevant Links
              • 3 Preprogrammed Application
              • 4 Curiosity Nano
                • 41 On-Board Debugger Overview
                  • 411 Debugger
                  • 412 Virtual Serial Port (CDC)
                    • 4121 Overview
                    • 4122 Operating System Support
                    • 4123 Limitations
                    • 4124 Signaling
                    • 4125 Advanced Use
                      • 413 Mass Storage Device
                        • 4131 Mass Storage Device Implementation
                        • 4132 Limitations of Drag-and-Drop Programming
                        • 4133 Special Commands
                          • 414 Data Gateway Interface (DGI)
                            • 4141 Debug GPIO
                            • 4142 Timestamping
                                • 42 Curiosity Nano Standard Pinout
                                • 43 Power Supply
                                  • 431 Target Regulator
                                  • 432 External Supply
                                  • 433 VBUS Output Pin
                                  • 434 Power Supply Exceptions
                                    • 44 Low-Power Measurement
                                    • 45 Programming External Microcontrollers
                                      • 451 Supported Devices
                                      • 452 Software Configuration
                                      • 453 Hardware Modifications
                                      • 454 Connecting to External Microcontrollers
                                        • 46 Connecting External Debuggers
                                          • 5 Hardware User Guide
                                            • 51 Connectors
                                              • 511 AVR128DB48 Curiosity Nano Pinout
                                              • 512 Using Pin Headers
                                              • 513 Multi-Voltage IO
                                              • 514 Operational Amplifiers
                                                • 52 Peripherals
                                                  • 521 LED
                                                  • 522 Mechanical Switch
                                                  • 523 32768 kHz Crystal
                                                  • 524 1600 MHz Crystal
                                                  • 525 On-Board Debugger Implementation
                                                    • 5251 On-Board Debugger Connections
                                                      • 6 Hardware Revision History and Known Issues
                                                        • 61 Identifying Product ID and Revision
                                                        • 62 Revision 3
                                                        • 63 Revision 2
                                                          • 7 Document Revision History
                                                          • 8 Appendix
                                                            • 81 Schematic
                                                            • 82 Assembly Drawing
                                                            • 83 Curiosity Nano Base for Click boardstrade
                                                            • 84 Disconnecting the On-board Debugger
                                                            • 85 Getting Started with IAR
                                                              • The Microchip Website
                                                              • Product Change Notification Service
                                                              • Customer Support
                                                              • Microchip Devices Code Protection Feature
                                                              • Legal Notice
                                                              • Trademarks
                                                              • Quality Management System
                                                              • Worldwide Sales and Service
Page 9: AVR128DB48 Curiosity Nano Hardware User Guideww1.microchip.com/downloads/en/DeviceDoc/AVR128DB48-Curiosit… · 4. Curiosity Nano Curiosity Nano is an evaluation platform of small

Remember  Keep the debuggerrsquos firmware up-to-date Firmware upgrades are done automatically whenusing MPLABreg X IDE or Atmel Studio 7

412 Virtual Serial Port (CDC)The virtual serial port (CDC) is a general purpose serial bridge between a host PC and a target device

4121 OverviewThe on-board debugger implements a composite USB device that includes a standard Communications Device Class(CDC) interface which appears on the host as a virtual serial port The CDC can be used to stream arbitrary data inboth directions between the host computer and the target All characters sent through the virtual serial port on thehost computer will be transmitted as UART on the debuggerrsquos CDC TX pin and UART characters captured on thedebuggerrsquos CDC RX pin will be returned to the host computer through the virtual serial port

Figure 4-1 CDC Connection

Target MCU

UART TX

UART RX

Debugger

USBCDC RX

CDC TX

PCTerminalSoftware

TargetReceive

TargetSend

TerminalReceive

TerminalSend

Info  As shown in Figure 4-1 the debuggerrsquos CDC TX pin is connected to a UART RX pin on the targetfor receiving characters from the host computer Similarly the debuggerrsquos CDC RX pin is connected to aUART TX pin on the target for transmitting characters to the host computer

4122 Operating System SupportOn Windows machines the CDC will enumerate as Curiosity Virtual COM Port and appear in the Ports section of theWindows Device Manager The COM port number can also be found there

Info  On older Windows systems a USB driver is required for CDC This driver is included in installationsof both MPLABreg X IDE and Atmel Studio 7

On Linux machines the CDC will enumerate and appear as devttyACM

Info  tty devices belong to the ldquodialoutrdquo group in Linux so it may be necessary to become a member ofthat group to have permissions to access the CDC

On MAC machines the CDC will enumerate and appear as devttyusbmodem Depending on which terminalprogram is used it will appear in the available list of modems as usbmodem

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 9

Info  For all operating systems Be sure to use a terminal emulator that supports DTR signaling See 4124 Signaling

4123 LimitationsNot all UART features are implemented in the on-board debugger CDC The constraints are outlined here

bull Baud rate Must be in the range of 1200 bps to 500 kbps Any baud rate outside this range will be set to theclosest limit without warning Baud rate can be changed on-the-fly

bull Character format Only 8-bit characters are supportedbull Parity Can be odd even or nonebull Hardware flow control Not supportedbull Stop bits One or two bits are supported

4124 SignalingDuring USB enumeration the host OS will start both communication and data pipes of the CDC interface At thispoint it is possible to set and read back the baud rate and other UART parameters of the CDC but data sending andreceiving will not be enabled

When a terminal connects on the host it must assert the DTR signal As this is a virtual control signal implementedon the USB interface it is not physically present on the board Asserting the DTR signal from the host will indicate tothe on-board debugger that a CDC session is active The debugger will then enable its level shifters (if available) andstart the CDC data send and receive mechanisms

Deasserting DTR in debugger firmware version 120 or earlier has the following behaviorbull Debugger UART receiver is disabled so no further data will be transferred to the host computerbull Debugger UART transmitter will continue to send data that is queued for sending but no new data is accepted

from the host computerbull Level shifters (if available) are not disabled so the debugger CDC TX line remains driven

Deasserting DTR in debugger firmware version 121 or later has the following behaviorbull Debugger UART receiver is disabled so no further data will be transferred to the host computerbull Debugger UART transmitter will continue to send data that is queued for sending but no new data is accepted

from the host computerbull Once the ongoing transmission is complete level shifters (if available) are disabled so the debugger CDC TX

line will become high-impedance

Remember  Set up the terminal emulator to assert the DTR signal Without the signal the on-boarddebugger will not send or receive any data through its UART

Tip  The on-board debuggerrsquos CDC TX pin will not be driven until the CDC interface is enabled by thehost computer Also there are no external pull-up resistors on the CDC lines connecting the debugger andthe target which means that during power-up these lines are floating To avoid any glitches resulting inunpredictable behavior like framing errors the target device should enable the internal pull-up resistor onthe pin connected to the debuggerrsquos CDC TX pin

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 10

4125 Advanced Use

CDC Override ModeIn normal operation the on-board debugger is a true UART bridge between the host and the device However incertain use cases the on-board debugger can override the basic operating mode and use the CDC TX and RX pinsfor other purposes

Dropping a text file into the on-board debuggerrsquos mass storage drive can be used to send characters out of thedebuggerrsquos CDC TX pin The filename and extension are trivial but the text file must start with the charactersCMDSEND_UART=

Debugger firmware version 120 or earlier has the following limitationsbull The maximum message length is 50 characters ndash all remaining data in the frame are ignoredbull The default baud rate used in this mode is 9600 bps but if the CDC is already active or has been configured

the previously used baud rate still applies

Debugger firmware version 121 and later has the following limitationsfeaturesbull The maximum message length may vary depending on the MSCSCSI layer timeouts on the host computer

andor operating system A single SCSI frame of 512 bytes (498 characters of payload) is guaranteed and filesof up to 4 KB will work on most systems The transfer will complete on the first NULL character encountered inthe file

bull The baud rate used is always 9600 bps for the default commandCMDSEND_UART=

The CDC Override Mode should not be used simultaneously with data transfer over CDCterminal If a CDCterminal session is active at the time a file is received via CDC Override Mode it will be suspended for theduration of the operation and resumed once complete

bull Additional commands are supported with explicit baud ratesCMDSEND_9600=

CMDSEND_115200=

CMDSEND_460800=

USB-Level Framing ConsiderationsSending data from the host to the CDC can be done byte-wise or in blocks which will be chunked into 64-byte USBframes Each such frame will be queued up for sending to the debuggerrsquos CDC TX pin Transferring a small amountof data per frame can be inefficient particularly at low baud rates as the on-board debugger buffers frames and notbytes A maximum of four 64-byte frames can be active at any time The on-board debugger will throttle the incomingframes accordingly Sending full 64-byte frames containing data is the most efficient method

When receiving data on the debuggerrsquos CDC RX pin the on-board debugger will queue up the incoming bytes into64-byte frames which are sent to the USB queue for transmission to the host when they are full Incomplete framesare also pushed to the USB queue at approximately 100 ms intervals triggered by USB start-of-frame tokens Up toeight 64-byte frames can be active at any time

If the host (or the software running on it) fails to receive data fast enough an overrun will occur When this happensthe last-filled buffer frame will be recycled instead of being sent to the USB queue and a full frame of data will belost To prevent this occurrence the user must ensure that the CDC data pipe is being read continuously or theincoming data rate must be reduced

413 Mass Storage DeviceThe on-board debugger includes a simple Mass Storage Device implementation which is accessible for readwriteoperations via the host operating system to which it is connected

It providesbull Read access to basic text and HTML files for detailed kit information and support

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 11

bull Write access for programming Intelreg HEX formatted files into the target devicersquos memorybull Write access for simple text files for utility purposes

4131 Mass Storage Device ImplementationThe on-board debugger implements a highly optimized variant of the FAT12 file system that has several limitationspartly due to the nature of FAT12 itself and optimizations made to fulfill its purpose for its embedded application

The Curiosity Nano USB device is USB Chapter 9-compliant as a mass storage device but does not in any way fulfillthe expectations of a general purpose mass storage device This behavior is intentional

When using the Windows operating system the on-board debugger enumerates as a Curiosity Nano USB Devicethat can be found in the disk drives section of the device manager The CURIOSITY drive appears in the file managerand claims the next available drive letter in the system

The CURIOSITY drive contains approximately one MB of free space This does not reflect the size of the targetdevicersquos Flash in any way When programming an Intelreg HEX file the binary data are encoded in ASCII withmetadata providing a large overhead so one MB is a trivially chosen value for disk size

It is not possible to format the CURIOSITY drive When programming a file to the target the filename may appear inthe disk directory listing This is merely the operating systemrsquos view of the directory which in reality has not beenupdated It is not possible to read out the file contents Removing and replugging the board will return the file systemto its original state but the target will still contain the application that has been previously programmed

To erase the target device copy a text file starting with ldquoCMDERASErdquo onto the disk

By default the CURIOSITY drive contains several read-only files for generating icons as well as reporting status andlinking to further information

bull AUTORUNICO ndash icon file for the Microchip logobull AUTORUNINF ndash system file required for Windows Explorer to show the icon filebull KIT-INFOHTM ndash redirect to the development board websitebull KIT-INFOTXT ndash a text file containing details about the boardrsquos debugger firmware version board name USB

serial number device and drag-and-drop supportbull STATUSTXT ndash a text file containing the programming status of the board

Info  STATUSTXT is dynamically updated by the on-board debugger The contents may be cached bythe OS and therefore do not reflect the correct status

4132 Limitations of Drag-and-Drop Programming

Lock BitsLock bits included in the hex file will be ignored when using drag-and-drop programming To program lock bits useMPLABreg X IDE or Atmel Studio 7

Enabling CRC Check in FusesIt is not advisable to enable the CRC check in the target devicersquos fuses when using drag-and-drop programming Thisis because a subsequent chip erase (which does not affect fuse bits) will effect a CRC mismatch and the applicationwill fail to boot To recover a target from this state a chip erase must be done using MPLABreg X IDE orAtmel Studio 7 which will automatically clear the CRC fuses after erasing

4133 Special CommandsSeveral utility commands are supported by copying text files to the mass storage disk The filename or extension isirrelevant ndash the command handler reacts to content only

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 12

Table 4-2 Special File Commands

Command Content Description

CMDERASE Executes a chip erase of the target

CMDSEND_UART= Sends a string of characters to the CDC UART See ldquoCDCOverride Moderdquo

CMDSEND_9600=CMDSEND_115200=CMDSEND_460800=

Sends a string of characters to the CDC UART at the baud ratespecified Note that only the baud rates explicitly specified hereare supported See ldquoCDC Override Moderdquo (Debugger firmwarev121 or newer)

CMDRESET Resets the target device by entering Programming mode andthen exiting Programming mode immediately thereafter Exacttiming can vary according to the programming interface of thetarget device (Debugger firmware v116 or newer)

CMDPOWERTOGGLE Powers down the target and restores power after a 100 msdelay If external power is provided this has no effect(Debugger firmware v116 or newer)

CMD0V Powers down the target device by disabling the target supplyregulator If external power is provided this has no effect(Debugger firmware v116 or newer)

CMD1V8 Sets the target voltage to 18V If external power is providedthis has no effect (Debugger firmware v121 or newer)

CMD3V3 Sets the target voltage to 33V If external power is providedthis has no effect (Debugger firmware v116 or newer)

CMD5V0 Sets the target voltage to 50V If external power is providedthis has no effect (Debugger firmware v116 or newer)

Info  The commands listed here are triggered by the content being sent to the mass storage emulateddisk and no feedback is provided in the case of either success or failure

414 Data Gateway Interface (DGI)Data Gateway Interface (DGI) is a USB interface for transporting raw and timestamped data between on-boarddebuggers and host computer-based visualization tools MPLAB Data Visualizer is used on the host computer todisplay debug GPIO data It is available as a plug-in for MPLABreg X IDE or a stand-alone application that can be usedin parallel with MPLABreg X IDE or Atmel Studio 7

Although DGI encompasses several physical data interfaces the AVR128DB48 Curiosity Nano implementationincludes logic analyzer channels

bull Two debug GPIO channels (also known as DGI GPIO)

4141 Debug GPIODebug GPIO channels are timestamped digital signal lines connecting the target application to a host computervisualization application They are typically used to plot the occurrence of low-frequency events on a time-axis ndash forexample when certain application state transitions occur

The figure below shows the monitoring of the digital state of a mechanical switch connected to a debug GPIO inMPLAB Data Visualizer

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 13

Figure 4-2 Monitoring Debug GPIO with MPLABreg Data Visualizer

Debug GPIO channels are timestamped so the resolution of DGI GPIO events is determined by the resolution of theDGI timestamp module

Important  Although bursts of higher-frequency signals can be captured the useful frequency range ofsignals for which debug GPIO can be used is up to about 2 kHz Attempting to capture signals above thisfrequency will result in data saturation and overflow which may cause the DGI session to be aborted

4142 TimestampingDGI sources are timestamped as they are captured by the debugger The timestamp counter implemented in theCuriosity Nano debugger increments at 2 MHz frequency providing a timestamp resolution of a half microsecond

42 Curiosity Nano Standard PinoutThe 12 edge connections closest to the USB connector on Curiosity Nano boards have a standardized pinout Theprogramdebug pins have different functions depending on the target programming interface as shown in the tableand figure below

Table 4-3 Curiosity Nano Standard Pinout

Debugger Signal Target MCU Description

ID mdash ID line for extensions

CDC TX UART RX USB CDC TX line

CDC RX UART TX USB CDC RX line

DBG0 UPDI Debug data line

DBG1 GPIO1 debug GPIO1

DBG2 GPIO0 debug GPIO0

DBG3 RESET Reset line

NC mdash No connect

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 14

continuedDebugger Signal Target MCU Description

VBUS mdash VBUS voltage for external use

VOFF mdash Voltage Off input Disables the target regulator andtarget voltage when pulled low

VTG mdash Target voltage

GND mdash Common ground

Figure 4-3 Curiosity Nano Standard Pinout

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

43 Power SupplyThe board is powered through the USB port and contains two LDO regulators one to generate 33V for the on-boarddebugger and an adjustable LDO regulator for the target microcontroller AVR128DB48 and its peripherals Thevoltage from the USB connector can vary between 44V to 525V (according to the USB specification) and will limitthe maximum voltage to the target The figure below shows the entire power supply system on AVR128DB48Curiosity Nano

Figure 4-4 Power Supply Block Diagram

USBTarget MCU

Power source

Cut strap

Power consumer P3V3DEBUGGER

Power converter

DEBUGGERRegulator

VUSB

TargetRegulator

Power Supply strap

Adjust

Level shifter

VLVLVREG

IO IO GPIOstraps

IO

OnOffMeasure OnOff

ID systemVOFF

PTC Fuse

Power protection

VBUS

Target Power strap

VTG

431 Target RegulatorThe target voltage regulator is a MIC5353 variable output LDO The on-board debugger can adjust the voltage outputsupplied to the board target section by manipulating the MIC5353rsquos feedback voltage The hardware implementation

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 15

is limited to an approximate voltage range from 17V to 51V Additional output voltage limits are configured in thedebugger firmware to ensure that the output voltage never exceeds the hardware limits of the AVR128DB48microcontroller The voltage limits configured in the on-board debugger on AVR128DB48 Curiosity Nano are 18ndash55V

Info  The target voltage is set to 33V when the board is manufactured It can be changed throughMPLABreg X IDE project properties and in the Atmel Studio 7 device programming dialog Any change tothe target voltage is persistent even after a power toggle The resolution is less than 5 mV but may belimited to 10 mV by the adjustment program

Info  Voltage settings that are set up in MPLABreg X IDE are not immediately applied to the board Thenew voltage setting is applied to the board when the debugger is accessed in any way like pushing theRefresh Debug Tool Status button in the project dashboard tab or programmingreading program memory

Info  There is a simple option to adjust the target voltage with a drag-and-drop command text file to theboard This supports a set of common target voltages See section 4133 Special Commands for furtherdetails

The MIC5353 supports a maximum current load of 500 mA It is an LDO regulator in a small package placed on asmall printed circuit board (PCB) and the thermal shutdown condition can be reached at lower loads than 500 mAThe maximum current load depends on the input voltage the selected output voltage and the ambient temperatureThe figure below shows the safe operating area for the regulator with an input voltage of 51V and an ambienttemperature of 23degC

Figure 4-5 Target Regulator Safe Operation Area

The voltage output of the target regulator is continuously monitored (measured) by the on-board debugger If it ismore than 100 mV overunder the voltage setting value an error condition will be flagged and the target voltageregulator will be turned off This will detect and handle any short-circuit conditions It will also detect and handle if anexternal voltage which causes VCC_TARGET to move outside of the voltage setting monitoring window of plusmn100 mVis suddenly applied to the VTG pin without setting the VOFF pin low

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 16

Info  If the external voltage is lower than the monitoring window lower limit (target voltage setting ndash 100mV) the on-board debugger status LED will blink rapidly If the external voltage is higher than themonitoring window upper limit (target voltage setting + 100 mV) the on-board debugger status LED willcontinue to shine If the external voltage is removed the status LED will start to blink rapidly until the on-board debugger detects the new situation and turns the target voltage regulator back on

432 External SupplyAVR128DB48 Curiosity Nano can be powered by an external voltage instead of the on-board target regulator Whenthe Voltage Off (VOFF) pin is shorted to ground (GND) the on-board debugger firmware disables the target regulatorand it is safe to apply an external voltage to the VTG pin

It is also safe to apply an external voltage to the VTG pin when no USB cable is plugged into the DEBUG connectoron the board

The VOFF pin can be tied lowlet go at any time This will be detected by a pin-change interrupt to the on-boarddebugger which controls the target voltage regulator accordingly

WARNINGApplying an external voltage to the VTG pin without shorting VOFF to GND may cause permanent damageto the board

WARNINGDo not apply any voltage to the VOFF pin Let the pin float to enable the power supply

WARNINGAbsolute maximum external voltage is 55V for the on-board level shifters and the standard operatingcondition of the AVR128DB48 is 18ndash55V Applying a higher voltage may cause permanent damage to theboard

Info  If an external voltage is applied without pulling the VOFF pin low and an external supply pulls thevoltage lower than the monitoring windowrsquos lower limit (target voltage setting - 100 mV) the on-boarddebugger status LED will blink rapidly and shut the on-board regulator off If an external voltage issuddenly removed when the VOFF pin is not pulled low the status LED will start to blink rapidly until theon-board debugger detects the new situation and switches the target voltage regulator back on

Programming debugging and data streaming is still possible with an external power supply ndash the debugger andsignal level shifters will be powered from the USB cable Both regulators the debugger and the level shifters arepowered down when the USB cable is removed

Info  In addition to the power consumed by the AVR128DB48 and its peripherals approximately 100 microAwill be drawn from any external power source to power the on-board level shifters and voltage monitorcircuitry when a USB cable is plugged in the DEBUG connector on the board When a USB cable is notplugged in some current is used to supply the level shifters voltage pins which have a worst-case currentconsumption of approximately 5 microA Typical values may be as low as 100 nA

433 VBUS Output PinAVR128DB48 Curiosity Nano has a VBUS output pin that can be used to power external components that need a 5Vsupply The VBUS output pin has a PTC fuse to protect the USB against short circuits A side effect of the PTC fuseis a voltage drop on the VBUS output with higher current loads The chart below shows the voltage versus the currentload of the VBUS output

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 17

Figure 4-6 VBUS Output Voltage vs Current

434 Power Supply ExceptionsThis is a summary of most exceptions that can occur with the power supply

Target Voltage Shuts DownThis can happen if the target section draws too much current at a given voltage This will cause the thermal shutdownsafety feature of the MIC5353 regulator to kick in To avoid this reduce the current load of the target section

Target Voltage Setting is Not ReachedThe maximum output voltage is limited by the USB input voltage (specified to be 44-525V) and the voltage dropover the MIC5353 regulator at a given voltage setting and current consumption If a higher output voltage is neededuse a USB power source that can provide a higher input voltage or use an external voltage supply on the VTG pin

Target Voltage is Different From SettingThis can be caused by an externally applied voltage to the VTG pin without setting the VOFF pin low If the targetvoltage differs more than 100 mV overunder the voltage setting it will be detected by the on-board debugger andthe internal voltage regulator will be shut down To fix this issue remove the applied voltage from the VTG pin andthe on-board debugger will enable the on-board voltage regulator when the new condition is detected Note that thePS LED will be blinking rapidly if the target voltage is below 100 mV of the setting but will be lit normally when it ishigher than 100 mV above the setting

No Or Very Low Target Voltage and PS LED is Blinking RapidlyThis can be caused by a full or partial short-circuit and is a special case of the issue mentioned above Remove theshort-circuit and the on-board debugger will re-enable the on-board target voltage regulator

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 18

No Target Voltage and PS LED is Lit 1This occurs if the target voltage is set to 00V To fix this set the target voltage to a value within the specified voltagerange for the target device

No Target Voltage and PS LED is Lit 2This can be the issue if power jumper J100 andor J101 is cut and the target voltage regulator is set to a value withinthe specified voltage range for the target device To fix this solder a wirebridge between the pads for J100J101 oradd a jumper on J101 if a pin header is mounted

VBUS Output Voltage is Low or Not PresentThis is most lightly caused by a high-current drain on VBUS and the protection fuse (PTC) will reduce the current orcut off completely Reduce the current consumption on the VBUS pin to fix this issue

44 Low-Power MeasurementPower to the AVR128DB48 is connected from the on-board power supply and VTG pin through a 100 mil pin headermarked with ldquoPOWERrdquo in silkscreen (J101) To measure the power consumption of the AVR128DB48 and otherperipherals connected to the board cut the Target Power strap and connect an ammeter over the strap

To measure the lowest possible power consumption follow these steps1 Cut the POWER strap with a sharp tool2 Solder a 1x2 100 mil pin header in the footprint3 Connect an ammeter to the pin header4 Write firmware that

41 Tri-states any IO connected to the on-board debugger42 Sets the microcontroller in its lowest power Sleep state

5 Program the firmware into the AVR128DB48

Figure 4-7 Target Power Strap

Target Power strap (top side)

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 19

Tip  A 100-mil pin header can be soldered into the Target Power strap (J101) footprint for easyconnection of an ammeter Once the ammeter is no longer needed place a jumper cap on the pin header

Info  The on-board level shifters will draw a small amount of current even when they are not in use Amaximum of 2 microA can be drawn from each IO pin connected to a level shifter for a total of 10 microA Keepany IO pin connected to a level shifter in tri-state to prevent leakage All IOs connected to the on-boarddebugger are listed in 5251 On-Board Debugger Connections To prevent any leakage to the on-boardlevel shifters they can be disconnected completely as described in 84 Disconnecting the On-boardDebugger

45 Programming External MicrocontrollersThe on-board debugger on AVR128DB48 Curiosity Nano can be used to program and debug microcontrollers onexternal hardware

451 Supported DevicesAll external AVR microcontrollers with the UPDI interface can be programmed and debugged with the on-boarddebugger with Atmel Studio

External SAM microcontrollers that have a Curiosity Nano Board can be programmed and debugged with the on-board debugger with Atmel Studio

AVR128DB48 Curiosity Nano can program and debug external AVR128DB48 microcontrollers with MPLAB X IDE

452 Software ConfigurationNo software configuration is required to program and debug the same device that is mounted on the board

To program and debug a different microcontroller than what is mounted on the board Atmel Studio must beconfigured to allow free selection of devices and programming interfaces

1 Navigate to Tools gt Options through the menu system at the top of the application2 Select the Tools gt Tool settings category in the options window3 Set the Hide unsupported devices option to False

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 20

Figure 4-8 Hide Unsupported Devices

Info  Atmel Studio allows any microcontroller and interface to be selected when Hide unsupporteddevices is set to False also microcontrollers and interfaces which are not supported by the on-boarddebugger

453 Hardware ModificationsThe on-board debugger is connected to the AVR128DB48 by default These connections must be removed beforeany external microcontroller can be programmed or debugged Cut the GPIO straps shown in the figure below with asharp tool to disconnect the AVR128DB48 from the on-board debugger

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 21

Figure 4-9 Programming and Debugging Connections to Debugger

GPIO straps (bottom side)

Info  Cutting the connections to the debugger will disable programming debugging and data streamingfrom the AVR128DB48 mounted on the board

Tip  Solder in 0Ω resistors across the footprints or short-circuit them with solder to reconnect the signalsbetween the on-board debugger and the AVR128DB48

454 Connecting to External MicrocontrollersThe figure and table below show where the programming and debugging signals must be connected to program anddebug external microcontrollers The on-board debugger can supply power to the external hardware or use anexternal voltage as a reference for its level shifters Read more about the power supply in 43 Power Supply

The on-board debugger and level shifters actively drive data and clock signals (DBG0 DBG1 and DBG2) used forprogramming and debugging and in most cases the external resistor on these signals can be ignored Pull-downresistors are required on the ICSPtrade data and clock signals to debug PICreg microcontrollers

DBG3 is an open-drain connection and requires a pull-up resistor to function

AVR128DB48 Curiosity Nano has a pull-up resistor R200 connected to its RESET signal (DBG3) The location ofthe pull-up resistor is shown in the 82 Assembly Drawing in the appendix

Remember bull Connect GND and VTG to the external microcontrollerbull Tie the VOFF pin to GND if the external hardware has its own power supplybull Make sure there are pull-down resistors on the ICSP data and clock signals (DBG0 and DBG1) to

support the debugging of PIC microcontrollers

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 22

Figure 4-10 Curiosity Nano Standard Pinout

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

Table 4-4 Programming and Debugging Interfaces

Curiosity Nano Pin UPDI ICSPtrade SWD

DBG0 UPDI DATA SWDIO

DBG1 mdash CLK SWCLK

DBG2 mdash mdash mdash

DBG3 mdash MCLR RESET

46 Connecting External DebuggersEven though there is an on-board debugger external debuggers can be connected directly to the AVR128DB48Curiosity Nano to programdebug the AVR128DB48 The on-board debugger keeps all the pins connected to theAVR128DB48 and board edge in tri-state when not actively used Therefore the on-board debugger will not interferewith any external debug tools

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 23

Figure 4-11 Connecting the MPLABreg PICkittrade 4 In-Circuit DebuggerProgrammer to AVR128DB48 CuriosityNano

2345678 1

VDD

GroundDATA

2 = VDD

3 = Ground

4 = PGD

5 = Unused

6 = Unused

7 = Unused

8 = Unused

1 = Unused

MPLABreg PICkittrade 4

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 24

Figure 4-12 Connecting the Atmel-ICE to AVR128DB48 Curiosity Nano

VDD

Ground

DATA

AVRregSAM

3 = UPDI

4 = VTG

5 = Unused

6 = Unused

7 = Unused

8 = Unused

1 = Unused

2 = GND

9 = Unused

10 = Unused

Atmel-ICE

21 9

10

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

CAUTIONTo avoid contention between the external debugger and the on-board debugger do not start anyprogrammingdebug operation with the on-board debugger through MPLABreg X IDE or Atmel Studio 7 ormass storage programming while the external tool is active

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 25

5 Hardware User Guide

51 Connectors

511 AVR128DB48 Curiosity Nano PinoutAll the AVR128DB48 IO pins are accessible at the edge connectors on the board The image below shows the boardpinout For all available functions on each pin refer to the IO Multiplexing and Considerations section in theAVR128DB48 data sheet

Figure 5-1 AVR128DB48 Curiosity Nano Pinout

USB

DEBUGGER

AVR128DB48

SW0

LED0

PS LEDNC

NC

IDID

CDC RX

CD

CR

XUSART3 TXPB0

CDC TX

CD

CT

XUSART3 RXPB1

DBG1

DB

G1PB3LED0

DBG2

DB

G2PB2SW0

PF4

PF

4USART2 TX

PF5

PF

5USART2 RX

PA2

PA

2TWI0 SDA

PA3

PA

3TWI0 SCL

PA4

PA

4SPI0 MOSI

PA5

PA

5SPI0 MISO

PA6

PA

6SPI0 SCK

PA7

PA

7SPI0 SS

GND

GN

D

PB0

PB

0USART3 TXCDC RX

PB1

PB

1USART3 RXCDC TX

PF2

PF

2

PF3

PF

3

PC0

PC

0

PC1

PC

1

PC2

PC

2

PC3

PC

3

GND

GN

D

(PA0)

(PA

0)XTALHF1

(PA1)

(PA

1)XTALHF2

PB2

PB

2SW0

PB3

PB

3LED0

VBUS

VB

US

VOFF

VO

FF

DBG3

DB

G3 PF6

DBG0

DB

G0 UPDI

GND

GN

D

VTG

VT

G

PD6

PD

6 AIN6

PD3

PD

3 AIN3 OP0 INN

PD2

PD

2 AIN2 OP0 OUT TCA0 WO2

PD1

PD

1 AIN1 OP0 INP TCA0 WO1

PD0

PD

0 AIN0 TCA0 WO0

PD7

PD

7 AIN7 OP1 INN

PD5

PD

5 AIN5 OP1 OUT

PD4

PD

4 AIN4 OP1 INP

GND

GN

D

PE3

PE

3 OP2 INN

PE2

PE

2 OP2 OUT

PE1

PE

1 OP2 INP

PE0

PE

0

PC7

PC

7

PC6

PC

6

PC5

PC

5

PC4

PC

4

GND

GN

D

PB5

PB

5

PB4

PB

4

(PF1)

(PF

1) XTAL32K2

(PF0)

(PF

0) XTAL32K1

DEBUGGERAVR128DB48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

MVIO

OPAMP

Shared pin

AVR128DB48Curiosity Nano

512 Using Pin HeadersThe edge connector footprint on AVR128DB48 Curiosity Nano has a staggered design where each hole is shifted 8mil (~02 mm) off-center The hole shift allows the use of regular 100 mil pin headers on the board without solderingOnce the pin headers are firmly in place they can be used in normal applications like pin sockets and prototypingboards without any issues

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 26

Figure 5-2 Attaching Pin-Headers to the Curiostiy Nano Board

Figure 5-3 Connecting to Curiosity Nano Base for Click boardstrade

Tip  Start at one end of the pin header and gradually insert the header along the length of the boardOnce all the pins are in place use a flat surface to push them in

Tip  For applications where the pin headers will be used permanently it is still recommended to solderthem in place

Important  Once the pin headers are in place they are hard to remove by hand Use a set of pliers andcarefully remove the pin headers to avoid damage to the pin headers and PCB

513 Multi-Voltage IO

The AVR128DB48 Curiosity Nano MCU has support for Multi-Voltage IO (MVIO) AVR128DB48 MVIO pins areconnected to the edge connector at PC0-PC7 MVIO pins are capable of regular IO-pin behavior

MVIO can be configured in one of two supply modesbull Single-Supply mode All IO pins including MVIO-capable pins are powered by VCC_TARGET By default

VCC_TARGET is connected to VDDIO2 through a 0-ohm resistor (R204)bull Dual-Supply mode MVIO-capable pins are powered by an external power supply connected to VDDIO2 Non-

MVIO pins are powered by VCC_TARGET

Dual-Supply mode allows MVIO-pins to be powered at different voltages than pins powered from VCC_TARGET

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 27

WARNINGThe absolute maximum external voltage range for the AVR128DB48 is 18ndash55V Applying a higher voltagemay cause permanent damage to the board

By default AVR128DB48 Curiosity Nano board is configured for single-supply mode To use Dual-Supply mode somehardware modifications are required

WARNINGBefore any hardware modifications are done make sure the board is disconnected from USB or externalpower

bull Disconnect resistor R204 connecting VDDIO2 to VCC_TARGETbull Connect a new power supply to VDDIO2 and ground at J212bull J212 does not have reverse polarity protection Make sure to match polarity between the power supply and

J212 Positive-polarity to J212-pin 1 and negative-polarity to J212-pin 2

The resistor R204 VDDIO2 and J212 can be seen in Figure 5-4

Figure 5-4 MVIO and VDDIO2 Connections

J212 R204

WARNINGApplying an external voltage to VDDIO2 pin without removing resistor R204 may cause permanentdamage to the board

WARNINGJ212 does not have reverse polarity protection Applying voltage to the wrong pin may cause permanentdamage to the board

514 Operational AmplifiersAVR128DB48 features three internal operational amplifiers with a flexible connection scheme using analogmultiplexers and resistor ladders This allows a large number of analog signal conditioning configurations manyrequiring no external components

Table 5-1 OPAMP Pin Connections

OPAMP Poisitive Input (INP) Negative Input (INN) Output (OUT)

OP0 PD1 PD3 PD2

OP1 PD4 PD7 PD5

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 28

continuedOPAMP Poisitive Input (INP) Negative Input (INN) Output (OUT)

OP2 PE1 PE3 PE2

For information about OPAMP on the edge connector and any shared functionality see 511 AVR128DB48 CuriosityNano Pinout

52 Peripherals

521 LEDThere is one yellow user LED available on the AVR128DB48 Curiosity Nano board that can be controlled by eitherGPIO or PWM The LED can be activated by driving the connected IO line to GND

Table 5-2 LED Connection

AVR128DB48 Pin Function Shared Functionality

PB3 Yellow LED0 Edge connector On-board debugger

522 Mechanical SwitchThe AVR128DB48 Curiosity Nano board has one mechanical switch This is a generic user-configurable switchWhen the switch is pressed it will drive the IO line to ground (GND)

Tip  There is no externally connected pull-up resistor on the switch To use the switch make sure that aninternal pull-up resistor is enabled on pin PB2

Table 5-3 Mechanical Switch

AVR128DB48 Pin Description Shared Functionality

PB2 User switch (SW0) Edge connector On-board debugger

523 32768 kHz Crystal

On the AVR128DB48 Curiosity Nano board is a mounted 32768 kHz crystal of type VMK3-9001-32K7680000 thecrystal is accurate to within 20 ppm Using the External 32768 kHz Crystal Oscillator (XOSC32K) module inAVR128DB48 with the mounted 32768 kHz crystal generates a clock signal that is significantly more accurate thanthe Internal 32768 kHz Ultra Low-Power Oscillator (OSC32K) module can generate alone With the Auto-Tunefeature the 32768 kHz can be used as a reference to improve the accuracy of the internal oscillator This is an idealreference clock for the Real-Time Counter module in AVR128DB48

The 32768 kHz crystal is connected to AVR128DB48 on PF0 and PF1 which are also routed to the edge connectorthrough two solder points PF0 and PF1 are disconnected from the edge connector by default to reduce the chanceof an external signal causing contention with the crystal and to remove excessive capacitance on the lines

Next to the 32768 kHz crystal is a cut-strap (J209) which can be used to measure the oscillator safety factor This isdone by cutting the strap and adding a 0402 SMD resistor across the strap More information about oscillatorallowance and safety factor can be found in the AN2648 application note from Microchip

Cut straps and solder points can be seen in Figure 5-5

Table 5-4 32768 kHz Crystal Connections

AVR128DB48 Pin Function Shared Functionality

PF0 XTAL32K1 (Crystal input) Edge connector

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 29

continuedAVR128DB48 Pin Function Shared Functionality

PF1 XTAL32K2 (Crystal output) Edge connector

PA0 and PA1 can be used as GPIO To do so some hardware modifications are required

WARNINGBefore any hardware modifications are done make sure the board is disconnected from the USB orexternal power

bull Disconnect the 32768 kHz crystal by cutting the two straps on the top side of the board next to the crystal(J207 J208) The crystal should be disconnected when using the pin as GPIO as this might harm the crystal

bull Connect the IO lines to the edge connector by placing solder blobs on the circular solder points marked PF0and PF1 on the bottom side of the board (J210 J211)

Figure 5-5 Crystal Connection and Cut Straps

Top side Boom side

J211

J210

J207

J20832768 kHz Crystal

J209

524 1600 MHz Crystal

On the AVR128DB48 Curiosity Nano board is a mounted 1600 MHz crystal of type VXM7-9040-16M0000000 thecrystal is accurate to within 20 ppm Using the External High-Frequency Crystal Oscillator (XOSCHF) module inAVR128DB48 with the mounted 1600 MHz crystal generates a clock signal that is significantly more accurate thanthe Internal High-Frequency Oscillator (OSCHF) module

The 1600 MHz crystal is connected to AVR128DB48 on PA0 and PA1 which are also routed to the edge connectorthrough two solder points PA0 and PA1 are disconnected from the edge connector by default to reduce the chanceof an external signal causing contention with the crystal and to remove excessive capacitance on the lines

Next to the 1600 MHz crystal is a cut-strap (J217) which can be used to measure the oscillator safety factor This isdone by cutting the strap and adding a 0402 SMD resistor across the strap More information about oscillatorallowance and safety factor can be found in the AN2648 application note from Microchip

Cut straps and solder points can be seen in Figure 5-6

Table 5-5 Crystal Connections

AVR128DB48 Pin Function Shared Functionality

PA0 XTALHF1 (Crystal input) Edge connector

PA1 XTALHF2 (Crystal output) Edge connector

PA0 and PA1 can be used as GPIO To do so some hardware modifications are required

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 30

WARNINGBefore any hardware modifications are done make sure the board is disconnected from USB or externalpower

bull Disconnect the 1600 MHz crystal by cutting the two straps on the top side of the board next to the crystal (J215J216) The crystal should be disconnected when using the pin as GPIO as this might harm the crystal

bull Connect the IO lines to the edge connector by placing solder blobs on the circular solder points marked PA0and PA1 on the bottom side of the board (J213 J214)

Figure 5-6 Crystal Connection and Cut Straps

Top side Boom side

J214

J213

J216

J2151600 MHzCrystal

J217

525 On-Board Debugger ImplementationAVR128DB48 Curiosity Nano features an on-board debugger that can be used to program and debug theAVR128DB48 using UPDI The on-board debugger also includes a virtual serial port (CDC) interface over UART anddebug GPIO Both MPLABreg X IDE and Atmel Studio 7 can be used as a front-end for the on-board debugger forprogramming and debugging MPLAB Data Visualizer can be used as a front-end for the CDC and debug GPIO

5251 On-Board Debugger ConnectionsThe table below shows the connections between the target and the debugger section All connections between thetarget and the debugger are tri-stated as long as the debugger is not actively using the interface Hence since thereare little contaminations of the signals the pins can be configured to anything the user wants

For further information on how to use the capabilities of the on-board debugger see 41 On-Board DebuggerOverview

Table 5-6 On-Board Debugger Connections

AVR128DB48Pin

Debugger Pin Function Shared Functionality

PB1 CDC TX UART RX (AVR128DB48 RX line) Edge connector

PB0 CDC RX UART TX (AVR128DB48 TX line) Edge connector

UPDI DBG0 UPDI Edge connector

PB3 DBG1 LED0Debug GPIO1 Edge connector

PB2 DBG2 SW0Debug GPIO0 Edge connector

PF6 DBG3 RESET Edge connector

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 31

6 Hardware Revision History and Known IssuesThis user guide is written to provide information about the latest available revision of the board The followingsections contain information about known issues a revision history of older revisions and how older revisions differfrom the latest revision

61 Identifying Product ID and RevisionThe revision and product identifier of the AVR128DB48 Curiosity Nano Board can be found in two ways Either byutilizing the MPLABreg X IDE or Atmel Studio 7 Kit Window or by looking at the sticker on the bottom side of the PCB

By connecting AVR128DB48 Curiosity Nano to a computer with MPLABreg X IDE or Atmel Studio 7 running the KitWindow will pop up The first six digits of the serial number which is listed under kit information contain the productidentifier and revision

Tip  The Kit Window can be opened in MPLABreg X IDE through the menu bar Window gt Kit Window

The same information can be found on the sticker on the bottom side of the PCB Most boards will have the identifierand revision printed in plain text as A09-nnnnrr where ldquonnnnrdquo is the identifier and ldquorrrdquo is the revision Boards withlimited space have a sticker with only a data matrix code containing the product identifier revision and serialnumber

The serial number string has the following format

nnnnrrssssssssss

n = product identifier

r = revision

s = serial number

The product identifier for AVR128DB48 Curiosity Nano is A09‑3372

62 Revision 3AVR128DB48 silicon revision A5 or later is mounted on this revision of the board

63 Revision 2Revision 2 is the initially released board revision

AVR128DB48 silicon revision A4 is mounted on this revision of the board

AVR128DB48 Curiosity NanoHardware Revision History and Known Issues

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 32

7 Document Revision HistoryDoc Rev Date Comments

A 092020 Initial document release

AVR128DB48 Curiosity NanoDocument Revision History

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 33

8 Appendix

81 SchematicFigure 8-1 AVR128DB48 Curiosity Nano Schematic

11

22

33

44

55

66

77

88

DD

CC

BB

AA

2 of

4

AV

R12

8DB

48 C

uri

osit

y N

ano

240

820

20A

VR

128D

B48

_Cur

iosi

ty_N

ano_

Targ

et_M

CU

Sch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA

Rev

isio

n

File

P

CB

Num

ber

PC

B

Rev

isio

n

Des

ign

ed w

ith

Dra

wn

By

ML

Shee

t Titl

e

Targ

et M

CU

Eng

inee

rA

H

A08

-305

71

Size

A3

A09

-337

22

Page

D

ateA

ltium

com

GN

D

VD

DIO

2

100n

C20

1

GN

D

PA5_

SPI0

_MIS

OPA

6_SP

I0_S

CK

PA7_

SPI0

_SS

PB0_

USA

RT

3_T

XPB

1_U

SAR

T3_

RX

PB2_

SW0_

DB

G2

PB3_

LE

D0_

DB

G1

PB

4P

B5

PC

0P

C1

PC

2

PC3

PC4PC5PC6PC7PD0_AIN0_TCA0_WO0PD1_AIN1_OP0_INP_TCA0_WO1PD2_AIN2_OP0_OUT_TCA0_WO2PD3_AIN3_OP0_INNPD4_AIN4_OP1_INP

PA3_TWI0_SCL

PA1_XTALHF2

UPDI_DBG0

PF5_USART2_RX

PF3

PF

2PF

1_X

TA

L32

K2

PF0_

XT

AL

32K

1P

E3_

OP

2_IN

NP

E2_

OP

2_O

UT

PE

1_O

P2_

INP

PE

0

PD5_

AIN

5_O

P1_

OU

TPD

6_A

IN6

PD7_

AIN

7_O

P1_

INN

GN

D

VC

C_T

AR

GE

T

100n

C20

2

GN

DV

CC

_TA

RG

ET

100n

C20

0

PF1_XTAL32K2

PF0_XTAL32K1

PA2_TWI0_SDA

PA0_XTALHF1

PF4_USART2_TX

PA4_SPI0_MOSI

GN

D

PA7_

SPI0

_SS

PA6_

SPI0

_SC

KPA

5_SP

I0_M

ISO

PA4_

SPI0

_MO

SIPA

3_T

WI0

_SC

LPA

2_T

WI0

_SD

A

PC

0P

C1

PC

2P

C3

PB

4P

B5

PD7_

AIN

7_O

P1_

INN

PD6_

AIN

6

PD2_

AIN

2_O

P0_

OU

T_T

CA

0_W

O2

PD1_

AIN

1_O

P0_

INP_

TC

A0_

WO

1PD

0_A

IN0_

TC

A0_

WO

0

PD5_

AIN

5_O

P1_

OU

TPD

4_A

IN4_

OP

1_IN

P

PD3_

AIN

3_O

P0_

INN

32K

Hz

Cry

stal

PB0_

USA

RT

3_T

XPB

1_U

SAR

T3_

RX

1kR203

US

ER

LE

D

VC

C_T

AR

GE

T

PF6_DBG3

PB2_SW0_DBG2

PB3_LED0_DBG1

GN

D

USE

R B

UT

TO

N

PB3_

LE

D0_

DB

G1

PB2_

SW0_

DB

G2

PB1_

USA

RT

3_R

XPB

0_U

SAR

T3_

TX

PF4_

USA

RT

2_T

XPF

5_U

SAR

T2_

RX

PF

2P

F3

PC

4P

C5

PC

6P

C7

1kR202

YELLOWLEDSML-D12Y1WT86

2 1

D200

TS604VM1-035CR13

4 2

SW20

0

GN

DV

CC

_ED

GE

GN

DG

ND

GN

DG

ND

UPD

I_D

BG

0P

F6_

DB

G3

J209

PB3_

LE

D0_

DB

G1

PB2_

SW0_

DB

G2

AV

R12

8DB

48

22u

FC

205

VC

C_E

DG

E

GN

D

DBG0

CDC_TXCDC_RX

DBG2

DBG1

DBG3

DBG2

DE

BU

GG

ER

CO

NN

EC

TIO

NS

DBG1

DBG3DBG0

VOFF

ID_SYS

ID_SYS

VOFF

TA

RG

ET

BU

LK

VC

C_T

AR

GE

TR

ESE

T P

ull

VB

US

CD

C R

X3

CD

C T

X4

DB

G1

5

DB

G2

6

0 T

X7

1 R

X8

2 SD

A9

3 S

CL

10

4 M

OSI

11

5 M

ISO

12

6 S

CK

13

7 S

S14

GN

D15

0 (T

X)

16

1 (R

X)

17

218

319

020

GN

D24

DB

G3

54

DB

G0

53

GN

D52

VC

C51

PW

M 3

46

AD

C 2

45

AD

C 1

44

AD

C 0

43

GN

D42

438

434

GN

D33

AD

C 7

50

AD

C 6

49

AD

C 5

48

PW

M 4

47

DE

BU

GG

ER

TAR

GE

T

ID2

VO

FF

55

121

222

323

025

126

227

328

429

530

631

732

535

636

737

539

640

741

RE

SER

VE

D1

VB

US

56

CN

AN

O56

-pin

edg

e co

nnec

tor

J200

J201

J203

J205

J206

J202

J204

PF1_

XT

AL

32K

2PF

0_X

TA

L32

K1

NC

XOUT

XIN

47kR200

AV

R12

8DB

48

UPD

I

GPI

O1

GPI

O0

RE

SET

DB

G0

DB

G1

DB

G2

DB

G3

Deb

ugge

r

CD

C T

X

CD

C R

X

UA

RT

3 R

X

UA

RT

3 T

X

VT

G1

8V -

55

VPB

3

PB

2

PF

6

UP

DI

PB

0

PB

1

Nam

eP

in

PE

3_O

P2_

INN

PE

2_O

P2_

OU

TP

E1_

OP

2_IN

PP

E0

J207

J208

PF

0P

F1

PA5

1

PA6

2

PA7

3

PB0

4

PB1

5

PB2

6

PB3

7

PB4

8

PB5

9

PC0

10

PC1

11

PC2

12

PC313

VDDIO214

GND15

PC416

PC517

PC618

PC719

PD020

PD121

PD222

PD323

PD424

PD5

25

PD6

26

PD7

27

AVDD

28

GND

29

PE0

30

PE1

31

PE2

32

PE3

33

XTAL32K1PF0

34

XTAL32K2PF1

35

PF2

36

PF337

PF438

PF539

PF640

UPDI41

VDD42

GND43

XTALHF1PA044

XTALHF2PA145

PA246

PA347

PA448

AV

R12

8DB

48-I

PT

U20

0

0RR204

GN

D

VC

C_T

AR

GE

T

VDDIO2

GND

J210

J211

82p

C20

48

2pC

203

GN

DG

ND

16M

Hz

Cry

stal

J217

XHFOUT

XHFIN

J214

J213

GN

D

J215

J216

PA0_XTALHF1

PA1_XTALHF2

PA0_

XT

AL

HF

1PA

1_X

TA

LH

F2

PA0

PA1

1 2

J212 N

M

15pF

C20

615

pFC

207

13

24 16

000

MH

zV

XM

7-90

40-1

6M00

0000

0TR

XC

201

GN

D32

768

kHz

VM

K3-

9001

-32K

7680

000T

R

XC

200

CDC_TX

CDC_RX

CD

C_T

XC

DC

_RX

Cry

stal

dat

ashe

et

Ccr

ysta

l = 9

pFm

ax E

SR

= 7

0kO

hmA

ccur

acy

plusmn20p

pm

AV

R48

DB

128

data

shee

tC

xin

= 4

0pF

(ty

pica

l val

ue)

Cxo

ut =

40

pF (

typi

cal v

alue

)C

lasymp1

( (1

40

pF)+

(1

40p

F)

)asymp

20p

FM

axim

um L

oad

= 1

25p

FM

axim

um E

SR =

50k

Ohm

Est

imat

ed C

pcb

= 0

5pF

Est

imat

ed lo

adC

= 2

(C

crys

tal-

Cpa

ra -

Cpc

b)C

= 2

(9p

F -

20

pF -

05

pF)

C =

13

0pF

Sele

cted

in d

esig

n af

ter

veri

fica

tion

C=

82

pF8

2pF

NO

TE

on

UA

RT

CD

C

RX

TX

onth

ehe

ader

deno

tes

the

inpu

tout

put d

irec

tion

of th

e si

gnal

resp

ectiv

e to

its

sou

rce

CD

C T

X is

out

put f

rom

the

DE

BU

GG

ER

C

DC

RX

is in

put t

o th

e D

EB

UG

GE

R

TX

is o

utpu

t fro

m th

e T

AR

GE

T d

evic

eR

X is

inpu

t to

the

TA

RG

ET

dev

ice

NO

TE

on

I2C

No

pull

-ups

on

boar

d P

ull-

ups

shou

ld b

em

ount

ed c

lose

to s

lave

dev

ice(

s)

WA

RN

ING

M

ake

sure

tore

mov

e R

204

befo

reap

plyi

ng p

ower

to J

212

Cry

stal

dat

ashe

et

Ccr

ysta

l = 1

2pF

max

ES

R =

60O

hmA

ccur

acy

plusmn30p

pm

AV

R48

DB

128

data

shee

tC

xin

= 4

0pF

(ty

pica

l val

ue)

Cxo

ut =

40

pF (

typi

cal v

alue

)C

lasymp1

( (1

40

pF)+

(1

40p

F)

)asymp

20p

FM

axim

um L

oad

= 1

25p

FM

axim

um E

SR =

k

Ohm

Est

imat

ed C

pcb

= 0

5pF

Est

imat

ed lo

adC

= 2

(C

crys

tal-

Cpa

ra -

Cpc

b)C

= 2

(12

pF -

20

pF -

05

pF)

C =

19

0pF

Sele

cted

in d

esig

n af

ter

veri

fica

tion

C=

15p

F1

5pF

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 34

11

22

33

44

55

66

77

88

DD

CC

BB

AA

3 of

4

AV

R12

8DB

48 C

uri

osit

y N

ano

2020

-06-

26A

VR

128D

B48

_Cur

iosi

ty_N

ano_

Deb

ugge

rSch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA

Rev

isio

n

Fil

eP

CB

Num

ber

PC

B

Rev

isio

n

Des

ign

ed w

ith

Dra

wn

By

ML

Shee

t Tit

le

Deb

ugge

r

Eng

inee

rA

H

A08

-305

71

Size

A3

A09

-337

22

Page

D

ateA

ltium

com

DE

BU

GG

ER

USB

MIC

RO

-B C

ON

NE

CT

OR

GN

D

USB

D_P

USB

D_N

100n

C10

7

100n

C10

8

1kR

107

VC

C_P

3V3

SRST

STA

TU

S_L

ED

SHIE

LD

VB

US

VC

C_P

3V3

GN

D

TP

100

Test

poin

t Arr

ay

12

34

56

78

910

TC

KT

DO

TM

SV

sup

TD

IG

ND

TR

STSR

STV

Tre

fG

ND

J102

GN

D

47u

F

C10

0

DBG0

DB

G0

21

GR

EE

N L

ED

SML

-P12

MT

T86

R

D10

0

VBUS

1

D-

2

D+

3

GND

5

SHIELD1

6

SHIELD2

7

ID

4

SHIELD3

8

SHIELD4

9 MU

-MB

0142

AB

2-26

9

J105

PAD

33

PA00

1

PA01

2

PA02

3

PA03

4

GND 10VDDANA 9

PA04

5

PA05

6

PA06

7

PA07

8

PA08 11

PA09 12

PA10 13

PA11 14

PA14 15

PA15 16

PA16

17

PA17

18

PA18

19

PA19

20

PA22

21

USB_SOFPA23

22

USB_DMPA24

23

USB_DPPA25

24

PA2725 RESETN26 PA2827 GND28 VDDCORE29 VDDIN30 SWDCLKPA3031 SWDIOPA3132

SAM

D21

E18

A-M

UT

U10

0

VOUT

1

VOUT

2

GND 3

EN

4

VIN

6

NC

5

EP 7

MIC

5528

-33

YM

TU

101

VC

C_P

3V3

GN

D

USB

D_P

USB

D_N

GN

D

1uC

106

VC

C_M

CU

_CO

RE

VC

C_P

3V3

VC

C_P

3V3

22u

FC

101

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

3

VC

C_P

3V3

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

4

VC

C_P

3V3

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

5

VC

C_P

3V3

GN

D

GN

D GN

D

GN

D

VC

C_E

DG

E

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

7

VC

C_P

3V3

GN

DDBG2

DB

G3_

CT

RL

S1_0

_TX

S1_1

_RX

S0_2

_TX

DA

CV

TG

_AD

C

RE

SER

VE

D

S0_3

_CL

K

DBG0_CTRL

CD

C_T

X_C

TR

L

BO

OT

DE

BU

GG

ER

PO

WE

RS

TA

TU

S L

ED

EN

1

BYP

6

VOUT

4

GND

2

VIN

3

NCADJ

5

GND

7

MIC

5353

U10

2

100n

C10

2

GN

D

GN

D

47kR101

27kR104 G

ND

33k

R10

6

22u

F

C10

3 GN

D

1kR

108

J100

VC

C_L

EV

EL

VC

C_R

EG

UL

AT

OR

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

6

VC

C_P

3V3

GN

DDBG1

CD

C_R

X

CD

C_T

X

DBG3

DBG1_CTRL

DE

BU

GG

ER

RE

GU

LA

TO

R

REG_ENABLE

RE

G_E

NA

BL

E

47kR103

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

47kR102

47kR105

SWC

LK

GN

D

47kR100 G

ND

DB

G2

S0_0

_RX

DB

G1_

CT

RL

DB

G0_

CT

RL

DB

G3

OP

EN

DR

AIN

TA

RG

ET

AD

JUST

AB

LE

RE

GU

LA

TO

R

SRST

DE

BU

GG

ER

TE

ST

PO

INT DBG2_CTRL

VO

FF

CD

C_R

X_C

TR

L

47kR109

DB

G1

CD

C_T

X_C

TR

L

CD

C_R

X_C

TR

L

SWC

LK

REG_ADJUST

DBG2_GPIO

DB

G3_

CT

RL

DB

G2_

CT

RL

UP

DI

UPD

I

GPI

O

GPI

O

RE

SET

Sign

al

DB

G0

DB

G1

DB

G2

DB

G3

ICS

PIn

terf

ace

DA

T

CL

K

GPI

O

MC

LR

DB

G3

CD

C T

X

CD

C R

X

UA

RT

RX

UA

RT

TX

UA

RT

RX

UA

RT

TX

TA

RG

ET

TA

RG

ET

1kR

110

VBUS_ADC

1

23

DM

N65

D8L

FB

Q10

1

VC

C-

-

ID_SYS

VOFF

1kR112

VC

C_P

3V3

VT

G_A

DC

DA

C

MIC

9416

3

VIN

B2

VOUT

A1

VIN

A2

EN

C2

GND

C1

VOUT

B1

U10

8

GN

D

ID_S

YS

VT

G_E

N

VTG_EN

VBUS_ADC

SWD

IO

ID_S

YS

TP

101

GN

DSW

DIO

VO

FF

47kR111 G

ND

ID P

IN

MC

3621

3

F10

0

VC

C_V

BU

S

VC

C_V

BU

S

VC

C_V

BU

S

J101

VC

C_T

AR

GE

T

47k

R11

3

CDC_TX

CDC_RX

Prog

ram

min

g co

nnec

tor

for

fact

ory

prog

ram

min

g of

DE

BU

GG

ER

MIC

5528

V

in 2

5V

to 5

5V

Vou

t F

ixed

33

VIm

ax 5

00m

AD

ropo

ut 2

60m

V

500

mA

MIC

5353

V

in 2

6V

to 6

VV

out

12

5V to

51

VIm

ax 5

00m

AD

ropo

ut (

typi

cal)

50m

V

150m

A 1

60m

V

500

mA

Acc

urac

y 2

in

itia

lT

herm

al s

hutd

own

and

curr

ent l

imit

Max

imum

out

put v

olta

ge is

lim

ited

by

the

inpu

t vol

tage

and

the

drop

out v

olta

ge in

the

regu

lato

r(V

max

= V

in -

dro

pout

)

J100

-

Cut

-str

ap u

sed

for

full

sep

arat

ion

of ta

rget

pow

er f

rom

the

leve

l shi

fter

s an

don

-boa

rd r

egul

ator

s-

For

cur

rent

mea

sure

men

ts u

sing

the

on-b

oard

pow

er s

uppl

y th

isst

rap

mus

t be

cut a

nd a

nam

met

er c

onne

cted

acr

oss

- F

or c

urre

nt m

easu

rem

ents

usi

ng a

n ex

tern

al p

ower

sup

ply

this

str

ap c

ould

be

cut f

or m

ore

accu

rate

mea

sure

men

ts L

eaka

ge b

ack

thro

ugh

the

swit

ch is

in th

e m

icro

am

pere

ran

ge

PT

C R

eset

tabl

e fu

se

Hol

d cu

rren

t 5

00m

AT

rip

curr

ent

100

0mA

Adj

usta

ble

outp

ut a

nd li

mit

atio

ns

- T

he D

EB

UG

GE

R c

an a

djus

t the

out

put v

olta

ge o

f th

e re

gula

tor

betw

een

125

V a

nd 5

1V

to th

e ta

rget

-

The

vol

tage

out

put i

s li

mit

ed b

y th

e in

put (

US

B)

whi

ch c

an v

ary

betw

een

440

V to

52

5V-

The

leve

l shi

fter

s ha

ve a

min

imal

vol

tage

leve

l of

165

V a

nd w

ill l

imit

the

min

imum

ope

ratin

g vo

ltage

all

owed

for

the

targ

et to

sti

ll a

llow

com

mun

icat

ion

- T

he M

IC94

163

has

a m

inim

al v

olat

ege

leve

l of

170

V a

nd w

ill l

imit

the

min

imum

vol

tage

del

iver

ed to

the

targ

et

- F

irm

war

e co

nfig

urat

ion

wil

l lim

it th

e vo

ltage

ran

ge to

be

wit

hin

the

the

targ

et s

peci

fica

tion

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 35

82 Assembly DrawingFigure 8-2 AVR128DB48 Curiosity Nano Assembly Drawing Top

+

Cb

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20001 PAC20002 COC200

PAC20101 PAC20102 COC201

PAC20201 PAC20202 COC202 PAC20301

PAC20302 COC203

PAC20401

PAC20402 COC204

PAC20502

PAC20501 COC205

PAC20601

PAC20602 COC206 PAC20701

PAC20702 COC207 PAD10002 PAD10001 COD100

PAD20002

PAD20001 COD200

PAF10002

PAF10001 COF100

PAJ10002 PAJ10001 COJ100

PAJ10101 PAJ10102 COJ101

PAJ10201

PAJ10202

PAJ10203

PAJ10204

PAJ10205

PAJ10206 COJ102

PAJ10506

PAJ10507 PAJ10509

PAJ10508 PAJ105010

PAJ105011 PAJ10505

PAJ10504

PAJ10503

PAJ10502

PAJ10501

PAJ10500

COJ105

PAJ200056 PAJ200053

PAJ200028 PAJ20002 PAJ20001

PAJ200051 PAJ200050 PAJ200052 PAJ200049 PAJ200048 PAJ200047 PAJ200046 PAJ200045 PAJ200044 PAJ200043 PAJ200042 PAJ200041 PAJ200040 PAJ200039 PAJ200038 PAJ200037 PAJ200036 PAJ200035 PAJ200034 PAJ200033 PAJ200032 PAJ200031 PAJ200030 PAJ200029

PAJ20003 PAJ20004 PAJ20005 PAJ20006 PAJ20007 PAJ20008 PAJ20009 PAJ200010 PAJ200011 PAJ200012 PAJ200013 PAJ200014 PAJ200015 PAJ200016 PAJ200017 PAJ200018 PAJ200019 PAJ200020 PAJ200021 PAJ200022 PAJ200023 PAJ200026 PAJ200025 PAJ200024 PAJ200027

PAJ200054 PAJ200055 PAJ20000

COJ200

PAJ20102 PAJ20101 COJ201

PAJ20202 PAJ20201 COJ202

PAJ20302 PAJ20301 COJ203

PAJ20402 PAJ20401 COJ204

PAJ20502 PAJ20501 COJ205

PAJ20602 PAJ20601 COJ206 PAJ20702 PAJ20701 COJ207

PAJ20802 PAJ20801 COJ208

PAJ20902 PAJ20901 COJ209

PAJ21001 PAJ21002 PAJ21005 COJ210

PAJ21102 PAJ21101 PAJ21105 COJ211

PAJ21202 PAJ21201 COJ212

PAJ21301 PAJ21302 PAJ21305 COJ213

PAJ21401 PAJ21402 PAJ21405 COJ214

PAJ21502 PAJ21501 COJ215

PAJ21602 PAJ21601 COJ216 PAJ21702 PAJ21701 COJ217

COLABEL1

PAQ10101 PAQ10102 PAQ10103 PAQ10100

COQ101 PAR10002

PAR10001 COR100 PAR10101 PAR10102 COR101

PAR10202 PAR10201 COR102

PAR10302 PAR10301 COR103

PAR10401 PAR10402 COR104

PAR10502

PAR10501 COR105

PAR10601 PAR10602 COR106

PAR10702 PAR10701 COR107

PAR10801

PAR10802 COR108

PAR10901 PAR10902 COR109

PAR11001 PAR11002 COR110

PAR11101 PAR11102 COR111

PAR11201 PAR11202 COR112

PAR11302 PAR11301 COR113

PAR20001 PAR20002 COR200 PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203 PAR20401 PAR20402 COR204

PASW20003

PASW20004 PASW20002

PASW20001 COSW200

PATP10001 COTP100

PATP10101 COTP101 PAU100033

PAU100032 PAU100031 PAU100030 PAU100029 PAU100028 PAU100027 PAU100026 PAU100025 PAU100024

PAU100023

PAU100022

PAU100021

PAU100020

PAU100019

PAU100018

PAU100017 PAU100016 PAU100015 PAU100014 PAU100013 PAU100012 PAU100011 PAU100010

PAU10001

PAU10002

PAU10003

PAU10004

PAU10005

PAU10006

PAU10007

PAU10008 PAU10009

COU100

PAU10107

PAU10104 PAU10105 PAU10106

PAU10103 PAU10102 PAU10101 PAU10100 COU101 PAU10207

PAU10204 PAU10205

PAU10206

PAU10203 PAU10202

PAU10201

COU102

PAU10306

PAU10305 PAU10304 PAU10303

PAU10302 PAU10301 PAU10300

COU103

PAU10406

PAU10405 PAU10404 PAU10403

PAU10402 PAU10401 PAU10400

COU104

PAU10506

PAU10505 PAU10504 PAU10503

PAU10502 PAU10501 PAU10500

COU105

PAU10606

PAU10605 PAU10604 PAU10603

PAU10602 PAU10601 PAU10600

COU106

PAU10706

PAU10705 PAU10704 PAU10703

PAU10702 PAU10701 PAU10700

COU107

PAU1080A1 PAU1080A2

PAU1080B1 PAU1080B2

PAU1080C1 PAU1080C2 COU108

PAU20001 PAU20002 PAU20003 PAU20004 PAU20005 PAU20006 PAU20007 PAU20008 PAU20009 PAU200010 PAU200011 PAU200012 PAU200013 PAU200014 PAU200015 PAU200016 PAU200017 PAU200018 PAU200019 PAU200020 PAU200021 PAU200022 PAU200023 PAU200024 PAU200025 PAU200026 PAU200027 PAU200028 PAU200029 PAU200030 PAU200031 PAU200032 PAU200033 PAU200034 PAU200035 PAU200036

PAU200037 PAU200038 PAU200039 PAU200040 PAU200041 PAU200042 PAU200043 PAU200044 PAU200045 PAU200046 PAU200047 PAU200048

COU200

PAXC20001

PAXC20002 COXC200

PAXC20101 PAXC20102

PAXC20103 PAXC20104 COXC201

Figure 8-3 AVR128DB48 Curiosity Nano Assembly Drawing Bottom

tcR

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20001 PAC20002 COC200

PAC20101 PAC20102 COC201

PAC20201 PAC20202 COC202 PAC20301

PAC20302 COC203

PAC20401

PAC20402 COC204

PAC20502

PAC20501 COC205

PAC20601

PAC20602 COC206 PAC20701

PAC20702 COC207 PAD10002 PAD10001 COD100

PAD20002

PAD20001 COD200

PAF10002

PAF10001 COF100

PAJ10002 PAJ10001 COJ100

PAJ10101 PAJ10102 COJ101

PAJ10201

PAJ10202

PAJ10203

PAJ10204

PAJ10205

PAJ10206 COJ102

PAJ10506

PAJ10507 PAJ10509

PAJ10508 PAJ105010

PAJ105011 PAJ10505

PAJ10504

PAJ10503

PAJ10502

PAJ10501

PAJ10500

COJ105

PAJ200056 PAJ200053

PAJ200028 PAJ20002 PAJ20001

PAJ200051 PAJ200050 PAJ200052 PAJ200049 PAJ200048 PAJ200047 PAJ200046 PAJ200045 PAJ200044 PAJ200043 PAJ200042 PAJ200041 PAJ200040 PAJ200039 PAJ200038 PAJ200037 PAJ200036 PAJ200035 PAJ200034 PAJ200033 PAJ200032 PAJ200031 PAJ200030 PAJ200029

PAJ20003 PAJ20004 PAJ20005 PAJ20006 PAJ20007 PAJ20008 PAJ20009 PAJ200010 PAJ200011 PAJ200012 PAJ200013 PAJ200014 PAJ200015 PAJ200016 PAJ200017 PAJ200018 PAJ200019 PAJ200020 PAJ200021 PAJ200022 PAJ200023 PAJ200026 PAJ200025 PAJ200024 PAJ200027

PAJ200054 PAJ200055 PAJ20000

COJ200

PAJ20102 PAJ20101 COJ201

PAJ20202 PAJ20201 COJ202

PAJ20302 PAJ20301 COJ203

PAJ20402 PAJ20401 COJ204

PAJ20502 PAJ20501 COJ205

PAJ20602 PAJ20601 COJ206 PAJ20702 PAJ20701 COJ207

PAJ20802 PAJ20801 COJ208

PAJ20902 PAJ20901 COJ209

PAJ21001 PAJ21002 PAJ21005 COJ210

PAJ21102 PAJ21101 PAJ21105 COJ211

PAJ21202 PAJ21201 COJ212

PAJ21301 PAJ21302 PAJ21305 COJ213

PAJ21401 PAJ21402 PAJ21405 COJ214

PAJ21502 PAJ21501 COJ215

PAJ21602 PAJ21601 COJ216 PAJ21702 PAJ21701 COJ217

COLABEL1

PAQ10101 PAQ10102 PAQ10103 PAQ10100

COQ101 PAR10002

PAR10001 COR100 PAR10101 PAR10102 COR101

PAR10202 PAR10201 COR102

PAR10302 PAR10301 COR103

PAR10401 PAR10402 COR104

PAR10502

PAR10501 COR105

PAR10601 PAR10602 COR106

PAR10702 PAR10701 COR107

PAR10801

PAR10802 COR108

PAR10901 PAR10902 COR109

PAR11001 PAR11002 COR110

PAR11101 PAR11102 COR111

PAR11201 PAR11202 COR112

PAR11302 PAR11301 COR113

PAR20001 PAR20002 COR200 PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203 PAR20401 PAR20402 COR204

PASW20003

PASW20004 PASW20002

PASW20001 COSW200

PATP10001 COTP100

PATP10101 COTP101 PAU100033

PAU100032 PAU100031 PAU100030 PAU100029 PAU100028 PAU100027 PAU100026 PAU100025 PAU100024

PAU100023

PAU100022

PAU100021

PAU100020

PAU100019

PAU100018

PAU100017 PAU100016 PAU100015 PAU100014 PAU100013 PAU100012 PAU100011 PAU100010

PAU10001

PAU10002

PAU10003

PAU10004

PAU10005

PAU10006

PAU10007

PAU10008 PAU10009

COU100

PAU10107

PAU10104 PAU10105 PAU10106

PAU10103 PAU10102 PAU10101 PAU10100 COU101 PAU10207

PAU10204 PAU10205

PAU10206

PAU10203 PAU10202

PAU10201

COU102

PAU10306

PAU10305 PAU10304 PAU10303

PAU10302 PAU10301 PAU10300

COU103

PAU10406

PAU10405 PAU10404 PAU10403

PAU10402 PAU10401 PAU10400

COU104

PAU10506

PAU10505 PAU10504 PAU10503

PAU10502 PAU10501 PAU10500

COU105

PAU10606

PAU10605 PAU10604 PAU10603

PAU10602 PAU10601 PAU10600

COU106

PAU10706

PAU10705 PAU10704 PAU10703

PAU10702 PAU10701 PAU10700

COU107

PAU1080A1 PAU1080A2

PAU1080B1 PAU1080B2

PAU1080C1 PAU1080C2 COU108

PAU20001 PAU20002 PAU20003 PAU20004 PAU20005 PAU20006 PAU20007 PAU20008 PAU20009 PAU200010 PAU200011 PAU200012 PAU200013 PAU200014 PAU200015 PAU200016 PAU200017 PAU200018 PAU200019 PAU200020 PAU200021 PAU200022 PAU200023 PAU200024 PAU200025 PAU200026 PAU200027 PAU200028 PAU200029 PAU200030 PAU200031 PAU200032 PAU200033 PAU200034 PAU200035 PAU200036

PAU200037 PAU200038 PAU200039 PAU200040 PAU200041 PAU200042 PAU200043 PAU200044 PAU200045 PAU200046 PAU200047 PAU200048

COU200

PAXC20001

PAXC20002 COXC200

PAXC20101 PAXC20102

PAXC20103 PAXC20104 COXC201

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 36

83 Curiosity Nano Base for Click boardstrade

Figure 8-4 AVR128DB48 Curiosity Nano Pinout Mapping

US

B

DE

BU

GG

ER

AV

R1

28

DB

48

SW

0

LE

D0

PS

LE

DNC

NC

ID

ID

CDC RX

CDCRX

USART3 TX

PB0

CDC TX

CDCTX

USART3 RX

PB1

DBG1

DBG1

PB3

LED0

DBG2

DBG2

PB2

SW0

PF4

PF4

USART2 TX

PF5

PF5

USART2 RX

PA2

PA2

TWI0 SDA

PA3

PA3

TWI0 SCL

PA4

PA4

SPI0 MOSI

PA5

PA5

SPI0 MISO

PA6

PA6

SPI0 SCK

PA7

PA7

SPI0 SS

GND

GND

PB0

PB0

USART3 TX

CDC RX

PB1

PB1

USART3 RX

CDC TX

PF2

PF2

PF3

PF3

PC0

PC0

PC1

PC1

PC2

PC2

PC3

PC3

GND

GND

(PA0)

(PA0)

XTALHF1

(PA1)

(PA1)

XTALHF2

PB2

PB2

SW0

PB3

PB3

LED0

VBUS

VBUS

VOFF

VOFF

DBG3

DBG3

PF6

DBG0

DBG0

UPDI

GND

GND

VTG

VTG

PD6

PD6

AIN6

PD3

PD3

AIN3

OP0 INN

PD2

PD2

AIN2

OP0 OUT

TCA0 WO2

PD1

PD1

AIN1

OP0 INP

TCA0 WO1

PD0

PD0

AIN0

TCA0 WO0

PD7

PD7

AIN7

OP1 INN

PD5

PD5

AIN5

OP1 OUT

PD4

PD4

AIN4

OP1 INP

GND

GND

PE3

PE3

OP2 INN

PE2

PE2

OP2 OUT

PE1

PE1

OP2 INP

PE0

PE0

PC7

PC7

PC6

PC6

PC5

PC5

PC4

PC4

GND

GND

PB5

PB5

PB4

PB4

(PF1)

(PF1)

XTAL32K2

(PF0)

(PF0)

XTAL32K1

DE

BU

GG

ER

AV

R1

28

DB

48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

MVIO

OPAMP

Shared pin

AV

R1

28

DB

48

Cu

rio

sity

Na

no

1

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

2

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

3

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

Xp

lain

ed

Pro

Ext

en

sio

nE

XT

11

2

19

20

Cu

rio

sity

Na

no

Ba

sefo

r cl

ick

bo

ard

sT

M

PD4

PD0

PD6

PD3

PA7

PF5

PA6

PF4

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

PD5

PD1

PF3

PF2

PE2

PB1

PA6

PB0

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

PD7

PD2

PE1

PE0

PE3

PF5

PA6

PF4

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

ID

GND

PD5

PD7

PF3

PE1

PD1

PD2

PF2

PE3

PA2

PA3

PB1

PB0

PE2

PA4

PA5

PA6

GND

+33V

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 37

84 Disconnecting the On-board DebuggerThe on-board debugger and level shifters can be completely disconnected from the AVR128DB48

The block diagram below shows all connections between the debugger and the AVR128DB48 The rounded boxesrepresent connections to the board edge The signal names shown are also printed in silkscreen on the bottom sideof the board

To disconnect the debugger cut the straps shown in Figure 8-6

Attention  Cutting the GPIO straps to the on-board debugger will disable the virtual serial portprogramming debugging and data streaming Cutting the power supply strap will disconnect the on-boardpower supply

Tip  Any connection that is cut can be reconnected using solder Alternatively a 0Ω 0402 resistor can bemounted

Tip  When the debugger is disconnected an external debugger can be connected to holes shown in Figure 8-6 Details about connecting an external debugger are described in 46 Connecting ExternalDebuggers

Figure 8-5  On-Board Debugger Connections Block Diagram

DE

BU

GG

ER

TARGETLevel-Shift

PA04PA06PA07PA08PA16PA00PA01

USB

DIR x 5

VCC_P3V3

VBUS

VC

C_L

EV

EL

VC

C_T

AR

GE

TDBG0DBG1DBG2DBG3CDC TXCDC RX

CDC RX

CDC TX

DBG3

DBG2

DBG1

DBG0

GPIO straps

LDO

VOFF

LDO

VBUS VTG

VCC_EDGE

Power Supply strap Target Power strap

UART RXUART TX

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 38

Figure 8-6 On-Board Debugger Connection Cut Straps

GPIO straps (bottom side) Power Supply strap (top side)

85 Getting Started with IARIAR Embedded Workbenchreg for AVRreg is a proprietary high-efficiency compiler not based on GCC Programming anddebugging of AVR128DB48 Curiosity Nano is supported in IARtrade Embedded Workbench for AVR using the Atmel-ICEinterface Some initial settings must be set up in the project to get the programming and debugging to work

The following steps will explain how to get your project ready for programming and debugging

1 Make sure you have opened the project you want to configure Open the OPTIONS dialog for the project2 In the category General Options select the Target tab Select the device for the project or if not listed the

core of the device as shown in Figure 8-73 In the category Debugger select the Setup tab Select Atmel-ICE as the driver as shown in Figure 8-84 In the category Debugger gt Atmel-ICE select the Atmel-ICE 1 tab Select UPDI as the interface and

optionally select the UPDI frequency as shown in Figure 8-9

Info  If the selection of Debug Port (mentioned in step 4) is grayed out the interface is preselected andthe user can skip this configuration step

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 39

Figure 8-7 Select Target Device

Figure 8-8 Select Debugger

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 40

Figure 8-9 Configure Interface

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 41

The Microchip Website

Microchip provides online support via our website at wwwmicrochipcom This website is used to make files andinformation easily available to customers Some of the content available includes

bull Product Support ndash Data sheets and errata application notes and sample programs design resources userrsquosguides and hardware support documents latest software releases and archived software

bull General Technical Support ndash Frequently Asked Questions (FAQs) technical support requests onlinediscussion groups Microchip design partner program member listing

bull Business of Microchip ndash Product selector and ordering guides latest Microchip press releases listing ofseminars and events listings of Microchip sales offices distributors and factory representatives

Product Change Notification Service

Microchiprsquos product change notification service helps keep customers current on Microchip products Subscribers willreceive email notification whenever there are changes updates revisions or errata related to a specified productfamily or development tool of interest

To register go to wwwmicrochipcompcn and follow the registration instructions

Customer Support

Users of Microchip products can receive assistance through several channels

bull Distributor or Representativebull Local Sales Officebull Embedded Solutions Engineer (ESE)bull Technical Support

Customers should contact their distributor representative or ESE for support Local sales offices are also available tohelp customers A listing of sales offices and locations is included in this document

Technical support is available through the website at wwwmicrochipcomsupport

Microchip Devices Code Protection Feature

Note the following details of the code protection feature on Microchip devices

bull Microchip products meet the specifications contained in their particular Microchip Data Sheetbull Microchip believes that its family of products is secure when used in the intended manner and under normal

conditionsbull There are dishonest and possibly illegal methods being used in attempts to breach the code protection features

of the Microchip devices We believe that these methods require using the Microchip products in a manneroutside the operating specifications contained in Microchiprsquos Data Sheets Attempts to breach these codeprotection features most likely cannot be accomplished without violating Microchiprsquos intellectual property rights

bull Microchip is willing to work with any customer who is concerned about the integrity of its codebull Neither Microchip nor any other semiconductor manufacturer can guarantee the security of its code Code

protection does not mean that we are guaranteeing the product is ldquounbreakablerdquo Code protection is constantlyevolving We at Microchip are committed to continuously improving the code protection features of our productsAttempts to break Microchiprsquos code protection feature may be a violation of the Digital Millennium Copyright ActIf such acts allow unauthorized access to your software or other copyrighted work you may have a right to suefor relief under that Act

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 42

Legal Notice

Information contained in this publication is provided for the sole purpose of designing with and using Microchipproducts Information regarding device applications and the like is provided only for your convenience and may besuperseded by updates It is your responsibility to ensure that your application meets with your specifications

THIS INFORMATION IS PROVIDED BY MICROCHIP ldquoAS ISrdquo MICROCHIP MAKES NO REPRESENTATIONS ORWARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED WRITTEN OR ORAL STATUTORY OROTHERWISE RELATED TO THE INFORMATION INCLUDING BUT NOT LIMITED TO ANY IMPLIEDWARRANTIES OF NON-INFRINGEMENT MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSEOR WARRANTIES RELATED TO ITS CONDITION QUALITY OR PERFORMANCE

IN NO EVENT WILL MICROCHIP BE LIABLE FOR ANY INDIRECT SPECIAL PUNITIVE INCIDENTAL ORCONSEQUENTIAL LOSS DAMAGE COST OR EXPENSE OF ANY KIND WHATSOEVER RELATED TO THEINFORMATION OR ITS USE HOWEVER CAUSED EVEN IF MICROCHIP HAS BEEN ADVISED OF THEPOSSIBILITY OR THE DAMAGES ARE FORESEEABLE TO THE FULLEST EXTENT ALLOWED BY LAWMICROCHIPS TOTAL LIABILITY ON ALL CLAIMS IN ANY WAY RELATED TO THE INFORMATION OR ITS USEWILL NOT EXCEED THE AMOUNT OF FEES IF ANY THAT YOU HAVE PAID DIRECTLY TO MICROCHIP FORTHE INFORMATION Use of Microchip devices in life support andor safety applications is entirely at the buyerrsquos riskand the buyer agrees to defend indemnify and hold harmless Microchip from any and all damages claims suits orexpenses resulting from such use No licenses are conveyed implicitly or otherwise under any Microchip intellectualproperty rights unless otherwise stated

Trademarks

The Microchip name and logo the Microchip logo Adaptec AnyRate AVR AVR logo AVR Freaks BesTimeBitCloud chipKIT chipKIT logo CryptoMemory CryptoRF dsPIC FlashFlex flexPWR HELDO IGLOO JukeBloxKeeLoq Kleer LANCheck LinkMD maXStylus maXTouch MediaLB megaAVR Microsemi Microsemi logo MOSTMOST logo MPLAB OptoLyzer PackeTime PIC picoPower PICSTART PIC32 logo PolarFire Prochip DesignerQTouch SAM-BA SenGenuity SpyNIC SST SST Logo SuperFlash Symmetricom SyncServer TachyonTempTrackr TimeSource tinyAVR UNIO Vectron and XMEGA are registered trademarks of Microchip TechnologyIncorporated in the USA and other countries

APT ClockWorks The Embedded Control Solutions Company EtherSynch FlashTec Hyper Speed ControlHyperLight Load IntelliMOS Libero motorBench mTouch Powermite 3 Precision Edge ProASIC ProASIC PlusProASIC Plus logo Quiet-Wire SmartFusion SyncWorld Temux TimeCesium TimeHub TimePictra TimeProviderVite WinPath and ZL are registered trademarks of Microchip Technology Incorporated in the USA

Adjacent Key Suppression AKS Analog-for-the-Digital Age Any Capacitor AnyIn AnyOut BlueSky BodyComCodeGuard CryptoAuthentication CryptoAutomotive CryptoCompanion CryptoController dsPICDEMdsPICDEMnet Dynamic Average Matching DAM ECAN EtherGREEN In-Circuit Serial Programming ICSPINICnet Inter-Chip Connectivity JitterBlocker KleerNet KleerNet logo memBrain Mindi MiWi MPASM MPFMPLAB Certified logo MPLIB MPLINK MultiTRAK NetDetach Omniscient Code Generation PICDEMPICDEMnet PICkit PICtail PowerSmart PureSilicon QMatrix REAL ICE Ripple Blocker SAM-ICE Serial QuadIO SMART-IS SQI SuperSwitcher SuperSwitcher II Total Endurance TSHARC USBCheck VariSenseViewSpan WiperLock Wireless DNA and ZENA are trademarks of Microchip Technology Incorporated in the USAand other countries

SQTP is a service mark of Microchip Technology Incorporated in the USA

The Adaptec logo Frequency on Demand Silicon Storage Technology and Symmcom are registered trademarks ofMicrochip Technology Inc in other countries

GestIC is a registered trademark of Microchip Technology Germany II GmbH amp Co KG a subsidiary of MicrochipTechnology Inc in other countries

All other trademarks mentioned herein are property of their respective companiescopy 2020 Microchip Technology Incorporated Printed in the USA All Rights Reserved

ISBN 978-1-5224-6667-3

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 43

Quality Management SystemFor information regarding Microchiprsquos Quality Management Systems please visit wwwmicrochipcomquality

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 44

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupportwwwmicrochipcomsupportWeb AddresswwwmicrochipcomAtlantaDuluth GATel 678-957-9614Fax 678-957-1455Austin TXTel 512-257-3370BostonWestborough MATel 774-760-0087Fax 774-760-0088ChicagoItasca ILTel 630-285-0071Fax 630-285-0075DallasAddison TXTel 972-818-7423Fax 972-818-2924DetroitNovi MITel 248-848-4000Houston TXTel 281-894-5983IndianapolisNoblesville INTel 317-773-8323Fax 317-773-5453Tel 317-536-2380Los AngelesMission Viejo CATel 949-462-9523Fax 949-462-9608Tel 951-273-7800Raleigh NCTel 919-844-7510New York NYTel 631-435-6000San Jose CATel 408-735-9110Tel 408-436-4270Canada - TorontoTel 905-695-1980Fax 905-695-2078

Australia - SydneyTel 61-2-9868-6733China - BeijingTel 86-10-8569-7000China - ChengduTel 86-28-8665-5511China - ChongqingTel 86-23-8980-9588China - DongguanTel 86-769-8702-9880China - GuangzhouTel 86-20-8755-8029China - HangzhouTel 86-571-8792-8115China - Hong Kong SARTel 852-2943-5100China - NanjingTel 86-25-8473-2460China - QingdaoTel 86-532-8502-7355China - ShanghaiTel 86-21-3326-8000China - ShenyangTel 86-24-2334-2829China - ShenzhenTel 86-755-8864-2200China - SuzhouTel 86-186-6233-1526China - WuhanTel 86-27-5980-5300China - XianTel 86-29-8833-7252China - XiamenTel 86-592-2388138China - ZhuhaiTel 86-756-3210040

India - BangaloreTel 91-80-3090-4444India - New DelhiTel 91-11-4160-8631India - PuneTel 91-20-4121-0141Japan - OsakaTel 81-6-6152-7160Japan - TokyoTel 81-3-6880- 3770Korea - DaeguTel 82-53-744-4301Korea - SeoulTel 82-2-554-7200Malaysia - Kuala LumpurTel 60-3-7651-7906Malaysia - PenangTel 60-4-227-8870Philippines - ManilaTel 63-2-634-9065SingaporeTel 65-6334-8870Taiwan - Hsin ChuTel 886-3-577-8366Taiwan - KaohsiungTel 886-7-213-7830Taiwan - TaipeiTel 886-2-2508-8600Thailand - BangkokTel 66-2-694-1351Vietnam - Ho Chi MinhTel 84-28-5448-2100

Austria - WelsTel 43-7242-2244-39Fax 43-7242-2244-393Denmark - CopenhagenTel 45-4485-5910Fax 45-4485-2829Finland - EspooTel 358-9-4520-820France - ParisTel 33-1-69-53-63-20Fax 33-1-69-30-90-79Germany - GarchingTel 49-8931-9700Germany - HaanTel 49-2129-3766400Germany - HeilbronnTel 49-7131-72400Germany - KarlsruheTel 49-721-625370Germany - MunichTel 49-89-627-144-0Fax 49-89-627-144-44Germany - RosenheimTel 49-8031-354-560Israel - RarsquoananaTel 972-9-744-7705Italy - MilanTel 39-0331-742611Fax 39-0331-466781Italy - PadovaTel 39-049-7625286Netherlands - DrunenTel 31-416-690399Fax 31-416-690340Norway - TrondheimTel 47-72884388Poland - WarsawTel 48-22-3325737Romania - BucharestTel 40-21-407-87-50Spain - MadridTel 34-91-708-08-90Fax 34-91-708-08-91Sweden - GothenbergTel 46-31-704-60-40Sweden - StockholmTel 46-8-5090-4654UK - WokinghamTel 44-118-921-5800Fax 44-118-921-5820

Worldwide Sales and Service

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 45

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Board Overview
      • 2 Getting Started
        • 21 Quick Start
          • 211 Driver Installation
          • 212 Kit Window
          • 213 MPLABreg X IDE Device Family Packs
          • 214 Atmel Studio 7 Device Family Pack
            • 22 Design Documentation and Relevant Links
              • 3 Preprogrammed Application
              • 4 Curiosity Nano
                • 41 On-Board Debugger Overview
                  • 411 Debugger
                  • 412 Virtual Serial Port (CDC)
                    • 4121 Overview
                    • 4122 Operating System Support
                    • 4123 Limitations
                    • 4124 Signaling
                    • 4125 Advanced Use
                      • 413 Mass Storage Device
                        • 4131 Mass Storage Device Implementation
                        • 4132 Limitations of Drag-and-Drop Programming
                        • 4133 Special Commands
                          • 414 Data Gateway Interface (DGI)
                            • 4141 Debug GPIO
                            • 4142 Timestamping
                                • 42 Curiosity Nano Standard Pinout
                                • 43 Power Supply
                                  • 431 Target Regulator
                                  • 432 External Supply
                                  • 433 VBUS Output Pin
                                  • 434 Power Supply Exceptions
                                    • 44 Low-Power Measurement
                                    • 45 Programming External Microcontrollers
                                      • 451 Supported Devices
                                      • 452 Software Configuration
                                      • 453 Hardware Modifications
                                      • 454 Connecting to External Microcontrollers
                                        • 46 Connecting External Debuggers
                                          • 5 Hardware User Guide
                                            • 51 Connectors
                                              • 511 AVR128DB48 Curiosity Nano Pinout
                                              • 512 Using Pin Headers
                                              • 513 Multi-Voltage IO
                                              • 514 Operational Amplifiers
                                                • 52 Peripherals
                                                  • 521 LED
                                                  • 522 Mechanical Switch
                                                  • 523 32768 kHz Crystal
                                                  • 524 1600 MHz Crystal
                                                  • 525 On-Board Debugger Implementation
                                                    • 5251 On-Board Debugger Connections
                                                      • 6 Hardware Revision History and Known Issues
                                                        • 61 Identifying Product ID and Revision
                                                        • 62 Revision 3
                                                        • 63 Revision 2
                                                          • 7 Document Revision History
                                                          • 8 Appendix
                                                            • 81 Schematic
                                                            • 82 Assembly Drawing
                                                            • 83 Curiosity Nano Base for Click boardstrade
                                                            • 84 Disconnecting the On-board Debugger
                                                            • 85 Getting Started with IAR
                                                              • The Microchip Website
                                                              • Product Change Notification Service
                                                              • Customer Support
                                                              • Microchip Devices Code Protection Feature
                                                              • Legal Notice
                                                              • Trademarks
                                                              • Quality Management System
                                                              • Worldwide Sales and Service
Page 10: AVR128DB48 Curiosity Nano Hardware User Guideww1.microchip.com/downloads/en/DeviceDoc/AVR128DB48-Curiosit… · 4. Curiosity Nano Curiosity Nano is an evaluation platform of small

Info  For all operating systems Be sure to use a terminal emulator that supports DTR signaling See 4124 Signaling

4123 LimitationsNot all UART features are implemented in the on-board debugger CDC The constraints are outlined here

bull Baud rate Must be in the range of 1200 bps to 500 kbps Any baud rate outside this range will be set to theclosest limit without warning Baud rate can be changed on-the-fly

bull Character format Only 8-bit characters are supportedbull Parity Can be odd even or nonebull Hardware flow control Not supportedbull Stop bits One or two bits are supported

4124 SignalingDuring USB enumeration the host OS will start both communication and data pipes of the CDC interface At thispoint it is possible to set and read back the baud rate and other UART parameters of the CDC but data sending andreceiving will not be enabled

When a terminal connects on the host it must assert the DTR signal As this is a virtual control signal implementedon the USB interface it is not physically present on the board Asserting the DTR signal from the host will indicate tothe on-board debugger that a CDC session is active The debugger will then enable its level shifters (if available) andstart the CDC data send and receive mechanisms

Deasserting DTR in debugger firmware version 120 or earlier has the following behaviorbull Debugger UART receiver is disabled so no further data will be transferred to the host computerbull Debugger UART transmitter will continue to send data that is queued for sending but no new data is accepted

from the host computerbull Level shifters (if available) are not disabled so the debugger CDC TX line remains driven

Deasserting DTR in debugger firmware version 121 or later has the following behaviorbull Debugger UART receiver is disabled so no further data will be transferred to the host computerbull Debugger UART transmitter will continue to send data that is queued for sending but no new data is accepted

from the host computerbull Once the ongoing transmission is complete level shifters (if available) are disabled so the debugger CDC TX

line will become high-impedance

Remember  Set up the terminal emulator to assert the DTR signal Without the signal the on-boarddebugger will not send or receive any data through its UART

Tip  The on-board debuggerrsquos CDC TX pin will not be driven until the CDC interface is enabled by thehost computer Also there are no external pull-up resistors on the CDC lines connecting the debugger andthe target which means that during power-up these lines are floating To avoid any glitches resulting inunpredictable behavior like framing errors the target device should enable the internal pull-up resistor onthe pin connected to the debuggerrsquos CDC TX pin

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 10

4125 Advanced Use

CDC Override ModeIn normal operation the on-board debugger is a true UART bridge between the host and the device However incertain use cases the on-board debugger can override the basic operating mode and use the CDC TX and RX pinsfor other purposes

Dropping a text file into the on-board debuggerrsquos mass storage drive can be used to send characters out of thedebuggerrsquos CDC TX pin The filename and extension are trivial but the text file must start with the charactersCMDSEND_UART=

Debugger firmware version 120 or earlier has the following limitationsbull The maximum message length is 50 characters ndash all remaining data in the frame are ignoredbull The default baud rate used in this mode is 9600 bps but if the CDC is already active or has been configured

the previously used baud rate still applies

Debugger firmware version 121 and later has the following limitationsfeaturesbull The maximum message length may vary depending on the MSCSCSI layer timeouts on the host computer

andor operating system A single SCSI frame of 512 bytes (498 characters of payload) is guaranteed and filesof up to 4 KB will work on most systems The transfer will complete on the first NULL character encountered inthe file

bull The baud rate used is always 9600 bps for the default commandCMDSEND_UART=

The CDC Override Mode should not be used simultaneously with data transfer over CDCterminal If a CDCterminal session is active at the time a file is received via CDC Override Mode it will be suspended for theduration of the operation and resumed once complete

bull Additional commands are supported with explicit baud ratesCMDSEND_9600=

CMDSEND_115200=

CMDSEND_460800=

USB-Level Framing ConsiderationsSending data from the host to the CDC can be done byte-wise or in blocks which will be chunked into 64-byte USBframes Each such frame will be queued up for sending to the debuggerrsquos CDC TX pin Transferring a small amountof data per frame can be inefficient particularly at low baud rates as the on-board debugger buffers frames and notbytes A maximum of four 64-byte frames can be active at any time The on-board debugger will throttle the incomingframes accordingly Sending full 64-byte frames containing data is the most efficient method

When receiving data on the debuggerrsquos CDC RX pin the on-board debugger will queue up the incoming bytes into64-byte frames which are sent to the USB queue for transmission to the host when they are full Incomplete framesare also pushed to the USB queue at approximately 100 ms intervals triggered by USB start-of-frame tokens Up toeight 64-byte frames can be active at any time

If the host (or the software running on it) fails to receive data fast enough an overrun will occur When this happensthe last-filled buffer frame will be recycled instead of being sent to the USB queue and a full frame of data will belost To prevent this occurrence the user must ensure that the CDC data pipe is being read continuously or theincoming data rate must be reduced

413 Mass Storage DeviceThe on-board debugger includes a simple Mass Storage Device implementation which is accessible for readwriteoperations via the host operating system to which it is connected

It providesbull Read access to basic text and HTML files for detailed kit information and support

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 11

bull Write access for programming Intelreg HEX formatted files into the target devicersquos memorybull Write access for simple text files for utility purposes

4131 Mass Storage Device ImplementationThe on-board debugger implements a highly optimized variant of the FAT12 file system that has several limitationspartly due to the nature of FAT12 itself and optimizations made to fulfill its purpose for its embedded application

The Curiosity Nano USB device is USB Chapter 9-compliant as a mass storage device but does not in any way fulfillthe expectations of a general purpose mass storage device This behavior is intentional

When using the Windows operating system the on-board debugger enumerates as a Curiosity Nano USB Devicethat can be found in the disk drives section of the device manager The CURIOSITY drive appears in the file managerand claims the next available drive letter in the system

The CURIOSITY drive contains approximately one MB of free space This does not reflect the size of the targetdevicersquos Flash in any way When programming an Intelreg HEX file the binary data are encoded in ASCII withmetadata providing a large overhead so one MB is a trivially chosen value for disk size

It is not possible to format the CURIOSITY drive When programming a file to the target the filename may appear inthe disk directory listing This is merely the operating systemrsquos view of the directory which in reality has not beenupdated It is not possible to read out the file contents Removing and replugging the board will return the file systemto its original state but the target will still contain the application that has been previously programmed

To erase the target device copy a text file starting with ldquoCMDERASErdquo onto the disk

By default the CURIOSITY drive contains several read-only files for generating icons as well as reporting status andlinking to further information

bull AUTORUNICO ndash icon file for the Microchip logobull AUTORUNINF ndash system file required for Windows Explorer to show the icon filebull KIT-INFOHTM ndash redirect to the development board websitebull KIT-INFOTXT ndash a text file containing details about the boardrsquos debugger firmware version board name USB

serial number device and drag-and-drop supportbull STATUSTXT ndash a text file containing the programming status of the board

Info  STATUSTXT is dynamically updated by the on-board debugger The contents may be cached bythe OS and therefore do not reflect the correct status

4132 Limitations of Drag-and-Drop Programming

Lock BitsLock bits included in the hex file will be ignored when using drag-and-drop programming To program lock bits useMPLABreg X IDE or Atmel Studio 7

Enabling CRC Check in FusesIt is not advisable to enable the CRC check in the target devicersquos fuses when using drag-and-drop programming Thisis because a subsequent chip erase (which does not affect fuse bits) will effect a CRC mismatch and the applicationwill fail to boot To recover a target from this state a chip erase must be done using MPLABreg X IDE orAtmel Studio 7 which will automatically clear the CRC fuses after erasing

4133 Special CommandsSeveral utility commands are supported by copying text files to the mass storage disk The filename or extension isirrelevant ndash the command handler reacts to content only

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 12

Table 4-2 Special File Commands

Command Content Description

CMDERASE Executes a chip erase of the target

CMDSEND_UART= Sends a string of characters to the CDC UART See ldquoCDCOverride Moderdquo

CMDSEND_9600=CMDSEND_115200=CMDSEND_460800=

Sends a string of characters to the CDC UART at the baud ratespecified Note that only the baud rates explicitly specified hereare supported See ldquoCDC Override Moderdquo (Debugger firmwarev121 or newer)

CMDRESET Resets the target device by entering Programming mode andthen exiting Programming mode immediately thereafter Exacttiming can vary according to the programming interface of thetarget device (Debugger firmware v116 or newer)

CMDPOWERTOGGLE Powers down the target and restores power after a 100 msdelay If external power is provided this has no effect(Debugger firmware v116 or newer)

CMD0V Powers down the target device by disabling the target supplyregulator If external power is provided this has no effect(Debugger firmware v116 or newer)

CMD1V8 Sets the target voltage to 18V If external power is providedthis has no effect (Debugger firmware v121 or newer)

CMD3V3 Sets the target voltage to 33V If external power is providedthis has no effect (Debugger firmware v116 or newer)

CMD5V0 Sets the target voltage to 50V If external power is providedthis has no effect (Debugger firmware v116 or newer)

Info  The commands listed here are triggered by the content being sent to the mass storage emulateddisk and no feedback is provided in the case of either success or failure

414 Data Gateway Interface (DGI)Data Gateway Interface (DGI) is a USB interface for transporting raw and timestamped data between on-boarddebuggers and host computer-based visualization tools MPLAB Data Visualizer is used on the host computer todisplay debug GPIO data It is available as a plug-in for MPLABreg X IDE or a stand-alone application that can be usedin parallel with MPLABreg X IDE or Atmel Studio 7

Although DGI encompasses several physical data interfaces the AVR128DB48 Curiosity Nano implementationincludes logic analyzer channels

bull Two debug GPIO channels (also known as DGI GPIO)

4141 Debug GPIODebug GPIO channels are timestamped digital signal lines connecting the target application to a host computervisualization application They are typically used to plot the occurrence of low-frequency events on a time-axis ndash forexample when certain application state transitions occur

The figure below shows the monitoring of the digital state of a mechanical switch connected to a debug GPIO inMPLAB Data Visualizer

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 13

Figure 4-2 Monitoring Debug GPIO with MPLABreg Data Visualizer

Debug GPIO channels are timestamped so the resolution of DGI GPIO events is determined by the resolution of theDGI timestamp module

Important  Although bursts of higher-frequency signals can be captured the useful frequency range ofsignals for which debug GPIO can be used is up to about 2 kHz Attempting to capture signals above thisfrequency will result in data saturation and overflow which may cause the DGI session to be aborted

4142 TimestampingDGI sources are timestamped as they are captured by the debugger The timestamp counter implemented in theCuriosity Nano debugger increments at 2 MHz frequency providing a timestamp resolution of a half microsecond

42 Curiosity Nano Standard PinoutThe 12 edge connections closest to the USB connector on Curiosity Nano boards have a standardized pinout Theprogramdebug pins have different functions depending on the target programming interface as shown in the tableand figure below

Table 4-3 Curiosity Nano Standard Pinout

Debugger Signal Target MCU Description

ID mdash ID line for extensions

CDC TX UART RX USB CDC TX line

CDC RX UART TX USB CDC RX line

DBG0 UPDI Debug data line

DBG1 GPIO1 debug GPIO1

DBG2 GPIO0 debug GPIO0

DBG3 RESET Reset line

NC mdash No connect

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 14

continuedDebugger Signal Target MCU Description

VBUS mdash VBUS voltage for external use

VOFF mdash Voltage Off input Disables the target regulator andtarget voltage when pulled low

VTG mdash Target voltage

GND mdash Common ground

Figure 4-3 Curiosity Nano Standard Pinout

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

43 Power SupplyThe board is powered through the USB port and contains two LDO regulators one to generate 33V for the on-boarddebugger and an adjustable LDO regulator for the target microcontroller AVR128DB48 and its peripherals Thevoltage from the USB connector can vary between 44V to 525V (according to the USB specification) and will limitthe maximum voltage to the target The figure below shows the entire power supply system on AVR128DB48Curiosity Nano

Figure 4-4 Power Supply Block Diagram

USBTarget MCU

Power source

Cut strap

Power consumer P3V3DEBUGGER

Power converter

DEBUGGERRegulator

VUSB

TargetRegulator

Power Supply strap

Adjust

Level shifter

VLVLVREG

IO IO GPIOstraps

IO

OnOffMeasure OnOff

ID systemVOFF

PTC Fuse

Power protection

VBUS

Target Power strap

VTG

431 Target RegulatorThe target voltage regulator is a MIC5353 variable output LDO The on-board debugger can adjust the voltage outputsupplied to the board target section by manipulating the MIC5353rsquos feedback voltage The hardware implementation

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 15

is limited to an approximate voltage range from 17V to 51V Additional output voltage limits are configured in thedebugger firmware to ensure that the output voltage never exceeds the hardware limits of the AVR128DB48microcontroller The voltage limits configured in the on-board debugger on AVR128DB48 Curiosity Nano are 18ndash55V

Info  The target voltage is set to 33V when the board is manufactured It can be changed throughMPLABreg X IDE project properties and in the Atmel Studio 7 device programming dialog Any change tothe target voltage is persistent even after a power toggle The resolution is less than 5 mV but may belimited to 10 mV by the adjustment program

Info  Voltage settings that are set up in MPLABreg X IDE are not immediately applied to the board Thenew voltage setting is applied to the board when the debugger is accessed in any way like pushing theRefresh Debug Tool Status button in the project dashboard tab or programmingreading program memory

Info  There is a simple option to adjust the target voltage with a drag-and-drop command text file to theboard This supports a set of common target voltages See section 4133 Special Commands for furtherdetails

The MIC5353 supports a maximum current load of 500 mA It is an LDO regulator in a small package placed on asmall printed circuit board (PCB) and the thermal shutdown condition can be reached at lower loads than 500 mAThe maximum current load depends on the input voltage the selected output voltage and the ambient temperatureThe figure below shows the safe operating area for the regulator with an input voltage of 51V and an ambienttemperature of 23degC

Figure 4-5 Target Regulator Safe Operation Area

The voltage output of the target regulator is continuously monitored (measured) by the on-board debugger If it ismore than 100 mV overunder the voltage setting value an error condition will be flagged and the target voltageregulator will be turned off This will detect and handle any short-circuit conditions It will also detect and handle if anexternal voltage which causes VCC_TARGET to move outside of the voltage setting monitoring window of plusmn100 mVis suddenly applied to the VTG pin without setting the VOFF pin low

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 16

Info  If the external voltage is lower than the monitoring window lower limit (target voltage setting ndash 100mV) the on-board debugger status LED will blink rapidly If the external voltage is higher than themonitoring window upper limit (target voltage setting + 100 mV) the on-board debugger status LED willcontinue to shine If the external voltage is removed the status LED will start to blink rapidly until the on-board debugger detects the new situation and turns the target voltage regulator back on

432 External SupplyAVR128DB48 Curiosity Nano can be powered by an external voltage instead of the on-board target regulator Whenthe Voltage Off (VOFF) pin is shorted to ground (GND) the on-board debugger firmware disables the target regulatorand it is safe to apply an external voltage to the VTG pin

It is also safe to apply an external voltage to the VTG pin when no USB cable is plugged into the DEBUG connectoron the board

The VOFF pin can be tied lowlet go at any time This will be detected by a pin-change interrupt to the on-boarddebugger which controls the target voltage regulator accordingly

WARNINGApplying an external voltage to the VTG pin without shorting VOFF to GND may cause permanent damageto the board

WARNINGDo not apply any voltage to the VOFF pin Let the pin float to enable the power supply

WARNINGAbsolute maximum external voltage is 55V for the on-board level shifters and the standard operatingcondition of the AVR128DB48 is 18ndash55V Applying a higher voltage may cause permanent damage to theboard

Info  If an external voltage is applied without pulling the VOFF pin low and an external supply pulls thevoltage lower than the monitoring windowrsquos lower limit (target voltage setting - 100 mV) the on-boarddebugger status LED will blink rapidly and shut the on-board regulator off If an external voltage issuddenly removed when the VOFF pin is not pulled low the status LED will start to blink rapidly until theon-board debugger detects the new situation and switches the target voltage regulator back on

Programming debugging and data streaming is still possible with an external power supply ndash the debugger andsignal level shifters will be powered from the USB cable Both regulators the debugger and the level shifters arepowered down when the USB cable is removed

Info  In addition to the power consumed by the AVR128DB48 and its peripherals approximately 100 microAwill be drawn from any external power source to power the on-board level shifters and voltage monitorcircuitry when a USB cable is plugged in the DEBUG connector on the board When a USB cable is notplugged in some current is used to supply the level shifters voltage pins which have a worst-case currentconsumption of approximately 5 microA Typical values may be as low as 100 nA

433 VBUS Output PinAVR128DB48 Curiosity Nano has a VBUS output pin that can be used to power external components that need a 5Vsupply The VBUS output pin has a PTC fuse to protect the USB against short circuits A side effect of the PTC fuseis a voltage drop on the VBUS output with higher current loads The chart below shows the voltage versus the currentload of the VBUS output

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 17

Figure 4-6 VBUS Output Voltage vs Current

434 Power Supply ExceptionsThis is a summary of most exceptions that can occur with the power supply

Target Voltage Shuts DownThis can happen if the target section draws too much current at a given voltage This will cause the thermal shutdownsafety feature of the MIC5353 regulator to kick in To avoid this reduce the current load of the target section

Target Voltage Setting is Not ReachedThe maximum output voltage is limited by the USB input voltage (specified to be 44-525V) and the voltage dropover the MIC5353 regulator at a given voltage setting and current consumption If a higher output voltage is neededuse a USB power source that can provide a higher input voltage or use an external voltage supply on the VTG pin

Target Voltage is Different From SettingThis can be caused by an externally applied voltage to the VTG pin without setting the VOFF pin low If the targetvoltage differs more than 100 mV overunder the voltage setting it will be detected by the on-board debugger andthe internal voltage regulator will be shut down To fix this issue remove the applied voltage from the VTG pin andthe on-board debugger will enable the on-board voltage regulator when the new condition is detected Note that thePS LED will be blinking rapidly if the target voltage is below 100 mV of the setting but will be lit normally when it ishigher than 100 mV above the setting

No Or Very Low Target Voltage and PS LED is Blinking RapidlyThis can be caused by a full or partial short-circuit and is a special case of the issue mentioned above Remove theshort-circuit and the on-board debugger will re-enable the on-board target voltage regulator

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 18

No Target Voltage and PS LED is Lit 1This occurs if the target voltage is set to 00V To fix this set the target voltage to a value within the specified voltagerange for the target device

No Target Voltage and PS LED is Lit 2This can be the issue if power jumper J100 andor J101 is cut and the target voltage regulator is set to a value withinthe specified voltage range for the target device To fix this solder a wirebridge between the pads for J100J101 oradd a jumper on J101 if a pin header is mounted

VBUS Output Voltage is Low or Not PresentThis is most lightly caused by a high-current drain on VBUS and the protection fuse (PTC) will reduce the current orcut off completely Reduce the current consumption on the VBUS pin to fix this issue

44 Low-Power MeasurementPower to the AVR128DB48 is connected from the on-board power supply and VTG pin through a 100 mil pin headermarked with ldquoPOWERrdquo in silkscreen (J101) To measure the power consumption of the AVR128DB48 and otherperipherals connected to the board cut the Target Power strap and connect an ammeter over the strap

To measure the lowest possible power consumption follow these steps1 Cut the POWER strap with a sharp tool2 Solder a 1x2 100 mil pin header in the footprint3 Connect an ammeter to the pin header4 Write firmware that

41 Tri-states any IO connected to the on-board debugger42 Sets the microcontroller in its lowest power Sleep state

5 Program the firmware into the AVR128DB48

Figure 4-7 Target Power Strap

Target Power strap (top side)

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 19

Tip  A 100-mil pin header can be soldered into the Target Power strap (J101) footprint for easyconnection of an ammeter Once the ammeter is no longer needed place a jumper cap on the pin header

Info  The on-board level shifters will draw a small amount of current even when they are not in use Amaximum of 2 microA can be drawn from each IO pin connected to a level shifter for a total of 10 microA Keepany IO pin connected to a level shifter in tri-state to prevent leakage All IOs connected to the on-boarddebugger are listed in 5251 On-Board Debugger Connections To prevent any leakage to the on-boardlevel shifters they can be disconnected completely as described in 84 Disconnecting the On-boardDebugger

45 Programming External MicrocontrollersThe on-board debugger on AVR128DB48 Curiosity Nano can be used to program and debug microcontrollers onexternal hardware

451 Supported DevicesAll external AVR microcontrollers with the UPDI interface can be programmed and debugged with the on-boarddebugger with Atmel Studio

External SAM microcontrollers that have a Curiosity Nano Board can be programmed and debugged with the on-board debugger with Atmel Studio

AVR128DB48 Curiosity Nano can program and debug external AVR128DB48 microcontrollers with MPLAB X IDE

452 Software ConfigurationNo software configuration is required to program and debug the same device that is mounted on the board

To program and debug a different microcontroller than what is mounted on the board Atmel Studio must beconfigured to allow free selection of devices and programming interfaces

1 Navigate to Tools gt Options through the menu system at the top of the application2 Select the Tools gt Tool settings category in the options window3 Set the Hide unsupported devices option to False

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 20

Figure 4-8 Hide Unsupported Devices

Info  Atmel Studio allows any microcontroller and interface to be selected when Hide unsupporteddevices is set to False also microcontrollers and interfaces which are not supported by the on-boarddebugger

453 Hardware ModificationsThe on-board debugger is connected to the AVR128DB48 by default These connections must be removed beforeany external microcontroller can be programmed or debugged Cut the GPIO straps shown in the figure below with asharp tool to disconnect the AVR128DB48 from the on-board debugger

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 21

Figure 4-9 Programming and Debugging Connections to Debugger

GPIO straps (bottom side)

Info  Cutting the connections to the debugger will disable programming debugging and data streamingfrom the AVR128DB48 mounted on the board

Tip  Solder in 0Ω resistors across the footprints or short-circuit them with solder to reconnect the signalsbetween the on-board debugger and the AVR128DB48

454 Connecting to External MicrocontrollersThe figure and table below show where the programming and debugging signals must be connected to program anddebug external microcontrollers The on-board debugger can supply power to the external hardware or use anexternal voltage as a reference for its level shifters Read more about the power supply in 43 Power Supply

The on-board debugger and level shifters actively drive data and clock signals (DBG0 DBG1 and DBG2) used forprogramming and debugging and in most cases the external resistor on these signals can be ignored Pull-downresistors are required on the ICSPtrade data and clock signals to debug PICreg microcontrollers

DBG3 is an open-drain connection and requires a pull-up resistor to function

AVR128DB48 Curiosity Nano has a pull-up resistor R200 connected to its RESET signal (DBG3) The location ofthe pull-up resistor is shown in the 82 Assembly Drawing in the appendix

Remember bull Connect GND and VTG to the external microcontrollerbull Tie the VOFF pin to GND if the external hardware has its own power supplybull Make sure there are pull-down resistors on the ICSP data and clock signals (DBG0 and DBG1) to

support the debugging of PIC microcontrollers

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 22

Figure 4-10 Curiosity Nano Standard Pinout

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

Table 4-4 Programming and Debugging Interfaces

Curiosity Nano Pin UPDI ICSPtrade SWD

DBG0 UPDI DATA SWDIO

DBG1 mdash CLK SWCLK

DBG2 mdash mdash mdash

DBG3 mdash MCLR RESET

46 Connecting External DebuggersEven though there is an on-board debugger external debuggers can be connected directly to the AVR128DB48Curiosity Nano to programdebug the AVR128DB48 The on-board debugger keeps all the pins connected to theAVR128DB48 and board edge in tri-state when not actively used Therefore the on-board debugger will not interferewith any external debug tools

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 23

Figure 4-11 Connecting the MPLABreg PICkittrade 4 In-Circuit DebuggerProgrammer to AVR128DB48 CuriosityNano

2345678 1

VDD

GroundDATA

2 = VDD

3 = Ground

4 = PGD

5 = Unused

6 = Unused

7 = Unused

8 = Unused

1 = Unused

MPLABreg PICkittrade 4

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 24

Figure 4-12 Connecting the Atmel-ICE to AVR128DB48 Curiosity Nano

VDD

Ground

DATA

AVRregSAM

3 = UPDI

4 = VTG

5 = Unused

6 = Unused

7 = Unused

8 = Unused

1 = Unused

2 = GND

9 = Unused

10 = Unused

Atmel-ICE

21 9

10

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

CAUTIONTo avoid contention between the external debugger and the on-board debugger do not start anyprogrammingdebug operation with the on-board debugger through MPLABreg X IDE or Atmel Studio 7 ormass storage programming while the external tool is active

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 25

5 Hardware User Guide

51 Connectors

511 AVR128DB48 Curiosity Nano PinoutAll the AVR128DB48 IO pins are accessible at the edge connectors on the board The image below shows the boardpinout For all available functions on each pin refer to the IO Multiplexing and Considerations section in theAVR128DB48 data sheet

Figure 5-1 AVR128DB48 Curiosity Nano Pinout

USB

DEBUGGER

AVR128DB48

SW0

LED0

PS LEDNC

NC

IDID

CDC RX

CD

CR

XUSART3 TXPB0

CDC TX

CD

CT

XUSART3 RXPB1

DBG1

DB

G1PB3LED0

DBG2

DB

G2PB2SW0

PF4

PF

4USART2 TX

PF5

PF

5USART2 RX

PA2

PA

2TWI0 SDA

PA3

PA

3TWI0 SCL

PA4

PA

4SPI0 MOSI

PA5

PA

5SPI0 MISO

PA6

PA

6SPI0 SCK

PA7

PA

7SPI0 SS

GND

GN

D

PB0

PB

0USART3 TXCDC RX

PB1

PB

1USART3 RXCDC TX

PF2

PF

2

PF3

PF

3

PC0

PC

0

PC1

PC

1

PC2

PC

2

PC3

PC

3

GND

GN

D

(PA0)

(PA

0)XTALHF1

(PA1)

(PA

1)XTALHF2

PB2

PB

2SW0

PB3

PB

3LED0

VBUS

VB

US

VOFF

VO

FF

DBG3

DB

G3 PF6

DBG0

DB

G0 UPDI

GND

GN

D

VTG

VT

G

PD6

PD

6 AIN6

PD3

PD

3 AIN3 OP0 INN

PD2

PD

2 AIN2 OP0 OUT TCA0 WO2

PD1

PD

1 AIN1 OP0 INP TCA0 WO1

PD0

PD

0 AIN0 TCA0 WO0

PD7

PD

7 AIN7 OP1 INN

PD5

PD

5 AIN5 OP1 OUT

PD4

PD

4 AIN4 OP1 INP

GND

GN

D

PE3

PE

3 OP2 INN

PE2

PE

2 OP2 OUT

PE1

PE

1 OP2 INP

PE0

PE

0

PC7

PC

7

PC6

PC

6

PC5

PC

5

PC4

PC

4

GND

GN

D

PB5

PB

5

PB4

PB

4

(PF1)

(PF

1) XTAL32K2

(PF0)

(PF

0) XTAL32K1

DEBUGGERAVR128DB48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

MVIO

OPAMP

Shared pin

AVR128DB48Curiosity Nano

512 Using Pin HeadersThe edge connector footprint on AVR128DB48 Curiosity Nano has a staggered design where each hole is shifted 8mil (~02 mm) off-center The hole shift allows the use of regular 100 mil pin headers on the board without solderingOnce the pin headers are firmly in place they can be used in normal applications like pin sockets and prototypingboards without any issues

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 26

Figure 5-2 Attaching Pin-Headers to the Curiostiy Nano Board

Figure 5-3 Connecting to Curiosity Nano Base for Click boardstrade

Tip  Start at one end of the pin header and gradually insert the header along the length of the boardOnce all the pins are in place use a flat surface to push them in

Tip  For applications where the pin headers will be used permanently it is still recommended to solderthem in place

Important  Once the pin headers are in place they are hard to remove by hand Use a set of pliers andcarefully remove the pin headers to avoid damage to the pin headers and PCB

513 Multi-Voltage IO

The AVR128DB48 Curiosity Nano MCU has support for Multi-Voltage IO (MVIO) AVR128DB48 MVIO pins areconnected to the edge connector at PC0-PC7 MVIO pins are capable of regular IO-pin behavior

MVIO can be configured in one of two supply modesbull Single-Supply mode All IO pins including MVIO-capable pins are powered by VCC_TARGET By default

VCC_TARGET is connected to VDDIO2 through a 0-ohm resistor (R204)bull Dual-Supply mode MVIO-capable pins are powered by an external power supply connected to VDDIO2 Non-

MVIO pins are powered by VCC_TARGET

Dual-Supply mode allows MVIO-pins to be powered at different voltages than pins powered from VCC_TARGET

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 27

WARNINGThe absolute maximum external voltage range for the AVR128DB48 is 18ndash55V Applying a higher voltagemay cause permanent damage to the board

By default AVR128DB48 Curiosity Nano board is configured for single-supply mode To use Dual-Supply mode somehardware modifications are required

WARNINGBefore any hardware modifications are done make sure the board is disconnected from USB or externalpower

bull Disconnect resistor R204 connecting VDDIO2 to VCC_TARGETbull Connect a new power supply to VDDIO2 and ground at J212bull J212 does not have reverse polarity protection Make sure to match polarity between the power supply and

J212 Positive-polarity to J212-pin 1 and negative-polarity to J212-pin 2

The resistor R204 VDDIO2 and J212 can be seen in Figure 5-4

Figure 5-4 MVIO and VDDIO2 Connections

J212 R204

WARNINGApplying an external voltage to VDDIO2 pin without removing resistor R204 may cause permanentdamage to the board

WARNINGJ212 does not have reverse polarity protection Applying voltage to the wrong pin may cause permanentdamage to the board

514 Operational AmplifiersAVR128DB48 features three internal operational amplifiers with a flexible connection scheme using analogmultiplexers and resistor ladders This allows a large number of analog signal conditioning configurations manyrequiring no external components

Table 5-1 OPAMP Pin Connections

OPAMP Poisitive Input (INP) Negative Input (INN) Output (OUT)

OP0 PD1 PD3 PD2

OP1 PD4 PD7 PD5

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 28

continuedOPAMP Poisitive Input (INP) Negative Input (INN) Output (OUT)

OP2 PE1 PE3 PE2

For information about OPAMP on the edge connector and any shared functionality see 511 AVR128DB48 CuriosityNano Pinout

52 Peripherals

521 LEDThere is one yellow user LED available on the AVR128DB48 Curiosity Nano board that can be controlled by eitherGPIO or PWM The LED can be activated by driving the connected IO line to GND

Table 5-2 LED Connection

AVR128DB48 Pin Function Shared Functionality

PB3 Yellow LED0 Edge connector On-board debugger

522 Mechanical SwitchThe AVR128DB48 Curiosity Nano board has one mechanical switch This is a generic user-configurable switchWhen the switch is pressed it will drive the IO line to ground (GND)

Tip  There is no externally connected pull-up resistor on the switch To use the switch make sure that aninternal pull-up resistor is enabled on pin PB2

Table 5-3 Mechanical Switch

AVR128DB48 Pin Description Shared Functionality

PB2 User switch (SW0) Edge connector On-board debugger

523 32768 kHz Crystal

On the AVR128DB48 Curiosity Nano board is a mounted 32768 kHz crystal of type VMK3-9001-32K7680000 thecrystal is accurate to within 20 ppm Using the External 32768 kHz Crystal Oscillator (XOSC32K) module inAVR128DB48 with the mounted 32768 kHz crystal generates a clock signal that is significantly more accurate thanthe Internal 32768 kHz Ultra Low-Power Oscillator (OSC32K) module can generate alone With the Auto-Tunefeature the 32768 kHz can be used as a reference to improve the accuracy of the internal oscillator This is an idealreference clock for the Real-Time Counter module in AVR128DB48

The 32768 kHz crystal is connected to AVR128DB48 on PF0 and PF1 which are also routed to the edge connectorthrough two solder points PF0 and PF1 are disconnected from the edge connector by default to reduce the chanceof an external signal causing contention with the crystal and to remove excessive capacitance on the lines

Next to the 32768 kHz crystal is a cut-strap (J209) which can be used to measure the oscillator safety factor This isdone by cutting the strap and adding a 0402 SMD resistor across the strap More information about oscillatorallowance and safety factor can be found in the AN2648 application note from Microchip

Cut straps and solder points can be seen in Figure 5-5

Table 5-4 32768 kHz Crystal Connections

AVR128DB48 Pin Function Shared Functionality

PF0 XTAL32K1 (Crystal input) Edge connector

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 29

continuedAVR128DB48 Pin Function Shared Functionality

PF1 XTAL32K2 (Crystal output) Edge connector

PA0 and PA1 can be used as GPIO To do so some hardware modifications are required

WARNINGBefore any hardware modifications are done make sure the board is disconnected from the USB orexternal power

bull Disconnect the 32768 kHz crystal by cutting the two straps on the top side of the board next to the crystal(J207 J208) The crystal should be disconnected when using the pin as GPIO as this might harm the crystal

bull Connect the IO lines to the edge connector by placing solder blobs on the circular solder points marked PF0and PF1 on the bottom side of the board (J210 J211)

Figure 5-5 Crystal Connection and Cut Straps

Top side Boom side

J211

J210

J207

J20832768 kHz Crystal

J209

524 1600 MHz Crystal

On the AVR128DB48 Curiosity Nano board is a mounted 1600 MHz crystal of type VXM7-9040-16M0000000 thecrystal is accurate to within 20 ppm Using the External High-Frequency Crystal Oscillator (XOSCHF) module inAVR128DB48 with the mounted 1600 MHz crystal generates a clock signal that is significantly more accurate thanthe Internal High-Frequency Oscillator (OSCHF) module

The 1600 MHz crystal is connected to AVR128DB48 on PA0 and PA1 which are also routed to the edge connectorthrough two solder points PA0 and PA1 are disconnected from the edge connector by default to reduce the chanceof an external signal causing contention with the crystal and to remove excessive capacitance on the lines

Next to the 1600 MHz crystal is a cut-strap (J217) which can be used to measure the oscillator safety factor This isdone by cutting the strap and adding a 0402 SMD resistor across the strap More information about oscillatorallowance and safety factor can be found in the AN2648 application note from Microchip

Cut straps and solder points can be seen in Figure 5-6

Table 5-5 Crystal Connections

AVR128DB48 Pin Function Shared Functionality

PA0 XTALHF1 (Crystal input) Edge connector

PA1 XTALHF2 (Crystal output) Edge connector

PA0 and PA1 can be used as GPIO To do so some hardware modifications are required

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 30

WARNINGBefore any hardware modifications are done make sure the board is disconnected from USB or externalpower

bull Disconnect the 1600 MHz crystal by cutting the two straps on the top side of the board next to the crystal (J215J216) The crystal should be disconnected when using the pin as GPIO as this might harm the crystal

bull Connect the IO lines to the edge connector by placing solder blobs on the circular solder points marked PA0and PA1 on the bottom side of the board (J213 J214)

Figure 5-6 Crystal Connection and Cut Straps

Top side Boom side

J214

J213

J216

J2151600 MHzCrystal

J217

525 On-Board Debugger ImplementationAVR128DB48 Curiosity Nano features an on-board debugger that can be used to program and debug theAVR128DB48 using UPDI The on-board debugger also includes a virtual serial port (CDC) interface over UART anddebug GPIO Both MPLABreg X IDE and Atmel Studio 7 can be used as a front-end for the on-board debugger forprogramming and debugging MPLAB Data Visualizer can be used as a front-end for the CDC and debug GPIO

5251 On-Board Debugger ConnectionsThe table below shows the connections between the target and the debugger section All connections between thetarget and the debugger are tri-stated as long as the debugger is not actively using the interface Hence since thereare little contaminations of the signals the pins can be configured to anything the user wants

For further information on how to use the capabilities of the on-board debugger see 41 On-Board DebuggerOverview

Table 5-6 On-Board Debugger Connections

AVR128DB48Pin

Debugger Pin Function Shared Functionality

PB1 CDC TX UART RX (AVR128DB48 RX line) Edge connector

PB0 CDC RX UART TX (AVR128DB48 TX line) Edge connector

UPDI DBG0 UPDI Edge connector

PB3 DBG1 LED0Debug GPIO1 Edge connector

PB2 DBG2 SW0Debug GPIO0 Edge connector

PF6 DBG3 RESET Edge connector

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 31

6 Hardware Revision History and Known IssuesThis user guide is written to provide information about the latest available revision of the board The followingsections contain information about known issues a revision history of older revisions and how older revisions differfrom the latest revision

61 Identifying Product ID and RevisionThe revision and product identifier of the AVR128DB48 Curiosity Nano Board can be found in two ways Either byutilizing the MPLABreg X IDE or Atmel Studio 7 Kit Window or by looking at the sticker on the bottom side of the PCB

By connecting AVR128DB48 Curiosity Nano to a computer with MPLABreg X IDE or Atmel Studio 7 running the KitWindow will pop up The first six digits of the serial number which is listed under kit information contain the productidentifier and revision

Tip  The Kit Window can be opened in MPLABreg X IDE through the menu bar Window gt Kit Window

The same information can be found on the sticker on the bottom side of the PCB Most boards will have the identifierand revision printed in plain text as A09-nnnnrr where ldquonnnnrdquo is the identifier and ldquorrrdquo is the revision Boards withlimited space have a sticker with only a data matrix code containing the product identifier revision and serialnumber

The serial number string has the following format

nnnnrrssssssssss

n = product identifier

r = revision

s = serial number

The product identifier for AVR128DB48 Curiosity Nano is A09‑3372

62 Revision 3AVR128DB48 silicon revision A5 or later is mounted on this revision of the board

63 Revision 2Revision 2 is the initially released board revision

AVR128DB48 silicon revision A4 is mounted on this revision of the board

AVR128DB48 Curiosity NanoHardware Revision History and Known Issues

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 32

7 Document Revision HistoryDoc Rev Date Comments

A 092020 Initial document release

AVR128DB48 Curiosity NanoDocument Revision History

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 33

8 Appendix

81 SchematicFigure 8-1 AVR128DB48 Curiosity Nano Schematic

11

22

33

44

55

66

77

88

DD

CC

BB

AA

2 of

4

AV

R12

8DB

48 C

uri

osit

y N

ano

240

820

20A

VR

128D

B48

_Cur

iosi

ty_N

ano_

Targ

et_M

CU

Sch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA

Rev

isio

n

File

P

CB

Num

ber

PC

B

Rev

isio

n

Des

ign

ed w

ith

Dra

wn

By

ML

Shee

t Titl

e

Targ

et M

CU

Eng

inee

rA

H

A08

-305

71

Size

A3

A09

-337

22

Page

D

ateA

ltium

com

GN

D

VD

DIO

2

100n

C20

1

GN

D

PA5_

SPI0

_MIS

OPA

6_SP

I0_S

CK

PA7_

SPI0

_SS

PB0_

USA

RT

3_T

XPB

1_U

SAR

T3_

RX

PB2_

SW0_

DB

G2

PB3_

LE

D0_

DB

G1

PB

4P

B5

PC

0P

C1

PC

2

PC3

PC4PC5PC6PC7PD0_AIN0_TCA0_WO0PD1_AIN1_OP0_INP_TCA0_WO1PD2_AIN2_OP0_OUT_TCA0_WO2PD3_AIN3_OP0_INNPD4_AIN4_OP1_INP

PA3_TWI0_SCL

PA1_XTALHF2

UPDI_DBG0

PF5_USART2_RX

PF3

PF

2PF

1_X

TA

L32

K2

PF0_

XT

AL

32K

1P

E3_

OP

2_IN

NP

E2_

OP

2_O

UT

PE

1_O

P2_

INP

PE

0

PD5_

AIN

5_O

P1_

OU

TPD

6_A

IN6

PD7_

AIN

7_O

P1_

INN

GN

D

VC

C_T

AR

GE

T

100n

C20

2

GN

DV

CC

_TA

RG

ET

100n

C20

0

PF1_XTAL32K2

PF0_XTAL32K1

PA2_TWI0_SDA

PA0_XTALHF1

PF4_USART2_TX

PA4_SPI0_MOSI

GN

D

PA7_

SPI0

_SS

PA6_

SPI0

_SC

KPA

5_SP

I0_M

ISO

PA4_

SPI0

_MO

SIPA

3_T

WI0

_SC

LPA

2_T

WI0

_SD

A

PC

0P

C1

PC

2P

C3

PB

4P

B5

PD7_

AIN

7_O

P1_

INN

PD6_

AIN

6

PD2_

AIN

2_O

P0_

OU

T_T

CA

0_W

O2

PD1_

AIN

1_O

P0_

INP_

TC

A0_

WO

1PD

0_A

IN0_

TC

A0_

WO

0

PD5_

AIN

5_O

P1_

OU

TPD

4_A

IN4_

OP

1_IN

P

PD3_

AIN

3_O

P0_

INN

32K

Hz

Cry

stal

PB0_

USA

RT

3_T

XPB

1_U

SAR

T3_

RX

1kR203

US

ER

LE

D

VC

C_T

AR

GE

T

PF6_DBG3

PB2_SW0_DBG2

PB3_LED0_DBG1

GN

D

USE

R B

UT

TO

N

PB3_

LE

D0_

DB

G1

PB2_

SW0_

DB

G2

PB1_

USA

RT

3_R

XPB

0_U

SAR

T3_

TX

PF4_

USA

RT

2_T

XPF

5_U

SAR

T2_

RX

PF

2P

F3

PC

4P

C5

PC

6P

C7

1kR202

YELLOWLEDSML-D12Y1WT86

2 1

D200

TS604VM1-035CR13

4 2

SW20

0

GN

DV

CC

_ED

GE

GN

DG

ND

GN

DG

ND

UPD

I_D

BG

0P

F6_

DB

G3

J209

PB3_

LE

D0_

DB

G1

PB2_

SW0_

DB

G2

AV

R12

8DB

48

22u

FC

205

VC

C_E

DG

E

GN

D

DBG0

CDC_TXCDC_RX

DBG2

DBG1

DBG3

DBG2

DE

BU

GG

ER

CO

NN

EC

TIO

NS

DBG1

DBG3DBG0

VOFF

ID_SYS

ID_SYS

VOFF

TA

RG

ET

BU

LK

VC

C_T

AR

GE

TR

ESE

T P

ull

VB

US

CD

C R

X3

CD

C T

X4

DB

G1

5

DB

G2

6

0 T

X7

1 R

X8

2 SD

A9

3 S

CL

10

4 M

OSI

11

5 M

ISO

12

6 S

CK

13

7 S

S14

GN

D15

0 (T

X)

16

1 (R

X)

17

218

319

020

GN

D24

DB

G3

54

DB

G0

53

GN

D52

VC

C51

PW

M 3

46

AD

C 2

45

AD

C 1

44

AD

C 0

43

GN

D42

438

434

GN

D33

AD

C 7

50

AD

C 6

49

AD

C 5

48

PW

M 4

47

DE

BU

GG

ER

TAR

GE

T

ID2

VO

FF

55

121

222

323

025

126

227

328

429

530

631

732

535

636

737

539

640

741

RE

SER

VE

D1

VB

US

56

CN

AN

O56

-pin

edg

e co

nnec

tor

J200

J201

J203

J205

J206

J202

J204

PF1_

XT

AL

32K

2PF

0_X

TA

L32

K1

NC

XOUT

XIN

47kR200

AV

R12

8DB

48

UPD

I

GPI

O1

GPI

O0

RE

SET

DB

G0

DB

G1

DB

G2

DB

G3

Deb

ugge

r

CD

C T

X

CD

C R

X

UA

RT

3 R

X

UA

RT

3 T

X

VT

G1

8V -

55

VPB

3

PB

2

PF

6

UP

DI

PB

0

PB

1

Nam

eP

in

PE

3_O

P2_

INN

PE

2_O

P2_

OU

TP

E1_

OP

2_IN

PP

E0

J207

J208

PF

0P

F1

PA5

1

PA6

2

PA7

3

PB0

4

PB1

5

PB2

6

PB3

7

PB4

8

PB5

9

PC0

10

PC1

11

PC2

12

PC313

VDDIO214

GND15

PC416

PC517

PC618

PC719

PD020

PD121

PD222

PD323

PD424

PD5

25

PD6

26

PD7

27

AVDD

28

GND

29

PE0

30

PE1

31

PE2

32

PE3

33

XTAL32K1PF0

34

XTAL32K2PF1

35

PF2

36

PF337

PF438

PF539

PF640

UPDI41

VDD42

GND43

XTALHF1PA044

XTALHF2PA145

PA246

PA347

PA448

AV

R12

8DB

48-I

PT

U20

0

0RR204

GN

D

VC

C_T

AR

GE

T

VDDIO2

GND

J210

J211

82p

C20

48

2pC

203

GN

DG

ND

16M

Hz

Cry

stal

J217

XHFOUT

XHFIN

J214

J213

GN

D

J215

J216

PA0_XTALHF1

PA1_XTALHF2

PA0_

XT

AL

HF

1PA

1_X

TA

LH

F2

PA0

PA1

1 2

J212 N

M

15pF

C20

615

pFC

207

13

24 16

000

MH

zV

XM

7-90

40-1

6M00

0000

0TR

XC

201

GN

D32

768

kHz

VM

K3-

9001

-32K

7680

000T

R

XC

200

CDC_TX

CDC_RX

CD

C_T

XC

DC

_RX

Cry

stal

dat

ashe

et

Ccr

ysta

l = 9

pFm

ax E

SR

= 7

0kO

hmA

ccur

acy

plusmn20p

pm

AV

R48

DB

128

data

shee

tC

xin

= 4

0pF

(ty

pica

l val

ue)

Cxo

ut =

40

pF (

typi

cal v

alue

)C

lasymp1

( (1

40

pF)+

(1

40p

F)

)asymp

20p

FM

axim

um L

oad

= 1

25p

FM

axim

um E

SR =

50k

Ohm

Est

imat

ed C

pcb

= 0

5pF

Est

imat

ed lo

adC

= 2

(C

crys

tal-

Cpa

ra -

Cpc

b)C

= 2

(9p

F -

20

pF -

05

pF)

C =

13

0pF

Sele

cted

in d

esig

n af

ter

veri

fica

tion

C=

82

pF8

2pF

NO

TE

on

UA

RT

CD

C

RX

TX

onth

ehe

ader

deno

tes

the

inpu

tout

put d

irec

tion

of th

e si

gnal

resp

ectiv

e to

its

sou

rce

CD

C T

X is

out

put f

rom

the

DE

BU

GG

ER

C

DC

RX

is in

put t

o th

e D

EB

UG

GE

R

TX

is o

utpu

t fro

m th

e T

AR

GE

T d

evic

eR

X is

inpu

t to

the

TA

RG

ET

dev

ice

NO

TE

on

I2C

No

pull

-ups

on

boar

d P

ull-

ups

shou

ld b

em

ount

ed c

lose

to s

lave

dev

ice(

s)

WA

RN

ING

M

ake

sure

tore

mov

e R

204

befo

reap

plyi

ng p

ower

to J

212

Cry

stal

dat

ashe

et

Ccr

ysta

l = 1

2pF

max

ES

R =

60O

hmA

ccur

acy

plusmn30p

pm

AV

R48

DB

128

data

shee

tC

xin

= 4

0pF

(ty

pica

l val

ue)

Cxo

ut =

40

pF (

typi

cal v

alue

)C

lasymp1

( (1

40

pF)+

(1

40p

F)

)asymp

20p

FM

axim

um L

oad

= 1

25p

FM

axim

um E

SR =

k

Ohm

Est

imat

ed C

pcb

= 0

5pF

Est

imat

ed lo

adC

= 2

(C

crys

tal-

Cpa

ra -

Cpc

b)C

= 2

(12

pF -

20

pF -

05

pF)

C =

19

0pF

Sele

cted

in d

esig

n af

ter

veri

fica

tion

C=

15p

F1

5pF

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 34

11

22

33

44

55

66

77

88

DD

CC

BB

AA

3 of

4

AV

R12

8DB

48 C

uri

osit

y N

ano

2020

-06-

26A

VR

128D

B48

_Cur

iosi

ty_N

ano_

Deb

ugge

rSch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA

Rev

isio

n

Fil

eP

CB

Num

ber

PC

B

Rev

isio

n

Des

ign

ed w

ith

Dra

wn

By

ML

Shee

t Tit

le

Deb

ugge

r

Eng

inee

rA

H

A08

-305

71

Size

A3

A09

-337

22

Page

D

ateA

ltium

com

DE

BU

GG

ER

USB

MIC

RO

-B C

ON

NE

CT

OR

GN

D

USB

D_P

USB

D_N

100n

C10

7

100n

C10

8

1kR

107

VC

C_P

3V3

SRST

STA

TU

S_L

ED

SHIE

LD

VB

US

VC

C_P

3V3

GN

D

TP

100

Test

poin

t Arr

ay

12

34

56

78

910

TC

KT

DO

TM

SV

sup

TD

IG

ND

TR

STSR

STV

Tre

fG

ND

J102

GN

D

47u

F

C10

0

DBG0

DB

G0

21

GR

EE

N L

ED

SML

-P12

MT

T86

R

D10

0

VBUS

1

D-

2

D+

3

GND

5

SHIELD1

6

SHIELD2

7

ID

4

SHIELD3

8

SHIELD4

9 MU

-MB

0142

AB

2-26

9

J105

PAD

33

PA00

1

PA01

2

PA02

3

PA03

4

GND 10VDDANA 9

PA04

5

PA05

6

PA06

7

PA07

8

PA08 11

PA09 12

PA10 13

PA11 14

PA14 15

PA15 16

PA16

17

PA17

18

PA18

19

PA19

20

PA22

21

USB_SOFPA23

22

USB_DMPA24

23

USB_DPPA25

24

PA2725 RESETN26 PA2827 GND28 VDDCORE29 VDDIN30 SWDCLKPA3031 SWDIOPA3132

SAM

D21

E18

A-M

UT

U10

0

VOUT

1

VOUT

2

GND 3

EN

4

VIN

6

NC

5

EP 7

MIC

5528

-33

YM

TU

101

VC

C_P

3V3

GN

D

USB

D_P

USB

D_N

GN

D

1uC

106

VC

C_M

CU

_CO

RE

VC

C_P

3V3

VC

C_P

3V3

22u

FC

101

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

3

VC

C_P

3V3

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

4

VC

C_P

3V3

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

5

VC

C_P

3V3

GN

D

GN

D GN

D

GN

D

VC

C_E

DG

E

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

7

VC

C_P

3V3

GN

DDBG2

DB

G3_

CT

RL

S1_0

_TX

S1_1

_RX

S0_2

_TX

DA

CV

TG

_AD

C

RE

SER

VE

D

S0_3

_CL

K

DBG0_CTRL

CD

C_T

X_C

TR

L

BO

OT

DE

BU

GG

ER

PO

WE

RS

TA

TU

S L

ED

EN

1

BYP

6

VOUT

4

GND

2

VIN

3

NCADJ

5

GND

7

MIC

5353

U10

2

100n

C10

2

GN

D

GN

D

47kR101

27kR104 G

ND

33k

R10

6

22u

F

C10

3 GN

D

1kR

108

J100

VC

C_L

EV

EL

VC

C_R

EG

UL

AT

OR

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

6

VC

C_P

3V3

GN

DDBG1

CD

C_R

X

CD

C_T

X

DBG3

DBG1_CTRL

DE

BU

GG

ER

RE

GU

LA

TO

R

REG_ENABLE

RE

G_E

NA

BL

E

47kR103

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

47kR102

47kR105

SWC

LK

GN

D

47kR100 G

ND

DB

G2

S0_0

_RX

DB

G1_

CT

RL

DB

G0_

CT

RL

DB

G3

OP

EN

DR

AIN

TA

RG

ET

AD

JUST

AB

LE

RE

GU

LA

TO

R

SRST

DE

BU

GG

ER

TE

ST

PO

INT DBG2_CTRL

VO

FF

CD

C_R

X_C

TR

L

47kR109

DB

G1

CD

C_T

X_C

TR

L

CD

C_R

X_C

TR

L

SWC

LK

REG_ADJUST

DBG2_GPIO

DB

G3_

CT

RL

DB

G2_

CT

RL

UP

DI

UPD

I

GPI

O

GPI

O

RE

SET

Sign

al

DB

G0

DB

G1

DB

G2

DB

G3

ICS

PIn

terf

ace

DA

T

CL

K

GPI

O

MC

LR

DB

G3

CD

C T

X

CD

C R

X

UA

RT

RX

UA

RT

TX

UA

RT

RX

UA

RT

TX

TA

RG

ET

TA

RG

ET

1kR

110

VBUS_ADC

1

23

DM

N65

D8L

FB

Q10

1

VC

C-

-

ID_SYS

VOFF

1kR112

VC

C_P

3V3

VT

G_A

DC

DA

C

MIC

9416

3

VIN

B2

VOUT

A1

VIN

A2

EN

C2

GND

C1

VOUT

B1

U10

8

GN

D

ID_S

YS

VT

G_E

N

VTG_EN

VBUS_ADC

SWD

IO

ID_S

YS

TP

101

GN

DSW

DIO

VO

FF

47kR111 G

ND

ID P

IN

MC

3621

3

F10

0

VC

C_V

BU

S

VC

C_V

BU

S

VC

C_V

BU

S

J101

VC

C_T

AR

GE

T

47k

R11

3

CDC_TX

CDC_RX

Prog

ram

min

g co

nnec

tor

for

fact

ory

prog

ram

min

g of

DE

BU

GG

ER

MIC

5528

V

in 2

5V

to 5

5V

Vou

t F

ixed

33

VIm

ax 5

00m

AD

ropo

ut 2

60m

V

500

mA

MIC

5353

V

in 2

6V

to 6

VV

out

12

5V to

51

VIm

ax 5

00m

AD

ropo

ut (

typi

cal)

50m

V

150m

A 1

60m

V

500

mA

Acc

urac

y 2

in

itia

lT

herm

al s

hutd

own

and

curr

ent l

imit

Max

imum

out

put v

olta

ge is

lim

ited

by

the

inpu

t vol

tage

and

the

drop

out v

olta

ge in

the

regu

lato

r(V

max

= V

in -

dro

pout

)

J100

-

Cut

-str

ap u

sed

for

full

sep

arat

ion

of ta

rget

pow

er f

rom

the

leve

l shi

fter

s an

don

-boa

rd r

egul

ator

s-

For

cur

rent

mea

sure

men

ts u

sing

the

on-b

oard

pow

er s

uppl

y th

isst

rap

mus

t be

cut a

nd a

nam

met

er c

onne

cted

acr

oss

- F

or c

urre

nt m

easu

rem

ents

usi

ng a

n ex

tern

al p

ower

sup

ply

this

str

ap c

ould

be

cut f

or m

ore

accu

rate

mea

sure

men

ts L

eaka

ge b

ack

thro

ugh

the

swit

ch is

in th

e m

icro

am

pere

ran

ge

PT

C R

eset

tabl

e fu

se

Hol

d cu

rren

t 5

00m

AT

rip

curr

ent

100

0mA

Adj

usta

ble

outp

ut a

nd li

mit

atio

ns

- T

he D

EB

UG

GE

R c

an a

djus

t the

out

put v

olta

ge o

f th

e re

gula

tor

betw

een

125

V a

nd 5

1V

to th

e ta

rget

-

The

vol

tage

out

put i

s li

mit

ed b

y th

e in

put (

US

B)

whi

ch c

an v

ary

betw

een

440

V to

52

5V-

The

leve

l shi

fter

s ha

ve a

min

imal

vol

tage

leve

l of

165

V a

nd w

ill l

imit

the

min

imum

ope

ratin

g vo

ltage

all

owed

for

the

targ

et to

sti

ll a

llow

com

mun

icat

ion

- T

he M

IC94

163

has

a m

inim

al v

olat

ege

leve

l of

170

V a

nd w

ill l

imit

the

min

imum

vol

tage

del

iver

ed to

the

targ

et

- F

irm

war

e co

nfig

urat

ion

wil

l lim

it th

e vo

ltage

ran

ge to

be

wit

hin

the

the

targ

et s

peci

fica

tion

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 35

82 Assembly DrawingFigure 8-2 AVR128DB48 Curiosity Nano Assembly Drawing Top

+

Cb

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20001 PAC20002 COC200

PAC20101 PAC20102 COC201

PAC20201 PAC20202 COC202 PAC20301

PAC20302 COC203

PAC20401

PAC20402 COC204

PAC20502

PAC20501 COC205

PAC20601

PAC20602 COC206 PAC20701

PAC20702 COC207 PAD10002 PAD10001 COD100

PAD20002

PAD20001 COD200

PAF10002

PAF10001 COF100

PAJ10002 PAJ10001 COJ100

PAJ10101 PAJ10102 COJ101

PAJ10201

PAJ10202

PAJ10203

PAJ10204

PAJ10205

PAJ10206 COJ102

PAJ10506

PAJ10507 PAJ10509

PAJ10508 PAJ105010

PAJ105011 PAJ10505

PAJ10504

PAJ10503

PAJ10502

PAJ10501

PAJ10500

COJ105

PAJ200056 PAJ200053

PAJ200028 PAJ20002 PAJ20001

PAJ200051 PAJ200050 PAJ200052 PAJ200049 PAJ200048 PAJ200047 PAJ200046 PAJ200045 PAJ200044 PAJ200043 PAJ200042 PAJ200041 PAJ200040 PAJ200039 PAJ200038 PAJ200037 PAJ200036 PAJ200035 PAJ200034 PAJ200033 PAJ200032 PAJ200031 PAJ200030 PAJ200029

PAJ20003 PAJ20004 PAJ20005 PAJ20006 PAJ20007 PAJ20008 PAJ20009 PAJ200010 PAJ200011 PAJ200012 PAJ200013 PAJ200014 PAJ200015 PAJ200016 PAJ200017 PAJ200018 PAJ200019 PAJ200020 PAJ200021 PAJ200022 PAJ200023 PAJ200026 PAJ200025 PAJ200024 PAJ200027

PAJ200054 PAJ200055 PAJ20000

COJ200

PAJ20102 PAJ20101 COJ201

PAJ20202 PAJ20201 COJ202

PAJ20302 PAJ20301 COJ203

PAJ20402 PAJ20401 COJ204

PAJ20502 PAJ20501 COJ205

PAJ20602 PAJ20601 COJ206 PAJ20702 PAJ20701 COJ207

PAJ20802 PAJ20801 COJ208

PAJ20902 PAJ20901 COJ209

PAJ21001 PAJ21002 PAJ21005 COJ210

PAJ21102 PAJ21101 PAJ21105 COJ211

PAJ21202 PAJ21201 COJ212

PAJ21301 PAJ21302 PAJ21305 COJ213

PAJ21401 PAJ21402 PAJ21405 COJ214

PAJ21502 PAJ21501 COJ215

PAJ21602 PAJ21601 COJ216 PAJ21702 PAJ21701 COJ217

COLABEL1

PAQ10101 PAQ10102 PAQ10103 PAQ10100

COQ101 PAR10002

PAR10001 COR100 PAR10101 PAR10102 COR101

PAR10202 PAR10201 COR102

PAR10302 PAR10301 COR103

PAR10401 PAR10402 COR104

PAR10502

PAR10501 COR105

PAR10601 PAR10602 COR106

PAR10702 PAR10701 COR107

PAR10801

PAR10802 COR108

PAR10901 PAR10902 COR109

PAR11001 PAR11002 COR110

PAR11101 PAR11102 COR111

PAR11201 PAR11202 COR112

PAR11302 PAR11301 COR113

PAR20001 PAR20002 COR200 PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203 PAR20401 PAR20402 COR204

PASW20003

PASW20004 PASW20002

PASW20001 COSW200

PATP10001 COTP100

PATP10101 COTP101 PAU100033

PAU100032 PAU100031 PAU100030 PAU100029 PAU100028 PAU100027 PAU100026 PAU100025 PAU100024

PAU100023

PAU100022

PAU100021

PAU100020

PAU100019

PAU100018

PAU100017 PAU100016 PAU100015 PAU100014 PAU100013 PAU100012 PAU100011 PAU100010

PAU10001

PAU10002

PAU10003

PAU10004

PAU10005

PAU10006

PAU10007

PAU10008 PAU10009

COU100

PAU10107

PAU10104 PAU10105 PAU10106

PAU10103 PAU10102 PAU10101 PAU10100 COU101 PAU10207

PAU10204 PAU10205

PAU10206

PAU10203 PAU10202

PAU10201

COU102

PAU10306

PAU10305 PAU10304 PAU10303

PAU10302 PAU10301 PAU10300

COU103

PAU10406

PAU10405 PAU10404 PAU10403

PAU10402 PAU10401 PAU10400

COU104

PAU10506

PAU10505 PAU10504 PAU10503

PAU10502 PAU10501 PAU10500

COU105

PAU10606

PAU10605 PAU10604 PAU10603

PAU10602 PAU10601 PAU10600

COU106

PAU10706

PAU10705 PAU10704 PAU10703

PAU10702 PAU10701 PAU10700

COU107

PAU1080A1 PAU1080A2

PAU1080B1 PAU1080B2

PAU1080C1 PAU1080C2 COU108

PAU20001 PAU20002 PAU20003 PAU20004 PAU20005 PAU20006 PAU20007 PAU20008 PAU20009 PAU200010 PAU200011 PAU200012 PAU200013 PAU200014 PAU200015 PAU200016 PAU200017 PAU200018 PAU200019 PAU200020 PAU200021 PAU200022 PAU200023 PAU200024 PAU200025 PAU200026 PAU200027 PAU200028 PAU200029 PAU200030 PAU200031 PAU200032 PAU200033 PAU200034 PAU200035 PAU200036

PAU200037 PAU200038 PAU200039 PAU200040 PAU200041 PAU200042 PAU200043 PAU200044 PAU200045 PAU200046 PAU200047 PAU200048

COU200

PAXC20001

PAXC20002 COXC200

PAXC20101 PAXC20102

PAXC20103 PAXC20104 COXC201

Figure 8-3 AVR128DB48 Curiosity Nano Assembly Drawing Bottom

tcR

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20001 PAC20002 COC200

PAC20101 PAC20102 COC201

PAC20201 PAC20202 COC202 PAC20301

PAC20302 COC203

PAC20401

PAC20402 COC204

PAC20502

PAC20501 COC205

PAC20601

PAC20602 COC206 PAC20701

PAC20702 COC207 PAD10002 PAD10001 COD100

PAD20002

PAD20001 COD200

PAF10002

PAF10001 COF100

PAJ10002 PAJ10001 COJ100

PAJ10101 PAJ10102 COJ101

PAJ10201

PAJ10202

PAJ10203

PAJ10204

PAJ10205

PAJ10206 COJ102

PAJ10506

PAJ10507 PAJ10509

PAJ10508 PAJ105010

PAJ105011 PAJ10505

PAJ10504

PAJ10503

PAJ10502

PAJ10501

PAJ10500

COJ105

PAJ200056 PAJ200053

PAJ200028 PAJ20002 PAJ20001

PAJ200051 PAJ200050 PAJ200052 PAJ200049 PAJ200048 PAJ200047 PAJ200046 PAJ200045 PAJ200044 PAJ200043 PAJ200042 PAJ200041 PAJ200040 PAJ200039 PAJ200038 PAJ200037 PAJ200036 PAJ200035 PAJ200034 PAJ200033 PAJ200032 PAJ200031 PAJ200030 PAJ200029

PAJ20003 PAJ20004 PAJ20005 PAJ20006 PAJ20007 PAJ20008 PAJ20009 PAJ200010 PAJ200011 PAJ200012 PAJ200013 PAJ200014 PAJ200015 PAJ200016 PAJ200017 PAJ200018 PAJ200019 PAJ200020 PAJ200021 PAJ200022 PAJ200023 PAJ200026 PAJ200025 PAJ200024 PAJ200027

PAJ200054 PAJ200055 PAJ20000

COJ200

PAJ20102 PAJ20101 COJ201

PAJ20202 PAJ20201 COJ202

PAJ20302 PAJ20301 COJ203

PAJ20402 PAJ20401 COJ204

PAJ20502 PAJ20501 COJ205

PAJ20602 PAJ20601 COJ206 PAJ20702 PAJ20701 COJ207

PAJ20802 PAJ20801 COJ208

PAJ20902 PAJ20901 COJ209

PAJ21001 PAJ21002 PAJ21005 COJ210

PAJ21102 PAJ21101 PAJ21105 COJ211

PAJ21202 PAJ21201 COJ212

PAJ21301 PAJ21302 PAJ21305 COJ213

PAJ21401 PAJ21402 PAJ21405 COJ214

PAJ21502 PAJ21501 COJ215

PAJ21602 PAJ21601 COJ216 PAJ21702 PAJ21701 COJ217

COLABEL1

PAQ10101 PAQ10102 PAQ10103 PAQ10100

COQ101 PAR10002

PAR10001 COR100 PAR10101 PAR10102 COR101

PAR10202 PAR10201 COR102

PAR10302 PAR10301 COR103

PAR10401 PAR10402 COR104

PAR10502

PAR10501 COR105

PAR10601 PAR10602 COR106

PAR10702 PAR10701 COR107

PAR10801

PAR10802 COR108

PAR10901 PAR10902 COR109

PAR11001 PAR11002 COR110

PAR11101 PAR11102 COR111

PAR11201 PAR11202 COR112

PAR11302 PAR11301 COR113

PAR20001 PAR20002 COR200 PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203 PAR20401 PAR20402 COR204

PASW20003

PASW20004 PASW20002

PASW20001 COSW200

PATP10001 COTP100

PATP10101 COTP101 PAU100033

PAU100032 PAU100031 PAU100030 PAU100029 PAU100028 PAU100027 PAU100026 PAU100025 PAU100024

PAU100023

PAU100022

PAU100021

PAU100020

PAU100019

PAU100018

PAU100017 PAU100016 PAU100015 PAU100014 PAU100013 PAU100012 PAU100011 PAU100010

PAU10001

PAU10002

PAU10003

PAU10004

PAU10005

PAU10006

PAU10007

PAU10008 PAU10009

COU100

PAU10107

PAU10104 PAU10105 PAU10106

PAU10103 PAU10102 PAU10101 PAU10100 COU101 PAU10207

PAU10204 PAU10205

PAU10206

PAU10203 PAU10202

PAU10201

COU102

PAU10306

PAU10305 PAU10304 PAU10303

PAU10302 PAU10301 PAU10300

COU103

PAU10406

PAU10405 PAU10404 PAU10403

PAU10402 PAU10401 PAU10400

COU104

PAU10506

PAU10505 PAU10504 PAU10503

PAU10502 PAU10501 PAU10500

COU105

PAU10606

PAU10605 PAU10604 PAU10603

PAU10602 PAU10601 PAU10600

COU106

PAU10706

PAU10705 PAU10704 PAU10703

PAU10702 PAU10701 PAU10700

COU107

PAU1080A1 PAU1080A2

PAU1080B1 PAU1080B2

PAU1080C1 PAU1080C2 COU108

PAU20001 PAU20002 PAU20003 PAU20004 PAU20005 PAU20006 PAU20007 PAU20008 PAU20009 PAU200010 PAU200011 PAU200012 PAU200013 PAU200014 PAU200015 PAU200016 PAU200017 PAU200018 PAU200019 PAU200020 PAU200021 PAU200022 PAU200023 PAU200024 PAU200025 PAU200026 PAU200027 PAU200028 PAU200029 PAU200030 PAU200031 PAU200032 PAU200033 PAU200034 PAU200035 PAU200036

PAU200037 PAU200038 PAU200039 PAU200040 PAU200041 PAU200042 PAU200043 PAU200044 PAU200045 PAU200046 PAU200047 PAU200048

COU200

PAXC20001

PAXC20002 COXC200

PAXC20101 PAXC20102

PAXC20103 PAXC20104 COXC201

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 36

83 Curiosity Nano Base for Click boardstrade

Figure 8-4 AVR128DB48 Curiosity Nano Pinout Mapping

US

B

DE

BU

GG

ER

AV

R1

28

DB

48

SW

0

LE

D0

PS

LE

DNC

NC

ID

ID

CDC RX

CDCRX

USART3 TX

PB0

CDC TX

CDCTX

USART3 RX

PB1

DBG1

DBG1

PB3

LED0

DBG2

DBG2

PB2

SW0

PF4

PF4

USART2 TX

PF5

PF5

USART2 RX

PA2

PA2

TWI0 SDA

PA3

PA3

TWI0 SCL

PA4

PA4

SPI0 MOSI

PA5

PA5

SPI0 MISO

PA6

PA6

SPI0 SCK

PA7

PA7

SPI0 SS

GND

GND

PB0

PB0

USART3 TX

CDC RX

PB1

PB1

USART3 RX

CDC TX

PF2

PF2

PF3

PF3

PC0

PC0

PC1

PC1

PC2

PC2

PC3

PC3

GND

GND

(PA0)

(PA0)

XTALHF1

(PA1)

(PA1)

XTALHF2

PB2

PB2

SW0

PB3

PB3

LED0

VBUS

VBUS

VOFF

VOFF

DBG3

DBG3

PF6

DBG0

DBG0

UPDI

GND

GND

VTG

VTG

PD6

PD6

AIN6

PD3

PD3

AIN3

OP0 INN

PD2

PD2

AIN2

OP0 OUT

TCA0 WO2

PD1

PD1

AIN1

OP0 INP

TCA0 WO1

PD0

PD0

AIN0

TCA0 WO0

PD7

PD7

AIN7

OP1 INN

PD5

PD5

AIN5

OP1 OUT

PD4

PD4

AIN4

OP1 INP

GND

GND

PE3

PE3

OP2 INN

PE2

PE2

OP2 OUT

PE1

PE1

OP2 INP

PE0

PE0

PC7

PC7

PC6

PC6

PC5

PC5

PC4

PC4

GND

GND

PB5

PB5

PB4

PB4

(PF1)

(PF1)

XTAL32K2

(PF0)

(PF0)

XTAL32K1

DE

BU

GG

ER

AV

R1

28

DB

48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

MVIO

OPAMP

Shared pin

AV

R1

28

DB

48

Cu

rio

sity

Na

no

1

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

2

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

3

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

Xp

lain

ed

Pro

Ext

en

sio

nE

XT

11

2

19

20

Cu

rio

sity

Na

no

Ba

sefo

r cl

ick

bo

ard

sT

M

PD4

PD0

PD6

PD3

PA7

PF5

PA6

PF4

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

PD5

PD1

PF3

PF2

PE2

PB1

PA6

PB0

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

PD7

PD2

PE1

PE0

PE3

PF5

PA6

PF4

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

ID

GND

PD5

PD7

PF3

PE1

PD1

PD2

PF2

PE3

PA2

PA3

PB1

PB0

PE2

PA4

PA5

PA6

GND

+33V

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 37

84 Disconnecting the On-board DebuggerThe on-board debugger and level shifters can be completely disconnected from the AVR128DB48

The block diagram below shows all connections between the debugger and the AVR128DB48 The rounded boxesrepresent connections to the board edge The signal names shown are also printed in silkscreen on the bottom sideof the board

To disconnect the debugger cut the straps shown in Figure 8-6

Attention  Cutting the GPIO straps to the on-board debugger will disable the virtual serial portprogramming debugging and data streaming Cutting the power supply strap will disconnect the on-boardpower supply

Tip  Any connection that is cut can be reconnected using solder Alternatively a 0Ω 0402 resistor can bemounted

Tip  When the debugger is disconnected an external debugger can be connected to holes shown in Figure 8-6 Details about connecting an external debugger are described in 46 Connecting ExternalDebuggers

Figure 8-5  On-Board Debugger Connections Block Diagram

DE

BU

GG

ER

TARGETLevel-Shift

PA04PA06PA07PA08PA16PA00PA01

USB

DIR x 5

VCC_P3V3

VBUS

VC

C_L

EV

EL

VC

C_T

AR

GE

TDBG0DBG1DBG2DBG3CDC TXCDC RX

CDC RX

CDC TX

DBG3

DBG2

DBG1

DBG0

GPIO straps

LDO

VOFF

LDO

VBUS VTG

VCC_EDGE

Power Supply strap Target Power strap

UART RXUART TX

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 38

Figure 8-6 On-Board Debugger Connection Cut Straps

GPIO straps (bottom side) Power Supply strap (top side)

85 Getting Started with IARIAR Embedded Workbenchreg for AVRreg is a proprietary high-efficiency compiler not based on GCC Programming anddebugging of AVR128DB48 Curiosity Nano is supported in IARtrade Embedded Workbench for AVR using the Atmel-ICEinterface Some initial settings must be set up in the project to get the programming and debugging to work

The following steps will explain how to get your project ready for programming and debugging

1 Make sure you have opened the project you want to configure Open the OPTIONS dialog for the project2 In the category General Options select the Target tab Select the device for the project or if not listed the

core of the device as shown in Figure 8-73 In the category Debugger select the Setup tab Select Atmel-ICE as the driver as shown in Figure 8-84 In the category Debugger gt Atmel-ICE select the Atmel-ICE 1 tab Select UPDI as the interface and

optionally select the UPDI frequency as shown in Figure 8-9

Info  If the selection of Debug Port (mentioned in step 4) is grayed out the interface is preselected andthe user can skip this configuration step

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 39

Figure 8-7 Select Target Device

Figure 8-8 Select Debugger

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 40

Figure 8-9 Configure Interface

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 41

The Microchip Website

Microchip provides online support via our website at wwwmicrochipcom This website is used to make files andinformation easily available to customers Some of the content available includes

bull Product Support ndash Data sheets and errata application notes and sample programs design resources userrsquosguides and hardware support documents latest software releases and archived software

bull General Technical Support ndash Frequently Asked Questions (FAQs) technical support requests onlinediscussion groups Microchip design partner program member listing

bull Business of Microchip ndash Product selector and ordering guides latest Microchip press releases listing ofseminars and events listings of Microchip sales offices distributors and factory representatives

Product Change Notification Service

Microchiprsquos product change notification service helps keep customers current on Microchip products Subscribers willreceive email notification whenever there are changes updates revisions or errata related to a specified productfamily or development tool of interest

To register go to wwwmicrochipcompcn and follow the registration instructions

Customer Support

Users of Microchip products can receive assistance through several channels

bull Distributor or Representativebull Local Sales Officebull Embedded Solutions Engineer (ESE)bull Technical Support

Customers should contact their distributor representative or ESE for support Local sales offices are also available tohelp customers A listing of sales offices and locations is included in this document

Technical support is available through the website at wwwmicrochipcomsupport

Microchip Devices Code Protection Feature

Note the following details of the code protection feature on Microchip devices

bull Microchip products meet the specifications contained in their particular Microchip Data Sheetbull Microchip believes that its family of products is secure when used in the intended manner and under normal

conditionsbull There are dishonest and possibly illegal methods being used in attempts to breach the code protection features

of the Microchip devices We believe that these methods require using the Microchip products in a manneroutside the operating specifications contained in Microchiprsquos Data Sheets Attempts to breach these codeprotection features most likely cannot be accomplished without violating Microchiprsquos intellectual property rights

bull Microchip is willing to work with any customer who is concerned about the integrity of its codebull Neither Microchip nor any other semiconductor manufacturer can guarantee the security of its code Code

protection does not mean that we are guaranteeing the product is ldquounbreakablerdquo Code protection is constantlyevolving We at Microchip are committed to continuously improving the code protection features of our productsAttempts to break Microchiprsquos code protection feature may be a violation of the Digital Millennium Copyright ActIf such acts allow unauthorized access to your software or other copyrighted work you may have a right to suefor relief under that Act

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 42

Legal Notice

Information contained in this publication is provided for the sole purpose of designing with and using Microchipproducts Information regarding device applications and the like is provided only for your convenience and may besuperseded by updates It is your responsibility to ensure that your application meets with your specifications

THIS INFORMATION IS PROVIDED BY MICROCHIP ldquoAS ISrdquo MICROCHIP MAKES NO REPRESENTATIONS ORWARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED WRITTEN OR ORAL STATUTORY OROTHERWISE RELATED TO THE INFORMATION INCLUDING BUT NOT LIMITED TO ANY IMPLIEDWARRANTIES OF NON-INFRINGEMENT MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSEOR WARRANTIES RELATED TO ITS CONDITION QUALITY OR PERFORMANCE

IN NO EVENT WILL MICROCHIP BE LIABLE FOR ANY INDIRECT SPECIAL PUNITIVE INCIDENTAL ORCONSEQUENTIAL LOSS DAMAGE COST OR EXPENSE OF ANY KIND WHATSOEVER RELATED TO THEINFORMATION OR ITS USE HOWEVER CAUSED EVEN IF MICROCHIP HAS BEEN ADVISED OF THEPOSSIBILITY OR THE DAMAGES ARE FORESEEABLE TO THE FULLEST EXTENT ALLOWED BY LAWMICROCHIPS TOTAL LIABILITY ON ALL CLAIMS IN ANY WAY RELATED TO THE INFORMATION OR ITS USEWILL NOT EXCEED THE AMOUNT OF FEES IF ANY THAT YOU HAVE PAID DIRECTLY TO MICROCHIP FORTHE INFORMATION Use of Microchip devices in life support andor safety applications is entirely at the buyerrsquos riskand the buyer agrees to defend indemnify and hold harmless Microchip from any and all damages claims suits orexpenses resulting from such use No licenses are conveyed implicitly or otherwise under any Microchip intellectualproperty rights unless otherwise stated

Trademarks

The Microchip name and logo the Microchip logo Adaptec AnyRate AVR AVR logo AVR Freaks BesTimeBitCloud chipKIT chipKIT logo CryptoMemory CryptoRF dsPIC FlashFlex flexPWR HELDO IGLOO JukeBloxKeeLoq Kleer LANCheck LinkMD maXStylus maXTouch MediaLB megaAVR Microsemi Microsemi logo MOSTMOST logo MPLAB OptoLyzer PackeTime PIC picoPower PICSTART PIC32 logo PolarFire Prochip DesignerQTouch SAM-BA SenGenuity SpyNIC SST SST Logo SuperFlash Symmetricom SyncServer TachyonTempTrackr TimeSource tinyAVR UNIO Vectron and XMEGA are registered trademarks of Microchip TechnologyIncorporated in the USA and other countries

APT ClockWorks The Embedded Control Solutions Company EtherSynch FlashTec Hyper Speed ControlHyperLight Load IntelliMOS Libero motorBench mTouch Powermite 3 Precision Edge ProASIC ProASIC PlusProASIC Plus logo Quiet-Wire SmartFusion SyncWorld Temux TimeCesium TimeHub TimePictra TimeProviderVite WinPath and ZL are registered trademarks of Microchip Technology Incorporated in the USA

Adjacent Key Suppression AKS Analog-for-the-Digital Age Any Capacitor AnyIn AnyOut BlueSky BodyComCodeGuard CryptoAuthentication CryptoAutomotive CryptoCompanion CryptoController dsPICDEMdsPICDEMnet Dynamic Average Matching DAM ECAN EtherGREEN In-Circuit Serial Programming ICSPINICnet Inter-Chip Connectivity JitterBlocker KleerNet KleerNet logo memBrain Mindi MiWi MPASM MPFMPLAB Certified logo MPLIB MPLINK MultiTRAK NetDetach Omniscient Code Generation PICDEMPICDEMnet PICkit PICtail PowerSmart PureSilicon QMatrix REAL ICE Ripple Blocker SAM-ICE Serial QuadIO SMART-IS SQI SuperSwitcher SuperSwitcher II Total Endurance TSHARC USBCheck VariSenseViewSpan WiperLock Wireless DNA and ZENA are trademarks of Microchip Technology Incorporated in the USAand other countries

SQTP is a service mark of Microchip Technology Incorporated in the USA

The Adaptec logo Frequency on Demand Silicon Storage Technology and Symmcom are registered trademarks ofMicrochip Technology Inc in other countries

GestIC is a registered trademark of Microchip Technology Germany II GmbH amp Co KG a subsidiary of MicrochipTechnology Inc in other countries

All other trademarks mentioned herein are property of their respective companiescopy 2020 Microchip Technology Incorporated Printed in the USA All Rights Reserved

ISBN 978-1-5224-6667-3

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 43

Quality Management SystemFor information regarding Microchiprsquos Quality Management Systems please visit wwwmicrochipcomquality

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 44

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupportwwwmicrochipcomsupportWeb AddresswwwmicrochipcomAtlantaDuluth GATel 678-957-9614Fax 678-957-1455Austin TXTel 512-257-3370BostonWestborough MATel 774-760-0087Fax 774-760-0088ChicagoItasca ILTel 630-285-0071Fax 630-285-0075DallasAddison TXTel 972-818-7423Fax 972-818-2924DetroitNovi MITel 248-848-4000Houston TXTel 281-894-5983IndianapolisNoblesville INTel 317-773-8323Fax 317-773-5453Tel 317-536-2380Los AngelesMission Viejo CATel 949-462-9523Fax 949-462-9608Tel 951-273-7800Raleigh NCTel 919-844-7510New York NYTel 631-435-6000San Jose CATel 408-735-9110Tel 408-436-4270Canada - TorontoTel 905-695-1980Fax 905-695-2078

Australia - SydneyTel 61-2-9868-6733China - BeijingTel 86-10-8569-7000China - ChengduTel 86-28-8665-5511China - ChongqingTel 86-23-8980-9588China - DongguanTel 86-769-8702-9880China - GuangzhouTel 86-20-8755-8029China - HangzhouTel 86-571-8792-8115China - Hong Kong SARTel 852-2943-5100China - NanjingTel 86-25-8473-2460China - QingdaoTel 86-532-8502-7355China - ShanghaiTel 86-21-3326-8000China - ShenyangTel 86-24-2334-2829China - ShenzhenTel 86-755-8864-2200China - SuzhouTel 86-186-6233-1526China - WuhanTel 86-27-5980-5300China - XianTel 86-29-8833-7252China - XiamenTel 86-592-2388138China - ZhuhaiTel 86-756-3210040

India - BangaloreTel 91-80-3090-4444India - New DelhiTel 91-11-4160-8631India - PuneTel 91-20-4121-0141Japan - OsakaTel 81-6-6152-7160Japan - TokyoTel 81-3-6880- 3770Korea - DaeguTel 82-53-744-4301Korea - SeoulTel 82-2-554-7200Malaysia - Kuala LumpurTel 60-3-7651-7906Malaysia - PenangTel 60-4-227-8870Philippines - ManilaTel 63-2-634-9065SingaporeTel 65-6334-8870Taiwan - Hsin ChuTel 886-3-577-8366Taiwan - KaohsiungTel 886-7-213-7830Taiwan - TaipeiTel 886-2-2508-8600Thailand - BangkokTel 66-2-694-1351Vietnam - Ho Chi MinhTel 84-28-5448-2100

Austria - WelsTel 43-7242-2244-39Fax 43-7242-2244-393Denmark - CopenhagenTel 45-4485-5910Fax 45-4485-2829Finland - EspooTel 358-9-4520-820France - ParisTel 33-1-69-53-63-20Fax 33-1-69-30-90-79Germany - GarchingTel 49-8931-9700Germany - HaanTel 49-2129-3766400Germany - HeilbronnTel 49-7131-72400Germany - KarlsruheTel 49-721-625370Germany - MunichTel 49-89-627-144-0Fax 49-89-627-144-44Germany - RosenheimTel 49-8031-354-560Israel - RarsquoananaTel 972-9-744-7705Italy - MilanTel 39-0331-742611Fax 39-0331-466781Italy - PadovaTel 39-049-7625286Netherlands - DrunenTel 31-416-690399Fax 31-416-690340Norway - TrondheimTel 47-72884388Poland - WarsawTel 48-22-3325737Romania - BucharestTel 40-21-407-87-50Spain - MadridTel 34-91-708-08-90Fax 34-91-708-08-91Sweden - GothenbergTel 46-31-704-60-40Sweden - StockholmTel 46-8-5090-4654UK - WokinghamTel 44-118-921-5800Fax 44-118-921-5820

Worldwide Sales and Service

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 45

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Board Overview
      • 2 Getting Started
        • 21 Quick Start
          • 211 Driver Installation
          • 212 Kit Window
          • 213 MPLABreg X IDE Device Family Packs
          • 214 Atmel Studio 7 Device Family Pack
            • 22 Design Documentation and Relevant Links
              • 3 Preprogrammed Application
              • 4 Curiosity Nano
                • 41 On-Board Debugger Overview
                  • 411 Debugger
                  • 412 Virtual Serial Port (CDC)
                    • 4121 Overview
                    • 4122 Operating System Support
                    • 4123 Limitations
                    • 4124 Signaling
                    • 4125 Advanced Use
                      • 413 Mass Storage Device
                        • 4131 Mass Storage Device Implementation
                        • 4132 Limitations of Drag-and-Drop Programming
                        • 4133 Special Commands
                          • 414 Data Gateway Interface (DGI)
                            • 4141 Debug GPIO
                            • 4142 Timestamping
                                • 42 Curiosity Nano Standard Pinout
                                • 43 Power Supply
                                  • 431 Target Regulator
                                  • 432 External Supply
                                  • 433 VBUS Output Pin
                                  • 434 Power Supply Exceptions
                                    • 44 Low-Power Measurement
                                    • 45 Programming External Microcontrollers
                                      • 451 Supported Devices
                                      • 452 Software Configuration
                                      • 453 Hardware Modifications
                                      • 454 Connecting to External Microcontrollers
                                        • 46 Connecting External Debuggers
                                          • 5 Hardware User Guide
                                            • 51 Connectors
                                              • 511 AVR128DB48 Curiosity Nano Pinout
                                              • 512 Using Pin Headers
                                              • 513 Multi-Voltage IO
                                              • 514 Operational Amplifiers
                                                • 52 Peripherals
                                                  • 521 LED
                                                  • 522 Mechanical Switch
                                                  • 523 32768 kHz Crystal
                                                  • 524 1600 MHz Crystal
                                                  • 525 On-Board Debugger Implementation
                                                    • 5251 On-Board Debugger Connections
                                                      • 6 Hardware Revision History and Known Issues
                                                        • 61 Identifying Product ID and Revision
                                                        • 62 Revision 3
                                                        • 63 Revision 2
                                                          • 7 Document Revision History
                                                          • 8 Appendix
                                                            • 81 Schematic
                                                            • 82 Assembly Drawing
                                                            • 83 Curiosity Nano Base for Click boardstrade
                                                            • 84 Disconnecting the On-board Debugger
                                                            • 85 Getting Started with IAR
                                                              • The Microchip Website
                                                              • Product Change Notification Service
                                                              • Customer Support
                                                              • Microchip Devices Code Protection Feature
                                                              • Legal Notice
                                                              • Trademarks
                                                              • Quality Management System
                                                              • Worldwide Sales and Service
Page 11: AVR128DB48 Curiosity Nano Hardware User Guideww1.microchip.com/downloads/en/DeviceDoc/AVR128DB48-Curiosit… · 4. Curiosity Nano Curiosity Nano is an evaluation platform of small

4125 Advanced Use

CDC Override ModeIn normal operation the on-board debugger is a true UART bridge between the host and the device However incertain use cases the on-board debugger can override the basic operating mode and use the CDC TX and RX pinsfor other purposes

Dropping a text file into the on-board debuggerrsquos mass storage drive can be used to send characters out of thedebuggerrsquos CDC TX pin The filename and extension are trivial but the text file must start with the charactersCMDSEND_UART=

Debugger firmware version 120 or earlier has the following limitationsbull The maximum message length is 50 characters ndash all remaining data in the frame are ignoredbull The default baud rate used in this mode is 9600 bps but if the CDC is already active or has been configured

the previously used baud rate still applies

Debugger firmware version 121 and later has the following limitationsfeaturesbull The maximum message length may vary depending on the MSCSCSI layer timeouts on the host computer

andor operating system A single SCSI frame of 512 bytes (498 characters of payload) is guaranteed and filesof up to 4 KB will work on most systems The transfer will complete on the first NULL character encountered inthe file

bull The baud rate used is always 9600 bps for the default commandCMDSEND_UART=

The CDC Override Mode should not be used simultaneously with data transfer over CDCterminal If a CDCterminal session is active at the time a file is received via CDC Override Mode it will be suspended for theduration of the operation and resumed once complete

bull Additional commands are supported with explicit baud ratesCMDSEND_9600=

CMDSEND_115200=

CMDSEND_460800=

USB-Level Framing ConsiderationsSending data from the host to the CDC can be done byte-wise or in blocks which will be chunked into 64-byte USBframes Each such frame will be queued up for sending to the debuggerrsquos CDC TX pin Transferring a small amountof data per frame can be inefficient particularly at low baud rates as the on-board debugger buffers frames and notbytes A maximum of four 64-byte frames can be active at any time The on-board debugger will throttle the incomingframes accordingly Sending full 64-byte frames containing data is the most efficient method

When receiving data on the debuggerrsquos CDC RX pin the on-board debugger will queue up the incoming bytes into64-byte frames which are sent to the USB queue for transmission to the host when they are full Incomplete framesare also pushed to the USB queue at approximately 100 ms intervals triggered by USB start-of-frame tokens Up toeight 64-byte frames can be active at any time

If the host (or the software running on it) fails to receive data fast enough an overrun will occur When this happensthe last-filled buffer frame will be recycled instead of being sent to the USB queue and a full frame of data will belost To prevent this occurrence the user must ensure that the CDC data pipe is being read continuously or theincoming data rate must be reduced

413 Mass Storage DeviceThe on-board debugger includes a simple Mass Storage Device implementation which is accessible for readwriteoperations via the host operating system to which it is connected

It providesbull Read access to basic text and HTML files for detailed kit information and support

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 11

bull Write access for programming Intelreg HEX formatted files into the target devicersquos memorybull Write access for simple text files for utility purposes

4131 Mass Storage Device ImplementationThe on-board debugger implements a highly optimized variant of the FAT12 file system that has several limitationspartly due to the nature of FAT12 itself and optimizations made to fulfill its purpose for its embedded application

The Curiosity Nano USB device is USB Chapter 9-compliant as a mass storage device but does not in any way fulfillthe expectations of a general purpose mass storage device This behavior is intentional

When using the Windows operating system the on-board debugger enumerates as a Curiosity Nano USB Devicethat can be found in the disk drives section of the device manager The CURIOSITY drive appears in the file managerand claims the next available drive letter in the system

The CURIOSITY drive contains approximately one MB of free space This does not reflect the size of the targetdevicersquos Flash in any way When programming an Intelreg HEX file the binary data are encoded in ASCII withmetadata providing a large overhead so one MB is a trivially chosen value for disk size

It is not possible to format the CURIOSITY drive When programming a file to the target the filename may appear inthe disk directory listing This is merely the operating systemrsquos view of the directory which in reality has not beenupdated It is not possible to read out the file contents Removing and replugging the board will return the file systemto its original state but the target will still contain the application that has been previously programmed

To erase the target device copy a text file starting with ldquoCMDERASErdquo onto the disk

By default the CURIOSITY drive contains several read-only files for generating icons as well as reporting status andlinking to further information

bull AUTORUNICO ndash icon file for the Microchip logobull AUTORUNINF ndash system file required for Windows Explorer to show the icon filebull KIT-INFOHTM ndash redirect to the development board websitebull KIT-INFOTXT ndash a text file containing details about the boardrsquos debugger firmware version board name USB

serial number device and drag-and-drop supportbull STATUSTXT ndash a text file containing the programming status of the board

Info  STATUSTXT is dynamically updated by the on-board debugger The contents may be cached bythe OS and therefore do not reflect the correct status

4132 Limitations of Drag-and-Drop Programming

Lock BitsLock bits included in the hex file will be ignored when using drag-and-drop programming To program lock bits useMPLABreg X IDE or Atmel Studio 7

Enabling CRC Check in FusesIt is not advisable to enable the CRC check in the target devicersquos fuses when using drag-and-drop programming Thisis because a subsequent chip erase (which does not affect fuse bits) will effect a CRC mismatch and the applicationwill fail to boot To recover a target from this state a chip erase must be done using MPLABreg X IDE orAtmel Studio 7 which will automatically clear the CRC fuses after erasing

4133 Special CommandsSeveral utility commands are supported by copying text files to the mass storage disk The filename or extension isirrelevant ndash the command handler reacts to content only

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 12

Table 4-2 Special File Commands

Command Content Description

CMDERASE Executes a chip erase of the target

CMDSEND_UART= Sends a string of characters to the CDC UART See ldquoCDCOverride Moderdquo

CMDSEND_9600=CMDSEND_115200=CMDSEND_460800=

Sends a string of characters to the CDC UART at the baud ratespecified Note that only the baud rates explicitly specified hereare supported See ldquoCDC Override Moderdquo (Debugger firmwarev121 or newer)

CMDRESET Resets the target device by entering Programming mode andthen exiting Programming mode immediately thereafter Exacttiming can vary according to the programming interface of thetarget device (Debugger firmware v116 or newer)

CMDPOWERTOGGLE Powers down the target and restores power after a 100 msdelay If external power is provided this has no effect(Debugger firmware v116 or newer)

CMD0V Powers down the target device by disabling the target supplyregulator If external power is provided this has no effect(Debugger firmware v116 or newer)

CMD1V8 Sets the target voltage to 18V If external power is providedthis has no effect (Debugger firmware v121 or newer)

CMD3V3 Sets the target voltage to 33V If external power is providedthis has no effect (Debugger firmware v116 or newer)

CMD5V0 Sets the target voltage to 50V If external power is providedthis has no effect (Debugger firmware v116 or newer)

Info  The commands listed here are triggered by the content being sent to the mass storage emulateddisk and no feedback is provided in the case of either success or failure

414 Data Gateway Interface (DGI)Data Gateway Interface (DGI) is a USB interface for transporting raw and timestamped data between on-boarddebuggers and host computer-based visualization tools MPLAB Data Visualizer is used on the host computer todisplay debug GPIO data It is available as a plug-in for MPLABreg X IDE or a stand-alone application that can be usedin parallel with MPLABreg X IDE or Atmel Studio 7

Although DGI encompasses several physical data interfaces the AVR128DB48 Curiosity Nano implementationincludes logic analyzer channels

bull Two debug GPIO channels (also known as DGI GPIO)

4141 Debug GPIODebug GPIO channels are timestamped digital signal lines connecting the target application to a host computervisualization application They are typically used to plot the occurrence of low-frequency events on a time-axis ndash forexample when certain application state transitions occur

The figure below shows the monitoring of the digital state of a mechanical switch connected to a debug GPIO inMPLAB Data Visualizer

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 13

Figure 4-2 Monitoring Debug GPIO with MPLABreg Data Visualizer

Debug GPIO channels are timestamped so the resolution of DGI GPIO events is determined by the resolution of theDGI timestamp module

Important  Although bursts of higher-frequency signals can be captured the useful frequency range ofsignals for which debug GPIO can be used is up to about 2 kHz Attempting to capture signals above thisfrequency will result in data saturation and overflow which may cause the DGI session to be aborted

4142 TimestampingDGI sources are timestamped as they are captured by the debugger The timestamp counter implemented in theCuriosity Nano debugger increments at 2 MHz frequency providing a timestamp resolution of a half microsecond

42 Curiosity Nano Standard PinoutThe 12 edge connections closest to the USB connector on Curiosity Nano boards have a standardized pinout Theprogramdebug pins have different functions depending on the target programming interface as shown in the tableand figure below

Table 4-3 Curiosity Nano Standard Pinout

Debugger Signal Target MCU Description

ID mdash ID line for extensions

CDC TX UART RX USB CDC TX line

CDC RX UART TX USB CDC RX line

DBG0 UPDI Debug data line

DBG1 GPIO1 debug GPIO1

DBG2 GPIO0 debug GPIO0

DBG3 RESET Reset line

NC mdash No connect

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 14

continuedDebugger Signal Target MCU Description

VBUS mdash VBUS voltage for external use

VOFF mdash Voltage Off input Disables the target regulator andtarget voltage when pulled low

VTG mdash Target voltage

GND mdash Common ground

Figure 4-3 Curiosity Nano Standard Pinout

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

43 Power SupplyThe board is powered through the USB port and contains two LDO regulators one to generate 33V for the on-boarddebugger and an adjustable LDO regulator for the target microcontroller AVR128DB48 and its peripherals Thevoltage from the USB connector can vary between 44V to 525V (according to the USB specification) and will limitthe maximum voltage to the target The figure below shows the entire power supply system on AVR128DB48Curiosity Nano

Figure 4-4 Power Supply Block Diagram

USBTarget MCU

Power source

Cut strap

Power consumer P3V3DEBUGGER

Power converter

DEBUGGERRegulator

VUSB

TargetRegulator

Power Supply strap

Adjust

Level shifter

VLVLVREG

IO IO GPIOstraps

IO

OnOffMeasure OnOff

ID systemVOFF

PTC Fuse

Power protection

VBUS

Target Power strap

VTG

431 Target RegulatorThe target voltage regulator is a MIC5353 variable output LDO The on-board debugger can adjust the voltage outputsupplied to the board target section by manipulating the MIC5353rsquos feedback voltage The hardware implementation

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 15

is limited to an approximate voltage range from 17V to 51V Additional output voltage limits are configured in thedebugger firmware to ensure that the output voltage never exceeds the hardware limits of the AVR128DB48microcontroller The voltage limits configured in the on-board debugger on AVR128DB48 Curiosity Nano are 18ndash55V

Info  The target voltage is set to 33V when the board is manufactured It can be changed throughMPLABreg X IDE project properties and in the Atmel Studio 7 device programming dialog Any change tothe target voltage is persistent even after a power toggle The resolution is less than 5 mV but may belimited to 10 mV by the adjustment program

Info  Voltage settings that are set up in MPLABreg X IDE are not immediately applied to the board Thenew voltage setting is applied to the board when the debugger is accessed in any way like pushing theRefresh Debug Tool Status button in the project dashboard tab or programmingreading program memory

Info  There is a simple option to adjust the target voltage with a drag-and-drop command text file to theboard This supports a set of common target voltages See section 4133 Special Commands for furtherdetails

The MIC5353 supports a maximum current load of 500 mA It is an LDO regulator in a small package placed on asmall printed circuit board (PCB) and the thermal shutdown condition can be reached at lower loads than 500 mAThe maximum current load depends on the input voltage the selected output voltage and the ambient temperatureThe figure below shows the safe operating area for the regulator with an input voltage of 51V and an ambienttemperature of 23degC

Figure 4-5 Target Regulator Safe Operation Area

The voltage output of the target regulator is continuously monitored (measured) by the on-board debugger If it ismore than 100 mV overunder the voltage setting value an error condition will be flagged and the target voltageregulator will be turned off This will detect and handle any short-circuit conditions It will also detect and handle if anexternal voltage which causes VCC_TARGET to move outside of the voltage setting monitoring window of plusmn100 mVis suddenly applied to the VTG pin without setting the VOFF pin low

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 16

Info  If the external voltage is lower than the monitoring window lower limit (target voltage setting ndash 100mV) the on-board debugger status LED will blink rapidly If the external voltage is higher than themonitoring window upper limit (target voltage setting + 100 mV) the on-board debugger status LED willcontinue to shine If the external voltage is removed the status LED will start to blink rapidly until the on-board debugger detects the new situation and turns the target voltage regulator back on

432 External SupplyAVR128DB48 Curiosity Nano can be powered by an external voltage instead of the on-board target regulator Whenthe Voltage Off (VOFF) pin is shorted to ground (GND) the on-board debugger firmware disables the target regulatorand it is safe to apply an external voltage to the VTG pin

It is also safe to apply an external voltage to the VTG pin when no USB cable is plugged into the DEBUG connectoron the board

The VOFF pin can be tied lowlet go at any time This will be detected by a pin-change interrupt to the on-boarddebugger which controls the target voltage regulator accordingly

WARNINGApplying an external voltage to the VTG pin without shorting VOFF to GND may cause permanent damageto the board

WARNINGDo not apply any voltage to the VOFF pin Let the pin float to enable the power supply

WARNINGAbsolute maximum external voltage is 55V for the on-board level shifters and the standard operatingcondition of the AVR128DB48 is 18ndash55V Applying a higher voltage may cause permanent damage to theboard

Info  If an external voltage is applied without pulling the VOFF pin low and an external supply pulls thevoltage lower than the monitoring windowrsquos lower limit (target voltage setting - 100 mV) the on-boarddebugger status LED will blink rapidly and shut the on-board regulator off If an external voltage issuddenly removed when the VOFF pin is not pulled low the status LED will start to blink rapidly until theon-board debugger detects the new situation and switches the target voltage regulator back on

Programming debugging and data streaming is still possible with an external power supply ndash the debugger andsignal level shifters will be powered from the USB cable Both regulators the debugger and the level shifters arepowered down when the USB cable is removed

Info  In addition to the power consumed by the AVR128DB48 and its peripherals approximately 100 microAwill be drawn from any external power source to power the on-board level shifters and voltage monitorcircuitry when a USB cable is plugged in the DEBUG connector on the board When a USB cable is notplugged in some current is used to supply the level shifters voltage pins which have a worst-case currentconsumption of approximately 5 microA Typical values may be as low as 100 nA

433 VBUS Output PinAVR128DB48 Curiosity Nano has a VBUS output pin that can be used to power external components that need a 5Vsupply The VBUS output pin has a PTC fuse to protect the USB against short circuits A side effect of the PTC fuseis a voltage drop on the VBUS output with higher current loads The chart below shows the voltage versus the currentload of the VBUS output

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 17

Figure 4-6 VBUS Output Voltage vs Current

434 Power Supply ExceptionsThis is a summary of most exceptions that can occur with the power supply

Target Voltage Shuts DownThis can happen if the target section draws too much current at a given voltage This will cause the thermal shutdownsafety feature of the MIC5353 regulator to kick in To avoid this reduce the current load of the target section

Target Voltage Setting is Not ReachedThe maximum output voltage is limited by the USB input voltage (specified to be 44-525V) and the voltage dropover the MIC5353 regulator at a given voltage setting and current consumption If a higher output voltage is neededuse a USB power source that can provide a higher input voltage or use an external voltage supply on the VTG pin

Target Voltage is Different From SettingThis can be caused by an externally applied voltage to the VTG pin without setting the VOFF pin low If the targetvoltage differs more than 100 mV overunder the voltage setting it will be detected by the on-board debugger andthe internal voltage regulator will be shut down To fix this issue remove the applied voltage from the VTG pin andthe on-board debugger will enable the on-board voltage regulator when the new condition is detected Note that thePS LED will be blinking rapidly if the target voltage is below 100 mV of the setting but will be lit normally when it ishigher than 100 mV above the setting

No Or Very Low Target Voltage and PS LED is Blinking RapidlyThis can be caused by a full or partial short-circuit and is a special case of the issue mentioned above Remove theshort-circuit and the on-board debugger will re-enable the on-board target voltage regulator

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 18

No Target Voltage and PS LED is Lit 1This occurs if the target voltage is set to 00V To fix this set the target voltage to a value within the specified voltagerange for the target device

No Target Voltage and PS LED is Lit 2This can be the issue if power jumper J100 andor J101 is cut and the target voltage regulator is set to a value withinthe specified voltage range for the target device To fix this solder a wirebridge between the pads for J100J101 oradd a jumper on J101 if a pin header is mounted

VBUS Output Voltage is Low or Not PresentThis is most lightly caused by a high-current drain on VBUS and the protection fuse (PTC) will reduce the current orcut off completely Reduce the current consumption on the VBUS pin to fix this issue

44 Low-Power MeasurementPower to the AVR128DB48 is connected from the on-board power supply and VTG pin through a 100 mil pin headermarked with ldquoPOWERrdquo in silkscreen (J101) To measure the power consumption of the AVR128DB48 and otherperipherals connected to the board cut the Target Power strap and connect an ammeter over the strap

To measure the lowest possible power consumption follow these steps1 Cut the POWER strap with a sharp tool2 Solder a 1x2 100 mil pin header in the footprint3 Connect an ammeter to the pin header4 Write firmware that

41 Tri-states any IO connected to the on-board debugger42 Sets the microcontroller in its lowest power Sleep state

5 Program the firmware into the AVR128DB48

Figure 4-7 Target Power Strap

Target Power strap (top side)

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 19

Tip  A 100-mil pin header can be soldered into the Target Power strap (J101) footprint for easyconnection of an ammeter Once the ammeter is no longer needed place a jumper cap on the pin header

Info  The on-board level shifters will draw a small amount of current even when they are not in use Amaximum of 2 microA can be drawn from each IO pin connected to a level shifter for a total of 10 microA Keepany IO pin connected to a level shifter in tri-state to prevent leakage All IOs connected to the on-boarddebugger are listed in 5251 On-Board Debugger Connections To prevent any leakage to the on-boardlevel shifters they can be disconnected completely as described in 84 Disconnecting the On-boardDebugger

45 Programming External MicrocontrollersThe on-board debugger on AVR128DB48 Curiosity Nano can be used to program and debug microcontrollers onexternal hardware

451 Supported DevicesAll external AVR microcontrollers with the UPDI interface can be programmed and debugged with the on-boarddebugger with Atmel Studio

External SAM microcontrollers that have a Curiosity Nano Board can be programmed and debugged with the on-board debugger with Atmel Studio

AVR128DB48 Curiosity Nano can program and debug external AVR128DB48 microcontrollers with MPLAB X IDE

452 Software ConfigurationNo software configuration is required to program and debug the same device that is mounted on the board

To program and debug a different microcontroller than what is mounted on the board Atmel Studio must beconfigured to allow free selection of devices and programming interfaces

1 Navigate to Tools gt Options through the menu system at the top of the application2 Select the Tools gt Tool settings category in the options window3 Set the Hide unsupported devices option to False

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 20

Figure 4-8 Hide Unsupported Devices

Info  Atmel Studio allows any microcontroller and interface to be selected when Hide unsupporteddevices is set to False also microcontrollers and interfaces which are not supported by the on-boarddebugger

453 Hardware ModificationsThe on-board debugger is connected to the AVR128DB48 by default These connections must be removed beforeany external microcontroller can be programmed or debugged Cut the GPIO straps shown in the figure below with asharp tool to disconnect the AVR128DB48 from the on-board debugger

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 21

Figure 4-9 Programming and Debugging Connections to Debugger

GPIO straps (bottom side)

Info  Cutting the connections to the debugger will disable programming debugging and data streamingfrom the AVR128DB48 mounted on the board

Tip  Solder in 0Ω resistors across the footprints or short-circuit them with solder to reconnect the signalsbetween the on-board debugger and the AVR128DB48

454 Connecting to External MicrocontrollersThe figure and table below show where the programming and debugging signals must be connected to program anddebug external microcontrollers The on-board debugger can supply power to the external hardware or use anexternal voltage as a reference for its level shifters Read more about the power supply in 43 Power Supply

The on-board debugger and level shifters actively drive data and clock signals (DBG0 DBG1 and DBG2) used forprogramming and debugging and in most cases the external resistor on these signals can be ignored Pull-downresistors are required on the ICSPtrade data and clock signals to debug PICreg microcontrollers

DBG3 is an open-drain connection and requires a pull-up resistor to function

AVR128DB48 Curiosity Nano has a pull-up resistor R200 connected to its RESET signal (DBG3) The location ofthe pull-up resistor is shown in the 82 Assembly Drawing in the appendix

Remember bull Connect GND and VTG to the external microcontrollerbull Tie the VOFF pin to GND if the external hardware has its own power supplybull Make sure there are pull-down resistors on the ICSP data and clock signals (DBG0 and DBG1) to

support the debugging of PIC microcontrollers

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 22

Figure 4-10 Curiosity Nano Standard Pinout

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

Table 4-4 Programming and Debugging Interfaces

Curiosity Nano Pin UPDI ICSPtrade SWD

DBG0 UPDI DATA SWDIO

DBG1 mdash CLK SWCLK

DBG2 mdash mdash mdash

DBG3 mdash MCLR RESET

46 Connecting External DebuggersEven though there is an on-board debugger external debuggers can be connected directly to the AVR128DB48Curiosity Nano to programdebug the AVR128DB48 The on-board debugger keeps all the pins connected to theAVR128DB48 and board edge in tri-state when not actively used Therefore the on-board debugger will not interferewith any external debug tools

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 23

Figure 4-11 Connecting the MPLABreg PICkittrade 4 In-Circuit DebuggerProgrammer to AVR128DB48 CuriosityNano

2345678 1

VDD

GroundDATA

2 = VDD

3 = Ground

4 = PGD

5 = Unused

6 = Unused

7 = Unused

8 = Unused

1 = Unused

MPLABreg PICkittrade 4

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 24

Figure 4-12 Connecting the Atmel-ICE to AVR128DB48 Curiosity Nano

VDD

Ground

DATA

AVRregSAM

3 = UPDI

4 = VTG

5 = Unused

6 = Unused

7 = Unused

8 = Unused

1 = Unused

2 = GND

9 = Unused

10 = Unused

Atmel-ICE

21 9

10

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

CAUTIONTo avoid contention between the external debugger and the on-board debugger do not start anyprogrammingdebug operation with the on-board debugger through MPLABreg X IDE or Atmel Studio 7 ormass storage programming while the external tool is active

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 25

5 Hardware User Guide

51 Connectors

511 AVR128DB48 Curiosity Nano PinoutAll the AVR128DB48 IO pins are accessible at the edge connectors on the board The image below shows the boardpinout For all available functions on each pin refer to the IO Multiplexing and Considerations section in theAVR128DB48 data sheet

Figure 5-1 AVR128DB48 Curiosity Nano Pinout

USB

DEBUGGER

AVR128DB48

SW0

LED0

PS LEDNC

NC

IDID

CDC RX

CD

CR

XUSART3 TXPB0

CDC TX

CD

CT

XUSART3 RXPB1

DBG1

DB

G1PB3LED0

DBG2

DB

G2PB2SW0

PF4

PF

4USART2 TX

PF5

PF

5USART2 RX

PA2

PA

2TWI0 SDA

PA3

PA

3TWI0 SCL

PA4

PA

4SPI0 MOSI

PA5

PA

5SPI0 MISO

PA6

PA

6SPI0 SCK

PA7

PA

7SPI0 SS

GND

GN

D

PB0

PB

0USART3 TXCDC RX

PB1

PB

1USART3 RXCDC TX

PF2

PF

2

PF3

PF

3

PC0

PC

0

PC1

PC

1

PC2

PC

2

PC3

PC

3

GND

GN

D

(PA0)

(PA

0)XTALHF1

(PA1)

(PA

1)XTALHF2

PB2

PB

2SW0

PB3

PB

3LED0

VBUS

VB

US

VOFF

VO

FF

DBG3

DB

G3 PF6

DBG0

DB

G0 UPDI

GND

GN

D

VTG

VT

G

PD6

PD

6 AIN6

PD3

PD

3 AIN3 OP0 INN

PD2

PD

2 AIN2 OP0 OUT TCA0 WO2

PD1

PD

1 AIN1 OP0 INP TCA0 WO1

PD0

PD

0 AIN0 TCA0 WO0

PD7

PD

7 AIN7 OP1 INN

PD5

PD

5 AIN5 OP1 OUT

PD4

PD

4 AIN4 OP1 INP

GND

GN

D

PE3

PE

3 OP2 INN

PE2

PE

2 OP2 OUT

PE1

PE

1 OP2 INP

PE0

PE

0

PC7

PC

7

PC6

PC

6

PC5

PC

5

PC4

PC

4

GND

GN

D

PB5

PB

5

PB4

PB

4

(PF1)

(PF

1) XTAL32K2

(PF0)

(PF

0) XTAL32K1

DEBUGGERAVR128DB48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

MVIO

OPAMP

Shared pin

AVR128DB48Curiosity Nano

512 Using Pin HeadersThe edge connector footprint on AVR128DB48 Curiosity Nano has a staggered design where each hole is shifted 8mil (~02 mm) off-center The hole shift allows the use of regular 100 mil pin headers on the board without solderingOnce the pin headers are firmly in place they can be used in normal applications like pin sockets and prototypingboards without any issues

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 26

Figure 5-2 Attaching Pin-Headers to the Curiostiy Nano Board

Figure 5-3 Connecting to Curiosity Nano Base for Click boardstrade

Tip  Start at one end of the pin header and gradually insert the header along the length of the boardOnce all the pins are in place use a flat surface to push them in

Tip  For applications where the pin headers will be used permanently it is still recommended to solderthem in place

Important  Once the pin headers are in place they are hard to remove by hand Use a set of pliers andcarefully remove the pin headers to avoid damage to the pin headers and PCB

513 Multi-Voltage IO

The AVR128DB48 Curiosity Nano MCU has support for Multi-Voltage IO (MVIO) AVR128DB48 MVIO pins areconnected to the edge connector at PC0-PC7 MVIO pins are capable of regular IO-pin behavior

MVIO can be configured in one of two supply modesbull Single-Supply mode All IO pins including MVIO-capable pins are powered by VCC_TARGET By default

VCC_TARGET is connected to VDDIO2 through a 0-ohm resistor (R204)bull Dual-Supply mode MVIO-capable pins are powered by an external power supply connected to VDDIO2 Non-

MVIO pins are powered by VCC_TARGET

Dual-Supply mode allows MVIO-pins to be powered at different voltages than pins powered from VCC_TARGET

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 27

WARNINGThe absolute maximum external voltage range for the AVR128DB48 is 18ndash55V Applying a higher voltagemay cause permanent damage to the board

By default AVR128DB48 Curiosity Nano board is configured for single-supply mode To use Dual-Supply mode somehardware modifications are required

WARNINGBefore any hardware modifications are done make sure the board is disconnected from USB or externalpower

bull Disconnect resistor R204 connecting VDDIO2 to VCC_TARGETbull Connect a new power supply to VDDIO2 and ground at J212bull J212 does not have reverse polarity protection Make sure to match polarity between the power supply and

J212 Positive-polarity to J212-pin 1 and negative-polarity to J212-pin 2

The resistor R204 VDDIO2 and J212 can be seen in Figure 5-4

Figure 5-4 MVIO and VDDIO2 Connections

J212 R204

WARNINGApplying an external voltage to VDDIO2 pin without removing resistor R204 may cause permanentdamage to the board

WARNINGJ212 does not have reverse polarity protection Applying voltage to the wrong pin may cause permanentdamage to the board

514 Operational AmplifiersAVR128DB48 features three internal operational amplifiers with a flexible connection scheme using analogmultiplexers and resistor ladders This allows a large number of analog signal conditioning configurations manyrequiring no external components

Table 5-1 OPAMP Pin Connections

OPAMP Poisitive Input (INP) Negative Input (INN) Output (OUT)

OP0 PD1 PD3 PD2

OP1 PD4 PD7 PD5

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 28

continuedOPAMP Poisitive Input (INP) Negative Input (INN) Output (OUT)

OP2 PE1 PE3 PE2

For information about OPAMP on the edge connector and any shared functionality see 511 AVR128DB48 CuriosityNano Pinout

52 Peripherals

521 LEDThere is one yellow user LED available on the AVR128DB48 Curiosity Nano board that can be controlled by eitherGPIO or PWM The LED can be activated by driving the connected IO line to GND

Table 5-2 LED Connection

AVR128DB48 Pin Function Shared Functionality

PB3 Yellow LED0 Edge connector On-board debugger

522 Mechanical SwitchThe AVR128DB48 Curiosity Nano board has one mechanical switch This is a generic user-configurable switchWhen the switch is pressed it will drive the IO line to ground (GND)

Tip  There is no externally connected pull-up resistor on the switch To use the switch make sure that aninternal pull-up resistor is enabled on pin PB2

Table 5-3 Mechanical Switch

AVR128DB48 Pin Description Shared Functionality

PB2 User switch (SW0) Edge connector On-board debugger

523 32768 kHz Crystal

On the AVR128DB48 Curiosity Nano board is a mounted 32768 kHz crystal of type VMK3-9001-32K7680000 thecrystal is accurate to within 20 ppm Using the External 32768 kHz Crystal Oscillator (XOSC32K) module inAVR128DB48 with the mounted 32768 kHz crystal generates a clock signal that is significantly more accurate thanthe Internal 32768 kHz Ultra Low-Power Oscillator (OSC32K) module can generate alone With the Auto-Tunefeature the 32768 kHz can be used as a reference to improve the accuracy of the internal oscillator This is an idealreference clock for the Real-Time Counter module in AVR128DB48

The 32768 kHz crystal is connected to AVR128DB48 on PF0 and PF1 which are also routed to the edge connectorthrough two solder points PF0 and PF1 are disconnected from the edge connector by default to reduce the chanceof an external signal causing contention with the crystal and to remove excessive capacitance on the lines

Next to the 32768 kHz crystal is a cut-strap (J209) which can be used to measure the oscillator safety factor This isdone by cutting the strap and adding a 0402 SMD resistor across the strap More information about oscillatorallowance and safety factor can be found in the AN2648 application note from Microchip

Cut straps and solder points can be seen in Figure 5-5

Table 5-4 32768 kHz Crystal Connections

AVR128DB48 Pin Function Shared Functionality

PF0 XTAL32K1 (Crystal input) Edge connector

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 29

continuedAVR128DB48 Pin Function Shared Functionality

PF1 XTAL32K2 (Crystal output) Edge connector

PA0 and PA1 can be used as GPIO To do so some hardware modifications are required

WARNINGBefore any hardware modifications are done make sure the board is disconnected from the USB orexternal power

bull Disconnect the 32768 kHz crystal by cutting the two straps on the top side of the board next to the crystal(J207 J208) The crystal should be disconnected when using the pin as GPIO as this might harm the crystal

bull Connect the IO lines to the edge connector by placing solder blobs on the circular solder points marked PF0and PF1 on the bottom side of the board (J210 J211)

Figure 5-5 Crystal Connection and Cut Straps

Top side Boom side

J211

J210

J207

J20832768 kHz Crystal

J209

524 1600 MHz Crystal

On the AVR128DB48 Curiosity Nano board is a mounted 1600 MHz crystal of type VXM7-9040-16M0000000 thecrystal is accurate to within 20 ppm Using the External High-Frequency Crystal Oscillator (XOSCHF) module inAVR128DB48 with the mounted 1600 MHz crystal generates a clock signal that is significantly more accurate thanthe Internal High-Frequency Oscillator (OSCHF) module

The 1600 MHz crystal is connected to AVR128DB48 on PA0 and PA1 which are also routed to the edge connectorthrough two solder points PA0 and PA1 are disconnected from the edge connector by default to reduce the chanceof an external signal causing contention with the crystal and to remove excessive capacitance on the lines

Next to the 1600 MHz crystal is a cut-strap (J217) which can be used to measure the oscillator safety factor This isdone by cutting the strap and adding a 0402 SMD resistor across the strap More information about oscillatorallowance and safety factor can be found in the AN2648 application note from Microchip

Cut straps and solder points can be seen in Figure 5-6

Table 5-5 Crystal Connections

AVR128DB48 Pin Function Shared Functionality

PA0 XTALHF1 (Crystal input) Edge connector

PA1 XTALHF2 (Crystal output) Edge connector

PA0 and PA1 can be used as GPIO To do so some hardware modifications are required

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 30

WARNINGBefore any hardware modifications are done make sure the board is disconnected from USB or externalpower

bull Disconnect the 1600 MHz crystal by cutting the two straps on the top side of the board next to the crystal (J215J216) The crystal should be disconnected when using the pin as GPIO as this might harm the crystal

bull Connect the IO lines to the edge connector by placing solder blobs on the circular solder points marked PA0and PA1 on the bottom side of the board (J213 J214)

Figure 5-6 Crystal Connection and Cut Straps

Top side Boom side

J214

J213

J216

J2151600 MHzCrystal

J217

525 On-Board Debugger ImplementationAVR128DB48 Curiosity Nano features an on-board debugger that can be used to program and debug theAVR128DB48 using UPDI The on-board debugger also includes a virtual serial port (CDC) interface over UART anddebug GPIO Both MPLABreg X IDE and Atmel Studio 7 can be used as a front-end for the on-board debugger forprogramming and debugging MPLAB Data Visualizer can be used as a front-end for the CDC and debug GPIO

5251 On-Board Debugger ConnectionsThe table below shows the connections between the target and the debugger section All connections between thetarget and the debugger are tri-stated as long as the debugger is not actively using the interface Hence since thereare little contaminations of the signals the pins can be configured to anything the user wants

For further information on how to use the capabilities of the on-board debugger see 41 On-Board DebuggerOverview

Table 5-6 On-Board Debugger Connections

AVR128DB48Pin

Debugger Pin Function Shared Functionality

PB1 CDC TX UART RX (AVR128DB48 RX line) Edge connector

PB0 CDC RX UART TX (AVR128DB48 TX line) Edge connector

UPDI DBG0 UPDI Edge connector

PB3 DBG1 LED0Debug GPIO1 Edge connector

PB2 DBG2 SW0Debug GPIO0 Edge connector

PF6 DBG3 RESET Edge connector

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 31

6 Hardware Revision History and Known IssuesThis user guide is written to provide information about the latest available revision of the board The followingsections contain information about known issues a revision history of older revisions and how older revisions differfrom the latest revision

61 Identifying Product ID and RevisionThe revision and product identifier of the AVR128DB48 Curiosity Nano Board can be found in two ways Either byutilizing the MPLABreg X IDE or Atmel Studio 7 Kit Window or by looking at the sticker on the bottom side of the PCB

By connecting AVR128DB48 Curiosity Nano to a computer with MPLABreg X IDE or Atmel Studio 7 running the KitWindow will pop up The first six digits of the serial number which is listed under kit information contain the productidentifier and revision

Tip  The Kit Window can be opened in MPLABreg X IDE through the menu bar Window gt Kit Window

The same information can be found on the sticker on the bottom side of the PCB Most boards will have the identifierand revision printed in plain text as A09-nnnnrr where ldquonnnnrdquo is the identifier and ldquorrrdquo is the revision Boards withlimited space have a sticker with only a data matrix code containing the product identifier revision and serialnumber

The serial number string has the following format

nnnnrrssssssssss

n = product identifier

r = revision

s = serial number

The product identifier for AVR128DB48 Curiosity Nano is A09‑3372

62 Revision 3AVR128DB48 silicon revision A5 or later is mounted on this revision of the board

63 Revision 2Revision 2 is the initially released board revision

AVR128DB48 silicon revision A4 is mounted on this revision of the board

AVR128DB48 Curiosity NanoHardware Revision History and Known Issues

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 32

7 Document Revision HistoryDoc Rev Date Comments

A 092020 Initial document release

AVR128DB48 Curiosity NanoDocument Revision History

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 33

8 Appendix

81 SchematicFigure 8-1 AVR128DB48 Curiosity Nano Schematic

11

22

33

44

55

66

77

88

DD

CC

BB

AA

2 of

4

AV

R12

8DB

48 C

uri

osit

y N

ano

240

820

20A

VR

128D

B48

_Cur

iosi

ty_N

ano_

Targ

et_M

CU

Sch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA

Rev

isio

n

File

P

CB

Num

ber

PC

B

Rev

isio

n

Des

ign

ed w

ith

Dra

wn

By

ML

Shee

t Titl

e

Targ

et M

CU

Eng

inee

rA

H

A08

-305

71

Size

A3

A09

-337

22

Page

D

ateA

ltium

com

GN

D

VD

DIO

2

100n

C20

1

GN

D

PA5_

SPI0

_MIS

OPA

6_SP

I0_S

CK

PA7_

SPI0

_SS

PB0_

USA

RT

3_T

XPB

1_U

SAR

T3_

RX

PB2_

SW0_

DB

G2

PB3_

LE

D0_

DB

G1

PB

4P

B5

PC

0P

C1

PC

2

PC3

PC4PC5PC6PC7PD0_AIN0_TCA0_WO0PD1_AIN1_OP0_INP_TCA0_WO1PD2_AIN2_OP0_OUT_TCA0_WO2PD3_AIN3_OP0_INNPD4_AIN4_OP1_INP

PA3_TWI0_SCL

PA1_XTALHF2

UPDI_DBG0

PF5_USART2_RX

PF3

PF

2PF

1_X

TA

L32

K2

PF0_

XT

AL

32K

1P

E3_

OP

2_IN

NP

E2_

OP

2_O

UT

PE

1_O

P2_

INP

PE

0

PD5_

AIN

5_O

P1_

OU

TPD

6_A

IN6

PD7_

AIN

7_O

P1_

INN

GN

D

VC

C_T

AR

GE

T

100n

C20

2

GN

DV

CC

_TA

RG

ET

100n

C20

0

PF1_XTAL32K2

PF0_XTAL32K1

PA2_TWI0_SDA

PA0_XTALHF1

PF4_USART2_TX

PA4_SPI0_MOSI

GN

D

PA7_

SPI0

_SS

PA6_

SPI0

_SC

KPA

5_SP

I0_M

ISO

PA4_

SPI0

_MO

SIPA

3_T

WI0

_SC

LPA

2_T

WI0

_SD

A

PC

0P

C1

PC

2P

C3

PB

4P

B5

PD7_

AIN

7_O

P1_

INN

PD6_

AIN

6

PD2_

AIN

2_O

P0_

OU

T_T

CA

0_W

O2

PD1_

AIN

1_O

P0_

INP_

TC

A0_

WO

1PD

0_A

IN0_

TC

A0_

WO

0

PD5_

AIN

5_O

P1_

OU

TPD

4_A

IN4_

OP

1_IN

P

PD3_

AIN

3_O

P0_

INN

32K

Hz

Cry

stal

PB0_

USA

RT

3_T

XPB

1_U

SAR

T3_

RX

1kR203

US

ER

LE

D

VC

C_T

AR

GE

T

PF6_DBG3

PB2_SW0_DBG2

PB3_LED0_DBG1

GN

D

USE

R B

UT

TO

N

PB3_

LE

D0_

DB

G1

PB2_

SW0_

DB

G2

PB1_

USA

RT

3_R

XPB

0_U

SAR

T3_

TX

PF4_

USA

RT

2_T

XPF

5_U

SAR

T2_

RX

PF

2P

F3

PC

4P

C5

PC

6P

C7

1kR202

YELLOWLEDSML-D12Y1WT86

2 1

D200

TS604VM1-035CR13

4 2

SW20

0

GN

DV

CC

_ED

GE

GN

DG

ND

GN

DG

ND

UPD

I_D

BG

0P

F6_

DB

G3

J209

PB3_

LE

D0_

DB

G1

PB2_

SW0_

DB

G2

AV

R12

8DB

48

22u

FC

205

VC

C_E

DG

E

GN

D

DBG0

CDC_TXCDC_RX

DBG2

DBG1

DBG3

DBG2

DE

BU

GG

ER

CO

NN

EC

TIO

NS

DBG1

DBG3DBG0

VOFF

ID_SYS

ID_SYS

VOFF

TA

RG

ET

BU

LK

VC

C_T

AR

GE

TR

ESE

T P

ull

VB

US

CD

C R

X3

CD

C T

X4

DB

G1

5

DB

G2

6

0 T

X7

1 R

X8

2 SD

A9

3 S

CL

10

4 M

OSI

11

5 M

ISO

12

6 S

CK

13

7 S

S14

GN

D15

0 (T

X)

16

1 (R

X)

17

218

319

020

GN

D24

DB

G3

54

DB

G0

53

GN

D52

VC

C51

PW

M 3

46

AD

C 2

45

AD

C 1

44

AD

C 0

43

GN

D42

438

434

GN

D33

AD

C 7

50

AD

C 6

49

AD

C 5

48

PW

M 4

47

DE

BU

GG

ER

TAR

GE

T

ID2

VO

FF

55

121

222

323

025

126

227

328

429

530

631

732

535

636

737

539

640

741

RE

SER

VE

D1

VB

US

56

CN

AN

O56

-pin

edg

e co

nnec

tor

J200

J201

J203

J205

J206

J202

J204

PF1_

XT

AL

32K

2PF

0_X

TA

L32

K1

NC

XOUT

XIN

47kR200

AV

R12

8DB

48

UPD

I

GPI

O1

GPI

O0

RE

SET

DB

G0

DB

G1

DB

G2

DB

G3

Deb

ugge

r

CD

C T

X

CD

C R

X

UA

RT

3 R

X

UA

RT

3 T

X

VT

G1

8V -

55

VPB

3

PB

2

PF

6

UP

DI

PB

0

PB

1

Nam

eP

in

PE

3_O

P2_

INN

PE

2_O

P2_

OU

TP

E1_

OP

2_IN

PP

E0

J207

J208

PF

0P

F1

PA5

1

PA6

2

PA7

3

PB0

4

PB1

5

PB2

6

PB3

7

PB4

8

PB5

9

PC0

10

PC1

11

PC2

12

PC313

VDDIO214

GND15

PC416

PC517

PC618

PC719

PD020

PD121

PD222

PD323

PD424

PD5

25

PD6

26

PD7

27

AVDD

28

GND

29

PE0

30

PE1

31

PE2

32

PE3

33

XTAL32K1PF0

34

XTAL32K2PF1

35

PF2

36

PF337

PF438

PF539

PF640

UPDI41

VDD42

GND43

XTALHF1PA044

XTALHF2PA145

PA246

PA347

PA448

AV

R12

8DB

48-I

PT

U20

0

0RR204

GN

D

VC

C_T

AR

GE

T

VDDIO2

GND

J210

J211

82p

C20

48

2pC

203

GN

DG

ND

16M

Hz

Cry

stal

J217

XHFOUT

XHFIN

J214

J213

GN

D

J215

J216

PA0_XTALHF1

PA1_XTALHF2

PA0_

XT

AL

HF

1PA

1_X

TA

LH

F2

PA0

PA1

1 2

J212 N

M

15pF

C20

615

pFC

207

13

24 16

000

MH

zV

XM

7-90

40-1

6M00

0000

0TR

XC

201

GN

D32

768

kHz

VM

K3-

9001

-32K

7680

000T

R

XC

200

CDC_TX

CDC_RX

CD

C_T

XC

DC

_RX

Cry

stal

dat

ashe

et

Ccr

ysta

l = 9

pFm

ax E

SR

= 7

0kO

hmA

ccur

acy

plusmn20p

pm

AV

R48

DB

128

data

shee

tC

xin

= 4

0pF

(ty

pica

l val

ue)

Cxo

ut =

40

pF (

typi

cal v

alue

)C

lasymp1

( (1

40

pF)+

(1

40p

F)

)asymp

20p

FM

axim

um L

oad

= 1

25p

FM

axim

um E

SR =

50k

Ohm

Est

imat

ed C

pcb

= 0

5pF

Est

imat

ed lo

adC

= 2

(C

crys

tal-

Cpa

ra -

Cpc

b)C

= 2

(9p

F -

20

pF -

05

pF)

C =

13

0pF

Sele

cted

in d

esig

n af

ter

veri

fica

tion

C=

82

pF8

2pF

NO

TE

on

UA

RT

CD

C

RX

TX

onth

ehe

ader

deno

tes

the

inpu

tout

put d

irec

tion

of th

e si

gnal

resp

ectiv

e to

its

sou

rce

CD

C T

X is

out

put f

rom

the

DE

BU

GG

ER

C

DC

RX

is in

put t

o th

e D

EB

UG

GE

R

TX

is o

utpu

t fro

m th

e T

AR

GE

T d

evic

eR

X is

inpu

t to

the

TA

RG

ET

dev

ice

NO

TE

on

I2C

No

pull

-ups

on

boar

d P

ull-

ups

shou

ld b

em

ount

ed c

lose

to s

lave

dev

ice(

s)

WA

RN

ING

M

ake

sure

tore

mov

e R

204

befo

reap

plyi

ng p

ower

to J

212

Cry

stal

dat

ashe

et

Ccr

ysta

l = 1

2pF

max

ES

R =

60O

hmA

ccur

acy

plusmn30p

pm

AV

R48

DB

128

data

shee

tC

xin

= 4

0pF

(ty

pica

l val

ue)

Cxo

ut =

40

pF (

typi

cal v

alue

)C

lasymp1

( (1

40

pF)+

(1

40p

F)

)asymp

20p

FM

axim

um L

oad

= 1

25p

FM

axim

um E

SR =

k

Ohm

Est

imat

ed C

pcb

= 0

5pF

Est

imat

ed lo

adC

= 2

(C

crys

tal-

Cpa

ra -

Cpc

b)C

= 2

(12

pF -

20

pF -

05

pF)

C =

19

0pF

Sele

cted

in d

esig

n af

ter

veri

fica

tion

C=

15p

F1

5pF

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 34

11

22

33

44

55

66

77

88

DD

CC

BB

AA

3 of

4

AV

R12

8DB

48 C

uri

osit

y N

ano

2020

-06-

26A

VR

128D

B48

_Cur

iosi

ty_N

ano_

Deb

ugge

rSch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA

Rev

isio

n

Fil

eP

CB

Num

ber

PC

B

Rev

isio

n

Des

ign

ed w

ith

Dra

wn

By

ML

Shee

t Tit

le

Deb

ugge

r

Eng

inee

rA

H

A08

-305

71

Size

A3

A09

-337

22

Page

D

ateA

ltium

com

DE

BU

GG

ER

USB

MIC

RO

-B C

ON

NE

CT

OR

GN

D

USB

D_P

USB

D_N

100n

C10

7

100n

C10

8

1kR

107

VC

C_P

3V3

SRST

STA

TU

S_L

ED

SHIE

LD

VB

US

VC

C_P

3V3

GN

D

TP

100

Test

poin

t Arr

ay

12

34

56

78

910

TC

KT

DO

TM

SV

sup

TD

IG

ND

TR

STSR

STV

Tre

fG

ND

J102

GN

D

47u

F

C10

0

DBG0

DB

G0

21

GR

EE

N L

ED

SML

-P12

MT

T86

R

D10

0

VBUS

1

D-

2

D+

3

GND

5

SHIELD1

6

SHIELD2

7

ID

4

SHIELD3

8

SHIELD4

9 MU

-MB

0142

AB

2-26

9

J105

PAD

33

PA00

1

PA01

2

PA02

3

PA03

4

GND 10VDDANA 9

PA04

5

PA05

6

PA06

7

PA07

8

PA08 11

PA09 12

PA10 13

PA11 14

PA14 15

PA15 16

PA16

17

PA17

18

PA18

19

PA19

20

PA22

21

USB_SOFPA23

22

USB_DMPA24

23

USB_DPPA25

24

PA2725 RESETN26 PA2827 GND28 VDDCORE29 VDDIN30 SWDCLKPA3031 SWDIOPA3132

SAM

D21

E18

A-M

UT

U10

0

VOUT

1

VOUT

2

GND 3

EN

4

VIN

6

NC

5

EP 7

MIC

5528

-33

YM

TU

101

VC

C_P

3V3

GN

D

USB

D_P

USB

D_N

GN

D

1uC

106

VC

C_M

CU

_CO

RE

VC

C_P

3V3

VC

C_P

3V3

22u

FC

101

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

3

VC

C_P

3V3

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

4

VC

C_P

3V3

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

5

VC

C_P

3V3

GN

D

GN

D GN

D

GN

D

VC

C_E

DG

E

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

7

VC

C_P

3V3

GN

DDBG2

DB

G3_

CT

RL

S1_0

_TX

S1_1

_RX

S0_2

_TX

DA

CV

TG

_AD

C

RE

SER

VE

D

S0_3

_CL

K

DBG0_CTRL

CD

C_T

X_C

TR

L

BO

OT

DE

BU

GG

ER

PO

WE

RS

TA

TU

S L

ED

EN

1

BYP

6

VOUT

4

GND

2

VIN

3

NCADJ

5

GND

7

MIC

5353

U10

2

100n

C10

2

GN

D

GN

D

47kR101

27kR104 G

ND

33k

R10

6

22u

F

C10

3 GN

D

1kR

108

J100

VC

C_L

EV

EL

VC

C_R

EG

UL

AT

OR

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

6

VC

C_P

3V3

GN

DDBG1

CD

C_R

X

CD

C_T

X

DBG3

DBG1_CTRL

DE

BU

GG

ER

RE

GU

LA

TO

R

REG_ENABLE

RE

G_E

NA

BL

E

47kR103

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

47kR102

47kR105

SWC

LK

GN

D

47kR100 G

ND

DB

G2

S0_0

_RX

DB

G1_

CT

RL

DB

G0_

CT

RL

DB

G3

OP

EN

DR

AIN

TA

RG

ET

AD

JUST

AB

LE

RE

GU

LA

TO

R

SRST

DE

BU

GG

ER

TE

ST

PO

INT DBG2_CTRL

VO

FF

CD

C_R

X_C

TR

L

47kR109

DB

G1

CD

C_T

X_C

TR

L

CD

C_R

X_C

TR

L

SWC

LK

REG_ADJUST

DBG2_GPIO

DB

G3_

CT

RL

DB

G2_

CT

RL

UP

DI

UPD

I

GPI

O

GPI

O

RE

SET

Sign

al

DB

G0

DB

G1

DB

G2

DB

G3

ICS

PIn

terf

ace

DA

T

CL

K

GPI

O

MC

LR

DB

G3

CD

C T

X

CD

C R

X

UA

RT

RX

UA

RT

TX

UA

RT

RX

UA

RT

TX

TA

RG

ET

TA

RG

ET

1kR

110

VBUS_ADC

1

23

DM

N65

D8L

FB

Q10

1

VC

C-

-

ID_SYS

VOFF

1kR112

VC

C_P

3V3

VT

G_A

DC

DA

C

MIC

9416

3

VIN

B2

VOUT

A1

VIN

A2

EN

C2

GND

C1

VOUT

B1

U10

8

GN

D

ID_S

YS

VT

G_E

N

VTG_EN

VBUS_ADC

SWD

IO

ID_S

YS

TP

101

GN

DSW

DIO

VO

FF

47kR111 G

ND

ID P

IN

MC

3621

3

F10

0

VC

C_V

BU

S

VC

C_V

BU

S

VC

C_V

BU

S

J101

VC

C_T

AR

GE

T

47k

R11

3

CDC_TX

CDC_RX

Prog

ram

min

g co

nnec

tor

for

fact

ory

prog

ram

min

g of

DE

BU

GG

ER

MIC

5528

V

in 2

5V

to 5

5V

Vou

t F

ixed

33

VIm

ax 5

00m

AD

ropo

ut 2

60m

V

500

mA

MIC

5353

V

in 2

6V

to 6

VV

out

12

5V to

51

VIm

ax 5

00m

AD

ropo

ut (

typi

cal)

50m

V

150m

A 1

60m

V

500

mA

Acc

urac

y 2

in

itia

lT

herm

al s

hutd

own

and

curr

ent l

imit

Max

imum

out

put v

olta

ge is

lim

ited

by

the

inpu

t vol

tage

and

the

drop

out v

olta

ge in

the

regu

lato

r(V

max

= V

in -

dro

pout

)

J100

-

Cut

-str

ap u

sed

for

full

sep

arat

ion

of ta

rget

pow

er f

rom

the

leve

l shi

fter

s an

don

-boa

rd r

egul

ator

s-

For

cur

rent

mea

sure

men

ts u

sing

the

on-b

oard

pow

er s

uppl

y th

isst

rap

mus

t be

cut a

nd a

nam

met

er c

onne

cted

acr

oss

- F

or c

urre

nt m

easu

rem

ents

usi

ng a

n ex

tern

al p

ower

sup

ply

this

str

ap c

ould

be

cut f

or m

ore

accu

rate

mea

sure

men

ts L

eaka

ge b

ack

thro

ugh

the

swit

ch is

in th

e m

icro

am

pere

ran

ge

PT

C R

eset

tabl

e fu

se

Hol

d cu

rren

t 5

00m

AT

rip

curr

ent

100

0mA

Adj

usta

ble

outp

ut a

nd li

mit

atio

ns

- T

he D

EB

UG

GE

R c

an a

djus

t the

out

put v

olta

ge o

f th

e re

gula

tor

betw

een

125

V a

nd 5

1V

to th

e ta

rget

-

The

vol

tage

out

put i

s li

mit

ed b

y th

e in

put (

US

B)

whi

ch c

an v

ary

betw

een

440

V to

52

5V-

The

leve

l shi

fter

s ha

ve a

min

imal

vol

tage

leve

l of

165

V a

nd w

ill l

imit

the

min

imum

ope

ratin

g vo

ltage

all

owed

for

the

targ

et to

sti

ll a

llow

com

mun

icat

ion

- T

he M

IC94

163

has

a m

inim

al v

olat

ege

leve

l of

170

V a

nd w

ill l

imit

the

min

imum

vol

tage

del

iver

ed to

the

targ

et

- F

irm

war

e co

nfig

urat

ion

wil

l lim

it th

e vo

ltage

ran

ge to

be

wit

hin

the

the

targ

et s

peci

fica

tion

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 35

82 Assembly DrawingFigure 8-2 AVR128DB48 Curiosity Nano Assembly Drawing Top

+

Cb

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20001 PAC20002 COC200

PAC20101 PAC20102 COC201

PAC20201 PAC20202 COC202 PAC20301

PAC20302 COC203

PAC20401

PAC20402 COC204

PAC20502

PAC20501 COC205

PAC20601

PAC20602 COC206 PAC20701

PAC20702 COC207 PAD10002 PAD10001 COD100

PAD20002

PAD20001 COD200

PAF10002

PAF10001 COF100

PAJ10002 PAJ10001 COJ100

PAJ10101 PAJ10102 COJ101

PAJ10201

PAJ10202

PAJ10203

PAJ10204

PAJ10205

PAJ10206 COJ102

PAJ10506

PAJ10507 PAJ10509

PAJ10508 PAJ105010

PAJ105011 PAJ10505

PAJ10504

PAJ10503

PAJ10502

PAJ10501

PAJ10500

COJ105

PAJ200056 PAJ200053

PAJ200028 PAJ20002 PAJ20001

PAJ200051 PAJ200050 PAJ200052 PAJ200049 PAJ200048 PAJ200047 PAJ200046 PAJ200045 PAJ200044 PAJ200043 PAJ200042 PAJ200041 PAJ200040 PAJ200039 PAJ200038 PAJ200037 PAJ200036 PAJ200035 PAJ200034 PAJ200033 PAJ200032 PAJ200031 PAJ200030 PAJ200029

PAJ20003 PAJ20004 PAJ20005 PAJ20006 PAJ20007 PAJ20008 PAJ20009 PAJ200010 PAJ200011 PAJ200012 PAJ200013 PAJ200014 PAJ200015 PAJ200016 PAJ200017 PAJ200018 PAJ200019 PAJ200020 PAJ200021 PAJ200022 PAJ200023 PAJ200026 PAJ200025 PAJ200024 PAJ200027

PAJ200054 PAJ200055 PAJ20000

COJ200

PAJ20102 PAJ20101 COJ201

PAJ20202 PAJ20201 COJ202

PAJ20302 PAJ20301 COJ203

PAJ20402 PAJ20401 COJ204

PAJ20502 PAJ20501 COJ205

PAJ20602 PAJ20601 COJ206 PAJ20702 PAJ20701 COJ207

PAJ20802 PAJ20801 COJ208

PAJ20902 PAJ20901 COJ209

PAJ21001 PAJ21002 PAJ21005 COJ210

PAJ21102 PAJ21101 PAJ21105 COJ211

PAJ21202 PAJ21201 COJ212

PAJ21301 PAJ21302 PAJ21305 COJ213

PAJ21401 PAJ21402 PAJ21405 COJ214

PAJ21502 PAJ21501 COJ215

PAJ21602 PAJ21601 COJ216 PAJ21702 PAJ21701 COJ217

COLABEL1

PAQ10101 PAQ10102 PAQ10103 PAQ10100

COQ101 PAR10002

PAR10001 COR100 PAR10101 PAR10102 COR101

PAR10202 PAR10201 COR102

PAR10302 PAR10301 COR103

PAR10401 PAR10402 COR104

PAR10502

PAR10501 COR105

PAR10601 PAR10602 COR106

PAR10702 PAR10701 COR107

PAR10801

PAR10802 COR108

PAR10901 PAR10902 COR109

PAR11001 PAR11002 COR110

PAR11101 PAR11102 COR111

PAR11201 PAR11202 COR112

PAR11302 PAR11301 COR113

PAR20001 PAR20002 COR200 PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203 PAR20401 PAR20402 COR204

PASW20003

PASW20004 PASW20002

PASW20001 COSW200

PATP10001 COTP100

PATP10101 COTP101 PAU100033

PAU100032 PAU100031 PAU100030 PAU100029 PAU100028 PAU100027 PAU100026 PAU100025 PAU100024

PAU100023

PAU100022

PAU100021

PAU100020

PAU100019

PAU100018

PAU100017 PAU100016 PAU100015 PAU100014 PAU100013 PAU100012 PAU100011 PAU100010

PAU10001

PAU10002

PAU10003

PAU10004

PAU10005

PAU10006

PAU10007

PAU10008 PAU10009

COU100

PAU10107

PAU10104 PAU10105 PAU10106

PAU10103 PAU10102 PAU10101 PAU10100 COU101 PAU10207

PAU10204 PAU10205

PAU10206

PAU10203 PAU10202

PAU10201

COU102

PAU10306

PAU10305 PAU10304 PAU10303

PAU10302 PAU10301 PAU10300

COU103

PAU10406

PAU10405 PAU10404 PAU10403

PAU10402 PAU10401 PAU10400

COU104

PAU10506

PAU10505 PAU10504 PAU10503

PAU10502 PAU10501 PAU10500

COU105

PAU10606

PAU10605 PAU10604 PAU10603

PAU10602 PAU10601 PAU10600

COU106

PAU10706

PAU10705 PAU10704 PAU10703

PAU10702 PAU10701 PAU10700

COU107

PAU1080A1 PAU1080A2

PAU1080B1 PAU1080B2

PAU1080C1 PAU1080C2 COU108

PAU20001 PAU20002 PAU20003 PAU20004 PAU20005 PAU20006 PAU20007 PAU20008 PAU20009 PAU200010 PAU200011 PAU200012 PAU200013 PAU200014 PAU200015 PAU200016 PAU200017 PAU200018 PAU200019 PAU200020 PAU200021 PAU200022 PAU200023 PAU200024 PAU200025 PAU200026 PAU200027 PAU200028 PAU200029 PAU200030 PAU200031 PAU200032 PAU200033 PAU200034 PAU200035 PAU200036

PAU200037 PAU200038 PAU200039 PAU200040 PAU200041 PAU200042 PAU200043 PAU200044 PAU200045 PAU200046 PAU200047 PAU200048

COU200

PAXC20001

PAXC20002 COXC200

PAXC20101 PAXC20102

PAXC20103 PAXC20104 COXC201

Figure 8-3 AVR128DB48 Curiosity Nano Assembly Drawing Bottom

tcR

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20001 PAC20002 COC200

PAC20101 PAC20102 COC201

PAC20201 PAC20202 COC202 PAC20301

PAC20302 COC203

PAC20401

PAC20402 COC204

PAC20502

PAC20501 COC205

PAC20601

PAC20602 COC206 PAC20701

PAC20702 COC207 PAD10002 PAD10001 COD100

PAD20002

PAD20001 COD200

PAF10002

PAF10001 COF100

PAJ10002 PAJ10001 COJ100

PAJ10101 PAJ10102 COJ101

PAJ10201

PAJ10202

PAJ10203

PAJ10204

PAJ10205

PAJ10206 COJ102

PAJ10506

PAJ10507 PAJ10509

PAJ10508 PAJ105010

PAJ105011 PAJ10505

PAJ10504

PAJ10503

PAJ10502

PAJ10501

PAJ10500

COJ105

PAJ200056 PAJ200053

PAJ200028 PAJ20002 PAJ20001

PAJ200051 PAJ200050 PAJ200052 PAJ200049 PAJ200048 PAJ200047 PAJ200046 PAJ200045 PAJ200044 PAJ200043 PAJ200042 PAJ200041 PAJ200040 PAJ200039 PAJ200038 PAJ200037 PAJ200036 PAJ200035 PAJ200034 PAJ200033 PAJ200032 PAJ200031 PAJ200030 PAJ200029

PAJ20003 PAJ20004 PAJ20005 PAJ20006 PAJ20007 PAJ20008 PAJ20009 PAJ200010 PAJ200011 PAJ200012 PAJ200013 PAJ200014 PAJ200015 PAJ200016 PAJ200017 PAJ200018 PAJ200019 PAJ200020 PAJ200021 PAJ200022 PAJ200023 PAJ200026 PAJ200025 PAJ200024 PAJ200027

PAJ200054 PAJ200055 PAJ20000

COJ200

PAJ20102 PAJ20101 COJ201

PAJ20202 PAJ20201 COJ202

PAJ20302 PAJ20301 COJ203

PAJ20402 PAJ20401 COJ204

PAJ20502 PAJ20501 COJ205

PAJ20602 PAJ20601 COJ206 PAJ20702 PAJ20701 COJ207

PAJ20802 PAJ20801 COJ208

PAJ20902 PAJ20901 COJ209

PAJ21001 PAJ21002 PAJ21005 COJ210

PAJ21102 PAJ21101 PAJ21105 COJ211

PAJ21202 PAJ21201 COJ212

PAJ21301 PAJ21302 PAJ21305 COJ213

PAJ21401 PAJ21402 PAJ21405 COJ214

PAJ21502 PAJ21501 COJ215

PAJ21602 PAJ21601 COJ216 PAJ21702 PAJ21701 COJ217

COLABEL1

PAQ10101 PAQ10102 PAQ10103 PAQ10100

COQ101 PAR10002

PAR10001 COR100 PAR10101 PAR10102 COR101

PAR10202 PAR10201 COR102

PAR10302 PAR10301 COR103

PAR10401 PAR10402 COR104

PAR10502

PAR10501 COR105

PAR10601 PAR10602 COR106

PAR10702 PAR10701 COR107

PAR10801

PAR10802 COR108

PAR10901 PAR10902 COR109

PAR11001 PAR11002 COR110

PAR11101 PAR11102 COR111

PAR11201 PAR11202 COR112

PAR11302 PAR11301 COR113

PAR20001 PAR20002 COR200 PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203 PAR20401 PAR20402 COR204

PASW20003

PASW20004 PASW20002

PASW20001 COSW200

PATP10001 COTP100

PATP10101 COTP101 PAU100033

PAU100032 PAU100031 PAU100030 PAU100029 PAU100028 PAU100027 PAU100026 PAU100025 PAU100024

PAU100023

PAU100022

PAU100021

PAU100020

PAU100019

PAU100018

PAU100017 PAU100016 PAU100015 PAU100014 PAU100013 PAU100012 PAU100011 PAU100010

PAU10001

PAU10002

PAU10003

PAU10004

PAU10005

PAU10006

PAU10007

PAU10008 PAU10009

COU100

PAU10107

PAU10104 PAU10105 PAU10106

PAU10103 PAU10102 PAU10101 PAU10100 COU101 PAU10207

PAU10204 PAU10205

PAU10206

PAU10203 PAU10202

PAU10201

COU102

PAU10306

PAU10305 PAU10304 PAU10303

PAU10302 PAU10301 PAU10300

COU103

PAU10406

PAU10405 PAU10404 PAU10403

PAU10402 PAU10401 PAU10400

COU104

PAU10506

PAU10505 PAU10504 PAU10503

PAU10502 PAU10501 PAU10500

COU105

PAU10606

PAU10605 PAU10604 PAU10603

PAU10602 PAU10601 PAU10600

COU106

PAU10706

PAU10705 PAU10704 PAU10703

PAU10702 PAU10701 PAU10700

COU107

PAU1080A1 PAU1080A2

PAU1080B1 PAU1080B2

PAU1080C1 PAU1080C2 COU108

PAU20001 PAU20002 PAU20003 PAU20004 PAU20005 PAU20006 PAU20007 PAU20008 PAU20009 PAU200010 PAU200011 PAU200012 PAU200013 PAU200014 PAU200015 PAU200016 PAU200017 PAU200018 PAU200019 PAU200020 PAU200021 PAU200022 PAU200023 PAU200024 PAU200025 PAU200026 PAU200027 PAU200028 PAU200029 PAU200030 PAU200031 PAU200032 PAU200033 PAU200034 PAU200035 PAU200036

PAU200037 PAU200038 PAU200039 PAU200040 PAU200041 PAU200042 PAU200043 PAU200044 PAU200045 PAU200046 PAU200047 PAU200048

COU200

PAXC20001

PAXC20002 COXC200

PAXC20101 PAXC20102

PAXC20103 PAXC20104 COXC201

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 36

83 Curiosity Nano Base for Click boardstrade

Figure 8-4 AVR128DB48 Curiosity Nano Pinout Mapping

US

B

DE

BU

GG

ER

AV

R1

28

DB

48

SW

0

LE

D0

PS

LE

DNC

NC

ID

ID

CDC RX

CDCRX

USART3 TX

PB0

CDC TX

CDCTX

USART3 RX

PB1

DBG1

DBG1

PB3

LED0

DBG2

DBG2

PB2

SW0

PF4

PF4

USART2 TX

PF5

PF5

USART2 RX

PA2

PA2

TWI0 SDA

PA3

PA3

TWI0 SCL

PA4

PA4

SPI0 MOSI

PA5

PA5

SPI0 MISO

PA6

PA6

SPI0 SCK

PA7

PA7

SPI0 SS

GND

GND

PB0

PB0

USART3 TX

CDC RX

PB1

PB1

USART3 RX

CDC TX

PF2

PF2

PF3

PF3

PC0

PC0

PC1

PC1

PC2

PC2

PC3

PC3

GND

GND

(PA0)

(PA0)

XTALHF1

(PA1)

(PA1)

XTALHF2

PB2

PB2

SW0

PB3

PB3

LED0

VBUS

VBUS

VOFF

VOFF

DBG3

DBG3

PF6

DBG0

DBG0

UPDI

GND

GND

VTG

VTG

PD6

PD6

AIN6

PD3

PD3

AIN3

OP0 INN

PD2

PD2

AIN2

OP0 OUT

TCA0 WO2

PD1

PD1

AIN1

OP0 INP

TCA0 WO1

PD0

PD0

AIN0

TCA0 WO0

PD7

PD7

AIN7

OP1 INN

PD5

PD5

AIN5

OP1 OUT

PD4

PD4

AIN4

OP1 INP

GND

GND

PE3

PE3

OP2 INN

PE2

PE2

OP2 OUT

PE1

PE1

OP2 INP

PE0

PE0

PC7

PC7

PC6

PC6

PC5

PC5

PC4

PC4

GND

GND

PB5

PB5

PB4

PB4

(PF1)

(PF1)

XTAL32K2

(PF0)

(PF0)

XTAL32K1

DE

BU

GG

ER

AV

R1

28

DB

48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

MVIO

OPAMP

Shared pin

AV

R1

28

DB

48

Cu

rio

sity

Na

no

1

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

2

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

3

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

Xp

lain

ed

Pro

Ext

en

sio

nE

XT

11

2

19

20

Cu

rio

sity

Na

no

Ba

sefo

r cl

ick

bo

ard

sT

M

PD4

PD0

PD6

PD3

PA7

PF5

PA6

PF4

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

PD5

PD1

PF3

PF2

PE2

PB1

PA6

PB0

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

PD7

PD2

PE1

PE0

PE3

PF5

PA6

PF4

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

ID

GND

PD5

PD7

PF3

PE1

PD1

PD2

PF2

PE3

PA2

PA3

PB1

PB0

PE2

PA4

PA5

PA6

GND

+33V

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 37

84 Disconnecting the On-board DebuggerThe on-board debugger and level shifters can be completely disconnected from the AVR128DB48

The block diagram below shows all connections between the debugger and the AVR128DB48 The rounded boxesrepresent connections to the board edge The signal names shown are also printed in silkscreen on the bottom sideof the board

To disconnect the debugger cut the straps shown in Figure 8-6

Attention  Cutting the GPIO straps to the on-board debugger will disable the virtual serial portprogramming debugging and data streaming Cutting the power supply strap will disconnect the on-boardpower supply

Tip  Any connection that is cut can be reconnected using solder Alternatively a 0Ω 0402 resistor can bemounted

Tip  When the debugger is disconnected an external debugger can be connected to holes shown in Figure 8-6 Details about connecting an external debugger are described in 46 Connecting ExternalDebuggers

Figure 8-5  On-Board Debugger Connections Block Diagram

DE

BU

GG

ER

TARGETLevel-Shift

PA04PA06PA07PA08PA16PA00PA01

USB

DIR x 5

VCC_P3V3

VBUS

VC

C_L

EV

EL

VC

C_T

AR

GE

TDBG0DBG1DBG2DBG3CDC TXCDC RX

CDC RX

CDC TX

DBG3

DBG2

DBG1

DBG0

GPIO straps

LDO

VOFF

LDO

VBUS VTG

VCC_EDGE

Power Supply strap Target Power strap

UART RXUART TX

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 38

Figure 8-6 On-Board Debugger Connection Cut Straps

GPIO straps (bottom side) Power Supply strap (top side)

85 Getting Started with IARIAR Embedded Workbenchreg for AVRreg is a proprietary high-efficiency compiler not based on GCC Programming anddebugging of AVR128DB48 Curiosity Nano is supported in IARtrade Embedded Workbench for AVR using the Atmel-ICEinterface Some initial settings must be set up in the project to get the programming and debugging to work

The following steps will explain how to get your project ready for programming and debugging

1 Make sure you have opened the project you want to configure Open the OPTIONS dialog for the project2 In the category General Options select the Target tab Select the device for the project or if not listed the

core of the device as shown in Figure 8-73 In the category Debugger select the Setup tab Select Atmel-ICE as the driver as shown in Figure 8-84 In the category Debugger gt Atmel-ICE select the Atmel-ICE 1 tab Select UPDI as the interface and

optionally select the UPDI frequency as shown in Figure 8-9

Info  If the selection of Debug Port (mentioned in step 4) is grayed out the interface is preselected andthe user can skip this configuration step

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 39

Figure 8-7 Select Target Device

Figure 8-8 Select Debugger

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 40

Figure 8-9 Configure Interface

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 41

The Microchip Website

Microchip provides online support via our website at wwwmicrochipcom This website is used to make files andinformation easily available to customers Some of the content available includes

bull Product Support ndash Data sheets and errata application notes and sample programs design resources userrsquosguides and hardware support documents latest software releases and archived software

bull General Technical Support ndash Frequently Asked Questions (FAQs) technical support requests onlinediscussion groups Microchip design partner program member listing

bull Business of Microchip ndash Product selector and ordering guides latest Microchip press releases listing ofseminars and events listings of Microchip sales offices distributors and factory representatives

Product Change Notification Service

Microchiprsquos product change notification service helps keep customers current on Microchip products Subscribers willreceive email notification whenever there are changes updates revisions or errata related to a specified productfamily or development tool of interest

To register go to wwwmicrochipcompcn and follow the registration instructions

Customer Support

Users of Microchip products can receive assistance through several channels

bull Distributor or Representativebull Local Sales Officebull Embedded Solutions Engineer (ESE)bull Technical Support

Customers should contact their distributor representative or ESE for support Local sales offices are also available tohelp customers A listing of sales offices and locations is included in this document

Technical support is available through the website at wwwmicrochipcomsupport

Microchip Devices Code Protection Feature

Note the following details of the code protection feature on Microchip devices

bull Microchip products meet the specifications contained in their particular Microchip Data Sheetbull Microchip believes that its family of products is secure when used in the intended manner and under normal

conditionsbull There are dishonest and possibly illegal methods being used in attempts to breach the code protection features

of the Microchip devices We believe that these methods require using the Microchip products in a manneroutside the operating specifications contained in Microchiprsquos Data Sheets Attempts to breach these codeprotection features most likely cannot be accomplished without violating Microchiprsquos intellectual property rights

bull Microchip is willing to work with any customer who is concerned about the integrity of its codebull Neither Microchip nor any other semiconductor manufacturer can guarantee the security of its code Code

protection does not mean that we are guaranteeing the product is ldquounbreakablerdquo Code protection is constantlyevolving We at Microchip are committed to continuously improving the code protection features of our productsAttempts to break Microchiprsquos code protection feature may be a violation of the Digital Millennium Copyright ActIf such acts allow unauthorized access to your software or other copyrighted work you may have a right to suefor relief under that Act

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 42

Legal Notice

Information contained in this publication is provided for the sole purpose of designing with and using Microchipproducts Information regarding device applications and the like is provided only for your convenience and may besuperseded by updates It is your responsibility to ensure that your application meets with your specifications

THIS INFORMATION IS PROVIDED BY MICROCHIP ldquoAS ISrdquo MICROCHIP MAKES NO REPRESENTATIONS ORWARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED WRITTEN OR ORAL STATUTORY OROTHERWISE RELATED TO THE INFORMATION INCLUDING BUT NOT LIMITED TO ANY IMPLIEDWARRANTIES OF NON-INFRINGEMENT MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSEOR WARRANTIES RELATED TO ITS CONDITION QUALITY OR PERFORMANCE

IN NO EVENT WILL MICROCHIP BE LIABLE FOR ANY INDIRECT SPECIAL PUNITIVE INCIDENTAL ORCONSEQUENTIAL LOSS DAMAGE COST OR EXPENSE OF ANY KIND WHATSOEVER RELATED TO THEINFORMATION OR ITS USE HOWEVER CAUSED EVEN IF MICROCHIP HAS BEEN ADVISED OF THEPOSSIBILITY OR THE DAMAGES ARE FORESEEABLE TO THE FULLEST EXTENT ALLOWED BY LAWMICROCHIPS TOTAL LIABILITY ON ALL CLAIMS IN ANY WAY RELATED TO THE INFORMATION OR ITS USEWILL NOT EXCEED THE AMOUNT OF FEES IF ANY THAT YOU HAVE PAID DIRECTLY TO MICROCHIP FORTHE INFORMATION Use of Microchip devices in life support andor safety applications is entirely at the buyerrsquos riskand the buyer agrees to defend indemnify and hold harmless Microchip from any and all damages claims suits orexpenses resulting from such use No licenses are conveyed implicitly or otherwise under any Microchip intellectualproperty rights unless otherwise stated

Trademarks

The Microchip name and logo the Microchip logo Adaptec AnyRate AVR AVR logo AVR Freaks BesTimeBitCloud chipKIT chipKIT logo CryptoMemory CryptoRF dsPIC FlashFlex flexPWR HELDO IGLOO JukeBloxKeeLoq Kleer LANCheck LinkMD maXStylus maXTouch MediaLB megaAVR Microsemi Microsemi logo MOSTMOST logo MPLAB OptoLyzer PackeTime PIC picoPower PICSTART PIC32 logo PolarFire Prochip DesignerQTouch SAM-BA SenGenuity SpyNIC SST SST Logo SuperFlash Symmetricom SyncServer TachyonTempTrackr TimeSource tinyAVR UNIO Vectron and XMEGA are registered trademarks of Microchip TechnologyIncorporated in the USA and other countries

APT ClockWorks The Embedded Control Solutions Company EtherSynch FlashTec Hyper Speed ControlHyperLight Load IntelliMOS Libero motorBench mTouch Powermite 3 Precision Edge ProASIC ProASIC PlusProASIC Plus logo Quiet-Wire SmartFusion SyncWorld Temux TimeCesium TimeHub TimePictra TimeProviderVite WinPath and ZL are registered trademarks of Microchip Technology Incorporated in the USA

Adjacent Key Suppression AKS Analog-for-the-Digital Age Any Capacitor AnyIn AnyOut BlueSky BodyComCodeGuard CryptoAuthentication CryptoAutomotive CryptoCompanion CryptoController dsPICDEMdsPICDEMnet Dynamic Average Matching DAM ECAN EtherGREEN In-Circuit Serial Programming ICSPINICnet Inter-Chip Connectivity JitterBlocker KleerNet KleerNet logo memBrain Mindi MiWi MPASM MPFMPLAB Certified logo MPLIB MPLINK MultiTRAK NetDetach Omniscient Code Generation PICDEMPICDEMnet PICkit PICtail PowerSmart PureSilicon QMatrix REAL ICE Ripple Blocker SAM-ICE Serial QuadIO SMART-IS SQI SuperSwitcher SuperSwitcher II Total Endurance TSHARC USBCheck VariSenseViewSpan WiperLock Wireless DNA and ZENA are trademarks of Microchip Technology Incorporated in the USAand other countries

SQTP is a service mark of Microchip Technology Incorporated in the USA

The Adaptec logo Frequency on Demand Silicon Storage Technology and Symmcom are registered trademarks ofMicrochip Technology Inc in other countries

GestIC is a registered trademark of Microchip Technology Germany II GmbH amp Co KG a subsidiary of MicrochipTechnology Inc in other countries

All other trademarks mentioned herein are property of their respective companiescopy 2020 Microchip Technology Incorporated Printed in the USA All Rights Reserved

ISBN 978-1-5224-6667-3

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 43

Quality Management SystemFor information regarding Microchiprsquos Quality Management Systems please visit wwwmicrochipcomquality

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 44

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupportwwwmicrochipcomsupportWeb AddresswwwmicrochipcomAtlantaDuluth GATel 678-957-9614Fax 678-957-1455Austin TXTel 512-257-3370BostonWestborough MATel 774-760-0087Fax 774-760-0088ChicagoItasca ILTel 630-285-0071Fax 630-285-0075DallasAddison TXTel 972-818-7423Fax 972-818-2924DetroitNovi MITel 248-848-4000Houston TXTel 281-894-5983IndianapolisNoblesville INTel 317-773-8323Fax 317-773-5453Tel 317-536-2380Los AngelesMission Viejo CATel 949-462-9523Fax 949-462-9608Tel 951-273-7800Raleigh NCTel 919-844-7510New York NYTel 631-435-6000San Jose CATel 408-735-9110Tel 408-436-4270Canada - TorontoTel 905-695-1980Fax 905-695-2078

Australia - SydneyTel 61-2-9868-6733China - BeijingTel 86-10-8569-7000China - ChengduTel 86-28-8665-5511China - ChongqingTel 86-23-8980-9588China - DongguanTel 86-769-8702-9880China - GuangzhouTel 86-20-8755-8029China - HangzhouTel 86-571-8792-8115China - Hong Kong SARTel 852-2943-5100China - NanjingTel 86-25-8473-2460China - QingdaoTel 86-532-8502-7355China - ShanghaiTel 86-21-3326-8000China - ShenyangTel 86-24-2334-2829China - ShenzhenTel 86-755-8864-2200China - SuzhouTel 86-186-6233-1526China - WuhanTel 86-27-5980-5300China - XianTel 86-29-8833-7252China - XiamenTel 86-592-2388138China - ZhuhaiTel 86-756-3210040

India - BangaloreTel 91-80-3090-4444India - New DelhiTel 91-11-4160-8631India - PuneTel 91-20-4121-0141Japan - OsakaTel 81-6-6152-7160Japan - TokyoTel 81-3-6880- 3770Korea - DaeguTel 82-53-744-4301Korea - SeoulTel 82-2-554-7200Malaysia - Kuala LumpurTel 60-3-7651-7906Malaysia - PenangTel 60-4-227-8870Philippines - ManilaTel 63-2-634-9065SingaporeTel 65-6334-8870Taiwan - Hsin ChuTel 886-3-577-8366Taiwan - KaohsiungTel 886-7-213-7830Taiwan - TaipeiTel 886-2-2508-8600Thailand - BangkokTel 66-2-694-1351Vietnam - Ho Chi MinhTel 84-28-5448-2100

Austria - WelsTel 43-7242-2244-39Fax 43-7242-2244-393Denmark - CopenhagenTel 45-4485-5910Fax 45-4485-2829Finland - EspooTel 358-9-4520-820France - ParisTel 33-1-69-53-63-20Fax 33-1-69-30-90-79Germany - GarchingTel 49-8931-9700Germany - HaanTel 49-2129-3766400Germany - HeilbronnTel 49-7131-72400Germany - KarlsruheTel 49-721-625370Germany - MunichTel 49-89-627-144-0Fax 49-89-627-144-44Germany - RosenheimTel 49-8031-354-560Israel - RarsquoananaTel 972-9-744-7705Italy - MilanTel 39-0331-742611Fax 39-0331-466781Italy - PadovaTel 39-049-7625286Netherlands - DrunenTel 31-416-690399Fax 31-416-690340Norway - TrondheimTel 47-72884388Poland - WarsawTel 48-22-3325737Romania - BucharestTel 40-21-407-87-50Spain - MadridTel 34-91-708-08-90Fax 34-91-708-08-91Sweden - GothenbergTel 46-31-704-60-40Sweden - StockholmTel 46-8-5090-4654UK - WokinghamTel 44-118-921-5800Fax 44-118-921-5820

Worldwide Sales and Service

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 45

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Board Overview
      • 2 Getting Started
        • 21 Quick Start
          • 211 Driver Installation
          • 212 Kit Window
          • 213 MPLABreg X IDE Device Family Packs
          • 214 Atmel Studio 7 Device Family Pack
            • 22 Design Documentation and Relevant Links
              • 3 Preprogrammed Application
              • 4 Curiosity Nano
                • 41 On-Board Debugger Overview
                  • 411 Debugger
                  • 412 Virtual Serial Port (CDC)
                    • 4121 Overview
                    • 4122 Operating System Support
                    • 4123 Limitations
                    • 4124 Signaling
                    • 4125 Advanced Use
                      • 413 Mass Storage Device
                        • 4131 Mass Storage Device Implementation
                        • 4132 Limitations of Drag-and-Drop Programming
                        • 4133 Special Commands
                          • 414 Data Gateway Interface (DGI)
                            • 4141 Debug GPIO
                            • 4142 Timestamping
                                • 42 Curiosity Nano Standard Pinout
                                • 43 Power Supply
                                  • 431 Target Regulator
                                  • 432 External Supply
                                  • 433 VBUS Output Pin
                                  • 434 Power Supply Exceptions
                                    • 44 Low-Power Measurement
                                    • 45 Programming External Microcontrollers
                                      • 451 Supported Devices
                                      • 452 Software Configuration
                                      • 453 Hardware Modifications
                                      • 454 Connecting to External Microcontrollers
                                        • 46 Connecting External Debuggers
                                          • 5 Hardware User Guide
                                            • 51 Connectors
                                              • 511 AVR128DB48 Curiosity Nano Pinout
                                              • 512 Using Pin Headers
                                              • 513 Multi-Voltage IO
                                              • 514 Operational Amplifiers
                                                • 52 Peripherals
                                                  • 521 LED
                                                  • 522 Mechanical Switch
                                                  • 523 32768 kHz Crystal
                                                  • 524 1600 MHz Crystal
                                                  • 525 On-Board Debugger Implementation
                                                    • 5251 On-Board Debugger Connections
                                                      • 6 Hardware Revision History and Known Issues
                                                        • 61 Identifying Product ID and Revision
                                                        • 62 Revision 3
                                                        • 63 Revision 2
                                                          • 7 Document Revision History
                                                          • 8 Appendix
                                                            • 81 Schematic
                                                            • 82 Assembly Drawing
                                                            • 83 Curiosity Nano Base for Click boardstrade
                                                            • 84 Disconnecting the On-board Debugger
                                                            • 85 Getting Started with IAR
                                                              • The Microchip Website
                                                              • Product Change Notification Service
                                                              • Customer Support
                                                              • Microchip Devices Code Protection Feature
                                                              • Legal Notice
                                                              • Trademarks
                                                              • Quality Management System
                                                              • Worldwide Sales and Service
Page 12: AVR128DB48 Curiosity Nano Hardware User Guideww1.microchip.com/downloads/en/DeviceDoc/AVR128DB48-Curiosit… · 4. Curiosity Nano Curiosity Nano is an evaluation platform of small

bull Write access for programming Intelreg HEX formatted files into the target devicersquos memorybull Write access for simple text files for utility purposes

4131 Mass Storage Device ImplementationThe on-board debugger implements a highly optimized variant of the FAT12 file system that has several limitationspartly due to the nature of FAT12 itself and optimizations made to fulfill its purpose for its embedded application

The Curiosity Nano USB device is USB Chapter 9-compliant as a mass storage device but does not in any way fulfillthe expectations of a general purpose mass storage device This behavior is intentional

When using the Windows operating system the on-board debugger enumerates as a Curiosity Nano USB Devicethat can be found in the disk drives section of the device manager The CURIOSITY drive appears in the file managerand claims the next available drive letter in the system

The CURIOSITY drive contains approximately one MB of free space This does not reflect the size of the targetdevicersquos Flash in any way When programming an Intelreg HEX file the binary data are encoded in ASCII withmetadata providing a large overhead so one MB is a trivially chosen value for disk size

It is not possible to format the CURIOSITY drive When programming a file to the target the filename may appear inthe disk directory listing This is merely the operating systemrsquos view of the directory which in reality has not beenupdated It is not possible to read out the file contents Removing and replugging the board will return the file systemto its original state but the target will still contain the application that has been previously programmed

To erase the target device copy a text file starting with ldquoCMDERASErdquo onto the disk

By default the CURIOSITY drive contains several read-only files for generating icons as well as reporting status andlinking to further information

bull AUTORUNICO ndash icon file for the Microchip logobull AUTORUNINF ndash system file required for Windows Explorer to show the icon filebull KIT-INFOHTM ndash redirect to the development board websitebull KIT-INFOTXT ndash a text file containing details about the boardrsquos debugger firmware version board name USB

serial number device and drag-and-drop supportbull STATUSTXT ndash a text file containing the programming status of the board

Info  STATUSTXT is dynamically updated by the on-board debugger The contents may be cached bythe OS and therefore do not reflect the correct status

4132 Limitations of Drag-and-Drop Programming

Lock BitsLock bits included in the hex file will be ignored when using drag-and-drop programming To program lock bits useMPLABreg X IDE or Atmel Studio 7

Enabling CRC Check in FusesIt is not advisable to enable the CRC check in the target devicersquos fuses when using drag-and-drop programming Thisis because a subsequent chip erase (which does not affect fuse bits) will effect a CRC mismatch and the applicationwill fail to boot To recover a target from this state a chip erase must be done using MPLABreg X IDE orAtmel Studio 7 which will automatically clear the CRC fuses after erasing

4133 Special CommandsSeveral utility commands are supported by copying text files to the mass storage disk The filename or extension isirrelevant ndash the command handler reacts to content only

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 12

Table 4-2 Special File Commands

Command Content Description

CMDERASE Executes a chip erase of the target

CMDSEND_UART= Sends a string of characters to the CDC UART See ldquoCDCOverride Moderdquo

CMDSEND_9600=CMDSEND_115200=CMDSEND_460800=

Sends a string of characters to the CDC UART at the baud ratespecified Note that only the baud rates explicitly specified hereare supported See ldquoCDC Override Moderdquo (Debugger firmwarev121 or newer)

CMDRESET Resets the target device by entering Programming mode andthen exiting Programming mode immediately thereafter Exacttiming can vary according to the programming interface of thetarget device (Debugger firmware v116 or newer)

CMDPOWERTOGGLE Powers down the target and restores power after a 100 msdelay If external power is provided this has no effect(Debugger firmware v116 or newer)

CMD0V Powers down the target device by disabling the target supplyregulator If external power is provided this has no effect(Debugger firmware v116 or newer)

CMD1V8 Sets the target voltage to 18V If external power is providedthis has no effect (Debugger firmware v121 or newer)

CMD3V3 Sets the target voltage to 33V If external power is providedthis has no effect (Debugger firmware v116 or newer)

CMD5V0 Sets the target voltage to 50V If external power is providedthis has no effect (Debugger firmware v116 or newer)

Info  The commands listed here are triggered by the content being sent to the mass storage emulateddisk and no feedback is provided in the case of either success or failure

414 Data Gateway Interface (DGI)Data Gateway Interface (DGI) is a USB interface for transporting raw and timestamped data between on-boarddebuggers and host computer-based visualization tools MPLAB Data Visualizer is used on the host computer todisplay debug GPIO data It is available as a plug-in for MPLABreg X IDE or a stand-alone application that can be usedin parallel with MPLABreg X IDE or Atmel Studio 7

Although DGI encompasses several physical data interfaces the AVR128DB48 Curiosity Nano implementationincludes logic analyzer channels

bull Two debug GPIO channels (also known as DGI GPIO)

4141 Debug GPIODebug GPIO channels are timestamped digital signal lines connecting the target application to a host computervisualization application They are typically used to plot the occurrence of low-frequency events on a time-axis ndash forexample when certain application state transitions occur

The figure below shows the monitoring of the digital state of a mechanical switch connected to a debug GPIO inMPLAB Data Visualizer

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 13

Figure 4-2 Monitoring Debug GPIO with MPLABreg Data Visualizer

Debug GPIO channels are timestamped so the resolution of DGI GPIO events is determined by the resolution of theDGI timestamp module

Important  Although bursts of higher-frequency signals can be captured the useful frequency range ofsignals for which debug GPIO can be used is up to about 2 kHz Attempting to capture signals above thisfrequency will result in data saturation and overflow which may cause the DGI session to be aborted

4142 TimestampingDGI sources are timestamped as they are captured by the debugger The timestamp counter implemented in theCuriosity Nano debugger increments at 2 MHz frequency providing a timestamp resolution of a half microsecond

42 Curiosity Nano Standard PinoutThe 12 edge connections closest to the USB connector on Curiosity Nano boards have a standardized pinout Theprogramdebug pins have different functions depending on the target programming interface as shown in the tableand figure below

Table 4-3 Curiosity Nano Standard Pinout

Debugger Signal Target MCU Description

ID mdash ID line for extensions

CDC TX UART RX USB CDC TX line

CDC RX UART TX USB CDC RX line

DBG0 UPDI Debug data line

DBG1 GPIO1 debug GPIO1

DBG2 GPIO0 debug GPIO0

DBG3 RESET Reset line

NC mdash No connect

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 14

continuedDebugger Signal Target MCU Description

VBUS mdash VBUS voltage for external use

VOFF mdash Voltage Off input Disables the target regulator andtarget voltage when pulled low

VTG mdash Target voltage

GND mdash Common ground

Figure 4-3 Curiosity Nano Standard Pinout

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

43 Power SupplyThe board is powered through the USB port and contains two LDO regulators one to generate 33V for the on-boarddebugger and an adjustable LDO regulator for the target microcontroller AVR128DB48 and its peripherals Thevoltage from the USB connector can vary between 44V to 525V (according to the USB specification) and will limitthe maximum voltage to the target The figure below shows the entire power supply system on AVR128DB48Curiosity Nano

Figure 4-4 Power Supply Block Diagram

USBTarget MCU

Power source

Cut strap

Power consumer P3V3DEBUGGER

Power converter

DEBUGGERRegulator

VUSB

TargetRegulator

Power Supply strap

Adjust

Level shifter

VLVLVREG

IO IO GPIOstraps

IO

OnOffMeasure OnOff

ID systemVOFF

PTC Fuse

Power protection

VBUS

Target Power strap

VTG

431 Target RegulatorThe target voltage regulator is a MIC5353 variable output LDO The on-board debugger can adjust the voltage outputsupplied to the board target section by manipulating the MIC5353rsquos feedback voltage The hardware implementation

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 15

is limited to an approximate voltage range from 17V to 51V Additional output voltage limits are configured in thedebugger firmware to ensure that the output voltage never exceeds the hardware limits of the AVR128DB48microcontroller The voltage limits configured in the on-board debugger on AVR128DB48 Curiosity Nano are 18ndash55V

Info  The target voltage is set to 33V when the board is manufactured It can be changed throughMPLABreg X IDE project properties and in the Atmel Studio 7 device programming dialog Any change tothe target voltage is persistent even after a power toggle The resolution is less than 5 mV but may belimited to 10 mV by the adjustment program

Info  Voltage settings that are set up in MPLABreg X IDE are not immediately applied to the board Thenew voltage setting is applied to the board when the debugger is accessed in any way like pushing theRefresh Debug Tool Status button in the project dashboard tab or programmingreading program memory

Info  There is a simple option to adjust the target voltage with a drag-and-drop command text file to theboard This supports a set of common target voltages See section 4133 Special Commands for furtherdetails

The MIC5353 supports a maximum current load of 500 mA It is an LDO regulator in a small package placed on asmall printed circuit board (PCB) and the thermal shutdown condition can be reached at lower loads than 500 mAThe maximum current load depends on the input voltage the selected output voltage and the ambient temperatureThe figure below shows the safe operating area for the regulator with an input voltage of 51V and an ambienttemperature of 23degC

Figure 4-5 Target Regulator Safe Operation Area

The voltage output of the target regulator is continuously monitored (measured) by the on-board debugger If it ismore than 100 mV overunder the voltage setting value an error condition will be flagged and the target voltageregulator will be turned off This will detect and handle any short-circuit conditions It will also detect and handle if anexternal voltage which causes VCC_TARGET to move outside of the voltage setting monitoring window of plusmn100 mVis suddenly applied to the VTG pin without setting the VOFF pin low

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 16

Info  If the external voltage is lower than the monitoring window lower limit (target voltage setting ndash 100mV) the on-board debugger status LED will blink rapidly If the external voltage is higher than themonitoring window upper limit (target voltage setting + 100 mV) the on-board debugger status LED willcontinue to shine If the external voltage is removed the status LED will start to blink rapidly until the on-board debugger detects the new situation and turns the target voltage regulator back on

432 External SupplyAVR128DB48 Curiosity Nano can be powered by an external voltage instead of the on-board target regulator Whenthe Voltage Off (VOFF) pin is shorted to ground (GND) the on-board debugger firmware disables the target regulatorand it is safe to apply an external voltage to the VTG pin

It is also safe to apply an external voltage to the VTG pin when no USB cable is plugged into the DEBUG connectoron the board

The VOFF pin can be tied lowlet go at any time This will be detected by a pin-change interrupt to the on-boarddebugger which controls the target voltage regulator accordingly

WARNINGApplying an external voltage to the VTG pin without shorting VOFF to GND may cause permanent damageto the board

WARNINGDo not apply any voltage to the VOFF pin Let the pin float to enable the power supply

WARNINGAbsolute maximum external voltage is 55V for the on-board level shifters and the standard operatingcondition of the AVR128DB48 is 18ndash55V Applying a higher voltage may cause permanent damage to theboard

Info  If an external voltage is applied without pulling the VOFF pin low and an external supply pulls thevoltage lower than the monitoring windowrsquos lower limit (target voltage setting - 100 mV) the on-boarddebugger status LED will blink rapidly and shut the on-board regulator off If an external voltage issuddenly removed when the VOFF pin is not pulled low the status LED will start to blink rapidly until theon-board debugger detects the new situation and switches the target voltage regulator back on

Programming debugging and data streaming is still possible with an external power supply ndash the debugger andsignal level shifters will be powered from the USB cable Both regulators the debugger and the level shifters arepowered down when the USB cable is removed

Info  In addition to the power consumed by the AVR128DB48 and its peripherals approximately 100 microAwill be drawn from any external power source to power the on-board level shifters and voltage monitorcircuitry when a USB cable is plugged in the DEBUG connector on the board When a USB cable is notplugged in some current is used to supply the level shifters voltage pins which have a worst-case currentconsumption of approximately 5 microA Typical values may be as low as 100 nA

433 VBUS Output PinAVR128DB48 Curiosity Nano has a VBUS output pin that can be used to power external components that need a 5Vsupply The VBUS output pin has a PTC fuse to protect the USB against short circuits A side effect of the PTC fuseis a voltage drop on the VBUS output with higher current loads The chart below shows the voltage versus the currentload of the VBUS output

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 17

Figure 4-6 VBUS Output Voltage vs Current

434 Power Supply ExceptionsThis is a summary of most exceptions that can occur with the power supply

Target Voltage Shuts DownThis can happen if the target section draws too much current at a given voltage This will cause the thermal shutdownsafety feature of the MIC5353 regulator to kick in To avoid this reduce the current load of the target section

Target Voltage Setting is Not ReachedThe maximum output voltage is limited by the USB input voltage (specified to be 44-525V) and the voltage dropover the MIC5353 regulator at a given voltage setting and current consumption If a higher output voltage is neededuse a USB power source that can provide a higher input voltage or use an external voltage supply on the VTG pin

Target Voltage is Different From SettingThis can be caused by an externally applied voltage to the VTG pin without setting the VOFF pin low If the targetvoltage differs more than 100 mV overunder the voltage setting it will be detected by the on-board debugger andthe internal voltage regulator will be shut down To fix this issue remove the applied voltage from the VTG pin andthe on-board debugger will enable the on-board voltage regulator when the new condition is detected Note that thePS LED will be blinking rapidly if the target voltage is below 100 mV of the setting but will be lit normally when it ishigher than 100 mV above the setting

No Or Very Low Target Voltage and PS LED is Blinking RapidlyThis can be caused by a full or partial short-circuit and is a special case of the issue mentioned above Remove theshort-circuit and the on-board debugger will re-enable the on-board target voltage regulator

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 18

No Target Voltage and PS LED is Lit 1This occurs if the target voltage is set to 00V To fix this set the target voltage to a value within the specified voltagerange for the target device

No Target Voltage and PS LED is Lit 2This can be the issue if power jumper J100 andor J101 is cut and the target voltage regulator is set to a value withinthe specified voltage range for the target device To fix this solder a wirebridge between the pads for J100J101 oradd a jumper on J101 if a pin header is mounted

VBUS Output Voltage is Low or Not PresentThis is most lightly caused by a high-current drain on VBUS and the protection fuse (PTC) will reduce the current orcut off completely Reduce the current consumption on the VBUS pin to fix this issue

44 Low-Power MeasurementPower to the AVR128DB48 is connected from the on-board power supply and VTG pin through a 100 mil pin headermarked with ldquoPOWERrdquo in silkscreen (J101) To measure the power consumption of the AVR128DB48 and otherperipherals connected to the board cut the Target Power strap and connect an ammeter over the strap

To measure the lowest possible power consumption follow these steps1 Cut the POWER strap with a sharp tool2 Solder a 1x2 100 mil pin header in the footprint3 Connect an ammeter to the pin header4 Write firmware that

41 Tri-states any IO connected to the on-board debugger42 Sets the microcontroller in its lowest power Sleep state

5 Program the firmware into the AVR128DB48

Figure 4-7 Target Power Strap

Target Power strap (top side)

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 19

Tip  A 100-mil pin header can be soldered into the Target Power strap (J101) footprint for easyconnection of an ammeter Once the ammeter is no longer needed place a jumper cap on the pin header

Info  The on-board level shifters will draw a small amount of current even when they are not in use Amaximum of 2 microA can be drawn from each IO pin connected to a level shifter for a total of 10 microA Keepany IO pin connected to a level shifter in tri-state to prevent leakage All IOs connected to the on-boarddebugger are listed in 5251 On-Board Debugger Connections To prevent any leakage to the on-boardlevel shifters they can be disconnected completely as described in 84 Disconnecting the On-boardDebugger

45 Programming External MicrocontrollersThe on-board debugger on AVR128DB48 Curiosity Nano can be used to program and debug microcontrollers onexternal hardware

451 Supported DevicesAll external AVR microcontrollers with the UPDI interface can be programmed and debugged with the on-boarddebugger with Atmel Studio

External SAM microcontrollers that have a Curiosity Nano Board can be programmed and debugged with the on-board debugger with Atmel Studio

AVR128DB48 Curiosity Nano can program and debug external AVR128DB48 microcontrollers with MPLAB X IDE

452 Software ConfigurationNo software configuration is required to program and debug the same device that is mounted on the board

To program and debug a different microcontroller than what is mounted on the board Atmel Studio must beconfigured to allow free selection of devices and programming interfaces

1 Navigate to Tools gt Options through the menu system at the top of the application2 Select the Tools gt Tool settings category in the options window3 Set the Hide unsupported devices option to False

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 20

Figure 4-8 Hide Unsupported Devices

Info  Atmel Studio allows any microcontroller and interface to be selected when Hide unsupporteddevices is set to False also microcontrollers and interfaces which are not supported by the on-boarddebugger

453 Hardware ModificationsThe on-board debugger is connected to the AVR128DB48 by default These connections must be removed beforeany external microcontroller can be programmed or debugged Cut the GPIO straps shown in the figure below with asharp tool to disconnect the AVR128DB48 from the on-board debugger

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 21

Figure 4-9 Programming and Debugging Connections to Debugger

GPIO straps (bottom side)

Info  Cutting the connections to the debugger will disable programming debugging and data streamingfrom the AVR128DB48 mounted on the board

Tip  Solder in 0Ω resistors across the footprints or short-circuit them with solder to reconnect the signalsbetween the on-board debugger and the AVR128DB48

454 Connecting to External MicrocontrollersThe figure and table below show where the programming and debugging signals must be connected to program anddebug external microcontrollers The on-board debugger can supply power to the external hardware or use anexternal voltage as a reference for its level shifters Read more about the power supply in 43 Power Supply

The on-board debugger and level shifters actively drive data and clock signals (DBG0 DBG1 and DBG2) used forprogramming and debugging and in most cases the external resistor on these signals can be ignored Pull-downresistors are required on the ICSPtrade data and clock signals to debug PICreg microcontrollers

DBG3 is an open-drain connection and requires a pull-up resistor to function

AVR128DB48 Curiosity Nano has a pull-up resistor R200 connected to its RESET signal (DBG3) The location ofthe pull-up resistor is shown in the 82 Assembly Drawing in the appendix

Remember bull Connect GND and VTG to the external microcontrollerbull Tie the VOFF pin to GND if the external hardware has its own power supplybull Make sure there are pull-down resistors on the ICSP data and clock signals (DBG0 and DBG1) to

support the debugging of PIC microcontrollers

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 22

Figure 4-10 Curiosity Nano Standard Pinout

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

Table 4-4 Programming and Debugging Interfaces

Curiosity Nano Pin UPDI ICSPtrade SWD

DBG0 UPDI DATA SWDIO

DBG1 mdash CLK SWCLK

DBG2 mdash mdash mdash

DBG3 mdash MCLR RESET

46 Connecting External DebuggersEven though there is an on-board debugger external debuggers can be connected directly to the AVR128DB48Curiosity Nano to programdebug the AVR128DB48 The on-board debugger keeps all the pins connected to theAVR128DB48 and board edge in tri-state when not actively used Therefore the on-board debugger will not interferewith any external debug tools

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 23

Figure 4-11 Connecting the MPLABreg PICkittrade 4 In-Circuit DebuggerProgrammer to AVR128DB48 CuriosityNano

2345678 1

VDD

GroundDATA

2 = VDD

3 = Ground

4 = PGD

5 = Unused

6 = Unused

7 = Unused

8 = Unused

1 = Unused

MPLABreg PICkittrade 4

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 24

Figure 4-12 Connecting the Atmel-ICE to AVR128DB48 Curiosity Nano

VDD

Ground

DATA

AVRregSAM

3 = UPDI

4 = VTG

5 = Unused

6 = Unused

7 = Unused

8 = Unused

1 = Unused

2 = GND

9 = Unused

10 = Unused

Atmel-ICE

21 9

10

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

CAUTIONTo avoid contention between the external debugger and the on-board debugger do not start anyprogrammingdebug operation with the on-board debugger through MPLABreg X IDE or Atmel Studio 7 ormass storage programming while the external tool is active

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 25

5 Hardware User Guide

51 Connectors

511 AVR128DB48 Curiosity Nano PinoutAll the AVR128DB48 IO pins are accessible at the edge connectors on the board The image below shows the boardpinout For all available functions on each pin refer to the IO Multiplexing and Considerations section in theAVR128DB48 data sheet

Figure 5-1 AVR128DB48 Curiosity Nano Pinout

USB

DEBUGGER

AVR128DB48

SW0

LED0

PS LEDNC

NC

IDID

CDC RX

CD

CR

XUSART3 TXPB0

CDC TX

CD

CT

XUSART3 RXPB1

DBG1

DB

G1PB3LED0

DBG2

DB

G2PB2SW0

PF4

PF

4USART2 TX

PF5

PF

5USART2 RX

PA2

PA

2TWI0 SDA

PA3

PA

3TWI0 SCL

PA4

PA

4SPI0 MOSI

PA5

PA

5SPI0 MISO

PA6

PA

6SPI0 SCK

PA7

PA

7SPI0 SS

GND

GN

D

PB0

PB

0USART3 TXCDC RX

PB1

PB

1USART3 RXCDC TX

PF2

PF

2

PF3

PF

3

PC0

PC

0

PC1

PC

1

PC2

PC

2

PC3

PC

3

GND

GN

D

(PA0)

(PA

0)XTALHF1

(PA1)

(PA

1)XTALHF2

PB2

PB

2SW0

PB3

PB

3LED0

VBUS

VB

US

VOFF

VO

FF

DBG3

DB

G3 PF6

DBG0

DB

G0 UPDI

GND

GN

D

VTG

VT

G

PD6

PD

6 AIN6

PD3

PD

3 AIN3 OP0 INN

PD2

PD

2 AIN2 OP0 OUT TCA0 WO2

PD1

PD

1 AIN1 OP0 INP TCA0 WO1

PD0

PD

0 AIN0 TCA0 WO0

PD7

PD

7 AIN7 OP1 INN

PD5

PD

5 AIN5 OP1 OUT

PD4

PD

4 AIN4 OP1 INP

GND

GN

D

PE3

PE

3 OP2 INN

PE2

PE

2 OP2 OUT

PE1

PE

1 OP2 INP

PE0

PE

0

PC7

PC

7

PC6

PC

6

PC5

PC

5

PC4

PC

4

GND

GN

D

PB5

PB

5

PB4

PB

4

(PF1)

(PF

1) XTAL32K2

(PF0)

(PF

0) XTAL32K1

DEBUGGERAVR128DB48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

MVIO

OPAMP

Shared pin

AVR128DB48Curiosity Nano

512 Using Pin HeadersThe edge connector footprint on AVR128DB48 Curiosity Nano has a staggered design where each hole is shifted 8mil (~02 mm) off-center The hole shift allows the use of regular 100 mil pin headers on the board without solderingOnce the pin headers are firmly in place they can be used in normal applications like pin sockets and prototypingboards without any issues

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 26

Figure 5-2 Attaching Pin-Headers to the Curiostiy Nano Board

Figure 5-3 Connecting to Curiosity Nano Base for Click boardstrade

Tip  Start at one end of the pin header and gradually insert the header along the length of the boardOnce all the pins are in place use a flat surface to push them in

Tip  For applications where the pin headers will be used permanently it is still recommended to solderthem in place

Important  Once the pin headers are in place they are hard to remove by hand Use a set of pliers andcarefully remove the pin headers to avoid damage to the pin headers and PCB

513 Multi-Voltage IO

The AVR128DB48 Curiosity Nano MCU has support for Multi-Voltage IO (MVIO) AVR128DB48 MVIO pins areconnected to the edge connector at PC0-PC7 MVIO pins are capable of regular IO-pin behavior

MVIO can be configured in one of two supply modesbull Single-Supply mode All IO pins including MVIO-capable pins are powered by VCC_TARGET By default

VCC_TARGET is connected to VDDIO2 through a 0-ohm resistor (R204)bull Dual-Supply mode MVIO-capable pins are powered by an external power supply connected to VDDIO2 Non-

MVIO pins are powered by VCC_TARGET

Dual-Supply mode allows MVIO-pins to be powered at different voltages than pins powered from VCC_TARGET

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 27

WARNINGThe absolute maximum external voltage range for the AVR128DB48 is 18ndash55V Applying a higher voltagemay cause permanent damage to the board

By default AVR128DB48 Curiosity Nano board is configured for single-supply mode To use Dual-Supply mode somehardware modifications are required

WARNINGBefore any hardware modifications are done make sure the board is disconnected from USB or externalpower

bull Disconnect resistor R204 connecting VDDIO2 to VCC_TARGETbull Connect a new power supply to VDDIO2 and ground at J212bull J212 does not have reverse polarity protection Make sure to match polarity between the power supply and

J212 Positive-polarity to J212-pin 1 and negative-polarity to J212-pin 2

The resistor R204 VDDIO2 and J212 can be seen in Figure 5-4

Figure 5-4 MVIO and VDDIO2 Connections

J212 R204

WARNINGApplying an external voltage to VDDIO2 pin without removing resistor R204 may cause permanentdamage to the board

WARNINGJ212 does not have reverse polarity protection Applying voltage to the wrong pin may cause permanentdamage to the board

514 Operational AmplifiersAVR128DB48 features three internal operational amplifiers with a flexible connection scheme using analogmultiplexers and resistor ladders This allows a large number of analog signal conditioning configurations manyrequiring no external components

Table 5-1 OPAMP Pin Connections

OPAMP Poisitive Input (INP) Negative Input (INN) Output (OUT)

OP0 PD1 PD3 PD2

OP1 PD4 PD7 PD5

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 28

continuedOPAMP Poisitive Input (INP) Negative Input (INN) Output (OUT)

OP2 PE1 PE3 PE2

For information about OPAMP on the edge connector and any shared functionality see 511 AVR128DB48 CuriosityNano Pinout

52 Peripherals

521 LEDThere is one yellow user LED available on the AVR128DB48 Curiosity Nano board that can be controlled by eitherGPIO or PWM The LED can be activated by driving the connected IO line to GND

Table 5-2 LED Connection

AVR128DB48 Pin Function Shared Functionality

PB3 Yellow LED0 Edge connector On-board debugger

522 Mechanical SwitchThe AVR128DB48 Curiosity Nano board has one mechanical switch This is a generic user-configurable switchWhen the switch is pressed it will drive the IO line to ground (GND)

Tip  There is no externally connected pull-up resistor on the switch To use the switch make sure that aninternal pull-up resistor is enabled on pin PB2

Table 5-3 Mechanical Switch

AVR128DB48 Pin Description Shared Functionality

PB2 User switch (SW0) Edge connector On-board debugger

523 32768 kHz Crystal

On the AVR128DB48 Curiosity Nano board is a mounted 32768 kHz crystal of type VMK3-9001-32K7680000 thecrystal is accurate to within 20 ppm Using the External 32768 kHz Crystal Oscillator (XOSC32K) module inAVR128DB48 with the mounted 32768 kHz crystal generates a clock signal that is significantly more accurate thanthe Internal 32768 kHz Ultra Low-Power Oscillator (OSC32K) module can generate alone With the Auto-Tunefeature the 32768 kHz can be used as a reference to improve the accuracy of the internal oscillator This is an idealreference clock for the Real-Time Counter module in AVR128DB48

The 32768 kHz crystal is connected to AVR128DB48 on PF0 and PF1 which are also routed to the edge connectorthrough two solder points PF0 and PF1 are disconnected from the edge connector by default to reduce the chanceof an external signal causing contention with the crystal and to remove excessive capacitance on the lines

Next to the 32768 kHz crystal is a cut-strap (J209) which can be used to measure the oscillator safety factor This isdone by cutting the strap and adding a 0402 SMD resistor across the strap More information about oscillatorallowance and safety factor can be found in the AN2648 application note from Microchip

Cut straps and solder points can be seen in Figure 5-5

Table 5-4 32768 kHz Crystal Connections

AVR128DB48 Pin Function Shared Functionality

PF0 XTAL32K1 (Crystal input) Edge connector

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 29

continuedAVR128DB48 Pin Function Shared Functionality

PF1 XTAL32K2 (Crystal output) Edge connector

PA0 and PA1 can be used as GPIO To do so some hardware modifications are required

WARNINGBefore any hardware modifications are done make sure the board is disconnected from the USB orexternal power

bull Disconnect the 32768 kHz crystal by cutting the two straps on the top side of the board next to the crystal(J207 J208) The crystal should be disconnected when using the pin as GPIO as this might harm the crystal

bull Connect the IO lines to the edge connector by placing solder blobs on the circular solder points marked PF0and PF1 on the bottom side of the board (J210 J211)

Figure 5-5 Crystal Connection and Cut Straps

Top side Boom side

J211

J210

J207

J20832768 kHz Crystal

J209

524 1600 MHz Crystal

On the AVR128DB48 Curiosity Nano board is a mounted 1600 MHz crystal of type VXM7-9040-16M0000000 thecrystal is accurate to within 20 ppm Using the External High-Frequency Crystal Oscillator (XOSCHF) module inAVR128DB48 with the mounted 1600 MHz crystal generates a clock signal that is significantly more accurate thanthe Internal High-Frequency Oscillator (OSCHF) module

The 1600 MHz crystal is connected to AVR128DB48 on PA0 and PA1 which are also routed to the edge connectorthrough two solder points PA0 and PA1 are disconnected from the edge connector by default to reduce the chanceof an external signal causing contention with the crystal and to remove excessive capacitance on the lines

Next to the 1600 MHz crystal is a cut-strap (J217) which can be used to measure the oscillator safety factor This isdone by cutting the strap and adding a 0402 SMD resistor across the strap More information about oscillatorallowance and safety factor can be found in the AN2648 application note from Microchip

Cut straps and solder points can be seen in Figure 5-6

Table 5-5 Crystal Connections

AVR128DB48 Pin Function Shared Functionality

PA0 XTALHF1 (Crystal input) Edge connector

PA1 XTALHF2 (Crystal output) Edge connector

PA0 and PA1 can be used as GPIO To do so some hardware modifications are required

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 30

WARNINGBefore any hardware modifications are done make sure the board is disconnected from USB or externalpower

bull Disconnect the 1600 MHz crystal by cutting the two straps on the top side of the board next to the crystal (J215J216) The crystal should be disconnected when using the pin as GPIO as this might harm the crystal

bull Connect the IO lines to the edge connector by placing solder blobs on the circular solder points marked PA0and PA1 on the bottom side of the board (J213 J214)

Figure 5-6 Crystal Connection and Cut Straps

Top side Boom side

J214

J213

J216

J2151600 MHzCrystal

J217

525 On-Board Debugger ImplementationAVR128DB48 Curiosity Nano features an on-board debugger that can be used to program and debug theAVR128DB48 using UPDI The on-board debugger also includes a virtual serial port (CDC) interface over UART anddebug GPIO Both MPLABreg X IDE and Atmel Studio 7 can be used as a front-end for the on-board debugger forprogramming and debugging MPLAB Data Visualizer can be used as a front-end for the CDC and debug GPIO

5251 On-Board Debugger ConnectionsThe table below shows the connections between the target and the debugger section All connections between thetarget and the debugger are tri-stated as long as the debugger is not actively using the interface Hence since thereare little contaminations of the signals the pins can be configured to anything the user wants

For further information on how to use the capabilities of the on-board debugger see 41 On-Board DebuggerOverview

Table 5-6 On-Board Debugger Connections

AVR128DB48Pin

Debugger Pin Function Shared Functionality

PB1 CDC TX UART RX (AVR128DB48 RX line) Edge connector

PB0 CDC RX UART TX (AVR128DB48 TX line) Edge connector

UPDI DBG0 UPDI Edge connector

PB3 DBG1 LED0Debug GPIO1 Edge connector

PB2 DBG2 SW0Debug GPIO0 Edge connector

PF6 DBG3 RESET Edge connector

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 31

6 Hardware Revision History and Known IssuesThis user guide is written to provide information about the latest available revision of the board The followingsections contain information about known issues a revision history of older revisions and how older revisions differfrom the latest revision

61 Identifying Product ID and RevisionThe revision and product identifier of the AVR128DB48 Curiosity Nano Board can be found in two ways Either byutilizing the MPLABreg X IDE or Atmel Studio 7 Kit Window or by looking at the sticker on the bottom side of the PCB

By connecting AVR128DB48 Curiosity Nano to a computer with MPLABreg X IDE or Atmel Studio 7 running the KitWindow will pop up The first six digits of the serial number which is listed under kit information contain the productidentifier and revision

Tip  The Kit Window can be opened in MPLABreg X IDE through the menu bar Window gt Kit Window

The same information can be found on the sticker on the bottom side of the PCB Most boards will have the identifierand revision printed in plain text as A09-nnnnrr where ldquonnnnrdquo is the identifier and ldquorrrdquo is the revision Boards withlimited space have a sticker with only a data matrix code containing the product identifier revision and serialnumber

The serial number string has the following format

nnnnrrssssssssss

n = product identifier

r = revision

s = serial number

The product identifier for AVR128DB48 Curiosity Nano is A09‑3372

62 Revision 3AVR128DB48 silicon revision A5 or later is mounted on this revision of the board

63 Revision 2Revision 2 is the initially released board revision

AVR128DB48 silicon revision A4 is mounted on this revision of the board

AVR128DB48 Curiosity NanoHardware Revision History and Known Issues

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 32

7 Document Revision HistoryDoc Rev Date Comments

A 092020 Initial document release

AVR128DB48 Curiosity NanoDocument Revision History

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 33

8 Appendix

81 SchematicFigure 8-1 AVR128DB48 Curiosity Nano Schematic

11

22

33

44

55

66

77

88

DD

CC

BB

AA

2 of

4

AV

R12

8DB

48 C

uri

osit

y N

ano

240

820

20A

VR

128D

B48

_Cur

iosi

ty_N

ano_

Targ

et_M

CU

Sch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA

Rev

isio

n

File

P

CB

Num

ber

PC

B

Rev

isio

n

Des

ign

ed w

ith

Dra

wn

By

ML

Shee

t Titl

e

Targ

et M

CU

Eng

inee

rA

H

A08

-305

71

Size

A3

A09

-337

22

Page

D

ateA

ltium

com

GN

D

VD

DIO

2

100n

C20

1

GN

D

PA5_

SPI0

_MIS

OPA

6_SP

I0_S

CK

PA7_

SPI0

_SS

PB0_

USA

RT

3_T

XPB

1_U

SAR

T3_

RX

PB2_

SW0_

DB

G2

PB3_

LE

D0_

DB

G1

PB

4P

B5

PC

0P

C1

PC

2

PC3

PC4PC5PC6PC7PD0_AIN0_TCA0_WO0PD1_AIN1_OP0_INP_TCA0_WO1PD2_AIN2_OP0_OUT_TCA0_WO2PD3_AIN3_OP0_INNPD4_AIN4_OP1_INP

PA3_TWI0_SCL

PA1_XTALHF2

UPDI_DBG0

PF5_USART2_RX

PF3

PF

2PF

1_X

TA

L32

K2

PF0_

XT

AL

32K

1P

E3_

OP

2_IN

NP

E2_

OP

2_O

UT

PE

1_O

P2_

INP

PE

0

PD5_

AIN

5_O

P1_

OU

TPD

6_A

IN6

PD7_

AIN

7_O

P1_

INN

GN

D

VC

C_T

AR

GE

T

100n

C20

2

GN

DV

CC

_TA

RG

ET

100n

C20

0

PF1_XTAL32K2

PF0_XTAL32K1

PA2_TWI0_SDA

PA0_XTALHF1

PF4_USART2_TX

PA4_SPI0_MOSI

GN

D

PA7_

SPI0

_SS

PA6_

SPI0

_SC

KPA

5_SP

I0_M

ISO

PA4_

SPI0

_MO

SIPA

3_T

WI0

_SC

LPA

2_T

WI0

_SD

A

PC

0P

C1

PC

2P

C3

PB

4P

B5

PD7_

AIN

7_O

P1_

INN

PD6_

AIN

6

PD2_

AIN

2_O

P0_

OU

T_T

CA

0_W

O2

PD1_

AIN

1_O

P0_

INP_

TC

A0_

WO

1PD

0_A

IN0_

TC

A0_

WO

0

PD5_

AIN

5_O

P1_

OU

TPD

4_A

IN4_

OP

1_IN

P

PD3_

AIN

3_O

P0_

INN

32K

Hz

Cry

stal

PB0_

USA

RT

3_T

XPB

1_U

SAR

T3_

RX

1kR203

US

ER

LE

D

VC

C_T

AR

GE

T

PF6_DBG3

PB2_SW0_DBG2

PB3_LED0_DBG1

GN

D

USE

R B

UT

TO

N

PB3_

LE

D0_

DB

G1

PB2_

SW0_

DB

G2

PB1_

USA

RT

3_R

XPB

0_U

SAR

T3_

TX

PF4_

USA

RT

2_T

XPF

5_U

SAR

T2_

RX

PF

2P

F3

PC

4P

C5

PC

6P

C7

1kR202

YELLOWLEDSML-D12Y1WT86

2 1

D200

TS604VM1-035CR13

4 2

SW20

0

GN

DV

CC

_ED

GE

GN

DG

ND

GN

DG

ND

UPD

I_D

BG

0P

F6_

DB

G3

J209

PB3_

LE

D0_

DB

G1

PB2_

SW0_

DB

G2

AV

R12

8DB

48

22u

FC

205

VC

C_E

DG

E

GN

D

DBG0

CDC_TXCDC_RX

DBG2

DBG1

DBG3

DBG2

DE

BU

GG

ER

CO

NN

EC

TIO

NS

DBG1

DBG3DBG0

VOFF

ID_SYS

ID_SYS

VOFF

TA

RG

ET

BU

LK

VC

C_T

AR

GE

TR

ESE

T P

ull

VB

US

CD

C R

X3

CD

C T

X4

DB

G1

5

DB

G2

6

0 T

X7

1 R

X8

2 SD

A9

3 S

CL

10

4 M

OSI

11

5 M

ISO

12

6 S

CK

13

7 S

S14

GN

D15

0 (T

X)

16

1 (R

X)

17

218

319

020

GN

D24

DB

G3

54

DB

G0

53

GN

D52

VC

C51

PW

M 3

46

AD

C 2

45

AD

C 1

44

AD

C 0

43

GN

D42

438

434

GN

D33

AD

C 7

50

AD

C 6

49

AD

C 5

48

PW

M 4

47

DE

BU

GG

ER

TAR

GE

T

ID2

VO

FF

55

121

222

323

025

126

227

328

429

530

631

732

535

636

737

539

640

741

RE

SER

VE

D1

VB

US

56

CN

AN

O56

-pin

edg

e co

nnec

tor

J200

J201

J203

J205

J206

J202

J204

PF1_

XT

AL

32K

2PF

0_X

TA

L32

K1

NC

XOUT

XIN

47kR200

AV

R12

8DB

48

UPD

I

GPI

O1

GPI

O0

RE

SET

DB

G0

DB

G1

DB

G2

DB

G3

Deb

ugge

r

CD

C T

X

CD

C R

X

UA

RT

3 R

X

UA

RT

3 T

X

VT

G1

8V -

55

VPB

3

PB

2

PF

6

UP

DI

PB

0

PB

1

Nam

eP

in

PE

3_O

P2_

INN

PE

2_O

P2_

OU

TP

E1_

OP

2_IN

PP

E0

J207

J208

PF

0P

F1

PA5

1

PA6

2

PA7

3

PB0

4

PB1

5

PB2

6

PB3

7

PB4

8

PB5

9

PC0

10

PC1

11

PC2

12

PC313

VDDIO214

GND15

PC416

PC517

PC618

PC719

PD020

PD121

PD222

PD323

PD424

PD5

25

PD6

26

PD7

27

AVDD

28

GND

29

PE0

30

PE1

31

PE2

32

PE3

33

XTAL32K1PF0

34

XTAL32K2PF1

35

PF2

36

PF337

PF438

PF539

PF640

UPDI41

VDD42

GND43

XTALHF1PA044

XTALHF2PA145

PA246

PA347

PA448

AV

R12

8DB

48-I

PT

U20

0

0RR204

GN

D

VC

C_T

AR

GE

T

VDDIO2

GND

J210

J211

82p

C20

48

2pC

203

GN

DG

ND

16M

Hz

Cry

stal

J217

XHFOUT

XHFIN

J214

J213

GN

D

J215

J216

PA0_XTALHF1

PA1_XTALHF2

PA0_

XT

AL

HF

1PA

1_X

TA

LH

F2

PA0

PA1

1 2

J212 N

M

15pF

C20

615

pFC

207

13

24 16

000

MH

zV

XM

7-90

40-1

6M00

0000

0TR

XC

201

GN

D32

768

kHz

VM

K3-

9001

-32K

7680

000T

R

XC

200

CDC_TX

CDC_RX

CD

C_T

XC

DC

_RX

Cry

stal

dat

ashe

et

Ccr

ysta

l = 9

pFm

ax E

SR

= 7

0kO

hmA

ccur

acy

plusmn20p

pm

AV

R48

DB

128

data

shee

tC

xin

= 4

0pF

(ty

pica

l val

ue)

Cxo

ut =

40

pF (

typi

cal v

alue

)C

lasymp1

( (1

40

pF)+

(1

40p

F)

)asymp

20p

FM

axim

um L

oad

= 1

25p

FM

axim

um E

SR =

50k

Ohm

Est

imat

ed C

pcb

= 0

5pF

Est

imat

ed lo

adC

= 2

(C

crys

tal-

Cpa

ra -

Cpc

b)C

= 2

(9p

F -

20

pF -

05

pF)

C =

13

0pF

Sele

cted

in d

esig

n af

ter

veri

fica

tion

C=

82

pF8

2pF

NO

TE

on

UA

RT

CD

C

RX

TX

onth

ehe

ader

deno

tes

the

inpu

tout

put d

irec

tion

of th

e si

gnal

resp

ectiv

e to

its

sou

rce

CD

C T

X is

out

put f

rom

the

DE

BU

GG

ER

C

DC

RX

is in

put t

o th

e D

EB

UG

GE

R

TX

is o

utpu

t fro

m th

e T

AR

GE

T d

evic

eR

X is

inpu

t to

the

TA

RG

ET

dev

ice

NO

TE

on

I2C

No

pull

-ups

on

boar

d P

ull-

ups

shou

ld b

em

ount

ed c

lose

to s

lave

dev

ice(

s)

WA

RN

ING

M

ake

sure

tore

mov

e R

204

befo

reap

plyi

ng p

ower

to J

212

Cry

stal

dat

ashe

et

Ccr

ysta

l = 1

2pF

max

ES

R =

60O

hmA

ccur

acy

plusmn30p

pm

AV

R48

DB

128

data

shee

tC

xin

= 4

0pF

(ty

pica

l val

ue)

Cxo

ut =

40

pF (

typi

cal v

alue

)C

lasymp1

( (1

40

pF)+

(1

40p

F)

)asymp

20p

FM

axim

um L

oad

= 1

25p

FM

axim

um E

SR =

k

Ohm

Est

imat

ed C

pcb

= 0

5pF

Est

imat

ed lo

adC

= 2

(C

crys

tal-

Cpa

ra -

Cpc

b)C

= 2

(12

pF -

20

pF -

05

pF)

C =

19

0pF

Sele

cted

in d

esig

n af

ter

veri

fica

tion

C=

15p

F1

5pF

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 34

11

22

33

44

55

66

77

88

DD

CC

BB

AA

3 of

4

AV

R12

8DB

48 C

uri

osit

y N

ano

2020

-06-

26A

VR

128D

B48

_Cur

iosi

ty_N

ano_

Deb

ugge

rSch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA

Rev

isio

n

Fil

eP

CB

Num

ber

PC

B

Rev

isio

n

Des

ign

ed w

ith

Dra

wn

By

ML

Shee

t Tit

le

Deb

ugge

r

Eng

inee

rA

H

A08

-305

71

Size

A3

A09

-337

22

Page

D

ateA

ltium

com

DE

BU

GG

ER

USB

MIC

RO

-B C

ON

NE

CT

OR

GN

D

USB

D_P

USB

D_N

100n

C10

7

100n

C10

8

1kR

107

VC

C_P

3V3

SRST

STA

TU

S_L

ED

SHIE

LD

VB

US

VC

C_P

3V3

GN

D

TP

100

Test

poin

t Arr

ay

12

34

56

78

910

TC

KT

DO

TM

SV

sup

TD

IG

ND

TR

STSR

STV

Tre

fG

ND

J102

GN

D

47u

F

C10

0

DBG0

DB

G0

21

GR

EE

N L

ED

SML

-P12

MT

T86

R

D10

0

VBUS

1

D-

2

D+

3

GND

5

SHIELD1

6

SHIELD2

7

ID

4

SHIELD3

8

SHIELD4

9 MU

-MB

0142

AB

2-26

9

J105

PAD

33

PA00

1

PA01

2

PA02

3

PA03

4

GND 10VDDANA 9

PA04

5

PA05

6

PA06

7

PA07

8

PA08 11

PA09 12

PA10 13

PA11 14

PA14 15

PA15 16

PA16

17

PA17

18

PA18

19

PA19

20

PA22

21

USB_SOFPA23

22

USB_DMPA24

23

USB_DPPA25

24

PA2725 RESETN26 PA2827 GND28 VDDCORE29 VDDIN30 SWDCLKPA3031 SWDIOPA3132

SAM

D21

E18

A-M

UT

U10

0

VOUT

1

VOUT

2

GND 3

EN

4

VIN

6

NC

5

EP 7

MIC

5528

-33

YM

TU

101

VC

C_P

3V3

GN

D

USB

D_P

USB

D_N

GN

D

1uC

106

VC

C_M

CU

_CO

RE

VC

C_P

3V3

VC

C_P

3V3

22u

FC

101

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

3

VC

C_P

3V3

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

4

VC

C_P

3V3

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

5

VC

C_P

3V3

GN

D

GN

D GN

D

GN

D

VC

C_E

DG

E

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

7

VC

C_P

3V3

GN

DDBG2

DB

G3_

CT

RL

S1_0

_TX

S1_1

_RX

S0_2

_TX

DA

CV

TG

_AD

C

RE

SER

VE

D

S0_3

_CL

K

DBG0_CTRL

CD

C_T

X_C

TR

L

BO

OT

DE

BU

GG

ER

PO

WE

RS

TA

TU

S L

ED

EN

1

BYP

6

VOUT

4

GND

2

VIN

3

NCADJ

5

GND

7

MIC

5353

U10

2

100n

C10

2

GN

D

GN

D

47kR101

27kR104 G

ND

33k

R10

6

22u

F

C10

3 GN

D

1kR

108

J100

VC

C_L

EV

EL

VC

C_R

EG

UL

AT

OR

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

6

VC

C_P

3V3

GN

DDBG1

CD

C_R

X

CD

C_T

X

DBG3

DBG1_CTRL

DE

BU

GG

ER

RE

GU

LA

TO

R

REG_ENABLE

RE

G_E

NA

BL

E

47kR103

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

47kR102

47kR105

SWC

LK

GN

D

47kR100 G

ND

DB

G2

S0_0

_RX

DB

G1_

CT

RL

DB

G0_

CT

RL

DB

G3

OP

EN

DR

AIN

TA

RG

ET

AD

JUST

AB

LE

RE

GU

LA

TO

R

SRST

DE

BU

GG

ER

TE

ST

PO

INT DBG2_CTRL

VO

FF

CD

C_R

X_C

TR

L

47kR109

DB

G1

CD

C_T

X_C

TR

L

CD

C_R

X_C

TR

L

SWC

LK

REG_ADJUST

DBG2_GPIO

DB

G3_

CT

RL

DB

G2_

CT

RL

UP

DI

UPD

I

GPI

O

GPI

O

RE

SET

Sign

al

DB

G0

DB

G1

DB

G2

DB

G3

ICS

PIn

terf

ace

DA

T

CL

K

GPI

O

MC

LR

DB

G3

CD

C T

X

CD

C R

X

UA

RT

RX

UA

RT

TX

UA

RT

RX

UA

RT

TX

TA

RG

ET

TA

RG

ET

1kR

110

VBUS_ADC

1

23

DM

N65

D8L

FB

Q10

1

VC

C-

-

ID_SYS

VOFF

1kR112

VC

C_P

3V3

VT

G_A

DC

DA

C

MIC

9416

3

VIN

B2

VOUT

A1

VIN

A2

EN

C2

GND

C1

VOUT

B1

U10

8

GN

D

ID_S

YS

VT

G_E

N

VTG_EN

VBUS_ADC

SWD

IO

ID_S

YS

TP

101

GN

DSW

DIO

VO

FF

47kR111 G

ND

ID P

IN

MC

3621

3

F10

0

VC

C_V

BU

S

VC

C_V

BU

S

VC

C_V

BU

S

J101

VC

C_T

AR

GE

T

47k

R11

3

CDC_TX

CDC_RX

Prog

ram

min

g co

nnec

tor

for

fact

ory

prog

ram

min

g of

DE

BU

GG

ER

MIC

5528

V

in 2

5V

to 5

5V

Vou

t F

ixed

33

VIm

ax 5

00m

AD

ropo

ut 2

60m

V

500

mA

MIC

5353

V

in 2

6V

to 6

VV

out

12

5V to

51

VIm

ax 5

00m

AD

ropo

ut (

typi

cal)

50m

V

150m

A 1

60m

V

500

mA

Acc

urac

y 2

in

itia

lT

herm

al s

hutd

own

and

curr

ent l

imit

Max

imum

out

put v

olta

ge is

lim

ited

by

the

inpu

t vol

tage

and

the

drop

out v

olta

ge in

the

regu

lato

r(V

max

= V

in -

dro

pout

)

J100

-

Cut

-str

ap u

sed

for

full

sep

arat

ion

of ta

rget

pow

er f

rom

the

leve

l shi

fter

s an

don

-boa

rd r

egul

ator

s-

For

cur

rent

mea

sure

men

ts u

sing

the

on-b

oard

pow

er s

uppl

y th

isst

rap

mus

t be

cut a

nd a

nam

met

er c

onne

cted

acr

oss

- F

or c

urre

nt m

easu

rem

ents

usi

ng a

n ex

tern

al p

ower

sup

ply

this

str

ap c

ould

be

cut f

or m

ore

accu

rate

mea

sure

men

ts L

eaka

ge b

ack

thro

ugh

the

swit

ch is

in th

e m

icro

am

pere

ran

ge

PT

C R

eset

tabl

e fu

se

Hol

d cu

rren

t 5

00m

AT

rip

curr

ent

100

0mA

Adj

usta

ble

outp

ut a

nd li

mit

atio

ns

- T

he D

EB

UG

GE

R c

an a

djus

t the

out

put v

olta

ge o

f th

e re

gula

tor

betw

een

125

V a

nd 5

1V

to th

e ta

rget

-

The

vol

tage

out

put i

s li

mit

ed b

y th

e in

put (

US

B)

whi

ch c

an v

ary

betw

een

440

V to

52

5V-

The

leve

l shi

fter

s ha

ve a

min

imal

vol

tage

leve

l of

165

V a

nd w

ill l

imit

the

min

imum

ope

ratin

g vo

ltage

all

owed

for

the

targ

et to

sti

ll a

llow

com

mun

icat

ion

- T

he M

IC94

163

has

a m

inim

al v

olat

ege

leve

l of

170

V a

nd w

ill l

imit

the

min

imum

vol

tage

del

iver

ed to

the

targ

et

- F

irm

war

e co

nfig

urat

ion

wil

l lim

it th

e vo

ltage

ran

ge to

be

wit

hin

the

the

targ

et s

peci

fica

tion

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 35

82 Assembly DrawingFigure 8-2 AVR128DB48 Curiosity Nano Assembly Drawing Top

+

Cb

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20001 PAC20002 COC200

PAC20101 PAC20102 COC201

PAC20201 PAC20202 COC202 PAC20301

PAC20302 COC203

PAC20401

PAC20402 COC204

PAC20502

PAC20501 COC205

PAC20601

PAC20602 COC206 PAC20701

PAC20702 COC207 PAD10002 PAD10001 COD100

PAD20002

PAD20001 COD200

PAF10002

PAF10001 COF100

PAJ10002 PAJ10001 COJ100

PAJ10101 PAJ10102 COJ101

PAJ10201

PAJ10202

PAJ10203

PAJ10204

PAJ10205

PAJ10206 COJ102

PAJ10506

PAJ10507 PAJ10509

PAJ10508 PAJ105010

PAJ105011 PAJ10505

PAJ10504

PAJ10503

PAJ10502

PAJ10501

PAJ10500

COJ105

PAJ200056 PAJ200053

PAJ200028 PAJ20002 PAJ20001

PAJ200051 PAJ200050 PAJ200052 PAJ200049 PAJ200048 PAJ200047 PAJ200046 PAJ200045 PAJ200044 PAJ200043 PAJ200042 PAJ200041 PAJ200040 PAJ200039 PAJ200038 PAJ200037 PAJ200036 PAJ200035 PAJ200034 PAJ200033 PAJ200032 PAJ200031 PAJ200030 PAJ200029

PAJ20003 PAJ20004 PAJ20005 PAJ20006 PAJ20007 PAJ20008 PAJ20009 PAJ200010 PAJ200011 PAJ200012 PAJ200013 PAJ200014 PAJ200015 PAJ200016 PAJ200017 PAJ200018 PAJ200019 PAJ200020 PAJ200021 PAJ200022 PAJ200023 PAJ200026 PAJ200025 PAJ200024 PAJ200027

PAJ200054 PAJ200055 PAJ20000

COJ200

PAJ20102 PAJ20101 COJ201

PAJ20202 PAJ20201 COJ202

PAJ20302 PAJ20301 COJ203

PAJ20402 PAJ20401 COJ204

PAJ20502 PAJ20501 COJ205

PAJ20602 PAJ20601 COJ206 PAJ20702 PAJ20701 COJ207

PAJ20802 PAJ20801 COJ208

PAJ20902 PAJ20901 COJ209

PAJ21001 PAJ21002 PAJ21005 COJ210

PAJ21102 PAJ21101 PAJ21105 COJ211

PAJ21202 PAJ21201 COJ212

PAJ21301 PAJ21302 PAJ21305 COJ213

PAJ21401 PAJ21402 PAJ21405 COJ214

PAJ21502 PAJ21501 COJ215

PAJ21602 PAJ21601 COJ216 PAJ21702 PAJ21701 COJ217

COLABEL1

PAQ10101 PAQ10102 PAQ10103 PAQ10100

COQ101 PAR10002

PAR10001 COR100 PAR10101 PAR10102 COR101

PAR10202 PAR10201 COR102

PAR10302 PAR10301 COR103

PAR10401 PAR10402 COR104

PAR10502

PAR10501 COR105

PAR10601 PAR10602 COR106

PAR10702 PAR10701 COR107

PAR10801

PAR10802 COR108

PAR10901 PAR10902 COR109

PAR11001 PAR11002 COR110

PAR11101 PAR11102 COR111

PAR11201 PAR11202 COR112

PAR11302 PAR11301 COR113

PAR20001 PAR20002 COR200 PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203 PAR20401 PAR20402 COR204

PASW20003

PASW20004 PASW20002

PASW20001 COSW200

PATP10001 COTP100

PATP10101 COTP101 PAU100033

PAU100032 PAU100031 PAU100030 PAU100029 PAU100028 PAU100027 PAU100026 PAU100025 PAU100024

PAU100023

PAU100022

PAU100021

PAU100020

PAU100019

PAU100018

PAU100017 PAU100016 PAU100015 PAU100014 PAU100013 PAU100012 PAU100011 PAU100010

PAU10001

PAU10002

PAU10003

PAU10004

PAU10005

PAU10006

PAU10007

PAU10008 PAU10009

COU100

PAU10107

PAU10104 PAU10105 PAU10106

PAU10103 PAU10102 PAU10101 PAU10100 COU101 PAU10207

PAU10204 PAU10205

PAU10206

PAU10203 PAU10202

PAU10201

COU102

PAU10306

PAU10305 PAU10304 PAU10303

PAU10302 PAU10301 PAU10300

COU103

PAU10406

PAU10405 PAU10404 PAU10403

PAU10402 PAU10401 PAU10400

COU104

PAU10506

PAU10505 PAU10504 PAU10503

PAU10502 PAU10501 PAU10500

COU105

PAU10606

PAU10605 PAU10604 PAU10603

PAU10602 PAU10601 PAU10600

COU106

PAU10706

PAU10705 PAU10704 PAU10703

PAU10702 PAU10701 PAU10700

COU107

PAU1080A1 PAU1080A2

PAU1080B1 PAU1080B2

PAU1080C1 PAU1080C2 COU108

PAU20001 PAU20002 PAU20003 PAU20004 PAU20005 PAU20006 PAU20007 PAU20008 PAU20009 PAU200010 PAU200011 PAU200012 PAU200013 PAU200014 PAU200015 PAU200016 PAU200017 PAU200018 PAU200019 PAU200020 PAU200021 PAU200022 PAU200023 PAU200024 PAU200025 PAU200026 PAU200027 PAU200028 PAU200029 PAU200030 PAU200031 PAU200032 PAU200033 PAU200034 PAU200035 PAU200036

PAU200037 PAU200038 PAU200039 PAU200040 PAU200041 PAU200042 PAU200043 PAU200044 PAU200045 PAU200046 PAU200047 PAU200048

COU200

PAXC20001

PAXC20002 COXC200

PAXC20101 PAXC20102

PAXC20103 PAXC20104 COXC201

Figure 8-3 AVR128DB48 Curiosity Nano Assembly Drawing Bottom

tcR

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20001 PAC20002 COC200

PAC20101 PAC20102 COC201

PAC20201 PAC20202 COC202 PAC20301

PAC20302 COC203

PAC20401

PAC20402 COC204

PAC20502

PAC20501 COC205

PAC20601

PAC20602 COC206 PAC20701

PAC20702 COC207 PAD10002 PAD10001 COD100

PAD20002

PAD20001 COD200

PAF10002

PAF10001 COF100

PAJ10002 PAJ10001 COJ100

PAJ10101 PAJ10102 COJ101

PAJ10201

PAJ10202

PAJ10203

PAJ10204

PAJ10205

PAJ10206 COJ102

PAJ10506

PAJ10507 PAJ10509

PAJ10508 PAJ105010

PAJ105011 PAJ10505

PAJ10504

PAJ10503

PAJ10502

PAJ10501

PAJ10500

COJ105

PAJ200056 PAJ200053

PAJ200028 PAJ20002 PAJ20001

PAJ200051 PAJ200050 PAJ200052 PAJ200049 PAJ200048 PAJ200047 PAJ200046 PAJ200045 PAJ200044 PAJ200043 PAJ200042 PAJ200041 PAJ200040 PAJ200039 PAJ200038 PAJ200037 PAJ200036 PAJ200035 PAJ200034 PAJ200033 PAJ200032 PAJ200031 PAJ200030 PAJ200029

PAJ20003 PAJ20004 PAJ20005 PAJ20006 PAJ20007 PAJ20008 PAJ20009 PAJ200010 PAJ200011 PAJ200012 PAJ200013 PAJ200014 PAJ200015 PAJ200016 PAJ200017 PAJ200018 PAJ200019 PAJ200020 PAJ200021 PAJ200022 PAJ200023 PAJ200026 PAJ200025 PAJ200024 PAJ200027

PAJ200054 PAJ200055 PAJ20000

COJ200

PAJ20102 PAJ20101 COJ201

PAJ20202 PAJ20201 COJ202

PAJ20302 PAJ20301 COJ203

PAJ20402 PAJ20401 COJ204

PAJ20502 PAJ20501 COJ205

PAJ20602 PAJ20601 COJ206 PAJ20702 PAJ20701 COJ207

PAJ20802 PAJ20801 COJ208

PAJ20902 PAJ20901 COJ209

PAJ21001 PAJ21002 PAJ21005 COJ210

PAJ21102 PAJ21101 PAJ21105 COJ211

PAJ21202 PAJ21201 COJ212

PAJ21301 PAJ21302 PAJ21305 COJ213

PAJ21401 PAJ21402 PAJ21405 COJ214

PAJ21502 PAJ21501 COJ215

PAJ21602 PAJ21601 COJ216 PAJ21702 PAJ21701 COJ217

COLABEL1

PAQ10101 PAQ10102 PAQ10103 PAQ10100

COQ101 PAR10002

PAR10001 COR100 PAR10101 PAR10102 COR101

PAR10202 PAR10201 COR102

PAR10302 PAR10301 COR103

PAR10401 PAR10402 COR104

PAR10502

PAR10501 COR105

PAR10601 PAR10602 COR106

PAR10702 PAR10701 COR107

PAR10801

PAR10802 COR108

PAR10901 PAR10902 COR109

PAR11001 PAR11002 COR110

PAR11101 PAR11102 COR111

PAR11201 PAR11202 COR112

PAR11302 PAR11301 COR113

PAR20001 PAR20002 COR200 PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203 PAR20401 PAR20402 COR204

PASW20003

PASW20004 PASW20002

PASW20001 COSW200

PATP10001 COTP100

PATP10101 COTP101 PAU100033

PAU100032 PAU100031 PAU100030 PAU100029 PAU100028 PAU100027 PAU100026 PAU100025 PAU100024

PAU100023

PAU100022

PAU100021

PAU100020

PAU100019

PAU100018

PAU100017 PAU100016 PAU100015 PAU100014 PAU100013 PAU100012 PAU100011 PAU100010

PAU10001

PAU10002

PAU10003

PAU10004

PAU10005

PAU10006

PAU10007

PAU10008 PAU10009

COU100

PAU10107

PAU10104 PAU10105 PAU10106

PAU10103 PAU10102 PAU10101 PAU10100 COU101 PAU10207

PAU10204 PAU10205

PAU10206

PAU10203 PAU10202

PAU10201

COU102

PAU10306

PAU10305 PAU10304 PAU10303

PAU10302 PAU10301 PAU10300

COU103

PAU10406

PAU10405 PAU10404 PAU10403

PAU10402 PAU10401 PAU10400

COU104

PAU10506

PAU10505 PAU10504 PAU10503

PAU10502 PAU10501 PAU10500

COU105

PAU10606

PAU10605 PAU10604 PAU10603

PAU10602 PAU10601 PAU10600

COU106

PAU10706

PAU10705 PAU10704 PAU10703

PAU10702 PAU10701 PAU10700

COU107

PAU1080A1 PAU1080A2

PAU1080B1 PAU1080B2

PAU1080C1 PAU1080C2 COU108

PAU20001 PAU20002 PAU20003 PAU20004 PAU20005 PAU20006 PAU20007 PAU20008 PAU20009 PAU200010 PAU200011 PAU200012 PAU200013 PAU200014 PAU200015 PAU200016 PAU200017 PAU200018 PAU200019 PAU200020 PAU200021 PAU200022 PAU200023 PAU200024 PAU200025 PAU200026 PAU200027 PAU200028 PAU200029 PAU200030 PAU200031 PAU200032 PAU200033 PAU200034 PAU200035 PAU200036

PAU200037 PAU200038 PAU200039 PAU200040 PAU200041 PAU200042 PAU200043 PAU200044 PAU200045 PAU200046 PAU200047 PAU200048

COU200

PAXC20001

PAXC20002 COXC200

PAXC20101 PAXC20102

PAXC20103 PAXC20104 COXC201

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 36

83 Curiosity Nano Base for Click boardstrade

Figure 8-4 AVR128DB48 Curiosity Nano Pinout Mapping

US

B

DE

BU

GG

ER

AV

R1

28

DB

48

SW

0

LE

D0

PS

LE

DNC

NC

ID

ID

CDC RX

CDCRX

USART3 TX

PB0

CDC TX

CDCTX

USART3 RX

PB1

DBG1

DBG1

PB3

LED0

DBG2

DBG2

PB2

SW0

PF4

PF4

USART2 TX

PF5

PF5

USART2 RX

PA2

PA2

TWI0 SDA

PA3

PA3

TWI0 SCL

PA4

PA4

SPI0 MOSI

PA5

PA5

SPI0 MISO

PA6

PA6

SPI0 SCK

PA7

PA7

SPI0 SS

GND

GND

PB0

PB0

USART3 TX

CDC RX

PB1

PB1

USART3 RX

CDC TX

PF2

PF2

PF3

PF3

PC0

PC0

PC1

PC1

PC2

PC2

PC3

PC3

GND

GND

(PA0)

(PA0)

XTALHF1

(PA1)

(PA1)

XTALHF2

PB2

PB2

SW0

PB3

PB3

LED0

VBUS

VBUS

VOFF

VOFF

DBG3

DBG3

PF6

DBG0

DBG0

UPDI

GND

GND

VTG

VTG

PD6

PD6

AIN6

PD3

PD3

AIN3

OP0 INN

PD2

PD2

AIN2

OP0 OUT

TCA0 WO2

PD1

PD1

AIN1

OP0 INP

TCA0 WO1

PD0

PD0

AIN0

TCA0 WO0

PD7

PD7

AIN7

OP1 INN

PD5

PD5

AIN5

OP1 OUT

PD4

PD4

AIN4

OP1 INP

GND

GND

PE3

PE3

OP2 INN

PE2

PE2

OP2 OUT

PE1

PE1

OP2 INP

PE0

PE0

PC7

PC7

PC6

PC6

PC5

PC5

PC4

PC4

GND

GND

PB5

PB5

PB4

PB4

(PF1)

(PF1)

XTAL32K2

(PF0)

(PF0)

XTAL32K1

DE

BU

GG

ER

AV

R1

28

DB

48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

MVIO

OPAMP

Shared pin

AV

R1

28

DB

48

Cu

rio

sity

Na

no

1

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

2

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

3

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

Xp

lain

ed

Pro

Ext

en

sio

nE

XT

11

2

19

20

Cu

rio

sity

Na

no

Ba

sefo

r cl

ick

bo

ard

sT

M

PD4

PD0

PD6

PD3

PA7

PF5

PA6

PF4

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

PD5

PD1

PF3

PF2

PE2

PB1

PA6

PB0

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

PD7

PD2

PE1

PE0

PE3

PF5

PA6

PF4

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

ID

GND

PD5

PD7

PF3

PE1

PD1

PD2

PF2

PE3

PA2

PA3

PB1

PB0

PE2

PA4

PA5

PA6

GND

+33V

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 37

84 Disconnecting the On-board DebuggerThe on-board debugger and level shifters can be completely disconnected from the AVR128DB48

The block diagram below shows all connections between the debugger and the AVR128DB48 The rounded boxesrepresent connections to the board edge The signal names shown are also printed in silkscreen on the bottom sideof the board

To disconnect the debugger cut the straps shown in Figure 8-6

Attention  Cutting the GPIO straps to the on-board debugger will disable the virtual serial portprogramming debugging and data streaming Cutting the power supply strap will disconnect the on-boardpower supply

Tip  Any connection that is cut can be reconnected using solder Alternatively a 0Ω 0402 resistor can bemounted

Tip  When the debugger is disconnected an external debugger can be connected to holes shown in Figure 8-6 Details about connecting an external debugger are described in 46 Connecting ExternalDebuggers

Figure 8-5  On-Board Debugger Connections Block Diagram

DE

BU

GG

ER

TARGETLevel-Shift

PA04PA06PA07PA08PA16PA00PA01

USB

DIR x 5

VCC_P3V3

VBUS

VC

C_L

EV

EL

VC

C_T

AR

GE

TDBG0DBG1DBG2DBG3CDC TXCDC RX

CDC RX

CDC TX

DBG3

DBG2

DBG1

DBG0

GPIO straps

LDO

VOFF

LDO

VBUS VTG

VCC_EDGE

Power Supply strap Target Power strap

UART RXUART TX

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 38

Figure 8-6 On-Board Debugger Connection Cut Straps

GPIO straps (bottom side) Power Supply strap (top side)

85 Getting Started with IARIAR Embedded Workbenchreg for AVRreg is a proprietary high-efficiency compiler not based on GCC Programming anddebugging of AVR128DB48 Curiosity Nano is supported in IARtrade Embedded Workbench for AVR using the Atmel-ICEinterface Some initial settings must be set up in the project to get the programming and debugging to work

The following steps will explain how to get your project ready for programming and debugging

1 Make sure you have opened the project you want to configure Open the OPTIONS dialog for the project2 In the category General Options select the Target tab Select the device for the project or if not listed the

core of the device as shown in Figure 8-73 In the category Debugger select the Setup tab Select Atmel-ICE as the driver as shown in Figure 8-84 In the category Debugger gt Atmel-ICE select the Atmel-ICE 1 tab Select UPDI as the interface and

optionally select the UPDI frequency as shown in Figure 8-9

Info  If the selection of Debug Port (mentioned in step 4) is grayed out the interface is preselected andthe user can skip this configuration step

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 39

Figure 8-7 Select Target Device

Figure 8-8 Select Debugger

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 40

Figure 8-9 Configure Interface

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 41

The Microchip Website

Microchip provides online support via our website at wwwmicrochipcom This website is used to make files andinformation easily available to customers Some of the content available includes

bull Product Support ndash Data sheets and errata application notes and sample programs design resources userrsquosguides and hardware support documents latest software releases and archived software

bull General Technical Support ndash Frequently Asked Questions (FAQs) technical support requests onlinediscussion groups Microchip design partner program member listing

bull Business of Microchip ndash Product selector and ordering guides latest Microchip press releases listing ofseminars and events listings of Microchip sales offices distributors and factory representatives

Product Change Notification Service

Microchiprsquos product change notification service helps keep customers current on Microchip products Subscribers willreceive email notification whenever there are changes updates revisions or errata related to a specified productfamily or development tool of interest

To register go to wwwmicrochipcompcn and follow the registration instructions

Customer Support

Users of Microchip products can receive assistance through several channels

bull Distributor or Representativebull Local Sales Officebull Embedded Solutions Engineer (ESE)bull Technical Support

Customers should contact their distributor representative or ESE for support Local sales offices are also available tohelp customers A listing of sales offices and locations is included in this document

Technical support is available through the website at wwwmicrochipcomsupport

Microchip Devices Code Protection Feature

Note the following details of the code protection feature on Microchip devices

bull Microchip products meet the specifications contained in their particular Microchip Data Sheetbull Microchip believes that its family of products is secure when used in the intended manner and under normal

conditionsbull There are dishonest and possibly illegal methods being used in attempts to breach the code protection features

of the Microchip devices We believe that these methods require using the Microchip products in a manneroutside the operating specifications contained in Microchiprsquos Data Sheets Attempts to breach these codeprotection features most likely cannot be accomplished without violating Microchiprsquos intellectual property rights

bull Microchip is willing to work with any customer who is concerned about the integrity of its codebull Neither Microchip nor any other semiconductor manufacturer can guarantee the security of its code Code

protection does not mean that we are guaranteeing the product is ldquounbreakablerdquo Code protection is constantlyevolving We at Microchip are committed to continuously improving the code protection features of our productsAttempts to break Microchiprsquos code protection feature may be a violation of the Digital Millennium Copyright ActIf such acts allow unauthorized access to your software or other copyrighted work you may have a right to suefor relief under that Act

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 42

Legal Notice

Information contained in this publication is provided for the sole purpose of designing with and using Microchipproducts Information regarding device applications and the like is provided only for your convenience and may besuperseded by updates It is your responsibility to ensure that your application meets with your specifications

THIS INFORMATION IS PROVIDED BY MICROCHIP ldquoAS ISrdquo MICROCHIP MAKES NO REPRESENTATIONS ORWARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED WRITTEN OR ORAL STATUTORY OROTHERWISE RELATED TO THE INFORMATION INCLUDING BUT NOT LIMITED TO ANY IMPLIEDWARRANTIES OF NON-INFRINGEMENT MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSEOR WARRANTIES RELATED TO ITS CONDITION QUALITY OR PERFORMANCE

IN NO EVENT WILL MICROCHIP BE LIABLE FOR ANY INDIRECT SPECIAL PUNITIVE INCIDENTAL ORCONSEQUENTIAL LOSS DAMAGE COST OR EXPENSE OF ANY KIND WHATSOEVER RELATED TO THEINFORMATION OR ITS USE HOWEVER CAUSED EVEN IF MICROCHIP HAS BEEN ADVISED OF THEPOSSIBILITY OR THE DAMAGES ARE FORESEEABLE TO THE FULLEST EXTENT ALLOWED BY LAWMICROCHIPS TOTAL LIABILITY ON ALL CLAIMS IN ANY WAY RELATED TO THE INFORMATION OR ITS USEWILL NOT EXCEED THE AMOUNT OF FEES IF ANY THAT YOU HAVE PAID DIRECTLY TO MICROCHIP FORTHE INFORMATION Use of Microchip devices in life support andor safety applications is entirely at the buyerrsquos riskand the buyer agrees to defend indemnify and hold harmless Microchip from any and all damages claims suits orexpenses resulting from such use No licenses are conveyed implicitly or otherwise under any Microchip intellectualproperty rights unless otherwise stated

Trademarks

The Microchip name and logo the Microchip logo Adaptec AnyRate AVR AVR logo AVR Freaks BesTimeBitCloud chipKIT chipKIT logo CryptoMemory CryptoRF dsPIC FlashFlex flexPWR HELDO IGLOO JukeBloxKeeLoq Kleer LANCheck LinkMD maXStylus maXTouch MediaLB megaAVR Microsemi Microsemi logo MOSTMOST logo MPLAB OptoLyzer PackeTime PIC picoPower PICSTART PIC32 logo PolarFire Prochip DesignerQTouch SAM-BA SenGenuity SpyNIC SST SST Logo SuperFlash Symmetricom SyncServer TachyonTempTrackr TimeSource tinyAVR UNIO Vectron and XMEGA are registered trademarks of Microchip TechnologyIncorporated in the USA and other countries

APT ClockWorks The Embedded Control Solutions Company EtherSynch FlashTec Hyper Speed ControlHyperLight Load IntelliMOS Libero motorBench mTouch Powermite 3 Precision Edge ProASIC ProASIC PlusProASIC Plus logo Quiet-Wire SmartFusion SyncWorld Temux TimeCesium TimeHub TimePictra TimeProviderVite WinPath and ZL are registered trademarks of Microchip Technology Incorporated in the USA

Adjacent Key Suppression AKS Analog-for-the-Digital Age Any Capacitor AnyIn AnyOut BlueSky BodyComCodeGuard CryptoAuthentication CryptoAutomotive CryptoCompanion CryptoController dsPICDEMdsPICDEMnet Dynamic Average Matching DAM ECAN EtherGREEN In-Circuit Serial Programming ICSPINICnet Inter-Chip Connectivity JitterBlocker KleerNet KleerNet logo memBrain Mindi MiWi MPASM MPFMPLAB Certified logo MPLIB MPLINK MultiTRAK NetDetach Omniscient Code Generation PICDEMPICDEMnet PICkit PICtail PowerSmart PureSilicon QMatrix REAL ICE Ripple Blocker SAM-ICE Serial QuadIO SMART-IS SQI SuperSwitcher SuperSwitcher II Total Endurance TSHARC USBCheck VariSenseViewSpan WiperLock Wireless DNA and ZENA are trademarks of Microchip Technology Incorporated in the USAand other countries

SQTP is a service mark of Microchip Technology Incorporated in the USA

The Adaptec logo Frequency on Demand Silicon Storage Technology and Symmcom are registered trademarks ofMicrochip Technology Inc in other countries

GestIC is a registered trademark of Microchip Technology Germany II GmbH amp Co KG a subsidiary of MicrochipTechnology Inc in other countries

All other trademarks mentioned herein are property of their respective companiescopy 2020 Microchip Technology Incorporated Printed in the USA All Rights Reserved

ISBN 978-1-5224-6667-3

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 43

Quality Management SystemFor information regarding Microchiprsquos Quality Management Systems please visit wwwmicrochipcomquality

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 44

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupportwwwmicrochipcomsupportWeb AddresswwwmicrochipcomAtlantaDuluth GATel 678-957-9614Fax 678-957-1455Austin TXTel 512-257-3370BostonWestborough MATel 774-760-0087Fax 774-760-0088ChicagoItasca ILTel 630-285-0071Fax 630-285-0075DallasAddison TXTel 972-818-7423Fax 972-818-2924DetroitNovi MITel 248-848-4000Houston TXTel 281-894-5983IndianapolisNoblesville INTel 317-773-8323Fax 317-773-5453Tel 317-536-2380Los AngelesMission Viejo CATel 949-462-9523Fax 949-462-9608Tel 951-273-7800Raleigh NCTel 919-844-7510New York NYTel 631-435-6000San Jose CATel 408-735-9110Tel 408-436-4270Canada - TorontoTel 905-695-1980Fax 905-695-2078

Australia - SydneyTel 61-2-9868-6733China - BeijingTel 86-10-8569-7000China - ChengduTel 86-28-8665-5511China - ChongqingTel 86-23-8980-9588China - DongguanTel 86-769-8702-9880China - GuangzhouTel 86-20-8755-8029China - HangzhouTel 86-571-8792-8115China - Hong Kong SARTel 852-2943-5100China - NanjingTel 86-25-8473-2460China - QingdaoTel 86-532-8502-7355China - ShanghaiTel 86-21-3326-8000China - ShenyangTel 86-24-2334-2829China - ShenzhenTel 86-755-8864-2200China - SuzhouTel 86-186-6233-1526China - WuhanTel 86-27-5980-5300China - XianTel 86-29-8833-7252China - XiamenTel 86-592-2388138China - ZhuhaiTel 86-756-3210040

India - BangaloreTel 91-80-3090-4444India - New DelhiTel 91-11-4160-8631India - PuneTel 91-20-4121-0141Japan - OsakaTel 81-6-6152-7160Japan - TokyoTel 81-3-6880- 3770Korea - DaeguTel 82-53-744-4301Korea - SeoulTel 82-2-554-7200Malaysia - Kuala LumpurTel 60-3-7651-7906Malaysia - PenangTel 60-4-227-8870Philippines - ManilaTel 63-2-634-9065SingaporeTel 65-6334-8870Taiwan - Hsin ChuTel 886-3-577-8366Taiwan - KaohsiungTel 886-7-213-7830Taiwan - TaipeiTel 886-2-2508-8600Thailand - BangkokTel 66-2-694-1351Vietnam - Ho Chi MinhTel 84-28-5448-2100

Austria - WelsTel 43-7242-2244-39Fax 43-7242-2244-393Denmark - CopenhagenTel 45-4485-5910Fax 45-4485-2829Finland - EspooTel 358-9-4520-820France - ParisTel 33-1-69-53-63-20Fax 33-1-69-30-90-79Germany - GarchingTel 49-8931-9700Germany - HaanTel 49-2129-3766400Germany - HeilbronnTel 49-7131-72400Germany - KarlsruheTel 49-721-625370Germany - MunichTel 49-89-627-144-0Fax 49-89-627-144-44Germany - RosenheimTel 49-8031-354-560Israel - RarsquoananaTel 972-9-744-7705Italy - MilanTel 39-0331-742611Fax 39-0331-466781Italy - PadovaTel 39-049-7625286Netherlands - DrunenTel 31-416-690399Fax 31-416-690340Norway - TrondheimTel 47-72884388Poland - WarsawTel 48-22-3325737Romania - BucharestTel 40-21-407-87-50Spain - MadridTel 34-91-708-08-90Fax 34-91-708-08-91Sweden - GothenbergTel 46-31-704-60-40Sweden - StockholmTel 46-8-5090-4654UK - WokinghamTel 44-118-921-5800Fax 44-118-921-5820

Worldwide Sales and Service

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 45

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Board Overview
      • 2 Getting Started
        • 21 Quick Start
          • 211 Driver Installation
          • 212 Kit Window
          • 213 MPLABreg X IDE Device Family Packs
          • 214 Atmel Studio 7 Device Family Pack
            • 22 Design Documentation and Relevant Links
              • 3 Preprogrammed Application
              • 4 Curiosity Nano
                • 41 On-Board Debugger Overview
                  • 411 Debugger
                  • 412 Virtual Serial Port (CDC)
                    • 4121 Overview
                    • 4122 Operating System Support
                    • 4123 Limitations
                    • 4124 Signaling
                    • 4125 Advanced Use
                      • 413 Mass Storage Device
                        • 4131 Mass Storage Device Implementation
                        • 4132 Limitations of Drag-and-Drop Programming
                        • 4133 Special Commands
                          • 414 Data Gateway Interface (DGI)
                            • 4141 Debug GPIO
                            • 4142 Timestamping
                                • 42 Curiosity Nano Standard Pinout
                                • 43 Power Supply
                                  • 431 Target Regulator
                                  • 432 External Supply
                                  • 433 VBUS Output Pin
                                  • 434 Power Supply Exceptions
                                    • 44 Low-Power Measurement
                                    • 45 Programming External Microcontrollers
                                      • 451 Supported Devices
                                      • 452 Software Configuration
                                      • 453 Hardware Modifications
                                      • 454 Connecting to External Microcontrollers
                                        • 46 Connecting External Debuggers
                                          • 5 Hardware User Guide
                                            • 51 Connectors
                                              • 511 AVR128DB48 Curiosity Nano Pinout
                                              • 512 Using Pin Headers
                                              • 513 Multi-Voltage IO
                                              • 514 Operational Amplifiers
                                                • 52 Peripherals
                                                  • 521 LED
                                                  • 522 Mechanical Switch
                                                  • 523 32768 kHz Crystal
                                                  • 524 1600 MHz Crystal
                                                  • 525 On-Board Debugger Implementation
                                                    • 5251 On-Board Debugger Connections
                                                      • 6 Hardware Revision History and Known Issues
                                                        • 61 Identifying Product ID and Revision
                                                        • 62 Revision 3
                                                        • 63 Revision 2
                                                          • 7 Document Revision History
                                                          • 8 Appendix
                                                            • 81 Schematic
                                                            • 82 Assembly Drawing
                                                            • 83 Curiosity Nano Base for Click boardstrade
                                                            • 84 Disconnecting the On-board Debugger
                                                            • 85 Getting Started with IAR
                                                              • The Microchip Website
                                                              • Product Change Notification Service
                                                              • Customer Support
                                                              • Microchip Devices Code Protection Feature
                                                              • Legal Notice
                                                              • Trademarks
                                                              • Quality Management System
                                                              • Worldwide Sales and Service
Page 13: AVR128DB48 Curiosity Nano Hardware User Guideww1.microchip.com/downloads/en/DeviceDoc/AVR128DB48-Curiosit… · 4. Curiosity Nano Curiosity Nano is an evaluation platform of small

Table 4-2 Special File Commands

Command Content Description

CMDERASE Executes a chip erase of the target

CMDSEND_UART= Sends a string of characters to the CDC UART See ldquoCDCOverride Moderdquo

CMDSEND_9600=CMDSEND_115200=CMDSEND_460800=

Sends a string of characters to the CDC UART at the baud ratespecified Note that only the baud rates explicitly specified hereare supported See ldquoCDC Override Moderdquo (Debugger firmwarev121 or newer)

CMDRESET Resets the target device by entering Programming mode andthen exiting Programming mode immediately thereafter Exacttiming can vary according to the programming interface of thetarget device (Debugger firmware v116 or newer)

CMDPOWERTOGGLE Powers down the target and restores power after a 100 msdelay If external power is provided this has no effect(Debugger firmware v116 or newer)

CMD0V Powers down the target device by disabling the target supplyregulator If external power is provided this has no effect(Debugger firmware v116 or newer)

CMD1V8 Sets the target voltage to 18V If external power is providedthis has no effect (Debugger firmware v121 or newer)

CMD3V3 Sets the target voltage to 33V If external power is providedthis has no effect (Debugger firmware v116 or newer)

CMD5V0 Sets the target voltage to 50V If external power is providedthis has no effect (Debugger firmware v116 or newer)

Info  The commands listed here are triggered by the content being sent to the mass storage emulateddisk and no feedback is provided in the case of either success or failure

414 Data Gateway Interface (DGI)Data Gateway Interface (DGI) is a USB interface for transporting raw and timestamped data between on-boarddebuggers and host computer-based visualization tools MPLAB Data Visualizer is used on the host computer todisplay debug GPIO data It is available as a plug-in for MPLABreg X IDE or a stand-alone application that can be usedin parallel with MPLABreg X IDE or Atmel Studio 7

Although DGI encompasses several physical data interfaces the AVR128DB48 Curiosity Nano implementationincludes logic analyzer channels

bull Two debug GPIO channels (also known as DGI GPIO)

4141 Debug GPIODebug GPIO channels are timestamped digital signal lines connecting the target application to a host computervisualization application They are typically used to plot the occurrence of low-frequency events on a time-axis ndash forexample when certain application state transitions occur

The figure below shows the monitoring of the digital state of a mechanical switch connected to a debug GPIO inMPLAB Data Visualizer

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 13

Figure 4-2 Monitoring Debug GPIO with MPLABreg Data Visualizer

Debug GPIO channels are timestamped so the resolution of DGI GPIO events is determined by the resolution of theDGI timestamp module

Important  Although bursts of higher-frequency signals can be captured the useful frequency range ofsignals for which debug GPIO can be used is up to about 2 kHz Attempting to capture signals above thisfrequency will result in data saturation and overflow which may cause the DGI session to be aborted

4142 TimestampingDGI sources are timestamped as they are captured by the debugger The timestamp counter implemented in theCuriosity Nano debugger increments at 2 MHz frequency providing a timestamp resolution of a half microsecond

42 Curiosity Nano Standard PinoutThe 12 edge connections closest to the USB connector on Curiosity Nano boards have a standardized pinout Theprogramdebug pins have different functions depending on the target programming interface as shown in the tableand figure below

Table 4-3 Curiosity Nano Standard Pinout

Debugger Signal Target MCU Description

ID mdash ID line for extensions

CDC TX UART RX USB CDC TX line

CDC RX UART TX USB CDC RX line

DBG0 UPDI Debug data line

DBG1 GPIO1 debug GPIO1

DBG2 GPIO0 debug GPIO0

DBG3 RESET Reset line

NC mdash No connect

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 14

continuedDebugger Signal Target MCU Description

VBUS mdash VBUS voltage for external use

VOFF mdash Voltage Off input Disables the target regulator andtarget voltage when pulled low

VTG mdash Target voltage

GND mdash Common ground

Figure 4-3 Curiosity Nano Standard Pinout

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

43 Power SupplyThe board is powered through the USB port and contains two LDO regulators one to generate 33V for the on-boarddebugger and an adjustable LDO regulator for the target microcontroller AVR128DB48 and its peripherals Thevoltage from the USB connector can vary between 44V to 525V (according to the USB specification) and will limitthe maximum voltage to the target The figure below shows the entire power supply system on AVR128DB48Curiosity Nano

Figure 4-4 Power Supply Block Diagram

USBTarget MCU

Power source

Cut strap

Power consumer P3V3DEBUGGER

Power converter

DEBUGGERRegulator

VUSB

TargetRegulator

Power Supply strap

Adjust

Level shifter

VLVLVREG

IO IO GPIOstraps

IO

OnOffMeasure OnOff

ID systemVOFF

PTC Fuse

Power protection

VBUS

Target Power strap

VTG

431 Target RegulatorThe target voltage regulator is a MIC5353 variable output LDO The on-board debugger can adjust the voltage outputsupplied to the board target section by manipulating the MIC5353rsquos feedback voltage The hardware implementation

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 15

is limited to an approximate voltage range from 17V to 51V Additional output voltage limits are configured in thedebugger firmware to ensure that the output voltage never exceeds the hardware limits of the AVR128DB48microcontroller The voltage limits configured in the on-board debugger on AVR128DB48 Curiosity Nano are 18ndash55V

Info  The target voltage is set to 33V when the board is manufactured It can be changed throughMPLABreg X IDE project properties and in the Atmel Studio 7 device programming dialog Any change tothe target voltage is persistent even after a power toggle The resolution is less than 5 mV but may belimited to 10 mV by the adjustment program

Info  Voltage settings that are set up in MPLABreg X IDE are not immediately applied to the board Thenew voltage setting is applied to the board when the debugger is accessed in any way like pushing theRefresh Debug Tool Status button in the project dashboard tab or programmingreading program memory

Info  There is a simple option to adjust the target voltage with a drag-and-drop command text file to theboard This supports a set of common target voltages See section 4133 Special Commands for furtherdetails

The MIC5353 supports a maximum current load of 500 mA It is an LDO regulator in a small package placed on asmall printed circuit board (PCB) and the thermal shutdown condition can be reached at lower loads than 500 mAThe maximum current load depends on the input voltage the selected output voltage and the ambient temperatureThe figure below shows the safe operating area for the regulator with an input voltage of 51V and an ambienttemperature of 23degC

Figure 4-5 Target Regulator Safe Operation Area

The voltage output of the target regulator is continuously monitored (measured) by the on-board debugger If it ismore than 100 mV overunder the voltage setting value an error condition will be flagged and the target voltageregulator will be turned off This will detect and handle any short-circuit conditions It will also detect and handle if anexternal voltage which causes VCC_TARGET to move outside of the voltage setting monitoring window of plusmn100 mVis suddenly applied to the VTG pin without setting the VOFF pin low

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 16

Info  If the external voltage is lower than the monitoring window lower limit (target voltage setting ndash 100mV) the on-board debugger status LED will blink rapidly If the external voltage is higher than themonitoring window upper limit (target voltage setting + 100 mV) the on-board debugger status LED willcontinue to shine If the external voltage is removed the status LED will start to blink rapidly until the on-board debugger detects the new situation and turns the target voltage regulator back on

432 External SupplyAVR128DB48 Curiosity Nano can be powered by an external voltage instead of the on-board target regulator Whenthe Voltage Off (VOFF) pin is shorted to ground (GND) the on-board debugger firmware disables the target regulatorand it is safe to apply an external voltage to the VTG pin

It is also safe to apply an external voltage to the VTG pin when no USB cable is plugged into the DEBUG connectoron the board

The VOFF pin can be tied lowlet go at any time This will be detected by a pin-change interrupt to the on-boarddebugger which controls the target voltage regulator accordingly

WARNINGApplying an external voltage to the VTG pin without shorting VOFF to GND may cause permanent damageto the board

WARNINGDo not apply any voltage to the VOFF pin Let the pin float to enable the power supply

WARNINGAbsolute maximum external voltage is 55V for the on-board level shifters and the standard operatingcondition of the AVR128DB48 is 18ndash55V Applying a higher voltage may cause permanent damage to theboard

Info  If an external voltage is applied without pulling the VOFF pin low and an external supply pulls thevoltage lower than the monitoring windowrsquos lower limit (target voltage setting - 100 mV) the on-boarddebugger status LED will blink rapidly and shut the on-board regulator off If an external voltage issuddenly removed when the VOFF pin is not pulled low the status LED will start to blink rapidly until theon-board debugger detects the new situation and switches the target voltage regulator back on

Programming debugging and data streaming is still possible with an external power supply ndash the debugger andsignal level shifters will be powered from the USB cable Both regulators the debugger and the level shifters arepowered down when the USB cable is removed

Info  In addition to the power consumed by the AVR128DB48 and its peripherals approximately 100 microAwill be drawn from any external power source to power the on-board level shifters and voltage monitorcircuitry when a USB cable is plugged in the DEBUG connector on the board When a USB cable is notplugged in some current is used to supply the level shifters voltage pins which have a worst-case currentconsumption of approximately 5 microA Typical values may be as low as 100 nA

433 VBUS Output PinAVR128DB48 Curiosity Nano has a VBUS output pin that can be used to power external components that need a 5Vsupply The VBUS output pin has a PTC fuse to protect the USB against short circuits A side effect of the PTC fuseis a voltage drop on the VBUS output with higher current loads The chart below shows the voltage versus the currentload of the VBUS output

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 17

Figure 4-6 VBUS Output Voltage vs Current

434 Power Supply ExceptionsThis is a summary of most exceptions that can occur with the power supply

Target Voltage Shuts DownThis can happen if the target section draws too much current at a given voltage This will cause the thermal shutdownsafety feature of the MIC5353 regulator to kick in To avoid this reduce the current load of the target section

Target Voltage Setting is Not ReachedThe maximum output voltage is limited by the USB input voltage (specified to be 44-525V) and the voltage dropover the MIC5353 regulator at a given voltage setting and current consumption If a higher output voltage is neededuse a USB power source that can provide a higher input voltage or use an external voltage supply on the VTG pin

Target Voltage is Different From SettingThis can be caused by an externally applied voltage to the VTG pin without setting the VOFF pin low If the targetvoltage differs more than 100 mV overunder the voltage setting it will be detected by the on-board debugger andthe internal voltage regulator will be shut down To fix this issue remove the applied voltage from the VTG pin andthe on-board debugger will enable the on-board voltage regulator when the new condition is detected Note that thePS LED will be blinking rapidly if the target voltage is below 100 mV of the setting but will be lit normally when it ishigher than 100 mV above the setting

No Or Very Low Target Voltage and PS LED is Blinking RapidlyThis can be caused by a full or partial short-circuit and is a special case of the issue mentioned above Remove theshort-circuit and the on-board debugger will re-enable the on-board target voltage regulator

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 18

No Target Voltage and PS LED is Lit 1This occurs if the target voltage is set to 00V To fix this set the target voltage to a value within the specified voltagerange for the target device

No Target Voltage and PS LED is Lit 2This can be the issue if power jumper J100 andor J101 is cut and the target voltage regulator is set to a value withinthe specified voltage range for the target device To fix this solder a wirebridge between the pads for J100J101 oradd a jumper on J101 if a pin header is mounted

VBUS Output Voltage is Low or Not PresentThis is most lightly caused by a high-current drain on VBUS and the protection fuse (PTC) will reduce the current orcut off completely Reduce the current consumption on the VBUS pin to fix this issue

44 Low-Power MeasurementPower to the AVR128DB48 is connected from the on-board power supply and VTG pin through a 100 mil pin headermarked with ldquoPOWERrdquo in silkscreen (J101) To measure the power consumption of the AVR128DB48 and otherperipherals connected to the board cut the Target Power strap and connect an ammeter over the strap

To measure the lowest possible power consumption follow these steps1 Cut the POWER strap with a sharp tool2 Solder a 1x2 100 mil pin header in the footprint3 Connect an ammeter to the pin header4 Write firmware that

41 Tri-states any IO connected to the on-board debugger42 Sets the microcontroller in its lowest power Sleep state

5 Program the firmware into the AVR128DB48

Figure 4-7 Target Power Strap

Target Power strap (top side)

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 19

Tip  A 100-mil pin header can be soldered into the Target Power strap (J101) footprint for easyconnection of an ammeter Once the ammeter is no longer needed place a jumper cap on the pin header

Info  The on-board level shifters will draw a small amount of current even when they are not in use Amaximum of 2 microA can be drawn from each IO pin connected to a level shifter for a total of 10 microA Keepany IO pin connected to a level shifter in tri-state to prevent leakage All IOs connected to the on-boarddebugger are listed in 5251 On-Board Debugger Connections To prevent any leakage to the on-boardlevel shifters they can be disconnected completely as described in 84 Disconnecting the On-boardDebugger

45 Programming External MicrocontrollersThe on-board debugger on AVR128DB48 Curiosity Nano can be used to program and debug microcontrollers onexternal hardware

451 Supported DevicesAll external AVR microcontrollers with the UPDI interface can be programmed and debugged with the on-boarddebugger with Atmel Studio

External SAM microcontrollers that have a Curiosity Nano Board can be programmed and debugged with the on-board debugger with Atmel Studio

AVR128DB48 Curiosity Nano can program and debug external AVR128DB48 microcontrollers with MPLAB X IDE

452 Software ConfigurationNo software configuration is required to program and debug the same device that is mounted on the board

To program and debug a different microcontroller than what is mounted on the board Atmel Studio must beconfigured to allow free selection of devices and programming interfaces

1 Navigate to Tools gt Options through the menu system at the top of the application2 Select the Tools gt Tool settings category in the options window3 Set the Hide unsupported devices option to False

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 20

Figure 4-8 Hide Unsupported Devices

Info  Atmel Studio allows any microcontroller and interface to be selected when Hide unsupporteddevices is set to False also microcontrollers and interfaces which are not supported by the on-boarddebugger

453 Hardware ModificationsThe on-board debugger is connected to the AVR128DB48 by default These connections must be removed beforeany external microcontroller can be programmed or debugged Cut the GPIO straps shown in the figure below with asharp tool to disconnect the AVR128DB48 from the on-board debugger

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 21

Figure 4-9 Programming and Debugging Connections to Debugger

GPIO straps (bottom side)

Info  Cutting the connections to the debugger will disable programming debugging and data streamingfrom the AVR128DB48 mounted on the board

Tip  Solder in 0Ω resistors across the footprints or short-circuit them with solder to reconnect the signalsbetween the on-board debugger and the AVR128DB48

454 Connecting to External MicrocontrollersThe figure and table below show where the programming and debugging signals must be connected to program anddebug external microcontrollers The on-board debugger can supply power to the external hardware or use anexternal voltage as a reference for its level shifters Read more about the power supply in 43 Power Supply

The on-board debugger and level shifters actively drive data and clock signals (DBG0 DBG1 and DBG2) used forprogramming and debugging and in most cases the external resistor on these signals can be ignored Pull-downresistors are required on the ICSPtrade data and clock signals to debug PICreg microcontrollers

DBG3 is an open-drain connection and requires a pull-up resistor to function

AVR128DB48 Curiosity Nano has a pull-up resistor R200 connected to its RESET signal (DBG3) The location ofthe pull-up resistor is shown in the 82 Assembly Drawing in the appendix

Remember bull Connect GND and VTG to the external microcontrollerbull Tie the VOFF pin to GND if the external hardware has its own power supplybull Make sure there are pull-down resistors on the ICSP data and clock signals (DBG0 and DBG1) to

support the debugging of PIC microcontrollers

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 22

Figure 4-10 Curiosity Nano Standard Pinout

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

Table 4-4 Programming and Debugging Interfaces

Curiosity Nano Pin UPDI ICSPtrade SWD

DBG0 UPDI DATA SWDIO

DBG1 mdash CLK SWCLK

DBG2 mdash mdash mdash

DBG3 mdash MCLR RESET

46 Connecting External DebuggersEven though there is an on-board debugger external debuggers can be connected directly to the AVR128DB48Curiosity Nano to programdebug the AVR128DB48 The on-board debugger keeps all the pins connected to theAVR128DB48 and board edge in tri-state when not actively used Therefore the on-board debugger will not interferewith any external debug tools

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 23

Figure 4-11 Connecting the MPLABreg PICkittrade 4 In-Circuit DebuggerProgrammer to AVR128DB48 CuriosityNano

2345678 1

VDD

GroundDATA

2 = VDD

3 = Ground

4 = PGD

5 = Unused

6 = Unused

7 = Unused

8 = Unused

1 = Unused

MPLABreg PICkittrade 4

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 24

Figure 4-12 Connecting the Atmel-ICE to AVR128DB48 Curiosity Nano

VDD

Ground

DATA

AVRregSAM

3 = UPDI

4 = VTG

5 = Unused

6 = Unused

7 = Unused

8 = Unused

1 = Unused

2 = GND

9 = Unused

10 = Unused

Atmel-ICE

21 9

10

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

CAUTIONTo avoid contention between the external debugger and the on-board debugger do not start anyprogrammingdebug operation with the on-board debugger through MPLABreg X IDE or Atmel Studio 7 ormass storage programming while the external tool is active

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 25

5 Hardware User Guide

51 Connectors

511 AVR128DB48 Curiosity Nano PinoutAll the AVR128DB48 IO pins are accessible at the edge connectors on the board The image below shows the boardpinout For all available functions on each pin refer to the IO Multiplexing and Considerations section in theAVR128DB48 data sheet

Figure 5-1 AVR128DB48 Curiosity Nano Pinout

USB

DEBUGGER

AVR128DB48

SW0

LED0

PS LEDNC

NC

IDID

CDC RX

CD

CR

XUSART3 TXPB0

CDC TX

CD

CT

XUSART3 RXPB1

DBG1

DB

G1PB3LED0

DBG2

DB

G2PB2SW0

PF4

PF

4USART2 TX

PF5

PF

5USART2 RX

PA2

PA

2TWI0 SDA

PA3

PA

3TWI0 SCL

PA4

PA

4SPI0 MOSI

PA5

PA

5SPI0 MISO

PA6

PA

6SPI0 SCK

PA7

PA

7SPI0 SS

GND

GN

D

PB0

PB

0USART3 TXCDC RX

PB1

PB

1USART3 RXCDC TX

PF2

PF

2

PF3

PF

3

PC0

PC

0

PC1

PC

1

PC2

PC

2

PC3

PC

3

GND

GN

D

(PA0)

(PA

0)XTALHF1

(PA1)

(PA

1)XTALHF2

PB2

PB

2SW0

PB3

PB

3LED0

VBUS

VB

US

VOFF

VO

FF

DBG3

DB

G3 PF6

DBG0

DB

G0 UPDI

GND

GN

D

VTG

VT

G

PD6

PD

6 AIN6

PD3

PD

3 AIN3 OP0 INN

PD2

PD

2 AIN2 OP0 OUT TCA0 WO2

PD1

PD

1 AIN1 OP0 INP TCA0 WO1

PD0

PD

0 AIN0 TCA0 WO0

PD7

PD

7 AIN7 OP1 INN

PD5

PD

5 AIN5 OP1 OUT

PD4

PD

4 AIN4 OP1 INP

GND

GN

D

PE3

PE

3 OP2 INN

PE2

PE

2 OP2 OUT

PE1

PE

1 OP2 INP

PE0

PE

0

PC7

PC

7

PC6

PC

6

PC5

PC

5

PC4

PC

4

GND

GN

D

PB5

PB

5

PB4

PB

4

(PF1)

(PF

1) XTAL32K2

(PF0)

(PF

0) XTAL32K1

DEBUGGERAVR128DB48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

MVIO

OPAMP

Shared pin

AVR128DB48Curiosity Nano

512 Using Pin HeadersThe edge connector footprint on AVR128DB48 Curiosity Nano has a staggered design where each hole is shifted 8mil (~02 mm) off-center The hole shift allows the use of regular 100 mil pin headers on the board without solderingOnce the pin headers are firmly in place they can be used in normal applications like pin sockets and prototypingboards without any issues

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 26

Figure 5-2 Attaching Pin-Headers to the Curiostiy Nano Board

Figure 5-3 Connecting to Curiosity Nano Base for Click boardstrade

Tip  Start at one end of the pin header and gradually insert the header along the length of the boardOnce all the pins are in place use a flat surface to push them in

Tip  For applications where the pin headers will be used permanently it is still recommended to solderthem in place

Important  Once the pin headers are in place they are hard to remove by hand Use a set of pliers andcarefully remove the pin headers to avoid damage to the pin headers and PCB

513 Multi-Voltage IO

The AVR128DB48 Curiosity Nano MCU has support for Multi-Voltage IO (MVIO) AVR128DB48 MVIO pins areconnected to the edge connector at PC0-PC7 MVIO pins are capable of regular IO-pin behavior

MVIO can be configured in one of two supply modesbull Single-Supply mode All IO pins including MVIO-capable pins are powered by VCC_TARGET By default

VCC_TARGET is connected to VDDIO2 through a 0-ohm resistor (R204)bull Dual-Supply mode MVIO-capable pins are powered by an external power supply connected to VDDIO2 Non-

MVIO pins are powered by VCC_TARGET

Dual-Supply mode allows MVIO-pins to be powered at different voltages than pins powered from VCC_TARGET

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 27

WARNINGThe absolute maximum external voltage range for the AVR128DB48 is 18ndash55V Applying a higher voltagemay cause permanent damage to the board

By default AVR128DB48 Curiosity Nano board is configured for single-supply mode To use Dual-Supply mode somehardware modifications are required

WARNINGBefore any hardware modifications are done make sure the board is disconnected from USB or externalpower

bull Disconnect resistor R204 connecting VDDIO2 to VCC_TARGETbull Connect a new power supply to VDDIO2 and ground at J212bull J212 does not have reverse polarity protection Make sure to match polarity between the power supply and

J212 Positive-polarity to J212-pin 1 and negative-polarity to J212-pin 2

The resistor R204 VDDIO2 and J212 can be seen in Figure 5-4

Figure 5-4 MVIO and VDDIO2 Connections

J212 R204

WARNINGApplying an external voltage to VDDIO2 pin without removing resistor R204 may cause permanentdamage to the board

WARNINGJ212 does not have reverse polarity protection Applying voltage to the wrong pin may cause permanentdamage to the board

514 Operational AmplifiersAVR128DB48 features three internal operational amplifiers with a flexible connection scheme using analogmultiplexers and resistor ladders This allows a large number of analog signal conditioning configurations manyrequiring no external components

Table 5-1 OPAMP Pin Connections

OPAMP Poisitive Input (INP) Negative Input (INN) Output (OUT)

OP0 PD1 PD3 PD2

OP1 PD4 PD7 PD5

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 28

continuedOPAMP Poisitive Input (INP) Negative Input (INN) Output (OUT)

OP2 PE1 PE3 PE2

For information about OPAMP on the edge connector and any shared functionality see 511 AVR128DB48 CuriosityNano Pinout

52 Peripherals

521 LEDThere is one yellow user LED available on the AVR128DB48 Curiosity Nano board that can be controlled by eitherGPIO or PWM The LED can be activated by driving the connected IO line to GND

Table 5-2 LED Connection

AVR128DB48 Pin Function Shared Functionality

PB3 Yellow LED0 Edge connector On-board debugger

522 Mechanical SwitchThe AVR128DB48 Curiosity Nano board has one mechanical switch This is a generic user-configurable switchWhen the switch is pressed it will drive the IO line to ground (GND)

Tip  There is no externally connected pull-up resistor on the switch To use the switch make sure that aninternal pull-up resistor is enabled on pin PB2

Table 5-3 Mechanical Switch

AVR128DB48 Pin Description Shared Functionality

PB2 User switch (SW0) Edge connector On-board debugger

523 32768 kHz Crystal

On the AVR128DB48 Curiosity Nano board is a mounted 32768 kHz crystal of type VMK3-9001-32K7680000 thecrystal is accurate to within 20 ppm Using the External 32768 kHz Crystal Oscillator (XOSC32K) module inAVR128DB48 with the mounted 32768 kHz crystal generates a clock signal that is significantly more accurate thanthe Internal 32768 kHz Ultra Low-Power Oscillator (OSC32K) module can generate alone With the Auto-Tunefeature the 32768 kHz can be used as a reference to improve the accuracy of the internal oscillator This is an idealreference clock for the Real-Time Counter module in AVR128DB48

The 32768 kHz crystal is connected to AVR128DB48 on PF0 and PF1 which are also routed to the edge connectorthrough two solder points PF0 and PF1 are disconnected from the edge connector by default to reduce the chanceof an external signal causing contention with the crystal and to remove excessive capacitance on the lines

Next to the 32768 kHz crystal is a cut-strap (J209) which can be used to measure the oscillator safety factor This isdone by cutting the strap and adding a 0402 SMD resistor across the strap More information about oscillatorallowance and safety factor can be found in the AN2648 application note from Microchip

Cut straps and solder points can be seen in Figure 5-5

Table 5-4 32768 kHz Crystal Connections

AVR128DB48 Pin Function Shared Functionality

PF0 XTAL32K1 (Crystal input) Edge connector

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 29

continuedAVR128DB48 Pin Function Shared Functionality

PF1 XTAL32K2 (Crystal output) Edge connector

PA0 and PA1 can be used as GPIO To do so some hardware modifications are required

WARNINGBefore any hardware modifications are done make sure the board is disconnected from the USB orexternal power

bull Disconnect the 32768 kHz crystal by cutting the two straps on the top side of the board next to the crystal(J207 J208) The crystal should be disconnected when using the pin as GPIO as this might harm the crystal

bull Connect the IO lines to the edge connector by placing solder blobs on the circular solder points marked PF0and PF1 on the bottom side of the board (J210 J211)

Figure 5-5 Crystal Connection and Cut Straps

Top side Boom side

J211

J210

J207

J20832768 kHz Crystal

J209

524 1600 MHz Crystal

On the AVR128DB48 Curiosity Nano board is a mounted 1600 MHz crystal of type VXM7-9040-16M0000000 thecrystal is accurate to within 20 ppm Using the External High-Frequency Crystal Oscillator (XOSCHF) module inAVR128DB48 with the mounted 1600 MHz crystal generates a clock signal that is significantly more accurate thanthe Internal High-Frequency Oscillator (OSCHF) module

The 1600 MHz crystal is connected to AVR128DB48 on PA0 and PA1 which are also routed to the edge connectorthrough two solder points PA0 and PA1 are disconnected from the edge connector by default to reduce the chanceof an external signal causing contention with the crystal and to remove excessive capacitance on the lines

Next to the 1600 MHz crystal is a cut-strap (J217) which can be used to measure the oscillator safety factor This isdone by cutting the strap and adding a 0402 SMD resistor across the strap More information about oscillatorallowance and safety factor can be found in the AN2648 application note from Microchip

Cut straps and solder points can be seen in Figure 5-6

Table 5-5 Crystal Connections

AVR128DB48 Pin Function Shared Functionality

PA0 XTALHF1 (Crystal input) Edge connector

PA1 XTALHF2 (Crystal output) Edge connector

PA0 and PA1 can be used as GPIO To do so some hardware modifications are required

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 30

WARNINGBefore any hardware modifications are done make sure the board is disconnected from USB or externalpower

bull Disconnect the 1600 MHz crystal by cutting the two straps on the top side of the board next to the crystal (J215J216) The crystal should be disconnected when using the pin as GPIO as this might harm the crystal

bull Connect the IO lines to the edge connector by placing solder blobs on the circular solder points marked PA0and PA1 on the bottom side of the board (J213 J214)

Figure 5-6 Crystal Connection and Cut Straps

Top side Boom side

J214

J213

J216

J2151600 MHzCrystal

J217

525 On-Board Debugger ImplementationAVR128DB48 Curiosity Nano features an on-board debugger that can be used to program and debug theAVR128DB48 using UPDI The on-board debugger also includes a virtual serial port (CDC) interface over UART anddebug GPIO Both MPLABreg X IDE and Atmel Studio 7 can be used as a front-end for the on-board debugger forprogramming and debugging MPLAB Data Visualizer can be used as a front-end for the CDC and debug GPIO

5251 On-Board Debugger ConnectionsThe table below shows the connections between the target and the debugger section All connections between thetarget and the debugger are tri-stated as long as the debugger is not actively using the interface Hence since thereare little contaminations of the signals the pins can be configured to anything the user wants

For further information on how to use the capabilities of the on-board debugger see 41 On-Board DebuggerOverview

Table 5-6 On-Board Debugger Connections

AVR128DB48Pin

Debugger Pin Function Shared Functionality

PB1 CDC TX UART RX (AVR128DB48 RX line) Edge connector

PB0 CDC RX UART TX (AVR128DB48 TX line) Edge connector

UPDI DBG0 UPDI Edge connector

PB3 DBG1 LED0Debug GPIO1 Edge connector

PB2 DBG2 SW0Debug GPIO0 Edge connector

PF6 DBG3 RESET Edge connector

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 31

6 Hardware Revision History and Known IssuesThis user guide is written to provide information about the latest available revision of the board The followingsections contain information about known issues a revision history of older revisions and how older revisions differfrom the latest revision

61 Identifying Product ID and RevisionThe revision and product identifier of the AVR128DB48 Curiosity Nano Board can be found in two ways Either byutilizing the MPLABreg X IDE or Atmel Studio 7 Kit Window or by looking at the sticker on the bottom side of the PCB

By connecting AVR128DB48 Curiosity Nano to a computer with MPLABreg X IDE or Atmel Studio 7 running the KitWindow will pop up The first six digits of the serial number which is listed under kit information contain the productidentifier and revision

Tip  The Kit Window can be opened in MPLABreg X IDE through the menu bar Window gt Kit Window

The same information can be found on the sticker on the bottom side of the PCB Most boards will have the identifierand revision printed in plain text as A09-nnnnrr where ldquonnnnrdquo is the identifier and ldquorrrdquo is the revision Boards withlimited space have a sticker with only a data matrix code containing the product identifier revision and serialnumber

The serial number string has the following format

nnnnrrssssssssss

n = product identifier

r = revision

s = serial number

The product identifier for AVR128DB48 Curiosity Nano is A09‑3372

62 Revision 3AVR128DB48 silicon revision A5 or later is mounted on this revision of the board

63 Revision 2Revision 2 is the initially released board revision

AVR128DB48 silicon revision A4 is mounted on this revision of the board

AVR128DB48 Curiosity NanoHardware Revision History and Known Issues

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 32

7 Document Revision HistoryDoc Rev Date Comments

A 092020 Initial document release

AVR128DB48 Curiosity NanoDocument Revision History

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 33

8 Appendix

81 SchematicFigure 8-1 AVR128DB48 Curiosity Nano Schematic

11

22

33

44

55

66

77

88

DD

CC

BB

AA

2 of

4

AV

R12

8DB

48 C

uri

osit

y N

ano

240

820

20A

VR

128D

B48

_Cur

iosi

ty_N

ano_

Targ

et_M

CU

Sch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA

Rev

isio

n

File

P

CB

Num

ber

PC

B

Rev

isio

n

Des

ign

ed w

ith

Dra

wn

By

ML

Shee

t Titl

e

Targ

et M

CU

Eng

inee

rA

H

A08

-305

71

Size

A3

A09

-337

22

Page

D

ateA

ltium

com

GN

D

VD

DIO

2

100n

C20

1

GN

D

PA5_

SPI0

_MIS

OPA

6_SP

I0_S

CK

PA7_

SPI0

_SS

PB0_

USA

RT

3_T

XPB

1_U

SAR

T3_

RX

PB2_

SW0_

DB

G2

PB3_

LE

D0_

DB

G1

PB

4P

B5

PC

0P

C1

PC

2

PC3

PC4PC5PC6PC7PD0_AIN0_TCA0_WO0PD1_AIN1_OP0_INP_TCA0_WO1PD2_AIN2_OP0_OUT_TCA0_WO2PD3_AIN3_OP0_INNPD4_AIN4_OP1_INP

PA3_TWI0_SCL

PA1_XTALHF2

UPDI_DBG0

PF5_USART2_RX

PF3

PF

2PF

1_X

TA

L32

K2

PF0_

XT

AL

32K

1P

E3_

OP

2_IN

NP

E2_

OP

2_O

UT

PE

1_O

P2_

INP

PE

0

PD5_

AIN

5_O

P1_

OU

TPD

6_A

IN6

PD7_

AIN

7_O

P1_

INN

GN

D

VC

C_T

AR

GE

T

100n

C20

2

GN

DV

CC

_TA

RG

ET

100n

C20

0

PF1_XTAL32K2

PF0_XTAL32K1

PA2_TWI0_SDA

PA0_XTALHF1

PF4_USART2_TX

PA4_SPI0_MOSI

GN

D

PA7_

SPI0

_SS

PA6_

SPI0

_SC

KPA

5_SP

I0_M

ISO

PA4_

SPI0

_MO

SIPA

3_T

WI0

_SC

LPA

2_T

WI0

_SD

A

PC

0P

C1

PC

2P

C3

PB

4P

B5

PD7_

AIN

7_O

P1_

INN

PD6_

AIN

6

PD2_

AIN

2_O

P0_

OU

T_T

CA

0_W

O2

PD1_

AIN

1_O

P0_

INP_

TC

A0_

WO

1PD

0_A

IN0_

TC

A0_

WO

0

PD5_

AIN

5_O

P1_

OU

TPD

4_A

IN4_

OP

1_IN

P

PD3_

AIN

3_O

P0_

INN

32K

Hz

Cry

stal

PB0_

USA

RT

3_T

XPB

1_U

SAR

T3_

RX

1kR203

US

ER

LE

D

VC

C_T

AR

GE

T

PF6_DBG3

PB2_SW0_DBG2

PB3_LED0_DBG1

GN

D

USE

R B

UT

TO

N

PB3_

LE

D0_

DB

G1

PB2_

SW0_

DB

G2

PB1_

USA

RT

3_R

XPB

0_U

SAR

T3_

TX

PF4_

USA

RT

2_T

XPF

5_U

SAR

T2_

RX

PF

2P

F3

PC

4P

C5

PC

6P

C7

1kR202

YELLOWLEDSML-D12Y1WT86

2 1

D200

TS604VM1-035CR13

4 2

SW20

0

GN

DV

CC

_ED

GE

GN

DG

ND

GN

DG

ND

UPD

I_D

BG

0P

F6_

DB

G3

J209

PB3_

LE

D0_

DB

G1

PB2_

SW0_

DB

G2

AV

R12

8DB

48

22u

FC

205

VC

C_E

DG

E

GN

D

DBG0

CDC_TXCDC_RX

DBG2

DBG1

DBG3

DBG2

DE

BU

GG

ER

CO

NN

EC

TIO

NS

DBG1

DBG3DBG0

VOFF

ID_SYS

ID_SYS

VOFF

TA

RG

ET

BU

LK

VC

C_T

AR

GE

TR

ESE

T P

ull

VB

US

CD

C R

X3

CD

C T

X4

DB

G1

5

DB

G2

6

0 T

X7

1 R

X8

2 SD

A9

3 S

CL

10

4 M

OSI

11

5 M

ISO

12

6 S

CK

13

7 S

S14

GN

D15

0 (T

X)

16

1 (R

X)

17

218

319

020

GN

D24

DB

G3

54

DB

G0

53

GN

D52

VC

C51

PW

M 3

46

AD

C 2

45

AD

C 1

44

AD

C 0

43

GN

D42

438

434

GN

D33

AD

C 7

50

AD

C 6

49

AD

C 5

48

PW

M 4

47

DE

BU

GG

ER

TAR

GE

T

ID2

VO

FF

55

121

222

323

025

126

227

328

429

530

631

732

535

636

737

539

640

741

RE

SER

VE

D1

VB

US

56

CN

AN

O56

-pin

edg

e co

nnec

tor

J200

J201

J203

J205

J206

J202

J204

PF1_

XT

AL

32K

2PF

0_X

TA

L32

K1

NC

XOUT

XIN

47kR200

AV

R12

8DB

48

UPD

I

GPI

O1

GPI

O0

RE

SET

DB

G0

DB

G1

DB

G2

DB

G3

Deb

ugge

r

CD

C T

X

CD

C R

X

UA

RT

3 R

X

UA

RT

3 T

X

VT

G1

8V -

55

VPB

3

PB

2

PF

6

UP

DI

PB

0

PB

1

Nam

eP

in

PE

3_O

P2_

INN

PE

2_O

P2_

OU

TP

E1_

OP

2_IN

PP

E0

J207

J208

PF

0P

F1

PA5

1

PA6

2

PA7

3

PB0

4

PB1

5

PB2

6

PB3

7

PB4

8

PB5

9

PC0

10

PC1

11

PC2

12

PC313

VDDIO214

GND15

PC416

PC517

PC618

PC719

PD020

PD121

PD222

PD323

PD424

PD5

25

PD6

26

PD7

27

AVDD

28

GND

29

PE0

30

PE1

31

PE2

32

PE3

33

XTAL32K1PF0

34

XTAL32K2PF1

35

PF2

36

PF337

PF438

PF539

PF640

UPDI41

VDD42

GND43

XTALHF1PA044

XTALHF2PA145

PA246

PA347

PA448

AV

R12

8DB

48-I

PT

U20

0

0RR204

GN

D

VC

C_T

AR

GE

T

VDDIO2

GND

J210

J211

82p

C20

48

2pC

203

GN

DG

ND

16M

Hz

Cry

stal

J217

XHFOUT

XHFIN

J214

J213

GN

D

J215

J216

PA0_XTALHF1

PA1_XTALHF2

PA0_

XT

AL

HF

1PA

1_X

TA

LH

F2

PA0

PA1

1 2

J212 N

M

15pF

C20

615

pFC

207

13

24 16

000

MH

zV

XM

7-90

40-1

6M00

0000

0TR

XC

201

GN

D32

768

kHz

VM

K3-

9001

-32K

7680

000T

R

XC

200

CDC_TX

CDC_RX

CD

C_T

XC

DC

_RX

Cry

stal

dat

ashe

et

Ccr

ysta

l = 9

pFm

ax E

SR

= 7

0kO

hmA

ccur

acy

plusmn20p

pm

AV

R48

DB

128

data

shee

tC

xin

= 4

0pF

(ty

pica

l val

ue)

Cxo

ut =

40

pF (

typi

cal v

alue

)C

lasymp1

( (1

40

pF)+

(1

40p

F)

)asymp

20p

FM

axim

um L

oad

= 1

25p

FM

axim

um E

SR =

50k

Ohm

Est

imat

ed C

pcb

= 0

5pF

Est

imat

ed lo

adC

= 2

(C

crys

tal-

Cpa

ra -

Cpc

b)C

= 2

(9p

F -

20

pF -

05

pF)

C =

13

0pF

Sele

cted

in d

esig

n af

ter

veri

fica

tion

C=

82

pF8

2pF

NO

TE

on

UA

RT

CD

C

RX

TX

onth

ehe

ader

deno

tes

the

inpu

tout

put d

irec

tion

of th

e si

gnal

resp

ectiv

e to

its

sou

rce

CD

C T

X is

out

put f

rom

the

DE

BU

GG

ER

C

DC

RX

is in

put t

o th

e D

EB

UG

GE

R

TX

is o

utpu

t fro

m th

e T

AR

GE

T d

evic

eR

X is

inpu

t to

the

TA

RG

ET

dev

ice

NO

TE

on

I2C

No

pull

-ups

on

boar

d P

ull-

ups

shou

ld b

em

ount

ed c

lose

to s

lave

dev

ice(

s)

WA

RN

ING

M

ake

sure

tore

mov

e R

204

befo

reap

plyi

ng p

ower

to J

212

Cry

stal

dat

ashe

et

Ccr

ysta

l = 1

2pF

max

ES

R =

60O

hmA

ccur

acy

plusmn30p

pm

AV

R48

DB

128

data

shee

tC

xin

= 4

0pF

(ty

pica

l val

ue)

Cxo

ut =

40

pF (

typi

cal v

alue

)C

lasymp1

( (1

40

pF)+

(1

40p

F)

)asymp

20p

FM

axim

um L

oad

= 1

25p

FM

axim

um E

SR =

k

Ohm

Est

imat

ed C

pcb

= 0

5pF

Est

imat

ed lo

adC

= 2

(C

crys

tal-

Cpa

ra -

Cpc

b)C

= 2

(12

pF -

20

pF -

05

pF)

C =

19

0pF

Sele

cted

in d

esig

n af

ter

veri

fica

tion

C=

15p

F1

5pF

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 34

11

22

33

44

55

66

77

88

DD

CC

BB

AA

3 of

4

AV

R12

8DB

48 C

uri

osit

y N

ano

2020

-06-

26A

VR

128D

B48

_Cur

iosi

ty_N

ano_

Deb

ugge

rSch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA

Rev

isio

n

Fil

eP

CB

Num

ber

PC

B

Rev

isio

n

Des

ign

ed w

ith

Dra

wn

By

ML

Shee

t Tit

le

Deb

ugge

r

Eng

inee

rA

H

A08

-305

71

Size

A3

A09

-337

22

Page

D

ateA

ltium

com

DE

BU

GG

ER

USB

MIC

RO

-B C

ON

NE

CT

OR

GN

D

USB

D_P

USB

D_N

100n

C10

7

100n

C10

8

1kR

107

VC

C_P

3V3

SRST

STA

TU

S_L

ED

SHIE

LD

VB

US

VC

C_P

3V3

GN

D

TP

100

Test

poin

t Arr

ay

12

34

56

78

910

TC

KT

DO

TM

SV

sup

TD

IG

ND

TR

STSR

STV

Tre

fG

ND

J102

GN

D

47u

F

C10

0

DBG0

DB

G0

21

GR

EE

N L

ED

SML

-P12

MT

T86

R

D10

0

VBUS

1

D-

2

D+

3

GND

5

SHIELD1

6

SHIELD2

7

ID

4

SHIELD3

8

SHIELD4

9 MU

-MB

0142

AB

2-26

9

J105

PAD

33

PA00

1

PA01

2

PA02

3

PA03

4

GND 10VDDANA 9

PA04

5

PA05

6

PA06

7

PA07

8

PA08 11

PA09 12

PA10 13

PA11 14

PA14 15

PA15 16

PA16

17

PA17

18

PA18

19

PA19

20

PA22

21

USB_SOFPA23

22

USB_DMPA24

23

USB_DPPA25

24

PA2725 RESETN26 PA2827 GND28 VDDCORE29 VDDIN30 SWDCLKPA3031 SWDIOPA3132

SAM

D21

E18

A-M

UT

U10

0

VOUT

1

VOUT

2

GND 3

EN

4

VIN

6

NC

5

EP 7

MIC

5528

-33

YM

TU

101

VC

C_P

3V3

GN

D

USB

D_P

USB

D_N

GN

D

1uC

106

VC

C_M

CU

_CO

RE

VC

C_P

3V3

VC

C_P

3V3

22u

FC

101

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

3

VC

C_P

3V3

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

4

VC

C_P

3V3

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

5

VC

C_P

3V3

GN

D

GN

D GN

D

GN

D

VC

C_E

DG

E

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

7

VC

C_P

3V3

GN

DDBG2

DB

G3_

CT

RL

S1_0

_TX

S1_1

_RX

S0_2

_TX

DA

CV

TG

_AD

C

RE

SER

VE

D

S0_3

_CL

K

DBG0_CTRL

CD

C_T

X_C

TR

L

BO

OT

DE

BU

GG

ER

PO

WE

RS

TA

TU

S L

ED

EN

1

BYP

6

VOUT

4

GND

2

VIN

3

NCADJ

5

GND

7

MIC

5353

U10

2

100n

C10

2

GN

D

GN

D

47kR101

27kR104 G

ND

33k

R10

6

22u

F

C10

3 GN

D

1kR

108

J100

VC

C_L

EV

EL

VC

C_R

EG

UL

AT

OR

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

6

VC

C_P

3V3

GN

DDBG1

CD

C_R

X

CD

C_T

X

DBG3

DBG1_CTRL

DE

BU

GG

ER

RE

GU

LA

TO

R

REG_ENABLE

RE

G_E

NA

BL

E

47kR103

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

47kR102

47kR105

SWC

LK

GN

D

47kR100 G

ND

DB

G2

S0_0

_RX

DB

G1_

CT

RL

DB

G0_

CT

RL

DB

G3

OP

EN

DR

AIN

TA

RG

ET

AD

JUST

AB

LE

RE

GU

LA

TO

R

SRST

DE

BU

GG

ER

TE

ST

PO

INT DBG2_CTRL

VO

FF

CD

C_R

X_C

TR

L

47kR109

DB

G1

CD

C_T

X_C

TR

L

CD

C_R

X_C

TR

L

SWC

LK

REG_ADJUST

DBG2_GPIO

DB

G3_

CT

RL

DB

G2_

CT

RL

UP

DI

UPD

I

GPI

O

GPI

O

RE

SET

Sign

al

DB

G0

DB

G1

DB

G2

DB

G3

ICS

PIn

terf

ace

DA

T

CL

K

GPI

O

MC

LR

DB

G3

CD

C T

X

CD

C R

X

UA

RT

RX

UA

RT

TX

UA

RT

RX

UA

RT

TX

TA

RG

ET

TA

RG

ET

1kR

110

VBUS_ADC

1

23

DM

N65

D8L

FB

Q10

1

VC

C-

-

ID_SYS

VOFF

1kR112

VC

C_P

3V3

VT

G_A

DC

DA

C

MIC

9416

3

VIN

B2

VOUT

A1

VIN

A2

EN

C2

GND

C1

VOUT

B1

U10

8

GN

D

ID_S

YS

VT

G_E

N

VTG_EN

VBUS_ADC

SWD

IO

ID_S

YS

TP

101

GN

DSW

DIO

VO

FF

47kR111 G

ND

ID P

IN

MC

3621

3

F10

0

VC

C_V

BU

S

VC

C_V

BU

S

VC

C_V

BU

S

J101

VC

C_T

AR

GE

T

47k

R11

3

CDC_TX

CDC_RX

Prog

ram

min

g co

nnec

tor

for

fact

ory

prog

ram

min

g of

DE

BU

GG

ER

MIC

5528

V

in 2

5V

to 5

5V

Vou

t F

ixed

33

VIm

ax 5

00m

AD

ropo

ut 2

60m

V

500

mA

MIC

5353

V

in 2

6V

to 6

VV

out

12

5V to

51

VIm

ax 5

00m

AD

ropo

ut (

typi

cal)

50m

V

150m

A 1

60m

V

500

mA

Acc

urac

y 2

in

itia

lT

herm

al s

hutd

own

and

curr

ent l

imit

Max

imum

out

put v

olta

ge is

lim

ited

by

the

inpu

t vol

tage

and

the

drop

out v

olta

ge in

the

regu

lato

r(V

max

= V

in -

dro

pout

)

J100

-

Cut

-str

ap u

sed

for

full

sep

arat

ion

of ta

rget

pow

er f

rom

the

leve

l shi

fter

s an

don

-boa

rd r

egul

ator

s-

For

cur

rent

mea

sure

men

ts u

sing

the

on-b

oard

pow

er s

uppl

y th

isst

rap

mus

t be

cut a

nd a

nam

met

er c

onne

cted

acr

oss

- F

or c

urre

nt m

easu

rem

ents

usi

ng a

n ex

tern

al p

ower

sup

ply

this

str

ap c

ould

be

cut f

or m

ore

accu

rate

mea

sure

men

ts L

eaka

ge b

ack

thro

ugh

the

swit

ch is

in th

e m

icro

am

pere

ran

ge

PT

C R

eset

tabl

e fu

se

Hol

d cu

rren

t 5

00m

AT

rip

curr

ent

100

0mA

Adj

usta

ble

outp

ut a

nd li

mit

atio

ns

- T

he D

EB

UG

GE

R c

an a

djus

t the

out

put v

olta

ge o

f th

e re

gula

tor

betw

een

125

V a

nd 5

1V

to th

e ta

rget

-

The

vol

tage

out

put i

s li

mit

ed b

y th

e in

put (

US

B)

whi

ch c

an v

ary

betw

een

440

V to

52

5V-

The

leve

l shi

fter

s ha

ve a

min

imal

vol

tage

leve

l of

165

V a

nd w

ill l

imit

the

min

imum

ope

ratin

g vo

ltage

all

owed

for

the

targ

et to

sti

ll a

llow

com

mun

icat

ion

- T

he M

IC94

163

has

a m

inim

al v

olat

ege

leve

l of

170

V a

nd w

ill l

imit

the

min

imum

vol

tage

del

iver

ed to

the

targ

et

- F

irm

war

e co

nfig

urat

ion

wil

l lim

it th

e vo

ltage

ran

ge to

be

wit

hin

the

the

targ

et s

peci

fica

tion

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 35

82 Assembly DrawingFigure 8-2 AVR128DB48 Curiosity Nano Assembly Drawing Top

+

Cb

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20001 PAC20002 COC200

PAC20101 PAC20102 COC201

PAC20201 PAC20202 COC202 PAC20301

PAC20302 COC203

PAC20401

PAC20402 COC204

PAC20502

PAC20501 COC205

PAC20601

PAC20602 COC206 PAC20701

PAC20702 COC207 PAD10002 PAD10001 COD100

PAD20002

PAD20001 COD200

PAF10002

PAF10001 COF100

PAJ10002 PAJ10001 COJ100

PAJ10101 PAJ10102 COJ101

PAJ10201

PAJ10202

PAJ10203

PAJ10204

PAJ10205

PAJ10206 COJ102

PAJ10506

PAJ10507 PAJ10509

PAJ10508 PAJ105010

PAJ105011 PAJ10505

PAJ10504

PAJ10503

PAJ10502

PAJ10501

PAJ10500

COJ105

PAJ200056 PAJ200053

PAJ200028 PAJ20002 PAJ20001

PAJ200051 PAJ200050 PAJ200052 PAJ200049 PAJ200048 PAJ200047 PAJ200046 PAJ200045 PAJ200044 PAJ200043 PAJ200042 PAJ200041 PAJ200040 PAJ200039 PAJ200038 PAJ200037 PAJ200036 PAJ200035 PAJ200034 PAJ200033 PAJ200032 PAJ200031 PAJ200030 PAJ200029

PAJ20003 PAJ20004 PAJ20005 PAJ20006 PAJ20007 PAJ20008 PAJ20009 PAJ200010 PAJ200011 PAJ200012 PAJ200013 PAJ200014 PAJ200015 PAJ200016 PAJ200017 PAJ200018 PAJ200019 PAJ200020 PAJ200021 PAJ200022 PAJ200023 PAJ200026 PAJ200025 PAJ200024 PAJ200027

PAJ200054 PAJ200055 PAJ20000

COJ200

PAJ20102 PAJ20101 COJ201

PAJ20202 PAJ20201 COJ202

PAJ20302 PAJ20301 COJ203

PAJ20402 PAJ20401 COJ204

PAJ20502 PAJ20501 COJ205

PAJ20602 PAJ20601 COJ206 PAJ20702 PAJ20701 COJ207

PAJ20802 PAJ20801 COJ208

PAJ20902 PAJ20901 COJ209

PAJ21001 PAJ21002 PAJ21005 COJ210

PAJ21102 PAJ21101 PAJ21105 COJ211

PAJ21202 PAJ21201 COJ212

PAJ21301 PAJ21302 PAJ21305 COJ213

PAJ21401 PAJ21402 PAJ21405 COJ214

PAJ21502 PAJ21501 COJ215

PAJ21602 PAJ21601 COJ216 PAJ21702 PAJ21701 COJ217

COLABEL1

PAQ10101 PAQ10102 PAQ10103 PAQ10100

COQ101 PAR10002

PAR10001 COR100 PAR10101 PAR10102 COR101

PAR10202 PAR10201 COR102

PAR10302 PAR10301 COR103

PAR10401 PAR10402 COR104

PAR10502

PAR10501 COR105

PAR10601 PAR10602 COR106

PAR10702 PAR10701 COR107

PAR10801

PAR10802 COR108

PAR10901 PAR10902 COR109

PAR11001 PAR11002 COR110

PAR11101 PAR11102 COR111

PAR11201 PAR11202 COR112

PAR11302 PAR11301 COR113

PAR20001 PAR20002 COR200 PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203 PAR20401 PAR20402 COR204

PASW20003

PASW20004 PASW20002

PASW20001 COSW200

PATP10001 COTP100

PATP10101 COTP101 PAU100033

PAU100032 PAU100031 PAU100030 PAU100029 PAU100028 PAU100027 PAU100026 PAU100025 PAU100024

PAU100023

PAU100022

PAU100021

PAU100020

PAU100019

PAU100018

PAU100017 PAU100016 PAU100015 PAU100014 PAU100013 PAU100012 PAU100011 PAU100010

PAU10001

PAU10002

PAU10003

PAU10004

PAU10005

PAU10006

PAU10007

PAU10008 PAU10009

COU100

PAU10107

PAU10104 PAU10105 PAU10106

PAU10103 PAU10102 PAU10101 PAU10100 COU101 PAU10207

PAU10204 PAU10205

PAU10206

PAU10203 PAU10202

PAU10201

COU102

PAU10306

PAU10305 PAU10304 PAU10303

PAU10302 PAU10301 PAU10300

COU103

PAU10406

PAU10405 PAU10404 PAU10403

PAU10402 PAU10401 PAU10400

COU104

PAU10506

PAU10505 PAU10504 PAU10503

PAU10502 PAU10501 PAU10500

COU105

PAU10606

PAU10605 PAU10604 PAU10603

PAU10602 PAU10601 PAU10600

COU106

PAU10706

PAU10705 PAU10704 PAU10703

PAU10702 PAU10701 PAU10700

COU107

PAU1080A1 PAU1080A2

PAU1080B1 PAU1080B2

PAU1080C1 PAU1080C2 COU108

PAU20001 PAU20002 PAU20003 PAU20004 PAU20005 PAU20006 PAU20007 PAU20008 PAU20009 PAU200010 PAU200011 PAU200012 PAU200013 PAU200014 PAU200015 PAU200016 PAU200017 PAU200018 PAU200019 PAU200020 PAU200021 PAU200022 PAU200023 PAU200024 PAU200025 PAU200026 PAU200027 PAU200028 PAU200029 PAU200030 PAU200031 PAU200032 PAU200033 PAU200034 PAU200035 PAU200036

PAU200037 PAU200038 PAU200039 PAU200040 PAU200041 PAU200042 PAU200043 PAU200044 PAU200045 PAU200046 PAU200047 PAU200048

COU200

PAXC20001

PAXC20002 COXC200

PAXC20101 PAXC20102

PAXC20103 PAXC20104 COXC201

Figure 8-3 AVR128DB48 Curiosity Nano Assembly Drawing Bottom

tcR

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20001 PAC20002 COC200

PAC20101 PAC20102 COC201

PAC20201 PAC20202 COC202 PAC20301

PAC20302 COC203

PAC20401

PAC20402 COC204

PAC20502

PAC20501 COC205

PAC20601

PAC20602 COC206 PAC20701

PAC20702 COC207 PAD10002 PAD10001 COD100

PAD20002

PAD20001 COD200

PAF10002

PAF10001 COF100

PAJ10002 PAJ10001 COJ100

PAJ10101 PAJ10102 COJ101

PAJ10201

PAJ10202

PAJ10203

PAJ10204

PAJ10205

PAJ10206 COJ102

PAJ10506

PAJ10507 PAJ10509

PAJ10508 PAJ105010

PAJ105011 PAJ10505

PAJ10504

PAJ10503

PAJ10502

PAJ10501

PAJ10500

COJ105

PAJ200056 PAJ200053

PAJ200028 PAJ20002 PAJ20001

PAJ200051 PAJ200050 PAJ200052 PAJ200049 PAJ200048 PAJ200047 PAJ200046 PAJ200045 PAJ200044 PAJ200043 PAJ200042 PAJ200041 PAJ200040 PAJ200039 PAJ200038 PAJ200037 PAJ200036 PAJ200035 PAJ200034 PAJ200033 PAJ200032 PAJ200031 PAJ200030 PAJ200029

PAJ20003 PAJ20004 PAJ20005 PAJ20006 PAJ20007 PAJ20008 PAJ20009 PAJ200010 PAJ200011 PAJ200012 PAJ200013 PAJ200014 PAJ200015 PAJ200016 PAJ200017 PAJ200018 PAJ200019 PAJ200020 PAJ200021 PAJ200022 PAJ200023 PAJ200026 PAJ200025 PAJ200024 PAJ200027

PAJ200054 PAJ200055 PAJ20000

COJ200

PAJ20102 PAJ20101 COJ201

PAJ20202 PAJ20201 COJ202

PAJ20302 PAJ20301 COJ203

PAJ20402 PAJ20401 COJ204

PAJ20502 PAJ20501 COJ205

PAJ20602 PAJ20601 COJ206 PAJ20702 PAJ20701 COJ207

PAJ20802 PAJ20801 COJ208

PAJ20902 PAJ20901 COJ209

PAJ21001 PAJ21002 PAJ21005 COJ210

PAJ21102 PAJ21101 PAJ21105 COJ211

PAJ21202 PAJ21201 COJ212

PAJ21301 PAJ21302 PAJ21305 COJ213

PAJ21401 PAJ21402 PAJ21405 COJ214

PAJ21502 PAJ21501 COJ215

PAJ21602 PAJ21601 COJ216 PAJ21702 PAJ21701 COJ217

COLABEL1

PAQ10101 PAQ10102 PAQ10103 PAQ10100

COQ101 PAR10002

PAR10001 COR100 PAR10101 PAR10102 COR101

PAR10202 PAR10201 COR102

PAR10302 PAR10301 COR103

PAR10401 PAR10402 COR104

PAR10502

PAR10501 COR105

PAR10601 PAR10602 COR106

PAR10702 PAR10701 COR107

PAR10801

PAR10802 COR108

PAR10901 PAR10902 COR109

PAR11001 PAR11002 COR110

PAR11101 PAR11102 COR111

PAR11201 PAR11202 COR112

PAR11302 PAR11301 COR113

PAR20001 PAR20002 COR200 PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203 PAR20401 PAR20402 COR204

PASW20003

PASW20004 PASW20002

PASW20001 COSW200

PATP10001 COTP100

PATP10101 COTP101 PAU100033

PAU100032 PAU100031 PAU100030 PAU100029 PAU100028 PAU100027 PAU100026 PAU100025 PAU100024

PAU100023

PAU100022

PAU100021

PAU100020

PAU100019

PAU100018

PAU100017 PAU100016 PAU100015 PAU100014 PAU100013 PAU100012 PAU100011 PAU100010

PAU10001

PAU10002

PAU10003

PAU10004

PAU10005

PAU10006

PAU10007

PAU10008 PAU10009

COU100

PAU10107

PAU10104 PAU10105 PAU10106

PAU10103 PAU10102 PAU10101 PAU10100 COU101 PAU10207

PAU10204 PAU10205

PAU10206

PAU10203 PAU10202

PAU10201

COU102

PAU10306

PAU10305 PAU10304 PAU10303

PAU10302 PAU10301 PAU10300

COU103

PAU10406

PAU10405 PAU10404 PAU10403

PAU10402 PAU10401 PAU10400

COU104

PAU10506

PAU10505 PAU10504 PAU10503

PAU10502 PAU10501 PAU10500

COU105

PAU10606

PAU10605 PAU10604 PAU10603

PAU10602 PAU10601 PAU10600

COU106

PAU10706

PAU10705 PAU10704 PAU10703

PAU10702 PAU10701 PAU10700

COU107

PAU1080A1 PAU1080A2

PAU1080B1 PAU1080B2

PAU1080C1 PAU1080C2 COU108

PAU20001 PAU20002 PAU20003 PAU20004 PAU20005 PAU20006 PAU20007 PAU20008 PAU20009 PAU200010 PAU200011 PAU200012 PAU200013 PAU200014 PAU200015 PAU200016 PAU200017 PAU200018 PAU200019 PAU200020 PAU200021 PAU200022 PAU200023 PAU200024 PAU200025 PAU200026 PAU200027 PAU200028 PAU200029 PAU200030 PAU200031 PAU200032 PAU200033 PAU200034 PAU200035 PAU200036

PAU200037 PAU200038 PAU200039 PAU200040 PAU200041 PAU200042 PAU200043 PAU200044 PAU200045 PAU200046 PAU200047 PAU200048

COU200

PAXC20001

PAXC20002 COXC200

PAXC20101 PAXC20102

PAXC20103 PAXC20104 COXC201

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 36

83 Curiosity Nano Base for Click boardstrade

Figure 8-4 AVR128DB48 Curiosity Nano Pinout Mapping

US

B

DE

BU

GG

ER

AV

R1

28

DB

48

SW

0

LE

D0

PS

LE

DNC

NC

ID

ID

CDC RX

CDCRX

USART3 TX

PB0

CDC TX

CDCTX

USART3 RX

PB1

DBG1

DBG1

PB3

LED0

DBG2

DBG2

PB2

SW0

PF4

PF4

USART2 TX

PF5

PF5

USART2 RX

PA2

PA2

TWI0 SDA

PA3

PA3

TWI0 SCL

PA4

PA4

SPI0 MOSI

PA5

PA5

SPI0 MISO

PA6

PA6

SPI0 SCK

PA7

PA7

SPI0 SS

GND

GND

PB0

PB0

USART3 TX

CDC RX

PB1

PB1

USART3 RX

CDC TX

PF2

PF2

PF3

PF3

PC0

PC0

PC1

PC1

PC2

PC2

PC3

PC3

GND

GND

(PA0)

(PA0)

XTALHF1

(PA1)

(PA1)

XTALHF2

PB2

PB2

SW0

PB3

PB3

LED0

VBUS

VBUS

VOFF

VOFF

DBG3

DBG3

PF6

DBG0

DBG0

UPDI

GND

GND

VTG

VTG

PD6

PD6

AIN6

PD3

PD3

AIN3

OP0 INN

PD2

PD2

AIN2

OP0 OUT

TCA0 WO2

PD1

PD1

AIN1

OP0 INP

TCA0 WO1

PD0

PD0

AIN0

TCA0 WO0

PD7

PD7

AIN7

OP1 INN

PD5

PD5

AIN5

OP1 OUT

PD4

PD4

AIN4

OP1 INP

GND

GND

PE3

PE3

OP2 INN

PE2

PE2

OP2 OUT

PE1

PE1

OP2 INP

PE0

PE0

PC7

PC7

PC6

PC6

PC5

PC5

PC4

PC4

GND

GND

PB5

PB5

PB4

PB4

(PF1)

(PF1)

XTAL32K2

(PF0)

(PF0)

XTAL32K1

DE

BU

GG

ER

AV

R1

28

DB

48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

MVIO

OPAMP

Shared pin

AV

R1

28

DB

48

Cu

rio

sity

Na

no

1

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

2

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

3

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

Xp

lain

ed

Pro

Ext

en

sio

nE

XT

11

2

19

20

Cu

rio

sity

Na

no

Ba

sefo

r cl

ick

bo

ard

sT

M

PD4

PD0

PD6

PD3

PA7

PF5

PA6

PF4

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

PD5

PD1

PF3

PF2

PE2

PB1

PA6

PB0

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

PD7

PD2

PE1

PE0

PE3

PF5

PA6

PF4

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

ID

GND

PD5

PD7

PF3

PE1

PD1

PD2

PF2

PE3

PA2

PA3

PB1

PB0

PE2

PA4

PA5

PA6

GND

+33V

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 37

84 Disconnecting the On-board DebuggerThe on-board debugger and level shifters can be completely disconnected from the AVR128DB48

The block diagram below shows all connections between the debugger and the AVR128DB48 The rounded boxesrepresent connections to the board edge The signal names shown are also printed in silkscreen on the bottom sideof the board

To disconnect the debugger cut the straps shown in Figure 8-6

Attention  Cutting the GPIO straps to the on-board debugger will disable the virtual serial portprogramming debugging and data streaming Cutting the power supply strap will disconnect the on-boardpower supply

Tip  Any connection that is cut can be reconnected using solder Alternatively a 0Ω 0402 resistor can bemounted

Tip  When the debugger is disconnected an external debugger can be connected to holes shown in Figure 8-6 Details about connecting an external debugger are described in 46 Connecting ExternalDebuggers

Figure 8-5  On-Board Debugger Connections Block Diagram

DE

BU

GG

ER

TARGETLevel-Shift

PA04PA06PA07PA08PA16PA00PA01

USB

DIR x 5

VCC_P3V3

VBUS

VC

C_L

EV

EL

VC

C_T

AR

GE

TDBG0DBG1DBG2DBG3CDC TXCDC RX

CDC RX

CDC TX

DBG3

DBG2

DBG1

DBG0

GPIO straps

LDO

VOFF

LDO

VBUS VTG

VCC_EDGE

Power Supply strap Target Power strap

UART RXUART TX

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 38

Figure 8-6 On-Board Debugger Connection Cut Straps

GPIO straps (bottom side) Power Supply strap (top side)

85 Getting Started with IARIAR Embedded Workbenchreg for AVRreg is a proprietary high-efficiency compiler not based on GCC Programming anddebugging of AVR128DB48 Curiosity Nano is supported in IARtrade Embedded Workbench for AVR using the Atmel-ICEinterface Some initial settings must be set up in the project to get the programming and debugging to work

The following steps will explain how to get your project ready for programming and debugging

1 Make sure you have opened the project you want to configure Open the OPTIONS dialog for the project2 In the category General Options select the Target tab Select the device for the project or if not listed the

core of the device as shown in Figure 8-73 In the category Debugger select the Setup tab Select Atmel-ICE as the driver as shown in Figure 8-84 In the category Debugger gt Atmel-ICE select the Atmel-ICE 1 tab Select UPDI as the interface and

optionally select the UPDI frequency as shown in Figure 8-9

Info  If the selection of Debug Port (mentioned in step 4) is grayed out the interface is preselected andthe user can skip this configuration step

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 39

Figure 8-7 Select Target Device

Figure 8-8 Select Debugger

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 40

Figure 8-9 Configure Interface

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 41

The Microchip Website

Microchip provides online support via our website at wwwmicrochipcom This website is used to make files andinformation easily available to customers Some of the content available includes

bull Product Support ndash Data sheets and errata application notes and sample programs design resources userrsquosguides and hardware support documents latest software releases and archived software

bull General Technical Support ndash Frequently Asked Questions (FAQs) technical support requests onlinediscussion groups Microchip design partner program member listing

bull Business of Microchip ndash Product selector and ordering guides latest Microchip press releases listing ofseminars and events listings of Microchip sales offices distributors and factory representatives

Product Change Notification Service

Microchiprsquos product change notification service helps keep customers current on Microchip products Subscribers willreceive email notification whenever there are changes updates revisions or errata related to a specified productfamily or development tool of interest

To register go to wwwmicrochipcompcn and follow the registration instructions

Customer Support

Users of Microchip products can receive assistance through several channels

bull Distributor or Representativebull Local Sales Officebull Embedded Solutions Engineer (ESE)bull Technical Support

Customers should contact their distributor representative or ESE for support Local sales offices are also available tohelp customers A listing of sales offices and locations is included in this document

Technical support is available through the website at wwwmicrochipcomsupport

Microchip Devices Code Protection Feature

Note the following details of the code protection feature on Microchip devices

bull Microchip products meet the specifications contained in their particular Microchip Data Sheetbull Microchip believes that its family of products is secure when used in the intended manner and under normal

conditionsbull There are dishonest and possibly illegal methods being used in attempts to breach the code protection features

of the Microchip devices We believe that these methods require using the Microchip products in a manneroutside the operating specifications contained in Microchiprsquos Data Sheets Attempts to breach these codeprotection features most likely cannot be accomplished without violating Microchiprsquos intellectual property rights

bull Microchip is willing to work with any customer who is concerned about the integrity of its codebull Neither Microchip nor any other semiconductor manufacturer can guarantee the security of its code Code

protection does not mean that we are guaranteeing the product is ldquounbreakablerdquo Code protection is constantlyevolving We at Microchip are committed to continuously improving the code protection features of our productsAttempts to break Microchiprsquos code protection feature may be a violation of the Digital Millennium Copyright ActIf such acts allow unauthorized access to your software or other copyrighted work you may have a right to suefor relief under that Act

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 42

Legal Notice

Information contained in this publication is provided for the sole purpose of designing with and using Microchipproducts Information regarding device applications and the like is provided only for your convenience and may besuperseded by updates It is your responsibility to ensure that your application meets with your specifications

THIS INFORMATION IS PROVIDED BY MICROCHIP ldquoAS ISrdquo MICROCHIP MAKES NO REPRESENTATIONS ORWARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED WRITTEN OR ORAL STATUTORY OROTHERWISE RELATED TO THE INFORMATION INCLUDING BUT NOT LIMITED TO ANY IMPLIEDWARRANTIES OF NON-INFRINGEMENT MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSEOR WARRANTIES RELATED TO ITS CONDITION QUALITY OR PERFORMANCE

IN NO EVENT WILL MICROCHIP BE LIABLE FOR ANY INDIRECT SPECIAL PUNITIVE INCIDENTAL ORCONSEQUENTIAL LOSS DAMAGE COST OR EXPENSE OF ANY KIND WHATSOEVER RELATED TO THEINFORMATION OR ITS USE HOWEVER CAUSED EVEN IF MICROCHIP HAS BEEN ADVISED OF THEPOSSIBILITY OR THE DAMAGES ARE FORESEEABLE TO THE FULLEST EXTENT ALLOWED BY LAWMICROCHIPS TOTAL LIABILITY ON ALL CLAIMS IN ANY WAY RELATED TO THE INFORMATION OR ITS USEWILL NOT EXCEED THE AMOUNT OF FEES IF ANY THAT YOU HAVE PAID DIRECTLY TO MICROCHIP FORTHE INFORMATION Use of Microchip devices in life support andor safety applications is entirely at the buyerrsquos riskand the buyer agrees to defend indemnify and hold harmless Microchip from any and all damages claims suits orexpenses resulting from such use No licenses are conveyed implicitly or otherwise under any Microchip intellectualproperty rights unless otherwise stated

Trademarks

The Microchip name and logo the Microchip logo Adaptec AnyRate AVR AVR logo AVR Freaks BesTimeBitCloud chipKIT chipKIT logo CryptoMemory CryptoRF dsPIC FlashFlex flexPWR HELDO IGLOO JukeBloxKeeLoq Kleer LANCheck LinkMD maXStylus maXTouch MediaLB megaAVR Microsemi Microsemi logo MOSTMOST logo MPLAB OptoLyzer PackeTime PIC picoPower PICSTART PIC32 logo PolarFire Prochip DesignerQTouch SAM-BA SenGenuity SpyNIC SST SST Logo SuperFlash Symmetricom SyncServer TachyonTempTrackr TimeSource tinyAVR UNIO Vectron and XMEGA are registered trademarks of Microchip TechnologyIncorporated in the USA and other countries

APT ClockWorks The Embedded Control Solutions Company EtherSynch FlashTec Hyper Speed ControlHyperLight Load IntelliMOS Libero motorBench mTouch Powermite 3 Precision Edge ProASIC ProASIC PlusProASIC Plus logo Quiet-Wire SmartFusion SyncWorld Temux TimeCesium TimeHub TimePictra TimeProviderVite WinPath and ZL are registered trademarks of Microchip Technology Incorporated in the USA

Adjacent Key Suppression AKS Analog-for-the-Digital Age Any Capacitor AnyIn AnyOut BlueSky BodyComCodeGuard CryptoAuthentication CryptoAutomotive CryptoCompanion CryptoController dsPICDEMdsPICDEMnet Dynamic Average Matching DAM ECAN EtherGREEN In-Circuit Serial Programming ICSPINICnet Inter-Chip Connectivity JitterBlocker KleerNet KleerNet logo memBrain Mindi MiWi MPASM MPFMPLAB Certified logo MPLIB MPLINK MultiTRAK NetDetach Omniscient Code Generation PICDEMPICDEMnet PICkit PICtail PowerSmart PureSilicon QMatrix REAL ICE Ripple Blocker SAM-ICE Serial QuadIO SMART-IS SQI SuperSwitcher SuperSwitcher II Total Endurance TSHARC USBCheck VariSenseViewSpan WiperLock Wireless DNA and ZENA are trademarks of Microchip Technology Incorporated in the USAand other countries

SQTP is a service mark of Microchip Technology Incorporated in the USA

The Adaptec logo Frequency on Demand Silicon Storage Technology and Symmcom are registered trademarks ofMicrochip Technology Inc in other countries

GestIC is a registered trademark of Microchip Technology Germany II GmbH amp Co KG a subsidiary of MicrochipTechnology Inc in other countries

All other trademarks mentioned herein are property of their respective companiescopy 2020 Microchip Technology Incorporated Printed in the USA All Rights Reserved

ISBN 978-1-5224-6667-3

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 43

Quality Management SystemFor information regarding Microchiprsquos Quality Management Systems please visit wwwmicrochipcomquality

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 44

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupportwwwmicrochipcomsupportWeb AddresswwwmicrochipcomAtlantaDuluth GATel 678-957-9614Fax 678-957-1455Austin TXTel 512-257-3370BostonWestborough MATel 774-760-0087Fax 774-760-0088ChicagoItasca ILTel 630-285-0071Fax 630-285-0075DallasAddison TXTel 972-818-7423Fax 972-818-2924DetroitNovi MITel 248-848-4000Houston TXTel 281-894-5983IndianapolisNoblesville INTel 317-773-8323Fax 317-773-5453Tel 317-536-2380Los AngelesMission Viejo CATel 949-462-9523Fax 949-462-9608Tel 951-273-7800Raleigh NCTel 919-844-7510New York NYTel 631-435-6000San Jose CATel 408-735-9110Tel 408-436-4270Canada - TorontoTel 905-695-1980Fax 905-695-2078

Australia - SydneyTel 61-2-9868-6733China - BeijingTel 86-10-8569-7000China - ChengduTel 86-28-8665-5511China - ChongqingTel 86-23-8980-9588China - DongguanTel 86-769-8702-9880China - GuangzhouTel 86-20-8755-8029China - HangzhouTel 86-571-8792-8115China - Hong Kong SARTel 852-2943-5100China - NanjingTel 86-25-8473-2460China - QingdaoTel 86-532-8502-7355China - ShanghaiTel 86-21-3326-8000China - ShenyangTel 86-24-2334-2829China - ShenzhenTel 86-755-8864-2200China - SuzhouTel 86-186-6233-1526China - WuhanTel 86-27-5980-5300China - XianTel 86-29-8833-7252China - XiamenTel 86-592-2388138China - ZhuhaiTel 86-756-3210040

India - BangaloreTel 91-80-3090-4444India - New DelhiTel 91-11-4160-8631India - PuneTel 91-20-4121-0141Japan - OsakaTel 81-6-6152-7160Japan - TokyoTel 81-3-6880- 3770Korea - DaeguTel 82-53-744-4301Korea - SeoulTel 82-2-554-7200Malaysia - Kuala LumpurTel 60-3-7651-7906Malaysia - PenangTel 60-4-227-8870Philippines - ManilaTel 63-2-634-9065SingaporeTel 65-6334-8870Taiwan - Hsin ChuTel 886-3-577-8366Taiwan - KaohsiungTel 886-7-213-7830Taiwan - TaipeiTel 886-2-2508-8600Thailand - BangkokTel 66-2-694-1351Vietnam - Ho Chi MinhTel 84-28-5448-2100

Austria - WelsTel 43-7242-2244-39Fax 43-7242-2244-393Denmark - CopenhagenTel 45-4485-5910Fax 45-4485-2829Finland - EspooTel 358-9-4520-820France - ParisTel 33-1-69-53-63-20Fax 33-1-69-30-90-79Germany - GarchingTel 49-8931-9700Germany - HaanTel 49-2129-3766400Germany - HeilbronnTel 49-7131-72400Germany - KarlsruheTel 49-721-625370Germany - MunichTel 49-89-627-144-0Fax 49-89-627-144-44Germany - RosenheimTel 49-8031-354-560Israel - RarsquoananaTel 972-9-744-7705Italy - MilanTel 39-0331-742611Fax 39-0331-466781Italy - PadovaTel 39-049-7625286Netherlands - DrunenTel 31-416-690399Fax 31-416-690340Norway - TrondheimTel 47-72884388Poland - WarsawTel 48-22-3325737Romania - BucharestTel 40-21-407-87-50Spain - MadridTel 34-91-708-08-90Fax 34-91-708-08-91Sweden - GothenbergTel 46-31-704-60-40Sweden - StockholmTel 46-8-5090-4654UK - WokinghamTel 44-118-921-5800Fax 44-118-921-5820

Worldwide Sales and Service

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 45

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Board Overview
      • 2 Getting Started
        • 21 Quick Start
          • 211 Driver Installation
          • 212 Kit Window
          • 213 MPLABreg X IDE Device Family Packs
          • 214 Atmel Studio 7 Device Family Pack
            • 22 Design Documentation and Relevant Links
              • 3 Preprogrammed Application
              • 4 Curiosity Nano
                • 41 On-Board Debugger Overview
                  • 411 Debugger
                  • 412 Virtual Serial Port (CDC)
                    • 4121 Overview
                    • 4122 Operating System Support
                    • 4123 Limitations
                    • 4124 Signaling
                    • 4125 Advanced Use
                      • 413 Mass Storage Device
                        • 4131 Mass Storage Device Implementation
                        • 4132 Limitations of Drag-and-Drop Programming
                        • 4133 Special Commands
                          • 414 Data Gateway Interface (DGI)
                            • 4141 Debug GPIO
                            • 4142 Timestamping
                                • 42 Curiosity Nano Standard Pinout
                                • 43 Power Supply
                                  • 431 Target Regulator
                                  • 432 External Supply
                                  • 433 VBUS Output Pin
                                  • 434 Power Supply Exceptions
                                    • 44 Low-Power Measurement
                                    • 45 Programming External Microcontrollers
                                      • 451 Supported Devices
                                      • 452 Software Configuration
                                      • 453 Hardware Modifications
                                      • 454 Connecting to External Microcontrollers
                                        • 46 Connecting External Debuggers
                                          • 5 Hardware User Guide
                                            • 51 Connectors
                                              • 511 AVR128DB48 Curiosity Nano Pinout
                                              • 512 Using Pin Headers
                                              • 513 Multi-Voltage IO
                                              • 514 Operational Amplifiers
                                                • 52 Peripherals
                                                  • 521 LED
                                                  • 522 Mechanical Switch
                                                  • 523 32768 kHz Crystal
                                                  • 524 1600 MHz Crystal
                                                  • 525 On-Board Debugger Implementation
                                                    • 5251 On-Board Debugger Connections
                                                      • 6 Hardware Revision History and Known Issues
                                                        • 61 Identifying Product ID and Revision
                                                        • 62 Revision 3
                                                        • 63 Revision 2
                                                          • 7 Document Revision History
                                                          • 8 Appendix
                                                            • 81 Schematic
                                                            • 82 Assembly Drawing
                                                            • 83 Curiosity Nano Base for Click boardstrade
                                                            • 84 Disconnecting the On-board Debugger
                                                            • 85 Getting Started with IAR
                                                              • The Microchip Website
                                                              • Product Change Notification Service
                                                              • Customer Support
                                                              • Microchip Devices Code Protection Feature
                                                              • Legal Notice
                                                              • Trademarks
                                                              • Quality Management System
                                                              • Worldwide Sales and Service
Page 14: AVR128DB48 Curiosity Nano Hardware User Guideww1.microchip.com/downloads/en/DeviceDoc/AVR128DB48-Curiosit… · 4. Curiosity Nano Curiosity Nano is an evaluation platform of small

Figure 4-2 Monitoring Debug GPIO with MPLABreg Data Visualizer

Debug GPIO channels are timestamped so the resolution of DGI GPIO events is determined by the resolution of theDGI timestamp module

Important  Although bursts of higher-frequency signals can be captured the useful frequency range ofsignals for which debug GPIO can be used is up to about 2 kHz Attempting to capture signals above thisfrequency will result in data saturation and overflow which may cause the DGI session to be aborted

4142 TimestampingDGI sources are timestamped as they are captured by the debugger The timestamp counter implemented in theCuriosity Nano debugger increments at 2 MHz frequency providing a timestamp resolution of a half microsecond

42 Curiosity Nano Standard PinoutThe 12 edge connections closest to the USB connector on Curiosity Nano boards have a standardized pinout Theprogramdebug pins have different functions depending on the target programming interface as shown in the tableand figure below

Table 4-3 Curiosity Nano Standard Pinout

Debugger Signal Target MCU Description

ID mdash ID line for extensions

CDC TX UART RX USB CDC TX line

CDC RX UART TX USB CDC RX line

DBG0 UPDI Debug data line

DBG1 GPIO1 debug GPIO1

DBG2 GPIO0 debug GPIO0

DBG3 RESET Reset line

NC mdash No connect

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 14

continuedDebugger Signal Target MCU Description

VBUS mdash VBUS voltage for external use

VOFF mdash Voltage Off input Disables the target regulator andtarget voltage when pulled low

VTG mdash Target voltage

GND mdash Common ground

Figure 4-3 Curiosity Nano Standard Pinout

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

43 Power SupplyThe board is powered through the USB port and contains two LDO regulators one to generate 33V for the on-boarddebugger and an adjustable LDO regulator for the target microcontroller AVR128DB48 and its peripherals Thevoltage from the USB connector can vary between 44V to 525V (according to the USB specification) and will limitthe maximum voltage to the target The figure below shows the entire power supply system on AVR128DB48Curiosity Nano

Figure 4-4 Power Supply Block Diagram

USBTarget MCU

Power source

Cut strap

Power consumer P3V3DEBUGGER

Power converter

DEBUGGERRegulator

VUSB

TargetRegulator

Power Supply strap

Adjust

Level shifter

VLVLVREG

IO IO GPIOstraps

IO

OnOffMeasure OnOff

ID systemVOFF

PTC Fuse

Power protection

VBUS

Target Power strap

VTG

431 Target RegulatorThe target voltage regulator is a MIC5353 variable output LDO The on-board debugger can adjust the voltage outputsupplied to the board target section by manipulating the MIC5353rsquos feedback voltage The hardware implementation

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 15

is limited to an approximate voltage range from 17V to 51V Additional output voltage limits are configured in thedebugger firmware to ensure that the output voltage never exceeds the hardware limits of the AVR128DB48microcontroller The voltage limits configured in the on-board debugger on AVR128DB48 Curiosity Nano are 18ndash55V

Info  The target voltage is set to 33V when the board is manufactured It can be changed throughMPLABreg X IDE project properties and in the Atmel Studio 7 device programming dialog Any change tothe target voltage is persistent even after a power toggle The resolution is less than 5 mV but may belimited to 10 mV by the adjustment program

Info  Voltage settings that are set up in MPLABreg X IDE are not immediately applied to the board Thenew voltage setting is applied to the board when the debugger is accessed in any way like pushing theRefresh Debug Tool Status button in the project dashboard tab or programmingreading program memory

Info  There is a simple option to adjust the target voltage with a drag-and-drop command text file to theboard This supports a set of common target voltages See section 4133 Special Commands for furtherdetails

The MIC5353 supports a maximum current load of 500 mA It is an LDO regulator in a small package placed on asmall printed circuit board (PCB) and the thermal shutdown condition can be reached at lower loads than 500 mAThe maximum current load depends on the input voltage the selected output voltage and the ambient temperatureThe figure below shows the safe operating area for the regulator with an input voltage of 51V and an ambienttemperature of 23degC

Figure 4-5 Target Regulator Safe Operation Area

The voltage output of the target regulator is continuously monitored (measured) by the on-board debugger If it ismore than 100 mV overunder the voltage setting value an error condition will be flagged and the target voltageregulator will be turned off This will detect and handle any short-circuit conditions It will also detect and handle if anexternal voltage which causes VCC_TARGET to move outside of the voltage setting monitoring window of plusmn100 mVis suddenly applied to the VTG pin without setting the VOFF pin low

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 16

Info  If the external voltage is lower than the monitoring window lower limit (target voltage setting ndash 100mV) the on-board debugger status LED will blink rapidly If the external voltage is higher than themonitoring window upper limit (target voltage setting + 100 mV) the on-board debugger status LED willcontinue to shine If the external voltage is removed the status LED will start to blink rapidly until the on-board debugger detects the new situation and turns the target voltage regulator back on

432 External SupplyAVR128DB48 Curiosity Nano can be powered by an external voltage instead of the on-board target regulator Whenthe Voltage Off (VOFF) pin is shorted to ground (GND) the on-board debugger firmware disables the target regulatorand it is safe to apply an external voltage to the VTG pin

It is also safe to apply an external voltage to the VTG pin when no USB cable is plugged into the DEBUG connectoron the board

The VOFF pin can be tied lowlet go at any time This will be detected by a pin-change interrupt to the on-boarddebugger which controls the target voltage regulator accordingly

WARNINGApplying an external voltage to the VTG pin without shorting VOFF to GND may cause permanent damageto the board

WARNINGDo not apply any voltage to the VOFF pin Let the pin float to enable the power supply

WARNINGAbsolute maximum external voltage is 55V for the on-board level shifters and the standard operatingcondition of the AVR128DB48 is 18ndash55V Applying a higher voltage may cause permanent damage to theboard

Info  If an external voltage is applied without pulling the VOFF pin low and an external supply pulls thevoltage lower than the monitoring windowrsquos lower limit (target voltage setting - 100 mV) the on-boarddebugger status LED will blink rapidly and shut the on-board regulator off If an external voltage issuddenly removed when the VOFF pin is not pulled low the status LED will start to blink rapidly until theon-board debugger detects the new situation and switches the target voltage regulator back on

Programming debugging and data streaming is still possible with an external power supply ndash the debugger andsignal level shifters will be powered from the USB cable Both regulators the debugger and the level shifters arepowered down when the USB cable is removed

Info  In addition to the power consumed by the AVR128DB48 and its peripherals approximately 100 microAwill be drawn from any external power source to power the on-board level shifters and voltage monitorcircuitry when a USB cable is plugged in the DEBUG connector on the board When a USB cable is notplugged in some current is used to supply the level shifters voltage pins which have a worst-case currentconsumption of approximately 5 microA Typical values may be as low as 100 nA

433 VBUS Output PinAVR128DB48 Curiosity Nano has a VBUS output pin that can be used to power external components that need a 5Vsupply The VBUS output pin has a PTC fuse to protect the USB against short circuits A side effect of the PTC fuseis a voltage drop on the VBUS output with higher current loads The chart below shows the voltage versus the currentload of the VBUS output

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 17

Figure 4-6 VBUS Output Voltage vs Current

434 Power Supply ExceptionsThis is a summary of most exceptions that can occur with the power supply

Target Voltage Shuts DownThis can happen if the target section draws too much current at a given voltage This will cause the thermal shutdownsafety feature of the MIC5353 regulator to kick in To avoid this reduce the current load of the target section

Target Voltage Setting is Not ReachedThe maximum output voltage is limited by the USB input voltage (specified to be 44-525V) and the voltage dropover the MIC5353 regulator at a given voltage setting and current consumption If a higher output voltage is neededuse a USB power source that can provide a higher input voltage or use an external voltage supply on the VTG pin

Target Voltage is Different From SettingThis can be caused by an externally applied voltage to the VTG pin without setting the VOFF pin low If the targetvoltage differs more than 100 mV overunder the voltage setting it will be detected by the on-board debugger andthe internal voltage regulator will be shut down To fix this issue remove the applied voltage from the VTG pin andthe on-board debugger will enable the on-board voltage regulator when the new condition is detected Note that thePS LED will be blinking rapidly if the target voltage is below 100 mV of the setting but will be lit normally when it ishigher than 100 mV above the setting

No Or Very Low Target Voltage and PS LED is Blinking RapidlyThis can be caused by a full or partial short-circuit and is a special case of the issue mentioned above Remove theshort-circuit and the on-board debugger will re-enable the on-board target voltage regulator

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 18

No Target Voltage and PS LED is Lit 1This occurs if the target voltage is set to 00V To fix this set the target voltage to a value within the specified voltagerange for the target device

No Target Voltage and PS LED is Lit 2This can be the issue if power jumper J100 andor J101 is cut and the target voltage regulator is set to a value withinthe specified voltage range for the target device To fix this solder a wirebridge between the pads for J100J101 oradd a jumper on J101 if a pin header is mounted

VBUS Output Voltage is Low or Not PresentThis is most lightly caused by a high-current drain on VBUS and the protection fuse (PTC) will reduce the current orcut off completely Reduce the current consumption on the VBUS pin to fix this issue

44 Low-Power MeasurementPower to the AVR128DB48 is connected from the on-board power supply and VTG pin through a 100 mil pin headermarked with ldquoPOWERrdquo in silkscreen (J101) To measure the power consumption of the AVR128DB48 and otherperipherals connected to the board cut the Target Power strap and connect an ammeter over the strap

To measure the lowest possible power consumption follow these steps1 Cut the POWER strap with a sharp tool2 Solder a 1x2 100 mil pin header in the footprint3 Connect an ammeter to the pin header4 Write firmware that

41 Tri-states any IO connected to the on-board debugger42 Sets the microcontroller in its lowest power Sleep state

5 Program the firmware into the AVR128DB48

Figure 4-7 Target Power Strap

Target Power strap (top side)

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 19

Tip  A 100-mil pin header can be soldered into the Target Power strap (J101) footprint for easyconnection of an ammeter Once the ammeter is no longer needed place a jumper cap on the pin header

Info  The on-board level shifters will draw a small amount of current even when they are not in use Amaximum of 2 microA can be drawn from each IO pin connected to a level shifter for a total of 10 microA Keepany IO pin connected to a level shifter in tri-state to prevent leakage All IOs connected to the on-boarddebugger are listed in 5251 On-Board Debugger Connections To prevent any leakage to the on-boardlevel shifters they can be disconnected completely as described in 84 Disconnecting the On-boardDebugger

45 Programming External MicrocontrollersThe on-board debugger on AVR128DB48 Curiosity Nano can be used to program and debug microcontrollers onexternal hardware

451 Supported DevicesAll external AVR microcontrollers with the UPDI interface can be programmed and debugged with the on-boarddebugger with Atmel Studio

External SAM microcontrollers that have a Curiosity Nano Board can be programmed and debugged with the on-board debugger with Atmel Studio

AVR128DB48 Curiosity Nano can program and debug external AVR128DB48 microcontrollers with MPLAB X IDE

452 Software ConfigurationNo software configuration is required to program and debug the same device that is mounted on the board

To program and debug a different microcontroller than what is mounted on the board Atmel Studio must beconfigured to allow free selection of devices and programming interfaces

1 Navigate to Tools gt Options through the menu system at the top of the application2 Select the Tools gt Tool settings category in the options window3 Set the Hide unsupported devices option to False

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 20

Figure 4-8 Hide Unsupported Devices

Info  Atmel Studio allows any microcontroller and interface to be selected when Hide unsupporteddevices is set to False also microcontrollers and interfaces which are not supported by the on-boarddebugger

453 Hardware ModificationsThe on-board debugger is connected to the AVR128DB48 by default These connections must be removed beforeany external microcontroller can be programmed or debugged Cut the GPIO straps shown in the figure below with asharp tool to disconnect the AVR128DB48 from the on-board debugger

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 21

Figure 4-9 Programming and Debugging Connections to Debugger

GPIO straps (bottom side)

Info  Cutting the connections to the debugger will disable programming debugging and data streamingfrom the AVR128DB48 mounted on the board

Tip  Solder in 0Ω resistors across the footprints or short-circuit them with solder to reconnect the signalsbetween the on-board debugger and the AVR128DB48

454 Connecting to External MicrocontrollersThe figure and table below show where the programming and debugging signals must be connected to program anddebug external microcontrollers The on-board debugger can supply power to the external hardware or use anexternal voltage as a reference for its level shifters Read more about the power supply in 43 Power Supply

The on-board debugger and level shifters actively drive data and clock signals (DBG0 DBG1 and DBG2) used forprogramming and debugging and in most cases the external resistor on these signals can be ignored Pull-downresistors are required on the ICSPtrade data and clock signals to debug PICreg microcontrollers

DBG3 is an open-drain connection and requires a pull-up resistor to function

AVR128DB48 Curiosity Nano has a pull-up resistor R200 connected to its RESET signal (DBG3) The location ofthe pull-up resistor is shown in the 82 Assembly Drawing in the appendix

Remember bull Connect GND and VTG to the external microcontrollerbull Tie the VOFF pin to GND if the external hardware has its own power supplybull Make sure there are pull-down resistors on the ICSP data and clock signals (DBG0 and DBG1) to

support the debugging of PIC microcontrollers

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 22

Figure 4-10 Curiosity Nano Standard Pinout

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

Table 4-4 Programming and Debugging Interfaces

Curiosity Nano Pin UPDI ICSPtrade SWD

DBG0 UPDI DATA SWDIO

DBG1 mdash CLK SWCLK

DBG2 mdash mdash mdash

DBG3 mdash MCLR RESET

46 Connecting External DebuggersEven though there is an on-board debugger external debuggers can be connected directly to the AVR128DB48Curiosity Nano to programdebug the AVR128DB48 The on-board debugger keeps all the pins connected to theAVR128DB48 and board edge in tri-state when not actively used Therefore the on-board debugger will not interferewith any external debug tools

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 23

Figure 4-11 Connecting the MPLABreg PICkittrade 4 In-Circuit DebuggerProgrammer to AVR128DB48 CuriosityNano

2345678 1

VDD

GroundDATA

2 = VDD

3 = Ground

4 = PGD

5 = Unused

6 = Unused

7 = Unused

8 = Unused

1 = Unused

MPLABreg PICkittrade 4

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 24

Figure 4-12 Connecting the Atmel-ICE to AVR128DB48 Curiosity Nano

VDD

Ground

DATA

AVRregSAM

3 = UPDI

4 = VTG

5 = Unused

6 = Unused

7 = Unused

8 = Unused

1 = Unused

2 = GND

9 = Unused

10 = Unused

Atmel-ICE

21 9

10

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

CAUTIONTo avoid contention between the external debugger and the on-board debugger do not start anyprogrammingdebug operation with the on-board debugger through MPLABreg X IDE or Atmel Studio 7 ormass storage programming while the external tool is active

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 25

5 Hardware User Guide

51 Connectors

511 AVR128DB48 Curiosity Nano PinoutAll the AVR128DB48 IO pins are accessible at the edge connectors on the board The image below shows the boardpinout For all available functions on each pin refer to the IO Multiplexing and Considerations section in theAVR128DB48 data sheet

Figure 5-1 AVR128DB48 Curiosity Nano Pinout

USB

DEBUGGER

AVR128DB48

SW0

LED0

PS LEDNC

NC

IDID

CDC RX

CD

CR

XUSART3 TXPB0

CDC TX

CD

CT

XUSART3 RXPB1

DBG1

DB

G1PB3LED0

DBG2

DB

G2PB2SW0

PF4

PF

4USART2 TX

PF5

PF

5USART2 RX

PA2

PA

2TWI0 SDA

PA3

PA

3TWI0 SCL

PA4

PA

4SPI0 MOSI

PA5

PA

5SPI0 MISO

PA6

PA

6SPI0 SCK

PA7

PA

7SPI0 SS

GND

GN

D

PB0

PB

0USART3 TXCDC RX

PB1

PB

1USART3 RXCDC TX

PF2

PF

2

PF3

PF

3

PC0

PC

0

PC1

PC

1

PC2

PC

2

PC3

PC

3

GND

GN

D

(PA0)

(PA

0)XTALHF1

(PA1)

(PA

1)XTALHF2

PB2

PB

2SW0

PB3

PB

3LED0

VBUS

VB

US

VOFF

VO

FF

DBG3

DB

G3 PF6

DBG0

DB

G0 UPDI

GND

GN

D

VTG

VT

G

PD6

PD

6 AIN6

PD3

PD

3 AIN3 OP0 INN

PD2

PD

2 AIN2 OP0 OUT TCA0 WO2

PD1

PD

1 AIN1 OP0 INP TCA0 WO1

PD0

PD

0 AIN0 TCA0 WO0

PD7

PD

7 AIN7 OP1 INN

PD5

PD

5 AIN5 OP1 OUT

PD4

PD

4 AIN4 OP1 INP

GND

GN

D

PE3

PE

3 OP2 INN

PE2

PE

2 OP2 OUT

PE1

PE

1 OP2 INP

PE0

PE

0

PC7

PC

7

PC6

PC

6

PC5

PC

5

PC4

PC

4

GND

GN

D

PB5

PB

5

PB4

PB

4

(PF1)

(PF

1) XTAL32K2

(PF0)

(PF

0) XTAL32K1

DEBUGGERAVR128DB48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

MVIO

OPAMP

Shared pin

AVR128DB48Curiosity Nano

512 Using Pin HeadersThe edge connector footprint on AVR128DB48 Curiosity Nano has a staggered design where each hole is shifted 8mil (~02 mm) off-center The hole shift allows the use of regular 100 mil pin headers on the board without solderingOnce the pin headers are firmly in place they can be used in normal applications like pin sockets and prototypingboards without any issues

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 26

Figure 5-2 Attaching Pin-Headers to the Curiostiy Nano Board

Figure 5-3 Connecting to Curiosity Nano Base for Click boardstrade

Tip  Start at one end of the pin header and gradually insert the header along the length of the boardOnce all the pins are in place use a flat surface to push them in

Tip  For applications where the pin headers will be used permanently it is still recommended to solderthem in place

Important  Once the pin headers are in place they are hard to remove by hand Use a set of pliers andcarefully remove the pin headers to avoid damage to the pin headers and PCB

513 Multi-Voltage IO

The AVR128DB48 Curiosity Nano MCU has support for Multi-Voltage IO (MVIO) AVR128DB48 MVIO pins areconnected to the edge connector at PC0-PC7 MVIO pins are capable of regular IO-pin behavior

MVIO can be configured in one of two supply modesbull Single-Supply mode All IO pins including MVIO-capable pins are powered by VCC_TARGET By default

VCC_TARGET is connected to VDDIO2 through a 0-ohm resistor (R204)bull Dual-Supply mode MVIO-capable pins are powered by an external power supply connected to VDDIO2 Non-

MVIO pins are powered by VCC_TARGET

Dual-Supply mode allows MVIO-pins to be powered at different voltages than pins powered from VCC_TARGET

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 27

WARNINGThe absolute maximum external voltage range for the AVR128DB48 is 18ndash55V Applying a higher voltagemay cause permanent damage to the board

By default AVR128DB48 Curiosity Nano board is configured for single-supply mode To use Dual-Supply mode somehardware modifications are required

WARNINGBefore any hardware modifications are done make sure the board is disconnected from USB or externalpower

bull Disconnect resistor R204 connecting VDDIO2 to VCC_TARGETbull Connect a new power supply to VDDIO2 and ground at J212bull J212 does not have reverse polarity protection Make sure to match polarity between the power supply and

J212 Positive-polarity to J212-pin 1 and negative-polarity to J212-pin 2

The resistor R204 VDDIO2 and J212 can be seen in Figure 5-4

Figure 5-4 MVIO and VDDIO2 Connections

J212 R204

WARNINGApplying an external voltage to VDDIO2 pin without removing resistor R204 may cause permanentdamage to the board

WARNINGJ212 does not have reverse polarity protection Applying voltage to the wrong pin may cause permanentdamage to the board

514 Operational AmplifiersAVR128DB48 features three internal operational amplifiers with a flexible connection scheme using analogmultiplexers and resistor ladders This allows a large number of analog signal conditioning configurations manyrequiring no external components

Table 5-1 OPAMP Pin Connections

OPAMP Poisitive Input (INP) Negative Input (INN) Output (OUT)

OP0 PD1 PD3 PD2

OP1 PD4 PD7 PD5

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 28

continuedOPAMP Poisitive Input (INP) Negative Input (INN) Output (OUT)

OP2 PE1 PE3 PE2

For information about OPAMP on the edge connector and any shared functionality see 511 AVR128DB48 CuriosityNano Pinout

52 Peripherals

521 LEDThere is one yellow user LED available on the AVR128DB48 Curiosity Nano board that can be controlled by eitherGPIO or PWM The LED can be activated by driving the connected IO line to GND

Table 5-2 LED Connection

AVR128DB48 Pin Function Shared Functionality

PB3 Yellow LED0 Edge connector On-board debugger

522 Mechanical SwitchThe AVR128DB48 Curiosity Nano board has one mechanical switch This is a generic user-configurable switchWhen the switch is pressed it will drive the IO line to ground (GND)

Tip  There is no externally connected pull-up resistor on the switch To use the switch make sure that aninternal pull-up resistor is enabled on pin PB2

Table 5-3 Mechanical Switch

AVR128DB48 Pin Description Shared Functionality

PB2 User switch (SW0) Edge connector On-board debugger

523 32768 kHz Crystal

On the AVR128DB48 Curiosity Nano board is a mounted 32768 kHz crystal of type VMK3-9001-32K7680000 thecrystal is accurate to within 20 ppm Using the External 32768 kHz Crystal Oscillator (XOSC32K) module inAVR128DB48 with the mounted 32768 kHz crystal generates a clock signal that is significantly more accurate thanthe Internal 32768 kHz Ultra Low-Power Oscillator (OSC32K) module can generate alone With the Auto-Tunefeature the 32768 kHz can be used as a reference to improve the accuracy of the internal oscillator This is an idealreference clock for the Real-Time Counter module in AVR128DB48

The 32768 kHz crystal is connected to AVR128DB48 on PF0 and PF1 which are also routed to the edge connectorthrough two solder points PF0 and PF1 are disconnected from the edge connector by default to reduce the chanceof an external signal causing contention with the crystal and to remove excessive capacitance on the lines

Next to the 32768 kHz crystal is a cut-strap (J209) which can be used to measure the oscillator safety factor This isdone by cutting the strap and adding a 0402 SMD resistor across the strap More information about oscillatorallowance and safety factor can be found in the AN2648 application note from Microchip

Cut straps and solder points can be seen in Figure 5-5

Table 5-4 32768 kHz Crystal Connections

AVR128DB48 Pin Function Shared Functionality

PF0 XTAL32K1 (Crystal input) Edge connector

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 29

continuedAVR128DB48 Pin Function Shared Functionality

PF1 XTAL32K2 (Crystal output) Edge connector

PA0 and PA1 can be used as GPIO To do so some hardware modifications are required

WARNINGBefore any hardware modifications are done make sure the board is disconnected from the USB orexternal power

bull Disconnect the 32768 kHz crystal by cutting the two straps on the top side of the board next to the crystal(J207 J208) The crystal should be disconnected when using the pin as GPIO as this might harm the crystal

bull Connect the IO lines to the edge connector by placing solder blobs on the circular solder points marked PF0and PF1 on the bottom side of the board (J210 J211)

Figure 5-5 Crystal Connection and Cut Straps

Top side Boom side

J211

J210

J207

J20832768 kHz Crystal

J209

524 1600 MHz Crystal

On the AVR128DB48 Curiosity Nano board is a mounted 1600 MHz crystal of type VXM7-9040-16M0000000 thecrystal is accurate to within 20 ppm Using the External High-Frequency Crystal Oscillator (XOSCHF) module inAVR128DB48 with the mounted 1600 MHz crystal generates a clock signal that is significantly more accurate thanthe Internal High-Frequency Oscillator (OSCHF) module

The 1600 MHz crystal is connected to AVR128DB48 on PA0 and PA1 which are also routed to the edge connectorthrough two solder points PA0 and PA1 are disconnected from the edge connector by default to reduce the chanceof an external signal causing contention with the crystal and to remove excessive capacitance on the lines

Next to the 1600 MHz crystal is a cut-strap (J217) which can be used to measure the oscillator safety factor This isdone by cutting the strap and adding a 0402 SMD resistor across the strap More information about oscillatorallowance and safety factor can be found in the AN2648 application note from Microchip

Cut straps and solder points can be seen in Figure 5-6

Table 5-5 Crystal Connections

AVR128DB48 Pin Function Shared Functionality

PA0 XTALHF1 (Crystal input) Edge connector

PA1 XTALHF2 (Crystal output) Edge connector

PA0 and PA1 can be used as GPIO To do so some hardware modifications are required

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 30

WARNINGBefore any hardware modifications are done make sure the board is disconnected from USB or externalpower

bull Disconnect the 1600 MHz crystal by cutting the two straps on the top side of the board next to the crystal (J215J216) The crystal should be disconnected when using the pin as GPIO as this might harm the crystal

bull Connect the IO lines to the edge connector by placing solder blobs on the circular solder points marked PA0and PA1 on the bottom side of the board (J213 J214)

Figure 5-6 Crystal Connection and Cut Straps

Top side Boom side

J214

J213

J216

J2151600 MHzCrystal

J217

525 On-Board Debugger ImplementationAVR128DB48 Curiosity Nano features an on-board debugger that can be used to program and debug theAVR128DB48 using UPDI The on-board debugger also includes a virtual serial port (CDC) interface over UART anddebug GPIO Both MPLABreg X IDE and Atmel Studio 7 can be used as a front-end for the on-board debugger forprogramming and debugging MPLAB Data Visualizer can be used as a front-end for the CDC and debug GPIO

5251 On-Board Debugger ConnectionsThe table below shows the connections between the target and the debugger section All connections between thetarget and the debugger are tri-stated as long as the debugger is not actively using the interface Hence since thereare little contaminations of the signals the pins can be configured to anything the user wants

For further information on how to use the capabilities of the on-board debugger see 41 On-Board DebuggerOverview

Table 5-6 On-Board Debugger Connections

AVR128DB48Pin

Debugger Pin Function Shared Functionality

PB1 CDC TX UART RX (AVR128DB48 RX line) Edge connector

PB0 CDC RX UART TX (AVR128DB48 TX line) Edge connector

UPDI DBG0 UPDI Edge connector

PB3 DBG1 LED0Debug GPIO1 Edge connector

PB2 DBG2 SW0Debug GPIO0 Edge connector

PF6 DBG3 RESET Edge connector

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 31

6 Hardware Revision History and Known IssuesThis user guide is written to provide information about the latest available revision of the board The followingsections contain information about known issues a revision history of older revisions and how older revisions differfrom the latest revision

61 Identifying Product ID and RevisionThe revision and product identifier of the AVR128DB48 Curiosity Nano Board can be found in two ways Either byutilizing the MPLABreg X IDE or Atmel Studio 7 Kit Window or by looking at the sticker on the bottom side of the PCB

By connecting AVR128DB48 Curiosity Nano to a computer with MPLABreg X IDE or Atmel Studio 7 running the KitWindow will pop up The first six digits of the serial number which is listed under kit information contain the productidentifier and revision

Tip  The Kit Window can be opened in MPLABreg X IDE through the menu bar Window gt Kit Window

The same information can be found on the sticker on the bottom side of the PCB Most boards will have the identifierand revision printed in plain text as A09-nnnnrr where ldquonnnnrdquo is the identifier and ldquorrrdquo is the revision Boards withlimited space have a sticker with only a data matrix code containing the product identifier revision and serialnumber

The serial number string has the following format

nnnnrrssssssssss

n = product identifier

r = revision

s = serial number

The product identifier for AVR128DB48 Curiosity Nano is A09‑3372

62 Revision 3AVR128DB48 silicon revision A5 or later is mounted on this revision of the board

63 Revision 2Revision 2 is the initially released board revision

AVR128DB48 silicon revision A4 is mounted on this revision of the board

AVR128DB48 Curiosity NanoHardware Revision History and Known Issues

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 32

7 Document Revision HistoryDoc Rev Date Comments

A 092020 Initial document release

AVR128DB48 Curiosity NanoDocument Revision History

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 33

8 Appendix

81 SchematicFigure 8-1 AVR128DB48 Curiosity Nano Schematic

11

22

33

44

55

66

77

88

DD

CC

BB

AA

2 of

4

AV

R12

8DB

48 C

uri

osit

y N

ano

240

820

20A

VR

128D

B48

_Cur

iosi

ty_N

ano_

Targ

et_M

CU

Sch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA

Rev

isio

n

File

P

CB

Num

ber

PC

B

Rev

isio

n

Des

ign

ed w

ith

Dra

wn

By

ML

Shee

t Titl

e

Targ

et M

CU

Eng

inee

rA

H

A08

-305

71

Size

A3

A09

-337

22

Page

D

ateA

ltium

com

GN

D

VD

DIO

2

100n

C20

1

GN

D

PA5_

SPI0

_MIS

OPA

6_SP

I0_S

CK

PA7_

SPI0

_SS

PB0_

USA

RT

3_T

XPB

1_U

SAR

T3_

RX

PB2_

SW0_

DB

G2

PB3_

LE

D0_

DB

G1

PB

4P

B5

PC

0P

C1

PC

2

PC3

PC4PC5PC6PC7PD0_AIN0_TCA0_WO0PD1_AIN1_OP0_INP_TCA0_WO1PD2_AIN2_OP0_OUT_TCA0_WO2PD3_AIN3_OP0_INNPD4_AIN4_OP1_INP

PA3_TWI0_SCL

PA1_XTALHF2

UPDI_DBG0

PF5_USART2_RX

PF3

PF

2PF

1_X

TA

L32

K2

PF0_

XT

AL

32K

1P

E3_

OP

2_IN

NP

E2_

OP

2_O

UT

PE

1_O

P2_

INP

PE

0

PD5_

AIN

5_O

P1_

OU

TPD

6_A

IN6

PD7_

AIN

7_O

P1_

INN

GN

D

VC

C_T

AR

GE

T

100n

C20

2

GN

DV

CC

_TA

RG

ET

100n

C20

0

PF1_XTAL32K2

PF0_XTAL32K1

PA2_TWI0_SDA

PA0_XTALHF1

PF4_USART2_TX

PA4_SPI0_MOSI

GN

D

PA7_

SPI0

_SS

PA6_

SPI0

_SC

KPA

5_SP

I0_M

ISO

PA4_

SPI0

_MO

SIPA

3_T

WI0

_SC

LPA

2_T

WI0

_SD

A

PC

0P

C1

PC

2P

C3

PB

4P

B5

PD7_

AIN

7_O

P1_

INN

PD6_

AIN

6

PD2_

AIN

2_O

P0_

OU

T_T

CA

0_W

O2

PD1_

AIN

1_O

P0_

INP_

TC

A0_

WO

1PD

0_A

IN0_

TC

A0_

WO

0

PD5_

AIN

5_O

P1_

OU

TPD

4_A

IN4_

OP

1_IN

P

PD3_

AIN

3_O

P0_

INN

32K

Hz

Cry

stal

PB0_

USA

RT

3_T

XPB

1_U

SAR

T3_

RX

1kR203

US

ER

LE

D

VC

C_T

AR

GE

T

PF6_DBG3

PB2_SW0_DBG2

PB3_LED0_DBG1

GN

D

USE

R B

UT

TO

N

PB3_

LE

D0_

DB

G1

PB2_

SW0_

DB

G2

PB1_

USA

RT

3_R

XPB

0_U

SAR

T3_

TX

PF4_

USA

RT

2_T

XPF

5_U

SAR

T2_

RX

PF

2P

F3

PC

4P

C5

PC

6P

C7

1kR202

YELLOWLEDSML-D12Y1WT86

2 1

D200

TS604VM1-035CR13

4 2

SW20

0

GN

DV

CC

_ED

GE

GN

DG

ND

GN

DG

ND

UPD

I_D

BG

0P

F6_

DB

G3

J209

PB3_

LE

D0_

DB

G1

PB2_

SW0_

DB

G2

AV

R12

8DB

48

22u

FC

205

VC

C_E

DG

E

GN

D

DBG0

CDC_TXCDC_RX

DBG2

DBG1

DBG3

DBG2

DE

BU

GG

ER

CO

NN

EC

TIO

NS

DBG1

DBG3DBG0

VOFF

ID_SYS

ID_SYS

VOFF

TA

RG

ET

BU

LK

VC

C_T

AR

GE

TR

ESE

T P

ull

VB

US

CD

C R

X3

CD

C T

X4

DB

G1

5

DB

G2

6

0 T

X7

1 R

X8

2 SD

A9

3 S

CL

10

4 M

OSI

11

5 M

ISO

12

6 S

CK

13

7 S

S14

GN

D15

0 (T

X)

16

1 (R

X)

17

218

319

020

GN

D24

DB

G3

54

DB

G0

53

GN

D52

VC

C51

PW

M 3

46

AD

C 2

45

AD

C 1

44

AD

C 0

43

GN

D42

438

434

GN

D33

AD

C 7

50

AD

C 6

49

AD

C 5

48

PW

M 4

47

DE

BU

GG

ER

TAR

GE

T

ID2

VO

FF

55

121

222

323

025

126

227

328

429

530

631

732

535

636

737

539

640

741

RE

SER

VE

D1

VB

US

56

CN

AN

O56

-pin

edg

e co

nnec

tor

J200

J201

J203

J205

J206

J202

J204

PF1_

XT

AL

32K

2PF

0_X

TA

L32

K1

NC

XOUT

XIN

47kR200

AV

R12

8DB

48

UPD

I

GPI

O1

GPI

O0

RE

SET

DB

G0

DB

G1

DB

G2

DB

G3

Deb

ugge

r

CD

C T

X

CD

C R

X

UA

RT

3 R

X

UA

RT

3 T

X

VT

G1

8V -

55

VPB

3

PB

2

PF

6

UP

DI

PB

0

PB

1

Nam

eP

in

PE

3_O

P2_

INN

PE

2_O

P2_

OU

TP

E1_

OP

2_IN

PP

E0

J207

J208

PF

0P

F1

PA5

1

PA6

2

PA7

3

PB0

4

PB1

5

PB2

6

PB3

7

PB4

8

PB5

9

PC0

10

PC1

11

PC2

12

PC313

VDDIO214

GND15

PC416

PC517

PC618

PC719

PD020

PD121

PD222

PD323

PD424

PD5

25

PD6

26

PD7

27

AVDD

28

GND

29

PE0

30

PE1

31

PE2

32

PE3

33

XTAL32K1PF0

34

XTAL32K2PF1

35

PF2

36

PF337

PF438

PF539

PF640

UPDI41

VDD42

GND43

XTALHF1PA044

XTALHF2PA145

PA246

PA347

PA448

AV

R12

8DB

48-I

PT

U20

0

0RR204

GN

D

VC

C_T

AR

GE

T

VDDIO2

GND

J210

J211

82p

C20

48

2pC

203

GN

DG

ND

16M

Hz

Cry

stal

J217

XHFOUT

XHFIN

J214

J213

GN

D

J215

J216

PA0_XTALHF1

PA1_XTALHF2

PA0_

XT

AL

HF

1PA

1_X

TA

LH

F2

PA0

PA1

1 2

J212 N

M

15pF

C20

615

pFC

207

13

24 16

000

MH

zV

XM

7-90

40-1

6M00

0000

0TR

XC

201

GN

D32

768

kHz

VM

K3-

9001

-32K

7680

000T

R

XC

200

CDC_TX

CDC_RX

CD

C_T

XC

DC

_RX

Cry

stal

dat

ashe

et

Ccr

ysta

l = 9

pFm

ax E

SR

= 7

0kO

hmA

ccur

acy

plusmn20p

pm

AV

R48

DB

128

data

shee

tC

xin

= 4

0pF

(ty

pica

l val

ue)

Cxo

ut =

40

pF (

typi

cal v

alue

)C

lasymp1

( (1

40

pF)+

(1

40p

F)

)asymp

20p

FM

axim

um L

oad

= 1

25p

FM

axim

um E

SR =

50k

Ohm

Est

imat

ed C

pcb

= 0

5pF

Est

imat

ed lo

adC

= 2

(C

crys

tal-

Cpa

ra -

Cpc

b)C

= 2

(9p

F -

20

pF -

05

pF)

C =

13

0pF

Sele

cted

in d

esig

n af

ter

veri

fica

tion

C=

82

pF8

2pF

NO

TE

on

UA

RT

CD

C

RX

TX

onth

ehe

ader

deno

tes

the

inpu

tout

put d

irec

tion

of th

e si

gnal

resp

ectiv

e to

its

sou

rce

CD

C T

X is

out

put f

rom

the

DE

BU

GG

ER

C

DC

RX

is in

put t

o th

e D

EB

UG

GE

R

TX

is o

utpu

t fro

m th

e T

AR

GE

T d

evic

eR

X is

inpu

t to

the

TA

RG

ET

dev

ice

NO

TE

on

I2C

No

pull

-ups

on

boar

d P

ull-

ups

shou

ld b

em

ount

ed c

lose

to s

lave

dev

ice(

s)

WA

RN

ING

M

ake

sure

tore

mov

e R

204

befo

reap

plyi

ng p

ower

to J

212

Cry

stal

dat

ashe

et

Ccr

ysta

l = 1

2pF

max

ES

R =

60O

hmA

ccur

acy

plusmn30p

pm

AV

R48

DB

128

data

shee

tC

xin

= 4

0pF

(ty

pica

l val

ue)

Cxo

ut =

40

pF (

typi

cal v

alue

)C

lasymp1

( (1

40

pF)+

(1

40p

F)

)asymp

20p

FM

axim

um L

oad

= 1

25p

FM

axim

um E

SR =

k

Ohm

Est

imat

ed C

pcb

= 0

5pF

Est

imat

ed lo

adC

= 2

(C

crys

tal-

Cpa

ra -

Cpc

b)C

= 2

(12

pF -

20

pF -

05

pF)

C =

19

0pF

Sele

cted

in d

esig

n af

ter

veri

fica

tion

C=

15p

F1

5pF

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 34

11

22

33

44

55

66

77

88

DD

CC

BB

AA

3 of

4

AV

R12

8DB

48 C

uri

osit

y N

ano

2020

-06-

26A

VR

128D

B48

_Cur

iosi

ty_N

ano_

Deb

ugge

rSch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA

Rev

isio

n

Fil

eP

CB

Num

ber

PC

B

Rev

isio

n

Des

ign

ed w

ith

Dra

wn

By

ML

Shee

t Tit

le

Deb

ugge

r

Eng

inee

rA

H

A08

-305

71

Size

A3

A09

-337

22

Page

D

ateA

ltium

com

DE

BU

GG

ER

USB

MIC

RO

-B C

ON

NE

CT

OR

GN

D

USB

D_P

USB

D_N

100n

C10

7

100n

C10

8

1kR

107

VC

C_P

3V3

SRST

STA

TU

S_L

ED

SHIE

LD

VB

US

VC

C_P

3V3

GN

D

TP

100

Test

poin

t Arr

ay

12

34

56

78

910

TC

KT

DO

TM

SV

sup

TD

IG

ND

TR

STSR

STV

Tre

fG

ND

J102

GN

D

47u

F

C10

0

DBG0

DB

G0

21

GR

EE

N L

ED

SML

-P12

MT

T86

R

D10

0

VBUS

1

D-

2

D+

3

GND

5

SHIELD1

6

SHIELD2

7

ID

4

SHIELD3

8

SHIELD4

9 MU

-MB

0142

AB

2-26

9

J105

PAD

33

PA00

1

PA01

2

PA02

3

PA03

4

GND 10VDDANA 9

PA04

5

PA05

6

PA06

7

PA07

8

PA08 11

PA09 12

PA10 13

PA11 14

PA14 15

PA15 16

PA16

17

PA17

18

PA18

19

PA19

20

PA22

21

USB_SOFPA23

22

USB_DMPA24

23

USB_DPPA25

24

PA2725 RESETN26 PA2827 GND28 VDDCORE29 VDDIN30 SWDCLKPA3031 SWDIOPA3132

SAM

D21

E18

A-M

UT

U10

0

VOUT

1

VOUT

2

GND 3

EN

4

VIN

6

NC

5

EP 7

MIC

5528

-33

YM

TU

101

VC

C_P

3V3

GN

D

USB

D_P

USB

D_N

GN

D

1uC

106

VC

C_M

CU

_CO

RE

VC

C_P

3V3

VC

C_P

3V3

22u

FC

101

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

3

VC

C_P

3V3

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

4

VC

C_P

3V3

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

5

VC

C_P

3V3

GN

D

GN

D GN

D

GN

D

VC

C_E

DG

E

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

7

VC

C_P

3V3

GN

DDBG2

DB

G3_

CT

RL

S1_0

_TX

S1_1

_RX

S0_2

_TX

DA

CV

TG

_AD

C

RE

SER

VE

D

S0_3

_CL

K

DBG0_CTRL

CD

C_T

X_C

TR

L

BO

OT

DE

BU

GG

ER

PO

WE

RS

TA

TU

S L

ED

EN

1

BYP

6

VOUT

4

GND

2

VIN

3

NCADJ

5

GND

7

MIC

5353

U10

2

100n

C10

2

GN

D

GN

D

47kR101

27kR104 G

ND

33k

R10

6

22u

F

C10

3 GN

D

1kR

108

J100

VC

C_L

EV

EL

VC

C_R

EG

UL

AT

OR

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

6

VC

C_P

3V3

GN

DDBG1

CD

C_R

X

CD

C_T

X

DBG3

DBG1_CTRL

DE

BU

GG

ER

RE

GU

LA

TO

R

REG_ENABLE

RE

G_E

NA

BL

E

47kR103

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

47kR102

47kR105

SWC

LK

GN

D

47kR100 G

ND

DB

G2

S0_0

_RX

DB

G1_

CT

RL

DB

G0_

CT

RL

DB

G3

OP

EN

DR

AIN

TA

RG

ET

AD

JUST

AB

LE

RE

GU

LA

TO

R

SRST

DE

BU

GG

ER

TE

ST

PO

INT DBG2_CTRL

VO

FF

CD

C_R

X_C

TR

L

47kR109

DB

G1

CD

C_T

X_C

TR

L

CD

C_R

X_C

TR

L

SWC

LK

REG_ADJUST

DBG2_GPIO

DB

G3_

CT

RL

DB

G2_

CT

RL

UP

DI

UPD

I

GPI

O

GPI

O

RE

SET

Sign

al

DB

G0

DB

G1

DB

G2

DB

G3

ICS

PIn

terf

ace

DA

T

CL

K

GPI

O

MC

LR

DB

G3

CD

C T

X

CD

C R

X

UA

RT

RX

UA

RT

TX

UA

RT

RX

UA

RT

TX

TA

RG

ET

TA

RG

ET

1kR

110

VBUS_ADC

1

23

DM

N65

D8L

FB

Q10

1

VC

C-

-

ID_SYS

VOFF

1kR112

VC

C_P

3V3

VT

G_A

DC

DA

C

MIC

9416

3

VIN

B2

VOUT

A1

VIN

A2

EN

C2

GND

C1

VOUT

B1

U10

8

GN

D

ID_S

YS

VT

G_E

N

VTG_EN

VBUS_ADC

SWD

IO

ID_S

YS

TP

101

GN

DSW

DIO

VO

FF

47kR111 G

ND

ID P

IN

MC

3621

3

F10

0

VC

C_V

BU

S

VC

C_V

BU

S

VC

C_V

BU

S

J101

VC

C_T

AR

GE

T

47k

R11

3

CDC_TX

CDC_RX

Prog

ram

min

g co

nnec

tor

for

fact

ory

prog

ram

min

g of

DE

BU

GG

ER

MIC

5528

V

in 2

5V

to 5

5V

Vou

t F

ixed

33

VIm

ax 5

00m

AD

ropo

ut 2

60m

V

500

mA

MIC

5353

V

in 2

6V

to 6

VV

out

12

5V to

51

VIm

ax 5

00m

AD

ropo

ut (

typi

cal)

50m

V

150m

A 1

60m

V

500

mA

Acc

urac

y 2

in

itia

lT

herm

al s

hutd

own

and

curr

ent l

imit

Max

imum

out

put v

olta

ge is

lim

ited

by

the

inpu

t vol

tage

and

the

drop

out v

olta

ge in

the

regu

lato

r(V

max

= V

in -

dro

pout

)

J100

-

Cut

-str

ap u

sed

for

full

sep

arat

ion

of ta

rget

pow

er f

rom

the

leve

l shi

fter

s an

don

-boa

rd r

egul

ator

s-

For

cur

rent

mea

sure

men

ts u

sing

the

on-b

oard

pow

er s

uppl

y th

isst

rap

mus

t be

cut a

nd a

nam

met

er c

onne

cted

acr

oss

- F

or c

urre

nt m

easu

rem

ents

usi

ng a

n ex

tern

al p

ower

sup

ply

this

str

ap c

ould

be

cut f

or m

ore

accu

rate

mea

sure

men

ts L

eaka

ge b

ack

thro

ugh

the

swit

ch is

in th

e m

icro

am

pere

ran

ge

PT

C R

eset

tabl

e fu

se

Hol

d cu

rren

t 5

00m

AT

rip

curr

ent

100

0mA

Adj

usta

ble

outp

ut a

nd li

mit

atio

ns

- T

he D

EB

UG

GE

R c

an a

djus

t the

out

put v

olta

ge o

f th

e re

gula

tor

betw

een

125

V a

nd 5

1V

to th

e ta

rget

-

The

vol

tage

out

put i

s li

mit

ed b

y th

e in

put (

US

B)

whi

ch c

an v

ary

betw

een

440

V to

52

5V-

The

leve

l shi

fter

s ha

ve a

min

imal

vol

tage

leve

l of

165

V a

nd w

ill l

imit

the

min

imum

ope

ratin

g vo

ltage

all

owed

for

the

targ

et to

sti

ll a

llow

com

mun

icat

ion

- T

he M

IC94

163

has

a m

inim

al v

olat

ege

leve

l of

170

V a

nd w

ill l

imit

the

min

imum

vol

tage

del

iver

ed to

the

targ

et

- F

irm

war

e co

nfig

urat

ion

wil

l lim

it th

e vo

ltage

ran

ge to

be

wit

hin

the

the

targ

et s

peci

fica

tion

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 35

82 Assembly DrawingFigure 8-2 AVR128DB48 Curiosity Nano Assembly Drawing Top

+

Cb

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20001 PAC20002 COC200

PAC20101 PAC20102 COC201

PAC20201 PAC20202 COC202 PAC20301

PAC20302 COC203

PAC20401

PAC20402 COC204

PAC20502

PAC20501 COC205

PAC20601

PAC20602 COC206 PAC20701

PAC20702 COC207 PAD10002 PAD10001 COD100

PAD20002

PAD20001 COD200

PAF10002

PAF10001 COF100

PAJ10002 PAJ10001 COJ100

PAJ10101 PAJ10102 COJ101

PAJ10201

PAJ10202

PAJ10203

PAJ10204

PAJ10205

PAJ10206 COJ102

PAJ10506

PAJ10507 PAJ10509

PAJ10508 PAJ105010

PAJ105011 PAJ10505

PAJ10504

PAJ10503

PAJ10502

PAJ10501

PAJ10500

COJ105

PAJ200056 PAJ200053

PAJ200028 PAJ20002 PAJ20001

PAJ200051 PAJ200050 PAJ200052 PAJ200049 PAJ200048 PAJ200047 PAJ200046 PAJ200045 PAJ200044 PAJ200043 PAJ200042 PAJ200041 PAJ200040 PAJ200039 PAJ200038 PAJ200037 PAJ200036 PAJ200035 PAJ200034 PAJ200033 PAJ200032 PAJ200031 PAJ200030 PAJ200029

PAJ20003 PAJ20004 PAJ20005 PAJ20006 PAJ20007 PAJ20008 PAJ20009 PAJ200010 PAJ200011 PAJ200012 PAJ200013 PAJ200014 PAJ200015 PAJ200016 PAJ200017 PAJ200018 PAJ200019 PAJ200020 PAJ200021 PAJ200022 PAJ200023 PAJ200026 PAJ200025 PAJ200024 PAJ200027

PAJ200054 PAJ200055 PAJ20000

COJ200

PAJ20102 PAJ20101 COJ201

PAJ20202 PAJ20201 COJ202

PAJ20302 PAJ20301 COJ203

PAJ20402 PAJ20401 COJ204

PAJ20502 PAJ20501 COJ205

PAJ20602 PAJ20601 COJ206 PAJ20702 PAJ20701 COJ207

PAJ20802 PAJ20801 COJ208

PAJ20902 PAJ20901 COJ209

PAJ21001 PAJ21002 PAJ21005 COJ210

PAJ21102 PAJ21101 PAJ21105 COJ211

PAJ21202 PAJ21201 COJ212

PAJ21301 PAJ21302 PAJ21305 COJ213

PAJ21401 PAJ21402 PAJ21405 COJ214

PAJ21502 PAJ21501 COJ215

PAJ21602 PAJ21601 COJ216 PAJ21702 PAJ21701 COJ217

COLABEL1

PAQ10101 PAQ10102 PAQ10103 PAQ10100

COQ101 PAR10002

PAR10001 COR100 PAR10101 PAR10102 COR101

PAR10202 PAR10201 COR102

PAR10302 PAR10301 COR103

PAR10401 PAR10402 COR104

PAR10502

PAR10501 COR105

PAR10601 PAR10602 COR106

PAR10702 PAR10701 COR107

PAR10801

PAR10802 COR108

PAR10901 PAR10902 COR109

PAR11001 PAR11002 COR110

PAR11101 PAR11102 COR111

PAR11201 PAR11202 COR112

PAR11302 PAR11301 COR113

PAR20001 PAR20002 COR200 PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203 PAR20401 PAR20402 COR204

PASW20003

PASW20004 PASW20002

PASW20001 COSW200

PATP10001 COTP100

PATP10101 COTP101 PAU100033

PAU100032 PAU100031 PAU100030 PAU100029 PAU100028 PAU100027 PAU100026 PAU100025 PAU100024

PAU100023

PAU100022

PAU100021

PAU100020

PAU100019

PAU100018

PAU100017 PAU100016 PAU100015 PAU100014 PAU100013 PAU100012 PAU100011 PAU100010

PAU10001

PAU10002

PAU10003

PAU10004

PAU10005

PAU10006

PAU10007

PAU10008 PAU10009

COU100

PAU10107

PAU10104 PAU10105 PAU10106

PAU10103 PAU10102 PAU10101 PAU10100 COU101 PAU10207

PAU10204 PAU10205

PAU10206

PAU10203 PAU10202

PAU10201

COU102

PAU10306

PAU10305 PAU10304 PAU10303

PAU10302 PAU10301 PAU10300

COU103

PAU10406

PAU10405 PAU10404 PAU10403

PAU10402 PAU10401 PAU10400

COU104

PAU10506

PAU10505 PAU10504 PAU10503

PAU10502 PAU10501 PAU10500

COU105

PAU10606

PAU10605 PAU10604 PAU10603

PAU10602 PAU10601 PAU10600

COU106

PAU10706

PAU10705 PAU10704 PAU10703

PAU10702 PAU10701 PAU10700

COU107

PAU1080A1 PAU1080A2

PAU1080B1 PAU1080B2

PAU1080C1 PAU1080C2 COU108

PAU20001 PAU20002 PAU20003 PAU20004 PAU20005 PAU20006 PAU20007 PAU20008 PAU20009 PAU200010 PAU200011 PAU200012 PAU200013 PAU200014 PAU200015 PAU200016 PAU200017 PAU200018 PAU200019 PAU200020 PAU200021 PAU200022 PAU200023 PAU200024 PAU200025 PAU200026 PAU200027 PAU200028 PAU200029 PAU200030 PAU200031 PAU200032 PAU200033 PAU200034 PAU200035 PAU200036

PAU200037 PAU200038 PAU200039 PAU200040 PAU200041 PAU200042 PAU200043 PAU200044 PAU200045 PAU200046 PAU200047 PAU200048

COU200

PAXC20001

PAXC20002 COXC200

PAXC20101 PAXC20102

PAXC20103 PAXC20104 COXC201

Figure 8-3 AVR128DB48 Curiosity Nano Assembly Drawing Bottom

tcR

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20001 PAC20002 COC200

PAC20101 PAC20102 COC201

PAC20201 PAC20202 COC202 PAC20301

PAC20302 COC203

PAC20401

PAC20402 COC204

PAC20502

PAC20501 COC205

PAC20601

PAC20602 COC206 PAC20701

PAC20702 COC207 PAD10002 PAD10001 COD100

PAD20002

PAD20001 COD200

PAF10002

PAF10001 COF100

PAJ10002 PAJ10001 COJ100

PAJ10101 PAJ10102 COJ101

PAJ10201

PAJ10202

PAJ10203

PAJ10204

PAJ10205

PAJ10206 COJ102

PAJ10506

PAJ10507 PAJ10509

PAJ10508 PAJ105010

PAJ105011 PAJ10505

PAJ10504

PAJ10503

PAJ10502

PAJ10501

PAJ10500

COJ105

PAJ200056 PAJ200053

PAJ200028 PAJ20002 PAJ20001

PAJ200051 PAJ200050 PAJ200052 PAJ200049 PAJ200048 PAJ200047 PAJ200046 PAJ200045 PAJ200044 PAJ200043 PAJ200042 PAJ200041 PAJ200040 PAJ200039 PAJ200038 PAJ200037 PAJ200036 PAJ200035 PAJ200034 PAJ200033 PAJ200032 PAJ200031 PAJ200030 PAJ200029

PAJ20003 PAJ20004 PAJ20005 PAJ20006 PAJ20007 PAJ20008 PAJ20009 PAJ200010 PAJ200011 PAJ200012 PAJ200013 PAJ200014 PAJ200015 PAJ200016 PAJ200017 PAJ200018 PAJ200019 PAJ200020 PAJ200021 PAJ200022 PAJ200023 PAJ200026 PAJ200025 PAJ200024 PAJ200027

PAJ200054 PAJ200055 PAJ20000

COJ200

PAJ20102 PAJ20101 COJ201

PAJ20202 PAJ20201 COJ202

PAJ20302 PAJ20301 COJ203

PAJ20402 PAJ20401 COJ204

PAJ20502 PAJ20501 COJ205

PAJ20602 PAJ20601 COJ206 PAJ20702 PAJ20701 COJ207

PAJ20802 PAJ20801 COJ208

PAJ20902 PAJ20901 COJ209

PAJ21001 PAJ21002 PAJ21005 COJ210

PAJ21102 PAJ21101 PAJ21105 COJ211

PAJ21202 PAJ21201 COJ212

PAJ21301 PAJ21302 PAJ21305 COJ213

PAJ21401 PAJ21402 PAJ21405 COJ214

PAJ21502 PAJ21501 COJ215

PAJ21602 PAJ21601 COJ216 PAJ21702 PAJ21701 COJ217

COLABEL1

PAQ10101 PAQ10102 PAQ10103 PAQ10100

COQ101 PAR10002

PAR10001 COR100 PAR10101 PAR10102 COR101

PAR10202 PAR10201 COR102

PAR10302 PAR10301 COR103

PAR10401 PAR10402 COR104

PAR10502

PAR10501 COR105

PAR10601 PAR10602 COR106

PAR10702 PAR10701 COR107

PAR10801

PAR10802 COR108

PAR10901 PAR10902 COR109

PAR11001 PAR11002 COR110

PAR11101 PAR11102 COR111

PAR11201 PAR11202 COR112

PAR11302 PAR11301 COR113

PAR20001 PAR20002 COR200 PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203 PAR20401 PAR20402 COR204

PASW20003

PASW20004 PASW20002

PASW20001 COSW200

PATP10001 COTP100

PATP10101 COTP101 PAU100033

PAU100032 PAU100031 PAU100030 PAU100029 PAU100028 PAU100027 PAU100026 PAU100025 PAU100024

PAU100023

PAU100022

PAU100021

PAU100020

PAU100019

PAU100018

PAU100017 PAU100016 PAU100015 PAU100014 PAU100013 PAU100012 PAU100011 PAU100010

PAU10001

PAU10002

PAU10003

PAU10004

PAU10005

PAU10006

PAU10007

PAU10008 PAU10009

COU100

PAU10107

PAU10104 PAU10105 PAU10106

PAU10103 PAU10102 PAU10101 PAU10100 COU101 PAU10207

PAU10204 PAU10205

PAU10206

PAU10203 PAU10202

PAU10201

COU102

PAU10306

PAU10305 PAU10304 PAU10303

PAU10302 PAU10301 PAU10300

COU103

PAU10406

PAU10405 PAU10404 PAU10403

PAU10402 PAU10401 PAU10400

COU104

PAU10506

PAU10505 PAU10504 PAU10503

PAU10502 PAU10501 PAU10500

COU105

PAU10606

PAU10605 PAU10604 PAU10603

PAU10602 PAU10601 PAU10600

COU106

PAU10706

PAU10705 PAU10704 PAU10703

PAU10702 PAU10701 PAU10700

COU107

PAU1080A1 PAU1080A2

PAU1080B1 PAU1080B2

PAU1080C1 PAU1080C2 COU108

PAU20001 PAU20002 PAU20003 PAU20004 PAU20005 PAU20006 PAU20007 PAU20008 PAU20009 PAU200010 PAU200011 PAU200012 PAU200013 PAU200014 PAU200015 PAU200016 PAU200017 PAU200018 PAU200019 PAU200020 PAU200021 PAU200022 PAU200023 PAU200024 PAU200025 PAU200026 PAU200027 PAU200028 PAU200029 PAU200030 PAU200031 PAU200032 PAU200033 PAU200034 PAU200035 PAU200036

PAU200037 PAU200038 PAU200039 PAU200040 PAU200041 PAU200042 PAU200043 PAU200044 PAU200045 PAU200046 PAU200047 PAU200048

COU200

PAXC20001

PAXC20002 COXC200

PAXC20101 PAXC20102

PAXC20103 PAXC20104 COXC201

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 36

83 Curiosity Nano Base for Click boardstrade

Figure 8-4 AVR128DB48 Curiosity Nano Pinout Mapping

US

B

DE

BU

GG

ER

AV

R1

28

DB

48

SW

0

LE

D0

PS

LE

DNC

NC

ID

ID

CDC RX

CDCRX

USART3 TX

PB0

CDC TX

CDCTX

USART3 RX

PB1

DBG1

DBG1

PB3

LED0

DBG2

DBG2

PB2

SW0

PF4

PF4

USART2 TX

PF5

PF5

USART2 RX

PA2

PA2

TWI0 SDA

PA3

PA3

TWI0 SCL

PA4

PA4

SPI0 MOSI

PA5

PA5

SPI0 MISO

PA6

PA6

SPI0 SCK

PA7

PA7

SPI0 SS

GND

GND

PB0

PB0

USART3 TX

CDC RX

PB1

PB1

USART3 RX

CDC TX

PF2

PF2

PF3

PF3

PC0

PC0

PC1

PC1

PC2

PC2

PC3

PC3

GND

GND

(PA0)

(PA0)

XTALHF1

(PA1)

(PA1)

XTALHF2

PB2

PB2

SW0

PB3

PB3

LED0

VBUS

VBUS

VOFF

VOFF

DBG3

DBG3

PF6

DBG0

DBG0

UPDI

GND

GND

VTG

VTG

PD6

PD6

AIN6

PD3

PD3

AIN3

OP0 INN

PD2

PD2

AIN2

OP0 OUT

TCA0 WO2

PD1

PD1

AIN1

OP0 INP

TCA0 WO1

PD0

PD0

AIN0

TCA0 WO0

PD7

PD7

AIN7

OP1 INN

PD5

PD5

AIN5

OP1 OUT

PD4

PD4

AIN4

OP1 INP

GND

GND

PE3

PE3

OP2 INN

PE2

PE2

OP2 OUT

PE1

PE1

OP2 INP

PE0

PE0

PC7

PC7

PC6

PC6

PC5

PC5

PC4

PC4

GND

GND

PB5

PB5

PB4

PB4

(PF1)

(PF1)

XTAL32K2

(PF0)

(PF0)

XTAL32K1

DE

BU

GG

ER

AV

R1

28

DB

48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

MVIO

OPAMP

Shared pin

AV

R1

28

DB

48

Cu

rio

sity

Na

no

1

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

2

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

3

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

Xp

lain

ed

Pro

Ext

en

sio

nE

XT

11

2

19

20

Cu

rio

sity

Na

no

Ba

sefo

r cl

ick

bo

ard

sT

M

PD4

PD0

PD6

PD3

PA7

PF5

PA6

PF4

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

PD5

PD1

PF3

PF2

PE2

PB1

PA6

PB0

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

PD7

PD2

PE1

PE0

PE3

PF5

PA6

PF4

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

ID

GND

PD5

PD7

PF3

PE1

PD1

PD2

PF2

PE3

PA2

PA3

PB1

PB0

PE2

PA4

PA5

PA6

GND

+33V

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 37

84 Disconnecting the On-board DebuggerThe on-board debugger and level shifters can be completely disconnected from the AVR128DB48

The block diagram below shows all connections between the debugger and the AVR128DB48 The rounded boxesrepresent connections to the board edge The signal names shown are also printed in silkscreen on the bottom sideof the board

To disconnect the debugger cut the straps shown in Figure 8-6

Attention  Cutting the GPIO straps to the on-board debugger will disable the virtual serial portprogramming debugging and data streaming Cutting the power supply strap will disconnect the on-boardpower supply

Tip  Any connection that is cut can be reconnected using solder Alternatively a 0Ω 0402 resistor can bemounted

Tip  When the debugger is disconnected an external debugger can be connected to holes shown in Figure 8-6 Details about connecting an external debugger are described in 46 Connecting ExternalDebuggers

Figure 8-5  On-Board Debugger Connections Block Diagram

DE

BU

GG

ER

TARGETLevel-Shift

PA04PA06PA07PA08PA16PA00PA01

USB

DIR x 5

VCC_P3V3

VBUS

VC

C_L

EV

EL

VC

C_T

AR

GE

TDBG0DBG1DBG2DBG3CDC TXCDC RX

CDC RX

CDC TX

DBG3

DBG2

DBG1

DBG0

GPIO straps

LDO

VOFF

LDO

VBUS VTG

VCC_EDGE

Power Supply strap Target Power strap

UART RXUART TX

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 38

Figure 8-6 On-Board Debugger Connection Cut Straps

GPIO straps (bottom side) Power Supply strap (top side)

85 Getting Started with IARIAR Embedded Workbenchreg for AVRreg is a proprietary high-efficiency compiler not based on GCC Programming anddebugging of AVR128DB48 Curiosity Nano is supported in IARtrade Embedded Workbench for AVR using the Atmel-ICEinterface Some initial settings must be set up in the project to get the programming and debugging to work

The following steps will explain how to get your project ready for programming and debugging

1 Make sure you have opened the project you want to configure Open the OPTIONS dialog for the project2 In the category General Options select the Target tab Select the device for the project or if not listed the

core of the device as shown in Figure 8-73 In the category Debugger select the Setup tab Select Atmel-ICE as the driver as shown in Figure 8-84 In the category Debugger gt Atmel-ICE select the Atmel-ICE 1 tab Select UPDI as the interface and

optionally select the UPDI frequency as shown in Figure 8-9

Info  If the selection of Debug Port (mentioned in step 4) is grayed out the interface is preselected andthe user can skip this configuration step

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 39

Figure 8-7 Select Target Device

Figure 8-8 Select Debugger

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 40

Figure 8-9 Configure Interface

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 41

The Microchip Website

Microchip provides online support via our website at wwwmicrochipcom This website is used to make files andinformation easily available to customers Some of the content available includes

bull Product Support ndash Data sheets and errata application notes and sample programs design resources userrsquosguides and hardware support documents latest software releases and archived software

bull General Technical Support ndash Frequently Asked Questions (FAQs) technical support requests onlinediscussion groups Microchip design partner program member listing

bull Business of Microchip ndash Product selector and ordering guides latest Microchip press releases listing ofseminars and events listings of Microchip sales offices distributors and factory representatives

Product Change Notification Service

Microchiprsquos product change notification service helps keep customers current on Microchip products Subscribers willreceive email notification whenever there are changes updates revisions or errata related to a specified productfamily or development tool of interest

To register go to wwwmicrochipcompcn and follow the registration instructions

Customer Support

Users of Microchip products can receive assistance through several channels

bull Distributor or Representativebull Local Sales Officebull Embedded Solutions Engineer (ESE)bull Technical Support

Customers should contact their distributor representative or ESE for support Local sales offices are also available tohelp customers A listing of sales offices and locations is included in this document

Technical support is available through the website at wwwmicrochipcomsupport

Microchip Devices Code Protection Feature

Note the following details of the code protection feature on Microchip devices

bull Microchip products meet the specifications contained in their particular Microchip Data Sheetbull Microchip believes that its family of products is secure when used in the intended manner and under normal

conditionsbull There are dishonest and possibly illegal methods being used in attempts to breach the code protection features

of the Microchip devices We believe that these methods require using the Microchip products in a manneroutside the operating specifications contained in Microchiprsquos Data Sheets Attempts to breach these codeprotection features most likely cannot be accomplished without violating Microchiprsquos intellectual property rights

bull Microchip is willing to work with any customer who is concerned about the integrity of its codebull Neither Microchip nor any other semiconductor manufacturer can guarantee the security of its code Code

protection does not mean that we are guaranteeing the product is ldquounbreakablerdquo Code protection is constantlyevolving We at Microchip are committed to continuously improving the code protection features of our productsAttempts to break Microchiprsquos code protection feature may be a violation of the Digital Millennium Copyright ActIf such acts allow unauthorized access to your software or other copyrighted work you may have a right to suefor relief under that Act

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 42

Legal Notice

Information contained in this publication is provided for the sole purpose of designing with and using Microchipproducts Information regarding device applications and the like is provided only for your convenience and may besuperseded by updates It is your responsibility to ensure that your application meets with your specifications

THIS INFORMATION IS PROVIDED BY MICROCHIP ldquoAS ISrdquo MICROCHIP MAKES NO REPRESENTATIONS ORWARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED WRITTEN OR ORAL STATUTORY OROTHERWISE RELATED TO THE INFORMATION INCLUDING BUT NOT LIMITED TO ANY IMPLIEDWARRANTIES OF NON-INFRINGEMENT MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSEOR WARRANTIES RELATED TO ITS CONDITION QUALITY OR PERFORMANCE

IN NO EVENT WILL MICROCHIP BE LIABLE FOR ANY INDIRECT SPECIAL PUNITIVE INCIDENTAL ORCONSEQUENTIAL LOSS DAMAGE COST OR EXPENSE OF ANY KIND WHATSOEVER RELATED TO THEINFORMATION OR ITS USE HOWEVER CAUSED EVEN IF MICROCHIP HAS BEEN ADVISED OF THEPOSSIBILITY OR THE DAMAGES ARE FORESEEABLE TO THE FULLEST EXTENT ALLOWED BY LAWMICROCHIPS TOTAL LIABILITY ON ALL CLAIMS IN ANY WAY RELATED TO THE INFORMATION OR ITS USEWILL NOT EXCEED THE AMOUNT OF FEES IF ANY THAT YOU HAVE PAID DIRECTLY TO MICROCHIP FORTHE INFORMATION Use of Microchip devices in life support andor safety applications is entirely at the buyerrsquos riskand the buyer agrees to defend indemnify and hold harmless Microchip from any and all damages claims suits orexpenses resulting from such use No licenses are conveyed implicitly or otherwise under any Microchip intellectualproperty rights unless otherwise stated

Trademarks

The Microchip name and logo the Microchip logo Adaptec AnyRate AVR AVR logo AVR Freaks BesTimeBitCloud chipKIT chipKIT logo CryptoMemory CryptoRF dsPIC FlashFlex flexPWR HELDO IGLOO JukeBloxKeeLoq Kleer LANCheck LinkMD maXStylus maXTouch MediaLB megaAVR Microsemi Microsemi logo MOSTMOST logo MPLAB OptoLyzer PackeTime PIC picoPower PICSTART PIC32 logo PolarFire Prochip DesignerQTouch SAM-BA SenGenuity SpyNIC SST SST Logo SuperFlash Symmetricom SyncServer TachyonTempTrackr TimeSource tinyAVR UNIO Vectron and XMEGA are registered trademarks of Microchip TechnologyIncorporated in the USA and other countries

APT ClockWorks The Embedded Control Solutions Company EtherSynch FlashTec Hyper Speed ControlHyperLight Load IntelliMOS Libero motorBench mTouch Powermite 3 Precision Edge ProASIC ProASIC PlusProASIC Plus logo Quiet-Wire SmartFusion SyncWorld Temux TimeCesium TimeHub TimePictra TimeProviderVite WinPath and ZL are registered trademarks of Microchip Technology Incorporated in the USA

Adjacent Key Suppression AKS Analog-for-the-Digital Age Any Capacitor AnyIn AnyOut BlueSky BodyComCodeGuard CryptoAuthentication CryptoAutomotive CryptoCompanion CryptoController dsPICDEMdsPICDEMnet Dynamic Average Matching DAM ECAN EtherGREEN In-Circuit Serial Programming ICSPINICnet Inter-Chip Connectivity JitterBlocker KleerNet KleerNet logo memBrain Mindi MiWi MPASM MPFMPLAB Certified logo MPLIB MPLINK MultiTRAK NetDetach Omniscient Code Generation PICDEMPICDEMnet PICkit PICtail PowerSmart PureSilicon QMatrix REAL ICE Ripple Blocker SAM-ICE Serial QuadIO SMART-IS SQI SuperSwitcher SuperSwitcher II Total Endurance TSHARC USBCheck VariSenseViewSpan WiperLock Wireless DNA and ZENA are trademarks of Microchip Technology Incorporated in the USAand other countries

SQTP is a service mark of Microchip Technology Incorporated in the USA

The Adaptec logo Frequency on Demand Silicon Storage Technology and Symmcom are registered trademarks ofMicrochip Technology Inc in other countries

GestIC is a registered trademark of Microchip Technology Germany II GmbH amp Co KG a subsidiary of MicrochipTechnology Inc in other countries

All other trademarks mentioned herein are property of their respective companiescopy 2020 Microchip Technology Incorporated Printed in the USA All Rights Reserved

ISBN 978-1-5224-6667-3

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 43

Quality Management SystemFor information regarding Microchiprsquos Quality Management Systems please visit wwwmicrochipcomquality

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 44

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupportwwwmicrochipcomsupportWeb AddresswwwmicrochipcomAtlantaDuluth GATel 678-957-9614Fax 678-957-1455Austin TXTel 512-257-3370BostonWestborough MATel 774-760-0087Fax 774-760-0088ChicagoItasca ILTel 630-285-0071Fax 630-285-0075DallasAddison TXTel 972-818-7423Fax 972-818-2924DetroitNovi MITel 248-848-4000Houston TXTel 281-894-5983IndianapolisNoblesville INTel 317-773-8323Fax 317-773-5453Tel 317-536-2380Los AngelesMission Viejo CATel 949-462-9523Fax 949-462-9608Tel 951-273-7800Raleigh NCTel 919-844-7510New York NYTel 631-435-6000San Jose CATel 408-735-9110Tel 408-436-4270Canada - TorontoTel 905-695-1980Fax 905-695-2078

Australia - SydneyTel 61-2-9868-6733China - BeijingTel 86-10-8569-7000China - ChengduTel 86-28-8665-5511China - ChongqingTel 86-23-8980-9588China - DongguanTel 86-769-8702-9880China - GuangzhouTel 86-20-8755-8029China - HangzhouTel 86-571-8792-8115China - Hong Kong SARTel 852-2943-5100China - NanjingTel 86-25-8473-2460China - QingdaoTel 86-532-8502-7355China - ShanghaiTel 86-21-3326-8000China - ShenyangTel 86-24-2334-2829China - ShenzhenTel 86-755-8864-2200China - SuzhouTel 86-186-6233-1526China - WuhanTel 86-27-5980-5300China - XianTel 86-29-8833-7252China - XiamenTel 86-592-2388138China - ZhuhaiTel 86-756-3210040

India - BangaloreTel 91-80-3090-4444India - New DelhiTel 91-11-4160-8631India - PuneTel 91-20-4121-0141Japan - OsakaTel 81-6-6152-7160Japan - TokyoTel 81-3-6880- 3770Korea - DaeguTel 82-53-744-4301Korea - SeoulTel 82-2-554-7200Malaysia - Kuala LumpurTel 60-3-7651-7906Malaysia - PenangTel 60-4-227-8870Philippines - ManilaTel 63-2-634-9065SingaporeTel 65-6334-8870Taiwan - Hsin ChuTel 886-3-577-8366Taiwan - KaohsiungTel 886-7-213-7830Taiwan - TaipeiTel 886-2-2508-8600Thailand - BangkokTel 66-2-694-1351Vietnam - Ho Chi MinhTel 84-28-5448-2100

Austria - WelsTel 43-7242-2244-39Fax 43-7242-2244-393Denmark - CopenhagenTel 45-4485-5910Fax 45-4485-2829Finland - EspooTel 358-9-4520-820France - ParisTel 33-1-69-53-63-20Fax 33-1-69-30-90-79Germany - GarchingTel 49-8931-9700Germany - HaanTel 49-2129-3766400Germany - HeilbronnTel 49-7131-72400Germany - KarlsruheTel 49-721-625370Germany - MunichTel 49-89-627-144-0Fax 49-89-627-144-44Germany - RosenheimTel 49-8031-354-560Israel - RarsquoananaTel 972-9-744-7705Italy - MilanTel 39-0331-742611Fax 39-0331-466781Italy - PadovaTel 39-049-7625286Netherlands - DrunenTel 31-416-690399Fax 31-416-690340Norway - TrondheimTel 47-72884388Poland - WarsawTel 48-22-3325737Romania - BucharestTel 40-21-407-87-50Spain - MadridTel 34-91-708-08-90Fax 34-91-708-08-91Sweden - GothenbergTel 46-31-704-60-40Sweden - StockholmTel 46-8-5090-4654UK - WokinghamTel 44-118-921-5800Fax 44-118-921-5820

Worldwide Sales and Service

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 45

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Board Overview
      • 2 Getting Started
        • 21 Quick Start
          • 211 Driver Installation
          • 212 Kit Window
          • 213 MPLABreg X IDE Device Family Packs
          • 214 Atmel Studio 7 Device Family Pack
            • 22 Design Documentation and Relevant Links
              • 3 Preprogrammed Application
              • 4 Curiosity Nano
                • 41 On-Board Debugger Overview
                  • 411 Debugger
                  • 412 Virtual Serial Port (CDC)
                    • 4121 Overview
                    • 4122 Operating System Support
                    • 4123 Limitations
                    • 4124 Signaling
                    • 4125 Advanced Use
                      • 413 Mass Storage Device
                        • 4131 Mass Storage Device Implementation
                        • 4132 Limitations of Drag-and-Drop Programming
                        • 4133 Special Commands
                          • 414 Data Gateway Interface (DGI)
                            • 4141 Debug GPIO
                            • 4142 Timestamping
                                • 42 Curiosity Nano Standard Pinout
                                • 43 Power Supply
                                  • 431 Target Regulator
                                  • 432 External Supply
                                  • 433 VBUS Output Pin
                                  • 434 Power Supply Exceptions
                                    • 44 Low-Power Measurement
                                    • 45 Programming External Microcontrollers
                                      • 451 Supported Devices
                                      • 452 Software Configuration
                                      • 453 Hardware Modifications
                                      • 454 Connecting to External Microcontrollers
                                        • 46 Connecting External Debuggers
                                          • 5 Hardware User Guide
                                            • 51 Connectors
                                              • 511 AVR128DB48 Curiosity Nano Pinout
                                              • 512 Using Pin Headers
                                              • 513 Multi-Voltage IO
                                              • 514 Operational Amplifiers
                                                • 52 Peripherals
                                                  • 521 LED
                                                  • 522 Mechanical Switch
                                                  • 523 32768 kHz Crystal
                                                  • 524 1600 MHz Crystal
                                                  • 525 On-Board Debugger Implementation
                                                    • 5251 On-Board Debugger Connections
                                                      • 6 Hardware Revision History and Known Issues
                                                        • 61 Identifying Product ID and Revision
                                                        • 62 Revision 3
                                                        • 63 Revision 2
                                                          • 7 Document Revision History
                                                          • 8 Appendix
                                                            • 81 Schematic
                                                            • 82 Assembly Drawing
                                                            • 83 Curiosity Nano Base for Click boardstrade
                                                            • 84 Disconnecting the On-board Debugger
                                                            • 85 Getting Started with IAR
                                                              • The Microchip Website
                                                              • Product Change Notification Service
                                                              • Customer Support
                                                              • Microchip Devices Code Protection Feature
                                                              • Legal Notice
                                                              • Trademarks
                                                              • Quality Management System
                                                              • Worldwide Sales and Service
Page 15: AVR128DB48 Curiosity Nano Hardware User Guideww1.microchip.com/downloads/en/DeviceDoc/AVR128DB48-Curiosit… · 4. Curiosity Nano Curiosity Nano is an evaluation platform of small

continuedDebugger Signal Target MCU Description

VBUS mdash VBUS voltage for external use

VOFF mdash Voltage Off input Disables the target regulator andtarget voltage when pulled low

VTG mdash Target voltage

GND mdash Common ground

Figure 4-3 Curiosity Nano Standard Pinout

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

43 Power SupplyThe board is powered through the USB port and contains two LDO regulators one to generate 33V for the on-boarddebugger and an adjustable LDO regulator for the target microcontroller AVR128DB48 and its peripherals Thevoltage from the USB connector can vary between 44V to 525V (according to the USB specification) and will limitthe maximum voltage to the target The figure below shows the entire power supply system on AVR128DB48Curiosity Nano

Figure 4-4 Power Supply Block Diagram

USBTarget MCU

Power source

Cut strap

Power consumer P3V3DEBUGGER

Power converter

DEBUGGERRegulator

VUSB

TargetRegulator

Power Supply strap

Adjust

Level shifter

VLVLVREG

IO IO GPIOstraps

IO

OnOffMeasure OnOff

ID systemVOFF

PTC Fuse

Power protection

VBUS

Target Power strap

VTG

431 Target RegulatorThe target voltage regulator is a MIC5353 variable output LDO The on-board debugger can adjust the voltage outputsupplied to the board target section by manipulating the MIC5353rsquos feedback voltage The hardware implementation

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 15

is limited to an approximate voltage range from 17V to 51V Additional output voltage limits are configured in thedebugger firmware to ensure that the output voltage never exceeds the hardware limits of the AVR128DB48microcontroller The voltage limits configured in the on-board debugger on AVR128DB48 Curiosity Nano are 18ndash55V

Info  The target voltage is set to 33V when the board is manufactured It can be changed throughMPLABreg X IDE project properties and in the Atmel Studio 7 device programming dialog Any change tothe target voltage is persistent even after a power toggle The resolution is less than 5 mV but may belimited to 10 mV by the adjustment program

Info  Voltage settings that are set up in MPLABreg X IDE are not immediately applied to the board Thenew voltage setting is applied to the board when the debugger is accessed in any way like pushing theRefresh Debug Tool Status button in the project dashboard tab or programmingreading program memory

Info  There is a simple option to adjust the target voltage with a drag-and-drop command text file to theboard This supports a set of common target voltages See section 4133 Special Commands for furtherdetails

The MIC5353 supports a maximum current load of 500 mA It is an LDO regulator in a small package placed on asmall printed circuit board (PCB) and the thermal shutdown condition can be reached at lower loads than 500 mAThe maximum current load depends on the input voltage the selected output voltage and the ambient temperatureThe figure below shows the safe operating area for the regulator with an input voltage of 51V and an ambienttemperature of 23degC

Figure 4-5 Target Regulator Safe Operation Area

The voltage output of the target regulator is continuously monitored (measured) by the on-board debugger If it ismore than 100 mV overunder the voltage setting value an error condition will be flagged and the target voltageregulator will be turned off This will detect and handle any short-circuit conditions It will also detect and handle if anexternal voltage which causes VCC_TARGET to move outside of the voltage setting monitoring window of plusmn100 mVis suddenly applied to the VTG pin without setting the VOFF pin low

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 16

Info  If the external voltage is lower than the monitoring window lower limit (target voltage setting ndash 100mV) the on-board debugger status LED will blink rapidly If the external voltage is higher than themonitoring window upper limit (target voltage setting + 100 mV) the on-board debugger status LED willcontinue to shine If the external voltage is removed the status LED will start to blink rapidly until the on-board debugger detects the new situation and turns the target voltage regulator back on

432 External SupplyAVR128DB48 Curiosity Nano can be powered by an external voltage instead of the on-board target regulator Whenthe Voltage Off (VOFF) pin is shorted to ground (GND) the on-board debugger firmware disables the target regulatorand it is safe to apply an external voltage to the VTG pin

It is also safe to apply an external voltage to the VTG pin when no USB cable is plugged into the DEBUG connectoron the board

The VOFF pin can be tied lowlet go at any time This will be detected by a pin-change interrupt to the on-boarddebugger which controls the target voltage regulator accordingly

WARNINGApplying an external voltage to the VTG pin without shorting VOFF to GND may cause permanent damageto the board

WARNINGDo not apply any voltage to the VOFF pin Let the pin float to enable the power supply

WARNINGAbsolute maximum external voltage is 55V for the on-board level shifters and the standard operatingcondition of the AVR128DB48 is 18ndash55V Applying a higher voltage may cause permanent damage to theboard

Info  If an external voltage is applied without pulling the VOFF pin low and an external supply pulls thevoltage lower than the monitoring windowrsquos lower limit (target voltage setting - 100 mV) the on-boarddebugger status LED will blink rapidly and shut the on-board regulator off If an external voltage issuddenly removed when the VOFF pin is not pulled low the status LED will start to blink rapidly until theon-board debugger detects the new situation and switches the target voltage regulator back on

Programming debugging and data streaming is still possible with an external power supply ndash the debugger andsignal level shifters will be powered from the USB cable Both regulators the debugger and the level shifters arepowered down when the USB cable is removed

Info  In addition to the power consumed by the AVR128DB48 and its peripherals approximately 100 microAwill be drawn from any external power source to power the on-board level shifters and voltage monitorcircuitry when a USB cable is plugged in the DEBUG connector on the board When a USB cable is notplugged in some current is used to supply the level shifters voltage pins which have a worst-case currentconsumption of approximately 5 microA Typical values may be as low as 100 nA

433 VBUS Output PinAVR128DB48 Curiosity Nano has a VBUS output pin that can be used to power external components that need a 5Vsupply The VBUS output pin has a PTC fuse to protect the USB against short circuits A side effect of the PTC fuseis a voltage drop on the VBUS output with higher current loads The chart below shows the voltage versus the currentload of the VBUS output

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 17

Figure 4-6 VBUS Output Voltage vs Current

434 Power Supply ExceptionsThis is a summary of most exceptions that can occur with the power supply

Target Voltage Shuts DownThis can happen if the target section draws too much current at a given voltage This will cause the thermal shutdownsafety feature of the MIC5353 regulator to kick in To avoid this reduce the current load of the target section

Target Voltage Setting is Not ReachedThe maximum output voltage is limited by the USB input voltage (specified to be 44-525V) and the voltage dropover the MIC5353 regulator at a given voltage setting and current consumption If a higher output voltage is neededuse a USB power source that can provide a higher input voltage or use an external voltage supply on the VTG pin

Target Voltage is Different From SettingThis can be caused by an externally applied voltage to the VTG pin without setting the VOFF pin low If the targetvoltage differs more than 100 mV overunder the voltage setting it will be detected by the on-board debugger andthe internal voltage regulator will be shut down To fix this issue remove the applied voltage from the VTG pin andthe on-board debugger will enable the on-board voltage regulator when the new condition is detected Note that thePS LED will be blinking rapidly if the target voltage is below 100 mV of the setting but will be lit normally when it ishigher than 100 mV above the setting

No Or Very Low Target Voltage and PS LED is Blinking RapidlyThis can be caused by a full or partial short-circuit and is a special case of the issue mentioned above Remove theshort-circuit and the on-board debugger will re-enable the on-board target voltage regulator

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 18

No Target Voltage and PS LED is Lit 1This occurs if the target voltage is set to 00V To fix this set the target voltage to a value within the specified voltagerange for the target device

No Target Voltage and PS LED is Lit 2This can be the issue if power jumper J100 andor J101 is cut and the target voltage regulator is set to a value withinthe specified voltage range for the target device To fix this solder a wirebridge between the pads for J100J101 oradd a jumper on J101 if a pin header is mounted

VBUS Output Voltage is Low or Not PresentThis is most lightly caused by a high-current drain on VBUS and the protection fuse (PTC) will reduce the current orcut off completely Reduce the current consumption on the VBUS pin to fix this issue

44 Low-Power MeasurementPower to the AVR128DB48 is connected from the on-board power supply and VTG pin through a 100 mil pin headermarked with ldquoPOWERrdquo in silkscreen (J101) To measure the power consumption of the AVR128DB48 and otherperipherals connected to the board cut the Target Power strap and connect an ammeter over the strap

To measure the lowest possible power consumption follow these steps1 Cut the POWER strap with a sharp tool2 Solder a 1x2 100 mil pin header in the footprint3 Connect an ammeter to the pin header4 Write firmware that

41 Tri-states any IO connected to the on-board debugger42 Sets the microcontroller in its lowest power Sleep state

5 Program the firmware into the AVR128DB48

Figure 4-7 Target Power Strap

Target Power strap (top side)

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 19

Tip  A 100-mil pin header can be soldered into the Target Power strap (J101) footprint for easyconnection of an ammeter Once the ammeter is no longer needed place a jumper cap on the pin header

Info  The on-board level shifters will draw a small amount of current even when they are not in use Amaximum of 2 microA can be drawn from each IO pin connected to a level shifter for a total of 10 microA Keepany IO pin connected to a level shifter in tri-state to prevent leakage All IOs connected to the on-boarddebugger are listed in 5251 On-Board Debugger Connections To prevent any leakage to the on-boardlevel shifters they can be disconnected completely as described in 84 Disconnecting the On-boardDebugger

45 Programming External MicrocontrollersThe on-board debugger on AVR128DB48 Curiosity Nano can be used to program and debug microcontrollers onexternal hardware

451 Supported DevicesAll external AVR microcontrollers with the UPDI interface can be programmed and debugged with the on-boarddebugger with Atmel Studio

External SAM microcontrollers that have a Curiosity Nano Board can be programmed and debugged with the on-board debugger with Atmel Studio

AVR128DB48 Curiosity Nano can program and debug external AVR128DB48 microcontrollers with MPLAB X IDE

452 Software ConfigurationNo software configuration is required to program and debug the same device that is mounted on the board

To program and debug a different microcontroller than what is mounted on the board Atmel Studio must beconfigured to allow free selection of devices and programming interfaces

1 Navigate to Tools gt Options through the menu system at the top of the application2 Select the Tools gt Tool settings category in the options window3 Set the Hide unsupported devices option to False

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 20

Figure 4-8 Hide Unsupported Devices

Info  Atmel Studio allows any microcontroller and interface to be selected when Hide unsupporteddevices is set to False also microcontrollers and interfaces which are not supported by the on-boarddebugger

453 Hardware ModificationsThe on-board debugger is connected to the AVR128DB48 by default These connections must be removed beforeany external microcontroller can be programmed or debugged Cut the GPIO straps shown in the figure below with asharp tool to disconnect the AVR128DB48 from the on-board debugger

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 21

Figure 4-9 Programming and Debugging Connections to Debugger

GPIO straps (bottom side)

Info  Cutting the connections to the debugger will disable programming debugging and data streamingfrom the AVR128DB48 mounted on the board

Tip  Solder in 0Ω resistors across the footprints or short-circuit them with solder to reconnect the signalsbetween the on-board debugger and the AVR128DB48

454 Connecting to External MicrocontrollersThe figure and table below show where the programming and debugging signals must be connected to program anddebug external microcontrollers The on-board debugger can supply power to the external hardware or use anexternal voltage as a reference for its level shifters Read more about the power supply in 43 Power Supply

The on-board debugger and level shifters actively drive data and clock signals (DBG0 DBG1 and DBG2) used forprogramming and debugging and in most cases the external resistor on these signals can be ignored Pull-downresistors are required on the ICSPtrade data and clock signals to debug PICreg microcontrollers

DBG3 is an open-drain connection and requires a pull-up resistor to function

AVR128DB48 Curiosity Nano has a pull-up resistor R200 connected to its RESET signal (DBG3) The location ofthe pull-up resistor is shown in the 82 Assembly Drawing in the appendix

Remember bull Connect GND and VTG to the external microcontrollerbull Tie the VOFF pin to GND if the external hardware has its own power supplybull Make sure there are pull-down resistors on the ICSP data and clock signals (DBG0 and DBG1) to

support the debugging of PIC microcontrollers

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 22

Figure 4-10 Curiosity Nano Standard Pinout

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

Table 4-4 Programming and Debugging Interfaces

Curiosity Nano Pin UPDI ICSPtrade SWD

DBG0 UPDI DATA SWDIO

DBG1 mdash CLK SWCLK

DBG2 mdash mdash mdash

DBG3 mdash MCLR RESET

46 Connecting External DebuggersEven though there is an on-board debugger external debuggers can be connected directly to the AVR128DB48Curiosity Nano to programdebug the AVR128DB48 The on-board debugger keeps all the pins connected to theAVR128DB48 and board edge in tri-state when not actively used Therefore the on-board debugger will not interferewith any external debug tools

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 23

Figure 4-11 Connecting the MPLABreg PICkittrade 4 In-Circuit DebuggerProgrammer to AVR128DB48 CuriosityNano

2345678 1

VDD

GroundDATA

2 = VDD

3 = Ground

4 = PGD

5 = Unused

6 = Unused

7 = Unused

8 = Unused

1 = Unused

MPLABreg PICkittrade 4

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 24

Figure 4-12 Connecting the Atmel-ICE to AVR128DB48 Curiosity Nano

VDD

Ground

DATA

AVRregSAM

3 = UPDI

4 = VTG

5 = Unused

6 = Unused

7 = Unused

8 = Unused

1 = Unused

2 = GND

9 = Unused

10 = Unused

Atmel-ICE

21 9

10

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

CAUTIONTo avoid contention between the external debugger and the on-board debugger do not start anyprogrammingdebug operation with the on-board debugger through MPLABreg X IDE or Atmel Studio 7 ormass storage programming while the external tool is active

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 25

5 Hardware User Guide

51 Connectors

511 AVR128DB48 Curiosity Nano PinoutAll the AVR128DB48 IO pins are accessible at the edge connectors on the board The image below shows the boardpinout For all available functions on each pin refer to the IO Multiplexing and Considerations section in theAVR128DB48 data sheet

Figure 5-1 AVR128DB48 Curiosity Nano Pinout

USB

DEBUGGER

AVR128DB48

SW0

LED0

PS LEDNC

NC

IDID

CDC RX

CD

CR

XUSART3 TXPB0

CDC TX

CD

CT

XUSART3 RXPB1

DBG1

DB

G1PB3LED0

DBG2

DB

G2PB2SW0

PF4

PF

4USART2 TX

PF5

PF

5USART2 RX

PA2

PA

2TWI0 SDA

PA3

PA

3TWI0 SCL

PA4

PA

4SPI0 MOSI

PA5

PA

5SPI0 MISO

PA6

PA

6SPI0 SCK

PA7

PA

7SPI0 SS

GND

GN

D

PB0

PB

0USART3 TXCDC RX

PB1

PB

1USART3 RXCDC TX

PF2

PF

2

PF3

PF

3

PC0

PC

0

PC1

PC

1

PC2

PC

2

PC3

PC

3

GND

GN

D

(PA0)

(PA

0)XTALHF1

(PA1)

(PA

1)XTALHF2

PB2

PB

2SW0

PB3

PB

3LED0

VBUS

VB

US

VOFF

VO

FF

DBG3

DB

G3 PF6

DBG0

DB

G0 UPDI

GND

GN

D

VTG

VT

G

PD6

PD

6 AIN6

PD3

PD

3 AIN3 OP0 INN

PD2

PD

2 AIN2 OP0 OUT TCA0 WO2

PD1

PD

1 AIN1 OP0 INP TCA0 WO1

PD0

PD

0 AIN0 TCA0 WO0

PD7

PD

7 AIN7 OP1 INN

PD5

PD

5 AIN5 OP1 OUT

PD4

PD

4 AIN4 OP1 INP

GND

GN

D

PE3

PE

3 OP2 INN

PE2

PE

2 OP2 OUT

PE1

PE

1 OP2 INP

PE0

PE

0

PC7

PC

7

PC6

PC

6

PC5

PC

5

PC4

PC

4

GND

GN

D

PB5

PB

5

PB4

PB

4

(PF1)

(PF

1) XTAL32K2

(PF0)

(PF

0) XTAL32K1

DEBUGGERAVR128DB48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

MVIO

OPAMP

Shared pin

AVR128DB48Curiosity Nano

512 Using Pin HeadersThe edge connector footprint on AVR128DB48 Curiosity Nano has a staggered design where each hole is shifted 8mil (~02 mm) off-center The hole shift allows the use of regular 100 mil pin headers on the board without solderingOnce the pin headers are firmly in place they can be used in normal applications like pin sockets and prototypingboards without any issues

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 26

Figure 5-2 Attaching Pin-Headers to the Curiostiy Nano Board

Figure 5-3 Connecting to Curiosity Nano Base for Click boardstrade

Tip  Start at one end of the pin header and gradually insert the header along the length of the boardOnce all the pins are in place use a flat surface to push them in

Tip  For applications where the pin headers will be used permanently it is still recommended to solderthem in place

Important  Once the pin headers are in place they are hard to remove by hand Use a set of pliers andcarefully remove the pin headers to avoid damage to the pin headers and PCB

513 Multi-Voltage IO

The AVR128DB48 Curiosity Nano MCU has support for Multi-Voltage IO (MVIO) AVR128DB48 MVIO pins areconnected to the edge connector at PC0-PC7 MVIO pins are capable of regular IO-pin behavior

MVIO can be configured in one of two supply modesbull Single-Supply mode All IO pins including MVIO-capable pins are powered by VCC_TARGET By default

VCC_TARGET is connected to VDDIO2 through a 0-ohm resistor (R204)bull Dual-Supply mode MVIO-capable pins are powered by an external power supply connected to VDDIO2 Non-

MVIO pins are powered by VCC_TARGET

Dual-Supply mode allows MVIO-pins to be powered at different voltages than pins powered from VCC_TARGET

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 27

WARNINGThe absolute maximum external voltage range for the AVR128DB48 is 18ndash55V Applying a higher voltagemay cause permanent damage to the board

By default AVR128DB48 Curiosity Nano board is configured for single-supply mode To use Dual-Supply mode somehardware modifications are required

WARNINGBefore any hardware modifications are done make sure the board is disconnected from USB or externalpower

bull Disconnect resistor R204 connecting VDDIO2 to VCC_TARGETbull Connect a new power supply to VDDIO2 and ground at J212bull J212 does not have reverse polarity protection Make sure to match polarity between the power supply and

J212 Positive-polarity to J212-pin 1 and negative-polarity to J212-pin 2

The resistor R204 VDDIO2 and J212 can be seen in Figure 5-4

Figure 5-4 MVIO and VDDIO2 Connections

J212 R204

WARNINGApplying an external voltage to VDDIO2 pin without removing resistor R204 may cause permanentdamage to the board

WARNINGJ212 does not have reverse polarity protection Applying voltage to the wrong pin may cause permanentdamage to the board

514 Operational AmplifiersAVR128DB48 features three internal operational amplifiers with a flexible connection scheme using analogmultiplexers and resistor ladders This allows a large number of analog signal conditioning configurations manyrequiring no external components

Table 5-1 OPAMP Pin Connections

OPAMP Poisitive Input (INP) Negative Input (INN) Output (OUT)

OP0 PD1 PD3 PD2

OP1 PD4 PD7 PD5

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 28

continuedOPAMP Poisitive Input (INP) Negative Input (INN) Output (OUT)

OP2 PE1 PE3 PE2

For information about OPAMP on the edge connector and any shared functionality see 511 AVR128DB48 CuriosityNano Pinout

52 Peripherals

521 LEDThere is one yellow user LED available on the AVR128DB48 Curiosity Nano board that can be controlled by eitherGPIO or PWM The LED can be activated by driving the connected IO line to GND

Table 5-2 LED Connection

AVR128DB48 Pin Function Shared Functionality

PB3 Yellow LED0 Edge connector On-board debugger

522 Mechanical SwitchThe AVR128DB48 Curiosity Nano board has one mechanical switch This is a generic user-configurable switchWhen the switch is pressed it will drive the IO line to ground (GND)

Tip  There is no externally connected pull-up resistor on the switch To use the switch make sure that aninternal pull-up resistor is enabled on pin PB2

Table 5-3 Mechanical Switch

AVR128DB48 Pin Description Shared Functionality

PB2 User switch (SW0) Edge connector On-board debugger

523 32768 kHz Crystal

On the AVR128DB48 Curiosity Nano board is a mounted 32768 kHz crystal of type VMK3-9001-32K7680000 thecrystal is accurate to within 20 ppm Using the External 32768 kHz Crystal Oscillator (XOSC32K) module inAVR128DB48 with the mounted 32768 kHz crystal generates a clock signal that is significantly more accurate thanthe Internal 32768 kHz Ultra Low-Power Oscillator (OSC32K) module can generate alone With the Auto-Tunefeature the 32768 kHz can be used as a reference to improve the accuracy of the internal oscillator This is an idealreference clock for the Real-Time Counter module in AVR128DB48

The 32768 kHz crystal is connected to AVR128DB48 on PF0 and PF1 which are also routed to the edge connectorthrough two solder points PF0 and PF1 are disconnected from the edge connector by default to reduce the chanceof an external signal causing contention with the crystal and to remove excessive capacitance on the lines

Next to the 32768 kHz crystal is a cut-strap (J209) which can be used to measure the oscillator safety factor This isdone by cutting the strap and adding a 0402 SMD resistor across the strap More information about oscillatorallowance and safety factor can be found in the AN2648 application note from Microchip

Cut straps and solder points can be seen in Figure 5-5

Table 5-4 32768 kHz Crystal Connections

AVR128DB48 Pin Function Shared Functionality

PF0 XTAL32K1 (Crystal input) Edge connector

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 29

continuedAVR128DB48 Pin Function Shared Functionality

PF1 XTAL32K2 (Crystal output) Edge connector

PA0 and PA1 can be used as GPIO To do so some hardware modifications are required

WARNINGBefore any hardware modifications are done make sure the board is disconnected from the USB orexternal power

bull Disconnect the 32768 kHz crystal by cutting the two straps on the top side of the board next to the crystal(J207 J208) The crystal should be disconnected when using the pin as GPIO as this might harm the crystal

bull Connect the IO lines to the edge connector by placing solder blobs on the circular solder points marked PF0and PF1 on the bottom side of the board (J210 J211)

Figure 5-5 Crystal Connection and Cut Straps

Top side Boom side

J211

J210

J207

J20832768 kHz Crystal

J209

524 1600 MHz Crystal

On the AVR128DB48 Curiosity Nano board is a mounted 1600 MHz crystal of type VXM7-9040-16M0000000 thecrystal is accurate to within 20 ppm Using the External High-Frequency Crystal Oscillator (XOSCHF) module inAVR128DB48 with the mounted 1600 MHz crystal generates a clock signal that is significantly more accurate thanthe Internal High-Frequency Oscillator (OSCHF) module

The 1600 MHz crystal is connected to AVR128DB48 on PA0 and PA1 which are also routed to the edge connectorthrough two solder points PA0 and PA1 are disconnected from the edge connector by default to reduce the chanceof an external signal causing contention with the crystal and to remove excessive capacitance on the lines

Next to the 1600 MHz crystal is a cut-strap (J217) which can be used to measure the oscillator safety factor This isdone by cutting the strap and adding a 0402 SMD resistor across the strap More information about oscillatorallowance and safety factor can be found in the AN2648 application note from Microchip

Cut straps and solder points can be seen in Figure 5-6

Table 5-5 Crystal Connections

AVR128DB48 Pin Function Shared Functionality

PA0 XTALHF1 (Crystal input) Edge connector

PA1 XTALHF2 (Crystal output) Edge connector

PA0 and PA1 can be used as GPIO To do so some hardware modifications are required

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 30

WARNINGBefore any hardware modifications are done make sure the board is disconnected from USB or externalpower

bull Disconnect the 1600 MHz crystal by cutting the two straps on the top side of the board next to the crystal (J215J216) The crystal should be disconnected when using the pin as GPIO as this might harm the crystal

bull Connect the IO lines to the edge connector by placing solder blobs on the circular solder points marked PA0and PA1 on the bottom side of the board (J213 J214)

Figure 5-6 Crystal Connection and Cut Straps

Top side Boom side

J214

J213

J216

J2151600 MHzCrystal

J217

525 On-Board Debugger ImplementationAVR128DB48 Curiosity Nano features an on-board debugger that can be used to program and debug theAVR128DB48 using UPDI The on-board debugger also includes a virtual serial port (CDC) interface over UART anddebug GPIO Both MPLABreg X IDE and Atmel Studio 7 can be used as a front-end for the on-board debugger forprogramming and debugging MPLAB Data Visualizer can be used as a front-end for the CDC and debug GPIO

5251 On-Board Debugger ConnectionsThe table below shows the connections between the target and the debugger section All connections between thetarget and the debugger are tri-stated as long as the debugger is not actively using the interface Hence since thereare little contaminations of the signals the pins can be configured to anything the user wants

For further information on how to use the capabilities of the on-board debugger see 41 On-Board DebuggerOverview

Table 5-6 On-Board Debugger Connections

AVR128DB48Pin

Debugger Pin Function Shared Functionality

PB1 CDC TX UART RX (AVR128DB48 RX line) Edge connector

PB0 CDC RX UART TX (AVR128DB48 TX line) Edge connector

UPDI DBG0 UPDI Edge connector

PB3 DBG1 LED0Debug GPIO1 Edge connector

PB2 DBG2 SW0Debug GPIO0 Edge connector

PF6 DBG3 RESET Edge connector

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 31

6 Hardware Revision History and Known IssuesThis user guide is written to provide information about the latest available revision of the board The followingsections contain information about known issues a revision history of older revisions and how older revisions differfrom the latest revision

61 Identifying Product ID and RevisionThe revision and product identifier of the AVR128DB48 Curiosity Nano Board can be found in two ways Either byutilizing the MPLABreg X IDE or Atmel Studio 7 Kit Window or by looking at the sticker on the bottom side of the PCB

By connecting AVR128DB48 Curiosity Nano to a computer with MPLABreg X IDE or Atmel Studio 7 running the KitWindow will pop up The first six digits of the serial number which is listed under kit information contain the productidentifier and revision

Tip  The Kit Window can be opened in MPLABreg X IDE through the menu bar Window gt Kit Window

The same information can be found on the sticker on the bottom side of the PCB Most boards will have the identifierand revision printed in plain text as A09-nnnnrr where ldquonnnnrdquo is the identifier and ldquorrrdquo is the revision Boards withlimited space have a sticker with only a data matrix code containing the product identifier revision and serialnumber

The serial number string has the following format

nnnnrrssssssssss

n = product identifier

r = revision

s = serial number

The product identifier for AVR128DB48 Curiosity Nano is A09‑3372

62 Revision 3AVR128DB48 silicon revision A5 or later is mounted on this revision of the board

63 Revision 2Revision 2 is the initially released board revision

AVR128DB48 silicon revision A4 is mounted on this revision of the board

AVR128DB48 Curiosity NanoHardware Revision History and Known Issues

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 32

7 Document Revision HistoryDoc Rev Date Comments

A 092020 Initial document release

AVR128DB48 Curiosity NanoDocument Revision History

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 33

8 Appendix

81 SchematicFigure 8-1 AVR128DB48 Curiosity Nano Schematic

11

22

33

44

55

66

77

88

DD

CC

BB

AA

2 of

4

AV

R12

8DB

48 C

uri

osit

y N

ano

240

820

20A

VR

128D

B48

_Cur

iosi

ty_N

ano_

Targ

et_M

CU

Sch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA

Rev

isio

n

File

P

CB

Num

ber

PC

B

Rev

isio

n

Des

ign

ed w

ith

Dra

wn

By

ML

Shee

t Titl

e

Targ

et M

CU

Eng

inee

rA

H

A08

-305

71

Size

A3

A09

-337

22

Page

D

ateA

ltium

com

GN

D

VD

DIO

2

100n

C20

1

GN

D

PA5_

SPI0

_MIS

OPA

6_SP

I0_S

CK

PA7_

SPI0

_SS

PB0_

USA

RT

3_T

XPB

1_U

SAR

T3_

RX

PB2_

SW0_

DB

G2

PB3_

LE

D0_

DB

G1

PB

4P

B5

PC

0P

C1

PC

2

PC3

PC4PC5PC6PC7PD0_AIN0_TCA0_WO0PD1_AIN1_OP0_INP_TCA0_WO1PD2_AIN2_OP0_OUT_TCA0_WO2PD3_AIN3_OP0_INNPD4_AIN4_OP1_INP

PA3_TWI0_SCL

PA1_XTALHF2

UPDI_DBG0

PF5_USART2_RX

PF3

PF

2PF

1_X

TA

L32

K2

PF0_

XT

AL

32K

1P

E3_

OP

2_IN

NP

E2_

OP

2_O

UT

PE

1_O

P2_

INP

PE

0

PD5_

AIN

5_O

P1_

OU

TPD

6_A

IN6

PD7_

AIN

7_O

P1_

INN

GN

D

VC

C_T

AR

GE

T

100n

C20

2

GN

DV

CC

_TA

RG

ET

100n

C20

0

PF1_XTAL32K2

PF0_XTAL32K1

PA2_TWI0_SDA

PA0_XTALHF1

PF4_USART2_TX

PA4_SPI0_MOSI

GN

D

PA7_

SPI0

_SS

PA6_

SPI0

_SC

KPA

5_SP

I0_M

ISO

PA4_

SPI0

_MO

SIPA

3_T

WI0

_SC

LPA

2_T

WI0

_SD

A

PC

0P

C1

PC

2P

C3

PB

4P

B5

PD7_

AIN

7_O

P1_

INN

PD6_

AIN

6

PD2_

AIN

2_O

P0_

OU

T_T

CA

0_W

O2

PD1_

AIN

1_O

P0_

INP_

TC

A0_

WO

1PD

0_A

IN0_

TC

A0_

WO

0

PD5_

AIN

5_O

P1_

OU

TPD

4_A

IN4_

OP

1_IN

P

PD3_

AIN

3_O

P0_

INN

32K

Hz

Cry

stal

PB0_

USA

RT

3_T

XPB

1_U

SAR

T3_

RX

1kR203

US

ER

LE

D

VC

C_T

AR

GE

T

PF6_DBG3

PB2_SW0_DBG2

PB3_LED0_DBG1

GN

D

USE

R B

UT

TO

N

PB3_

LE

D0_

DB

G1

PB2_

SW0_

DB

G2

PB1_

USA

RT

3_R

XPB

0_U

SAR

T3_

TX

PF4_

USA

RT

2_T

XPF

5_U

SAR

T2_

RX

PF

2P

F3

PC

4P

C5

PC

6P

C7

1kR202

YELLOWLEDSML-D12Y1WT86

2 1

D200

TS604VM1-035CR13

4 2

SW20

0

GN

DV

CC

_ED

GE

GN

DG

ND

GN

DG

ND

UPD

I_D

BG

0P

F6_

DB

G3

J209

PB3_

LE

D0_

DB

G1

PB2_

SW0_

DB

G2

AV

R12

8DB

48

22u

FC

205

VC

C_E

DG

E

GN

D

DBG0

CDC_TXCDC_RX

DBG2

DBG1

DBG3

DBG2

DE

BU

GG

ER

CO

NN

EC

TIO

NS

DBG1

DBG3DBG0

VOFF

ID_SYS

ID_SYS

VOFF

TA

RG

ET

BU

LK

VC

C_T

AR

GE

TR

ESE

T P

ull

VB

US

CD

C R

X3

CD

C T

X4

DB

G1

5

DB

G2

6

0 T

X7

1 R

X8

2 SD

A9

3 S

CL

10

4 M

OSI

11

5 M

ISO

12

6 S

CK

13

7 S

S14

GN

D15

0 (T

X)

16

1 (R

X)

17

218

319

020

GN

D24

DB

G3

54

DB

G0

53

GN

D52

VC

C51

PW

M 3

46

AD

C 2

45

AD

C 1

44

AD

C 0

43

GN

D42

438

434

GN

D33

AD

C 7

50

AD

C 6

49

AD

C 5

48

PW

M 4

47

DE

BU

GG

ER

TAR

GE

T

ID2

VO

FF

55

121

222

323

025

126

227

328

429

530

631

732

535

636

737

539

640

741

RE

SER

VE

D1

VB

US

56

CN

AN

O56

-pin

edg

e co

nnec

tor

J200

J201

J203

J205

J206

J202

J204

PF1_

XT

AL

32K

2PF

0_X

TA

L32

K1

NC

XOUT

XIN

47kR200

AV

R12

8DB

48

UPD

I

GPI

O1

GPI

O0

RE

SET

DB

G0

DB

G1

DB

G2

DB

G3

Deb

ugge

r

CD

C T

X

CD

C R

X

UA

RT

3 R

X

UA

RT

3 T

X

VT

G1

8V -

55

VPB

3

PB

2

PF

6

UP

DI

PB

0

PB

1

Nam

eP

in

PE

3_O

P2_

INN

PE

2_O

P2_

OU

TP

E1_

OP

2_IN

PP

E0

J207

J208

PF

0P

F1

PA5

1

PA6

2

PA7

3

PB0

4

PB1

5

PB2

6

PB3

7

PB4

8

PB5

9

PC0

10

PC1

11

PC2

12

PC313

VDDIO214

GND15

PC416

PC517

PC618

PC719

PD020

PD121

PD222

PD323

PD424

PD5

25

PD6

26

PD7

27

AVDD

28

GND

29

PE0

30

PE1

31

PE2

32

PE3

33

XTAL32K1PF0

34

XTAL32K2PF1

35

PF2

36

PF337

PF438

PF539

PF640

UPDI41

VDD42

GND43

XTALHF1PA044

XTALHF2PA145

PA246

PA347

PA448

AV

R12

8DB

48-I

PT

U20

0

0RR204

GN

D

VC

C_T

AR

GE

T

VDDIO2

GND

J210

J211

82p

C20

48

2pC

203

GN

DG

ND

16M

Hz

Cry

stal

J217

XHFOUT

XHFIN

J214

J213

GN

D

J215

J216

PA0_XTALHF1

PA1_XTALHF2

PA0_

XT

AL

HF

1PA

1_X

TA

LH

F2

PA0

PA1

1 2

J212 N

M

15pF

C20

615

pFC

207

13

24 16

000

MH

zV

XM

7-90

40-1

6M00

0000

0TR

XC

201

GN

D32

768

kHz

VM

K3-

9001

-32K

7680

000T

R

XC

200

CDC_TX

CDC_RX

CD

C_T

XC

DC

_RX

Cry

stal

dat

ashe

et

Ccr

ysta

l = 9

pFm

ax E

SR

= 7

0kO

hmA

ccur

acy

plusmn20p

pm

AV

R48

DB

128

data

shee

tC

xin

= 4

0pF

(ty

pica

l val

ue)

Cxo

ut =

40

pF (

typi

cal v

alue

)C

lasymp1

( (1

40

pF)+

(1

40p

F)

)asymp

20p

FM

axim

um L

oad

= 1

25p

FM

axim

um E

SR =

50k

Ohm

Est

imat

ed C

pcb

= 0

5pF

Est

imat

ed lo

adC

= 2

(C

crys

tal-

Cpa

ra -

Cpc

b)C

= 2

(9p

F -

20

pF -

05

pF)

C =

13

0pF

Sele

cted

in d

esig

n af

ter

veri

fica

tion

C=

82

pF8

2pF

NO

TE

on

UA

RT

CD

C

RX

TX

onth

ehe

ader

deno

tes

the

inpu

tout

put d

irec

tion

of th

e si

gnal

resp

ectiv

e to

its

sou

rce

CD

C T

X is

out

put f

rom

the

DE

BU

GG

ER

C

DC

RX

is in

put t

o th

e D

EB

UG

GE

R

TX

is o

utpu

t fro

m th

e T

AR

GE

T d

evic

eR

X is

inpu

t to

the

TA

RG

ET

dev

ice

NO

TE

on

I2C

No

pull

-ups

on

boar

d P

ull-

ups

shou

ld b

em

ount

ed c

lose

to s

lave

dev

ice(

s)

WA

RN

ING

M

ake

sure

tore

mov

e R

204

befo

reap

plyi

ng p

ower

to J

212

Cry

stal

dat

ashe

et

Ccr

ysta

l = 1

2pF

max

ES

R =

60O

hmA

ccur

acy

plusmn30p

pm

AV

R48

DB

128

data

shee

tC

xin

= 4

0pF

(ty

pica

l val

ue)

Cxo

ut =

40

pF (

typi

cal v

alue

)C

lasymp1

( (1

40

pF)+

(1

40p

F)

)asymp

20p

FM

axim

um L

oad

= 1

25p

FM

axim

um E

SR =

k

Ohm

Est

imat

ed C

pcb

= 0

5pF

Est

imat

ed lo

adC

= 2

(C

crys

tal-

Cpa

ra -

Cpc

b)C

= 2

(12

pF -

20

pF -

05

pF)

C =

19

0pF

Sele

cted

in d

esig

n af

ter

veri

fica

tion

C=

15p

F1

5pF

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 34

11

22

33

44

55

66

77

88

DD

CC

BB

AA

3 of

4

AV

R12

8DB

48 C

uri

osit

y N

ano

2020

-06-

26A

VR

128D

B48

_Cur

iosi

ty_N

ano_

Deb

ugge

rSch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA

Rev

isio

n

Fil

eP

CB

Num

ber

PC

B

Rev

isio

n

Des

ign

ed w

ith

Dra

wn

By

ML

Shee

t Tit

le

Deb

ugge

r

Eng

inee

rA

H

A08

-305

71

Size

A3

A09

-337

22

Page

D

ateA

ltium

com

DE

BU

GG

ER

USB

MIC

RO

-B C

ON

NE

CT

OR

GN

D

USB

D_P

USB

D_N

100n

C10

7

100n

C10

8

1kR

107

VC

C_P

3V3

SRST

STA

TU

S_L

ED

SHIE

LD

VB

US

VC

C_P

3V3

GN

D

TP

100

Test

poin

t Arr

ay

12

34

56

78

910

TC

KT

DO

TM

SV

sup

TD

IG

ND

TR

STSR

STV

Tre

fG

ND

J102

GN

D

47u

F

C10

0

DBG0

DB

G0

21

GR

EE

N L

ED

SML

-P12

MT

T86

R

D10

0

VBUS

1

D-

2

D+

3

GND

5

SHIELD1

6

SHIELD2

7

ID

4

SHIELD3

8

SHIELD4

9 MU

-MB

0142

AB

2-26

9

J105

PAD

33

PA00

1

PA01

2

PA02

3

PA03

4

GND 10VDDANA 9

PA04

5

PA05

6

PA06

7

PA07

8

PA08 11

PA09 12

PA10 13

PA11 14

PA14 15

PA15 16

PA16

17

PA17

18

PA18

19

PA19

20

PA22

21

USB_SOFPA23

22

USB_DMPA24

23

USB_DPPA25

24

PA2725 RESETN26 PA2827 GND28 VDDCORE29 VDDIN30 SWDCLKPA3031 SWDIOPA3132

SAM

D21

E18

A-M

UT

U10

0

VOUT

1

VOUT

2

GND 3

EN

4

VIN

6

NC

5

EP 7

MIC

5528

-33

YM

TU

101

VC

C_P

3V3

GN

D

USB

D_P

USB

D_N

GN

D

1uC

106

VC

C_M

CU

_CO

RE

VC

C_P

3V3

VC

C_P

3V3

22u

FC

101

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

3

VC

C_P

3V3

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

4

VC

C_P

3V3

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

5

VC

C_P

3V3

GN

D

GN

D GN

D

GN

D

VC

C_E

DG

E

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

7

VC

C_P

3V3

GN

DDBG2

DB

G3_

CT

RL

S1_0

_TX

S1_1

_RX

S0_2

_TX

DA

CV

TG

_AD

C

RE

SER

VE

D

S0_3

_CL

K

DBG0_CTRL

CD

C_T

X_C

TR

L

BO

OT

DE

BU

GG

ER

PO

WE

RS

TA

TU

S L

ED

EN

1

BYP

6

VOUT

4

GND

2

VIN

3

NCADJ

5

GND

7

MIC

5353

U10

2

100n

C10

2

GN

D

GN

D

47kR101

27kR104 G

ND

33k

R10

6

22u

F

C10

3 GN

D

1kR

108

J100

VC

C_L

EV

EL

VC

C_R

EG

UL

AT

OR

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

6

VC

C_P

3V3

GN

DDBG1

CD

C_R

X

CD

C_T

X

DBG3

DBG1_CTRL

DE

BU

GG

ER

RE

GU

LA

TO

R

REG_ENABLE

RE

G_E

NA

BL

E

47kR103

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

47kR102

47kR105

SWC

LK

GN

D

47kR100 G

ND

DB

G2

S0_0

_RX

DB

G1_

CT

RL

DB

G0_

CT

RL

DB

G3

OP

EN

DR

AIN

TA

RG

ET

AD

JUST

AB

LE

RE

GU

LA

TO

R

SRST

DE

BU

GG

ER

TE

ST

PO

INT DBG2_CTRL

VO

FF

CD

C_R

X_C

TR

L

47kR109

DB

G1

CD

C_T

X_C

TR

L

CD

C_R

X_C

TR

L

SWC

LK

REG_ADJUST

DBG2_GPIO

DB

G3_

CT

RL

DB

G2_

CT

RL

UP

DI

UPD

I

GPI

O

GPI

O

RE

SET

Sign

al

DB

G0

DB

G1

DB

G2

DB

G3

ICS

PIn

terf

ace

DA

T

CL

K

GPI

O

MC

LR

DB

G3

CD

C T

X

CD

C R

X

UA

RT

RX

UA

RT

TX

UA

RT

RX

UA

RT

TX

TA

RG

ET

TA

RG

ET

1kR

110

VBUS_ADC

1

23

DM

N65

D8L

FB

Q10

1

VC

C-

-

ID_SYS

VOFF

1kR112

VC

C_P

3V3

VT

G_A

DC

DA

C

MIC

9416

3

VIN

B2

VOUT

A1

VIN

A2

EN

C2

GND

C1

VOUT

B1

U10

8

GN

D

ID_S

YS

VT

G_E

N

VTG_EN

VBUS_ADC

SWD

IO

ID_S

YS

TP

101

GN

DSW

DIO

VO

FF

47kR111 G

ND

ID P

IN

MC

3621

3

F10

0

VC

C_V

BU

S

VC

C_V

BU

S

VC

C_V

BU

S

J101

VC

C_T

AR

GE

T

47k

R11

3

CDC_TX

CDC_RX

Prog

ram

min

g co

nnec

tor

for

fact

ory

prog

ram

min

g of

DE

BU

GG

ER

MIC

5528

V

in 2

5V

to 5

5V

Vou

t F

ixed

33

VIm

ax 5

00m

AD

ropo

ut 2

60m

V

500

mA

MIC

5353

V

in 2

6V

to 6

VV

out

12

5V to

51

VIm

ax 5

00m

AD

ropo

ut (

typi

cal)

50m

V

150m

A 1

60m

V

500

mA

Acc

urac

y 2

in

itia

lT

herm

al s

hutd

own

and

curr

ent l

imit

Max

imum

out

put v

olta

ge is

lim

ited

by

the

inpu

t vol

tage

and

the

drop

out v

olta

ge in

the

regu

lato

r(V

max

= V

in -

dro

pout

)

J100

-

Cut

-str

ap u

sed

for

full

sep

arat

ion

of ta

rget

pow

er f

rom

the

leve

l shi

fter

s an

don

-boa

rd r

egul

ator

s-

For

cur

rent

mea

sure

men

ts u

sing

the

on-b

oard

pow

er s

uppl

y th

isst

rap

mus

t be

cut a

nd a

nam

met

er c

onne

cted

acr

oss

- F

or c

urre

nt m

easu

rem

ents

usi

ng a

n ex

tern

al p

ower

sup

ply

this

str

ap c

ould

be

cut f

or m

ore

accu

rate

mea

sure

men

ts L

eaka

ge b

ack

thro

ugh

the

swit

ch is

in th

e m

icro

am

pere

ran

ge

PT

C R

eset

tabl

e fu

se

Hol

d cu

rren

t 5

00m

AT

rip

curr

ent

100

0mA

Adj

usta

ble

outp

ut a

nd li

mit

atio

ns

- T

he D

EB

UG

GE

R c

an a

djus

t the

out

put v

olta

ge o

f th

e re

gula

tor

betw

een

125

V a

nd 5

1V

to th

e ta

rget

-

The

vol

tage

out

put i

s li

mit

ed b

y th

e in

put (

US

B)

whi

ch c

an v

ary

betw

een

440

V to

52

5V-

The

leve

l shi

fter

s ha

ve a

min

imal

vol

tage

leve

l of

165

V a

nd w

ill l

imit

the

min

imum

ope

ratin

g vo

ltage

all

owed

for

the

targ

et to

sti

ll a

llow

com

mun

icat

ion

- T

he M

IC94

163

has

a m

inim

al v

olat

ege

leve

l of

170

V a

nd w

ill l

imit

the

min

imum

vol

tage

del

iver

ed to

the

targ

et

- F

irm

war

e co

nfig

urat

ion

wil

l lim

it th

e vo

ltage

ran

ge to

be

wit

hin

the

the

targ

et s

peci

fica

tion

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 35

82 Assembly DrawingFigure 8-2 AVR128DB48 Curiosity Nano Assembly Drawing Top

+

Cb

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20001 PAC20002 COC200

PAC20101 PAC20102 COC201

PAC20201 PAC20202 COC202 PAC20301

PAC20302 COC203

PAC20401

PAC20402 COC204

PAC20502

PAC20501 COC205

PAC20601

PAC20602 COC206 PAC20701

PAC20702 COC207 PAD10002 PAD10001 COD100

PAD20002

PAD20001 COD200

PAF10002

PAF10001 COF100

PAJ10002 PAJ10001 COJ100

PAJ10101 PAJ10102 COJ101

PAJ10201

PAJ10202

PAJ10203

PAJ10204

PAJ10205

PAJ10206 COJ102

PAJ10506

PAJ10507 PAJ10509

PAJ10508 PAJ105010

PAJ105011 PAJ10505

PAJ10504

PAJ10503

PAJ10502

PAJ10501

PAJ10500

COJ105

PAJ200056 PAJ200053

PAJ200028 PAJ20002 PAJ20001

PAJ200051 PAJ200050 PAJ200052 PAJ200049 PAJ200048 PAJ200047 PAJ200046 PAJ200045 PAJ200044 PAJ200043 PAJ200042 PAJ200041 PAJ200040 PAJ200039 PAJ200038 PAJ200037 PAJ200036 PAJ200035 PAJ200034 PAJ200033 PAJ200032 PAJ200031 PAJ200030 PAJ200029

PAJ20003 PAJ20004 PAJ20005 PAJ20006 PAJ20007 PAJ20008 PAJ20009 PAJ200010 PAJ200011 PAJ200012 PAJ200013 PAJ200014 PAJ200015 PAJ200016 PAJ200017 PAJ200018 PAJ200019 PAJ200020 PAJ200021 PAJ200022 PAJ200023 PAJ200026 PAJ200025 PAJ200024 PAJ200027

PAJ200054 PAJ200055 PAJ20000

COJ200

PAJ20102 PAJ20101 COJ201

PAJ20202 PAJ20201 COJ202

PAJ20302 PAJ20301 COJ203

PAJ20402 PAJ20401 COJ204

PAJ20502 PAJ20501 COJ205

PAJ20602 PAJ20601 COJ206 PAJ20702 PAJ20701 COJ207

PAJ20802 PAJ20801 COJ208

PAJ20902 PAJ20901 COJ209

PAJ21001 PAJ21002 PAJ21005 COJ210

PAJ21102 PAJ21101 PAJ21105 COJ211

PAJ21202 PAJ21201 COJ212

PAJ21301 PAJ21302 PAJ21305 COJ213

PAJ21401 PAJ21402 PAJ21405 COJ214

PAJ21502 PAJ21501 COJ215

PAJ21602 PAJ21601 COJ216 PAJ21702 PAJ21701 COJ217

COLABEL1

PAQ10101 PAQ10102 PAQ10103 PAQ10100

COQ101 PAR10002

PAR10001 COR100 PAR10101 PAR10102 COR101

PAR10202 PAR10201 COR102

PAR10302 PAR10301 COR103

PAR10401 PAR10402 COR104

PAR10502

PAR10501 COR105

PAR10601 PAR10602 COR106

PAR10702 PAR10701 COR107

PAR10801

PAR10802 COR108

PAR10901 PAR10902 COR109

PAR11001 PAR11002 COR110

PAR11101 PAR11102 COR111

PAR11201 PAR11202 COR112

PAR11302 PAR11301 COR113

PAR20001 PAR20002 COR200 PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203 PAR20401 PAR20402 COR204

PASW20003

PASW20004 PASW20002

PASW20001 COSW200

PATP10001 COTP100

PATP10101 COTP101 PAU100033

PAU100032 PAU100031 PAU100030 PAU100029 PAU100028 PAU100027 PAU100026 PAU100025 PAU100024

PAU100023

PAU100022

PAU100021

PAU100020

PAU100019

PAU100018

PAU100017 PAU100016 PAU100015 PAU100014 PAU100013 PAU100012 PAU100011 PAU100010

PAU10001

PAU10002

PAU10003

PAU10004

PAU10005

PAU10006

PAU10007

PAU10008 PAU10009

COU100

PAU10107

PAU10104 PAU10105 PAU10106

PAU10103 PAU10102 PAU10101 PAU10100 COU101 PAU10207

PAU10204 PAU10205

PAU10206

PAU10203 PAU10202

PAU10201

COU102

PAU10306

PAU10305 PAU10304 PAU10303

PAU10302 PAU10301 PAU10300

COU103

PAU10406

PAU10405 PAU10404 PAU10403

PAU10402 PAU10401 PAU10400

COU104

PAU10506

PAU10505 PAU10504 PAU10503

PAU10502 PAU10501 PAU10500

COU105

PAU10606

PAU10605 PAU10604 PAU10603

PAU10602 PAU10601 PAU10600

COU106

PAU10706

PAU10705 PAU10704 PAU10703

PAU10702 PAU10701 PAU10700

COU107

PAU1080A1 PAU1080A2

PAU1080B1 PAU1080B2

PAU1080C1 PAU1080C2 COU108

PAU20001 PAU20002 PAU20003 PAU20004 PAU20005 PAU20006 PAU20007 PAU20008 PAU20009 PAU200010 PAU200011 PAU200012 PAU200013 PAU200014 PAU200015 PAU200016 PAU200017 PAU200018 PAU200019 PAU200020 PAU200021 PAU200022 PAU200023 PAU200024 PAU200025 PAU200026 PAU200027 PAU200028 PAU200029 PAU200030 PAU200031 PAU200032 PAU200033 PAU200034 PAU200035 PAU200036

PAU200037 PAU200038 PAU200039 PAU200040 PAU200041 PAU200042 PAU200043 PAU200044 PAU200045 PAU200046 PAU200047 PAU200048

COU200

PAXC20001

PAXC20002 COXC200

PAXC20101 PAXC20102

PAXC20103 PAXC20104 COXC201

Figure 8-3 AVR128DB48 Curiosity Nano Assembly Drawing Bottom

tcR

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20001 PAC20002 COC200

PAC20101 PAC20102 COC201

PAC20201 PAC20202 COC202 PAC20301

PAC20302 COC203

PAC20401

PAC20402 COC204

PAC20502

PAC20501 COC205

PAC20601

PAC20602 COC206 PAC20701

PAC20702 COC207 PAD10002 PAD10001 COD100

PAD20002

PAD20001 COD200

PAF10002

PAF10001 COF100

PAJ10002 PAJ10001 COJ100

PAJ10101 PAJ10102 COJ101

PAJ10201

PAJ10202

PAJ10203

PAJ10204

PAJ10205

PAJ10206 COJ102

PAJ10506

PAJ10507 PAJ10509

PAJ10508 PAJ105010

PAJ105011 PAJ10505

PAJ10504

PAJ10503

PAJ10502

PAJ10501

PAJ10500

COJ105

PAJ200056 PAJ200053

PAJ200028 PAJ20002 PAJ20001

PAJ200051 PAJ200050 PAJ200052 PAJ200049 PAJ200048 PAJ200047 PAJ200046 PAJ200045 PAJ200044 PAJ200043 PAJ200042 PAJ200041 PAJ200040 PAJ200039 PAJ200038 PAJ200037 PAJ200036 PAJ200035 PAJ200034 PAJ200033 PAJ200032 PAJ200031 PAJ200030 PAJ200029

PAJ20003 PAJ20004 PAJ20005 PAJ20006 PAJ20007 PAJ20008 PAJ20009 PAJ200010 PAJ200011 PAJ200012 PAJ200013 PAJ200014 PAJ200015 PAJ200016 PAJ200017 PAJ200018 PAJ200019 PAJ200020 PAJ200021 PAJ200022 PAJ200023 PAJ200026 PAJ200025 PAJ200024 PAJ200027

PAJ200054 PAJ200055 PAJ20000

COJ200

PAJ20102 PAJ20101 COJ201

PAJ20202 PAJ20201 COJ202

PAJ20302 PAJ20301 COJ203

PAJ20402 PAJ20401 COJ204

PAJ20502 PAJ20501 COJ205

PAJ20602 PAJ20601 COJ206 PAJ20702 PAJ20701 COJ207

PAJ20802 PAJ20801 COJ208

PAJ20902 PAJ20901 COJ209

PAJ21001 PAJ21002 PAJ21005 COJ210

PAJ21102 PAJ21101 PAJ21105 COJ211

PAJ21202 PAJ21201 COJ212

PAJ21301 PAJ21302 PAJ21305 COJ213

PAJ21401 PAJ21402 PAJ21405 COJ214

PAJ21502 PAJ21501 COJ215

PAJ21602 PAJ21601 COJ216 PAJ21702 PAJ21701 COJ217

COLABEL1

PAQ10101 PAQ10102 PAQ10103 PAQ10100

COQ101 PAR10002

PAR10001 COR100 PAR10101 PAR10102 COR101

PAR10202 PAR10201 COR102

PAR10302 PAR10301 COR103

PAR10401 PAR10402 COR104

PAR10502

PAR10501 COR105

PAR10601 PAR10602 COR106

PAR10702 PAR10701 COR107

PAR10801

PAR10802 COR108

PAR10901 PAR10902 COR109

PAR11001 PAR11002 COR110

PAR11101 PAR11102 COR111

PAR11201 PAR11202 COR112

PAR11302 PAR11301 COR113

PAR20001 PAR20002 COR200 PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203 PAR20401 PAR20402 COR204

PASW20003

PASW20004 PASW20002

PASW20001 COSW200

PATP10001 COTP100

PATP10101 COTP101 PAU100033

PAU100032 PAU100031 PAU100030 PAU100029 PAU100028 PAU100027 PAU100026 PAU100025 PAU100024

PAU100023

PAU100022

PAU100021

PAU100020

PAU100019

PAU100018

PAU100017 PAU100016 PAU100015 PAU100014 PAU100013 PAU100012 PAU100011 PAU100010

PAU10001

PAU10002

PAU10003

PAU10004

PAU10005

PAU10006

PAU10007

PAU10008 PAU10009

COU100

PAU10107

PAU10104 PAU10105 PAU10106

PAU10103 PAU10102 PAU10101 PAU10100 COU101 PAU10207

PAU10204 PAU10205

PAU10206

PAU10203 PAU10202

PAU10201

COU102

PAU10306

PAU10305 PAU10304 PAU10303

PAU10302 PAU10301 PAU10300

COU103

PAU10406

PAU10405 PAU10404 PAU10403

PAU10402 PAU10401 PAU10400

COU104

PAU10506

PAU10505 PAU10504 PAU10503

PAU10502 PAU10501 PAU10500

COU105

PAU10606

PAU10605 PAU10604 PAU10603

PAU10602 PAU10601 PAU10600

COU106

PAU10706

PAU10705 PAU10704 PAU10703

PAU10702 PAU10701 PAU10700

COU107

PAU1080A1 PAU1080A2

PAU1080B1 PAU1080B2

PAU1080C1 PAU1080C2 COU108

PAU20001 PAU20002 PAU20003 PAU20004 PAU20005 PAU20006 PAU20007 PAU20008 PAU20009 PAU200010 PAU200011 PAU200012 PAU200013 PAU200014 PAU200015 PAU200016 PAU200017 PAU200018 PAU200019 PAU200020 PAU200021 PAU200022 PAU200023 PAU200024 PAU200025 PAU200026 PAU200027 PAU200028 PAU200029 PAU200030 PAU200031 PAU200032 PAU200033 PAU200034 PAU200035 PAU200036

PAU200037 PAU200038 PAU200039 PAU200040 PAU200041 PAU200042 PAU200043 PAU200044 PAU200045 PAU200046 PAU200047 PAU200048

COU200

PAXC20001

PAXC20002 COXC200

PAXC20101 PAXC20102

PAXC20103 PAXC20104 COXC201

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 36

83 Curiosity Nano Base for Click boardstrade

Figure 8-4 AVR128DB48 Curiosity Nano Pinout Mapping

US

B

DE

BU

GG

ER

AV

R1

28

DB

48

SW

0

LE

D0

PS

LE

DNC

NC

ID

ID

CDC RX

CDCRX

USART3 TX

PB0

CDC TX

CDCTX

USART3 RX

PB1

DBG1

DBG1

PB3

LED0

DBG2

DBG2

PB2

SW0

PF4

PF4

USART2 TX

PF5

PF5

USART2 RX

PA2

PA2

TWI0 SDA

PA3

PA3

TWI0 SCL

PA4

PA4

SPI0 MOSI

PA5

PA5

SPI0 MISO

PA6

PA6

SPI0 SCK

PA7

PA7

SPI0 SS

GND

GND

PB0

PB0

USART3 TX

CDC RX

PB1

PB1

USART3 RX

CDC TX

PF2

PF2

PF3

PF3

PC0

PC0

PC1

PC1

PC2

PC2

PC3

PC3

GND

GND

(PA0)

(PA0)

XTALHF1

(PA1)

(PA1)

XTALHF2

PB2

PB2

SW0

PB3

PB3

LED0

VBUS

VBUS

VOFF

VOFF

DBG3

DBG3

PF6

DBG0

DBG0

UPDI

GND

GND

VTG

VTG

PD6

PD6

AIN6

PD3

PD3

AIN3

OP0 INN

PD2

PD2

AIN2

OP0 OUT

TCA0 WO2

PD1

PD1

AIN1

OP0 INP

TCA0 WO1

PD0

PD0

AIN0

TCA0 WO0

PD7

PD7

AIN7

OP1 INN

PD5

PD5

AIN5

OP1 OUT

PD4

PD4

AIN4

OP1 INP

GND

GND

PE3

PE3

OP2 INN

PE2

PE2

OP2 OUT

PE1

PE1

OP2 INP

PE0

PE0

PC7

PC7

PC6

PC6

PC5

PC5

PC4

PC4

GND

GND

PB5

PB5

PB4

PB4

(PF1)

(PF1)

XTAL32K2

(PF0)

(PF0)

XTAL32K1

DE

BU

GG

ER

AV

R1

28

DB

48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

MVIO

OPAMP

Shared pin

AV

R1

28

DB

48

Cu

rio

sity

Na

no

1

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

2

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

3

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

Xp

lain

ed

Pro

Ext

en

sio

nE

XT

11

2

19

20

Cu

rio

sity

Na

no

Ba

sefo

r cl

ick

bo

ard

sT

M

PD4

PD0

PD6

PD3

PA7

PF5

PA6

PF4

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

PD5

PD1

PF3

PF2

PE2

PB1

PA6

PB0

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

PD7

PD2

PE1

PE0

PE3

PF5

PA6

PF4

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

ID

GND

PD5

PD7

PF3

PE1

PD1

PD2

PF2

PE3

PA2

PA3

PB1

PB0

PE2

PA4

PA5

PA6

GND

+33V

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 37

84 Disconnecting the On-board DebuggerThe on-board debugger and level shifters can be completely disconnected from the AVR128DB48

The block diagram below shows all connections between the debugger and the AVR128DB48 The rounded boxesrepresent connections to the board edge The signal names shown are also printed in silkscreen on the bottom sideof the board

To disconnect the debugger cut the straps shown in Figure 8-6

Attention  Cutting the GPIO straps to the on-board debugger will disable the virtual serial portprogramming debugging and data streaming Cutting the power supply strap will disconnect the on-boardpower supply

Tip  Any connection that is cut can be reconnected using solder Alternatively a 0Ω 0402 resistor can bemounted

Tip  When the debugger is disconnected an external debugger can be connected to holes shown in Figure 8-6 Details about connecting an external debugger are described in 46 Connecting ExternalDebuggers

Figure 8-5  On-Board Debugger Connections Block Diagram

DE

BU

GG

ER

TARGETLevel-Shift

PA04PA06PA07PA08PA16PA00PA01

USB

DIR x 5

VCC_P3V3

VBUS

VC

C_L

EV

EL

VC

C_T

AR

GE

TDBG0DBG1DBG2DBG3CDC TXCDC RX

CDC RX

CDC TX

DBG3

DBG2

DBG1

DBG0

GPIO straps

LDO

VOFF

LDO

VBUS VTG

VCC_EDGE

Power Supply strap Target Power strap

UART RXUART TX

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 38

Figure 8-6 On-Board Debugger Connection Cut Straps

GPIO straps (bottom side) Power Supply strap (top side)

85 Getting Started with IARIAR Embedded Workbenchreg for AVRreg is a proprietary high-efficiency compiler not based on GCC Programming anddebugging of AVR128DB48 Curiosity Nano is supported in IARtrade Embedded Workbench for AVR using the Atmel-ICEinterface Some initial settings must be set up in the project to get the programming and debugging to work

The following steps will explain how to get your project ready for programming and debugging

1 Make sure you have opened the project you want to configure Open the OPTIONS dialog for the project2 In the category General Options select the Target tab Select the device for the project or if not listed the

core of the device as shown in Figure 8-73 In the category Debugger select the Setup tab Select Atmel-ICE as the driver as shown in Figure 8-84 In the category Debugger gt Atmel-ICE select the Atmel-ICE 1 tab Select UPDI as the interface and

optionally select the UPDI frequency as shown in Figure 8-9

Info  If the selection of Debug Port (mentioned in step 4) is grayed out the interface is preselected andthe user can skip this configuration step

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 39

Figure 8-7 Select Target Device

Figure 8-8 Select Debugger

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 40

Figure 8-9 Configure Interface

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 41

The Microchip Website

Microchip provides online support via our website at wwwmicrochipcom This website is used to make files andinformation easily available to customers Some of the content available includes

bull Product Support ndash Data sheets and errata application notes and sample programs design resources userrsquosguides and hardware support documents latest software releases and archived software

bull General Technical Support ndash Frequently Asked Questions (FAQs) technical support requests onlinediscussion groups Microchip design partner program member listing

bull Business of Microchip ndash Product selector and ordering guides latest Microchip press releases listing ofseminars and events listings of Microchip sales offices distributors and factory representatives

Product Change Notification Service

Microchiprsquos product change notification service helps keep customers current on Microchip products Subscribers willreceive email notification whenever there are changes updates revisions or errata related to a specified productfamily or development tool of interest

To register go to wwwmicrochipcompcn and follow the registration instructions

Customer Support

Users of Microchip products can receive assistance through several channels

bull Distributor or Representativebull Local Sales Officebull Embedded Solutions Engineer (ESE)bull Technical Support

Customers should contact their distributor representative or ESE for support Local sales offices are also available tohelp customers A listing of sales offices and locations is included in this document

Technical support is available through the website at wwwmicrochipcomsupport

Microchip Devices Code Protection Feature

Note the following details of the code protection feature on Microchip devices

bull Microchip products meet the specifications contained in their particular Microchip Data Sheetbull Microchip believes that its family of products is secure when used in the intended manner and under normal

conditionsbull There are dishonest and possibly illegal methods being used in attempts to breach the code protection features

of the Microchip devices We believe that these methods require using the Microchip products in a manneroutside the operating specifications contained in Microchiprsquos Data Sheets Attempts to breach these codeprotection features most likely cannot be accomplished without violating Microchiprsquos intellectual property rights

bull Microchip is willing to work with any customer who is concerned about the integrity of its codebull Neither Microchip nor any other semiconductor manufacturer can guarantee the security of its code Code

protection does not mean that we are guaranteeing the product is ldquounbreakablerdquo Code protection is constantlyevolving We at Microchip are committed to continuously improving the code protection features of our productsAttempts to break Microchiprsquos code protection feature may be a violation of the Digital Millennium Copyright ActIf such acts allow unauthorized access to your software or other copyrighted work you may have a right to suefor relief under that Act

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 42

Legal Notice

Information contained in this publication is provided for the sole purpose of designing with and using Microchipproducts Information regarding device applications and the like is provided only for your convenience and may besuperseded by updates It is your responsibility to ensure that your application meets with your specifications

THIS INFORMATION IS PROVIDED BY MICROCHIP ldquoAS ISrdquo MICROCHIP MAKES NO REPRESENTATIONS ORWARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED WRITTEN OR ORAL STATUTORY OROTHERWISE RELATED TO THE INFORMATION INCLUDING BUT NOT LIMITED TO ANY IMPLIEDWARRANTIES OF NON-INFRINGEMENT MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSEOR WARRANTIES RELATED TO ITS CONDITION QUALITY OR PERFORMANCE

IN NO EVENT WILL MICROCHIP BE LIABLE FOR ANY INDIRECT SPECIAL PUNITIVE INCIDENTAL ORCONSEQUENTIAL LOSS DAMAGE COST OR EXPENSE OF ANY KIND WHATSOEVER RELATED TO THEINFORMATION OR ITS USE HOWEVER CAUSED EVEN IF MICROCHIP HAS BEEN ADVISED OF THEPOSSIBILITY OR THE DAMAGES ARE FORESEEABLE TO THE FULLEST EXTENT ALLOWED BY LAWMICROCHIPS TOTAL LIABILITY ON ALL CLAIMS IN ANY WAY RELATED TO THE INFORMATION OR ITS USEWILL NOT EXCEED THE AMOUNT OF FEES IF ANY THAT YOU HAVE PAID DIRECTLY TO MICROCHIP FORTHE INFORMATION Use of Microchip devices in life support andor safety applications is entirely at the buyerrsquos riskand the buyer agrees to defend indemnify and hold harmless Microchip from any and all damages claims suits orexpenses resulting from such use No licenses are conveyed implicitly or otherwise under any Microchip intellectualproperty rights unless otherwise stated

Trademarks

The Microchip name and logo the Microchip logo Adaptec AnyRate AVR AVR logo AVR Freaks BesTimeBitCloud chipKIT chipKIT logo CryptoMemory CryptoRF dsPIC FlashFlex flexPWR HELDO IGLOO JukeBloxKeeLoq Kleer LANCheck LinkMD maXStylus maXTouch MediaLB megaAVR Microsemi Microsemi logo MOSTMOST logo MPLAB OptoLyzer PackeTime PIC picoPower PICSTART PIC32 logo PolarFire Prochip DesignerQTouch SAM-BA SenGenuity SpyNIC SST SST Logo SuperFlash Symmetricom SyncServer TachyonTempTrackr TimeSource tinyAVR UNIO Vectron and XMEGA are registered trademarks of Microchip TechnologyIncorporated in the USA and other countries

APT ClockWorks The Embedded Control Solutions Company EtherSynch FlashTec Hyper Speed ControlHyperLight Load IntelliMOS Libero motorBench mTouch Powermite 3 Precision Edge ProASIC ProASIC PlusProASIC Plus logo Quiet-Wire SmartFusion SyncWorld Temux TimeCesium TimeHub TimePictra TimeProviderVite WinPath and ZL are registered trademarks of Microchip Technology Incorporated in the USA

Adjacent Key Suppression AKS Analog-for-the-Digital Age Any Capacitor AnyIn AnyOut BlueSky BodyComCodeGuard CryptoAuthentication CryptoAutomotive CryptoCompanion CryptoController dsPICDEMdsPICDEMnet Dynamic Average Matching DAM ECAN EtherGREEN In-Circuit Serial Programming ICSPINICnet Inter-Chip Connectivity JitterBlocker KleerNet KleerNet logo memBrain Mindi MiWi MPASM MPFMPLAB Certified logo MPLIB MPLINK MultiTRAK NetDetach Omniscient Code Generation PICDEMPICDEMnet PICkit PICtail PowerSmart PureSilicon QMatrix REAL ICE Ripple Blocker SAM-ICE Serial QuadIO SMART-IS SQI SuperSwitcher SuperSwitcher II Total Endurance TSHARC USBCheck VariSenseViewSpan WiperLock Wireless DNA and ZENA are trademarks of Microchip Technology Incorporated in the USAand other countries

SQTP is a service mark of Microchip Technology Incorporated in the USA

The Adaptec logo Frequency on Demand Silicon Storage Technology and Symmcom are registered trademarks ofMicrochip Technology Inc in other countries

GestIC is a registered trademark of Microchip Technology Germany II GmbH amp Co KG a subsidiary of MicrochipTechnology Inc in other countries

All other trademarks mentioned herein are property of their respective companiescopy 2020 Microchip Technology Incorporated Printed in the USA All Rights Reserved

ISBN 978-1-5224-6667-3

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 43

Quality Management SystemFor information regarding Microchiprsquos Quality Management Systems please visit wwwmicrochipcomquality

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 44

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupportwwwmicrochipcomsupportWeb AddresswwwmicrochipcomAtlantaDuluth GATel 678-957-9614Fax 678-957-1455Austin TXTel 512-257-3370BostonWestborough MATel 774-760-0087Fax 774-760-0088ChicagoItasca ILTel 630-285-0071Fax 630-285-0075DallasAddison TXTel 972-818-7423Fax 972-818-2924DetroitNovi MITel 248-848-4000Houston TXTel 281-894-5983IndianapolisNoblesville INTel 317-773-8323Fax 317-773-5453Tel 317-536-2380Los AngelesMission Viejo CATel 949-462-9523Fax 949-462-9608Tel 951-273-7800Raleigh NCTel 919-844-7510New York NYTel 631-435-6000San Jose CATel 408-735-9110Tel 408-436-4270Canada - TorontoTel 905-695-1980Fax 905-695-2078

Australia - SydneyTel 61-2-9868-6733China - BeijingTel 86-10-8569-7000China - ChengduTel 86-28-8665-5511China - ChongqingTel 86-23-8980-9588China - DongguanTel 86-769-8702-9880China - GuangzhouTel 86-20-8755-8029China - HangzhouTel 86-571-8792-8115China - Hong Kong SARTel 852-2943-5100China - NanjingTel 86-25-8473-2460China - QingdaoTel 86-532-8502-7355China - ShanghaiTel 86-21-3326-8000China - ShenyangTel 86-24-2334-2829China - ShenzhenTel 86-755-8864-2200China - SuzhouTel 86-186-6233-1526China - WuhanTel 86-27-5980-5300China - XianTel 86-29-8833-7252China - XiamenTel 86-592-2388138China - ZhuhaiTel 86-756-3210040

India - BangaloreTel 91-80-3090-4444India - New DelhiTel 91-11-4160-8631India - PuneTel 91-20-4121-0141Japan - OsakaTel 81-6-6152-7160Japan - TokyoTel 81-3-6880- 3770Korea - DaeguTel 82-53-744-4301Korea - SeoulTel 82-2-554-7200Malaysia - Kuala LumpurTel 60-3-7651-7906Malaysia - PenangTel 60-4-227-8870Philippines - ManilaTel 63-2-634-9065SingaporeTel 65-6334-8870Taiwan - Hsin ChuTel 886-3-577-8366Taiwan - KaohsiungTel 886-7-213-7830Taiwan - TaipeiTel 886-2-2508-8600Thailand - BangkokTel 66-2-694-1351Vietnam - Ho Chi MinhTel 84-28-5448-2100

Austria - WelsTel 43-7242-2244-39Fax 43-7242-2244-393Denmark - CopenhagenTel 45-4485-5910Fax 45-4485-2829Finland - EspooTel 358-9-4520-820France - ParisTel 33-1-69-53-63-20Fax 33-1-69-30-90-79Germany - GarchingTel 49-8931-9700Germany - HaanTel 49-2129-3766400Germany - HeilbronnTel 49-7131-72400Germany - KarlsruheTel 49-721-625370Germany - MunichTel 49-89-627-144-0Fax 49-89-627-144-44Germany - RosenheimTel 49-8031-354-560Israel - RarsquoananaTel 972-9-744-7705Italy - MilanTel 39-0331-742611Fax 39-0331-466781Italy - PadovaTel 39-049-7625286Netherlands - DrunenTel 31-416-690399Fax 31-416-690340Norway - TrondheimTel 47-72884388Poland - WarsawTel 48-22-3325737Romania - BucharestTel 40-21-407-87-50Spain - MadridTel 34-91-708-08-90Fax 34-91-708-08-91Sweden - GothenbergTel 46-31-704-60-40Sweden - StockholmTel 46-8-5090-4654UK - WokinghamTel 44-118-921-5800Fax 44-118-921-5820

Worldwide Sales and Service

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 45

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Board Overview
      • 2 Getting Started
        • 21 Quick Start
          • 211 Driver Installation
          • 212 Kit Window
          • 213 MPLABreg X IDE Device Family Packs
          • 214 Atmel Studio 7 Device Family Pack
            • 22 Design Documentation and Relevant Links
              • 3 Preprogrammed Application
              • 4 Curiosity Nano
                • 41 On-Board Debugger Overview
                  • 411 Debugger
                  • 412 Virtual Serial Port (CDC)
                    • 4121 Overview
                    • 4122 Operating System Support
                    • 4123 Limitations
                    • 4124 Signaling
                    • 4125 Advanced Use
                      • 413 Mass Storage Device
                        • 4131 Mass Storage Device Implementation
                        • 4132 Limitations of Drag-and-Drop Programming
                        • 4133 Special Commands
                          • 414 Data Gateway Interface (DGI)
                            • 4141 Debug GPIO
                            • 4142 Timestamping
                                • 42 Curiosity Nano Standard Pinout
                                • 43 Power Supply
                                  • 431 Target Regulator
                                  • 432 External Supply
                                  • 433 VBUS Output Pin
                                  • 434 Power Supply Exceptions
                                    • 44 Low-Power Measurement
                                    • 45 Programming External Microcontrollers
                                      • 451 Supported Devices
                                      • 452 Software Configuration
                                      • 453 Hardware Modifications
                                      • 454 Connecting to External Microcontrollers
                                        • 46 Connecting External Debuggers
                                          • 5 Hardware User Guide
                                            • 51 Connectors
                                              • 511 AVR128DB48 Curiosity Nano Pinout
                                              • 512 Using Pin Headers
                                              • 513 Multi-Voltage IO
                                              • 514 Operational Amplifiers
                                                • 52 Peripherals
                                                  • 521 LED
                                                  • 522 Mechanical Switch
                                                  • 523 32768 kHz Crystal
                                                  • 524 1600 MHz Crystal
                                                  • 525 On-Board Debugger Implementation
                                                    • 5251 On-Board Debugger Connections
                                                      • 6 Hardware Revision History and Known Issues
                                                        • 61 Identifying Product ID and Revision
                                                        • 62 Revision 3
                                                        • 63 Revision 2
                                                          • 7 Document Revision History
                                                          • 8 Appendix
                                                            • 81 Schematic
                                                            • 82 Assembly Drawing
                                                            • 83 Curiosity Nano Base for Click boardstrade
                                                            • 84 Disconnecting the On-board Debugger
                                                            • 85 Getting Started with IAR
                                                              • The Microchip Website
                                                              • Product Change Notification Service
                                                              • Customer Support
                                                              • Microchip Devices Code Protection Feature
                                                              • Legal Notice
                                                              • Trademarks
                                                              • Quality Management System
                                                              • Worldwide Sales and Service
Page 16: AVR128DB48 Curiosity Nano Hardware User Guideww1.microchip.com/downloads/en/DeviceDoc/AVR128DB48-Curiosit… · 4. Curiosity Nano Curiosity Nano is an evaluation platform of small

is limited to an approximate voltage range from 17V to 51V Additional output voltage limits are configured in thedebugger firmware to ensure that the output voltage never exceeds the hardware limits of the AVR128DB48microcontroller The voltage limits configured in the on-board debugger on AVR128DB48 Curiosity Nano are 18ndash55V

Info  The target voltage is set to 33V when the board is manufactured It can be changed throughMPLABreg X IDE project properties and in the Atmel Studio 7 device programming dialog Any change tothe target voltage is persistent even after a power toggle The resolution is less than 5 mV but may belimited to 10 mV by the adjustment program

Info  Voltage settings that are set up in MPLABreg X IDE are not immediately applied to the board Thenew voltage setting is applied to the board when the debugger is accessed in any way like pushing theRefresh Debug Tool Status button in the project dashboard tab or programmingreading program memory

Info  There is a simple option to adjust the target voltage with a drag-and-drop command text file to theboard This supports a set of common target voltages See section 4133 Special Commands for furtherdetails

The MIC5353 supports a maximum current load of 500 mA It is an LDO regulator in a small package placed on asmall printed circuit board (PCB) and the thermal shutdown condition can be reached at lower loads than 500 mAThe maximum current load depends on the input voltage the selected output voltage and the ambient temperatureThe figure below shows the safe operating area for the regulator with an input voltage of 51V and an ambienttemperature of 23degC

Figure 4-5 Target Regulator Safe Operation Area

The voltage output of the target regulator is continuously monitored (measured) by the on-board debugger If it ismore than 100 mV overunder the voltage setting value an error condition will be flagged and the target voltageregulator will be turned off This will detect and handle any short-circuit conditions It will also detect and handle if anexternal voltage which causes VCC_TARGET to move outside of the voltage setting monitoring window of plusmn100 mVis suddenly applied to the VTG pin without setting the VOFF pin low

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 16

Info  If the external voltage is lower than the monitoring window lower limit (target voltage setting ndash 100mV) the on-board debugger status LED will blink rapidly If the external voltage is higher than themonitoring window upper limit (target voltage setting + 100 mV) the on-board debugger status LED willcontinue to shine If the external voltage is removed the status LED will start to blink rapidly until the on-board debugger detects the new situation and turns the target voltage regulator back on

432 External SupplyAVR128DB48 Curiosity Nano can be powered by an external voltage instead of the on-board target regulator Whenthe Voltage Off (VOFF) pin is shorted to ground (GND) the on-board debugger firmware disables the target regulatorand it is safe to apply an external voltage to the VTG pin

It is also safe to apply an external voltage to the VTG pin when no USB cable is plugged into the DEBUG connectoron the board

The VOFF pin can be tied lowlet go at any time This will be detected by a pin-change interrupt to the on-boarddebugger which controls the target voltage regulator accordingly

WARNINGApplying an external voltage to the VTG pin without shorting VOFF to GND may cause permanent damageto the board

WARNINGDo not apply any voltage to the VOFF pin Let the pin float to enable the power supply

WARNINGAbsolute maximum external voltage is 55V for the on-board level shifters and the standard operatingcondition of the AVR128DB48 is 18ndash55V Applying a higher voltage may cause permanent damage to theboard

Info  If an external voltage is applied without pulling the VOFF pin low and an external supply pulls thevoltage lower than the monitoring windowrsquos lower limit (target voltage setting - 100 mV) the on-boarddebugger status LED will blink rapidly and shut the on-board regulator off If an external voltage issuddenly removed when the VOFF pin is not pulled low the status LED will start to blink rapidly until theon-board debugger detects the new situation and switches the target voltage regulator back on

Programming debugging and data streaming is still possible with an external power supply ndash the debugger andsignal level shifters will be powered from the USB cable Both regulators the debugger and the level shifters arepowered down when the USB cable is removed

Info  In addition to the power consumed by the AVR128DB48 and its peripherals approximately 100 microAwill be drawn from any external power source to power the on-board level shifters and voltage monitorcircuitry when a USB cable is plugged in the DEBUG connector on the board When a USB cable is notplugged in some current is used to supply the level shifters voltage pins which have a worst-case currentconsumption of approximately 5 microA Typical values may be as low as 100 nA

433 VBUS Output PinAVR128DB48 Curiosity Nano has a VBUS output pin that can be used to power external components that need a 5Vsupply The VBUS output pin has a PTC fuse to protect the USB against short circuits A side effect of the PTC fuseis a voltage drop on the VBUS output with higher current loads The chart below shows the voltage versus the currentload of the VBUS output

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 17

Figure 4-6 VBUS Output Voltage vs Current

434 Power Supply ExceptionsThis is a summary of most exceptions that can occur with the power supply

Target Voltage Shuts DownThis can happen if the target section draws too much current at a given voltage This will cause the thermal shutdownsafety feature of the MIC5353 regulator to kick in To avoid this reduce the current load of the target section

Target Voltage Setting is Not ReachedThe maximum output voltage is limited by the USB input voltage (specified to be 44-525V) and the voltage dropover the MIC5353 regulator at a given voltage setting and current consumption If a higher output voltage is neededuse a USB power source that can provide a higher input voltage or use an external voltage supply on the VTG pin

Target Voltage is Different From SettingThis can be caused by an externally applied voltage to the VTG pin without setting the VOFF pin low If the targetvoltage differs more than 100 mV overunder the voltage setting it will be detected by the on-board debugger andthe internal voltage regulator will be shut down To fix this issue remove the applied voltage from the VTG pin andthe on-board debugger will enable the on-board voltage regulator when the new condition is detected Note that thePS LED will be blinking rapidly if the target voltage is below 100 mV of the setting but will be lit normally when it ishigher than 100 mV above the setting

No Or Very Low Target Voltage and PS LED is Blinking RapidlyThis can be caused by a full or partial short-circuit and is a special case of the issue mentioned above Remove theshort-circuit and the on-board debugger will re-enable the on-board target voltage regulator

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 18

No Target Voltage and PS LED is Lit 1This occurs if the target voltage is set to 00V To fix this set the target voltage to a value within the specified voltagerange for the target device

No Target Voltage and PS LED is Lit 2This can be the issue if power jumper J100 andor J101 is cut and the target voltage regulator is set to a value withinthe specified voltage range for the target device To fix this solder a wirebridge between the pads for J100J101 oradd a jumper on J101 if a pin header is mounted

VBUS Output Voltage is Low or Not PresentThis is most lightly caused by a high-current drain on VBUS and the protection fuse (PTC) will reduce the current orcut off completely Reduce the current consumption on the VBUS pin to fix this issue

44 Low-Power MeasurementPower to the AVR128DB48 is connected from the on-board power supply and VTG pin through a 100 mil pin headermarked with ldquoPOWERrdquo in silkscreen (J101) To measure the power consumption of the AVR128DB48 and otherperipherals connected to the board cut the Target Power strap and connect an ammeter over the strap

To measure the lowest possible power consumption follow these steps1 Cut the POWER strap with a sharp tool2 Solder a 1x2 100 mil pin header in the footprint3 Connect an ammeter to the pin header4 Write firmware that

41 Tri-states any IO connected to the on-board debugger42 Sets the microcontroller in its lowest power Sleep state

5 Program the firmware into the AVR128DB48

Figure 4-7 Target Power Strap

Target Power strap (top side)

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 19

Tip  A 100-mil pin header can be soldered into the Target Power strap (J101) footprint for easyconnection of an ammeter Once the ammeter is no longer needed place a jumper cap on the pin header

Info  The on-board level shifters will draw a small amount of current even when they are not in use Amaximum of 2 microA can be drawn from each IO pin connected to a level shifter for a total of 10 microA Keepany IO pin connected to a level shifter in tri-state to prevent leakage All IOs connected to the on-boarddebugger are listed in 5251 On-Board Debugger Connections To prevent any leakage to the on-boardlevel shifters they can be disconnected completely as described in 84 Disconnecting the On-boardDebugger

45 Programming External MicrocontrollersThe on-board debugger on AVR128DB48 Curiosity Nano can be used to program and debug microcontrollers onexternal hardware

451 Supported DevicesAll external AVR microcontrollers with the UPDI interface can be programmed and debugged with the on-boarddebugger with Atmel Studio

External SAM microcontrollers that have a Curiosity Nano Board can be programmed and debugged with the on-board debugger with Atmel Studio

AVR128DB48 Curiosity Nano can program and debug external AVR128DB48 microcontrollers with MPLAB X IDE

452 Software ConfigurationNo software configuration is required to program and debug the same device that is mounted on the board

To program and debug a different microcontroller than what is mounted on the board Atmel Studio must beconfigured to allow free selection of devices and programming interfaces

1 Navigate to Tools gt Options through the menu system at the top of the application2 Select the Tools gt Tool settings category in the options window3 Set the Hide unsupported devices option to False

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 20

Figure 4-8 Hide Unsupported Devices

Info  Atmel Studio allows any microcontroller and interface to be selected when Hide unsupporteddevices is set to False also microcontrollers and interfaces which are not supported by the on-boarddebugger

453 Hardware ModificationsThe on-board debugger is connected to the AVR128DB48 by default These connections must be removed beforeany external microcontroller can be programmed or debugged Cut the GPIO straps shown in the figure below with asharp tool to disconnect the AVR128DB48 from the on-board debugger

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 21

Figure 4-9 Programming and Debugging Connections to Debugger

GPIO straps (bottom side)

Info  Cutting the connections to the debugger will disable programming debugging and data streamingfrom the AVR128DB48 mounted on the board

Tip  Solder in 0Ω resistors across the footprints or short-circuit them with solder to reconnect the signalsbetween the on-board debugger and the AVR128DB48

454 Connecting to External MicrocontrollersThe figure and table below show where the programming and debugging signals must be connected to program anddebug external microcontrollers The on-board debugger can supply power to the external hardware or use anexternal voltage as a reference for its level shifters Read more about the power supply in 43 Power Supply

The on-board debugger and level shifters actively drive data and clock signals (DBG0 DBG1 and DBG2) used forprogramming and debugging and in most cases the external resistor on these signals can be ignored Pull-downresistors are required on the ICSPtrade data and clock signals to debug PICreg microcontrollers

DBG3 is an open-drain connection and requires a pull-up resistor to function

AVR128DB48 Curiosity Nano has a pull-up resistor R200 connected to its RESET signal (DBG3) The location ofthe pull-up resistor is shown in the 82 Assembly Drawing in the appendix

Remember bull Connect GND and VTG to the external microcontrollerbull Tie the VOFF pin to GND if the external hardware has its own power supplybull Make sure there are pull-down resistors on the ICSP data and clock signals (DBG0 and DBG1) to

support the debugging of PIC microcontrollers

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 22

Figure 4-10 Curiosity Nano Standard Pinout

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

Table 4-4 Programming and Debugging Interfaces

Curiosity Nano Pin UPDI ICSPtrade SWD

DBG0 UPDI DATA SWDIO

DBG1 mdash CLK SWCLK

DBG2 mdash mdash mdash

DBG3 mdash MCLR RESET

46 Connecting External DebuggersEven though there is an on-board debugger external debuggers can be connected directly to the AVR128DB48Curiosity Nano to programdebug the AVR128DB48 The on-board debugger keeps all the pins connected to theAVR128DB48 and board edge in tri-state when not actively used Therefore the on-board debugger will not interferewith any external debug tools

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 23

Figure 4-11 Connecting the MPLABreg PICkittrade 4 In-Circuit DebuggerProgrammer to AVR128DB48 CuriosityNano

2345678 1

VDD

GroundDATA

2 = VDD

3 = Ground

4 = PGD

5 = Unused

6 = Unused

7 = Unused

8 = Unused

1 = Unused

MPLABreg PICkittrade 4

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 24

Figure 4-12 Connecting the Atmel-ICE to AVR128DB48 Curiosity Nano

VDD

Ground

DATA

AVRregSAM

3 = UPDI

4 = VTG

5 = Unused

6 = Unused

7 = Unused

8 = Unused

1 = Unused

2 = GND

9 = Unused

10 = Unused

Atmel-ICE

21 9

10

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

CAUTIONTo avoid contention between the external debugger and the on-board debugger do not start anyprogrammingdebug operation with the on-board debugger through MPLABreg X IDE or Atmel Studio 7 ormass storage programming while the external tool is active

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 25

5 Hardware User Guide

51 Connectors

511 AVR128DB48 Curiosity Nano PinoutAll the AVR128DB48 IO pins are accessible at the edge connectors on the board The image below shows the boardpinout For all available functions on each pin refer to the IO Multiplexing and Considerations section in theAVR128DB48 data sheet

Figure 5-1 AVR128DB48 Curiosity Nano Pinout

USB

DEBUGGER

AVR128DB48

SW0

LED0

PS LEDNC

NC

IDID

CDC RX

CD

CR

XUSART3 TXPB0

CDC TX

CD

CT

XUSART3 RXPB1

DBG1

DB

G1PB3LED0

DBG2

DB

G2PB2SW0

PF4

PF

4USART2 TX

PF5

PF

5USART2 RX

PA2

PA

2TWI0 SDA

PA3

PA

3TWI0 SCL

PA4

PA

4SPI0 MOSI

PA5

PA

5SPI0 MISO

PA6

PA

6SPI0 SCK

PA7

PA

7SPI0 SS

GND

GN

D

PB0

PB

0USART3 TXCDC RX

PB1

PB

1USART3 RXCDC TX

PF2

PF

2

PF3

PF

3

PC0

PC

0

PC1

PC

1

PC2

PC

2

PC3

PC

3

GND

GN

D

(PA0)

(PA

0)XTALHF1

(PA1)

(PA

1)XTALHF2

PB2

PB

2SW0

PB3

PB

3LED0

VBUS

VB

US

VOFF

VO

FF

DBG3

DB

G3 PF6

DBG0

DB

G0 UPDI

GND

GN

D

VTG

VT

G

PD6

PD

6 AIN6

PD3

PD

3 AIN3 OP0 INN

PD2

PD

2 AIN2 OP0 OUT TCA0 WO2

PD1

PD

1 AIN1 OP0 INP TCA0 WO1

PD0

PD

0 AIN0 TCA0 WO0

PD7

PD

7 AIN7 OP1 INN

PD5

PD

5 AIN5 OP1 OUT

PD4

PD

4 AIN4 OP1 INP

GND

GN

D

PE3

PE

3 OP2 INN

PE2

PE

2 OP2 OUT

PE1

PE

1 OP2 INP

PE0

PE

0

PC7

PC

7

PC6

PC

6

PC5

PC

5

PC4

PC

4

GND

GN

D

PB5

PB

5

PB4

PB

4

(PF1)

(PF

1) XTAL32K2

(PF0)

(PF

0) XTAL32K1

DEBUGGERAVR128DB48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

MVIO

OPAMP

Shared pin

AVR128DB48Curiosity Nano

512 Using Pin HeadersThe edge connector footprint on AVR128DB48 Curiosity Nano has a staggered design where each hole is shifted 8mil (~02 mm) off-center The hole shift allows the use of regular 100 mil pin headers on the board without solderingOnce the pin headers are firmly in place they can be used in normal applications like pin sockets and prototypingboards without any issues

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 26

Figure 5-2 Attaching Pin-Headers to the Curiostiy Nano Board

Figure 5-3 Connecting to Curiosity Nano Base for Click boardstrade

Tip  Start at one end of the pin header and gradually insert the header along the length of the boardOnce all the pins are in place use a flat surface to push them in

Tip  For applications where the pin headers will be used permanently it is still recommended to solderthem in place

Important  Once the pin headers are in place they are hard to remove by hand Use a set of pliers andcarefully remove the pin headers to avoid damage to the pin headers and PCB

513 Multi-Voltage IO

The AVR128DB48 Curiosity Nano MCU has support for Multi-Voltage IO (MVIO) AVR128DB48 MVIO pins areconnected to the edge connector at PC0-PC7 MVIO pins are capable of regular IO-pin behavior

MVIO can be configured in one of two supply modesbull Single-Supply mode All IO pins including MVIO-capable pins are powered by VCC_TARGET By default

VCC_TARGET is connected to VDDIO2 through a 0-ohm resistor (R204)bull Dual-Supply mode MVIO-capable pins are powered by an external power supply connected to VDDIO2 Non-

MVIO pins are powered by VCC_TARGET

Dual-Supply mode allows MVIO-pins to be powered at different voltages than pins powered from VCC_TARGET

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 27

WARNINGThe absolute maximum external voltage range for the AVR128DB48 is 18ndash55V Applying a higher voltagemay cause permanent damage to the board

By default AVR128DB48 Curiosity Nano board is configured for single-supply mode To use Dual-Supply mode somehardware modifications are required

WARNINGBefore any hardware modifications are done make sure the board is disconnected from USB or externalpower

bull Disconnect resistor R204 connecting VDDIO2 to VCC_TARGETbull Connect a new power supply to VDDIO2 and ground at J212bull J212 does not have reverse polarity protection Make sure to match polarity between the power supply and

J212 Positive-polarity to J212-pin 1 and negative-polarity to J212-pin 2

The resistor R204 VDDIO2 and J212 can be seen in Figure 5-4

Figure 5-4 MVIO and VDDIO2 Connections

J212 R204

WARNINGApplying an external voltage to VDDIO2 pin without removing resistor R204 may cause permanentdamage to the board

WARNINGJ212 does not have reverse polarity protection Applying voltage to the wrong pin may cause permanentdamage to the board

514 Operational AmplifiersAVR128DB48 features three internal operational amplifiers with a flexible connection scheme using analogmultiplexers and resistor ladders This allows a large number of analog signal conditioning configurations manyrequiring no external components

Table 5-1 OPAMP Pin Connections

OPAMP Poisitive Input (INP) Negative Input (INN) Output (OUT)

OP0 PD1 PD3 PD2

OP1 PD4 PD7 PD5

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 28

continuedOPAMP Poisitive Input (INP) Negative Input (INN) Output (OUT)

OP2 PE1 PE3 PE2

For information about OPAMP on the edge connector and any shared functionality see 511 AVR128DB48 CuriosityNano Pinout

52 Peripherals

521 LEDThere is one yellow user LED available on the AVR128DB48 Curiosity Nano board that can be controlled by eitherGPIO or PWM The LED can be activated by driving the connected IO line to GND

Table 5-2 LED Connection

AVR128DB48 Pin Function Shared Functionality

PB3 Yellow LED0 Edge connector On-board debugger

522 Mechanical SwitchThe AVR128DB48 Curiosity Nano board has one mechanical switch This is a generic user-configurable switchWhen the switch is pressed it will drive the IO line to ground (GND)

Tip  There is no externally connected pull-up resistor on the switch To use the switch make sure that aninternal pull-up resistor is enabled on pin PB2

Table 5-3 Mechanical Switch

AVR128DB48 Pin Description Shared Functionality

PB2 User switch (SW0) Edge connector On-board debugger

523 32768 kHz Crystal

On the AVR128DB48 Curiosity Nano board is a mounted 32768 kHz crystal of type VMK3-9001-32K7680000 thecrystal is accurate to within 20 ppm Using the External 32768 kHz Crystal Oscillator (XOSC32K) module inAVR128DB48 with the mounted 32768 kHz crystal generates a clock signal that is significantly more accurate thanthe Internal 32768 kHz Ultra Low-Power Oscillator (OSC32K) module can generate alone With the Auto-Tunefeature the 32768 kHz can be used as a reference to improve the accuracy of the internal oscillator This is an idealreference clock for the Real-Time Counter module in AVR128DB48

The 32768 kHz crystal is connected to AVR128DB48 on PF0 and PF1 which are also routed to the edge connectorthrough two solder points PF0 and PF1 are disconnected from the edge connector by default to reduce the chanceof an external signal causing contention with the crystal and to remove excessive capacitance on the lines

Next to the 32768 kHz crystal is a cut-strap (J209) which can be used to measure the oscillator safety factor This isdone by cutting the strap and adding a 0402 SMD resistor across the strap More information about oscillatorallowance and safety factor can be found in the AN2648 application note from Microchip

Cut straps and solder points can be seen in Figure 5-5

Table 5-4 32768 kHz Crystal Connections

AVR128DB48 Pin Function Shared Functionality

PF0 XTAL32K1 (Crystal input) Edge connector

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 29

continuedAVR128DB48 Pin Function Shared Functionality

PF1 XTAL32K2 (Crystal output) Edge connector

PA0 and PA1 can be used as GPIO To do so some hardware modifications are required

WARNINGBefore any hardware modifications are done make sure the board is disconnected from the USB orexternal power

bull Disconnect the 32768 kHz crystal by cutting the two straps on the top side of the board next to the crystal(J207 J208) The crystal should be disconnected when using the pin as GPIO as this might harm the crystal

bull Connect the IO lines to the edge connector by placing solder blobs on the circular solder points marked PF0and PF1 on the bottom side of the board (J210 J211)

Figure 5-5 Crystal Connection and Cut Straps

Top side Boom side

J211

J210

J207

J20832768 kHz Crystal

J209

524 1600 MHz Crystal

On the AVR128DB48 Curiosity Nano board is a mounted 1600 MHz crystal of type VXM7-9040-16M0000000 thecrystal is accurate to within 20 ppm Using the External High-Frequency Crystal Oscillator (XOSCHF) module inAVR128DB48 with the mounted 1600 MHz crystal generates a clock signal that is significantly more accurate thanthe Internal High-Frequency Oscillator (OSCHF) module

The 1600 MHz crystal is connected to AVR128DB48 on PA0 and PA1 which are also routed to the edge connectorthrough two solder points PA0 and PA1 are disconnected from the edge connector by default to reduce the chanceof an external signal causing contention with the crystal and to remove excessive capacitance on the lines

Next to the 1600 MHz crystal is a cut-strap (J217) which can be used to measure the oscillator safety factor This isdone by cutting the strap and adding a 0402 SMD resistor across the strap More information about oscillatorallowance and safety factor can be found in the AN2648 application note from Microchip

Cut straps and solder points can be seen in Figure 5-6

Table 5-5 Crystal Connections

AVR128DB48 Pin Function Shared Functionality

PA0 XTALHF1 (Crystal input) Edge connector

PA1 XTALHF2 (Crystal output) Edge connector

PA0 and PA1 can be used as GPIO To do so some hardware modifications are required

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 30

WARNINGBefore any hardware modifications are done make sure the board is disconnected from USB or externalpower

bull Disconnect the 1600 MHz crystal by cutting the two straps on the top side of the board next to the crystal (J215J216) The crystal should be disconnected when using the pin as GPIO as this might harm the crystal

bull Connect the IO lines to the edge connector by placing solder blobs on the circular solder points marked PA0and PA1 on the bottom side of the board (J213 J214)

Figure 5-6 Crystal Connection and Cut Straps

Top side Boom side

J214

J213

J216

J2151600 MHzCrystal

J217

525 On-Board Debugger ImplementationAVR128DB48 Curiosity Nano features an on-board debugger that can be used to program and debug theAVR128DB48 using UPDI The on-board debugger also includes a virtual serial port (CDC) interface over UART anddebug GPIO Both MPLABreg X IDE and Atmel Studio 7 can be used as a front-end for the on-board debugger forprogramming and debugging MPLAB Data Visualizer can be used as a front-end for the CDC and debug GPIO

5251 On-Board Debugger ConnectionsThe table below shows the connections between the target and the debugger section All connections between thetarget and the debugger are tri-stated as long as the debugger is not actively using the interface Hence since thereare little contaminations of the signals the pins can be configured to anything the user wants

For further information on how to use the capabilities of the on-board debugger see 41 On-Board DebuggerOverview

Table 5-6 On-Board Debugger Connections

AVR128DB48Pin

Debugger Pin Function Shared Functionality

PB1 CDC TX UART RX (AVR128DB48 RX line) Edge connector

PB0 CDC RX UART TX (AVR128DB48 TX line) Edge connector

UPDI DBG0 UPDI Edge connector

PB3 DBG1 LED0Debug GPIO1 Edge connector

PB2 DBG2 SW0Debug GPIO0 Edge connector

PF6 DBG3 RESET Edge connector

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 31

6 Hardware Revision History and Known IssuesThis user guide is written to provide information about the latest available revision of the board The followingsections contain information about known issues a revision history of older revisions and how older revisions differfrom the latest revision

61 Identifying Product ID and RevisionThe revision and product identifier of the AVR128DB48 Curiosity Nano Board can be found in two ways Either byutilizing the MPLABreg X IDE or Atmel Studio 7 Kit Window or by looking at the sticker on the bottom side of the PCB

By connecting AVR128DB48 Curiosity Nano to a computer with MPLABreg X IDE or Atmel Studio 7 running the KitWindow will pop up The first six digits of the serial number which is listed under kit information contain the productidentifier and revision

Tip  The Kit Window can be opened in MPLABreg X IDE through the menu bar Window gt Kit Window

The same information can be found on the sticker on the bottom side of the PCB Most boards will have the identifierand revision printed in plain text as A09-nnnnrr where ldquonnnnrdquo is the identifier and ldquorrrdquo is the revision Boards withlimited space have a sticker with only a data matrix code containing the product identifier revision and serialnumber

The serial number string has the following format

nnnnrrssssssssss

n = product identifier

r = revision

s = serial number

The product identifier for AVR128DB48 Curiosity Nano is A09‑3372

62 Revision 3AVR128DB48 silicon revision A5 or later is mounted on this revision of the board

63 Revision 2Revision 2 is the initially released board revision

AVR128DB48 silicon revision A4 is mounted on this revision of the board

AVR128DB48 Curiosity NanoHardware Revision History and Known Issues

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 32

7 Document Revision HistoryDoc Rev Date Comments

A 092020 Initial document release

AVR128DB48 Curiosity NanoDocument Revision History

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 33

8 Appendix

81 SchematicFigure 8-1 AVR128DB48 Curiosity Nano Schematic

11

22

33

44

55

66

77

88

DD

CC

BB

AA

2 of

4

AV

R12

8DB

48 C

uri

osit

y N

ano

240

820

20A

VR

128D

B48

_Cur

iosi

ty_N

ano_

Targ

et_M

CU

Sch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA

Rev

isio

n

File

P

CB

Num

ber

PC

B

Rev

isio

n

Des

ign

ed w

ith

Dra

wn

By

ML

Shee

t Titl

e

Targ

et M

CU

Eng

inee

rA

H

A08

-305

71

Size

A3

A09

-337

22

Page

D

ateA

ltium

com

GN

D

VD

DIO

2

100n

C20

1

GN

D

PA5_

SPI0

_MIS

OPA

6_SP

I0_S

CK

PA7_

SPI0

_SS

PB0_

USA

RT

3_T

XPB

1_U

SAR

T3_

RX

PB2_

SW0_

DB

G2

PB3_

LE

D0_

DB

G1

PB

4P

B5

PC

0P

C1

PC

2

PC3

PC4PC5PC6PC7PD0_AIN0_TCA0_WO0PD1_AIN1_OP0_INP_TCA0_WO1PD2_AIN2_OP0_OUT_TCA0_WO2PD3_AIN3_OP0_INNPD4_AIN4_OP1_INP

PA3_TWI0_SCL

PA1_XTALHF2

UPDI_DBG0

PF5_USART2_RX

PF3

PF

2PF

1_X

TA

L32

K2

PF0_

XT

AL

32K

1P

E3_

OP

2_IN

NP

E2_

OP

2_O

UT

PE

1_O

P2_

INP

PE

0

PD5_

AIN

5_O

P1_

OU

TPD

6_A

IN6

PD7_

AIN

7_O

P1_

INN

GN

D

VC

C_T

AR

GE

T

100n

C20

2

GN

DV

CC

_TA

RG

ET

100n

C20

0

PF1_XTAL32K2

PF0_XTAL32K1

PA2_TWI0_SDA

PA0_XTALHF1

PF4_USART2_TX

PA4_SPI0_MOSI

GN

D

PA7_

SPI0

_SS

PA6_

SPI0

_SC

KPA

5_SP

I0_M

ISO

PA4_

SPI0

_MO

SIPA

3_T

WI0

_SC

LPA

2_T

WI0

_SD

A

PC

0P

C1

PC

2P

C3

PB

4P

B5

PD7_

AIN

7_O

P1_

INN

PD6_

AIN

6

PD2_

AIN

2_O

P0_

OU

T_T

CA

0_W

O2

PD1_

AIN

1_O

P0_

INP_

TC

A0_

WO

1PD

0_A

IN0_

TC

A0_

WO

0

PD5_

AIN

5_O

P1_

OU

TPD

4_A

IN4_

OP

1_IN

P

PD3_

AIN

3_O

P0_

INN

32K

Hz

Cry

stal

PB0_

USA

RT

3_T

XPB

1_U

SAR

T3_

RX

1kR203

US

ER

LE

D

VC

C_T

AR

GE

T

PF6_DBG3

PB2_SW0_DBG2

PB3_LED0_DBG1

GN

D

USE

R B

UT

TO

N

PB3_

LE

D0_

DB

G1

PB2_

SW0_

DB

G2

PB1_

USA

RT

3_R

XPB

0_U

SAR

T3_

TX

PF4_

USA

RT

2_T

XPF

5_U

SAR

T2_

RX

PF

2P

F3

PC

4P

C5

PC

6P

C7

1kR202

YELLOWLEDSML-D12Y1WT86

2 1

D200

TS604VM1-035CR13

4 2

SW20

0

GN

DV

CC

_ED

GE

GN

DG

ND

GN

DG

ND

UPD

I_D

BG

0P

F6_

DB

G3

J209

PB3_

LE

D0_

DB

G1

PB2_

SW0_

DB

G2

AV

R12

8DB

48

22u

FC

205

VC

C_E

DG

E

GN

D

DBG0

CDC_TXCDC_RX

DBG2

DBG1

DBG3

DBG2

DE

BU

GG

ER

CO

NN

EC

TIO

NS

DBG1

DBG3DBG0

VOFF

ID_SYS

ID_SYS

VOFF

TA

RG

ET

BU

LK

VC

C_T

AR

GE

TR

ESE

T P

ull

VB

US

CD

C R

X3

CD

C T

X4

DB

G1

5

DB

G2

6

0 T

X7

1 R

X8

2 SD

A9

3 S

CL

10

4 M

OSI

11

5 M

ISO

12

6 S

CK

13

7 S

S14

GN

D15

0 (T

X)

16

1 (R

X)

17

218

319

020

GN

D24

DB

G3

54

DB

G0

53

GN

D52

VC

C51

PW

M 3

46

AD

C 2

45

AD

C 1

44

AD

C 0

43

GN

D42

438

434

GN

D33

AD

C 7

50

AD

C 6

49

AD

C 5

48

PW

M 4

47

DE

BU

GG

ER

TAR

GE

T

ID2

VO

FF

55

121

222

323

025

126

227

328

429

530

631

732

535

636

737

539

640

741

RE

SER

VE

D1

VB

US

56

CN

AN

O56

-pin

edg

e co

nnec

tor

J200

J201

J203

J205

J206

J202

J204

PF1_

XT

AL

32K

2PF

0_X

TA

L32

K1

NC

XOUT

XIN

47kR200

AV

R12

8DB

48

UPD

I

GPI

O1

GPI

O0

RE

SET

DB

G0

DB

G1

DB

G2

DB

G3

Deb

ugge

r

CD

C T

X

CD

C R

X

UA

RT

3 R

X

UA

RT

3 T

X

VT

G1

8V -

55

VPB

3

PB

2

PF

6

UP

DI

PB

0

PB

1

Nam

eP

in

PE

3_O

P2_

INN

PE

2_O

P2_

OU

TP

E1_

OP

2_IN

PP

E0

J207

J208

PF

0P

F1

PA5

1

PA6

2

PA7

3

PB0

4

PB1

5

PB2

6

PB3

7

PB4

8

PB5

9

PC0

10

PC1

11

PC2

12

PC313

VDDIO214

GND15

PC416

PC517

PC618

PC719

PD020

PD121

PD222

PD323

PD424

PD5

25

PD6

26

PD7

27

AVDD

28

GND

29

PE0

30

PE1

31

PE2

32

PE3

33

XTAL32K1PF0

34

XTAL32K2PF1

35

PF2

36

PF337

PF438

PF539

PF640

UPDI41

VDD42

GND43

XTALHF1PA044

XTALHF2PA145

PA246

PA347

PA448

AV

R12

8DB

48-I

PT

U20

0

0RR204

GN

D

VC

C_T

AR

GE

T

VDDIO2

GND

J210

J211

82p

C20

48

2pC

203

GN

DG

ND

16M

Hz

Cry

stal

J217

XHFOUT

XHFIN

J214

J213

GN

D

J215

J216

PA0_XTALHF1

PA1_XTALHF2

PA0_

XT

AL

HF

1PA

1_X

TA

LH

F2

PA0

PA1

1 2

J212 N

M

15pF

C20

615

pFC

207

13

24 16

000

MH

zV

XM

7-90

40-1

6M00

0000

0TR

XC

201

GN

D32

768

kHz

VM

K3-

9001

-32K

7680

000T

R

XC

200

CDC_TX

CDC_RX

CD

C_T

XC

DC

_RX

Cry

stal

dat

ashe

et

Ccr

ysta

l = 9

pFm

ax E

SR

= 7

0kO

hmA

ccur

acy

plusmn20p

pm

AV

R48

DB

128

data

shee

tC

xin

= 4

0pF

(ty

pica

l val

ue)

Cxo

ut =

40

pF (

typi

cal v

alue

)C

lasymp1

( (1

40

pF)+

(1

40p

F)

)asymp

20p

FM

axim

um L

oad

= 1

25p

FM

axim

um E

SR =

50k

Ohm

Est

imat

ed C

pcb

= 0

5pF

Est

imat

ed lo

adC

= 2

(C

crys

tal-

Cpa

ra -

Cpc

b)C

= 2

(9p

F -

20

pF -

05

pF)

C =

13

0pF

Sele

cted

in d

esig

n af

ter

veri

fica

tion

C=

82

pF8

2pF

NO

TE

on

UA

RT

CD

C

RX

TX

onth

ehe

ader

deno

tes

the

inpu

tout

put d

irec

tion

of th

e si

gnal

resp

ectiv

e to

its

sou

rce

CD

C T

X is

out

put f

rom

the

DE

BU

GG

ER

C

DC

RX

is in

put t

o th

e D

EB

UG

GE

R

TX

is o

utpu

t fro

m th

e T

AR

GE

T d

evic

eR

X is

inpu

t to

the

TA

RG

ET

dev

ice

NO

TE

on

I2C

No

pull

-ups

on

boar

d P

ull-

ups

shou

ld b

em

ount

ed c

lose

to s

lave

dev

ice(

s)

WA

RN

ING

M

ake

sure

tore

mov

e R

204

befo

reap

plyi

ng p

ower

to J

212

Cry

stal

dat

ashe

et

Ccr

ysta

l = 1

2pF

max

ES

R =

60O

hmA

ccur

acy

plusmn30p

pm

AV

R48

DB

128

data

shee

tC

xin

= 4

0pF

(ty

pica

l val

ue)

Cxo

ut =

40

pF (

typi

cal v

alue

)C

lasymp1

( (1

40

pF)+

(1

40p

F)

)asymp

20p

FM

axim

um L

oad

= 1

25p

FM

axim

um E

SR =

k

Ohm

Est

imat

ed C

pcb

= 0

5pF

Est

imat

ed lo

adC

= 2

(C

crys

tal-

Cpa

ra -

Cpc

b)C

= 2

(12

pF -

20

pF -

05

pF)

C =

19

0pF

Sele

cted

in d

esig

n af

ter

veri

fica

tion

C=

15p

F1

5pF

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 34

11

22

33

44

55

66

77

88

DD

CC

BB

AA

3 of

4

AV

R12

8DB

48 C

uri

osit

y N

ano

2020

-06-

26A

VR

128D

B48

_Cur

iosi

ty_N

ano_

Deb

ugge

rSch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA

Rev

isio

n

Fil

eP

CB

Num

ber

PC

B

Rev

isio

n

Des

ign

ed w

ith

Dra

wn

By

ML

Shee

t Tit

le

Deb

ugge

r

Eng

inee

rA

H

A08

-305

71

Size

A3

A09

-337

22

Page

D

ateA

ltium

com

DE

BU

GG

ER

USB

MIC

RO

-B C

ON

NE

CT

OR

GN

D

USB

D_P

USB

D_N

100n

C10

7

100n

C10

8

1kR

107

VC

C_P

3V3

SRST

STA

TU

S_L

ED

SHIE

LD

VB

US

VC

C_P

3V3

GN

D

TP

100

Test

poin

t Arr

ay

12

34

56

78

910

TC

KT

DO

TM

SV

sup

TD

IG

ND

TR

STSR

STV

Tre

fG

ND

J102

GN

D

47u

F

C10

0

DBG0

DB

G0

21

GR

EE

N L

ED

SML

-P12

MT

T86

R

D10

0

VBUS

1

D-

2

D+

3

GND

5

SHIELD1

6

SHIELD2

7

ID

4

SHIELD3

8

SHIELD4

9 MU

-MB

0142

AB

2-26

9

J105

PAD

33

PA00

1

PA01

2

PA02

3

PA03

4

GND 10VDDANA 9

PA04

5

PA05

6

PA06

7

PA07

8

PA08 11

PA09 12

PA10 13

PA11 14

PA14 15

PA15 16

PA16

17

PA17

18

PA18

19

PA19

20

PA22

21

USB_SOFPA23

22

USB_DMPA24

23

USB_DPPA25

24

PA2725 RESETN26 PA2827 GND28 VDDCORE29 VDDIN30 SWDCLKPA3031 SWDIOPA3132

SAM

D21

E18

A-M

UT

U10

0

VOUT

1

VOUT

2

GND 3

EN

4

VIN

6

NC

5

EP 7

MIC

5528

-33

YM

TU

101

VC

C_P

3V3

GN

D

USB

D_P

USB

D_N

GN

D

1uC

106

VC

C_M

CU

_CO

RE

VC

C_P

3V3

VC

C_P

3V3

22u

FC

101

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

3

VC

C_P

3V3

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

4

VC

C_P

3V3

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

5

VC

C_P

3V3

GN

D

GN

D GN

D

GN

D

VC

C_E

DG

E

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

7

VC

C_P

3V3

GN

DDBG2

DB

G3_

CT

RL

S1_0

_TX

S1_1

_RX

S0_2

_TX

DA

CV

TG

_AD

C

RE

SER

VE

D

S0_3

_CL

K

DBG0_CTRL

CD

C_T

X_C

TR

L

BO

OT

DE

BU

GG

ER

PO

WE

RS

TA

TU

S L

ED

EN

1

BYP

6

VOUT

4

GND

2

VIN

3

NCADJ

5

GND

7

MIC

5353

U10

2

100n

C10

2

GN

D

GN

D

47kR101

27kR104 G

ND

33k

R10

6

22u

F

C10

3 GN

D

1kR

108

J100

VC

C_L

EV

EL

VC

C_R

EG

UL

AT

OR

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

6

VC

C_P

3V3

GN

DDBG1

CD

C_R

X

CD

C_T

X

DBG3

DBG1_CTRL

DE

BU

GG

ER

RE

GU

LA

TO

R

REG_ENABLE

RE

G_E

NA

BL

E

47kR103

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

47kR102

47kR105

SWC

LK

GN

D

47kR100 G

ND

DB

G2

S0_0

_RX

DB

G1_

CT

RL

DB

G0_

CT

RL

DB

G3

OP

EN

DR

AIN

TA

RG

ET

AD

JUST

AB

LE

RE

GU

LA

TO

R

SRST

DE

BU

GG

ER

TE

ST

PO

INT DBG2_CTRL

VO

FF

CD

C_R

X_C

TR

L

47kR109

DB

G1

CD

C_T

X_C

TR

L

CD

C_R

X_C

TR

L

SWC

LK

REG_ADJUST

DBG2_GPIO

DB

G3_

CT

RL

DB

G2_

CT

RL

UP

DI

UPD

I

GPI

O

GPI

O

RE

SET

Sign

al

DB

G0

DB

G1

DB

G2

DB

G3

ICS

PIn

terf

ace

DA

T

CL

K

GPI

O

MC

LR

DB

G3

CD

C T

X

CD

C R

X

UA

RT

RX

UA

RT

TX

UA

RT

RX

UA

RT

TX

TA

RG

ET

TA

RG

ET

1kR

110

VBUS_ADC

1

23

DM

N65

D8L

FB

Q10

1

VC

C-

-

ID_SYS

VOFF

1kR112

VC

C_P

3V3

VT

G_A

DC

DA

C

MIC

9416

3

VIN

B2

VOUT

A1

VIN

A2

EN

C2

GND

C1

VOUT

B1

U10

8

GN

D

ID_S

YS

VT

G_E

N

VTG_EN

VBUS_ADC

SWD

IO

ID_S

YS

TP

101

GN

DSW

DIO

VO

FF

47kR111 G

ND

ID P

IN

MC

3621

3

F10

0

VC

C_V

BU

S

VC

C_V

BU

S

VC

C_V

BU

S

J101

VC

C_T

AR

GE

T

47k

R11

3

CDC_TX

CDC_RX

Prog

ram

min

g co

nnec

tor

for

fact

ory

prog

ram

min

g of

DE

BU

GG

ER

MIC

5528

V

in 2

5V

to 5

5V

Vou

t F

ixed

33

VIm

ax 5

00m

AD

ropo

ut 2

60m

V

500

mA

MIC

5353

V

in 2

6V

to 6

VV

out

12

5V to

51

VIm

ax 5

00m

AD

ropo

ut (

typi

cal)

50m

V

150m

A 1

60m

V

500

mA

Acc

urac

y 2

in

itia

lT

herm

al s

hutd

own

and

curr

ent l

imit

Max

imum

out

put v

olta

ge is

lim

ited

by

the

inpu

t vol

tage

and

the

drop

out v

olta

ge in

the

regu

lato

r(V

max

= V

in -

dro

pout

)

J100

-

Cut

-str

ap u

sed

for

full

sep

arat

ion

of ta

rget

pow

er f

rom

the

leve

l shi

fter

s an

don

-boa

rd r

egul

ator

s-

For

cur

rent

mea

sure

men

ts u

sing

the

on-b

oard

pow

er s

uppl

y th

isst

rap

mus

t be

cut a

nd a

nam

met

er c

onne

cted

acr

oss

- F

or c

urre

nt m

easu

rem

ents

usi

ng a

n ex

tern

al p

ower

sup

ply

this

str

ap c

ould

be

cut f

or m

ore

accu

rate

mea

sure

men

ts L

eaka

ge b

ack

thro

ugh

the

swit

ch is

in th

e m

icro

am

pere

ran

ge

PT

C R

eset

tabl

e fu

se

Hol

d cu

rren

t 5

00m

AT

rip

curr

ent

100

0mA

Adj

usta

ble

outp

ut a

nd li

mit

atio

ns

- T

he D

EB

UG

GE

R c

an a

djus

t the

out

put v

olta

ge o

f th

e re

gula

tor

betw

een

125

V a

nd 5

1V

to th

e ta

rget

-

The

vol

tage

out

put i

s li

mit

ed b

y th

e in

put (

US

B)

whi

ch c

an v

ary

betw

een

440

V to

52

5V-

The

leve

l shi

fter

s ha

ve a

min

imal

vol

tage

leve

l of

165

V a

nd w

ill l

imit

the

min

imum

ope

ratin

g vo

ltage

all

owed

for

the

targ

et to

sti

ll a

llow

com

mun

icat

ion

- T

he M

IC94

163

has

a m

inim

al v

olat

ege

leve

l of

170

V a

nd w

ill l

imit

the

min

imum

vol

tage

del

iver

ed to

the

targ

et

- F

irm

war

e co

nfig

urat

ion

wil

l lim

it th

e vo

ltage

ran

ge to

be

wit

hin

the

the

targ

et s

peci

fica

tion

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 35

82 Assembly DrawingFigure 8-2 AVR128DB48 Curiosity Nano Assembly Drawing Top

+

Cb

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20001 PAC20002 COC200

PAC20101 PAC20102 COC201

PAC20201 PAC20202 COC202 PAC20301

PAC20302 COC203

PAC20401

PAC20402 COC204

PAC20502

PAC20501 COC205

PAC20601

PAC20602 COC206 PAC20701

PAC20702 COC207 PAD10002 PAD10001 COD100

PAD20002

PAD20001 COD200

PAF10002

PAF10001 COF100

PAJ10002 PAJ10001 COJ100

PAJ10101 PAJ10102 COJ101

PAJ10201

PAJ10202

PAJ10203

PAJ10204

PAJ10205

PAJ10206 COJ102

PAJ10506

PAJ10507 PAJ10509

PAJ10508 PAJ105010

PAJ105011 PAJ10505

PAJ10504

PAJ10503

PAJ10502

PAJ10501

PAJ10500

COJ105

PAJ200056 PAJ200053

PAJ200028 PAJ20002 PAJ20001

PAJ200051 PAJ200050 PAJ200052 PAJ200049 PAJ200048 PAJ200047 PAJ200046 PAJ200045 PAJ200044 PAJ200043 PAJ200042 PAJ200041 PAJ200040 PAJ200039 PAJ200038 PAJ200037 PAJ200036 PAJ200035 PAJ200034 PAJ200033 PAJ200032 PAJ200031 PAJ200030 PAJ200029

PAJ20003 PAJ20004 PAJ20005 PAJ20006 PAJ20007 PAJ20008 PAJ20009 PAJ200010 PAJ200011 PAJ200012 PAJ200013 PAJ200014 PAJ200015 PAJ200016 PAJ200017 PAJ200018 PAJ200019 PAJ200020 PAJ200021 PAJ200022 PAJ200023 PAJ200026 PAJ200025 PAJ200024 PAJ200027

PAJ200054 PAJ200055 PAJ20000

COJ200

PAJ20102 PAJ20101 COJ201

PAJ20202 PAJ20201 COJ202

PAJ20302 PAJ20301 COJ203

PAJ20402 PAJ20401 COJ204

PAJ20502 PAJ20501 COJ205

PAJ20602 PAJ20601 COJ206 PAJ20702 PAJ20701 COJ207

PAJ20802 PAJ20801 COJ208

PAJ20902 PAJ20901 COJ209

PAJ21001 PAJ21002 PAJ21005 COJ210

PAJ21102 PAJ21101 PAJ21105 COJ211

PAJ21202 PAJ21201 COJ212

PAJ21301 PAJ21302 PAJ21305 COJ213

PAJ21401 PAJ21402 PAJ21405 COJ214

PAJ21502 PAJ21501 COJ215

PAJ21602 PAJ21601 COJ216 PAJ21702 PAJ21701 COJ217

COLABEL1

PAQ10101 PAQ10102 PAQ10103 PAQ10100

COQ101 PAR10002

PAR10001 COR100 PAR10101 PAR10102 COR101

PAR10202 PAR10201 COR102

PAR10302 PAR10301 COR103

PAR10401 PAR10402 COR104

PAR10502

PAR10501 COR105

PAR10601 PAR10602 COR106

PAR10702 PAR10701 COR107

PAR10801

PAR10802 COR108

PAR10901 PAR10902 COR109

PAR11001 PAR11002 COR110

PAR11101 PAR11102 COR111

PAR11201 PAR11202 COR112

PAR11302 PAR11301 COR113

PAR20001 PAR20002 COR200 PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203 PAR20401 PAR20402 COR204

PASW20003

PASW20004 PASW20002

PASW20001 COSW200

PATP10001 COTP100

PATP10101 COTP101 PAU100033

PAU100032 PAU100031 PAU100030 PAU100029 PAU100028 PAU100027 PAU100026 PAU100025 PAU100024

PAU100023

PAU100022

PAU100021

PAU100020

PAU100019

PAU100018

PAU100017 PAU100016 PAU100015 PAU100014 PAU100013 PAU100012 PAU100011 PAU100010

PAU10001

PAU10002

PAU10003

PAU10004

PAU10005

PAU10006

PAU10007

PAU10008 PAU10009

COU100

PAU10107

PAU10104 PAU10105 PAU10106

PAU10103 PAU10102 PAU10101 PAU10100 COU101 PAU10207

PAU10204 PAU10205

PAU10206

PAU10203 PAU10202

PAU10201

COU102

PAU10306

PAU10305 PAU10304 PAU10303

PAU10302 PAU10301 PAU10300

COU103

PAU10406

PAU10405 PAU10404 PAU10403

PAU10402 PAU10401 PAU10400

COU104

PAU10506

PAU10505 PAU10504 PAU10503

PAU10502 PAU10501 PAU10500

COU105

PAU10606

PAU10605 PAU10604 PAU10603

PAU10602 PAU10601 PAU10600

COU106

PAU10706

PAU10705 PAU10704 PAU10703

PAU10702 PAU10701 PAU10700

COU107

PAU1080A1 PAU1080A2

PAU1080B1 PAU1080B2

PAU1080C1 PAU1080C2 COU108

PAU20001 PAU20002 PAU20003 PAU20004 PAU20005 PAU20006 PAU20007 PAU20008 PAU20009 PAU200010 PAU200011 PAU200012 PAU200013 PAU200014 PAU200015 PAU200016 PAU200017 PAU200018 PAU200019 PAU200020 PAU200021 PAU200022 PAU200023 PAU200024 PAU200025 PAU200026 PAU200027 PAU200028 PAU200029 PAU200030 PAU200031 PAU200032 PAU200033 PAU200034 PAU200035 PAU200036

PAU200037 PAU200038 PAU200039 PAU200040 PAU200041 PAU200042 PAU200043 PAU200044 PAU200045 PAU200046 PAU200047 PAU200048

COU200

PAXC20001

PAXC20002 COXC200

PAXC20101 PAXC20102

PAXC20103 PAXC20104 COXC201

Figure 8-3 AVR128DB48 Curiosity Nano Assembly Drawing Bottom

tcR

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20001 PAC20002 COC200

PAC20101 PAC20102 COC201

PAC20201 PAC20202 COC202 PAC20301

PAC20302 COC203

PAC20401

PAC20402 COC204

PAC20502

PAC20501 COC205

PAC20601

PAC20602 COC206 PAC20701

PAC20702 COC207 PAD10002 PAD10001 COD100

PAD20002

PAD20001 COD200

PAF10002

PAF10001 COF100

PAJ10002 PAJ10001 COJ100

PAJ10101 PAJ10102 COJ101

PAJ10201

PAJ10202

PAJ10203

PAJ10204

PAJ10205

PAJ10206 COJ102

PAJ10506

PAJ10507 PAJ10509

PAJ10508 PAJ105010

PAJ105011 PAJ10505

PAJ10504

PAJ10503

PAJ10502

PAJ10501

PAJ10500

COJ105

PAJ200056 PAJ200053

PAJ200028 PAJ20002 PAJ20001

PAJ200051 PAJ200050 PAJ200052 PAJ200049 PAJ200048 PAJ200047 PAJ200046 PAJ200045 PAJ200044 PAJ200043 PAJ200042 PAJ200041 PAJ200040 PAJ200039 PAJ200038 PAJ200037 PAJ200036 PAJ200035 PAJ200034 PAJ200033 PAJ200032 PAJ200031 PAJ200030 PAJ200029

PAJ20003 PAJ20004 PAJ20005 PAJ20006 PAJ20007 PAJ20008 PAJ20009 PAJ200010 PAJ200011 PAJ200012 PAJ200013 PAJ200014 PAJ200015 PAJ200016 PAJ200017 PAJ200018 PAJ200019 PAJ200020 PAJ200021 PAJ200022 PAJ200023 PAJ200026 PAJ200025 PAJ200024 PAJ200027

PAJ200054 PAJ200055 PAJ20000

COJ200

PAJ20102 PAJ20101 COJ201

PAJ20202 PAJ20201 COJ202

PAJ20302 PAJ20301 COJ203

PAJ20402 PAJ20401 COJ204

PAJ20502 PAJ20501 COJ205

PAJ20602 PAJ20601 COJ206 PAJ20702 PAJ20701 COJ207

PAJ20802 PAJ20801 COJ208

PAJ20902 PAJ20901 COJ209

PAJ21001 PAJ21002 PAJ21005 COJ210

PAJ21102 PAJ21101 PAJ21105 COJ211

PAJ21202 PAJ21201 COJ212

PAJ21301 PAJ21302 PAJ21305 COJ213

PAJ21401 PAJ21402 PAJ21405 COJ214

PAJ21502 PAJ21501 COJ215

PAJ21602 PAJ21601 COJ216 PAJ21702 PAJ21701 COJ217

COLABEL1

PAQ10101 PAQ10102 PAQ10103 PAQ10100

COQ101 PAR10002

PAR10001 COR100 PAR10101 PAR10102 COR101

PAR10202 PAR10201 COR102

PAR10302 PAR10301 COR103

PAR10401 PAR10402 COR104

PAR10502

PAR10501 COR105

PAR10601 PAR10602 COR106

PAR10702 PAR10701 COR107

PAR10801

PAR10802 COR108

PAR10901 PAR10902 COR109

PAR11001 PAR11002 COR110

PAR11101 PAR11102 COR111

PAR11201 PAR11202 COR112

PAR11302 PAR11301 COR113

PAR20001 PAR20002 COR200 PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203 PAR20401 PAR20402 COR204

PASW20003

PASW20004 PASW20002

PASW20001 COSW200

PATP10001 COTP100

PATP10101 COTP101 PAU100033

PAU100032 PAU100031 PAU100030 PAU100029 PAU100028 PAU100027 PAU100026 PAU100025 PAU100024

PAU100023

PAU100022

PAU100021

PAU100020

PAU100019

PAU100018

PAU100017 PAU100016 PAU100015 PAU100014 PAU100013 PAU100012 PAU100011 PAU100010

PAU10001

PAU10002

PAU10003

PAU10004

PAU10005

PAU10006

PAU10007

PAU10008 PAU10009

COU100

PAU10107

PAU10104 PAU10105 PAU10106

PAU10103 PAU10102 PAU10101 PAU10100 COU101 PAU10207

PAU10204 PAU10205

PAU10206

PAU10203 PAU10202

PAU10201

COU102

PAU10306

PAU10305 PAU10304 PAU10303

PAU10302 PAU10301 PAU10300

COU103

PAU10406

PAU10405 PAU10404 PAU10403

PAU10402 PAU10401 PAU10400

COU104

PAU10506

PAU10505 PAU10504 PAU10503

PAU10502 PAU10501 PAU10500

COU105

PAU10606

PAU10605 PAU10604 PAU10603

PAU10602 PAU10601 PAU10600

COU106

PAU10706

PAU10705 PAU10704 PAU10703

PAU10702 PAU10701 PAU10700

COU107

PAU1080A1 PAU1080A2

PAU1080B1 PAU1080B2

PAU1080C1 PAU1080C2 COU108

PAU20001 PAU20002 PAU20003 PAU20004 PAU20005 PAU20006 PAU20007 PAU20008 PAU20009 PAU200010 PAU200011 PAU200012 PAU200013 PAU200014 PAU200015 PAU200016 PAU200017 PAU200018 PAU200019 PAU200020 PAU200021 PAU200022 PAU200023 PAU200024 PAU200025 PAU200026 PAU200027 PAU200028 PAU200029 PAU200030 PAU200031 PAU200032 PAU200033 PAU200034 PAU200035 PAU200036

PAU200037 PAU200038 PAU200039 PAU200040 PAU200041 PAU200042 PAU200043 PAU200044 PAU200045 PAU200046 PAU200047 PAU200048

COU200

PAXC20001

PAXC20002 COXC200

PAXC20101 PAXC20102

PAXC20103 PAXC20104 COXC201

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 36

83 Curiosity Nano Base for Click boardstrade

Figure 8-4 AVR128DB48 Curiosity Nano Pinout Mapping

US

B

DE

BU

GG

ER

AV

R1

28

DB

48

SW

0

LE

D0

PS

LE

DNC

NC

ID

ID

CDC RX

CDCRX

USART3 TX

PB0

CDC TX

CDCTX

USART3 RX

PB1

DBG1

DBG1

PB3

LED0

DBG2

DBG2

PB2

SW0

PF4

PF4

USART2 TX

PF5

PF5

USART2 RX

PA2

PA2

TWI0 SDA

PA3

PA3

TWI0 SCL

PA4

PA4

SPI0 MOSI

PA5

PA5

SPI0 MISO

PA6

PA6

SPI0 SCK

PA7

PA7

SPI0 SS

GND

GND

PB0

PB0

USART3 TX

CDC RX

PB1

PB1

USART3 RX

CDC TX

PF2

PF2

PF3

PF3

PC0

PC0

PC1

PC1

PC2

PC2

PC3

PC3

GND

GND

(PA0)

(PA0)

XTALHF1

(PA1)

(PA1)

XTALHF2

PB2

PB2

SW0

PB3

PB3

LED0

VBUS

VBUS

VOFF

VOFF

DBG3

DBG3

PF6

DBG0

DBG0

UPDI

GND

GND

VTG

VTG

PD6

PD6

AIN6

PD3

PD3

AIN3

OP0 INN

PD2

PD2

AIN2

OP0 OUT

TCA0 WO2

PD1

PD1

AIN1

OP0 INP

TCA0 WO1

PD0

PD0

AIN0

TCA0 WO0

PD7

PD7

AIN7

OP1 INN

PD5

PD5

AIN5

OP1 OUT

PD4

PD4

AIN4

OP1 INP

GND

GND

PE3

PE3

OP2 INN

PE2

PE2

OP2 OUT

PE1

PE1

OP2 INP

PE0

PE0

PC7

PC7

PC6

PC6

PC5

PC5

PC4

PC4

GND

GND

PB5

PB5

PB4

PB4

(PF1)

(PF1)

XTAL32K2

(PF0)

(PF0)

XTAL32K1

DE

BU

GG

ER

AV

R1

28

DB

48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

MVIO

OPAMP

Shared pin

AV

R1

28

DB

48

Cu

rio

sity

Na

no

1

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

2

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

3

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

Xp

lain

ed

Pro

Ext

en

sio

nE

XT

11

2

19

20

Cu

rio

sity

Na

no

Ba

sefo

r cl

ick

bo

ard

sT

M

PD4

PD0

PD6

PD3

PA7

PF5

PA6

PF4

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

PD5

PD1

PF3

PF2

PE2

PB1

PA6

PB0

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

PD7

PD2

PE1

PE0

PE3

PF5

PA6

PF4

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

ID

GND

PD5

PD7

PF3

PE1

PD1

PD2

PF2

PE3

PA2

PA3

PB1

PB0

PE2

PA4

PA5

PA6

GND

+33V

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 37

84 Disconnecting the On-board DebuggerThe on-board debugger and level shifters can be completely disconnected from the AVR128DB48

The block diagram below shows all connections between the debugger and the AVR128DB48 The rounded boxesrepresent connections to the board edge The signal names shown are also printed in silkscreen on the bottom sideof the board

To disconnect the debugger cut the straps shown in Figure 8-6

Attention  Cutting the GPIO straps to the on-board debugger will disable the virtual serial portprogramming debugging and data streaming Cutting the power supply strap will disconnect the on-boardpower supply

Tip  Any connection that is cut can be reconnected using solder Alternatively a 0Ω 0402 resistor can bemounted

Tip  When the debugger is disconnected an external debugger can be connected to holes shown in Figure 8-6 Details about connecting an external debugger are described in 46 Connecting ExternalDebuggers

Figure 8-5  On-Board Debugger Connections Block Diagram

DE

BU

GG

ER

TARGETLevel-Shift

PA04PA06PA07PA08PA16PA00PA01

USB

DIR x 5

VCC_P3V3

VBUS

VC

C_L

EV

EL

VC

C_T

AR

GE

TDBG0DBG1DBG2DBG3CDC TXCDC RX

CDC RX

CDC TX

DBG3

DBG2

DBG1

DBG0

GPIO straps

LDO

VOFF

LDO

VBUS VTG

VCC_EDGE

Power Supply strap Target Power strap

UART RXUART TX

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 38

Figure 8-6 On-Board Debugger Connection Cut Straps

GPIO straps (bottom side) Power Supply strap (top side)

85 Getting Started with IARIAR Embedded Workbenchreg for AVRreg is a proprietary high-efficiency compiler not based on GCC Programming anddebugging of AVR128DB48 Curiosity Nano is supported in IARtrade Embedded Workbench for AVR using the Atmel-ICEinterface Some initial settings must be set up in the project to get the programming and debugging to work

The following steps will explain how to get your project ready for programming and debugging

1 Make sure you have opened the project you want to configure Open the OPTIONS dialog for the project2 In the category General Options select the Target tab Select the device for the project or if not listed the

core of the device as shown in Figure 8-73 In the category Debugger select the Setup tab Select Atmel-ICE as the driver as shown in Figure 8-84 In the category Debugger gt Atmel-ICE select the Atmel-ICE 1 tab Select UPDI as the interface and

optionally select the UPDI frequency as shown in Figure 8-9

Info  If the selection of Debug Port (mentioned in step 4) is grayed out the interface is preselected andthe user can skip this configuration step

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 39

Figure 8-7 Select Target Device

Figure 8-8 Select Debugger

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 40

Figure 8-9 Configure Interface

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 41

The Microchip Website

Microchip provides online support via our website at wwwmicrochipcom This website is used to make files andinformation easily available to customers Some of the content available includes

bull Product Support ndash Data sheets and errata application notes and sample programs design resources userrsquosguides and hardware support documents latest software releases and archived software

bull General Technical Support ndash Frequently Asked Questions (FAQs) technical support requests onlinediscussion groups Microchip design partner program member listing

bull Business of Microchip ndash Product selector and ordering guides latest Microchip press releases listing ofseminars and events listings of Microchip sales offices distributors and factory representatives

Product Change Notification Service

Microchiprsquos product change notification service helps keep customers current on Microchip products Subscribers willreceive email notification whenever there are changes updates revisions or errata related to a specified productfamily or development tool of interest

To register go to wwwmicrochipcompcn and follow the registration instructions

Customer Support

Users of Microchip products can receive assistance through several channels

bull Distributor or Representativebull Local Sales Officebull Embedded Solutions Engineer (ESE)bull Technical Support

Customers should contact their distributor representative or ESE for support Local sales offices are also available tohelp customers A listing of sales offices and locations is included in this document

Technical support is available through the website at wwwmicrochipcomsupport

Microchip Devices Code Protection Feature

Note the following details of the code protection feature on Microchip devices

bull Microchip products meet the specifications contained in their particular Microchip Data Sheetbull Microchip believes that its family of products is secure when used in the intended manner and under normal

conditionsbull There are dishonest and possibly illegal methods being used in attempts to breach the code protection features

of the Microchip devices We believe that these methods require using the Microchip products in a manneroutside the operating specifications contained in Microchiprsquos Data Sheets Attempts to breach these codeprotection features most likely cannot be accomplished without violating Microchiprsquos intellectual property rights

bull Microchip is willing to work with any customer who is concerned about the integrity of its codebull Neither Microchip nor any other semiconductor manufacturer can guarantee the security of its code Code

protection does not mean that we are guaranteeing the product is ldquounbreakablerdquo Code protection is constantlyevolving We at Microchip are committed to continuously improving the code protection features of our productsAttempts to break Microchiprsquos code protection feature may be a violation of the Digital Millennium Copyright ActIf such acts allow unauthorized access to your software or other copyrighted work you may have a right to suefor relief under that Act

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 42

Legal Notice

Information contained in this publication is provided for the sole purpose of designing with and using Microchipproducts Information regarding device applications and the like is provided only for your convenience and may besuperseded by updates It is your responsibility to ensure that your application meets with your specifications

THIS INFORMATION IS PROVIDED BY MICROCHIP ldquoAS ISrdquo MICROCHIP MAKES NO REPRESENTATIONS ORWARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED WRITTEN OR ORAL STATUTORY OROTHERWISE RELATED TO THE INFORMATION INCLUDING BUT NOT LIMITED TO ANY IMPLIEDWARRANTIES OF NON-INFRINGEMENT MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSEOR WARRANTIES RELATED TO ITS CONDITION QUALITY OR PERFORMANCE

IN NO EVENT WILL MICROCHIP BE LIABLE FOR ANY INDIRECT SPECIAL PUNITIVE INCIDENTAL ORCONSEQUENTIAL LOSS DAMAGE COST OR EXPENSE OF ANY KIND WHATSOEVER RELATED TO THEINFORMATION OR ITS USE HOWEVER CAUSED EVEN IF MICROCHIP HAS BEEN ADVISED OF THEPOSSIBILITY OR THE DAMAGES ARE FORESEEABLE TO THE FULLEST EXTENT ALLOWED BY LAWMICROCHIPS TOTAL LIABILITY ON ALL CLAIMS IN ANY WAY RELATED TO THE INFORMATION OR ITS USEWILL NOT EXCEED THE AMOUNT OF FEES IF ANY THAT YOU HAVE PAID DIRECTLY TO MICROCHIP FORTHE INFORMATION Use of Microchip devices in life support andor safety applications is entirely at the buyerrsquos riskand the buyer agrees to defend indemnify and hold harmless Microchip from any and all damages claims suits orexpenses resulting from such use No licenses are conveyed implicitly or otherwise under any Microchip intellectualproperty rights unless otherwise stated

Trademarks

The Microchip name and logo the Microchip logo Adaptec AnyRate AVR AVR logo AVR Freaks BesTimeBitCloud chipKIT chipKIT logo CryptoMemory CryptoRF dsPIC FlashFlex flexPWR HELDO IGLOO JukeBloxKeeLoq Kleer LANCheck LinkMD maXStylus maXTouch MediaLB megaAVR Microsemi Microsemi logo MOSTMOST logo MPLAB OptoLyzer PackeTime PIC picoPower PICSTART PIC32 logo PolarFire Prochip DesignerQTouch SAM-BA SenGenuity SpyNIC SST SST Logo SuperFlash Symmetricom SyncServer TachyonTempTrackr TimeSource tinyAVR UNIO Vectron and XMEGA are registered trademarks of Microchip TechnologyIncorporated in the USA and other countries

APT ClockWorks The Embedded Control Solutions Company EtherSynch FlashTec Hyper Speed ControlHyperLight Load IntelliMOS Libero motorBench mTouch Powermite 3 Precision Edge ProASIC ProASIC PlusProASIC Plus logo Quiet-Wire SmartFusion SyncWorld Temux TimeCesium TimeHub TimePictra TimeProviderVite WinPath and ZL are registered trademarks of Microchip Technology Incorporated in the USA

Adjacent Key Suppression AKS Analog-for-the-Digital Age Any Capacitor AnyIn AnyOut BlueSky BodyComCodeGuard CryptoAuthentication CryptoAutomotive CryptoCompanion CryptoController dsPICDEMdsPICDEMnet Dynamic Average Matching DAM ECAN EtherGREEN In-Circuit Serial Programming ICSPINICnet Inter-Chip Connectivity JitterBlocker KleerNet KleerNet logo memBrain Mindi MiWi MPASM MPFMPLAB Certified logo MPLIB MPLINK MultiTRAK NetDetach Omniscient Code Generation PICDEMPICDEMnet PICkit PICtail PowerSmart PureSilicon QMatrix REAL ICE Ripple Blocker SAM-ICE Serial QuadIO SMART-IS SQI SuperSwitcher SuperSwitcher II Total Endurance TSHARC USBCheck VariSenseViewSpan WiperLock Wireless DNA and ZENA are trademarks of Microchip Technology Incorporated in the USAand other countries

SQTP is a service mark of Microchip Technology Incorporated in the USA

The Adaptec logo Frequency on Demand Silicon Storage Technology and Symmcom are registered trademarks ofMicrochip Technology Inc in other countries

GestIC is a registered trademark of Microchip Technology Germany II GmbH amp Co KG a subsidiary of MicrochipTechnology Inc in other countries

All other trademarks mentioned herein are property of their respective companiescopy 2020 Microchip Technology Incorporated Printed in the USA All Rights Reserved

ISBN 978-1-5224-6667-3

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 43

Quality Management SystemFor information regarding Microchiprsquos Quality Management Systems please visit wwwmicrochipcomquality

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 44

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupportwwwmicrochipcomsupportWeb AddresswwwmicrochipcomAtlantaDuluth GATel 678-957-9614Fax 678-957-1455Austin TXTel 512-257-3370BostonWestborough MATel 774-760-0087Fax 774-760-0088ChicagoItasca ILTel 630-285-0071Fax 630-285-0075DallasAddison TXTel 972-818-7423Fax 972-818-2924DetroitNovi MITel 248-848-4000Houston TXTel 281-894-5983IndianapolisNoblesville INTel 317-773-8323Fax 317-773-5453Tel 317-536-2380Los AngelesMission Viejo CATel 949-462-9523Fax 949-462-9608Tel 951-273-7800Raleigh NCTel 919-844-7510New York NYTel 631-435-6000San Jose CATel 408-735-9110Tel 408-436-4270Canada - TorontoTel 905-695-1980Fax 905-695-2078

Australia - SydneyTel 61-2-9868-6733China - BeijingTel 86-10-8569-7000China - ChengduTel 86-28-8665-5511China - ChongqingTel 86-23-8980-9588China - DongguanTel 86-769-8702-9880China - GuangzhouTel 86-20-8755-8029China - HangzhouTel 86-571-8792-8115China - Hong Kong SARTel 852-2943-5100China - NanjingTel 86-25-8473-2460China - QingdaoTel 86-532-8502-7355China - ShanghaiTel 86-21-3326-8000China - ShenyangTel 86-24-2334-2829China - ShenzhenTel 86-755-8864-2200China - SuzhouTel 86-186-6233-1526China - WuhanTel 86-27-5980-5300China - XianTel 86-29-8833-7252China - XiamenTel 86-592-2388138China - ZhuhaiTel 86-756-3210040

India - BangaloreTel 91-80-3090-4444India - New DelhiTel 91-11-4160-8631India - PuneTel 91-20-4121-0141Japan - OsakaTel 81-6-6152-7160Japan - TokyoTel 81-3-6880- 3770Korea - DaeguTel 82-53-744-4301Korea - SeoulTel 82-2-554-7200Malaysia - Kuala LumpurTel 60-3-7651-7906Malaysia - PenangTel 60-4-227-8870Philippines - ManilaTel 63-2-634-9065SingaporeTel 65-6334-8870Taiwan - Hsin ChuTel 886-3-577-8366Taiwan - KaohsiungTel 886-7-213-7830Taiwan - TaipeiTel 886-2-2508-8600Thailand - BangkokTel 66-2-694-1351Vietnam - Ho Chi MinhTel 84-28-5448-2100

Austria - WelsTel 43-7242-2244-39Fax 43-7242-2244-393Denmark - CopenhagenTel 45-4485-5910Fax 45-4485-2829Finland - EspooTel 358-9-4520-820France - ParisTel 33-1-69-53-63-20Fax 33-1-69-30-90-79Germany - GarchingTel 49-8931-9700Germany - HaanTel 49-2129-3766400Germany - HeilbronnTel 49-7131-72400Germany - KarlsruheTel 49-721-625370Germany - MunichTel 49-89-627-144-0Fax 49-89-627-144-44Germany - RosenheimTel 49-8031-354-560Israel - RarsquoananaTel 972-9-744-7705Italy - MilanTel 39-0331-742611Fax 39-0331-466781Italy - PadovaTel 39-049-7625286Netherlands - DrunenTel 31-416-690399Fax 31-416-690340Norway - TrondheimTel 47-72884388Poland - WarsawTel 48-22-3325737Romania - BucharestTel 40-21-407-87-50Spain - MadridTel 34-91-708-08-90Fax 34-91-708-08-91Sweden - GothenbergTel 46-31-704-60-40Sweden - StockholmTel 46-8-5090-4654UK - WokinghamTel 44-118-921-5800Fax 44-118-921-5820

Worldwide Sales and Service

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 45

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Board Overview
      • 2 Getting Started
        • 21 Quick Start
          • 211 Driver Installation
          • 212 Kit Window
          • 213 MPLABreg X IDE Device Family Packs
          • 214 Atmel Studio 7 Device Family Pack
            • 22 Design Documentation and Relevant Links
              • 3 Preprogrammed Application
              • 4 Curiosity Nano
                • 41 On-Board Debugger Overview
                  • 411 Debugger
                  • 412 Virtual Serial Port (CDC)
                    • 4121 Overview
                    • 4122 Operating System Support
                    • 4123 Limitations
                    • 4124 Signaling
                    • 4125 Advanced Use
                      • 413 Mass Storage Device
                        • 4131 Mass Storage Device Implementation
                        • 4132 Limitations of Drag-and-Drop Programming
                        • 4133 Special Commands
                          • 414 Data Gateway Interface (DGI)
                            • 4141 Debug GPIO
                            • 4142 Timestamping
                                • 42 Curiosity Nano Standard Pinout
                                • 43 Power Supply
                                  • 431 Target Regulator
                                  • 432 External Supply
                                  • 433 VBUS Output Pin
                                  • 434 Power Supply Exceptions
                                    • 44 Low-Power Measurement
                                    • 45 Programming External Microcontrollers
                                      • 451 Supported Devices
                                      • 452 Software Configuration
                                      • 453 Hardware Modifications
                                      • 454 Connecting to External Microcontrollers
                                        • 46 Connecting External Debuggers
                                          • 5 Hardware User Guide
                                            • 51 Connectors
                                              • 511 AVR128DB48 Curiosity Nano Pinout
                                              • 512 Using Pin Headers
                                              • 513 Multi-Voltage IO
                                              • 514 Operational Amplifiers
                                                • 52 Peripherals
                                                  • 521 LED
                                                  • 522 Mechanical Switch
                                                  • 523 32768 kHz Crystal
                                                  • 524 1600 MHz Crystal
                                                  • 525 On-Board Debugger Implementation
                                                    • 5251 On-Board Debugger Connections
                                                      • 6 Hardware Revision History and Known Issues
                                                        • 61 Identifying Product ID and Revision
                                                        • 62 Revision 3
                                                        • 63 Revision 2
                                                          • 7 Document Revision History
                                                          • 8 Appendix
                                                            • 81 Schematic
                                                            • 82 Assembly Drawing
                                                            • 83 Curiosity Nano Base for Click boardstrade
                                                            • 84 Disconnecting the On-board Debugger
                                                            • 85 Getting Started with IAR
                                                              • The Microchip Website
                                                              • Product Change Notification Service
                                                              • Customer Support
                                                              • Microchip Devices Code Protection Feature
                                                              • Legal Notice
                                                              • Trademarks
                                                              • Quality Management System
                                                              • Worldwide Sales and Service
Page 17: AVR128DB48 Curiosity Nano Hardware User Guideww1.microchip.com/downloads/en/DeviceDoc/AVR128DB48-Curiosit… · 4. Curiosity Nano Curiosity Nano is an evaluation platform of small

Info  If the external voltage is lower than the monitoring window lower limit (target voltage setting ndash 100mV) the on-board debugger status LED will blink rapidly If the external voltage is higher than themonitoring window upper limit (target voltage setting + 100 mV) the on-board debugger status LED willcontinue to shine If the external voltage is removed the status LED will start to blink rapidly until the on-board debugger detects the new situation and turns the target voltage regulator back on

432 External SupplyAVR128DB48 Curiosity Nano can be powered by an external voltage instead of the on-board target regulator Whenthe Voltage Off (VOFF) pin is shorted to ground (GND) the on-board debugger firmware disables the target regulatorand it is safe to apply an external voltage to the VTG pin

It is also safe to apply an external voltage to the VTG pin when no USB cable is plugged into the DEBUG connectoron the board

The VOFF pin can be tied lowlet go at any time This will be detected by a pin-change interrupt to the on-boarddebugger which controls the target voltage regulator accordingly

WARNINGApplying an external voltage to the VTG pin without shorting VOFF to GND may cause permanent damageto the board

WARNINGDo not apply any voltage to the VOFF pin Let the pin float to enable the power supply

WARNINGAbsolute maximum external voltage is 55V for the on-board level shifters and the standard operatingcondition of the AVR128DB48 is 18ndash55V Applying a higher voltage may cause permanent damage to theboard

Info  If an external voltage is applied without pulling the VOFF pin low and an external supply pulls thevoltage lower than the monitoring windowrsquos lower limit (target voltage setting - 100 mV) the on-boarddebugger status LED will blink rapidly and shut the on-board regulator off If an external voltage issuddenly removed when the VOFF pin is not pulled low the status LED will start to blink rapidly until theon-board debugger detects the new situation and switches the target voltage regulator back on

Programming debugging and data streaming is still possible with an external power supply ndash the debugger andsignal level shifters will be powered from the USB cable Both regulators the debugger and the level shifters arepowered down when the USB cable is removed

Info  In addition to the power consumed by the AVR128DB48 and its peripherals approximately 100 microAwill be drawn from any external power source to power the on-board level shifters and voltage monitorcircuitry when a USB cable is plugged in the DEBUG connector on the board When a USB cable is notplugged in some current is used to supply the level shifters voltage pins which have a worst-case currentconsumption of approximately 5 microA Typical values may be as low as 100 nA

433 VBUS Output PinAVR128DB48 Curiosity Nano has a VBUS output pin that can be used to power external components that need a 5Vsupply The VBUS output pin has a PTC fuse to protect the USB against short circuits A side effect of the PTC fuseis a voltage drop on the VBUS output with higher current loads The chart below shows the voltage versus the currentload of the VBUS output

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 17

Figure 4-6 VBUS Output Voltage vs Current

434 Power Supply ExceptionsThis is a summary of most exceptions that can occur with the power supply

Target Voltage Shuts DownThis can happen if the target section draws too much current at a given voltage This will cause the thermal shutdownsafety feature of the MIC5353 regulator to kick in To avoid this reduce the current load of the target section

Target Voltage Setting is Not ReachedThe maximum output voltage is limited by the USB input voltage (specified to be 44-525V) and the voltage dropover the MIC5353 regulator at a given voltage setting and current consumption If a higher output voltage is neededuse a USB power source that can provide a higher input voltage or use an external voltage supply on the VTG pin

Target Voltage is Different From SettingThis can be caused by an externally applied voltage to the VTG pin without setting the VOFF pin low If the targetvoltage differs more than 100 mV overunder the voltage setting it will be detected by the on-board debugger andthe internal voltage regulator will be shut down To fix this issue remove the applied voltage from the VTG pin andthe on-board debugger will enable the on-board voltage regulator when the new condition is detected Note that thePS LED will be blinking rapidly if the target voltage is below 100 mV of the setting but will be lit normally when it ishigher than 100 mV above the setting

No Or Very Low Target Voltage and PS LED is Blinking RapidlyThis can be caused by a full or partial short-circuit and is a special case of the issue mentioned above Remove theshort-circuit and the on-board debugger will re-enable the on-board target voltage regulator

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 18

No Target Voltage and PS LED is Lit 1This occurs if the target voltage is set to 00V To fix this set the target voltage to a value within the specified voltagerange for the target device

No Target Voltage and PS LED is Lit 2This can be the issue if power jumper J100 andor J101 is cut and the target voltage regulator is set to a value withinthe specified voltage range for the target device To fix this solder a wirebridge between the pads for J100J101 oradd a jumper on J101 if a pin header is mounted

VBUS Output Voltage is Low or Not PresentThis is most lightly caused by a high-current drain on VBUS and the protection fuse (PTC) will reduce the current orcut off completely Reduce the current consumption on the VBUS pin to fix this issue

44 Low-Power MeasurementPower to the AVR128DB48 is connected from the on-board power supply and VTG pin through a 100 mil pin headermarked with ldquoPOWERrdquo in silkscreen (J101) To measure the power consumption of the AVR128DB48 and otherperipherals connected to the board cut the Target Power strap and connect an ammeter over the strap

To measure the lowest possible power consumption follow these steps1 Cut the POWER strap with a sharp tool2 Solder a 1x2 100 mil pin header in the footprint3 Connect an ammeter to the pin header4 Write firmware that

41 Tri-states any IO connected to the on-board debugger42 Sets the microcontroller in its lowest power Sleep state

5 Program the firmware into the AVR128DB48

Figure 4-7 Target Power Strap

Target Power strap (top side)

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 19

Tip  A 100-mil pin header can be soldered into the Target Power strap (J101) footprint for easyconnection of an ammeter Once the ammeter is no longer needed place a jumper cap on the pin header

Info  The on-board level shifters will draw a small amount of current even when they are not in use Amaximum of 2 microA can be drawn from each IO pin connected to a level shifter for a total of 10 microA Keepany IO pin connected to a level shifter in tri-state to prevent leakage All IOs connected to the on-boarddebugger are listed in 5251 On-Board Debugger Connections To prevent any leakage to the on-boardlevel shifters they can be disconnected completely as described in 84 Disconnecting the On-boardDebugger

45 Programming External MicrocontrollersThe on-board debugger on AVR128DB48 Curiosity Nano can be used to program and debug microcontrollers onexternal hardware

451 Supported DevicesAll external AVR microcontrollers with the UPDI interface can be programmed and debugged with the on-boarddebugger with Atmel Studio

External SAM microcontrollers that have a Curiosity Nano Board can be programmed and debugged with the on-board debugger with Atmel Studio

AVR128DB48 Curiosity Nano can program and debug external AVR128DB48 microcontrollers with MPLAB X IDE

452 Software ConfigurationNo software configuration is required to program and debug the same device that is mounted on the board

To program and debug a different microcontroller than what is mounted on the board Atmel Studio must beconfigured to allow free selection of devices and programming interfaces

1 Navigate to Tools gt Options through the menu system at the top of the application2 Select the Tools gt Tool settings category in the options window3 Set the Hide unsupported devices option to False

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 20

Figure 4-8 Hide Unsupported Devices

Info  Atmel Studio allows any microcontroller and interface to be selected when Hide unsupporteddevices is set to False also microcontrollers and interfaces which are not supported by the on-boarddebugger

453 Hardware ModificationsThe on-board debugger is connected to the AVR128DB48 by default These connections must be removed beforeany external microcontroller can be programmed or debugged Cut the GPIO straps shown in the figure below with asharp tool to disconnect the AVR128DB48 from the on-board debugger

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 21

Figure 4-9 Programming and Debugging Connections to Debugger

GPIO straps (bottom side)

Info  Cutting the connections to the debugger will disable programming debugging and data streamingfrom the AVR128DB48 mounted on the board

Tip  Solder in 0Ω resistors across the footprints or short-circuit them with solder to reconnect the signalsbetween the on-board debugger and the AVR128DB48

454 Connecting to External MicrocontrollersThe figure and table below show where the programming and debugging signals must be connected to program anddebug external microcontrollers The on-board debugger can supply power to the external hardware or use anexternal voltage as a reference for its level shifters Read more about the power supply in 43 Power Supply

The on-board debugger and level shifters actively drive data and clock signals (DBG0 DBG1 and DBG2) used forprogramming and debugging and in most cases the external resistor on these signals can be ignored Pull-downresistors are required on the ICSPtrade data and clock signals to debug PICreg microcontrollers

DBG3 is an open-drain connection and requires a pull-up resistor to function

AVR128DB48 Curiosity Nano has a pull-up resistor R200 connected to its RESET signal (DBG3) The location ofthe pull-up resistor is shown in the 82 Assembly Drawing in the appendix

Remember bull Connect GND and VTG to the external microcontrollerbull Tie the VOFF pin to GND if the external hardware has its own power supplybull Make sure there are pull-down resistors on the ICSP data and clock signals (DBG0 and DBG1) to

support the debugging of PIC microcontrollers

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 22

Figure 4-10 Curiosity Nano Standard Pinout

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

Table 4-4 Programming and Debugging Interfaces

Curiosity Nano Pin UPDI ICSPtrade SWD

DBG0 UPDI DATA SWDIO

DBG1 mdash CLK SWCLK

DBG2 mdash mdash mdash

DBG3 mdash MCLR RESET

46 Connecting External DebuggersEven though there is an on-board debugger external debuggers can be connected directly to the AVR128DB48Curiosity Nano to programdebug the AVR128DB48 The on-board debugger keeps all the pins connected to theAVR128DB48 and board edge in tri-state when not actively used Therefore the on-board debugger will not interferewith any external debug tools

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 23

Figure 4-11 Connecting the MPLABreg PICkittrade 4 In-Circuit DebuggerProgrammer to AVR128DB48 CuriosityNano

2345678 1

VDD

GroundDATA

2 = VDD

3 = Ground

4 = PGD

5 = Unused

6 = Unused

7 = Unused

8 = Unused

1 = Unused

MPLABreg PICkittrade 4

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 24

Figure 4-12 Connecting the Atmel-ICE to AVR128DB48 Curiosity Nano

VDD

Ground

DATA

AVRregSAM

3 = UPDI

4 = VTG

5 = Unused

6 = Unused

7 = Unused

8 = Unused

1 = Unused

2 = GND

9 = Unused

10 = Unused

Atmel-ICE

21 9

10

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

CAUTIONTo avoid contention between the external debugger and the on-board debugger do not start anyprogrammingdebug operation with the on-board debugger through MPLABreg X IDE or Atmel Studio 7 ormass storage programming while the external tool is active

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 25

5 Hardware User Guide

51 Connectors

511 AVR128DB48 Curiosity Nano PinoutAll the AVR128DB48 IO pins are accessible at the edge connectors on the board The image below shows the boardpinout For all available functions on each pin refer to the IO Multiplexing and Considerations section in theAVR128DB48 data sheet

Figure 5-1 AVR128DB48 Curiosity Nano Pinout

USB

DEBUGGER

AVR128DB48

SW0

LED0

PS LEDNC

NC

IDID

CDC RX

CD

CR

XUSART3 TXPB0

CDC TX

CD

CT

XUSART3 RXPB1

DBG1

DB

G1PB3LED0

DBG2

DB

G2PB2SW0

PF4

PF

4USART2 TX

PF5

PF

5USART2 RX

PA2

PA

2TWI0 SDA

PA3

PA

3TWI0 SCL

PA4

PA

4SPI0 MOSI

PA5

PA

5SPI0 MISO

PA6

PA

6SPI0 SCK

PA7

PA

7SPI0 SS

GND

GN

D

PB0

PB

0USART3 TXCDC RX

PB1

PB

1USART3 RXCDC TX

PF2

PF

2

PF3

PF

3

PC0

PC

0

PC1

PC

1

PC2

PC

2

PC3

PC

3

GND

GN

D

(PA0)

(PA

0)XTALHF1

(PA1)

(PA

1)XTALHF2

PB2

PB

2SW0

PB3

PB

3LED0

VBUS

VB

US

VOFF

VO

FF

DBG3

DB

G3 PF6

DBG0

DB

G0 UPDI

GND

GN

D

VTG

VT

G

PD6

PD

6 AIN6

PD3

PD

3 AIN3 OP0 INN

PD2

PD

2 AIN2 OP0 OUT TCA0 WO2

PD1

PD

1 AIN1 OP0 INP TCA0 WO1

PD0

PD

0 AIN0 TCA0 WO0

PD7

PD

7 AIN7 OP1 INN

PD5

PD

5 AIN5 OP1 OUT

PD4

PD

4 AIN4 OP1 INP

GND

GN

D

PE3

PE

3 OP2 INN

PE2

PE

2 OP2 OUT

PE1

PE

1 OP2 INP

PE0

PE

0

PC7

PC

7

PC6

PC

6

PC5

PC

5

PC4

PC

4

GND

GN

D

PB5

PB

5

PB4

PB

4

(PF1)

(PF

1) XTAL32K2

(PF0)

(PF

0) XTAL32K1

DEBUGGERAVR128DB48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

MVIO

OPAMP

Shared pin

AVR128DB48Curiosity Nano

512 Using Pin HeadersThe edge connector footprint on AVR128DB48 Curiosity Nano has a staggered design where each hole is shifted 8mil (~02 mm) off-center The hole shift allows the use of regular 100 mil pin headers on the board without solderingOnce the pin headers are firmly in place they can be used in normal applications like pin sockets and prototypingboards without any issues

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 26

Figure 5-2 Attaching Pin-Headers to the Curiostiy Nano Board

Figure 5-3 Connecting to Curiosity Nano Base for Click boardstrade

Tip  Start at one end of the pin header and gradually insert the header along the length of the boardOnce all the pins are in place use a flat surface to push them in

Tip  For applications where the pin headers will be used permanently it is still recommended to solderthem in place

Important  Once the pin headers are in place they are hard to remove by hand Use a set of pliers andcarefully remove the pin headers to avoid damage to the pin headers and PCB

513 Multi-Voltage IO

The AVR128DB48 Curiosity Nano MCU has support for Multi-Voltage IO (MVIO) AVR128DB48 MVIO pins areconnected to the edge connector at PC0-PC7 MVIO pins are capable of regular IO-pin behavior

MVIO can be configured in one of two supply modesbull Single-Supply mode All IO pins including MVIO-capable pins are powered by VCC_TARGET By default

VCC_TARGET is connected to VDDIO2 through a 0-ohm resistor (R204)bull Dual-Supply mode MVIO-capable pins are powered by an external power supply connected to VDDIO2 Non-

MVIO pins are powered by VCC_TARGET

Dual-Supply mode allows MVIO-pins to be powered at different voltages than pins powered from VCC_TARGET

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 27

WARNINGThe absolute maximum external voltage range for the AVR128DB48 is 18ndash55V Applying a higher voltagemay cause permanent damage to the board

By default AVR128DB48 Curiosity Nano board is configured for single-supply mode To use Dual-Supply mode somehardware modifications are required

WARNINGBefore any hardware modifications are done make sure the board is disconnected from USB or externalpower

bull Disconnect resistor R204 connecting VDDIO2 to VCC_TARGETbull Connect a new power supply to VDDIO2 and ground at J212bull J212 does not have reverse polarity protection Make sure to match polarity between the power supply and

J212 Positive-polarity to J212-pin 1 and negative-polarity to J212-pin 2

The resistor R204 VDDIO2 and J212 can be seen in Figure 5-4

Figure 5-4 MVIO and VDDIO2 Connections

J212 R204

WARNINGApplying an external voltage to VDDIO2 pin without removing resistor R204 may cause permanentdamage to the board

WARNINGJ212 does not have reverse polarity protection Applying voltage to the wrong pin may cause permanentdamage to the board

514 Operational AmplifiersAVR128DB48 features three internal operational amplifiers with a flexible connection scheme using analogmultiplexers and resistor ladders This allows a large number of analog signal conditioning configurations manyrequiring no external components

Table 5-1 OPAMP Pin Connections

OPAMP Poisitive Input (INP) Negative Input (INN) Output (OUT)

OP0 PD1 PD3 PD2

OP1 PD4 PD7 PD5

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 28

continuedOPAMP Poisitive Input (INP) Negative Input (INN) Output (OUT)

OP2 PE1 PE3 PE2

For information about OPAMP on the edge connector and any shared functionality see 511 AVR128DB48 CuriosityNano Pinout

52 Peripherals

521 LEDThere is one yellow user LED available on the AVR128DB48 Curiosity Nano board that can be controlled by eitherGPIO or PWM The LED can be activated by driving the connected IO line to GND

Table 5-2 LED Connection

AVR128DB48 Pin Function Shared Functionality

PB3 Yellow LED0 Edge connector On-board debugger

522 Mechanical SwitchThe AVR128DB48 Curiosity Nano board has one mechanical switch This is a generic user-configurable switchWhen the switch is pressed it will drive the IO line to ground (GND)

Tip  There is no externally connected pull-up resistor on the switch To use the switch make sure that aninternal pull-up resistor is enabled on pin PB2

Table 5-3 Mechanical Switch

AVR128DB48 Pin Description Shared Functionality

PB2 User switch (SW0) Edge connector On-board debugger

523 32768 kHz Crystal

On the AVR128DB48 Curiosity Nano board is a mounted 32768 kHz crystal of type VMK3-9001-32K7680000 thecrystal is accurate to within 20 ppm Using the External 32768 kHz Crystal Oscillator (XOSC32K) module inAVR128DB48 with the mounted 32768 kHz crystal generates a clock signal that is significantly more accurate thanthe Internal 32768 kHz Ultra Low-Power Oscillator (OSC32K) module can generate alone With the Auto-Tunefeature the 32768 kHz can be used as a reference to improve the accuracy of the internal oscillator This is an idealreference clock for the Real-Time Counter module in AVR128DB48

The 32768 kHz crystal is connected to AVR128DB48 on PF0 and PF1 which are also routed to the edge connectorthrough two solder points PF0 and PF1 are disconnected from the edge connector by default to reduce the chanceof an external signal causing contention with the crystal and to remove excessive capacitance on the lines

Next to the 32768 kHz crystal is a cut-strap (J209) which can be used to measure the oscillator safety factor This isdone by cutting the strap and adding a 0402 SMD resistor across the strap More information about oscillatorallowance and safety factor can be found in the AN2648 application note from Microchip

Cut straps and solder points can be seen in Figure 5-5

Table 5-4 32768 kHz Crystal Connections

AVR128DB48 Pin Function Shared Functionality

PF0 XTAL32K1 (Crystal input) Edge connector

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 29

continuedAVR128DB48 Pin Function Shared Functionality

PF1 XTAL32K2 (Crystal output) Edge connector

PA0 and PA1 can be used as GPIO To do so some hardware modifications are required

WARNINGBefore any hardware modifications are done make sure the board is disconnected from the USB orexternal power

bull Disconnect the 32768 kHz crystal by cutting the two straps on the top side of the board next to the crystal(J207 J208) The crystal should be disconnected when using the pin as GPIO as this might harm the crystal

bull Connect the IO lines to the edge connector by placing solder blobs on the circular solder points marked PF0and PF1 on the bottom side of the board (J210 J211)

Figure 5-5 Crystal Connection and Cut Straps

Top side Boom side

J211

J210

J207

J20832768 kHz Crystal

J209

524 1600 MHz Crystal

On the AVR128DB48 Curiosity Nano board is a mounted 1600 MHz crystal of type VXM7-9040-16M0000000 thecrystal is accurate to within 20 ppm Using the External High-Frequency Crystal Oscillator (XOSCHF) module inAVR128DB48 with the mounted 1600 MHz crystal generates a clock signal that is significantly more accurate thanthe Internal High-Frequency Oscillator (OSCHF) module

The 1600 MHz crystal is connected to AVR128DB48 on PA0 and PA1 which are also routed to the edge connectorthrough two solder points PA0 and PA1 are disconnected from the edge connector by default to reduce the chanceof an external signal causing contention with the crystal and to remove excessive capacitance on the lines

Next to the 1600 MHz crystal is a cut-strap (J217) which can be used to measure the oscillator safety factor This isdone by cutting the strap and adding a 0402 SMD resistor across the strap More information about oscillatorallowance and safety factor can be found in the AN2648 application note from Microchip

Cut straps and solder points can be seen in Figure 5-6

Table 5-5 Crystal Connections

AVR128DB48 Pin Function Shared Functionality

PA0 XTALHF1 (Crystal input) Edge connector

PA1 XTALHF2 (Crystal output) Edge connector

PA0 and PA1 can be used as GPIO To do so some hardware modifications are required

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 30

WARNINGBefore any hardware modifications are done make sure the board is disconnected from USB or externalpower

bull Disconnect the 1600 MHz crystal by cutting the two straps on the top side of the board next to the crystal (J215J216) The crystal should be disconnected when using the pin as GPIO as this might harm the crystal

bull Connect the IO lines to the edge connector by placing solder blobs on the circular solder points marked PA0and PA1 on the bottom side of the board (J213 J214)

Figure 5-6 Crystal Connection and Cut Straps

Top side Boom side

J214

J213

J216

J2151600 MHzCrystal

J217

525 On-Board Debugger ImplementationAVR128DB48 Curiosity Nano features an on-board debugger that can be used to program and debug theAVR128DB48 using UPDI The on-board debugger also includes a virtual serial port (CDC) interface over UART anddebug GPIO Both MPLABreg X IDE and Atmel Studio 7 can be used as a front-end for the on-board debugger forprogramming and debugging MPLAB Data Visualizer can be used as a front-end for the CDC and debug GPIO

5251 On-Board Debugger ConnectionsThe table below shows the connections between the target and the debugger section All connections between thetarget and the debugger are tri-stated as long as the debugger is not actively using the interface Hence since thereare little contaminations of the signals the pins can be configured to anything the user wants

For further information on how to use the capabilities of the on-board debugger see 41 On-Board DebuggerOverview

Table 5-6 On-Board Debugger Connections

AVR128DB48Pin

Debugger Pin Function Shared Functionality

PB1 CDC TX UART RX (AVR128DB48 RX line) Edge connector

PB0 CDC RX UART TX (AVR128DB48 TX line) Edge connector

UPDI DBG0 UPDI Edge connector

PB3 DBG1 LED0Debug GPIO1 Edge connector

PB2 DBG2 SW0Debug GPIO0 Edge connector

PF6 DBG3 RESET Edge connector

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 31

6 Hardware Revision History and Known IssuesThis user guide is written to provide information about the latest available revision of the board The followingsections contain information about known issues a revision history of older revisions and how older revisions differfrom the latest revision

61 Identifying Product ID and RevisionThe revision and product identifier of the AVR128DB48 Curiosity Nano Board can be found in two ways Either byutilizing the MPLABreg X IDE or Atmel Studio 7 Kit Window or by looking at the sticker on the bottom side of the PCB

By connecting AVR128DB48 Curiosity Nano to a computer with MPLABreg X IDE or Atmel Studio 7 running the KitWindow will pop up The first six digits of the serial number which is listed under kit information contain the productidentifier and revision

Tip  The Kit Window can be opened in MPLABreg X IDE through the menu bar Window gt Kit Window

The same information can be found on the sticker on the bottom side of the PCB Most boards will have the identifierand revision printed in plain text as A09-nnnnrr where ldquonnnnrdquo is the identifier and ldquorrrdquo is the revision Boards withlimited space have a sticker with only a data matrix code containing the product identifier revision and serialnumber

The serial number string has the following format

nnnnrrssssssssss

n = product identifier

r = revision

s = serial number

The product identifier for AVR128DB48 Curiosity Nano is A09‑3372

62 Revision 3AVR128DB48 silicon revision A5 or later is mounted on this revision of the board

63 Revision 2Revision 2 is the initially released board revision

AVR128DB48 silicon revision A4 is mounted on this revision of the board

AVR128DB48 Curiosity NanoHardware Revision History and Known Issues

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 32

7 Document Revision HistoryDoc Rev Date Comments

A 092020 Initial document release

AVR128DB48 Curiosity NanoDocument Revision History

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 33

8 Appendix

81 SchematicFigure 8-1 AVR128DB48 Curiosity Nano Schematic

11

22

33

44

55

66

77

88

DD

CC

BB

AA

2 of

4

AV

R12

8DB

48 C

uri

osit

y N

ano

240

820

20A

VR

128D

B48

_Cur

iosi

ty_N

ano_

Targ

et_M

CU

Sch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA

Rev

isio

n

File

P

CB

Num

ber

PC

B

Rev

isio

n

Des

ign

ed w

ith

Dra

wn

By

ML

Shee

t Titl

e

Targ

et M

CU

Eng

inee

rA

H

A08

-305

71

Size

A3

A09

-337

22

Page

D

ateA

ltium

com

GN

D

VD

DIO

2

100n

C20

1

GN

D

PA5_

SPI0

_MIS

OPA

6_SP

I0_S

CK

PA7_

SPI0

_SS

PB0_

USA

RT

3_T

XPB

1_U

SAR

T3_

RX

PB2_

SW0_

DB

G2

PB3_

LE

D0_

DB

G1

PB

4P

B5

PC

0P

C1

PC

2

PC3

PC4PC5PC6PC7PD0_AIN0_TCA0_WO0PD1_AIN1_OP0_INP_TCA0_WO1PD2_AIN2_OP0_OUT_TCA0_WO2PD3_AIN3_OP0_INNPD4_AIN4_OP1_INP

PA3_TWI0_SCL

PA1_XTALHF2

UPDI_DBG0

PF5_USART2_RX

PF3

PF

2PF

1_X

TA

L32

K2

PF0_

XT

AL

32K

1P

E3_

OP

2_IN

NP

E2_

OP

2_O

UT

PE

1_O

P2_

INP

PE

0

PD5_

AIN

5_O

P1_

OU

TPD

6_A

IN6

PD7_

AIN

7_O

P1_

INN

GN

D

VC

C_T

AR

GE

T

100n

C20

2

GN

DV

CC

_TA

RG

ET

100n

C20

0

PF1_XTAL32K2

PF0_XTAL32K1

PA2_TWI0_SDA

PA0_XTALHF1

PF4_USART2_TX

PA4_SPI0_MOSI

GN

D

PA7_

SPI0

_SS

PA6_

SPI0

_SC

KPA

5_SP

I0_M

ISO

PA4_

SPI0

_MO

SIPA

3_T

WI0

_SC

LPA

2_T

WI0

_SD

A

PC

0P

C1

PC

2P

C3

PB

4P

B5

PD7_

AIN

7_O

P1_

INN

PD6_

AIN

6

PD2_

AIN

2_O

P0_

OU

T_T

CA

0_W

O2

PD1_

AIN

1_O

P0_

INP_

TC

A0_

WO

1PD

0_A

IN0_

TC

A0_

WO

0

PD5_

AIN

5_O

P1_

OU

TPD

4_A

IN4_

OP

1_IN

P

PD3_

AIN

3_O

P0_

INN

32K

Hz

Cry

stal

PB0_

USA

RT

3_T

XPB

1_U

SAR

T3_

RX

1kR203

US

ER

LE

D

VC

C_T

AR

GE

T

PF6_DBG3

PB2_SW0_DBG2

PB3_LED0_DBG1

GN

D

USE

R B

UT

TO

N

PB3_

LE

D0_

DB

G1

PB2_

SW0_

DB

G2

PB1_

USA

RT

3_R

XPB

0_U

SAR

T3_

TX

PF4_

USA

RT

2_T

XPF

5_U

SAR

T2_

RX

PF

2P

F3

PC

4P

C5

PC

6P

C7

1kR202

YELLOWLEDSML-D12Y1WT86

2 1

D200

TS604VM1-035CR13

4 2

SW20

0

GN

DV

CC

_ED

GE

GN

DG

ND

GN

DG

ND

UPD

I_D

BG

0P

F6_

DB

G3

J209

PB3_

LE

D0_

DB

G1

PB2_

SW0_

DB

G2

AV

R12

8DB

48

22u

FC

205

VC

C_E

DG

E

GN

D

DBG0

CDC_TXCDC_RX

DBG2

DBG1

DBG3

DBG2

DE

BU

GG

ER

CO

NN

EC

TIO

NS

DBG1

DBG3DBG0

VOFF

ID_SYS

ID_SYS

VOFF

TA

RG

ET

BU

LK

VC

C_T

AR

GE

TR

ESE

T P

ull

VB

US

CD

C R

X3

CD

C T

X4

DB

G1

5

DB

G2

6

0 T

X7

1 R

X8

2 SD

A9

3 S

CL

10

4 M

OSI

11

5 M

ISO

12

6 S

CK

13

7 S

S14

GN

D15

0 (T

X)

16

1 (R

X)

17

218

319

020

GN

D24

DB

G3

54

DB

G0

53

GN

D52

VC

C51

PW

M 3

46

AD

C 2

45

AD

C 1

44

AD

C 0

43

GN

D42

438

434

GN

D33

AD

C 7

50

AD

C 6

49

AD

C 5

48

PW

M 4

47

DE

BU

GG

ER

TAR

GE

T

ID2

VO

FF

55

121

222

323

025

126

227

328

429

530

631

732

535

636

737

539

640

741

RE

SER

VE

D1

VB

US

56

CN

AN

O56

-pin

edg

e co

nnec

tor

J200

J201

J203

J205

J206

J202

J204

PF1_

XT

AL

32K

2PF

0_X

TA

L32

K1

NC

XOUT

XIN

47kR200

AV

R12

8DB

48

UPD

I

GPI

O1

GPI

O0

RE

SET

DB

G0

DB

G1

DB

G2

DB

G3

Deb

ugge

r

CD

C T

X

CD

C R

X

UA

RT

3 R

X

UA

RT

3 T

X

VT

G1

8V -

55

VPB

3

PB

2

PF

6

UP

DI

PB

0

PB

1

Nam

eP

in

PE

3_O

P2_

INN

PE

2_O

P2_

OU

TP

E1_

OP

2_IN

PP

E0

J207

J208

PF

0P

F1

PA5

1

PA6

2

PA7

3

PB0

4

PB1

5

PB2

6

PB3

7

PB4

8

PB5

9

PC0

10

PC1

11

PC2

12

PC313

VDDIO214

GND15

PC416

PC517

PC618

PC719

PD020

PD121

PD222

PD323

PD424

PD5

25

PD6

26

PD7

27

AVDD

28

GND

29

PE0

30

PE1

31

PE2

32

PE3

33

XTAL32K1PF0

34

XTAL32K2PF1

35

PF2

36

PF337

PF438

PF539

PF640

UPDI41

VDD42

GND43

XTALHF1PA044

XTALHF2PA145

PA246

PA347

PA448

AV

R12

8DB

48-I

PT

U20

0

0RR204

GN

D

VC

C_T

AR

GE

T

VDDIO2

GND

J210

J211

82p

C20

48

2pC

203

GN

DG

ND

16M

Hz

Cry

stal

J217

XHFOUT

XHFIN

J214

J213

GN

D

J215

J216

PA0_XTALHF1

PA1_XTALHF2

PA0_

XT

AL

HF

1PA

1_X

TA

LH

F2

PA0

PA1

1 2

J212 N

M

15pF

C20

615

pFC

207

13

24 16

000

MH

zV

XM

7-90

40-1

6M00

0000

0TR

XC

201

GN

D32

768

kHz

VM

K3-

9001

-32K

7680

000T

R

XC

200

CDC_TX

CDC_RX

CD

C_T

XC

DC

_RX

Cry

stal

dat

ashe

et

Ccr

ysta

l = 9

pFm

ax E

SR

= 7

0kO

hmA

ccur

acy

plusmn20p

pm

AV

R48

DB

128

data

shee

tC

xin

= 4

0pF

(ty

pica

l val

ue)

Cxo

ut =

40

pF (

typi

cal v

alue

)C

lasymp1

( (1

40

pF)+

(1

40p

F)

)asymp

20p

FM

axim

um L

oad

= 1

25p

FM

axim

um E

SR =

50k

Ohm

Est

imat

ed C

pcb

= 0

5pF

Est

imat

ed lo

adC

= 2

(C

crys

tal-

Cpa

ra -

Cpc

b)C

= 2

(9p

F -

20

pF -

05

pF)

C =

13

0pF

Sele

cted

in d

esig

n af

ter

veri

fica

tion

C=

82

pF8

2pF

NO

TE

on

UA

RT

CD

C

RX

TX

onth

ehe

ader

deno

tes

the

inpu

tout

put d

irec

tion

of th

e si

gnal

resp

ectiv

e to

its

sou

rce

CD

C T

X is

out

put f

rom

the

DE

BU

GG

ER

C

DC

RX

is in

put t

o th

e D

EB

UG

GE

R

TX

is o

utpu

t fro

m th

e T

AR

GE

T d

evic

eR

X is

inpu

t to

the

TA

RG

ET

dev

ice

NO

TE

on

I2C

No

pull

-ups

on

boar

d P

ull-

ups

shou

ld b

em

ount

ed c

lose

to s

lave

dev

ice(

s)

WA

RN

ING

M

ake

sure

tore

mov

e R

204

befo

reap

plyi

ng p

ower

to J

212

Cry

stal

dat

ashe

et

Ccr

ysta

l = 1

2pF

max

ES

R =

60O

hmA

ccur

acy

plusmn30p

pm

AV

R48

DB

128

data

shee

tC

xin

= 4

0pF

(ty

pica

l val

ue)

Cxo

ut =

40

pF (

typi

cal v

alue

)C

lasymp1

( (1

40

pF)+

(1

40p

F)

)asymp

20p

FM

axim

um L

oad

= 1

25p

FM

axim

um E

SR =

k

Ohm

Est

imat

ed C

pcb

= 0

5pF

Est

imat

ed lo

adC

= 2

(C

crys

tal-

Cpa

ra -

Cpc

b)C

= 2

(12

pF -

20

pF -

05

pF)

C =

19

0pF

Sele

cted

in d

esig

n af

ter

veri

fica

tion

C=

15p

F1

5pF

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 34

11

22

33

44

55

66

77

88

DD

CC

BB

AA

3 of

4

AV

R12

8DB

48 C

uri

osit

y N

ano

2020

-06-

26A

VR

128D

B48

_Cur

iosi

ty_N

ano_

Deb

ugge

rSch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA

Rev

isio

n

Fil

eP

CB

Num

ber

PC

B

Rev

isio

n

Des

ign

ed w

ith

Dra

wn

By

ML

Shee

t Tit

le

Deb

ugge

r

Eng

inee

rA

H

A08

-305

71

Size

A3

A09

-337

22

Page

D

ateA

ltium

com

DE

BU

GG

ER

USB

MIC

RO

-B C

ON

NE

CT

OR

GN

D

USB

D_P

USB

D_N

100n

C10

7

100n

C10

8

1kR

107

VC

C_P

3V3

SRST

STA

TU

S_L

ED

SHIE

LD

VB

US

VC

C_P

3V3

GN

D

TP

100

Test

poin

t Arr

ay

12

34

56

78

910

TC

KT

DO

TM

SV

sup

TD

IG

ND

TR

STSR

STV

Tre

fG

ND

J102

GN

D

47u

F

C10

0

DBG0

DB

G0

21

GR

EE

N L

ED

SML

-P12

MT

T86

R

D10

0

VBUS

1

D-

2

D+

3

GND

5

SHIELD1

6

SHIELD2

7

ID

4

SHIELD3

8

SHIELD4

9 MU

-MB

0142

AB

2-26

9

J105

PAD

33

PA00

1

PA01

2

PA02

3

PA03

4

GND 10VDDANA 9

PA04

5

PA05

6

PA06

7

PA07

8

PA08 11

PA09 12

PA10 13

PA11 14

PA14 15

PA15 16

PA16

17

PA17

18

PA18

19

PA19

20

PA22

21

USB_SOFPA23

22

USB_DMPA24

23

USB_DPPA25

24

PA2725 RESETN26 PA2827 GND28 VDDCORE29 VDDIN30 SWDCLKPA3031 SWDIOPA3132

SAM

D21

E18

A-M

UT

U10

0

VOUT

1

VOUT

2

GND 3

EN

4

VIN

6

NC

5

EP 7

MIC

5528

-33

YM

TU

101

VC

C_P

3V3

GN

D

USB

D_P

USB

D_N

GN

D

1uC

106

VC

C_M

CU

_CO

RE

VC

C_P

3V3

VC

C_P

3V3

22u

FC

101

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

3

VC

C_P

3V3

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

4

VC

C_P

3V3

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

5

VC

C_P

3V3

GN

D

GN

D GN

D

GN

D

VC

C_E

DG

E

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

7

VC

C_P

3V3

GN

DDBG2

DB

G3_

CT

RL

S1_0

_TX

S1_1

_RX

S0_2

_TX

DA

CV

TG

_AD

C

RE

SER

VE

D

S0_3

_CL

K

DBG0_CTRL

CD

C_T

X_C

TR

L

BO

OT

DE

BU

GG

ER

PO

WE

RS

TA

TU

S L

ED

EN

1

BYP

6

VOUT

4

GND

2

VIN

3

NCADJ

5

GND

7

MIC

5353

U10

2

100n

C10

2

GN

D

GN

D

47kR101

27kR104 G

ND

33k

R10

6

22u

F

C10

3 GN

D

1kR

108

J100

VC

C_L

EV

EL

VC

C_R

EG

UL

AT

OR

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

6

VC

C_P

3V3

GN

DDBG1

CD

C_R

X

CD

C_T

X

DBG3

DBG1_CTRL

DE

BU

GG

ER

RE

GU

LA

TO

R

REG_ENABLE

RE

G_E

NA

BL

E

47kR103

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

47kR102

47kR105

SWC

LK

GN

D

47kR100 G

ND

DB

G2

S0_0

_RX

DB

G1_

CT

RL

DB

G0_

CT

RL

DB

G3

OP

EN

DR

AIN

TA

RG

ET

AD

JUST

AB

LE

RE

GU

LA

TO

R

SRST

DE

BU

GG

ER

TE

ST

PO

INT DBG2_CTRL

VO

FF

CD

C_R

X_C

TR

L

47kR109

DB

G1

CD

C_T

X_C

TR

L

CD

C_R

X_C

TR

L

SWC

LK

REG_ADJUST

DBG2_GPIO

DB

G3_

CT

RL

DB

G2_

CT

RL

UP

DI

UPD

I

GPI

O

GPI

O

RE

SET

Sign

al

DB

G0

DB

G1

DB

G2

DB

G3

ICS

PIn

terf

ace

DA

T

CL

K

GPI

O

MC

LR

DB

G3

CD

C T

X

CD

C R

X

UA

RT

RX

UA

RT

TX

UA

RT

RX

UA

RT

TX

TA

RG

ET

TA

RG

ET

1kR

110

VBUS_ADC

1

23

DM

N65

D8L

FB

Q10

1

VC

C-

-

ID_SYS

VOFF

1kR112

VC

C_P

3V3

VT

G_A

DC

DA

C

MIC

9416

3

VIN

B2

VOUT

A1

VIN

A2

EN

C2

GND

C1

VOUT

B1

U10

8

GN

D

ID_S

YS

VT

G_E

N

VTG_EN

VBUS_ADC

SWD

IO

ID_S

YS

TP

101

GN

DSW

DIO

VO

FF

47kR111 G

ND

ID P

IN

MC

3621

3

F10

0

VC

C_V

BU

S

VC

C_V

BU

S

VC

C_V

BU

S

J101

VC

C_T

AR

GE

T

47k

R11

3

CDC_TX

CDC_RX

Prog

ram

min

g co

nnec

tor

for

fact

ory

prog

ram

min

g of

DE

BU

GG

ER

MIC

5528

V

in 2

5V

to 5

5V

Vou

t F

ixed

33

VIm

ax 5

00m

AD

ropo

ut 2

60m

V

500

mA

MIC

5353

V

in 2

6V

to 6

VV

out

12

5V to

51

VIm

ax 5

00m

AD

ropo

ut (

typi

cal)

50m

V

150m

A 1

60m

V

500

mA

Acc

urac

y 2

in

itia

lT

herm

al s

hutd

own

and

curr

ent l

imit

Max

imum

out

put v

olta

ge is

lim

ited

by

the

inpu

t vol

tage

and

the

drop

out v

olta

ge in

the

regu

lato

r(V

max

= V

in -

dro

pout

)

J100

-

Cut

-str

ap u

sed

for

full

sep

arat

ion

of ta

rget

pow

er f

rom

the

leve

l shi

fter

s an

don

-boa

rd r

egul

ator

s-

For

cur

rent

mea

sure

men

ts u

sing

the

on-b

oard

pow

er s

uppl

y th

isst

rap

mus

t be

cut a

nd a

nam

met

er c

onne

cted

acr

oss

- F

or c

urre

nt m

easu

rem

ents

usi

ng a

n ex

tern

al p

ower

sup

ply

this

str

ap c

ould

be

cut f

or m

ore

accu

rate

mea

sure

men

ts L

eaka

ge b

ack

thro

ugh

the

swit

ch is

in th

e m

icro

am

pere

ran

ge

PT

C R

eset

tabl

e fu

se

Hol

d cu

rren

t 5

00m

AT

rip

curr

ent

100

0mA

Adj

usta

ble

outp

ut a

nd li

mit

atio

ns

- T

he D

EB

UG

GE

R c

an a

djus

t the

out

put v

olta

ge o

f th

e re

gula

tor

betw

een

125

V a

nd 5

1V

to th

e ta

rget

-

The

vol

tage

out

put i

s li

mit

ed b

y th

e in

put (

US

B)

whi

ch c

an v

ary

betw

een

440

V to

52

5V-

The

leve

l shi

fter

s ha

ve a

min

imal

vol

tage

leve

l of

165

V a

nd w

ill l

imit

the

min

imum

ope

ratin

g vo

ltage

all

owed

for

the

targ

et to

sti

ll a

llow

com

mun

icat

ion

- T

he M

IC94

163

has

a m

inim

al v

olat

ege

leve

l of

170

V a

nd w

ill l

imit

the

min

imum

vol

tage

del

iver

ed to

the

targ

et

- F

irm

war

e co

nfig

urat

ion

wil

l lim

it th

e vo

ltage

ran

ge to

be

wit

hin

the

the

targ

et s

peci

fica

tion

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 35

82 Assembly DrawingFigure 8-2 AVR128DB48 Curiosity Nano Assembly Drawing Top

+

Cb

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20001 PAC20002 COC200

PAC20101 PAC20102 COC201

PAC20201 PAC20202 COC202 PAC20301

PAC20302 COC203

PAC20401

PAC20402 COC204

PAC20502

PAC20501 COC205

PAC20601

PAC20602 COC206 PAC20701

PAC20702 COC207 PAD10002 PAD10001 COD100

PAD20002

PAD20001 COD200

PAF10002

PAF10001 COF100

PAJ10002 PAJ10001 COJ100

PAJ10101 PAJ10102 COJ101

PAJ10201

PAJ10202

PAJ10203

PAJ10204

PAJ10205

PAJ10206 COJ102

PAJ10506

PAJ10507 PAJ10509

PAJ10508 PAJ105010

PAJ105011 PAJ10505

PAJ10504

PAJ10503

PAJ10502

PAJ10501

PAJ10500

COJ105

PAJ200056 PAJ200053

PAJ200028 PAJ20002 PAJ20001

PAJ200051 PAJ200050 PAJ200052 PAJ200049 PAJ200048 PAJ200047 PAJ200046 PAJ200045 PAJ200044 PAJ200043 PAJ200042 PAJ200041 PAJ200040 PAJ200039 PAJ200038 PAJ200037 PAJ200036 PAJ200035 PAJ200034 PAJ200033 PAJ200032 PAJ200031 PAJ200030 PAJ200029

PAJ20003 PAJ20004 PAJ20005 PAJ20006 PAJ20007 PAJ20008 PAJ20009 PAJ200010 PAJ200011 PAJ200012 PAJ200013 PAJ200014 PAJ200015 PAJ200016 PAJ200017 PAJ200018 PAJ200019 PAJ200020 PAJ200021 PAJ200022 PAJ200023 PAJ200026 PAJ200025 PAJ200024 PAJ200027

PAJ200054 PAJ200055 PAJ20000

COJ200

PAJ20102 PAJ20101 COJ201

PAJ20202 PAJ20201 COJ202

PAJ20302 PAJ20301 COJ203

PAJ20402 PAJ20401 COJ204

PAJ20502 PAJ20501 COJ205

PAJ20602 PAJ20601 COJ206 PAJ20702 PAJ20701 COJ207

PAJ20802 PAJ20801 COJ208

PAJ20902 PAJ20901 COJ209

PAJ21001 PAJ21002 PAJ21005 COJ210

PAJ21102 PAJ21101 PAJ21105 COJ211

PAJ21202 PAJ21201 COJ212

PAJ21301 PAJ21302 PAJ21305 COJ213

PAJ21401 PAJ21402 PAJ21405 COJ214

PAJ21502 PAJ21501 COJ215

PAJ21602 PAJ21601 COJ216 PAJ21702 PAJ21701 COJ217

COLABEL1

PAQ10101 PAQ10102 PAQ10103 PAQ10100

COQ101 PAR10002

PAR10001 COR100 PAR10101 PAR10102 COR101

PAR10202 PAR10201 COR102

PAR10302 PAR10301 COR103

PAR10401 PAR10402 COR104

PAR10502

PAR10501 COR105

PAR10601 PAR10602 COR106

PAR10702 PAR10701 COR107

PAR10801

PAR10802 COR108

PAR10901 PAR10902 COR109

PAR11001 PAR11002 COR110

PAR11101 PAR11102 COR111

PAR11201 PAR11202 COR112

PAR11302 PAR11301 COR113

PAR20001 PAR20002 COR200 PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203 PAR20401 PAR20402 COR204

PASW20003

PASW20004 PASW20002

PASW20001 COSW200

PATP10001 COTP100

PATP10101 COTP101 PAU100033

PAU100032 PAU100031 PAU100030 PAU100029 PAU100028 PAU100027 PAU100026 PAU100025 PAU100024

PAU100023

PAU100022

PAU100021

PAU100020

PAU100019

PAU100018

PAU100017 PAU100016 PAU100015 PAU100014 PAU100013 PAU100012 PAU100011 PAU100010

PAU10001

PAU10002

PAU10003

PAU10004

PAU10005

PAU10006

PAU10007

PAU10008 PAU10009

COU100

PAU10107

PAU10104 PAU10105 PAU10106

PAU10103 PAU10102 PAU10101 PAU10100 COU101 PAU10207

PAU10204 PAU10205

PAU10206

PAU10203 PAU10202

PAU10201

COU102

PAU10306

PAU10305 PAU10304 PAU10303

PAU10302 PAU10301 PAU10300

COU103

PAU10406

PAU10405 PAU10404 PAU10403

PAU10402 PAU10401 PAU10400

COU104

PAU10506

PAU10505 PAU10504 PAU10503

PAU10502 PAU10501 PAU10500

COU105

PAU10606

PAU10605 PAU10604 PAU10603

PAU10602 PAU10601 PAU10600

COU106

PAU10706

PAU10705 PAU10704 PAU10703

PAU10702 PAU10701 PAU10700

COU107

PAU1080A1 PAU1080A2

PAU1080B1 PAU1080B2

PAU1080C1 PAU1080C2 COU108

PAU20001 PAU20002 PAU20003 PAU20004 PAU20005 PAU20006 PAU20007 PAU20008 PAU20009 PAU200010 PAU200011 PAU200012 PAU200013 PAU200014 PAU200015 PAU200016 PAU200017 PAU200018 PAU200019 PAU200020 PAU200021 PAU200022 PAU200023 PAU200024 PAU200025 PAU200026 PAU200027 PAU200028 PAU200029 PAU200030 PAU200031 PAU200032 PAU200033 PAU200034 PAU200035 PAU200036

PAU200037 PAU200038 PAU200039 PAU200040 PAU200041 PAU200042 PAU200043 PAU200044 PAU200045 PAU200046 PAU200047 PAU200048

COU200

PAXC20001

PAXC20002 COXC200

PAXC20101 PAXC20102

PAXC20103 PAXC20104 COXC201

Figure 8-3 AVR128DB48 Curiosity Nano Assembly Drawing Bottom

tcR

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20001 PAC20002 COC200

PAC20101 PAC20102 COC201

PAC20201 PAC20202 COC202 PAC20301

PAC20302 COC203

PAC20401

PAC20402 COC204

PAC20502

PAC20501 COC205

PAC20601

PAC20602 COC206 PAC20701

PAC20702 COC207 PAD10002 PAD10001 COD100

PAD20002

PAD20001 COD200

PAF10002

PAF10001 COF100

PAJ10002 PAJ10001 COJ100

PAJ10101 PAJ10102 COJ101

PAJ10201

PAJ10202

PAJ10203

PAJ10204

PAJ10205

PAJ10206 COJ102

PAJ10506

PAJ10507 PAJ10509

PAJ10508 PAJ105010

PAJ105011 PAJ10505

PAJ10504

PAJ10503

PAJ10502

PAJ10501

PAJ10500

COJ105

PAJ200056 PAJ200053

PAJ200028 PAJ20002 PAJ20001

PAJ200051 PAJ200050 PAJ200052 PAJ200049 PAJ200048 PAJ200047 PAJ200046 PAJ200045 PAJ200044 PAJ200043 PAJ200042 PAJ200041 PAJ200040 PAJ200039 PAJ200038 PAJ200037 PAJ200036 PAJ200035 PAJ200034 PAJ200033 PAJ200032 PAJ200031 PAJ200030 PAJ200029

PAJ20003 PAJ20004 PAJ20005 PAJ20006 PAJ20007 PAJ20008 PAJ20009 PAJ200010 PAJ200011 PAJ200012 PAJ200013 PAJ200014 PAJ200015 PAJ200016 PAJ200017 PAJ200018 PAJ200019 PAJ200020 PAJ200021 PAJ200022 PAJ200023 PAJ200026 PAJ200025 PAJ200024 PAJ200027

PAJ200054 PAJ200055 PAJ20000

COJ200

PAJ20102 PAJ20101 COJ201

PAJ20202 PAJ20201 COJ202

PAJ20302 PAJ20301 COJ203

PAJ20402 PAJ20401 COJ204

PAJ20502 PAJ20501 COJ205

PAJ20602 PAJ20601 COJ206 PAJ20702 PAJ20701 COJ207

PAJ20802 PAJ20801 COJ208

PAJ20902 PAJ20901 COJ209

PAJ21001 PAJ21002 PAJ21005 COJ210

PAJ21102 PAJ21101 PAJ21105 COJ211

PAJ21202 PAJ21201 COJ212

PAJ21301 PAJ21302 PAJ21305 COJ213

PAJ21401 PAJ21402 PAJ21405 COJ214

PAJ21502 PAJ21501 COJ215

PAJ21602 PAJ21601 COJ216 PAJ21702 PAJ21701 COJ217

COLABEL1

PAQ10101 PAQ10102 PAQ10103 PAQ10100

COQ101 PAR10002

PAR10001 COR100 PAR10101 PAR10102 COR101

PAR10202 PAR10201 COR102

PAR10302 PAR10301 COR103

PAR10401 PAR10402 COR104

PAR10502

PAR10501 COR105

PAR10601 PAR10602 COR106

PAR10702 PAR10701 COR107

PAR10801

PAR10802 COR108

PAR10901 PAR10902 COR109

PAR11001 PAR11002 COR110

PAR11101 PAR11102 COR111

PAR11201 PAR11202 COR112

PAR11302 PAR11301 COR113

PAR20001 PAR20002 COR200 PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203 PAR20401 PAR20402 COR204

PASW20003

PASW20004 PASW20002

PASW20001 COSW200

PATP10001 COTP100

PATP10101 COTP101 PAU100033

PAU100032 PAU100031 PAU100030 PAU100029 PAU100028 PAU100027 PAU100026 PAU100025 PAU100024

PAU100023

PAU100022

PAU100021

PAU100020

PAU100019

PAU100018

PAU100017 PAU100016 PAU100015 PAU100014 PAU100013 PAU100012 PAU100011 PAU100010

PAU10001

PAU10002

PAU10003

PAU10004

PAU10005

PAU10006

PAU10007

PAU10008 PAU10009

COU100

PAU10107

PAU10104 PAU10105 PAU10106

PAU10103 PAU10102 PAU10101 PAU10100 COU101 PAU10207

PAU10204 PAU10205

PAU10206

PAU10203 PAU10202

PAU10201

COU102

PAU10306

PAU10305 PAU10304 PAU10303

PAU10302 PAU10301 PAU10300

COU103

PAU10406

PAU10405 PAU10404 PAU10403

PAU10402 PAU10401 PAU10400

COU104

PAU10506

PAU10505 PAU10504 PAU10503

PAU10502 PAU10501 PAU10500

COU105

PAU10606

PAU10605 PAU10604 PAU10603

PAU10602 PAU10601 PAU10600

COU106

PAU10706

PAU10705 PAU10704 PAU10703

PAU10702 PAU10701 PAU10700

COU107

PAU1080A1 PAU1080A2

PAU1080B1 PAU1080B2

PAU1080C1 PAU1080C2 COU108

PAU20001 PAU20002 PAU20003 PAU20004 PAU20005 PAU20006 PAU20007 PAU20008 PAU20009 PAU200010 PAU200011 PAU200012 PAU200013 PAU200014 PAU200015 PAU200016 PAU200017 PAU200018 PAU200019 PAU200020 PAU200021 PAU200022 PAU200023 PAU200024 PAU200025 PAU200026 PAU200027 PAU200028 PAU200029 PAU200030 PAU200031 PAU200032 PAU200033 PAU200034 PAU200035 PAU200036

PAU200037 PAU200038 PAU200039 PAU200040 PAU200041 PAU200042 PAU200043 PAU200044 PAU200045 PAU200046 PAU200047 PAU200048

COU200

PAXC20001

PAXC20002 COXC200

PAXC20101 PAXC20102

PAXC20103 PAXC20104 COXC201

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 36

83 Curiosity Nano Base for Click boardstrade

Figure 8-4 AVR128DB48 Curiosity Nano Pinout Mapping

US

B

DE

BU

GG

ER

AV

R1

28

DB

48

SW

0

LE

D0

PS

LE

DNC

NC

ID

ID

CDC RX

CDCRX

USART3 TX

PB0

CDC TX

CDCTX

USART3 RX

PB1

DBG1

DBG1

PB3

LED0

DBG2

DBG2

PB2

SW0

PF4

PF4

USART2 TX

PF5

PF5

USART2 RX

PA2

PA2

TWI0 SDA

PA3

PA3

TWI0 SCL

PA4

PA4

SPI0 MOSI

PA5

PA5

SPI0 MISO

PA6

PA6

SPI0 SCK

PA7

PA7

SPI0 SS

GND

GND

PB0

PB0

USART3 TX

CDC RX

PB1

PB1

USART3 RX

CDC TX

PF2

PF2

PF3

PF3

PC0

PC0

PC1

PC1

PC2

PC2

PC3

PC3

GND

GND

(PA0)

(PA0)

XTALHF1

(PA1)

(PA1)

XTALHF2

PB2

PB2

SW0

PB3

PB3

LED0

VBUS

VBUS

VOFF

VOFF

DBG3

DBG3

PF6

DBG0

DBG0

UPDI

GND

GND

VTG

VTG

PD6

PD6

AIN6

PD3

PD3

AIN3

OP0 INN

PD2

PD2

AIN2

OP0 OUT

TCA0 WO2

PD1

PD1

AIN1

OP0 INP

TCA0 WO1

PD0

PD0

AIN0

TCA0 WO0

PD7

PD7

AIN7

OP1 INN

PD5

PD5

AIN5

OP1 OUT

PD4

PD4

AIN4

OP1 INP

GND

GND

PE3

PE3

OP2 INN

PE2

PE2

OP2 OUT

PE1

PE1

OP2 INP

PE0

PE0

PC7

PC7

PC6

PC6

PC5

PC5

PC4

PC4

GND

GND

PB5

PB5

PB4

PB4

(PF1)

(PF1)

XTAL32K2

(PF0)

(PF0)

XTAL32K1

DE

BU

GG

ER

AV

R1

28

DB

48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

MVIO

OPAMP

Shared pin

AV

R1

28

DB

48

Cu

rio

sity

Na

no

1

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

2

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

3

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

Xp

lain

ed

Pro

Ext

en

sio

nE

XT

11

2

19

20

Cu

rio

sity

Na

no

Ba

sefo

r cl

ick

bo

ard

sT

M

PD4

PD0

PD6

PD3

PA7

PF5

PA6

PF4

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

PD5

PD1

PF3

PF2

PE2

PB1

PA6

PB0

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

PD7

PD2

PE1

PE0

PE3

PF5

PA6

PF4

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

ID

GND

PD5

PD7

PF3

PE1

PD1

PD2

PF2

PE3

PA2

PA3

PB1

PB0

PE2

PA4

PA5

PA6

GND

+33V

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 37

84 Disconnecting the On-board DebuggerThe on-board debugger and level shifters can be completely disconnected from the AVR128DB48

The block diagram below shows all connections between the debugger and the AVR128DB48 The rounded boxesrepresent connections to the board edge The signal names shown are also printed in silkscreen on the bottom sideof the board

To disconnect the debugger cut the straps shown in Figure 8-6

Attention  Cutting the GPIO straps to the on-board debugger will disable the virtual serial portprogramming debugging and data streaming Cutting the power supply strap will disconnect the on-boardpower supply

Tip  Any connection that is cut can be reconnected using solder Alternatively a 0Ω 0402 resistor can bemounted

Tip  When the debugger is disconnected an external debugger can be connected to holes shown in Figure 8-6 Details about connecting an external debugger are described in 46 Connecting ExternalDebuggers

Figure 8-5  On-Board Debugger Connections Block Diagram

DE

BU

GG

ER

TARGETLevel-Shift

PA04PA06PA07PA08PA16PA00PA01

USB

DIR x 5

VCC_P3V3

VBUS

VC

C_L

EV

EL

VC

C_T

AR

GE

TDBG0DBG1DBG2DBG3CDC TXCDC RX

CDC RX

CDC TX

DBG3

DBG2

DBG1

DBG0

GPIO straps

LDO

VOFF

LDO

VBUS VTG

VCC_EDGE

Power Supply strap Target Power strap

UART RXUART TX

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 38

Figure 8-6 On-Board Debugger Connection Cut Straps

GPIO straps (bottom side) Power Supply strap (top side)

85 Getting Started with IARIAR Embedded Workbenchreg for AVRreg is a proprietary high-efficiency compiler not based on GCC Programming anddebugging of AVR128DB48 Curiosity Nano is supported in IARtrade Embedded Workbench for AVR using the Atmel-ICEinterface Some initial settings must be set up in the project to get the programming and debugging to work

The following steps will explain how to get your project ready for programming and debugging

1 Make sure you have opened the project you want to configure Open the OPTIONS dialog for the project2 In the category General Options select the Target tab Select the device for the project or if not listed the

core of the device as shown in Figure 8-73 In the category Debugger select the Setup tab Select Atmel-ICE as the driver as shown in Figure 8-84 In the category Debugger gt Atmel-ICE select the Atmel-ICE 1 tab Select UPDI as the interface and

optionally select the UPDI frequency as shown in Figure 8-9

Info  If the selection of Debug Port (mentioned in step 4) is grayed out the interface is preselected andthe user can skip this configuration step

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 39

Figure 8-7 Select Target Device

Figure 8-8 Select Debugger

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 40

Figure 8-9 Configure Interface

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 41

The Microchip Website

Microchip provides online support via our website at wwwmicrochipcom This website is used to make files andinformation easily available to customers Some of the content available includes

bull Product Support ndash Data sheets and errata application notes and sample programs design resources userrsquosguides and hardware support documents latest software releases and archived software

bull General Technical Support ndash Frequently Asked Questions (FAQs) technical support requests onlinediscussion groups Microchip design partner program member listing

bull Business of Microchip ndash Product selector and ordering guides latest Microchip press releases listing ofseminars and events listings of Microchip sales offices distributors and factory representatives

Product Change Notification Service

Microchiprsquos product change notification service helps keep customers current on Microchip products Subscribers willreceive email notification whenever there are changes updates revisions or errata related to a specified productfamily or development tool of interest

To register go to wwwmicrochipcompcn and follow the registration instructions

Customer Support

Users of Microchip products can receive assistance through several channels

bull Distributor or Representativebull Local Sales Officebull Embedded Solutions Engineer (ESE)bull Technical Support

Customers should contact their distributor representative or ESE for support Local sales offices are also available tohelp customers A listing of sales offices and locations is included in this document

Technical support is available through the website at wwwmicrochipcomsupport

Microchip Devices Code Protection Feature

Note the following details of the code protection feature on Microchip devices

bull Microchip products meet the specifications contained in their particular Microchip Data Sheetbull Microchip believes that its family of products is secure when used in the intended manner and under normal

conditionsbull There are dishonest and possibly illegal methods being used in attempts to breach the code protection features

of the Microchip devices We believe that these methods require using the Microchip products in a manneroutside the operating specifications contained in Microchiprsquos Data Sheets Attempts to breach these codeprotection features most likely cannot be accomplished without violating Microchiprsquos intellectual property rights

bull Microchip is willing to work with any customer who is concerned about the integrity of its codebull Neither Microchip nor any other semiconductor manufacturer can guarantee the security of its code Code

protection does not mean that we are guaranteeing the product is ldquounbreakablerdquo Code protection is constantlyevolving We at Microchip are committed to continuously improving the code protection features of our productsAttempts to break Microchiprsquos code protection feature may be a violation of the Digital Millennium Copyright ActIf such acts allow unauthorized access to your software or other copyrighted work you may have a right to suefor relief under that Act

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 42

Legal Notice

Information contained in this publication is provided for the sole purpose of designing with and using Microchipproducts Information regarding device applications and the like is provided only for your convenience and may besuperseded by updates It is your responsibility to ensure that your application meets with your specifications

THIS INFORMATION IS PROVIDED BY MICROCHIP ldquoAS ISrdquo MICROCHIP MAKES NO REPRESENTATIONS ORWARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED WRITTEN OR ORAL STATUTORY OROTHERWISE RELATED TO THE INFORMATION INCLUDING BUT NOT LIMITED TO ANY IMPLIEDWARRANTIES OF NON-INFRINGEMENT MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSEOR WARRANTIES RELATED TO ITS CONDITION QUALITY OR PERFORMANCE

IN NO EVENT WILL MICROCHIP BE LIABLE FOR ANY INDIRECT SPECIAL PUNITIVE INCIDENTAL ORCONSEQUENTIAL LOSS DAMAGE COST OR EXPENSE OF ANY KIND WHATSOEVER RELATED TO THEINFORMATION OR ITS USE HOWEVER CAUSED EVEN IF MICROCHIP HAS BEEN ADVISED OF THEPOSSIBILITY OR THE DAMAGES ARE FORESEEABLE TO THE FULLEST EXTENT ALLOWED BY LAWMICROCHIPS TOTAL LIABILITY ON ALL CLAIMS IN ANY WAY RELATED TO THE INFORMATION OR ITS USEWILL NOT EXCEED THE AMOUNT OF FEES IF ANY THAT YOU HAVE PAID DIRECTLY TO MICROCHIP FORTHE INFORMATION Use of Microchip devices in life support andor safety applications is entirely at the buyerrsquos riskand the buyer agrees to defend indemnify and hold harmless Microchip from any and all damages claims suits orexpenses resulting from such use No licenses are conveyed implicitly or otherwise under any Microchip intellectualproperty rights unless otherwise stated

Trademarks

The Microchip name and logo the Microchip logo Adaptec AnyRate AVR AVR logo AVR Freaks BesTimeBitCloud chipKIT chipKIT logo CryptoMemory CryptoRF dsPIC FlashFlex flexPWR HELDO IGLOO JukeBloxKeeLoq Kleer LANCheck LinkMD maXStylus maXTouch MediaLB megaAVR Microsemi Microsemi logo MOSTMOST logo MPLAB OptoLyzer PackeTime PIC picoPower PICSTART PIC32 logo PolarFire Prochip DesignerQTouch SAM-BA SenGenuity SpyNIC SST SST Logo SuperFlash Symmetricom SyncServer TachyonTempTrackr TimeSource tinyAVR UNIO Vectron and XMEGA are registered trademarks of Microchip TechnologyIncorporated in the USA and other countries

APT ClockWorks The Embedded Control Solutions Company EtherSynch FlashTec Hyper Speed ControlHyperLight Load IntelliMOS Libero motorBench mTouch Powermite 3 Precision Edge ProASIC ProASIC PlusProASIC Plus logo Quiet-Wire SmartFusion SyncWorld Temux TimeCesium TimeHub TimePictra TimeProviderVite WinPath and ZL are registered trademarks of Microchip Technology Incorporated in the USA

Adjacent Key Suppression AKS Analog-for-the-Digital Age Any Capacitor AnyIn AnyOut BlueSky BodyComCodeGuard CryptoAuthentication CryptoAutomotive CryptoCompanion CryptoController dsPICDEMdsPICDEMnet Dynamic Average Matching DAM ECAN EtherGREEN In-Circuit Serial Programming ICSPINICnet Inter-Chip Connectivity JitterBlocker KleerNet KleerNet logo memBrain Mindi MiWi MPASM MPFMPLAB Certified logo MPLIB MPLINK MultiTRAK NetDetach Omniscient Code Generation PICDEMPICDEMnet PICkit PICtail PowerSmart PureSilicon QMatrix REAL ICE Ripple Blocker SAM-ICE Serial QuadIO SMART-IS SQI SuperSwitcher SuperSwitcher II Total Endurance TSHARC USBCheck VariSenseViewSpan WiperLock Wireless DNA and ZENA are trademarks of Microchip Technology Incorporated in the USAand other countries

SQTP is a service mark of Microchip Technology Incorporated in the USA

The Adaptec logo Frequency on Demand Silicon Storage Technology and Symmcom are registered trademarks ofMicrochip Technology Inc in other countries

GestIC is a registered trademark of Microchip Technology Germany II GmbH amp Co KG a subsidiary of MicrochipTechnology Inc in other countries

All other trademarks mentioned herein are property of their respective companiescopy 2020 Microchip Technology Incorporated Printed in the USA All Rights Reserved

ISBN 978-1-5224-6667-3

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 43

Quality Management SystemFor information regarding Microchiprsquos Quality Management Systems please visit wwwmicrochipcomquality

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 44

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupportwwwmicrochipcomsupportWeb AddresswwwmicrochipcomAtlantaDuluth GATel 678-957-9614Fax 678-957-1455Austin TXTel 512-257-3370BostonWestborough MATel 774-760-0087Fax 774-760-0088ChicagoItasca ILTel 630-285-0071Fax 630-285-0075DallasAddison TXTel 972-818-7423Fax 972-818-2924DetroitNovi MITel 248-848-4000Houston TXTel 281-894-5983IndianapolisNoblesville INTel 317-773-8323Fax 317-773-5453Tel 317-536-2380Los AngelesMission Viejo CATel 949-462-9523Fax 949-462-9608Tel 951-273-7800Raleigh NCTel 919-844-7510New York NYTel 631-435-6000San Jose CATel 408-735-9110Tel 408-436-4270Canada - TorontoTel 905-695-1980Fax 905-695-2078

Australia - SydneyTel 61-2-9868-6733China - BeijingTel 86-10-8569-7000China - ChengduTel 86-28-8665-5511China - ChongqingTel 86-23-8980-9588China - DongguanTel 86-769-8702-9880China - GuangzhouTel 86-20-8755-8029China - HangzhouTel 86-571-8792-8115China - Hong Kong SARTel 852-2943-5100China - NanjingTel 86-25-8473-2460China - QingdaoTel 86-532-8502-7355China - ShanghaiTel 86-21-3326-8000China - ShenyangTel 86-24-2334-2829China - ShenzhenTel 86-755-8864-2200China - SuzhouTel 86-186-6233-1526China - WuhanTel 86-27-5980-5300China - XianTel 86-29-8833-7252China - XiamenTel 86-592-2388138China - ZhuhaiTel 86-756-3210040

India - BangaloreTel 91-80-3090-4444India - New DelhiTel 91-11-4160-8631India - PuneTel 91-20-4121-0141Japan - OsakaTel 81-6-6152-7160Japan - TokyoTel 81-3-6880- 3770Korea - DaeguTel 82-53-744-4301Korea - SeoulTel 82-2-554-7200Malaysia - Kuala LumpurTel 60-3-7651-7906Malaysia - PenangTel 60-4-227-8870Philippines - ManilaTel 63-2-634-9065SingaporeTel 65-6334-8870Taiwan - Hsin ChuTel 886-3-577-8366Taiwan - KaohsiungTel 886-7-213-7830Taiwan - TaipeiTel 886-2-2508-8600Thailand - BangkokTel 66-2-694-1351Vietnam - Ho Chi MinhTel 84-28-5448-2100

Austria - WelsTel 43-7242-2244-39Fax 43-7242-2244-393Denmark - CopenhagenTel 45-4485-5910Fax 45-4485-2829Finland - EspooTel 358-9-4520-820France - ParisTel 33-1-69-53-63-20Fax 33-1-69-30-90-79Germany - GarchingTel 49-8931-9700Germany - HaanTel 49-2129-3766400Germany - HeilbronnTel 49-7131-72400Germany - KarlsruheTel 49-721-625370Germany - MunichTel 49-89-627-144-0Fax 49-89-627-144-44Germany - RosenheimTel 49-8031-354-560Israel - RarsquoananaTel 972-9-744-7705Italy - MilanTel 39-0331-742611Fax 39-0331-466781Italy - PadovaTel 39-049-7625286Netherlands - DrunenTel 31-416-690399Fax 31-416-690340Norway - TrondheimTel 47-72884388Poland - WarsawTel 48-22-3325737Romania - BucharestTel 40-21-407-87-50Spain - MadridTel 34-91-708-08-90Fax 34-91-708-08-91Sweden - GothenbergTel 46-31-704-60-40Sweden - StockholmTel 46-8-5090-4654UK - WokinghamTel 44-118-921-5800Fax 44-118-921-5820

Worldwide Sales and Service

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 45

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Board Overview
      • 2 Getting Started
        • 21 Quick Start
          • 211 Driver Installation
          • 212 Kit Window
          • 213 MPLABreg X IDE Device Family Packs
          • 214 Atmel Studio 7 Device Family Pack
            • 22 Design Documentation and Relevant Links
              • 3 Preprogrammed Application
              • 4 Curiosity Nano
                • 41 On-Board Debugger Overview
                  • 411 Debugger
                  • 412 Virtual Serial Port (CDC)
                    • 4121 Overview
                    • 4122 Operating System Support
                    • 4123 Limitations
                    • 4124 Signaling
                    • 4125 Advanced Use
                      • 413 Mass Storage Device
                        • 4131 Mass Storage Device Implementation
                        • 4132 Limitations of Drag-and-Drop Programming
                        • 4133 Special Commands
                          • 414 Data Gateway Interface (DGI)
                            • 4141 Debug GPIO
                            • 4142 Timestamping
                                • 42 Curiosity Nano Standard Pinout
                                • 43 Power Supply
                                  • 431 Target Regulator
                                  • 432 External Supply
                                  • 433 VBUS Output Pin
                                  • 434 Power Supply Exceptions
                                    • 44 Low-Power Measurement
                                    • 45 Programming External Microcontrollers
                                      • 451 Supported Devices
                                      • 452 Software Configuration
                                      • 453 Hardware Modifications
                                      • 454 Connecting to External Microcontrollers
                                        • 46 Connecting External Debuggers
                                          • 5 Hardware User Guide
                                            • 51 Connectors
                                              • 511 AVR128DB48 Curiosity Nano Pinout
                                              • 512 Using Pin Headers
                                              • 513 Multi-Voltage IO
                                              • 514 Operational Amplifiers
                                                • 52 Peripherals
                                                  • 521 LED
                                                  • 522 Mechanical Switch
                                                  • 523 32768 kHz Crystal
                                                  • 524 1600 MHz Crystal
                                                  • 525 On-Board Debugger Implementation
                                                    • 5251 On-Board Debugger Connections
                                                      • 6 Hardware Revision History and Known Issues
                                                        • 61 Identifying Product ID and Revision
                                                        • 62 Revision 3
                                                        • 63 Revision 2
                                                          • 7 Document Revision History
                                                          • 8 Appendix
                                                            • 81 Schematic
                                                            • 82 Assembly Drawing
                                                            • 83 Curiosity Nano Base for Click boardstrade
                                                            • 84 Disconnecting the On-board Debugger
                                                            • 85 Getting Started with IAR
                                                              • The Microchip Website
                                                              • Product Change Notification Service
                                                              • Customer Support
                                                              • Microchip Devices Code Protection Feature
                                                              • Legal Notice
                                                              • Trademarks
                                                              • Quality Management System
                                                              • Worldwide Sales and Service
Page 18: AVR128DB48 Curiosity Nano Hardware User Guideww1.microchip.com/downloads/en/DeviceDoc/AVR128DB48-Curiosit… · 4. Curiosity Nano Curiosity Nano is an evaluation platform of small

Figure 4-6 VBUS Output Voltage vs Current

434 Power Supply ExceptionsThis is a summary of most exceptions that can occur with the power supply

Target Voltage Shuts DownThis can happen if the target section draws too much current at a given voltage This will cause the thermal shutdownsafety feature of the MIC5353 regulator to kick in To avoid this reduce the current load of the target section

Target Voltage Setting is Not ReachedThe maximum output voltage is limited by the USB input voltage (specified to be 44-525V) and the voltage dropover the MIC5353 regulator at a given voltage setting and current consumption If a higher output voltage is neededuse a USB power source that can provide a higher input voltage or use an external voltage supply on the VTG pin

Target Voltage is Different From SettingThis can be caused by an externally applied voltage to the VTG pin without setting the VOFF pin low If the targetvoltage differs more than 100 mV overunder the voltage setting it will be detected by the on-board debugger andthe internal voltage regulator will be shut down To fix this issue remove the applied voltage from the VTG pin andthe on-board debugger will enable the on-board voltage regulator when the new condition is detected Note that thePS LED will be blinking rapidly if the target voltage is below 100 mV of the setting but will be lit normally when it ishigher than 100 mV above the setting

No Or Very Low Target Voltage and PS LED is Blinking RapidlyThis can be caused by a full or partial short-circuit and is a special case of the issue mentioned above Remove theshort-circuit and the on-board debugger will re-enable the on-board target voltage regulator

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 18

No Target Voltage and PS LED is Lit 1This occurs if the target voltage is set to 00V To fix this set the target voltage to a value within the specified voltagerange for the target device

No Target Voltage and PS LED is Lit 2This can be the issue if power jumper J100 andor J101 is cut and the target voltage regulator is set to a value withinthe specified voltage range for the target device To fix this solder a wirebridge between the pads for J100J101 oradd a jumper on J101 if a pin header is mounted

VBUS Output Voltage is Low or Not PresentThis is most lightly caused by a high-current drain on VBUS and the protection fuse (PTC) will reduce the current orcut off completely Reduce the current consumption on the VBUS pin to fix this issue

44 Low-Power MeasurementPower to the AVR128DB48 is connected from the on-board power supply and VTG pin through a 100 mil pin headermarked with ldquoPOWERrdquo in silkscreen (J101) To measure the power consumption of the AVR128DB48 and otherperipherals connected to the board cut the Target Power strap and connect an ammeter over the strap

To measure the lowest possible power consumption follow these steps1 Cut the POWER strap with a sharp tool2 Solder a 1x2 100 mil pin header in the footprint3 Connect an ammeter to the pin header4 Write firmware that

41 Tri-states any IO connected to the on-board debugger42 Sets the microcontroller in its lowest power Sleep state

5 Program the firmware into the AVR128DB48

Figure 4-7 Target Power Strap

Target Power strap (top side)

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 19

Tip  A 100-mil pin header can be soldered into the Target Power strap (J101) footprint for easyconnection of an ammeter Once the ammeter is no longer needed place a jumper cap on the pin header

Info  The on-board level shifters will draw a small amount of current even when they are not in use Amaximum of 2 microA can be drawn from each IO pin connected to a level shifter for a total of 10 microA Keepany IO pin connected to a level shifter in tri-state to prevent leakage All IOs connected to the on-boarddebugger are listed in 5251 On-Board Debugger Connections To prevent any leakage to the on-boardlevel shifters they can be disconnected completely as described in 84 Disconnecting the On-boardDebugger

45 Programming External MicrocontrollersThe on-board debugger on AVR128DB48 Curiosity Nano can be used to program and debug microcontrollers onexternal hardware

451 Supported DevicesAll external AVR microcontrollers with the UPDI interface can be programmed and debugged with the on-boarddebugger with Atmel Studio

External SAM microcontrollers that have a Curiosity Nano Board can be programmed and debugged with the on-board debugger with Atmel Studio

AVR128DB48 Curiosity Nano can program and debug external AVR128DB48 microcontrollers with MPLAB X IDE

452 Software ConfigurationNo software configuration is required to program and debug the same device that is mounted on the board

To program and debug a different microcontroller than what is mounted on the board Atmel Studio must beconfigured to allow free selection of devices and programming interfaces

1 Navigate to Tools gt Options through the menu system at the top of the application2 Select the Tools gt Tool settings category in the options window3 Set the Hide unsupported devices option to False

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 20

Figure 4-8 Hide Unsupported Devices

Info  Atmel Studio allows any microcontroller and interface to be selected when Hide unsupporteddevices is set to False also microcontrollers and interfaces which are not supported by the on-boarddebugger

453 Hardware ModificationsThe on-board debugger is connected to the AVR128DB48 by default These connections must be removed beforeany external microcontroller can be programmed or debugged Cut the GPIO straps shown in the figure below with asharp tool to disconnect the AVR128DB48 from the on-board debugger

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 21

Figure 4-9 Programming and Debugging Connections to Debugger

GPIO straps (bottom side)

Info  Cutting the connections to the debugger will disable programming debugging and data streamingfrom the AVR128DB48 mounted on the board

Tip  Solder in 0Ω resistors across the footprints or short-circuit them with solder to reconnect the signalsbetween the on-board debugger and the AVR128DB48

454 Connecting to External MicrocontrollersThe figure and table below show where the programming and debugging signals must be connected to program anddebug external microcontrollers The on-board debugger can supply power to the external hardware or use anexternal voltage as a reference for its level shifters Read more about the power supply in 43 Power Supply

The on-board debugger and level shifters actively drive data and clock signals (DBG0 DBG1 and DBG2) used forprogramming and debugging and in most cases the external resistor on these signals can be ignored Pull-downresistors are required on the ICSPtrade data and clock signals to debug PICreg microcontrollers

DBG3 is an open-drain connection and requires a pull-up resistor to function

AVR128DB48 Curiosity Nano has a pull-up resistor R200 connected to its RESET signal (DBG3) The location ofthe pull-up resistor is shown in the 82 Assembly Drawing in the appendix

Remember bull Connect GND and VTG to the external microcontrollerbull Tie the VOFF pin to GND if the external hardware has its own power supplybull Make sure there are pull-down resistors on the ICSP data and clock signals (DBG0 and DBG1) to

support the debugging of PIC microcontrollers

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 22

Figure 4-10 Curiosity Nano Standard Pinout

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

Table 4-4 Programming and Debugging Interfaces

Curiosity Nano Pin UPDI ICSPtrade SWD

DBG0 UPDI DATA SWDIO

DBG1 mdash CLK SWCLK

DBG2 mdash mdash mdash

DBG3 mdash MCLR RESET

46 Connecting External DebuggersEven though there is an on-board debugger external debuggers can be connected directly to the AVR128DB48Curiosity Nano to programdebug the AVR128DB48 The on-board debugger keeps all the pins connected to theAVR128DB48 and board edge in tri-state when not actively used Therefore the on-board debugger will not interferewith any external debug tools

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 23

Figure 4-11 Connecting the MPLABreg PICkittrade 4 In-Circuit DebuggerProgrammer to AVR128DB48 CuriosityNano

2345678 1

VDD

GroundDATA

2 = VDD

3 = Ground

4 = PGD

5 = Unused

6 = Unused

7 = Unused

8 = Unused

1 = Unused

MPLABreg PICkittrade 4

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 24

Figure 4-12 Connecting the Atmel-ICE to AVR128DB48 Curiosity Nano

VDD

Ground

DATA

AVRregSAM

3 = UPDI

4 = VTG

5 = Unused

6 = Unused

7 = Unused

8 = Unused

1 = Unused

2 = GND

9 = Unused

10 = Unused

Atmel-ICE

21 9

10

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

CAUTIONTo avoid contention between the external debugger and the on-board debugger do not start anyprogrammingdebug operation with the on-board debugger through MPLABreg X IDE or Atmel Studio 7 ormass storage programming while the external tool is active

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 25

5 Hardware User Guide

51 Connectors

511 AVR128DB48 Curiosity Nano PinoutAll the AVR128DB48 IO pins are accessible at the edge connectors on the board The image below shows the boardpinout For all available functions on each pin refer to the IO Multiplexing and Considerations section in theAVR128DB48 data sheet

Figure 5-1 AVR128DB48 Curiosity Nano Pinout

USB

DEBUGGER

AVR128DB48

SW0

LED0

PS LEDNC

NC

IDID

CDC RX

CD

CR

XUSART3 TXPB0

CDC TX

CD

CT

XUSART3 RXPB1

DBG1

DB

G1PB3LED0

DBG2

DB

G2PB2SW0

PF4

PF

4USART2 TX

PF5

PF

5USART2 RX

PA2

PA

2TWI0 SDA

PA3

PA

3TWI0 SCL

PA4

PA

4SPI0 MOSI

PA5

PA

5SPI0 MISO

PA6

PA

6SPI0 SCK

PA7

PA

7SPI0 SS

GND

GN

D

PB0

PB

0USART3 TXCDC RX

PB1

PB

1USART3 RXCDC TX

PF2

PF

2

PF3

PF

3

PC0

PC

0

PC1

PC

1

PC2

PC

2

PC3

PC

3

GND

GN

D

(PA0)

(PA

0)XTALHF1

(PA1)

(PA

1)XTALHF2

PB2

PB

2SW0

PB3

PB

3LED0

VBUS

VB

US

VOFF

VO

FF

DBG3

DB

G3 PF6

DBG0

DB

G0 UPDI

GND

GN

D

VTG

VT

G

PD6

PD

6 AIN6

PD3

PD

3 AIN3 OP0 INN

PD2

PD

2 AIN2 OP0 OUT TCA0 WO2

PD1

PD

1 AIN1 OP0 INP TCA0 WO1

PD0

PD

0 AIN0 TCA0 WO0

PD7

PD

7 AIN7 OP1 INN

PD5

PD

5 AIN5 OP1 OUT

PD4

PD

4 AIN4 OP1 INP

GND

GN

D

PE3

PE

3 OP2 INN

PE2

PE

2 OP2 OUT

PE1

PE

1 OP2 INP

PE0

PE

0

PC7

PC

7

PC6

PC

6

PC5

PC

5

PC4

PC

4

GND

GN

D

PB5

PB

5

PB4

PB

4

(PF1)

(PF

1) XTAL32K2

(PF0)

(PF

0) XTAL32K1

DEBUGGERAVR128DB48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

MVIO

OPAMP

Shared pin

AVR128DB48Curiosity Nano

512 Using Pin HeadersThe edge connector footprint on AVR128DB48 Curiosity Nano has a staggered design where each hole is shifted 8mil (~02 mm) off-center The hole shift allows the use of regular 100 mil pin headers on the board without solderingOnce the pin headers are firmly in place they can be used in normal applications like pin sockets and prototypingboards without any issues

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 26

Figure 5-2 Attaching Pin-Headers to the Curiostiy Nano Board

Figure 5-3 Connecting to Curiosity Nano Base for Click boardstrade

Tip  Start at one end of the pin header and gradually insert the header along the length of the boardOnce all the pins are in place use a flat surface to push them in

Tip  For applications where the pin headers will be used permanently it is still recommended to solderthem in place

Important  Once the pin headers are in place they are hard to remove by hand Use a set of pliers andcarefully remove the pin headers to avoid damage to the pin headers and PCB

513 Multi-Voltage IO

The AVR128DB48 Curiosity Nano MCU has support for Multi-Voltage IO (MVIO) AVR128DB48 MVIO pins areconnected to the edge connector at PC0-PC7 MVIO pins are capable of regular IO-pin behavior

MVIO can be configured in one of two supply modesbull Single-Supply mode All IO pins including MVIO-capable pins are powered by VCC_TARGET By default

VCC_TARGET is connected to VDDIO2 through a 0-ohm resistor (R204)bull Dual-Supply mode MVIO-capable pins are powered by an external power supply connected to VDDIO2 Non-

MVIO pins are powered by VCC_TARGET

Dual-Supply mode allows MVIO-pins to be powered at different voltages than pins powered from VCC_TARGET

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 27

WARNINGThe absolute maximum external voltage range for the AVR128DB48 is 18ndash55V Applying a higher voltagemay cause permanent damage to the board

By default AVR128DB48 Curiosity Nano board is configured for single-supply mode To use Dual-Supply mode somehardware modifications are required

WARNINGBefore any hardware modifications are done make sure the board is disconnected from USB or externalpower

bull Disconnect resistor R204 connecting VDDIO2 to VCC_TARGETbull Connect a new power supply to VDDIO2 and ground at J212bull J212 does not have reverse polarity protection Make sure to match polarity between the power supply and

J212 Positive-polarity to J212-pin 1 and negative-polarity to J212-pin 2

The resistor R204 VDDIO2 and J212 can be seen in Figure 5-4

Figure 5-4 MVIO and VDDIO2 Connections

J212 R204

WARNINGApplying an external voltage to VDDIO2 pin without removing resistor R204 may cause permanentdamage to the board

WARNINGJ212 does not have reverse polarity protection Applying voltage to the wrong pin may cause permanentdamage to the board

514 Operational AmplifiersAVR128DB48 features three internal operational amplifiers with a flexible connection scheme using analogmultiplexers and resistor ladders This allows a large number of analog signal conditioning configurations manyrequiring no external components

Table 5-1 OPAMP Pin Connections

OPAMP Poisitive Input (INP) Negative Input (INN) Output (OUT)

OP0 PD1 PD3 PD2

OP1 PD4 PD7 PD5

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 28

continuedOPAMP Poisitive Input (INP) Negative Input (INN) Output (OUT)

OP2 PE1 PE3 PE2

For information about OPAMP on the edge connector and any shared functionality see 511 AVR128DB48 CuriosityNano Pinout

52 Peripherals

521 LEDThere is one yellow user LED available on the AVR128DB48 Curiosity Nano board that can be controlled by eitherGPIO or PWM The LED can be activated by driving the connected IO line to GND

Table 5-2 LED Connection

AVR128DB48 Pin Function Shared Functionality

PB3 Yellow LED0 Edge connector On-board debugger

522 Mechanical SwitchThe AVR128DB48 Curiosity Nano board has one mechanical switch This is a generic user-configurable switchWhen the switch is pressed it will drive the IO line to ground (GND)

Tip  There is no externally connected pull-up resistor on the switch To use the switch make sure that aninternal pull-up resistor is enabled on pin PB2

Table 5-3 Mechanical Switch

AVR128DB48 Pin Description Shared Functionality

PB2 User switch (SW0) Edge connector On-board debugger

523 32768 kHz Crystal

On the AVR128DB48 Curiosity Nano board is a mounted 32768 kHz crystal of type VMK3-9001-32K7680000 thecrystal is accurate to within 20 ppm Using the External 32768 kHz Crystal Oscillator (XOSC32K) module inAVR128DB48 with the mounted 32768 kHz crystal generates a clock signal that is significantly more accurate thanthe Internal 32768 kHz Ultra Low-Power Oscillator (OSC32K) module can generate alone With the Auto-Tunefeature the 32768 kHz can be used as a reference to improve the accuracy of the internal oscillator This is an idealreference clock for the Real-Time Counter module in AVR128DB48

The 32768 kHz crystal is connected to AVR128DB48 on PF0 and PF1 which are also routed to the edge connectorthrough two solder points PF0 and PF1 are disconnected from the edge connector by default to reduce the chanceof an external signal causing contention with the crystal and to remove excessive capacitance on the lines

Next to the 32768 kHz crystal is a cut-strap (J209) which can be used to measure the oscillator safety factor This isdone by cutting the strap and adding a 0402 SMD resistor across the strap More information about oscillatorallowance and safety factor can be found in the AN2648 application note from Microchip

Cut straps and solder points can be seen in Figure 5-5

Table 5-4 32768 kHz Crystal Connections

AVR128DB48 Pin Function Shared Functionality

PF0 XTAL32K1 (Crystal input) Edge connector

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 29

continuedAVR128DB48 Pin Function Shared Functionality

PF1 XTAL32K2 (Crystal output) Edge connector

PA0 and PA1 can be used as GPIO To do so some hardware modifications are required

WARNINGBefore any hardware modifications are done make sure the board is disconnected from the USB orexternal power

bull Disconnect the 32768 kHz crystal by cutting the two straps on the top side of the board next to the crystal(J207 J208) The crystal should be disconnected when using the pin as GPIO as this might harm the crystal

bull Connect the IO lines to the edge connector by placing solder blobs on the circular solder points marked PF0and PF1 on the bottom side of the board (J210 J211)

Figure 5-5 Crystal Connection and Cut Straps

Top side Boom side

J211

J210

J207

J20832768 kHz Crystal

J209

524 1600 MHz Crystal

On the AVR128DB48 Curiosity Nano board is a mounted 1600 MHz crystal of type VXM7-9040-16M0000000 thecrystal is accurate to within 20 ppm Using the External High-Frequency Crystal Oscillator (XOSCHF) module inAVR128DB48 with the mounted 1600 MHz crystal generates a clock signal that is significantly more accurate thanthe Internal High-Frequency Oscillator (OSCHF) module

The 1600 MHz crystal is connected to AVR128DB48 on PA0 and PA1 which are also routed to the edge connectorthrough two solder points PA0 and PA1 are disconnected from the edge connector by default to reduce the chanceof an external signal causing contention with the crystal and to remove excessive capacitance on the lines

Next to the 1600 MHz crystal is a cut-strap (J217) which can be used to measure the oscillator safety factor This isdone by cutting the strap and adding a 0402 SMD resistor across the strap More information about oscillatorallowance and safety factor can be found in the AN2648 application note from Microchip

Cut straps and solder points can be seen in Figure 5-6

Table 5-5 Crystal Connections

AVR128DB48 Pin Function Shared Functionality

PA0 XTALHF1 (Crystal input) Edge connector

PA1 XTALHF2 (Crystal output) Edge connector

PA0 and PA1 can be used as GPIO To do so some hardware modifications are required

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 30

WARNINGBefore any hardware modifications are done make sure the board is disconnected from USB or externalpower

bull Disconnect the 1600 MHz crystal by cutting the two straps on the top side of the board next to the crystal (J215J216) The crystal should be disconnected when using the pin as GPIO as this might harm the crystal

bull Connect the IO lines to the edge connector by placing solder blobs on the circular solder points marked PA0and PA1 on the bottom side of the board (J213 J214)

Figure 5-6 Crystal Connection and Cut Straps

Top side Boom side

J214

J213

J216

J2151600 MHzCrystal

J217

525 On-Board Debugger ImplementationAVR128DB48 Curiosity Nano features an on-board debugger that can be used to program and debug theAVR128DB48 using UPDI The on-board debugger also includes a virtual serial port (CDC) interface over UART anddebug GPIO Both MPLABreg X IDE and Atmel Studio 7 can be used as a front-end for the on-board debugger forprogramming and debugging MPLAB Data Visualizer can be used as a front-end for the CDC and debug GPIO

5251 On-Board Debugger ConnectionsThe table below shows the connections between the target and the debugger section All connections between thetarget and the debugger are tri-stated as long as the debugger is not actively using the interface Hence since thereare little contaminations of the signals the pins can be configured to anything the user wants

For further information on how to use the capabilities of the on-board debugger see 41 On-Board DebuggerOverview

Table 5-6 On-Board Debugger Connections

AVR128DB48Pin

Debugger Pin Function Shared Functionality

PB1 CDC TX UART RX (AVR128DB48 RX line) Edge connector

PB0 CDC RX UART TX (AVR128DB48 TX line) Edge connector

UPDI DBG0 UPDI Edge connector

PB3 DBG1 LED0Debug GPIO1 Edge connector

PB2 DBG2 SW0Debug GPIO0 Edge connector

PF6 DBG3 RESET Edge connector

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 31

6 Hardware Revision History and Known IssuesThis user guide is written to provide information about the latest available revision of the board The followingsections contain information about known issues a revision history of older revisions and how older revisions differfrom the latest revision

61 Identifying Product ID and RevisionThe revision and product identifier of the AVR128DB48 Curiosity Nano Board can be found in two ways Either byutilizing the MPLABreg X IDE or Atmel Studio 7 Kit Window or by looking at the sticker on the bottom side of the PCB

By connecting AVR128DB48 Curiosity Nano to a computer with MPLABreg X IDE or Atmel Studio 7 running the KitWindow will pop up The first six digits of the serial number which is listed under kit information contain the productidentifier and revision

Tip  The Kit Window can be opened in MPLABreg X IDE through the menu bar Window gt Kit Window

The same information can be found on the sticker on the bottom side of the PCB Most boards will have the identifierand revision printed in plain text as A09-nnnnrr where ldquonnnnrdquo is the identifier and ldquorrrdquo is the revision Boards withlimited space have a sticker with only a data matrix code containing the product identifier revision and serialnumber

The serial number string has the following format

nnnnrrssssssssss

n = product identifier

r = revision

s = serial number

The product identifier for AVR128DB48 Curiosity Nano is A09‑3372

62 Revision 3AVR128DB48 silicon revision A5 or later is mounted on this revision of the board

63 Revision 2Revision 2 is the initially released board revision

AVR128DB48 silicon revision A4 is mounted on this revision of the board

AVR128DB48 Curiosity NanoHardware Revision History and Known Issues

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 32

7 Document Revision HistoryDoc Rev Date Comments

A 092020 Initial document release

AVR128DB48 Curiosity NanoDocument Revision History

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 33

8 Appendix

81 SchematicFigure 8-1 AVR128DB48 Curiosity Nano Schematic

11

22

33

44

55

66

77

88

DD

CC

BB

AA

2 of

4

AV

R12

8DB

48 C

uri

osit

y N

ano

240

820

20A

VR

128D

B48

_Cur

iosi

ty_N

ano_

Targ

et_M

CU

Sch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA

Rev

isio

n

File

P

CB

Num

ber

PC

B

Rev

isio

n

Des

ign

ed w

ith

Dra

wn

By

ML

Shee

t Titl

e

Targ

et M

CU

Eng

inee

rA

H

A08

-305

71

Size

A3

A09

-337

22

Page

D

ateA

ltium

com

GN

D

VD

DIO

2

100n

C20

1

GN

D

PA5_

SPI0

_MIS

OPA

6_SP

I0_S

CK

PA7_

SPI0

_SS

PB0_

USA

RT

3_T

XPB

1_U

SAR

T3_

RX

PB2_

SW0_

DB

G2

PB3_

LE

D0_

DB

G1

PB

4P

B5

PC

0P

C1

PC

2

PC3

PC4PC5PC6PC7PD0_AIN0_TCA0_WO0PD1_AIN1_OP0_INP_TCA0_WO1PD2_AIN2_OP0_OUT_TCA0_WO2PD3_AIN3_OP0_INNPD4_AIN4_OP1_INP

PA3_TWI0_SCL

PA1_XTALHF2

UPDI_DBG0

PF5_USART2_RX

PF3

PF

2PF

1_X

TA

L32

K2

PF0_

XT

AL

32K

1P

E3_

OP

2_IN

NP

E2_

OP

2_O

UT

PE

1_O

P2_

INP

PE

0

PD5_

AIN

5_O

P1_

OU

TPD

6_A

IN6

PD7_

AIN

7_O

P1_

INN

GN

D

VC

C_T

AR

GE

T

100n

C20

2

GN

DV

CC

_TA

RG

ET

100n

C20

0

PF1_XTAL32K2

PF0_XTAL32K1

PA2_TWI0_SDA

PA0_XTALHF1

PF4_USART2_TX

PA4_SPI0_MOSI

GN

D

PA7_

SPI0

_SS

PA6_

SPI0

_SC

KPA

5_SP

I0_M

ISO

PA4_

SPI0

_MO

SIPA

3_T

WI0

_SC

LPA

2_T

WI0

_SD

A

PC

0P

C1

PC

2P

C3

PB

4P

B5

PD7_

AIN

7_O

P1_

INN

PD6_

AIN

6

PD2_

AIN

2_O

P0_

OU

T_T

CA

0_W

O2

PD1_

AIN

1_O

P0_

INP_

TC

A0_

WO

1PD

0_A

IN0_

TC

A0_

WO

0

PD5_

AIN

5_O

P1_

OU

TPD

4_A

IN4_

OP

1_IN

P

PD3_

AIN

3_O

P0_

INN

32K

Hz

Cry

stal

PB0_

USA

RT

3_T

XPB

1_U

SAR

T3_

RX

1kR203

US

ER

LE

D

VC

C_T

AR

GE

T

PF6_DBG3

PB2_SW0_DBG2

PB3_LED0_DBG1

GN

D

USE

R B

UT

TO

N

PB3_

LE

D0_

DB

G1

PB2_

SW0_

DB

G2

PB1_

USA

RT

3_R

XPB

0_U

SAR

T3_

TX

PF4_

USA

RT

2_T

XPF

5_U

SAR

T2_

RX

PF

2P

F3

PC

4P

C5

PC

6P

C7

1kR202

YELLOWLEDSML-D12Y1WT86

2 1

D200

TS604VM1-035CR13

4 2

SW20

0

GN

DV

CC

_ED

GE

GN

DG

ND

GN

DG

ND

UPD

I_D

BG

0P

F6_

DB

G3

J209

PB3_

LE

D0_

DB

G1

PB2_

SW0_

DB

G2

AV

R12

8DB

48

22u

FC

205

VC

C_E

DG

E

GN

D

DBG0

CDC_TXCDC_RX

DBG2

DBG1

DBG3

DBG2

DE

BU

GG

ER

CO

NN

EC

TIO

NS

DBG1

DBG3DBG0

VOFF

ID_SYS

ID_SYS

VOFF

TA

RG

ET

BU

LK

VC

C_T

AR

GE

TR

ESE

T P

ull

VB

US

CD

C R

X3

CD

C T

X4

DB

G1

5

DB

G2

6

0 T

X7

1 R

X8

2 SD

A9

3 S

CL

10

4 M

OSI

11

5 M

ISO

12

6 S

CK

13

7 S

S14

GN

D15

0 (T

X)

16

1 (R

X)

17

218

319

020

GN

D24

DB

G3

54

DB

G0

53

GN

D52

VC

C51

PW

M 3

46

AD

C 2

45

AD

C 1

44

AD

C 0

43

GN

D42

438

434

GN

D33

AD

C 7

50

AD

C 6

49

AD

C 5

48

PW

M 4

47

DE

BU

GG

ER

TAR

GE

T

ID2

VO

FF

55

121

222

323

025

126

227

328

429

530

631

732

535

636

737

539

640

741

RE

SER

VE

D1

VB

US

56

CN

AN

O56

-pin

edg

e co

nnec

tor

J200

J201

J203

J205

J206

J202

J204

PF1_

XT

AL

32K

2PF

0_X

TA

L32

K1

NC

XOUT

XIN

47kR200

AV

R12

8DB

48

UPD

I

GPI

O1

GPI

O0

RE

SET

DB

G0

DB

G1

DB

G2

DB

G3

Deb

ugge

r

CD

C T

X

CD

C R

X

UA

RT

3 R

X

UA

RT

3 T

X

VT

G1

8V -

55

VPB

3

PB

2

PF

6

UP

DI

PB

0

PB

1

Nam

eP

in

PE

3_O

P2_

INN

PE

2_O

P2_

OU

TP

E1_

OP

2_IN

PP

E0

J207

J208

PF

0P

F1

PA5

1

PA6

2

PA7

3

PB0

4

PB1

5

PB2

6

PB3

7

PB4

8

PB5

9

PC0

10

PC1

11

PC2

12

PC313

VDDIO214

GND15

PC416

PC517

PC618

PC719

PD020

PD121

PD222

PD323

PD424

PD5

25

PD6

26

PD7

27

AVDD

28

GND

29

PE0

30

PE1

31

PE2

32

PE3

33

XTAL32K1PF0

34

XTAL32K2PF1

35

PF2

36

PF337

PF438

PF539

PF640

UPDI41

VDD42

GND43

XTALHF1PA044

XTALHF2PA145

PA246

PA347

PA448

AV

R12

8DB

48-I

PT

U20

0

0RR204

GN

D

VC

C_T

AR

GE

T

VDDIO2

GND

J210

J211

82p

C20

48

2pC

203

GN

DG

ND

16M

Hz

Cry

stal

J217

XHFOUT

XHFIN

J214

J213

GN

D

J215

J216

PA0_XTALHF1

PA1_XTALHF2

PA0_

XT

AL

HF

1PA

1_X

TA

LH

F2

PA0

PA1

1 2

J212 N

M

15pF

C20

615

pFC

207

13

24 16

000

MH

zV

XM

7-90

40-1

6M00

0000

0TR

XC

201

GN

D32

768

kHz

VM

K3-

9001

-32K

7680

000T

R

XC

200

CDC_TX

CDC_RX

CD

C_T

XC

DC

_RX

Cry

stal

dat

ashe

et

Ccr

ysta

l = 9

pFm

ax E

SR

= 7

0kO

hmA

ccur

acy

plusmn20p

pm

AV

R48

DB

128

data

shee

tC

xin

= 4

0pF

(ty

pica

l val

ue)

Cxo

ut =

40

pF (

typi

cal v

alue

)C

lasymp1

( (1

40

pF)+

(1

40p

F)

)asymp

20p

FM

axim

um L

oad

= 1

25p

FM

axim

um E

SR =

50k

Ohm

Est

imat

ed C

pcb

= 0

5pF

Est

imat

ed lo

adC

= 2

(C

crys

tal-

Cpa

ra -

Cpc

b)C

= 2

(9p

F -

20

pF -

05

pF)

C =

13

0pF

Sele

cted

in d

esig

n af

ter

veri

fica

tion

C=

82

pF8

2pF

NO

TE

on

UA

RT

CD

C

RX

TX

onth

ehe

ader

deno

tes

the

inpu

tout

put d

irec

tion

of th

e si

gnal

resp

ectiv

e to

its

sou

rce

CD

C T

X is

out

put f

rom

the

DE

BU

GG

ER

C

DC

RX

is in

put t

o th

e D

EB

UG

GE

R

TX

is o

utpu

t fro

m th

e T

AR

GE

T d

evic

eR

X is

inpu

t to

the

TA

RG

ET

dev

ice

NO

TE

on

I2C

No

pull

-ups

on

boar

d P

ull-

ups

shou

ld b

em

ount

ed c

lose

to s

lave

dev

ice(

s)

WA

RN

ING

M

ake

sure

tore

mov

e R

204

befo

reap

plyi

ng p

ower

to J

212

Cry

stal

dat

ashe

et

Ccr

ysta

l = 1

2pF

max

ES

R =

60O

hmA

ccur

acy

plusmn30p

pm

AV

R48

DB

128

data

shee

tC

xin

= 4

0pF

(ty

pica

l val

ue)

Cxo

ut =

40

pF (

typi

cal v

alue

)C

lasymp1

( (1

40

pF)+

(1

40p

F)

)asymp

20p

FM

axim

um L

oad

= 1

25p

FM

axim

um E

SR =

k

Ohm

Est

imat

ed C

pcb

= 0

5pF

Est

imat

ed lo

adC

= 2

(C

crys

tal-

Cpa

ra -

Cpc

b)C

= 2

(12

pF -

20

pF -

05

pF)

C =

19

0pF

Sele

cted

in d

esig

n af

ter

veri

fica

tion

C=

15p

F1

5pF

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 34

11

22

33

44

55

66

77

88

DD

CC

BB

AA

3 of

4

AV

R12

8DB

48 C

uri

osit

y N

ano

2020

-06-

26A

VR

128D

B48

_Cur

iosi

ty_N

ano_

Deb

ugge

rSch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA

Rev

isio

n

Fil

eP

CB

Num

ber

PC

B

Rev

isio

n

Des

ign

ed w

ith

Dra

wn

By

ML

Shee

t Tit

le

Deb

ugge

r

Eng

inee

rA

H

A08

-305

71

Size

A3

A09

-337

22

Page

D

ateA

ltium

com

DE

BU

GG

ER

USB

MIC

RO

-B C

ON

NE

CT

OR

GN

D

USB

D_P

USB

D_N

100n

C10

7

100n

C10

8

1kR

107

VC

C_P

3V3

SRST

STA

TU

S_L

ED

SHIE

LD

VB

US

VC

C_P

3V3

GN

D

TP

100

Test

poin

t Arr

ay

12

34

56

78

910

TC

KT

DO

TM

SV

sup

TD

IG

ND

TR

STSR

STV

Tre

fG

ND

J102

GN

D

47u

F

C10

0

DBG0

DB

G0

21

GR

EE

N L

ED

SML

-P12

MT

T86

R

D10

0

VBUS

1

D-

2

D+

3

GND

5

SHIELD1

6

SHIELD2

7

ID

4

SHIELD3

8

SHIELD4

9 MU

-MB

0142

AB

2-26

9

J105

PAD

33

PA00

1

PA01

2

PA02

3

PA03

4

GND 10VDDANA 9

PA04

5

PA05

6

PA06

7

PA07

8

PA08 11

PA09 12

PA10 13

PA11 14

PA14 15

PA15 16

PA16

17

PA17

18

PA18

19

PA19

20

PA22

21

USB_SOFPA23

22

USB_DMPA24

23

USB_DPPA25

24

PA2725 RESETN26 PA2827 GND28 VDDCORE29 VDDIN30 SWDCLKPA3031 SWDIOPA3132

SAM

D21

E18

A-M

UT

U10

0

VOUT

1

VOUT

2

GND 3

EN

4

VIN

6

NC

5

EP 7

MIC

5528

-33

YM

TU

101

VC

C_P

3V3

GN

D

USB

D_P

USB

D_N

GN

D

1uC

106

VC

C_M

CU

_CO

RE

VC

C_P

3V3

VC

C_P

3V3

22u

FC

101

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

3

VC

C_P

3V3

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

4

VC

C_P

3V3

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

5

VC

C_P

3V3

GN

D

GN

D GN

D

GN

D

VC

C_E

DG

E

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

7

VC

C_P

3V3

GN

DDBG2

DB

G3_

CT

RL

S1_0

_TX

S1_1

_RX

S0_2

_TX

DA

CV

TG

_AD

C

RE

SER

VE

D

S0_3

_CL

K

DBG0_CTRL

CD

C_T

X_C

TR

L

BO

OT

DE

BU

GG

ER

PO

WE

RS

TA

TU

S L

ED

EN

1

BYP

6

VOUT

4

GND

2

VIN

3

NCADJ

5

GND

7

MIC

5353

U10

2

100n

C10

2

GN

D

GN

D

47kR101

27kR104 G

ND

33k

R10

6

22u

F

C10

3 GN

D

1kR

108

J100

VC

C_L

EV

EL

VC

C_R

EG

UL

AT

OR

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

6

VC

C_P

3V3

GN

DDBG1

CD

C_R

X

CD

C_T

X

DBG3

DBG1_CTRL

DE

BU

GG

ER

RE

GU

LA

TO

R

REG_ENABLE

RE

G_E

NA

BL

E

47kR103

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

47kR102

47kR105

SWC

LK

GN

D

47kR100 G

ND

DB

G2

S0_0

_RX

DB

G1_

CT

RL

DB

G0_

CT

RL

DB

G3

OP

EN

DR

AIN

TA

RG

ET

AD

JUST

AB

LE

RE

GU

LA

TO

R

SRST

DE

BU

GG

ER

TE

ST

PO

INT DBG2_CTRL

VO

FF

CD

C_R

X_C

TR

L

47kR109

DB

G1

CD

C_T

X_C

TR

L

CD

C_R

X_C

TR

L

SWC

LK

REG_ADJUST

DBG2_GPIO

DB

G3_

CT

RL

DB

G2_

CT

RL

UP

DI

UPD

I

GPI

O

GPI

O

RE

SET

Sign

al

DB

G0

DB

G1

DB

G2

DB

G3

ICS

PIn

terf

ace

DA

T

CL

K

GPI

O

MC

LR

DB

G3

CD

C T

X

CD

C R

X

UA

RT

RX

UA

RT

TX

UA

RT

RX

UA

RT

TX

TA

RG

ET

TA

RG

ET

1kR

110

VBUS_ADC

1

23

DM

N65

D8L

FB

Q10

1

VC

C-

-

ID_SYS

VOFF

1kR112

VC

C_P

3V3

VT

G_A

DC

DA

C

MIC

9416

3

VIN

B2

VOUT

A1

VIN

A2

EN

C2

GND

C1

VOUT

B1

U10

8

GN

D

ID_S

YS

VT

G_E

N

VTG_EN

VBUS_ADC

SWD

IO

ID_S

YS

TP

101

GN

DSW

DIO

VO

FF

47kR111 G

ND

ID P

IN

MC

3621

3

F10

0

VC

C_V

BU

S

VC

C_V

BU

S

VC

C_V

BU

S

J101

VC

C_T

AR

GE

T

47k

R11

3

CDC_TX

CDC_RX

Prog

ram

min

g co

nnec

tor

for

fact

ory

prog

ram

min

g of

DE

BU

GG

ER

MIC

5528

V

in 2

5V

to 5

5V

Vou

t F

ixed

33

VIm

ax 5

00m

AD

ropo

ut 2

60m

V

500

mA

MIC

5353

V

in 2

6V

to 6

VV

out

12

5V to

51

VIm

ax 5

00m

AD

ropo

ut (

typi

cal)

50m

V

150m

A 1

60m

V

500

mA

Acc

urac

y 2

in

itia

lT

herm

al s

hutd

own

and

curr

ent l

imit

Max

imum

out

put v

olta

ge is

lim

ited

by

the

inpu

t vol

tage

and

the

drop

out v

olta

ge in

the

regu

lato

r(V

max

= V

in -

dro

pout

)

J100

-

Cut

-str

ap u

sed

for

full

sep

arat

ion

of ta

rget

pow

er f

rom

the

leve

l shi

fter

s an

don

-boa

rd r

egul

ator

s-

For

cur

rent

mea

sure

men

ts u

sing

the

on-b

oard

pow

er s

uppl

y th

isst

rap

mus

t be

cut a

nd a

nam

met

er c

onne

cted

acr

oss

- F

or c

urre

nt m

easu

rem

ents

usi

ng a

n ex

tern

al p

ower

sup

ply

this

str

ap c

ould

be

cut f

or m

ore

accu

rate

mea

sure

men

ts L

eaka

ge b

ack

thro

ugh

the

swit

ch is

in th

e m

icro

am

pere

ran

ge

PT

C R

eset

tabl

e fu

se

Hol

d cu

rren

t 5

00m

AT

rip

curr

ent

100

0mA

Adj

usta

ble

outp

ut a

nd li

mit

atio

ns

- T

he D

EB

UG

GE

R c

an a

djus

t the

out

put v

olta

ge o

f th

e re

gula

tor

betw

een

125

V a

nd 5

1V

to th

e ta

rget

-

The

vol

tage

out

put i

s li

mit

ed b

y th

e in

put (

US

B)

whi

ch c

an v

ary

betw

een

440

V to

52

5V-

The

leve

l shi

fter

s ha

ve a

min

imal

vol

tage

leve

l of

165

V a

nd w

ill l

imit

the

min

imum

ope

ratin

g vo

ltage

all

owed

for

the

targ

et to

sti

ll a

llow

com

mun

icat

ion

- T

he M

IC94

163

has

a m

inim

al v

olat

ege

leve

l of

170

V a

nd w

ill l

imit

the

min

imum

vol

tage

del

iver

ed to

the

targ

et

- F

irm

war

e co

nfig

urat

ion

wil

l lim

it th

e vo

ltage

ran

ge to

be

wit

hin

the

the

targ

et s

peci

fica

tion

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 35

82 Assembly DrawingFigure 8-2 AVR128DB48 Curiosity Nano Assembly Drawing Top

+

Cb

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20001 PAC20002 COC200

PAC20101 PAC20102 COC201

PAC20201 PAC20202 COC202 PAC20301

PAC20302 COC203

PAC20401

PAC20402 COC204

PAC20502

PAC20501 COC205

PAC20601

PAC20602 COC206 PAC20701

PAC20702 COC207 PAD10002 PAD10001 COD100

PAD20002

PAD20001 COD200

PAF10002

PAF10001 COF100

PAJ10002 PAJ10001 COJ100

PAJ10101 PAJ10102 COJ101

PAJ10201

PAJ10202

PAJ10203

PAJ10204

PAJ10205

PAJ10206 COJ102

PAJ10506

PAJ10507 PAJ10509

PAJ10508 PAJ105010

PAJ105011 PAJ10505

PAJ10504

PAJ10503

PAJ10502

PAJ10501

PAJ10500

COJ105

PAJ200056 PAJ200053

PAJ200028 PAJ20002 PAJ20001

PAJ200051 PAJ200050 PAJ200052 PAJ200049 PAJ200048 PAJ200047 PAJ200046 PAJ200045 PAJ200044 PAJ200043 PAJ200042 PAJ200041 PAJ200040 PAJ200039 PAJ200038 PAJ200037 PAJ200036 PAJ200035 PAJ200034 PAJ200033 PAJ200032 PAJ200031 PAJ200030 PAJ200029

PAJ20003 PAJ20004 PAJ20005 PAJ20006 PAJ20007 PAJ20008 PAJ20009 PAJ200010 PAJ200011 PAJ200012 PAJ200013 PAJ200014 PAJ200015 PAJ200016 PAJ200017 PAJ200018 PAJ200019 PAJ200020 PAJ200021 PAJ200022 PAJ200023 PAJ200026 PAJ200025 PAJ200024 PAJ200027

PAJ200054 PAJ200055 PAJ20000

COJ200

PAJ20102 PAJ20101 COJ201

PAJ20202 PAJ20201 COJ202

PAJ20302 PAJ20301 COJ203

PAJ20402 PAJ20401 COJ204

PAJ20502 PAJ20501 COJ205

PAJ20602 PAJ20601 COJ206 PAJ20702 PAJ20701 COJ207

PAJ20802 PAJ20801 COJ208

PAJ20902 PAJ20901 COJ209

PAJ21001 PAJ21002 PAJ21005 COJ210

PAJ21102 PAJ21101 PAJ21105 COJ211

PAJ21202 PAJ21201 COJ212

PAJ21301 PAJ21302 PAJ21305 COJ213

PAJ21401 PAJ21402 PAJ21405 COJ214

PAJ21502 PAJ21501 COJ215

PAJ21602 PAJ21601 COJ216 PAJ21702 PAJ21701 COJ217

COLABEL1

PAQ10101 PAQ10102 PAQ10103 PAQ10100

COQ101 PAR10002

PAR10001 COR100 PAR10101 PAR10102 COR101

PAR10202 PAR10201 COR102

PAR10302 PAR10301 COR103

PAR10401 PAR10402 COR104

PAR10502

PAR10501 COR105

PAR10601 PAR10602 COR106

PAR10702 PAR10701 COR107

PAR10801

PAR10802 COR108

PAR10901 PAR10902 COR109

PAR11001 PAR11002 COR110

PAR11101 PAR11102 COR111

PAR11201 PAR11202 COR112

PAR11302 PAR11301 COR113

PAR20001 PAR20002 COR200 PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203 PAR20401 PAR20402 COR204

PASW20003

PASW20004 PASW20002

PASW20001 COSW200

PATP10001 COTP100

PATP10101 COTP101 PAU100033

PAU100032 PAU100031 PAU100030 PAU100029 PAU100028 PAU100027 PAU100026 PAU100025 PAU100024

PAU100023

PAU100022

PAU100021

PAU100020

PAU100019

PAU100018

PAU100017 PAU100016 PAU100015 PAU100014 PAU100013 PAU100012 PAU100011 PAU100010

PAU10001

PAU10002

PAU10003

PAU10004

PAU10005

PAU10006

PAU10007

PAU10008 PAU10009

COU100

PAU10107

PAU10104 PAU10105 PAU10106

PAU10103 PAU10102 PAU10101 PAU10100 COU101 PAU10207

PAU10204 PAU10205

PAU10206

PAU10203 PAU10202

PAU10201

COU102

PAU10306

PAU10305 PAU10304 PAU10303

PAU10302 PAU10301 PAU10300

COU103

PAU10406

PAU10405 PAU10404 PAU10403

PAU10402 PAU10401 PAU10400

COU104

PAU10506

PAU10505 PAU10504 PAU10503

PAU10502 PAU10501 PAU10500

COU105

PAU10606

PAU10605 PAU10604 PAU10603

PAU10602 PAU10601 PAU10600

COU106

PAU10706

PAU10705 PAU10704 PAU10703

PAU10702 PAU10701 PAU10700

COU107

PAU1080A1 PAU1080A2

PAU1080B1 PAU1080B2

PAU1080C1 PAU1080C2 COU108

PAU20001 PAU20002 PAU20003 PAU20004 PAU20005 PAU20006 PAU20007 PAU20008 PAU20009 PAU200010 PAU200011 PAU200012 PAU200013 PAU200014 PAU200015 PAU200016 PAU200017 PAU200018 PAU200019 PAU200020 PAU200021 PAU200022 PAU200023 PAU200024 PAU200025 PAU200026 PAU200027 PAU200028 PAU200029 PAU200030 PAU200031 PAU200032 PAU200033 PAU200034 PAU200035 PAU200036

PAU200037 PAU200038 PAU200039 PAU200040 PAU200041 PAU200042 PAU200043 PAU200044 PAU200045 PAU200046 PAU200047 PAU200048

COU200

PAXC20001

PAXC20002 COXC200

PAXC20101 PAXC20102

PAXC20103 PAXC20104 COXC201

Figure 8-3 AVR128DB48 Curiosity Nano Assembly Drawing Bottom

tcR

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20001 PAC20002 COC200

PAC20101 PAC20102 COC201

PAC20201 PAC20202 COC202 PAC20301

PAC20302 COC203

PAC20401

PAC20402 COC204

PAC20502

PAC20501 COC205

PAC20601

PAC20602 COC206 PAC20701

PAC20702 COC207 PAD10002 PAD10001 COD100

PAD20002

PAD20001 COD200

PAF10002

PAF10001 COF100

PAJ10002 PAJ10001 COJ100

PAJ10101 PAJ10102 COJ101

PAJ10201

PAJ10202

PAJ10203

PAJ10204

PAJ10205

PAJ10206 COJ102

PAJ10506

PAJ10507 PAJ10509

PAJ10508 PAJ105010

PAJ105011 PAJ10505

PAJ10504

PAJ10503

PAJ10502

PAJ10501

PAJ10500

COJ105

PAJ200056 PAJ200053

PAJ200028 PAJ20002 PAJ20001

PAJ200051 PAJ200050 PAJ200052 PAJ200049 PAJ200048 PAJ200047 PAJ200046 PAJ200045 PAJ200044 PAJ200043 PAJ200042 PAJ200041 PAJ200040 PAJ200039 PAJ200038 PAJ200037 PAJ200036 PAJ200035 PAJ200034 PAJ200033 PAJ200032 PAJ200031 PAJ200030 PAJ200029

PAJ20003 PAJ20004 PAJ20005 PAJ20006 PAJ20007 PAJ20008 PAJ20009 PAJ200010 PAJ200011 PAJ200012 PAJ200013 PAJ200014 PAJ200015 PAJ200016 PAJ200017 PAJ200018 PAJ200019 PAJ200020 PAJ200021 PAJ200022 PAJ200023 PAJ200026 PAJ200025 PAJ200024 PAJ200027

PAJ200054 PAJ200055 PAJ20000

COJ200

PAJ20102 PAJ20101 COJ201

PAJ20202 PAJ20201 COJ202

PAJ20302 PAJ20301 COJ203

PAJ20402 PAJ20401 COJ204

PAJ20502 PAJ20501 COJ205

PAJ20602 PAJ20601 COJ206 PAJ20702 PAJ20701 COJ207

PAJ20802 PAJ20801 COJ208

PAJ20902 PAJ20901 COJ209

PAJ21001 PAJ21002 PAJ21005 COJ210

PAJ21102 PAJ21101 PAJ21105 COJ211

PAJ21202 PAJ21201 COJ212

PAJ21301 PAJ21302 PAJ21305 COJ213

PAJ21401 PAJ21402 PAJ21405 COJ214

PAJ21502 PAJ21501 COJ215

PAJ21602 PAJ21601 COJ216 PAJ21702 PAJ21701 COJ217

COLABEL1

PAQ10101 PAQ10102 PAQ10103 PAQ10100

COQ101 PAR10002

PAR10001 COR100 PAR10101 PAR10102 COR101

PAR10202 PAR10201 COR102

PAR10302 PAR10301 COR103

PAR10401 PAR10402 COR104

PAR10502

PAR10501 COR105

PAR10601 PAR10602 COR106

PAR10702 PAR10701 COR107

PAR10801

PAR10802 COR108

PAR10901 PAR10902 COR109

PAR11001 PAR11002 COR110

PAR11101 PAR11102 COR111

PAR11201 PAR11202 COR112

PAR11302 PAR11301 COR113

PAR20001 PAR20002 COR200 PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203 PAR20401 PAR20402 COR204

PASW20003

PASW20004 PASW20002

PASW20001 COSW200

PATP10001 COTP100

PATP10101 COTP101 PAU100033

PAU100032 PAU100031 PAU100030 PAU100029 PAU100028 PAU100027 PAU100026 PAU100025 PAU100024

PAU100023

PAU100022

PAU100021

PAU100020

PAU100019

PAU100018

PAU100017 PAU100016 PAU100015 PAU100014 PAU100013 PAU100012 PAU100011 PAU100010

PAU10001

PAU10002

PAU10003

PAU10004

PAU10005

PAU10006

PAU10007

PAU10008 PAU10009

COU100

PAU10107

PAU10104 PAU10105 PAU10106

PAU10103 PAU10102 PAU10101 PAU10100 COU101 PAU10207

PAU10204 PAU10205

PAU10206

PAU10203 PAU10202

PAU10201

COU102

PAU10306

PAU10305 PAU10304 PAU10303

PAU10302 PAU10301 PAU10300

COU103

PAU10406

PAU10405 PAU10404 PAU10403

PAU10402 PAU10401 PAU10400

COU104

PAU10506

PAU10505 PAU10504 PAU10503

PAU10502 PAU10501 PAU10500

COU105

PAU10606

PAU10605 PAU10604 PAU10603

PAU10602 PAU10601 PAU10600

COU106

PAU10706

PAU10705 PAU10704 PAU10703

PAU10702 PAU10701 PAU10700

COU107

PAU1080A1 PAU1080A2

PAU1080B1 PAU1080B2

PAU1080C1 PAU1080C2 COU108

PAU20001 PAU20002 PAU20003 PAU20004 PAU20005 PAU20006 PAU20007 PAU20008 PAU20009 PAU200010 PAU200011 PAU200012 PAU200013 PAU200014 PAU200015 PAU200016 PAU200017 PAU200018 PAU200019 PAU200020 PAU200021 PAU200022 PAU200023 PAU200024 PAU200025 PAU200026 PAU200027 PAU200028 PAU200029 PAU200030 PAU200031 PAU200032 PAU200033 PAU200034 PAU200035 PAU200036

PAU200037 PAU200038 PAU200039 PAU200040 PAU200041 PAU200042 PAU200043 PAU200044 PAU200045 PAU200046 PAU200047 PAU200048

COU200

PAXC20001

PAXC20002 COXC200

PAXC20101 PAXC20102

PAXC20103 PAXC20104 COXC201

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 36

83 Curiosity Nano Base for Click boardstrade

Figure 8-4 AVR128DB48 Curiosity Nano Pinout Mapping

US

B

DE

BU

GG

ER

AV

R1

28

DB

48

SW

0

LE

D0

PS

LE

DNC

NC

ID

ID

CDC RX

CDCRX

USART3 TX

PB0

CDC TX

CDCTX

USART3 RX

PB1

DBG1

DBG1

PB3

LED0

DBG2

DBG2

PB2

SW0

PF4

PF4

USART2 TX

PF5

PF5

USART2 RX

PA2

PA2

TWI0 SDA

PA3

PA3

TWI0 SCL

PA4

PA4

SPI0 MOSI

PA5

PA5

SPI0 MISO

PA6

PA6

SPI0 SCK

PA7

PA7

SPI0 SS

GND

GND

PB0

PB0

USART3 TX

CDC RX

PB1

PB1

USART3 RX

CDC TX

PF2

PF2

PF3

PF3

PC0

PC0

PC1

PC1

PC2

PC2

PC3

PC3

GND

GND

(PA0)

(PA0)

XTALHF1

(PA1)

(PA1)

XTALHF2

PB2

PB2

SW0

PB3

PB3

LED0

VBUS

VBUS

VOFF

VOFF

DBG3

DBG3

PF6

DBG0

DBG0

UPDI

GND

GND

VTG

VTG

PD6

PD6

AIN6

PD3

PD3

AIN3

OP0 INN

PD2

PD2

AIN2

OP0 OUT

TCA0 WO2

PD1

PD1

AIN1

OP0 INP

TCA0 WO1

PD0

PD0

AIN0

TCA0 WO0

PD7

PD7

AIN7

OP1 INN

PD5

PD5

AIN5

OP1 OUT

PD4

PD4

AIN4

OP1 INP

GND

GND

PE3

PE3

OP2 INN

PE2

PE2

OP2 OUT

PE1

PE1

OP2 INP

PE0

PE0

PC7

PC7

PC6

PC6

PC5

PC5

PC4

PC4

GND

GND

PB5

PB5

PB4

PB4

(PF1)

(PF1)

XTAL32K2

(PF0)

(PF0)

XTAL32K1

DE

BU

GG

ER

AV

R1

28

DB

48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

MVIO

OPAMP

Shared pin

AV

R1

28

DB

48

Cu

rio

sity

Na

no

1

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

2

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

3

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

Xp

lain

ed

Pro

Ext

en

sio

nE

XT

11

2

19

20

Cu

rio

sity

Na

no

Ba

sefo

r cl

ick

bo

ard

sT

M

PD4

PD0

PD6

PD3

PA7

PF5

PA6

PF4

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

PD5

PD1

PF3

PF2

PE2

PB1

PA6

PB0

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

PD7

PD2

PE1

PE0

PE3

PF5

PA6

PF4

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

ID

GND

PD5

PD7

PF3

PE1

PD1

PD2

PF2

PE3

PA2

PA3

PB1

PB0

PE2

PA4

PA5

PA6

GND

+33V

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 37

84 Disconnecting the On-board DebuggerThe on-board debugger and level shifters can be completely disconnected from the AVR128DB48

The block diagram below shows all connections between the debugger and the AVR128DB48 The rounded boxesrepresent connections to the board edge The signal names shown are also printed in silkscreen on the bottom sideof the board

To disconnect the debugger cut the straps shown in Figure 8-6

Attention  Cutting the GPIO straps to the on-board debugger will disable the virtual serial portprogramming debugging and data streaming Cutting the power supply strap will disconnect the on-boardpower supply

Tip  Any connection that is cut can be reconnected using solder Alternatively a 0Ω 0402 resistor can bemounted

Tip  When the debugger is disconnected an external debugger can be connected to holes shown in Figure 8-6 Details about connecting an external debugger are described in 46 Connecting ExternalDebuggers

Figure 8-5  On-Board Debugger Connections Block Diagram

DE

BU

GG

ER

TARGETLevel-Shift

PA04PA06PA07PA08PA16PA00PA01

USB

DIR x 5

VCC_P3V3

VBUS

VC

C_L

EV

EL

VC

C_T

AR

GE

TDBG0DBG1DBG2DBG3CDC TXCDC RX

CDC RX

CDC TX

DBG3

DBG2

DBG1

DBG0

GPIO straps

LDO

VOFF

LDO

VBUS VTG

VCC_EDGE

Power Supply strap Target Power strap

UART RXUART TX

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 38

Figure 8-6 On-Board Debugger Connection Cut Straps

GPIO straps (bottom side) Power Supply strap (top side)

85 Getting Started with IARIAR Embedded Workbenchreg for AVRreg is a proprietary high-efficiency compiler not based on GCC Programming anddebugging of AVR128DB48 Curiosity Nano is supported in IARtrade Embedded Workbench for AVR using the Atmel-ICEinterface Some initial settings must be set up in the project to get the programming and debugging to work

The following steps will explain how to get your project ready for programming and debugging

1 Make sure you have opened the project you want to configure Open the OPTIONS dialog for the project2 In the category General Options select the Target tab Select the device for the project or if not listed the

core of the device as shown in Figure 8-73 In the category Debugger select the Setup tab Select Atmel-ICE as the driver as shown in Figure 8-84 In the category Debugger gt Atmel-ICE select the Atmel-ICE 1 tab Select UPDI as the interface and

optionally select the UPDI frequency as shown in Figure 8-9

Info  If the selection of Debug Port (mentioned in step 4) is grayed out the interface is preselected andthe user can skip this configuration step

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 39

Figure 8-7 Select Target Device

Figure 8-8 Select Debugger

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 40

Figure 8-9 Configure Interface

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 41

The Microchip Website

Microchip provides online support via our website at wwwmicrochipcom This website is used to make files andinformation easily available to customers Some of the content available includes

bull Product Support ndash Data sheets and errata application notes and sample programs design resources userrsquosguides and hardware support documents latest software releases and archived software

bull General Technical Support ndash Frequently Asked Questions (FAQs) technical support requests onlinediscussion groups Microchip design partner program member listing

bull Business of Microchip ndash Product selector and ordering guides latest Microchip press releases listing ofseminars and events listings of Microchip sales offices distributors and factory representatives

Product Change Notification Service

Microchiprsquos product change notification service helps keep customers current on Microchip products Subscribers willreceive email notification whenever there are changes updates revisions or errata related to a specified productfamily or development tool of interest

To register go to wwwmicrochipcompcn and follow the registration instructions

Customer Support

Users of Microchip products can receive assistance through several channels

bull Distributor or Representativebull Local Sales Officebull Embedded Solutions Engineer (ESE)bull Technical Support

Customers should contact their distributor representative or ESE for support Local sales offices are also available tohelp customers A listing of sales offices and locations is included in this document

Technical support is available through the website at wwwmicrochipcomsupport

Microchip Devices Code Protection Feature

Note the following details of the code protection feature on Microchip devices

bull Microchip products meet the specifications contained in their particular Microchip Data Sheetbull Microchip believes that its family of products is secure when used in the intended manner and under normal

conditionsbull There are dishonest and possibly illegal methods being used in attempts to breach the code protection features

of the Microchip devices We believe that these methods require using the Microchip products in a manneroutside the operating specifications contained in Microchiprsquos Data Sheets Attempts to breach these codeprotection features most likely cannot be accomplished without violating Microchiprsquos intellectual property rights

bull Microchip is willing to work with any customer who is concerned about the integrity of its codebull Neither Microchip nor any other semiconductor manufacturer can guarantee the security of its code Code

protection does not mean that we are guaranteeing the product is ldquounbreakablerdquo Code protection is constantlyevolving We at Microchip are committed to continuously improving the code protection features of our productsAttempts to break Microchiprsquos code protection feature may be a violation of the Digital Millennium Copyright ActIf such acts allow unauthorized access to your software or other copyrighted work you may have a right to suefor relief under that Act

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 42

Legal Notice

Information contained in this publication is provided for the sole purpose of designing with and using Microchipproducts Information regarding device applications and the like is provided only for your convenience and may besuperseded by updates It is your responsibility to ensure that your application meets with your specifications

THIS INFORMATION IS PROVIDED BY MICROCHIP ldquoAS ISrdquo MICROCHIP MAKES NO REPRESENTATIONS ORWARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED WRITTEN OR ORAL STATUTORY OROTHERWISE RELATED TO THE INFORMATION INCLUDING BUT NOT LIMITED TO ANY IMPLIEDWARRANTIES OF NON-INFRINGEMENT MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSEOR WARRANTIES RELATED TO ITS CONDITION QUALITY OR PERFORMANCE

IN NO EVENT WILL MICROCHIP BE LIABLE FOR ANY INDIRECT SPECIAL PUNITIVE INCIDENTAL ORCONSEQUENTIAL LOSS DAMAGE COST OR EXPENSE OF ANY KIND WHATSOEVER RELATED TO THEINFORMATION OR ITS USE HOWEVER CAUSED EVEN IF MICROCHIP HAS BEEN ADVISED OF THEPOSSIBILITY OR THE DAMAGES ARE FORESEEABLE TO THE FULLEST EXTENT ALLOWED BY LAWMICROCHIPS TOTAL LIABILITY ON ALL CLAIMS IN ANY WAY RELATED TO THE INFORMATION OR ITS USEWILL NOT EXCEED THE AMOUNT OF FEES IF ANY THAT YOU HAVE PAID DIRECTLY TO MICROCHIP FORTHE INFORMATION Use of Microchip devices in life support andor safety applications is entirely at the buyerrsquos riskand the buyer agrees to defend indemnify and hold harmless Microchip from any and all damages claims suits orexpenses resulting from such use No licenses are conveyed implicitly or otherwise under any Microchip intellectualproperty rights unless otherwise stated

Trademarks

The Microchip name and logo the Microchip logo Adaptec AnyRate AVR AVR logo AVR Freaks BesTimeBitCloud chipKIT chipKIT logo CryptoMemory CryptoRF dsPIC FlashFlex flexPWR HELDO IGLOO JukeBloxKeeLoq Kleer LANCheck LinkMD maXStylus maXTouch MediaLB megaAVR Microsemi Microsemi logo MOSTMOST logo MPLAB OptoLyzer PackeTime PIC picoPower PICSTART PIC32 logo PolarFire Prochip DesignerQTouch SAM-BA SenGenuity SpyNIC SST SST Logo SuperFlash Symmetricom SyncServer TachyonTempTrackr TimeSource tinyAVR UNIO Vectron and XMEGA are registered trademarks of Microchip TechnologyIncorporated in the USA and other countries

APT ClockWorks The Embedded Control Solutions Company EtherSynch FlashTec Hyper Speed ControlHyperLight Load IntelliMOS Libero motorBench mTouch Powermite 3 Precision Edge ProASIC ProASIC PlusProASIC Plus logo Quiet-Wire SmartFusion SyncWorld Temux TimeCesium TimeHub TimePictra TimeProviderVite WinPath and ZL are registered trademarks of Microchip Technology Incorporated in the USA

Adjacent Key Suppression AKS Analog-for-the-Digital Age Any Capacitor AnyIn AnyOut BlueSky BodyComCodeGuard CryptoAuthentication CryptoAutomotive CryptoCompanion CryptoController dsPICDEMdsPICDEMnet Dynamic Average Matching DAM ECAN EtherGREEN In-Circuit Serial Programming ICSPINICnet Inter-Chip Connectivity JitterBlocker KleerNet KleerNet logo memBrain Mindi MiWi MPASM MPFMPLAB Certified logo MPLIB MPLINK MultiTRAK NetDetach Omniscient Code Generation PICDEMPICDEMnet PICkit PICtail PowerSmart PureSilicon QMatrix REAL ICE Ripple Blocker SAM-ICE Serial QuadIO SMART-IS SQI SuperSwitcher SuperSwitcher II Total Endurance TSHARC USBCheck VariSenseViewSpan WiperLock Wireless DNA and ZENA are trademarks of Microchip Technology Incorporated in the USAand other countries

SQTP is a service mark of Microchip Technology Incorporated in the USA

The Adaptec logo Frequency on Demand Silicon Storage Technology and Symmcom are registered trademarks ofMicrochip Technology Inc in other countries

GestIC is a registered trademark of Microchip Technology Germany II GmbH amp Co KG a subsidiary of MicrochipTechnology Inc in other countries

All other trademarks mentioned herein are property of their respective companiescopy 2020 Microchip Technology Incorporated Printed in the USA All Rights Reserved

ISBN 978-1-5224-6667-3

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 43

Quality Management SystemFor information regarding Microchiprsquos Quality Management Systems please visit wwwmicrochipcomquality

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 44

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupportwwwmicrochipcomsupportWeb AddresswwwmicrochipcomAtlantaDuluth GATel 678-957-9614Fax 678-957-1455Austin TXTel 512-257-3370BostonWestborough MATel 774-760-0087Fax 774-760-0088ChicagoItasca ILTel 630-285-0071Fax 630-285-0075DallasAddison TXTel 972-818-7423Fax 972-818-2924DetroitNovi MITel 248-848-4000Houston TXTel 281-894-5983IndianapolisNoblesville INTel 317-773-8323Fax 317-773-5453Tel 317-536-2380Los AngelesMission Viejo CATel 949-462-9523Fax 949-462-9608Tel 951-273-7800Raleigh NCTel 919-844-7510New York NYTel 631-435-6000San Jose CATel 408-735-9110Tel 408-436-4270Canada - TorontoTel 905-695-1980Fax 905-695-2078

Australia - SydneyTel 61-2-9868-6733China - BeijingTel 86-10-8569-7000China - ChengduTel 86-28-8665-5511China - ChongqingTel 86-23-8980-9588China - DongguanTel 86-769-8702-9880China - GuangzhouTel 86-20-8755-8029China - HangzhouTel 86-571-8792-8115China - Hong Kong SARTel 852-2943-5100China - NanjingTel 86-25-8473-2460China - QingdaoTel 86-532-8502-7355China - ShanghaiTel 86-21-3326-8000China - ShenyangTel 86-24-2334-2829China - ShenzhenTel 86-755-8864-2200China - SuzhouTel 86-186-6233-1526China - WuhanTel 86-27-5980-5300China - XianTel 86-29-8833-7252China - XiamenTel 86-592-2388138China - ZhuhaiTel 86-756-3210040

India - BangaloreTel 91-80-3090-4444India - New DelhiTel 91-11-4160-8631India - PuneTel 91-20-4121-0141Japan - OsakaTel 81-6-6152-7160Japan - TokyoTel 81-3-6880- 3770Korea - DaeguTel 82-53-744-4301Korea - SeoulTel 82-2-554-7200Malaysia - Kuala LumpurTel 60-3-7651-7906Malaysia - PenangTel 60-4-227-8870Philippines - ManilaTel 63-2-634-9065SingaporeTel 65-6334-8870Taiwan - Hsin ChuTel 886-3-577-8366Taiwan - KaohsiungTel 886-7-213-7830Taiwan - TaipeiTel 886-2-2508-8600Thailand - BangkokTel 66-2-694-1351Vietnam - Ho Chi MinhTel 84-28-5448-2100

Austria - WelsTel 43-7242-2244-39Fax 43-7242-2244-393Denmark - CopenhagenTel 45-4485-5910Fax 45-4485-2829Finland - EspooTel 358-9-4520-820France - ParisTel 33-1-69-53-63-20Fax 33-1-69-30-90-79Germany - GarchingTel 49-8931-9700Germany - HaanTel 49-2129-3766400Germany - HeilbronnTel 49-7131-72400Germany - KarlsruheTel 49-721-625370Germany - MunichTel 49-89-627-144-0Fax 49-89-627-144-44Germany - RosenheimTel 49-8031-354-560Israel - RarsquoananaTel 972-9-744-7705Italy - MilanTel 39-0331-742611Fax 39-0331-466781Italy - PadovaTel 39-049-7625286Netherlands - DrunenTel 31-416-690399Fax 31-416-690340Norway - TrondheimTel 47-72884388Poland - WarsawTel 48-22-3325737Romania - BucharestTel 40-21-407-87-50Spain - MadridTel 34-91-708-08-90Fax 34-91-708-08-91Sweden - GothenbergTel 46-31-704-60-40Sweden - StockholmTel 46-8-5090-4654UK - WokinghamTel 44-118-921-5800Fax 44-118-921-5820

Worldwide Sales and Service

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 45

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Board Overview
      • 2 Getting Started
        • 21 Quick Start
          • 211 Driver Installation
          • 212 Kit Window
          • 213 MPLABreg X IDE Device Family Packs
          • 214 Atmel Studio 7 Device Family Pack
            • 22 Design Documentation and Relevant Links
              • 3 Preprogrammed Application
              • 4 Curiosity Nano
                • 41 On-Board Debugger Overview
                  • 411 Debugger
                  • 412 Virtual Serial Port (CDC)
                    • 4121 Overview
                    • 4122 Operating System Support
                    • 4123 Limitations
                    • 4124 Signaling
                    • 4125 Advanced Use
                      • 413 Mass Storage Device
                        • 4131 Mass Storage Device Implementation
                        • 4132 Limitations of Drag-and-Drop Programming
                        • 4133 Special Commands
                          • 414 Data Gateway Interface (DGI)
                            • 4141 Debug GPIO
                            • 4142 Timestamping
                                • 42 Curiosity Nano Standard Pinout
                                • 43 Power Supply
                                  • 431 Target Regulator
                                  • 432 External Supply
                                  • 433 VBUS Output Pin
                                  • 434 Power Supply Exceptions
                                    • 44 Low-Power Measurement
                                    • 45 Programming External Microcontrollers
                                      • 451 Supported Devices
                                      • 452 Software Configuration
                                      • 453 Hardware Modifications
                                      • 454 Connecting to External Microcontrollers
                                        • 46 Connecting External Debuggers
                                          • 5 Hardware User Guide
                                            • 51 Connectors
                                              • 511 AVR128DB48 Curiosity Nano Pinout
                                              • 512 Using Pin Headers
                                              • 513 Multi-Voltage IO
                                              • 514 Operational Amplifiers
                                                • 52 Peripherals
                                                  • 521 LED
                                                  • 522 Mechanical Switch
                                                  • 523 32768 kHz Crystal
                                                  • 524 1600 MHz Crystal
                                                  • 525 On-Board Debugger Implementation
                                                    • 5251 On-Board Debugger Connections
                                                      • 6 Hardware Revision History and Known Issues
                                                        • 61 Identifying Product ID and Revision
                                                        • 62 Revision 3
                                                        • 63 Revision 2
                                                          • 7 Document Revision History
                                                          • 8 Appendix
                                                            • 81 Schematic
                                                            • 82 Assembly Drawing
                                                            • 83 Curiosity Nano Base for Click boardstrade
                                                            • 84 Disconnecting the On-board Debugger
                                                            • 85 Getting Started with IAR
                                                              • The Microchip Website
                                                              • Product Change Notification Service
                                                              • Customer Support
                                                              • Microchip Devices Code Protection Feature
                                                              • Legal Notice
                                                              • Trademarks
                                                              • Quality Management System
                                                              • Worldwide Sales and Service
Page 19: AVR128DB48 Curiosity Nano Hardware User Guideww1.microchip.com/downloads/en/DeviceDoc/AVR128DB48-Curiosit… · 4. Curiosity Nano Curiosity Nano is an evaluation platform of small

No Target Voltage and PS LED is Lit 1This occurs if the target voltage is set to 00V To fix this set the target voltage to a value within the specified voltagerange for the target device

No Target Voltage and PS LED is Lit 2This can be the issue if power jumper J100 andor J101 is cut and the target voltage regulator is set to a value withinthe specified voltage range for the target device To fix this solder a wirebridge between the pads for J100J101 oradd a jumper on J101 if a pin header is mounted

VBUS Output Voltage is Low or Not PresentThis is most lightly caused by a high-current drain on VBUS and the protection fuse (PTC) will reduce the current orcut off completely Reduce the current consumption on the VBUS pin to fix this issue

44 Low-Power MeasurementPower to the AVR128DB48 is connected from the on-board power supply and VTG pin through a 100 mil pin headermarked with ldquoPOWERrdquo in silkscreen (J101) To measure the power consumption of the AVR128DB48 and otherperipherals connected to the board cut the Target Power strap and connect an ammeter over the strap

To measure the lowest possible power consumption follow these steps1 Cut the POWER strap with a sharp tool2 Solder a 1x2 100 mil pin header in the footprint3 Connect an ammeter to the pin header4 Write firmware that

41 Tri-states any IO connected to the on-board debugger42 Sets the microcontroller in its lowest power Sleep state

5 Program the firmware into the AVR128DB48

Figure 4-7 Target Power Strap

Target Power strap (top side)

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 19

Tip  A 100-mil pin header can be soldered into the Target Power strap (J101) footprint for easyconnection of an ammeter Once the ammeter is no longer needed place a jumper cap on the pin header

Info  The on-board level shifters will draw a small amount of current even when they are not in use Amaximum of 2 microA can be drawn from each IO pin connected to a level shifter for a total of 10 microA Keepany IO pin connected to a level shifter in tri-state to prevent leakage All IOs connected to the on-boarddebugger are listed in 5251 On-Board Debugger Connections To prevent any leakage to the on-boardlevel shifters they can be disconnected completely as described in 84 Disconnecting the On-boardDebugger

45 Programming External MicrocontrollersThe on-board debugger on AVR128DB48 Curiosity Nano can be used to program and debug microcontrollers onexternal hardware

451 Supported DevicesAll external AVR microcontrollers with the UPDI interface can be programmed and debugged with the on-boarddebugger with Atmel Studio

External SAM microcontrollers that have a Curiosity Nano Board can be programmed and debugged with the on-board debugger with Atmel Studio

AVR128DB48 Curiosity Nano can program and debug external AVR128DB48 microcontrollers with MPLAB X IDE

452 Software ConfigurationNo software configuration is required to program and debug the same device that is mounted on the board

To program and debug a different microcontroller than what is mounted on the board Atmel Studio must beconfigured to allow free selection of devices and programming interfaces

1 Navigate to Tools gt Options through the menu system at the top of the application2 Select the Tools gt Tool settings category in the options window3 Set the Hide unsupported devices option to False

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 20

Figure 4-8 Hide Unsupported Devices

Info  Atmel Studio allows any microcontroller and interface to be selected when Hide unsupporteddevices is set to False also microcontrollers and interfaces which are not supported by the on-boarddebugger

453 Hardware ModificationsThe on-board debugger is connected to the AVR128DB48 by default These connections must be removed beforeany external microcontroller can be programmed or debugged Cut the GPIO straps shown in the figure below with asharp tool to disconnect the AVR128DB48 from the on-board debugger

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 21

Figure 4-9 Programming and Debugging Connections to Debugger

GPIO straps (bottom side)

Info  Cutting the connections to the debugger will disable programming debugging and data streamingfrom the AVR128DB48 mounted on the board

Tip  Solder in 0Ω resistors across the footprints or short-circuit them with solder to reconnect the signalsbetween the on-board debugger and the AVR128DB48

454 Connecting to External MicrocontrollersThe figure and table below show where the programming and debugging signals must be connected to program anddebug external microcontrollers The on-board debugger can supply power to the external hardware or use anexternal voltage as a reference for its level shifters Read more about the power supply in 43 Power Supply

The on-board debugger and level shifters actively drive data and clock signals (DBG0 DBG1 and DBG2) used forprogramming and debugging and in most cases the external resistor on these signals can be ignored Pull-downresistors are required on the ICSPtrade data and clock signals to debug PICreg microcontrollers

DBG3 is an open-drain connection and requires a pull-up resistor to function

AVR128DB48 Curiosity Nano has a pull-up resistor R200 connected to its RESET signal (DBG3) The location ofthe pull-up resistor is shown in the 82 Assembly Drawing in the appendix

Remember bull Connect GND and VTG to the external microcontrollerbull Tie the VOFF pin to GND if the external hardware has its own power supplybull Make sure there are pull-down resistors on the ICSP data and clock signals (DBG0 and DBG1) to

support the debugging of PIC microcontrollers

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 22

Figure 4-10 Curiosity Nano Standard Pinout

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

Table 4-4 Programming and Debugging Interfaces

Curiosity Nano Pin UPDI ICSPtrade SWD

DBG0 UPDI DATA SWDIO

DBG1 mdash CLK SWCLK

DBG2 mdash mdash mdash

DBG3 mdash MCLR RESET

46 Connecting External DebuggersEven though there is an on-board debugger external debuggers can be connected directly to the AVR128DB48Curiosity Nano to programdebug the AVR128DB48 The on-board debugger keeps all the pins connected to theAVR128DB48 and board edge in tri-state when not actively used Therefore the on-board debugger will not interferewith any external debug tools

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 23

Figure 4-11 Connecting the MPLABreg PICkittrade 4 In-Circuit DebuggerProgrammer to AVR128DB48 CuriosityNano

2345678 1

VDD

GroundDATA

2 = VDD

3 = Ground

4 = PGD

5 = Unused

6 = Unused

7 = Unused

8 = Unused

1 = Unused

MPLABreg PICkittrade 4

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 24

Figure 4-12 Connecting the Atmel-ICE to AVR128DB48 Curiosity Nano

VDD

Ground

DATA

AVRregSAM

3 = UPDI

4 = VTG

5 = Unused

6 = Unused

7 = Unused

8 = Unused

1 = Unused

2 = GND

9 = Unused

10 = Unused

Atmel-ICE

21 9

10

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

CAUTIONTo avoid contention between the external debugger and the on-board debugger do not start anyprogrammingdebug operation with the on-board debugger through MPLABreg X IDE or Atmel Studio 7 ormass storage programming while the external tool is active

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 25

5 Hardware User Guide

51 Connectors

511 AVR128DB48 Curiosity Nano PinoutAll the AVR128DB48 IO pins are accessible at the edge connectors on the board The image below shows the boardpinout For all available functions on each pin refer to the IO Multiplexing and Considerations section in theAVR128DB48 data sheet

Figure 5-1 AVR128DB48 Curiosity Nano Pinout

USB

DEBUGGER

AVR128DB48

SW0

LED0

PS LEDNC

NC

IDID

CDC RX

CD

CR

XUSART3 TXPB0

CDC TX

CD

CT

XUSART3 RXPB1

DBG1

DB

G1PB3LED0

DBG2

DB

G2PB2SW0

PF4

PF

4USART2 TX

PF5

PF

5USART2 RX

PA2

PA

2TWI0 SDA

PA3

PA

3TWI0 SCL

PA4

PA

4SPI0 MOSI

PA5

PA

5SPI0 MISO

PA6

PA

6SPI0 SCK

PA7

PA

7SPI0 SS

GND

GN

D

PB0

PB

0USART3 TXCDC RX

PB1

PB

1USART3 RXCDC TX

PF2

PF

2

PF3

PF

3

PC0

PC

0

PC1

PC

1

PC2

PC

2

PC3

PC

3

GND

GN

D

(PA0)

(PA

0)XTALHF1

(PA1)

(PA

1)XTALHF2

PB2

PB

2SW0

PB3

PB

3LED0

VBUS

VB

US

VOFF

VO

FF

DBG3

DB

G3 PF6

DBG0

DB

G0 UPDI

GND

GN

D

VTG

VT

G

PD6

PD

6 AIN6

PD3

PD

3 AIN3 OP0 INN

PD2

PD

2 AIN2 OP0 OUT TCA0 WO2

PD1

PD

1 AIN1 OP0 INP TCA0 WO1

PD0

PD

0 AIN0 TCA0 WO0

PD7

PD

7 AIN7 OP1 INN

PD5

PD

5 AIN5 OP1 OUT

PD4

PD

4 AIN4 OP1 INP

GND

GN

D

PE3

PE

3 OP2 INN

PE2

PE

2 OP2 OUT

PE1

PE

1 OP2 INP

PE0

PE

0

PC7

PC

7

PC6

PC

6

PC5

PC

5

PC4

PC

4

GND

GN

D

PB5

PB

5

PB4

PB

4

(PF1)

(PF

1) XTAL32K2

(PF0)

(PF

0) XTAL32K1

DEBUGGERAVR128DB48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

MVIO

OPAMP

Shared pin

AVR128DB48Curiosity Nano

512 Using Pin HeadersThe edge connector footprint on AVR128DB48 Curiosity Nano has a staggered design where each hole is shifted 8mil (~02 mm) off-center The hole shift allows the use of regular 100 mil pin headers on the board without solderingOnce the pin headers are firmly in place they can be used in normal applications like pin sockets and prototypingboards without any issues

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 26

Figure 5-2 Attaching Pin-Headers to the Curiostiy Nano Board

Figure 5-3 Connecting to Curiosity Nano Base for Click boardstrade

Tip  Start at one end of the pin header and gradually insert the header along the length of the boardOnce all the pins are in place use a flat surface to push them in

Tip  For applications where the pin headers will be used permanently it is still recommended to solderthem in place

Important  Once the pin headers are in place they are hard to remove by hand Use a set of pliers andcarefully remove the pin headers to avoid damage to the pin headers and PCB

513 Multi-Voltage IO

The AVR128DB48 Curiosity Nano MCU has support for Multi-Voltage IO (MVIO) AVR128DB48 MVIO pins areconnected to the edge connector at PC0-PC7 MVIO pins are capable of regular IO-pin behavior

MVIO can be configured in one of two supply modesbull Single-Supply mode All IO pins including MVIO-capable pins are powered by VCC_TARGET By default

VCC_TARGET is connected to VDDIO2 through a 0-ohm resistor (R204)bull Dual-Supply mode MVIO-capable pins are powered by an external power supply connected to VDDIO2 Non-

MVIO pins are powered by VCC_TARGET

Dual-Supply mode allows MVIO-pins to be powered at different voltages than pins powered from VCC_TARGET

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 27

WARNINGThe absolute maximum external voltage range for the AVR128DB48 is 18ndash55V Applying a higher voltagemay cause permanent damage to the board

By default AVR128DB48 Curiosity Nano board is configured for single-supply mode To use Dual-Supply mode somehardware modifications are required

WARNINGBefore any hardware modifications are done make sure the board is disconnected from USB or externalpower

bull Disconnect resistor R204 connecting VDDIO2 to VCC_TARGETbull Connect a new power supply to VDDIO2 and ground at J212bull J212 does not have reverse polarity protection Make sure to match polarity between the power supply and

J212 Positive-polarity to J212-pin 1 and negative-polarity to J212-pin 2

The resistor R204 VDDIO2 and J212 can be seen in Figure 5-4

Figure 5-4 MVIO and VDDIO2 Connections

J212 R204

WARNINGApplying an external voltage to VDDIO2 pin without removing resistor R204 may cause permanentdamage to the board

WARNINGJ212 does not have reverse polarity protection Applying voltage to the wrong pin may cause permanentdamage to the board

514 Operational AmplifiersAVR128DB48 features three internal operational amplifiers with a flexible connection scheme using analogmultiplexers and resistor ladders This allows a large number of analog signal conditioning configurations manyrequiring no external components

Table 5-1 OPAMP Pin Connections

OPAMP Poisitive Input (INP) Negative Input (INN) Output (OUT)

OP0 PD1 PD3 PD2

OP1 PD4 PD7 PD5

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 28

continuedOPAMP Poisitive Input (INP) Negative Input (INN) Output (OUT)

OP2 PE1 PE3 PE2

For information about OPAMP on the edge connector and any shared functionality see 511 AVR128DB48 CuriosityNano Pinout

52 Peripherals

521 LEDThere is one yellow user LED available on the AVR128DB48 Curiosity Nano board that can be controlled by eitherGPIO or PWM The LED can be activated by driving the connected IO line to GND

Table 5-2 LED Connection

AVR128DB48 Pin Function Shared Functionality

PB3 Yellow LED0 Edge connector On-board debugger

522 Mechanical SwitchThe AVR128DB48 Curiosity Nano board has one mechanical switch This is a generic user-configurable switchWhen the switch is pressed it will drive the IO line to ground (GND)

Tip  There is no externally connected pull-up resistor on the switch To use the switch make sure that aninternal pull-up resistor is enabled on pin PB2

Table 5-3 Mechanical Switch

AVR128DB48 Pin Description Shared Functionality

PB2 User switch (SW0) Edge connector On-board debugger

523 32768 kHz Crystal

On the AVR128DB48 Curiosity Nano board is a mounted 32768 kHz crystal of type VMK3-9001-32K7680000 thecrystal is accurate to within 20 ppm Using the External 32768 kHz Crystal Oscillator (XOSC32K) module inAVR128DB48 with the mounted 32768 kHz crystal generates a clock signal that is significantly more accurate thanthe Internal 32768 kHz Ultra Low-Power Oscillator (OSC32K) module can generate alone With the Auto-Tunefeature the 32768 kHz can be used as a reference to improve the accuracy of the internal oscillator This is an idealreference clock for the Real-Time Counter module in AVR128DB48

The 32768 kHz crystal is connected to AVR128DB48 on PF0 and PF1 which are also routed to the edge connectorthrough two solder points PF0 and PF1 are disconnected from the edge connector by default to reduce the chanceof an external signal causing contention with the crystal and to remove excessive capacitance on the lines

Next to the 32768 kHz crystal is a cut-strap (J209) which can be used to measure the oscillator safety factor This isdone by cutting the strap and adding a 0402 SMD resistor across the strap More information about oscillatorallowance and safety factor can be found in the AN2648 application note from Microchip

Cut straps and solder points can be seen in Figure 5-5

Table 5-4 32768 kHz Crystal Connections

AVR128DB48 Pin Function Shared Functionality

PF0 XTAL32K1 (Crystal input) Edge connector

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 29

continuedAVR128DB48 Pin Function Shared Functionality

PF1 XTAL32K2 (Crystal output) Edge connector

PA0 and PA1 can be used as GPIO To do so some hardware modifications are required

WARNINGBefore any hardware modifications are done make sure the board is disconnected from the USB orexternal power

bull Disconnect the 32768 kHz crystal by cutting the two straps on the top side of the board next to the crystal(J207 J208) The crystal should be disconnected when using the pin as GPIO as this might harm the crystal

bull Connect the IO lines to the edge connector by placing solder blobs on the circular solder points marked PF0and PF1 on the bottom side of the board (J210 J211)

Figure 5-5 Crystal Connection and Cut Straps

Top side Boom side

J211

J210

J207

J20832768 kHz Crystal

J209

524 1600 MHz Crystal

On the AVR128DB48 Curiosity Nano board is a mounted 1600 MHz crystal of type VXM7-9040-16M0000000 thecrystal is accurate to within 20 ppm Using the External High-Frequency Crystal Oscillator (XOSCHF) module inAVR128DB48 with the mounted 1600 MHz crystal generates a clock signal that is significantly more accurate thanthe Internal High-Frequency Oscillator (OSCHF) module

The 1600 MHz crystal is connected to AVR128DB48 on PA0 and PA1 which are also routed to the edge connectorthrough two solder points PA0 and PA1 are disconnected from the edge connector by default to reduce the chanceof an external signal causing contention with the crystal and to remove excessive capacitance on the lines

Next to the 1600 MHz crystal is a cut-strap (J217) which can be used to measure the oscillator safety factor This isdone by cutting the strap and adding a 0402 SMD resistor across the strap More information about oscillatorallowance and safety factor can be found in the AN2648 application note from Microchip

Cut straps and solder points can be seen in Figure 5-6

Table 5-5 Crystal Connections

AVR128DB48 Pin Function Shared Functionality

PA0 XTALHF1 (Crystal input) Edge connector

PA1 XTALHF2 (Crystal output) Edge connector

PA0 and PA1 can be used as GPIO To do so some hardware modifications are required

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 30

WARNINGBefore any hardware modifications are done make sure the board is disconnected from USB or externalpower

bull Disconnect the 1600 MHz crystal by cutting the two straps on the top side of the board next to the crystal (J215J216) The crystal should be disconnected when using the pin as GPIO as this might harm the crystal

bull Connect the IO lines to the edge connector by placing solder blobs on the circular solder points marked PA0and PA1 on the bottom side of the board (J213 J214)

Figure 5-6 Crystal Connection and Cut Straps

Top side Boom side

J214

J213

J216

J2151600 MHzCrystal

J217

525 On-Board Debugger ImplementationAVR128DB48 Curiosity Nano features an on-board debugger that can be used to program and debug theAVR128DB48 using UPDI The on-board debugger also includes a virtual serial port (CDC) interface over UART anddebug GPIO Both MPLABreg X IDE and Atmel Studio 7 can be used as a front-end for the on-board debugger forprogramming and debugging MPLAB Data Visualizer can be used as a front-end for the CDC and debug GPIO

5251 On-Board Debugger ConnectionsThe table below shows the connections between the target and the debugger section All connections between thetarget and the debugger are tri-stated as long as the debugger is not actively using the interface Hence since thereare little contaminations of the signals the pins can be configured to anything the user wants

For further information on how to use the capabilities of the on-board debugger see 41 On-Board DebuggerOverview

Table 5-6 On-Board Debugger Connections

AVR128DB48Pin

Debugger Pin Function Shared Functionality

PB1 CDC TX UART RX (AVR128DB48 RX line) Edge connector

PB0 CDC RX UART TX (AVR128DB48 TX line) Edge connector

UPDI DBG0 UPDI Edge connector

PB3 DBG1 LED0Debug GPIO1 Edge connector

PB2 DBG2 SW0Debug GPIO0 Edge connector

PF6 DBG3 RESET Edge connector

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 31

6 Hardware Revision History and Known IssuesThis user guide is written to provide information about the latest available revision of the board The followingsections contain information about known issues a revision history of older revisions and how older revisions differfrom the latest revision

61 Identifying Product ID and RevisionThe revision and product identifier of the AVR128DB48 Curiosity Nano Board can be found in two ways Either byutilizing the MPLABreg X IDE or Atmel Studio 7 Kit Window or by looking at the sticker on the bottom side of the PCB

By connecting AVR128DB48 Curiosity Nano to a computer with MPLABreg X IDE or Atmel Studio 7 running the KitWindow will pop up The first six digits of the serial number which is listed under kit information contain the productidentifier and revision

Tip  The Kit Window can be opened in MPLABreg X IDE through the menu bar Window gt Kit Window

The same information can be found on the sticker on the bottom side of the PCB Most boards will have the identifierand revision printed in plain text as A09-nnnnrr where ldquonnnnrdquo is the identifier and ldquorrrdquo is the revision Boards withlimited space have a sticker with only a data matrix code containing the product identifier revision and serialnumber

The serial number string has the following format

nnnnrrssssssssss

n = product identifier

r = revision

s = serial number

The product identifier for AVR128DB48 Curiosity Nano is A09‑3372

62 Revision 3AVR128DB48 silicon revision A5 or later is mounted on this revision of the board

63 Revision 2Revision 2 is the initially released board revision

AVR128DB48 silicon revision A4 is mounted on this revision of the board

AVR128DB48 Curiosity NanoHardware Revision History and Known Issues

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 32

7 Document Revision HistoryDoc Rev Date Comments

A 092020 Initial document release

AVR128DB48 Curiosity NanoDocument Revision History

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 33

8 Appendix

81 SchematicFigure 8-1 AVR128DB48 Curiosity Nano Schematic

11

22

33

44

55

66

77

88

DD

CC

BB

AA

2 of

4

AV

R12

8DB

48 C

uri

osit

y N

ano

240

820

20A

VR

128D

B48

_Cur

iosi

ty_N

ano_

Targ

et_M

CU

Sch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA

Rev

isio

n

File

P

CB

Num

ber

PC

B

Rev

isio

n

Des

ign

ed w

ith

Dra

wn

By

ML

Shee

t Titl

e

Targ

et M

CU

Eng

inee

rA

H

A08

-305

71

Size

A3

A09

-337

22

Page

D

ateA

ltium

com

GN

D

VD

DIO

2

100n

C20

1

GN

D

PA5_

SPI0

_MIS

OPA

6_SP

I0_S

CK

PA7_

SPI0

_SS

PB0_

USA

RT

3_T

XPB

1_U

SAR

T3_

RX

PB2_

SW0_

DB

G2

PB3_

LE

D0_

DB

G1

PB

4P

B5

PC

0P

C1

PC

2

PC3

PC4PC5PC6PC7PD0_AIN0_TCA0_WO0PD1_AIN1_OP0_INP_TCA0_WO1PD2_AIN2_OP0_OUT_TCA0_WO2PD3_AIN3_OP0_INNPD4_AIN4_OP1_INP

PA3_TWI0_SCL

PA1_XTALHF2

UPDI_DBG0

PF5_USART2_RX

PF3

PF

2PF

1_X

TA

L32

K2

PF0_

XT

AL

32K

1P

E3_

OP

2_IN

NP

E2_

OP

2_O

UT

PE

1_O

P2_

INP

PE

0

PD5_

AIN

5_O

P1_

OU

TPD

6_A

IN6

PD7_

AIN

7_O

P1_

INN

GN

D

VC

C_T

AR

GE

T

100n

C20

2

GN

DV

CC

_TA

RG

ET

100n

C20

0

PF1_XTAL32K2

PF0_XTAL32K1

PA2_TWI0_SDA

PA0_XTALHF1

PF4_USART2_TX

PA4_SPI0_MOSI

GN

D

PA7_

SPI0

_SS

PA6_

SPI0

_SC

KPA

5_SP

I0_M

ISO

PA4_

SPI0

_MO

SIPA

3_T

WI0

_SC

LPA

2_T

WI0

_SD

A

PC

0P

C1

PC

2P

C3

PB

4P

B5

PD7_

AIN

7_O

P1_

INN

PD6_

AIN

6

PD2_

AIN

2_O

P0_

OU

T_T

CA

0_W

O2

PD1_

AIN

1_O

P0_

INP_

TC

A0_

WO

1PD

0_A

IN0_

TC

A0_

WO

0

PD5_

AIN

5_O

P1_

OU

TPD

4_A

IN4_

OP

1_IN

P

PD3_

AIN

3_O

P0_

INN

32K

Hz

Cry

stal

PB0_

USA

RT

3_T

XPB

1_U

SAR

T3_

RX

1kR203

US

ER

LE

D

VC

C_T

AR

GE

T

PF6_DBG3

PB2_SW0_DBG2

PB3_LED0_DBG1

GN

D

USE

R B

UT

TO

N

PB3_

LE

D0_

DB

G1

PB2_

SW0_

DB

G2

PB1_

USA

RT

3_R

XPB

0_U

SAR

T3_

TX

PF4_

USA

RT

2_T

XPF

5_U

SAR

T2_

RX

PF

2P

F3

PC

4P

C5

PC

6P

C7

1kR202

YELLOWLEDSML-D12Y1WT86

2 1

D200

TS604VM1-035CR13

4 2

SW20

0

GN

DV

CC

_ED

GE

GN

DG

ND

GN

DG

ND

UPD

I_D

BG

0P

F6_

DB

G3

J209

PB3_

LE

D0_

DB

G1

PB2_

SW0_

DB

G2

AV

R12

8DB

48

22u

FC

205

VC

C_E

DG

E

GN

D

DBG0

CDC_TXCDC_RX

DBG2

DBG1

DBG3

DBG2

DE

BU

GG

ER

CO

NN

EC

TIO

NS

DBG1

DBG3DBG0

VOFF

ID_SYS

ID_SYS

VOFF

TA

RG

ET

BU

LK

VC

C_T

AR

GE

TR

ESE

T P

ull

VB

US

CD

C R

X3

CD

C T

X4

DB

G1

5

DB

G2

6

0 T

X7

1 R

X8

2 SD

A9

3 S

CL

10

4 M

OSI

11

5 M

ISO

12

6 S

CK

13

7 S

S14

GN

D15

0 (T

X)

16

1 (R

X)

17

218

319

020

GN

D24

DB

G3

54

DB

G0

53

GN

D52

VC

C51

PW

M 3

46

AD

C 2

45

AD

C 1

44

AD

C 0

43

GN

D42

438

434

GN

D33

AD

C 7

50

AD

C 6

49

AD

C 5

48

PW

M 4

47

DE

BU

GG

ER

TAR

GE

T

ID2

VO

FF

55

121

222

323

025

126

227

328

429

530

631

732

535

636

737

539

640

741

RE

SER

VE

D1

VB

US

56

CN

AN

O56

-pin

edg

e co

nnec

tor

J200

J201

J203

J205

J206

J202

J204

PF1_

XT

AL

32K

2PF

0_X

TA

L32

K1

NC

XOUT

XIN

47kR200

AV

R12

8DB

48

UPD

I

GPI

O1

GPI

O0

RE

SET

DB

G0

DB

G1

DB

G2

DB

G3

Deb

ugge

r

CD

C T

X

CD

C R

X

UA

RT

3 R

X

UA

RT

3 T

X

VT

G1

8V -

55

VPB

3

PB

2

PF

6

UP

DI

PB

0

PB

1

Nam

eP

in

PE

3_O

P2_

INN

PE

2_O

P2_

OU

TP

E1_

OP

2_IN

PP

E0

J207

J208

PF

0P

F1

PA5

1

PA6

2

PA7

3

PB0

4

PB1

5

PB2

6

PB3

7

PB4

8

PB5

9

PC0

10

PC1

11

PC2

12

PC313

VDDIO214

GND15

PC416

PC517

PC618

PC719

PD020

PD121

PD222

PD323

PD424

PD5

25

PD6

26

PD7

27

AVDD

28

GND

29

PE0

30

PE1

31

PE2

32

PE3

33

XTAL32K1PF0

34

XTAL32K2PF1

35

PF2

36

PF337

PF438

PF539

PF640

UPDI41

VDD42

GND43

XTALHF1PA044

XTALHF2PA145

PA246

PA347

PA448

AV

R12

8DB

48-I

PT

U20

0

0RR204

GN

D

VC

C_T

AR

GE

T

VDDIO2

GND

J210

J211

82p

C20

48

2pC

203

GN

DG

ND

16M

Hz

Cry

stal

J217

XHFOUT

XHFIN

J214

J213

GN

D

J215

J216

PA0_XTALHF1

PA1_XTALHF2

PA0_

XT

AL

HF

1PA

1_X

TA

LH

F2

PA0

PA1

1 2

J212 N

M

15pF

C20

615

pFC

207

13

24 16

000

MH

zV

XM

7-90

40-1

6M00

0000

0TR

XC

201

GN

D32

768

kHz

VM

K3-

9001

-32K

7680

000T

R

XC

200

CDC_TX

CDC_RX

CD

C_T

XC

DC

_RX

Cry

stal

dat

ashe

et

Ccr

ysta

l = 9

pFm

ax E

SR

= 7

0kO

hmA

ccur

acy

plusmn20p

pm

AV

R48

DB

128

data

shee

tC

xin

= 4

0pF

(ty

pica

l val

ue)

Cxo

ut =

40

pF (

typi

cal v

alue

)C

lasymp1

( (1

40

pF)+

(1

40p

F)

)asymp

20p

FM

axim

um L

oad

= 1

25p

FM

axim

um E

SR =

50k

Ohm

Est

imat

ed C

pcb

= 0

5pF

Est

imat

ed lo

adC

= 2

(C

crys

tal-

Cpa

ra -

Cpc

b)C

= 2

(9p

F -

20

pF -

05

pF)

C =

13

0pF

Sele

cted

in d

esig

n af

ter

veri

fica

tion

C=

82

pF8

2pF

NO

TE

on

UA

RT

CD

C

RX

TX

onth

ehe

ader

deno

tes

the

inpu

tout

put d

irec

tion

of th

e si

gnal

resp

ectiv

e to

its

sou

rce

CD

C T

X is

out

put f

rom

the

DE

BU

GG

ER

C

DC

RX

is in

put t

o th

e D

EB

UG

GE

R

TX

is o

utpu

t fro

m th

e T

AR

GE

T d

evic

eR

X is

inpu

t to

the

TA

RG

ET

dev

ice

NO

TE

on

I2C

No

pull

-ups

on

boar

d P

ull-

ups

shou

ld b

em

ount

ed c

lose

to s

lave

dev

ice(

s)

WA

RN

ING

M

ake

sure

tore

mov

e R

204

befo

reap

plyi

ng p

ower

to J

212

Cry

stal

dat

ashe

et

Ccr

ysta

l = 1

2pF

max

ES

R =

60O

hmA

ccur

acy

plusmn30p

pm

AV

R48

DB

128

data

shee

tC

xin

= 4

0pF

(ty

pica

l val

ue)

Cxo

ut =

40

pF (

typi

cal v

alue

)C

lasymp1

( (1

40

pF)+

(1

40p

F)

)asymp

20p

FM

axim

um L

oad

= 1

25p

FM

axim

um E

SR =

k

Ohm

Est

imat

ed C

pcb

= 0

5pF

Est

imat

ed lo

adC

= 2

(C

crys

tal-

Cpa

ra -

Cpc

b)C

= 2

(12

pF -

20

pF -

05

pF)

C =

19

0pF

Sele

cted

in d

esig

n af

ter

veri

fica

tion

C=

15p

F1

5pF

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 34

11

22

33

44

55

66

77

88

DD

CC

BB

AA

3 of

4

AV

R12

8DB

48 C

uri

osit

y N

ano

2020

-06-

26A

VR

128D

B48

_Cur

iosi

ty_N

ano_

Deb

ugge

rSch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA

Rev

isio

n

Fil

eP

CB

Num

ber

PC

B

Rev

isio

n

Des

ign

ed w

ith

Dra

wn

By

ML

Shee

t Tit

le

Deb

ugge

r

Eng

inee

rA

H

A08

-305

71

Size

A3

A09

-337

22

Page

D

ateA

ltium

com

DE

BU

GG

ER

USB

MIC

RO

-B C

ON

NE

CT

OR

GN

D

USB

D_P

USB

D_N

100n

C10

7

100n

C10

8

1kR

107

VC

C_P

3V3

SRST

STA

TU

S_L

ED

SHIE

LD

VB

US

VC

C_P

3V3

GN

D

TP

100

Test

poin

t Arr

ay

12

34

56

78

910

TC

KT

DO

TM

SV

sup

TD

IG

ND

TR

STSR

STV

Tre

fG

ND

J102

GN

D

47u

F

C10

0

DBG0

DB

G0

21

GR

EE

N L

ED

SML

-P12

MT

T86

R

D10

0

VBUS

1

D-

2

D+

3

GND

5

SHIELD1

6

SHIELD2

7

ID

4

SHIELD3

8

SHIELD4

9 MU

-MB

0142

AB

2-26

9

J105

PAD

33

PA00

1

PA01

2

PA02

3

PA03

4

GND 10VDDANA 9

PA04

5

PA05

6

PA06

7

PA07

8

PA08 11

PA09 12

PA10 13

PA11 14

PA14 15

PA15 16

PA16

17

PA17

18

PA18

19

PA19

20

PA22

21

USB_SOFPA23

22

USB_DMPA24

23

USB_DPPA25

24

PA2725 RESETN26 PA2827 GND28 VDDCORE29 VDDIN30 SWDCLKPA3031 SWDIOPA3132

SAM

D21

E18

A-M

UT

U10

0

VOUT

1

VOUT

2

GND 3

EN

4

VIN

6

NC

5

EP 7

MIC

5528

-33

YM

TU

101

VC

C_P

3V3

GN

D

USB

D_P

USB

D_N

GN

D

1uC

106

VC

C_M

CU

_CO

RE

VC

C_P

3V3

VC

C_P

3V3

22u

FC

101

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

3

VC

C_P

3V3

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

4

VC

C_P

3V3

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

5

VC

C_P

3V3

GN

D

GN

D GN

D

GN

D

VC

C_E

DG

E

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

7

VC

C_P

3V3

GN

DDBG2

DB

G3_

CT

RL

S1_0

_TX

S1_1

_RX

S0_2

_TX

DA

CV

TG

_AD

C

RE

SER

VE

D

S0_3

_CL

K

DBG0_CTRL

CD

C_T

X_C

TR

L

BO

OT

DE

BU

GG

ER

PO

WE

RS

TA

TU

S L

ED

EN

1

BYP

6

VOUT

4

GND

2

VIN

3

NCADJ

5

GND

7

MIC

5353

U10

2

100n

C10

2

GN

D

GN

D

47kR101

27kR104 G

ND

33k

R10

6

22u

F

C10

3 GN

D

1kR

108

J100

VC

C_L

EV

EL

VC

C_R

EG

UL

AT

OR

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

6

VC

C_P

3V3

GN

DDBG1

CD

C_R

X

CD

C_T

X

DBG3

DBG1_CTRL

DE

BU

GG

ER

RE

GU

LA

TO

R

REG_ENABLE

RE

G_E

NA

BL

E

47kR103

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

47kR102

47kR105

SWC

LK

GN

D

47kR100 G

ND

DB

G2

S0_0

_RX

DB

G1_

CT

RL

DB

G0_

CT

RL

DB

G3

OP

EN

DR

AIN

TA

RG

ET

AD

JUST

AB

LE

RE

GU

LA

TO

R

SRST

DE

BU

GG

ER

TE

ST

PO

INT DBG2_CTRL

VO

FF

CD

C_R

X_C

TR

L

47kR109

DB

G1

CD

C_T

X_C

TR

L

CD

C_R

X_C

TR

L

SWC

LK

REG_ADJUST

DBG2_GPIO

DB

G3_

CT

RL

DB

G2_

CT

RL

UP

DI

UPD

I

GPI

O

GPI

O

RE

SET

Sign

al

DB

G0

DB

G1

DB

G2

DB

G3

ICS

PIn

terf

ace

DA

T

CL

K

GPI

O

MC

LR

DB

G3

CD

C T

X

CD

C R

X

UA

RT

RX

UA

RT

TX

UA

RT

RX

UA

RT

TX

TA

RG

ET

TA

RG

ET

1kR

110

VBUS_ADC

1

23

DM

N65

D8L

FB

Q10

1

VC

C-

-

ID_SYS

VOFF

1kR112

VC

C_P

3V3

VT

G_A

DC

DA

C

MIC

9416

3

VIN

B2

VOUT

A1

VIN

A2

EN

C2

GND

C1

VOUT

B1

U10

8

GN

D

ID_S

YS

VT

G_E

N

VTG_EN

VBUS_ADC

SWD

IO

ID_S

YS

TP

101

GN

DSW

DIO

VO

FF

47kR111 G

ND

ID P

IN

MC

3621

3

F10

0

VC

C_V

BU

S

VC

C_V

BU

S

VC

C_V

BU

S

J101

VC

C_T

AR

GE

T

47k

R11

3

CDC_TX

CDC_RX

Prog

ram

min

g co

nnec

tor

for

fact

ory

prog

ram

min

g of

DE

BU

GG

ER

MIC

5528

V

in 2

5V

to 5

5V

Vou

t F

ixed

33

VIm

ax 5

00m

AD

ropo

ut 2

60m

V

500

mA

MIC

5353

V

in 2

6V

to 6

VV

out

12

5V to

51

VIm

ax 5

00m

AD

ropo

ut (

typi

cal)

50m

V

150m

A 1

60m

V

500

mA

Acc

urac

y 2

in

itia

lT

herm

al s

hutd

own

and

curr

ent l

imit

Max

imum

out

put v

olta

ge is

lim

ited

by

the

inpu

t vol

tage

and

the

drop

out v

olta

ge in

the

regu

lato

r(V

max

= V

in -

dro

pout

)

J100

-

Cut

-str

ap u

sed

for

full

sep

arat

ion

of ta

rget

pow

er f

rom

the

leve

l shi

fter

s an

don

-boa

rd r

egul

ator

s-

For

cur

rent

mea

sure

men

ts u

sing

the

on-b

oard

pow

er s

uppl

y th

isst

rap

mus

t be

cut a

nd a

nam

met

er c

onne

cted

acr

oss

- F

or c

urre

nt m

easu

rem

ents

usi

ng a

n ex

tern

al p

ower

sup

ply

this

str

ap c

ould

be

cut f

or m

ore

accu

rate

mea

sure

men

ts L

eaka

ge b

ack

thro

ugh

the

swit

ch is

in th

e m

icro

am

pere

ran

ge

PT

C R

eset

tabl

e fu

se

Hol

d cu

rren

t 5

00m

AT

rip

curr

ent

100

0mA

Adj

usta

ble

outp

ut a

nd li

mit

atio

ns

- T

he D

EB

UG

GE

R c

an a

djus

t the

out

put v

olta

ge o

f th

e re

gula

tor

betw

een

125

V a

nd 5

1V

to th

e ta

rget

-

The

vol

tage

out

put i

s li

mit

ed b

y th

e in

put (

US

B)

whi

ch c

an v

ary

betw

een

440

V to

52

5V-

The

leve

l shi

fter

s ha

ve a

min

imal

vol

tage

leve

l of

165

V a

nd w

ill l

imit

the

min

imum

ope

ratin

g vo

ltage

all

owed

for

the

targ

et to

sti

ll a

llow

com

mun

icat

ion

- T

he M

IC94

163

has

a m

inim

al v

olat

ege

leve

l of

170

V a

nd w

ill l

imit

the

min

imum

vol

tage

del

iver

ed to

the

targ

et

- F

irm

war

e co

nfig

urat

ion

wil

l lim

it th

e vo

ltage

ran

ge to

be

wit

hin

the

the

targ

et s

peci

fica

tion

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 35

82 Assembly DrawingFigure 8-2 AVR128DB48 Curiosity Nano Assembly Drawing Top

+

Cb

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20001 PAC20002 COC200

PAC20101 PAC20102 COC201

PAC20201 PAC20202 COC202 PAC20301

PAC20302 COC203

PAC20401

PAC20402 COC204

PAC20502

PAC20501 COC205

PAC20601

PAC20602 COC206 PAC20701

PAC20702 COC207 PAD10002 PAD10001 COD100

PAD20002

PAD20001 COD200

PAF10002

PAF10001 COF100

PAJ10002 PAJ10001 COJ100

PAJ10101 PAJ10102 COJ101

PAJ10201

PAJ10202

PAJ10203

PAJ10204

PAJ10205

PAJ10206 COJ102

PAJ10506

PAJ10507 PAJ10509

PAJ10508 PAJ105010

PAJ105011 PAJ10505

PAJ10504

PAJ10503

PAJ10502

PAJ10501

PAJ10500

COJ105

PAJ200056 PAJ200053

PAJ200028 PAJ20002 PAJ20001

PAJ200051 PAJ200050 PAJ200052 PAJ200049 PAJ200048 PAJ200047 PAJ200046 PAJ200045 PAJ200044 PAJ200043 PAJ200042 PAJ200041 PAJ200040 PAJ200039 PAJ200038 PAJ200037 PAJ200036 PAJ200035 PAJ200034 PAJ200033 PAJ200032 PAJ200031 PAJ200030 PAJ200029

PAJ20003 PAJ20004 PAJ20005 PAJ20006 PAJ20007 PAJ20008 PAJ20009 PAJ200010 PAJ200011 PAJ200012 PAJ200013 PAJ200014 PAJ200015 PAJ200016 PAJ200017 PAJ200018 PAJ200019 PAJ200020 PAJ200021 PAJ200022 PAJ200023 PAJ200026 PAJ200025 PAJ200024 PAJ200027

PAJ200054 PAJ200055 PAJ20000

COJ200

PAJ20102 PAJ20101 COJ201

PAJ20202 PAJ20201 COJ202

PAJ20302 PAJ20301 COJ203

PAJ20402 PAJ20401 COJ204

PAJ20502 PAJ20501 COJ205

PAJ20602 PAJ20601 COJ206 PAJ20702 PAJ20701 COJ207

PAJ20802 PAJ20801 COJ208

PAJ20902 PAJ20901 COJ209

PAJ21001 PAJ21002 PAJ21005 COJ210

PAJ21102 PAJ21101 PAJ21105 COJ211

PAJ21202 PAJ21201 COJ212

PAJ21301 PAJ21302 PAJ21305 COJ213

PAJ21401 PAJ21402 PAJ21405 COJ214

PAJ21502 PAJ21501 COJ215

PAJ21602 PAJ21601 COJ216 PAJ21702 PAJ21701 COJ217

COLABEL1

PAQ10101 PAQ10102 PAQ10103 PAQ10100

COQ101 PAR10002

PAR10001 COR100 PAR10101 PAR10102 COR101

PAR10202 PAR10201 COR102

PAR10302 PAR10301 COR103

PAR10401 PAR10402 COR104

PAR10502

PAR10501 COR105

PAR10601 PAR10602 COR106

PAR10702 PAR10701 COR107

PAR10801

PAR10802 COR108

PAR10901 PAR10902 COR109

PAR11001 PAR11002 COR110

PAR11101 PAR11102 COR111

PAR11201 PAR11202 COR112

PAR11302 PAR11301 COR113

PAR20001 PAR20002 COR200 PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203 PAR20401 PAR20402 COR204

PASW20003

PASW20004 PASW20002

PASW20001 COSW200

PATP10001 COTP100

PATP10101 COTP101 PAU100033

PAU100032 PAU100031 PAU100030 PAU100029 PAU100028 PAU100027 PAU100026 PAU100025 PAU100024

PAU100023

PAU100022

PAU100021

PAU100020

PAU100019

PAU100018

PAU100017 PAU100016 PAU100015 PAU100014 PAU100013 PAU100012 PAU100011 PAU100010

PAU10001

PAU10002

PAU10003

PAU10004

PAU10005

PAU10006

PAU10007

PAU10008 PAU10009

COU100

PAU10107

PAU10104 PAU10105 PAU10106

PAU10103 PAU10102 PAU10101 PAU10100 COU101 PAU10207

PAU10204 PAU10205

PAU10206

PAU10203 PAU10202

PAU10201

COU102

PAU10306

PAU10305 PAU10304 PAU10303

PAU10302 PAU10301 PAU10300

COU103

PAU10406

PAU10405 PAU10404 PAU10403

PAU10402 PAU10401 PAU10400

COU104

PAU10506

PAU10505 PAU10504 PAU10503

PAU10502 PAU10501 PAU10500

COU105

PAU10606

PAU10605 PAU10604 PAU10603

PAU10602 PAU10601 PAU10600

COU106

PAU10706

PAU10705 PAU10704 PAU10703

PAU10702 PAU10701 PAU10700

COU107

PAU1080A1 PAU1080A2

PAU1080B1 PAU1080B2

PAU1080C1 PAU1080C2 COU108

PAU20001 PAU20002 PAU20003 PAU20004 PAU20005 PAU20006 PAU20007 PAU20008 PAU20009 PAU200010 PAU200011 PAU200012 PAU200013 PAU200014 PAU200015 PAU200016 PAU200017 PAU200018 PAU200019 PAU200020 PAU200021 PAU200022 PAU200023 PAU200024 PAU200025 PAU200026 PAU200027 PAU200028 PAU200029 PAU200030 PAU200031 PAU200032 PAU200033 PAU200034 PAU200035 PAU200036

PAU200037 PAU200038 PAU200039 PAU200040 PAU200041 PAU200042 PAU200043 PAU200044 PAU200045 PAU200046 PAU200047 PAU200048

COU200

PAXC20001

PAXC20002 COXC200

PAXC20101 PAXC20102

PAXC20103 PAXC20104 COXC201

Figure 8-3 AVR128DB48 Curiosity Nano Assembly Drawing Bottom

tcR

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20001 PAC20002 COC200

PAC20101 PAC20102 COC201

PAC20201 PAC20202 COC202 PAC20301

PAC20302 COC203

PAC20401

PAC20402 COC204

PAC20502

PAC20501 COC205

PAC20601

PAC20602 COC206 PAC20701

PAC20702 COC207 PAD10002 PAD10001 COD100

PAD20002

PAD20001 COD200

PAF10002

PAF10001 COF100

PAJ10002 PAJ10001 COJ100

PAJ10101 PAJ10102 COJ101

PAJ10201

PAJ10202

PAJ10203

PAJ10204

PAJ10205

PAJ10206 COJ102

PAJ10506

PAJ10507 PAJ10509

PAJ10508 PAJ105010

PAJ105011 PAJ10505

PAJ10504

PAJ10503

PAJ10502

PAJ10501

PAJ10500

COJ105

PAJ200056 PAJ200053

PAJ200028 PAJ20002 PAJ20001

PAJ200051 PAJ200050 PAJ200052 PAJ200049 PAJ200048 PAJ200047 PAJ200046 PAJ200045 PAJ200044 PAJ200043 PAJ200042 PAJ200041 PAJ200040 PAJ200039 PAJ200038 PAJ200037 PAJ200036 PAJ200035 PAJ200034 PAJ200033 PAJ200032 PAJ200031 PAJ200030 PAJ200029

PAJ20003 PAJ20004 PAJ20005 PAJ20006 PAJ20007 PAJ20008 PAJ20009 PAJ200010 PAJ200011 PAJ200012 PAJ200013 PAJ200014 PAJ200015 PAJ200016 PAJ200017 PAJ200018 PAJ200019 PAJ200020 PAJ200021 PAJ200022 PAJ200023 PAJ200026 PAJ200025 PAJ200024 PAJ200027

PAJ200054 PAJ200055 PAJ20000

COJ200

PAJ20102 PAJ20101 COJ201

PAJ20202 PAJ20201 COJ202

PAJ20302 PAJ20301 COJ203

PAJ20402 PAJ20401 COJ204

PAJ20502 PAJ20501 COJ205

PAJ20602 PAJ20601 COJ206 PAJ20702 PAJ20701 COJ207

PAJ20802 PAJ20801 COJ208

PAJ20902 PAJ20901 COJ209

PAJ21001 PAJ21002 PAJ21005 COJ210

PAJ21102 PAJ21101 PAJ21105 COJ211

PAJ21202 PAJ21201 COJ212

PAJ21301 PAJ21302 PAJ21305 COJ213

PAJ21401 PAJ21402 PAJ21405 COJ214

PAJ21502 PAJ21501 COJ215

PAJ21602 PAJ21601 COJ216 PAJ21702 PAJ21701 COJ217

COLABEL1

PAQ10101 PAQ10102 PAQ10103 PAQ10100

COQ101 PAR10002

PAR10001 COR100 PAR10101 PAR10102 COR101

PAR10202 PAR10201 COR102

PAR10302 PAR10301 COR103

PAR10401 PAR10402 COR104

PAR10502

PAR10501 COR105

PAR10601 PAR10602 COR106

PAR10702 PAR10701 COR107

PAR10801

PAR10802 COR108

PAR10901 PAR10902 COR109

PAR11001 PAR11002 COR110

PAR11101 PAR11102 COR111

PAR11201 PAR11202 COR112

PAR11302 PAR11301 COR113

PAR20001 PAR20002 COR200 PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203 PAR20401 PAR20402 COR204

PASW20003

PASW20004 PASW20002

PASW20001 COSW200

PATP10001 COTP100

PATP10101 COTP101 PAU100033

PAU100032 PAU100031 PAU100030 PAU100029 PAU100028 PAU100027 PAU100026 PAU100025 PAU100024

PAU100023

PAU100022

PAU100021

PAU100020

PAU100019

PAU100018

PAU100017 PAU100016 PAU100015 PAU100014 PAU100013 PAU100012 PAU100011 PAU100010

PAU10001

PAU10002

PAU10003

PAU10004

PAU10005

PAU10006

PAU10007

PAU10008 PAU10009

COU100

PAU10107

PAU10104 PAU10105 PAU10106

PAU10103 PAU10102 PAU10101 PAU10100 COU101 PAU10207

PAU10204 PAU10205

PAU10206

PAU10203 PAU10202

PAU10201

COU102

PAU10306

PAU10305 PAU10304 PAU10303

PAU10302 PAU10301 PAU10300

COU103

PAU10406

PAU10405 PAU10404 PAU10403

PAU10402 PAU10401 PAU10400

COU104

PAU10506

PAU10505 PAU10504 PAU10503

PAU10502 PAU10501 PAU10500

COU105

PAU10606

PAU10605 PAU10604 PAU10603

PAU10602 PAU10601 PAU10600

COU106

PAU10706

PAU10705 PAU10704 PAU10703

PAU10702 PAU10701 PAU10700

COU107

PAU1080A1 PAU1080A2

PAU1080B1 PAU1080B2

PAU1080C1 PAU1080C2 COU108

PAU20001 PAU20002 PAU20003 PAU20004 PAU20005 PAU20006 PAU20007 PAU20008 PAU20009 PAU200010 PAU200011 PAU200012 PAU200013 PAU200014 PAU200015 PAU200016 PAU200017 PAU200018 PAU200019 PAU200020 PAU200021 PAU200022 PAU200023 PAU200024 PAU200025 PAU200026 PAU200027 PAU200028 PAU200029 PAU200030 PAU200031 PAU200032 PAU200033 PAU200034 PAU200035 PAU200036

PAU200037 PAU200038 PAU200039 PAU200040 PAU200041 PAU200042 PAU200043 PAU200044 PAU200045 PAU200046 PAU200047 PAU200048

COU200

PAXC20001

PAXC20002 COXC200

PAXC20101 PAXC20102

PAXC20103 PAXC20104 COXC201

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 36

83 Curiosity Nano Base for Click boardstrade

Figure 8-4 AVR128DB48 Curiosity Nano Pinout Mapping

US

B

DE

BU

GG

ER

AV

R1

28

DB

48

SW

0

LE

D0

PS

LE

DNC

NC

ID

ID

CDC RX

CDCRX

USART3 TX

PB0

CDC TX

CDCTX

USART3 RX

PB1

DBG1

DBG1

PB3

LED0

DBG2

DBG2

PB2

SW0

PF4

PF4

USART2 TX

PF5

PF5

USART2 RX

PA2

PA2

TWI0 SDA

PA3

PA3

TWI0 SCL

PA4

PA4

SPI0 MOSI

PA5

PA5

SPI0 MISO

PA6

PA6

SPI0 SCK

PA7

PA7

SPI0 SS

GND

GND

PB0

PB0

USART3 TX

CDC RX

PB1

PB1

USART3 RX

CDC TX

PF2

PF2

PF3

PF3

PC0

PC0

PC1

PC1

PC2

PC2

PC3

PC3

GND

GND

(PA0)

(PA0)

XTALHF1

(PA1)

(PA1)

XTALHF2

PB2

PB2

SW0

PB3

PB3

LED0

VBUS

VBUS

VOFF

VOFF

DBG3

DBG3

PF6

DBG0

DBG0

UPDI

GND

GND

VTG

VTG

PD6

PD6

AIN6

PD3

PD3

AIN3

OP0 INN

PD2

PD2

AIN2

OP0 OUT

TCA0 WO2

PD1

PD1

AIN1

OP0 INP

TCA0 WO1

PD0

PD0

AIN0

TCA0 WO0

PD7

PD7

AIN7

OP1 INN

PD5

PD5

AIN5

OP1 OUT

PD4

PD4

AIN4

OP1 INP

GND

GND

PE3

PE3

OP2 INN

PE2

PE2

OP2 OUT

PE1

PE1

OP2 INP

PE0

PE0

PC7

PC7

PC6

PC6

PC5

PC5

PC4

PC4

GND

GND

PB5

PB5

PB4

PB4

(PF1)

(PF1)

XTAL32K2

(PF0)

(PF0)

XTAL32K1

DE

BU

GG

ER

AV

R1

28

DB

48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

MVIO

OPAMP

Shared pin

AV

R1

28

DB

48

Cu

rio

sity

Na

no

1

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

2

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

3

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

Xp

lain

ed

Pro

Ext

en

sio

nE

XT

11

2

19

20

Cu

rio

sity

Na

no

Ba

sefo

r cl

ick

bo

ard

sT

M

PD4

PD0

PD6

PD3

PA7

PF5

PA6

PF4

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

PD5

PD1

PF3

PF2

PE2

PB1

PA6

PB0

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

PD7

PD2

PE1

PE0

PE3

PF5

PA6

PF4

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

ID

GND

PD5

PD7

PF3

PE1

PD1

PD2

PF2

PE3

PA2

PA3

PB1

PB0

PE2

PA4

PA5

PA6

GND

+33V

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 37

84 Disconnecting the On-board DebuggerThe on-board debugger and level shifters can be completely disconnected from the AVR128DB48

The block diagram below shows all connections between the debugger and the AVR128DB48 The rounded boxesrepresent connections to the board edge The signal names shown are also printed in silkscreen on the bottom sideof the board

To disconnect the debugger cut the straps shown in Figure 8-6

Attention  Cutting the GPIO straps to the on-board debugger will disable the virtual serial portprogramming debugging and data streaming Cutting the power supply strap will disconnect the on-boardpower supply

Tip  Any connection that is cut can be reconnected using solder Alternatively a 0Ω 0402 resistor can bemounted

Tip  When the debugger is disconnected an external debugger can be connected to holes shown in Figure 8-6 Details about connecting an external debugger are described in 46 Connecting ExternalDebuggers

Figure 8-5  On-Board Debugger Connections Block Diagram

DE

BU

GG

ER

TARGETLevel-Shift

PA04PA06PA07PA08PA16PA00PA01

USB

DIR x 5

VCC_P3V3

VBUS

VC

C_L

EV

EL

VC

C_T

AR

GE

TDBG0DBG1DBG2DBG3CDC TXCDC RX

CDC RX

CDC TX

DBG3

DBG2

DBG1

DBG0

GPIO straps

LDO

VOFF

LDO

VBUS VTG

VCC_EDGE

Power Supply strap Target Power strap

UART RXUART TX

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 38

Figure 8-6 On-Board Debugger Connection Cut Straps

GPIO straps (bottom side) Power Supply strap (top side)

85 Getting Started with IARIAR Embedded Workbenchreg for AVRreg is a proprietary high-efficiency compiler not based on GCC Programming anddebugging of AVR128DB48 Curiosity Nano is supported in IARtrade Embedded Workbench for AVR using the Atmel-ICEinterface Some initial settings must be set up in the project to get the programming and debugging to work

The following steps will explain how to get your project ready for programming and debugging

1 Make sure you have opened the project you want to configure Open the OPTIONS dialog for the project2 In the category General Options select the Target tab Select the device for the project or if not listed the

core of the device as shown in Figure 8-73 In the category Debugger select the Setup tab Select Atmel-ICE as the driver as shown in Figure 8-84 In the category Debugger gt Atmel-ICE select the Atmel-ICE 1 tab Select UPDI as the interface and

optionally select the UPDI frequency as shown in Figure 8-9

Info  If the selection of Debug Port (mentioned in step 4) is grayed out the interface is preselected andthe user can skip this configuration step

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 39

Figure 8-7 Select Target Device

Figure 8-8 Select Debugger

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 40

Figure 8-9 Configure Interface

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 41

The Microchip Website

Microchip provides online support via our website at wwwmicrochipcom This website is used to make files andinformation easily available to customers Some of the content available includes

bull Product Support ndash Data sheets and errata application notes and sample programs design resources userrsquosguides and hardware support documents latest software releases and archived software

bull General Technical Support ndash Frequently Asked Questions (FAQs) technical support requests onlinediscussion groups Microchip design partner program member listing

bull Business of Microchip ndash Product selector and ordering guides latest Microchip press releases listing ofseminars and events listings of Microchip sales offices distributors and factory representatives

Product Change Notification Service

Microchiprsquos product change notification service helps keep customers current on Microchip products Subscribers willreceive email notification whenever there are changes updates revisions or errata related to a specified productfamily or development tool of interest

To register go to wwwmicrochipcompcn and follow the registration instructions

Customer Support

Users of Microchip products can receive assistance through several channels

bull Distributor or Representativebull Local Sales Officebull Embedded Solutions Engineer (ESE)bull Technical Support

Customers should contact their distributor representative or ESE for support Local sales offices are also available tohelp customers A listing of sales offices and locations is included in this document

Technical support is available through the website at wwwmicrochipcomsupport

Microchip Devices Code Protection Feature

Note the following details of the code protection feature on Microchip devices

bull Microchip products meet the specifications contained in their particular Microchip Data Sheetbull Microchip believes that its family of products is secure when used in the intended manner and under normal

conditionsbull There are dishonest and possibly illegal methods being used in attempts to breach the code protection features

of the Microchip devices We believe that these methods require using the Microchip products in a manneroutside the operating specifications contained in Microchiprsquos Data Sheets Attempts to breach these codeprotection features most likely cannot be accomplished without violating Microchiprsquos intellectual property rights

bull Microchip is willing to work with any customer who is concerned about the integrity of its codebull Neither Microchip nor any other semiconductor manufacturer can guarantee the security of its code Code

protection does not mean that we are guaranteeing the product is ldquounbreakablerdquo Code protection is constantlyevolving We at Microchip are committed to continuously improving the code protection features of our productsAttempts to break Microchiprsquos code protection feature may be a violation of the Digital Millennium Copyright ActIf such acts allow unauthorized access to your software or other copyrighted work you may have a right to suefor relief under that Act

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 42

Legal Notice

Information contained in this publication is provided for the sole purpose of designing with and using Microchipproducts Information regarding device applications and the like is provided only for your convenience and may besuperseded by updates It is your responsibility to ensure that your application meets with your specifications

THIS INFORMATION IS PROVIDED BY MICROCHIP ldquoAS ISrdquo MICROCHIP MAKES NO REPRESENTATIONS ORWARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED WRITTEN OR ORAL STATUTORY OROTHERWISE RELATED TO THE INFORMATION INCLUDING BUT NOT LIMITED TO ANY IMPLIEDWARRANTIES OF NON-INFRINGEMENT MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSEOR WARRANTIES RELATED TO ITS CONDITION QUALITY OR PERFORMANCE

IN NO EVENT WILL MICROCHIP BE LIABLE FOR ANY INDIRECT SPECIAL PUNITIVE INCIDENTAL ORCONSEQUENTIAL LOSS DAMAGE COST OR EXPENSE OF ANY KIND WHATSOEVER RELATED TO THEINFORMATION OR ITS USE HOWEVER CAUSED EVEN IF MICROCHIP HAS BEEN ADVISED OF THEPOSSIBILITY OR THE DAMAGES ARE FORESEEABLE TO THE FULLEST EXTENT ALLOWED BY LAWMICROCHIPS TOTAL LIABILITY ON ALL CLAIMS IN ANY WAY RELATED TO THE INFORMATION OR ITS USEWILL NOT EXCEED THE AMOUNT OF FEES IF ANY THAT YOU HAVE PAID DIRECTLY TO MICROCHIP FORTHE INFORMATION Use of Microchip devices in life support andor safety applications is entirely at the buyerrsquos riskand the buyer agrees to defend indemnify and hold harmless Microchip from any and all damages claims suits orexpenses resulting from such use No licenses are conveyed implicitly or otherwise under any Microchip intellectualproperty rights unless otherwise stated

Trademarks

The Microchip name and logo the Microchip logo Adaptec AnyRate AVR AVR logo AVR Freaks BesTimeBitCloud chipKIT chipKIT logo CryptoMemory CryptoRF dsPIC FlashFlex flexPWR HELDO IGLOO JukeBloxKeeLoq Kleer LANCheck LinkMD maXStylus maXTouch MediaLB megaAVR Microsemi Microsemi logo MOSTMOST logo MPLAB OptoLyzer PackeTime PIC picoPower PICSTART PIC32 logo PolarFire Prochip DesignerQTouch SAM-BA SenGenuity SpyNIC SST SST Logo SuperFlash Symmetricom SyncServer TachyonTempTrackr TimeSource tinyAVR UNIO Vectron and XMEGA are registered trademarks of Microchip TechnologyIncorporated in the USA and other countries

APT ClockWorks The Embedded Control Solutions Company EtherSynch FlashTec Hyper Speed ControlHyperLight Load IntelliMOS Libero motorBench mTouch Powermite 3 Precision Edge ProASIC ProASIC PlusProASIC Plus logo Quiet-Wire SmartFusion SyncWorld Temux TimeCesium TimeHub TimePictra TimeProviderVite WinPath and ZL are registered trademarks of Microchip Technology Incorporated in the USA

Adjacent Key Suppression AKS Analog-for-the-Digital Age Any Capacitor AnyIn AnyOut BlueSky BodyComCodeGuard CryptoAuthentication CryptoAutomotive CryptoCompanion CryptoController dsPICDEMdsPICDEMnet Dynamic Average Matching DAM ECAN EtherGREEN In-Circuit Serial Programming ICSPINICnet Inter-Chip Connectivity JitterBlocker KleerNet KleerNet logo memBrain Mindi MiWi MPASM MPFMPLAB Certified logo MPLIB MPLINK MultiTRAK NetDetach Omniscient Code Generation PICDEMPICDEMnet PICkit PICtail PowerSmart PureSilicon QMatrix REAL ICE Ripple Blocker SAM-ICE Serial QuadIO SMART-IS SQI SuperSwitcher SuperSwitcher II Total Endurance TSHARC USBCheck VariSenseViewSpan WiperLock Wireless DNA and ZENA are trademarks of Microchip Technology Incorporated in the USAand other countries

SQTP is a service mark of Microchip Technology Incorporated in the USA

The Adaptec logo Frequency on Demand Silicon Storage Technology and Symmcom are registered trademarks ofMicrochip Technology Inc in other countries

GestIC is a registered trademark of Microchip Technology Germany II GmbH amp Co KG a subsidiary of MicrochipTechnology Inc in other countries

All other trademarks mentioned herein are property of their respective companiescopy 2020 Microchip Technology Incorporated Printed in the USA All Rights Reserved

ISBN 978-1-5224-6667-3

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 43

Quality Management SystemFor information regarding Microchiprsquos Quality Management Systems please visit wwwmicrochipcomquality

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 44

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupportwwwmicrochipcomsupportWeb AddresswwwmicrochipcomAtlantaDuluth GATel 678-957-9614Fax 678-957-1455Austin TXTel 512-257-3370BostonWestborough MATel 774-760-0087Fax 774-760-0088ChicagoItasca ILTel 630-285-0071Fax 630-285-0075DallasAddison TXTel 972-818-7423Fax 972-818-2924DetroitNovi MITel 248-848-4000Houston TXTel 281-894-5983IndianapolisNoblesville INTel 317-773-8323Fax 317-773-5453Tel 317-536-2380Los AngelesMission Viejo CATel 949-462-9523Fax 949-462-9608Tel 951-273-7800Raleigh NCTel 919-844-7510New York NYTel 631-435-6000San Jose CATel 408-735-9110Tel 408-436-4270Canada - TorontoTel 905-695-1980Fax 905-695-2078

Australia - SydneyTel 61-2-9868-6733China - BeijingTel 86-10-8569-7000China - ChengduTel 86-28-8665-5511China - ChongqingTel 86-23-8980-9588China - DongguanTel 86-769-8702-9880China - GuangzhouTel 86-20-8755-8029China - HangzhouTel 86-571-8792-8115China - Hong Kong SARTel 852-2943-5100China - NanjingTel 86-25-8473-2460China - QingdaoTel 86-532-8502-7355China - ShanghaiTel 86-21-3326-8000China - ShenyangTel 86-24-2334-2829China - ShenzhenTel 86-755-8864-2200China - SuzhouTel 86-186-6233-1526China - WuhanTel 86-27-5980-5300China - XianTel 86-29-8833-7252China - XiamenTel 86-592-2388138China - ZhuhaiTel 86-756-3210040

India - BangaloreTel 91-80-3090-4444India - New DelhiTel 91-11-4160-8631India - PuneTel 91-20-4121-0141Japan - OsakaTel 81-6-6152-7160Japan - TokyoTel 81-3-6880- 3770Korea - DaeguTel 82-53-744-4301Korea - SeoulTel 82-2-554-7200Malaysia - Kuala LumpurTel 60-3-7651-7906Malaysia - PenangTel 60-4-227-8870Philippines - ManilaTel 63-2-634-9065SingaporeTel 65-6334-8870Taiwan - Hsin ChuTel 886-3-577-8366Taiwan - KaohsiungTel 886-7-213-7830Taiwan - TaipeiTel 886-2-2508-8600Thailand - BangkokTel 66-2-694-1351Vietnam - Ho Chi MinhTel 84-28-5448-2100

Austria - WelsTel 43-7242-2244-39Fax 43-7242-2244-393Denmark - CopenhagenTel 45-4485-5910Fax 45-4485-2829Finland - EspooTel 358-9-4520-820France - ParisTel 33-1-69-53-63-20Fax 33-1-69-30-90-79Germany - GarchingTel 49-8931-9700Germany - HaanTel 49-2129-3766400Germany - HeilbronnTel 49-7131-72400Germany - KarlsruheTel 49-721-625370Germany - MunichTel 49-89-627-144-0Fax 49-89-627-144-44Germany - RosenheimTel 49-8031-354-560Israel - RarsquoananaTel 972-9-744-7705Italy - MilanTel 39-0331-742611Fax 39-0331-466781Italy - PadovaTel 39-049-7625286Netherlands - DrunenTel 31-416-690399Fax 31-416-690340Norway - TrondheimTel 47-72884388Poland - WarsawTel 48-22-3325737Romania - BucharestTel 40-21-407-87-50Spain - MadridTel 34-91-708-08-90Fax 34-91-708-08-91Sweden - GothenbergTel 46-31-704-60-40Sweden - StockholmTel 46-8-5090-4654UK - WokinghamTel 44-118-921-5800Fax 44-118-921-5820

Worldwide Sales and Service

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 45

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Board Overview
      • 2 Getting Started
        • 21 Quick Start
          • 211 Driver Installation
          • 212 Kit Window
          • 213 MPLABreg X IDE Device Family Packs
          • 214 Atmel Studio 7 Device Family Pack
            • 22 Design Documentation and Relevant Links
              • 3 Preprogrammed Application
              • 4 Curiosity Nano
                • 41 On-Board Debugger Overview
                  • 411 Debugger
                  • 412 Virtual Serial Port (CDC)
                    • 4121 Overview
                    • 4122 Operating System Support
                    • 4123 Limitations
                    • 4124 Signaling
                    • 4125 Advanced Use
                      • 413 Mass Storage Device
                        • 4131 Mass Storage Device Implementation
                        • 4132 Limitations of Drag-and-Drop Programming
                        • 4133 Special Commands
                          • 414 Data Gateway Interface (DGI)
                            • 4141 Debug GPIO
                            • 4142 Timestamping
                                • 42 Curiosity Nano Standard Pinout
                                • 43 Power Supply
                                  • 431 Target Regulator
                                  • 432 External Supply
                                  • 433 VBUS Output Pin
                                  • 434 Power Supply Exceptions
                                    • 44 Low-Power Measurement
                                    • 45 Programming External Microcontrollers
                                      • 451 Supported Devices
                                      • 452 Software Configuration
                                      • 453 Hardware Modifications
                                      • 454 Connecting to External Microcontrollers
                                        • 46 Connecting External Debuggers
                                          • 5 Hardware User Guide
                                            • 51 Connectors
                                              • 511 AVR128DB48 Curiosity Nano Pinout
                                              • 512 Using Pin Headers
                                              • 513 Multi-Voltage IO
                                              • 514 Operational Amplifiers
                                                • 52 Peripherals
                                                  • 521 LED
                                                  • 522 Mechanical Switch
                                                  • 523 32768 kHz Crystal
                                                  • 524 1600 MHz Crystal
                                                  • 525 On-Board Debugger Implementation
                                                    • 5251 On-Board Debugger Connections
                                                      • 6 Hardware Revision History and Known Issues
                                                        • 61 Identifying Product ID and Revision
                                                        • 62 Revision 3
                                                        • 63 Revision 2
                                                          • 7 Document Revision History
                                                          • 8 Appendix
                                                            • 81 Schematic
                                                            • 82 Assembly Drawing
                                                            • 83 Curiosity Nano Base for Click boardstrade
                                                            • 84 Disconnecting the On-board Debugger
                                                            • 85 Getting Started with IAR
                                                              • The Microchip Website
                                                              • Product Change Notification Service
                                                              • Customer Support
                                                              • Microchip Devices Code Protection Feature
                                                              • Legal Notice
                                                              • Trademarks
                                                              • Quality Management System
                                                              • Worldwide Sales and Service
Page 20: AVR128DB48 Curiosity Nano Hardware User Guideww1.microchip.com/downloads/en/DeviceDoc/AVR128DB48-Curiosit… · 4. Curiosity Nano Curiosity Nano is an evaluation platform of small

Tip  A 100-mil pin header can be soldered into the Target Power strap (J101) footprint for easyconnection of an ammeter Once the ammeter is no longer needed place a jumper cap on the pin header

Info  The on-board level shifters will draw a small amount of current even when they are not in use Amaximum of 2 microA can be drawn from each IO pin connected to a level shifter for a total of 10 microA Keepany IO pin connected to a level shifter in tri-state to prevent leakage All IOs connected to the on-boarddebugger are listed in 5251 On-Board Debugger Connections To prevent any leakage to the on-boardlevel shifters they can be disconnected completely as described in 84 Disconnecting the On-boardDebugger

45 Programming External MicrocontrollersThe on-board debugger on AVR128DB48 Curiosity Nano can be used to program and debug microcontrollers onexternal hardware

451 Supported DevicesAll external AVR microcontrollers with the UPDI interface can be programmed and debugged with the on-boarddebugger with Atmel Studio

External SAM microcontrollers that have a Curiosity Nano Board can be programmed and debugged with the on-board debugger with Atmel Studio

AVR128DB48 Curiosity Nano can program and debug external AVR128DB48 microcontrollers with MPLAB X IDE

452 Software ConfigurationNo software configuration is required to program and debug the same device that is mounted on the board

To program and debug a different microcontroller than what is mounted on the board Atmel Studio must beconfigured to allow free selection of devices and programming interfaces

1 Navigate to Tools gt Options through the menu system at the top of the application2 Select the Tools gt Tool settings category in the options window3 Set the Hide unsupported devices option to False

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 20

Figure 4-8 Hide Unsupported Devices

Info  Atmel Studio allows any microcontroller and interface to be selected when Hide unsupporteddevices is set to False also microcontrollers and interfaces which are not supported by the on-boarddebugger

453 Hardware ModificationsThe on-board debugger is connected to the AVR128DB48 by default These connections must be removed beforeany external microcontroller can be programmed or debugged Cut the GPIO straps shown in the figure below with asharp tool to disconnect the AVR128DB48 from the on-board debugger

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 21

Figure 4-9 Programming and Debugging Connections to Debugger

GPIO straps (bottom side)

Info  Cutting the connections to the debugger will disable programming debugging and data streamingfrom the AVR128DB48 mounted on the board

Tip  Solder in 0Ω resistors across the footprints or short-circuit them with solder to reconnect the signalsbetween the on-board debugger and the AVR128DB48

454 Connecting to External MicrocontrollersThe figure and table below show where the programming and debugging signals must be connected to program anddebug external microcontrollers The on-board debugger can supply power to the external hardware or use anexternal voltage as a reference for its level shifters Read more about the power supply in 43 Power Supply

The on-board debugger and level shifters actively drive data and clock signals (DBG0 DBG1 and DBG2) used forprogramming and debugging and in most cases the external resistor on these signals can be ignored Pull-downresistors are required on the ICSPtrade data and clock signals to debug PICreg microcontrollers

DBG3 is an open-drain connection and requires a pull-up resistor to function

AVR128DB48 Curiosity Nano has a pull-up resistor R200 connected to its RESET signal (DBG3) The location ofthe pull-up resistor is shown in the 82 Assembly Drawing in the appendix

Remember bull Connect GND and VTG to the external microcontrollerbull Tie the VOFF pin to GND if the external hardware has its own power supplybull Make sure there are pull-down resistors on the ICSP data and clock signals (DBG0 and DBG1) to

support the debugging of PIC microcontrollers

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 22

Figure 4-10 Curiosity Nano Standard Pinout

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

Table 4-4 Programming and Debugging Interfaces

Curiosity Nano Pin UPDI ICSPtrade SWD

DBG0 UPDI DATA SWDIO

DBG1 mdash CLK SWCLK

DBG2 mdash mdash mdash

DBG3 mdash MCLR RESET

46 Connecting External DebuggersEven though there is an on-board debugger external debuggers can be connected directly to the AVR128DB48Curiosity Nano to programdebug the AVR128DB48 The on-board debugger keeps all the pins connected to theAVR128DB48 and board edge in tri-state when not actively used Therefore the on-board debugger will not interferewith any external debug tools

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 23

Figure 4-11 Connecting the MPLABreg PICkittrade 4 In-Circuit DebuggerProgrammer to AVR128DB48 CuriosityNano

2345678 1

VDD

GroundDATA

2 = VDD

3 = Ground

4 = PGD

5 = Unused

6 = Unused

7 = Unused

8 = Unused

1 = Unused

MPLABreg PICkittrade 4

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 24

Figure 4-12 Connecting the Atmel-ICE to AVR128DB48 Curiosity Nano

VDD

Ground

DATA

AVRregSAM

3 = UPDI

4 = VTG

5 = Unused

6 = Unused

7 = Unused

8 = Unused

1 = Unused

2 = GND

9 = Unused

10 = Unused

Atmel-ICE

21 9

10

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

CAUTIONTo avoid contention between the external debugger and the on-board debugger do not start anyprogrammingdebug operation with the on-board debugger through MPLABreg X IDE or Atmel Studio 7 ormass storage programming while the external tool is active

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 25

5 Hardware User Guide

51 Connectors

511 AVR128DB48 Curiosity Nano PinoutAll the AVR128DB48 IO pins are accessible at the edge connectors on the board The image below shows the boardpinout For all available functions on each pin refer to the IO Multiplexing and Considerations section in theAVR128DB48 data sheet

Figure 5-1 AVR128DB48 Curiosity Nano Pinout

USB

DEBUGGER

AVR128DB48

SW0

LED0

PS LEDNC

NC

IDID

CDC RX

CD

CR

XUSART3 TXPB0

CDC TX

CD

CT

XUSART3 RXPB1

DBG1

DB

G1PB3LED0

DBG2

DB

G2PB2SW0

PF4

PF

4USART2 TX

PF5

PF

5USART2 RX

PA2

PA

2TWI0 SDA

PA3

PA

3TWI0 SCL

PA4

PA

4SPI0 MOSI

PA5

PA

5SPI0 MISO

PA6

PA

6SPI0 SCK

PA7

PA

7SPI0 SS

GND

GN

D

PB0

PB

0USART3 TXCDC RX

PB1

PB

1USART3 RXCDC TX

PF2

PF

2

PF3

PF

3

PC0

PC

0

PC1

PC

1

PC2

PC

2

PC3

PC

3

GND

GN

D

(PA0)

(PA

0)XTALHF1

(PA1)

(PA

1)XTALHF2

PB2

PB

2SW0

PB3

PB

3LED0

VBUS

VB

US

VOFF

VO

FF

DBG3

DB

G3 PF6

DBG0

DB

G0 UPDI

GND

GN

D

VTG

VT

G

PD6

PD

6 AIN6

PD3

PD

3 AIN3 OP0 INN

PD2

PD

2 AIN2 OP0 OUT TCA0 WO2

PD1

PD

1 AIN1 OP0 INP TCA0 WO1

PD0

PD

0 AIN0 TCA0 WO0

PD7

PD

7 AIN7 OP1 INN

PD5

PD

5 AIN5 OP1 OUT

PD4

PD

4 AIN4 OP1 INP

GND

GN

D

PE3

PE

3 OP2 INN

PE2

PE

2 OP2 OUT

PE1

PE

1 OP2 INP

PE0

PE

0

PC7

PC

7

PC6

PC

6

PC5

PC

5

PC4

PC

4

GND

GN

D

PB5

PB

5

PB4

PB

4

(PF1)

(PF

1) XTAL32K2

(PF0)

(PF

0) XTAL32K1

DEBUGGERAVR128DB48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

MVIO

OPAMP

Shared pin

AVR128DB48Curiosity Nano

512 Using Pin HeadersThe edge connector footprint on AVR128DB48 Curiosity Nano has a staggered design where each hole is shifted 8mil (~02 mm) off-center The hole shift allows the use of regular 100 mil pin headers on the board without solderingOnce the pin headers are firmly in place they can be used in normal applications like pin sockets and prototypingboards without any issues

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 26

Figure 5-2 Attaching Pin-Headers to the Curiostiy Nano Board

Figure 5-3 Connecting to Curiosity Nano Base for Click boardstrade

Tip  Start at one end of the pin header and gradually insert the header along the length of the boardOnce all the pins are in place use a flat surface to push them in

Tip  For applications where the pin headers will be used permanently it is still recommended to solderthem in place

Important  Once the pin headers are in place they are hard to remove by hand Use a set of pliers andcarefully remove the pin headers to avoid damage to the pin headers and PCB

513 Multi-Voltage IO

The AVR128DB48 Curiosity Nano MCU has support for Multi-Voltage IO (MVIO) AVR128DB48 MVIO pins areconnected to the edge connector at PC0-PC7 MVIO pins are capable of regular IO-pin behavior

MVIO can be configured in one of two supply modesbull Single-Supply mode All IO pins including MVIO-capable pins are powered by VCC_TARGET By default

VCC_TARGET is connected to VDDIO2 through a 0-ohm resistor (R204)bull Dual-Supply mode MVIO-capable pins are powered by an external power supply connected to VDDIO2 Non-

MVIO pins are powered by VCC_TARGET

Dual-Supply mode allows MVIO-pins to be powered at different voltages than pins powered from VCC_TARGET

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 27

WARNINGThe absolute maximum external voltage range for the AVR128DB48 is 18ndash55V Applying a higher voltagemay cause permanent damage to the board

By default AVR128DB48 Curiosity Nano board is configured for single-supply mode To use Dual-Supply mode somehardware modifications are required

WARNINGBefore any hardware modifications are done make sure the board is disconnected from USB or externalpower

bull Disconnect resistor R204 connecting VDDIO2 to VCC_TARGETbull Connect a new power supply to VDDIO2 and ground at J212bull J212 does not have reverse polarity protection Make sure to match polarity between the power supply and

J212 Positive-polarity to J212-pin 1 and negative-polarity to J212-pin 2

The resistor R204 VDDIO2 and J212 can be seen in Figure 5-4

Figure 5-4 MVIO and VDDIO2 Connections

J212 R204

WARNINGApplying an external voltage to VDDIO2 pin without removing resistor R204 may cause permanentdamage to the board

WARNINGJ212 does not have reverse polarity protection Applying voltage to the wrong pin may cause permanentdamage to the board

514 Operational AmplifiersAVR128DB48 features three internal operational amplifiers with a flexible connection scheme using analogmultiplexers and resistor ladders This allows a large number of analog signal conditioning configurations manyrequiring no external components

Table 5-1 OPAMP Pin Connections

OPAMP Poisitive Input (INP) Negative Input (INN) Output (OUT)

OP0 PD1 PD3 PD2

OP1 PD4 PD7 PD5

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 28

continuedOPAMP Poisitive Input (INP) Negative Input (INN) Output (OUT)

OP2 PE1 PE3 PE2

For information about OPAMP on the edge connector and any shared functionality see 511 AVR128DB48 CuriosityNano Pinout

52 Peripherals

521 LEDThere is one yellow user LED available on the AVR128DB48 Curiosity Nano board that can be controlled by eitherGPIO or PWM The LED can be activated by driving the connected IO line to GND

Table 5-2 LED Connection

AVR128DB48 Pin Function Shared Functionality

PB3 Yellow LED0 Edge connector On-board debugger

522 Mechanical SwitchThe AVR128DB48 Curiosity Nano board has one mechanical switch This is a generic user-configurable switchWhen the switch is pressed it will drive the IO line to ground (GND)

Tip  There is no externally connected pull-up resistor on the switch To use the switch make sure that aninternal pull-up resistor is enabled on pin PB2

Table 5-3 Mechanical Switch

AVR128DB48 Pin Description Shared Functionality

PB2 User switch (SW0) Edge connector On-board debugger

523 32768 kHz Crystal

On the AVR128DB48 Curiosity Nano board is a mounted 32768 kHz crystal of type VMK3-9001-32K7680000 thecrystal is accurate to within 20 ppm Using the External 32768 kHz Crystal Oscillator (XOSC32K) module inAVR128DB48 with the mounted 32768 kHz crystal generates a clock signal that is significantly more accurate thanthe Internal 32768 kHz Ultra Low-Power Oscillator (OSC32K) module can generate alone With the Auto-Tunefeature the 32768 kHz can be used as a reference to improve the accuracy of the internal oscillator This is an idealreference clock for the Real-Time Counter module in AVR128DB48

The 32768 kHz crystal is connected to AVR128DB48 on PF0 and PF1 which are also routed to the edge connectorthrough two solder points PF0 and PF1 are disconnected from the edge connector by default to reduce the chanceof an external signal causing contention with the crystal and to remove excessive capacitance on the lines

Next to the 32768 kHz crystal is a cut-strap (J209) which can be used to measure the oscillator safety factor This isdone by cutting the strap and adding a 0402 SMD resistor across the strap More information about oscillatorallowance and safety factor can be found in the AN2648 application note from Microchip

Cut straps and solder points can be seen in Figure 5-5

Table 5-4 32768 kHz Crystal Connections

AVR128DB48 Pin Function Shared Functionality

PF0 XTAL32K1 (Crystal input) Edge connector

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 29

continuedAVR128DB48 Pin Function Shared Functionality

PF1 XTAL32K2 (Crystal output) Edge connector

PA0 and PA1 can be used as GPIO To do so some hardware modifications are required

WARNINGBefore any hardware modifications are done make sure the board is disconnected from the USB orexternal power

bull Disconnect the 32768 kHz crystal by cutting the two straps on the top side of the board next to the crystal(J207 J208) The crystal should be disconnected when using the pin as GPIO as this might harm the crystal

bull Connect the IO lines to the edge connector by placing solder blobs on the circular solder points marked PF0and PF1 on the bottom side of the board (J210 J211)

Figure 5-5 Crystal Connection and Cut Straps

Top side Boom side

J211

J210

J207

J20832768 kHz Crystal

J209

524 1600 MHz Crystal

On the AVR128DB48 Curiosity Nano board is a mounted 1600 MHz crystal of type VXM7-9040-16M0000000 thecrystal is accurate to within 20 ppm Using the External High-Frequency Crystal Oscillator (XOSCHF) module inAVR128DB48 with the mounted 1600 MHz crystal generates a clock signal that is significantly more accurate thanthe Internal High-Frequency Oscillator (OSCHF) module

The 1600 MHz crystal is connected to AVR128DB48 on PA0 and PA1 which are also routed to the edge connectorthrough two solder points PA0 and PA1 are disconnected from the edge connector by default to reduce the chanceof an external signal causing contention with the crystal and to remove excessive capacitance on the lines

Next to the 1600 MHz crystal is a cut-strap (J217) which can be used to measure the oscillator safety factor This isdone by cutting the strap and adding a 0402 SMD resistor across the strap More information about oscillatorallowance and safety factor can be found in the AN2648 application note from Microchip

Cut straps and solder points can be seen in Figure 5-6

Table 5-5 Crystal Connections

AVR128DB48 Pin Function Shared Functionality

PA0 XTALHF1 (Crystal input) Edge connector

PA1 XTALHF2 (Crystal output) Edge connector

PA0 and PA1 can be used as GPIO To do so some hardware modifications are required

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 30

WARNINGBefore any hardware modifications are done make sure the board is disconnected from USB or externalpower

bull Disconnect the 1600 MHz crystal by cutting the two straps on the top side of the board next to the crystal (J215J216) The crystal should be disconnected when using the pin as GPIO as this might harm the crystal

bull Connect the IO lines to the edge connector by placing solder blobs on the circular solder points marked PA0and PA1 on the bottom side of the board (J213 J214)

Figure 5-6 Crystal Connection and Cut Straps

Top side Boom side

J214

J213

J216

J2151600 MHzCrystal

J217

525 On-Board Debugger ImplementationAVR128DB48 Curiosity Nano features an on-board debugger that can be used to program and debug theAVR128DB48 using UPDI The on-board debugger also includes a virtual serial port (CDC) interface over UART anddebug GPIO Both MPLABreg X IDE and Atmel Studio 7 can be used as a front-end for the on-board debugger forprogramming and debugging MPLAB Data Visualizer can be used as a front-end for the CDC and debug GPIO

5251 On-Board Debugger ConnectionsThe table below shows the connections between the target and the debugger section All connections between thetarget and the debugger are tri-stated as long as the debugger is not actively using the interface Hence since thereare little contaminations of the signals the pins can be configured to anything the user wants

For further information on how to use the capabilities of the on-board debugger see 41 On-Board DebuggerOverview

Table 5-6 On-Board Debugger Connections

AVR128DB48Pin

Debugger Pin Function Shared Functionality

PB1 CDC TX UART RX (AVR128DB48 RX line) Edge connector

PB0 CDC RX UART TX (AVR128DB48 TX line) Edge connector

UPDI DBG0 UPDI Edge connector

PB3 DBG1 LED0Debug GPIO1 Edge connector

PB2 DBG2 SW0Debug GPIO0 Edge connector

PF6 DBG3 RESET Edge connector

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 31

6 Hardware Revision History and Known IssuesThis user guide is written to provide information about the latest available revision of the board The followingsections contain information about known issues a revision history of older revisions and how older revisions differfrom the latest revision

61 Identifying Product ID and RevisionThe revision and product identifier of the AVR128DB48 Curiosity Nano Board can be found in two ways Either byutilizing the MPLABreg X IDE or Atmel Studio 7 Kit Window or by looking at the sticker on the bottom side of the PCB

By connecting AVR128DB48 Curiosity Nano to a computer with MPLABreg X IDE or Atmel Studio 7 running the KitWindow will pop up The first six digits of the serial number which is listed under kit information contain the productidentifier and revision

Tip  The Kit Window can be opened in MPLABreg X IDE through the menu bar Window gt Kit Window

The same information can be found on the sticker on the bottom side of the PCB Most boards will have the identifierand revision printed in plain text as A09-nnnnrr where ldquonnnnrdquo is the identifier and ldquorrrdquo is the revision Boards withlimited space have a sticker with only a data matrix code containing the product identifier revision and serialnumber

The serial number string has the following format

nnnnrrssssssssss

n = product identifier

r = revision

s = serial number

The product identifier for AVR128DB48 Curiosity Nano is A09‑3372

62 Revision 3AVR128DB48 silicon revision A5 or later is mounted on this revision of the board

63 Revision 2Revision 2 is the initially released board revision

AVR128DB48 silicon revision A4 is mounted on this revision of the board

AVR128DB48 Curiosity NanoHardware Revision History and Known Issues

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 32

7 Document Revision HistoryDoc Rev Date Comments

A 092020 Initial document release

AVR128DB48 Curiosity NanoDocument Revision History

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 33

8 Appendix

81 SchematicFigure 8-1 AVR128DB48 Curiosity Nano Schematic

11

22

33

44

55

66

77

88

DD

CC

BB

AA

2 of

4

AV

R12

8DB

48 C

uri

osit

y N

ano

240

820

20A

VR

128D

B48

_Cur

iosi

ty_N

ano_

Targ

et_M

CU

Sch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA

Rev

isio

n

File

P

CB

Num

ber

PC

B

Rev

isio

n

Des

ign

ed w

ith

Dra

wn

By

ML

Shee

t Titl

e

Targ

et M

CU

Eng

inee

rA

H

A08

-305

71

Size

A3

A09

-337

22

Page

D

ateA

ltium

com

GN

D

VD

DIO

2

100n

C20

1

GN

D

PA5_

SPI0

_MIS

OPA

6_SP

I0_S

CK

PA7_

SPI0

_SS

PB0_

USA

RT

3_T

XPB

1_U

SAR

T3_

RX

PB2_

SW0_

DB

G2

PB3_

LE

D0_

DB

G1

PB

4P

B5

PC

0P

C1

PC

2

PC3

PC4PC5PC6PC7PD0_AIN0_TCA0_WO0PD1_AIN1_OP0_INP_TCA0_WO1PD2_AIN2_OP0_OUT_TCA0_WO2PD3_AIN3_OP0_INNPD4_AIN4_OP1_INP

PA3_TWI0_SCL

PA1_XTALHF2

UPDI_DBG0

PF5_USART2_RX

PF3

PF

2PF

1_X

TA

L32

K2

PF0_

XT

AL

32K

1P

E3_

OP

2_IN

NP

E2_

OP

2_O

UT

PE

1_O

P2_

INP

PE

0

PD5_

AIN

5_O

P1_

OU

TPD

6_A

IN6

PD7_

AIN

7_O

P1_

INN

GN

D

VC

C_T

AR

GE

T

100n

C20

2

GN

DV

CC

_TA

RG

ET

100n

C20

0

PF1_XTAL32K2

PF0_XTAL32K1

PA2_TWI0_SDA

PA0_XTALHF1

PF4_USART2_TX

PA4_SPI0_MOSI

GN

D

PA7_

SPI0

_SS

PA6_

SPI0

_SC

KPA

5_SP

I0_M

ISO

PA4_

SPI0

_MO

SIPA

3_T

WI0

_SC

LPA

2_T

WI0

_SD

A

PC

0P

C1

PC

2P

C3

PB

4P

B5

PD7_

AIN

7_O

P1_

INN

PD6_

AIN

6

PD2_

AIN

2_O

P0_

OU

T_T

CA

0_W

O2

PD1_

AIN

1_O

P0_

INP_

TC

A0_

WO

1PD

0_A

IN0_

TC

A0_

WO

0

PD5_

AIN

5_O

P1_

OU

TPD

4_A

IN4_

OP

1_IN

P

PD3_

AIN

3_O

P0_

INN

32K

Hz

Cry

stal

PB0_

USA

RT

3_T

XPB

1_U

SAR

T3_

RX

1kR203

US

ER

LE

D

VC

C_T

AR

GE

T

PF6_DBG3

PB2_SW0_DBG2

PB3_LED0_DBG1

GN

D

USE

R B

UT

TO

N

PB3_

LE

D0_

DB

G1

PB2_

SW0_

DB

G2

PB1_

USA

RT

3_R

XPB

0_U

SAR

T3_

TX

PF4_

USA

RT

2_T

XPF

5_U

SAR

T2_

RX

PF

2P

F3

PC

4P

C5

PC

6P

C7

1kR202

YELLOWLEDSML-D12Y1WT86

2 1

D200

TS604VM1-035CR13

4 2

SW20

0

GN

DV

CC

_ED

GE

GN

DG

ND

GN

DG

ND

UPD

I_D

BG

0P

F6_

DB

G3

J209

PB3_

LE

D0_

DB

G1

PB2_

SW0_

DB

G2

AV

R12

8DB

48

22u

FC

205

VC

C_E

DG

E

GN

D

DBG0

CDC_TXCDC_RX

DBG2

DBG1

DBG3

DBG2

DE

BU

GG

ER

CO

NN

EC

TIO

NS

DBG1

DBG3DBG0

VOFF

ID_SYS

ID_SYS

VOFF

TA

RG

ET

BU

LK

VC

C_T

AR

GE

TR

ESE

T P

ull

VB

US

CD

C R

X3

CD

C T

X4

DB

G1

5

DB

G2

6

0 T

X7

1 R

X8

2 SD

A9

3 S

CL

10

4 M

OSI

11

5 M

ISO

12

6 S

CK

13

7 S

S14

GN

D15

0 (T

X)

16

1 (R

X)

17

218

319

020

GN

D24

DB

G3

54

DB

G0

53

GN

D52

VC

C51

PW

M 3

46

AD

C 2

45

AD

C 1

44

AD

C 0

43

GN

D42

438

434

GN

D33

AD

C 7

50

AD

C 6

49

AD

C 5

48

PW

M 4

47

DE

BU

GG

ER

TAR

GE

T

ID2

VO

FF

55

121

222

323

025

126

227

328

429

530

631

732

535

636

737

539

640

741

RE

SER

VE

D1

VB

US

56

CN

AN

O56

-pin

edg

e co

nnec

tor

J200

J201

J203

J205

J206

J202

J204

PF1_

XT

AL

32K

2PF

0_X

TA

L32

K1

NC

XOUT

XIN

47kR200

AV

R12

8DB

48

UPD

I

GPI

O1

GPI

O0

RE

SET

DB

G0

DB

G1

DB

G2

DB

G3

Deb

ugge

r

CD

C T

X

CD

C R

X

UA

RT

3 R

X

UA

RT

3 T

X

VT

G1

8V -

55

VPB

3

PB

2

PF

6

UP

DI

PB

0

PB

1

Nam

eP

in

PE

3_O

P2_

INN

PE

2_O

P2_

OU

TP

E1_

OP

2_IN

PP

E0

J207

J208

PF

0P

F1

PA5

1

PA6

2

PA7

3

PB0

4

PB1

5

PB2

6

PB3

7

PB4

8

PB5

9

PC0

10

PC1

11

PC2

12

PC313

VDDIO214

GND15

PC416

PC517

PC618

PC719

PD020

PD121

PD222

PD323

PD424

PD5

25

PD6

26

PD7

27

AVDD

28

GND

29

PE0

30

PE1

31

PE2

32

PE3

33

XTAL32K1PF0

34

XTAL32K2PF1

35

PF2

36

PF337

PF438

PF539

PF640

UPDI41

VDD42

GND43

XTALHF1PA044

XTALHF2PA145

PA246

PA347

PA448

AV

R12

8DB

48-I

PT

U20

0

0RR204

GN

D

VC

C_T

AR

GE

T

VDDIO2

GND

J210

J211

82p

C20

48

2pC

203

GN

DG

ND

16M

Hz

Cry

stal

J217

XHFOUT

XHFIN

J214

J213

GN

D

J215

J216

PA0_XTALHF1

PA1_XTALHF2

PA0_

XT

AL

HF

1PA

1_X

TA

LH

F2

PA0

PA1

1 2

J212 N

M

15pF

C20

615

pFC

207

13

24 16

000

MH

zV

XM

7-90

40-1

6M00

0000

0TR

XC

201

GN

D32

768

kHz

VM

K3-

9001

-32K

7680

000T

R

XC

200

CDC_TX

CDC_RX

CD

C_T

XC

DC

_RX

Cry

stal

dat

ashe

et

Ccr

ysta

l = 9

pFm

ax E

SR

= 7

0kO

hmA

ccur

acy

plusmn20p

pm

AV

R48

DB

128

data

shee

tC

xin

= 4

0pF

(ty

pica

l val

ue)

Cxo

ut =

40

pF (

typi

cal v

alue

)C

lasymp1

( (1

40

pF)+

(1

40p

F)

)asymp

20p

FM

axim

um L

oad

= 1

25p

FM

axim

um E

SR =

50k

Ohm

Est

imat

ed C

pcb

= 0

5pF

Est

imat

ed lo

adC

= 2

(C

crys

tal-

Cpa

ra -

Cpc

b)C

= 2

(9p

F -

20

pF -

05

pF)

C =

13

0pF

Sele

cted

in d

esig

n af

ter

veri

fica

tion

C=

82

pF8

2pF

NO

TE

on

UA

RT

CD

C

RX

TX

onth

ehe

ader

deno

tes

the

inpu

tout

put d

irec

tion

of th

e si

gnal

resp

ectiv

e to

its

sou

rce

CD

C T

X is

out

put f

rom

the

DE

BU

GG

ER

C

DC

RX

is in

put t

o th

e D

EB

UG

GE

R

TX

is o

utpu

t fro

m th

e T

AR

GE

T d

evic

eR

X is

inpu

t to

the

TA

RG

ET

dev

ice

NO

TE

on

I2C

No

pull

-ups

on

boar

d P

ull-

ups

shou

ld b

em

ount

ed c

lose

to s

lave

dev

ice(

s)

WA

RN

ING

M

ake

sure

tore

mov

e R

204

befo

reap

plyi

ng p

ower

to J

212

Cry

stal

dat

ashe

et

Ccr

ysta

l = 1

2pF

max

ES

R =

60O

hmA

ccur

acy

plusmn30p

pm

AV

R48

DB

128

data

shee

tC

xin

= 4

0pF

(ty

pica

l val

ue)

Cxo

ut =

40

pF (

typi

cal v

alue

)C

lasymp1

( (1

40

pF)+

(1

40p

F)

)asymp

20p

FM

axim

um L

oad

= 1

25p

FM

axim

um E

SR =

k

Ohm

Est

imat

ed C

pcb

= 0

5pF

Est

imat

ed lo

adC

= 2

(C

crys

tal-

Cpa

ra -

Cpc

b)C

= 2

(12

pF -

20

pF -

05

pF)

C =

19

0pF

Sele

cted

in d

esig

n af

ter

veri

fica

tion

C=

15p

F1

5pF

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 34

11

22

33

44

55

66

77

88

DD

CC

BB

AA

3 of

4

AV

R12

8DB

48 C

uri

osit

y N

ano

2020

-06-

26A

VR

128D

B48

_Cur

iosi

ty_N

ano_

Deb

ugge

rSch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA

Rev

isio

n

Fil

eP

CB

Num

ber

PC

B

Rev

isio

n

Des

ign

ed w

ith

Dra

wn

By

ML

Shee

t Tit

le

Deb

ugge

r

Eng

inee

rA

H

A08

-305

71

Size

A3

A09

-337

22

Page

D

ateA

ltium

com

DE

BU

GG

ER

USB

MIC

RO

-B C

ON

NE

CT

OR

GN

D

USB

D_P

USB

D_N

100n

C10

7

100n

C10

8

1kR

107

VC

C_P

3V3

SRST

STA

TU

S_L

ED

SHIE

LD

VB

US

VC

C_P

3V3

GN

D

TP

100

Test

poin

t Arr

ay

12

34

56

78

910

TC

KT

DO

TM

SV

sup

TD

IG

ND

TR

STSR

STV

Tre

fG

ND

J102

GN

D

47u

F

C10

0

DBG0

DB

G0

21

GR

EE

N L

ED

SML

-P12

MT

T86

R

D10

0

VBUS

1

D-

2

D+

3

GND

5

SHIELD1

6

SHIELD2

7

ID

4

SHIELD3

8

SHIELD4

9 MU

-MB

0142

AB

2-26

9

J105

PAD

33

PA00

1

PA01

2

PA02

3

PA03

4

GND 10VDDANA 9

PA04

5

PA05

6

PA06

7

PA07

8

PA08 11

PA09 12

PA10 13

PA11 14

PA14 15

PA15 16

PA16

17

PA17

18

PA18

19

PA19

20

PA22

21

USB_SOFPA23

22

USB_DMPA24

23

USB_DPPA25

24

PA2725 RESETN26 PA2827 GND28 VDDCORE29 VDDIN30 SWDCLKPA3031 SWDIOPA3132

SAM

D21

E18

A-M

UT

U10

0

VOUT

1

VOUT

2

GND 3

EN

4

VIN

6

NC

5

EP 7

MIC

5528

-33

YM

TU

101

VC

C_P

3V3

GN

D

USB

D_P

USB

D_N

GN

D

1uC

106

VC

C_M

CU

_CO

RE

VC

C_P

3V3

VC

C_P

3V3

22u

FC

101

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

3

VC

C_P

3V3

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

4

VC

C_P

3V3

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

5

VC

C_P

3V3

GN

D

GN

D GN

D

GN

D

VC

C_E

DG

E

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

7

VC

C_P

3V3

GN

DDBG2

DB

G3_

CT

RL

S1_0

_TX

S1_1

_RX

S0_2

_TX

DA

CV

TG

_AD

C

RE

SER

VE

D

S0_3

_CL

K

DBG0_CTRL

CD

C_T

X_C

TR

L

BO

OT

DE

BU

GG

ER

PO

WE

RS

TA

TU

S L

ED

EN

1

BYP

6

VOUT

4

GND

2

VIN

3

NCADJ

5

GND

7

MIC

5353

U10

2

100n

C10

2

GN

D

GN

D

47kR101

27kR104 G

ND

33k

R10

6

22u

F

C10

3 GN

D

1kR

108

J100

VC

C_L

EV

EL

VC

C_R

EG

UL

AT

OR

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

6

VC

C_P

3V3

GN

DDBG1

CD

C_R

X

CD

C_T

X

DBG3

DBG1_CTRL

DE

BU

GG

ER

RE

GU

LA

TO

R

REG_ENABLE

RE

G_E

NA

BL

E

47kR103

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

47kR102

47kR105

SWC

LK

GN

D

47kR100 G

ND

DB

G2

S0_0

_RX

DB

G1_

CT

RL

DB

G0_

CT

RL

DB

G3

OP

EN

DR

AIN

TA

RG

ET

AD

JUST

AB

LE

RE

GU

LA

TO

R

SRST

DE

BU

GG

ER

TE

ST

PO

INT DBG2_CTRL

VO

FF

CD

C_R

X_C

TR

L

47kR109

DB

G1

CD

C_T

X_C

TR

L

CD

C_R

X_C

TR

L

SWC

LK

REG_ADJUST

DBG2_GPIO

DB

G3_

CT

RL

DB

G2_

CT

RL

UP

DI

UPD

I

GPI

O

GPI

O

RE

SET

Sign

al

DB

G0

DB

G1

DB

G2

DB

G3

ICS

PIn

terf

ace

DA

T

CL

K

GPI

O

MC

LR

DB

G3

CD

C T

X

CD

C R

X

UA

RT

RX

UA

RT

TX

UA

RT

RX

UA

RT

TX

TA

RG

ET

TA

RG

ET

1kR

110

VBUS_ADC

1

23

DM

N65

D8L

FB

Q10

1

VC

C-

-

ID_SYS

VOFF

1kR112

VC

C_P

3V3

VT

G_A

DC

DA

C

MIC

9416

3

VIN

B2

VOUT

A1

VIN

A2

EN

C2

GND

C1

VOUT

B1

U10

8

GN

D

ID_S

YS

VT

G_E

N

VTG_EN

VBUS_ADC

SWD

IO

ID_S

YS

TP

101

GN

DSW

DIO

VO

FF

47kR111 G

ND

ID P

IN

MC

3621

3

F10

0

VC

C_V

BU

S

VC

C_V

BU

S

VC

C_V

BU

S

J101

VC

C_T

AR

GE

T

47k

R11

3

CDC_TX

CDC_RX

Prog

ram

min

g co

nnec

tor

for

fact

ory

prog

ram

min

g of

DE

BU

GG

ER

MIC

5528

V

in 2

5V

to 5

5V

Vou

t F

ixed

33

VIm

ax 5

00m

AD

ropo

ut 2

60m

V

500

mA

MIC

5353

V

in 2

6V

to 6

VV

out

12

5V to

51

VIm

ax 5

00m

AD

ropo

ut (

typi

cal)

50m

V

150m

A 1

60m

V

500

mA

Acc

urac

y 2

in

itia

lT

herm

al s

hutd

own

and

curr

ent l

imit

Max

imum

out

put v

olta

ge is

lim

ited

by

the

inpu

t vol

tage

and

the

drop

out v

olta

ge in

the

regu

lato

r(V

max

= V

in -

dro

pout

)

J100

-

Cut

-str

ap u

sed

for

full

sep

arat

ion

of ta

rget

pow

er f

rom

the

leve

l shi

fter

s an

don

-boa

rd r

egul

ator

s-

For

cur

rent

mea

sure

men

ts u

sing

the

on-b

oard

pow

er s

uppl

y th

isst

rap

mus

t be

cut a

nd a

nam

met

er c

onne

cted

acr

oss

- F

or c

urre

nt m

easu

rem

ents

usi

ng a

n ex

tern

al p

ower

sup

ply

this

str

ap c

ould

be

cut f

or m

ore

accu

rate

mea

sure

men

ts L

eaka

ge b

ack

thro

ugh

the

swit

ch is

in th

e m

icro

am

pere

ran

ge

PT

C R

eset

tabl

e fu

se

Hol

d cu

rren

t 5

00m

AT

rip

curr

ent

100

0mA

Adj

usta

ble

outp

ut a

nd li

mit

atio

ns

- T

he D

EB

UG

GE

R c

an a

djus

t the

out

put v

olta

ge o

f th

e re

gula

tor

betw

een

125

V a

nd 5

1V

to th

e ta

rget

-

The

vol

tage

out

put i

s li

mit

ed b

y th

e in

put (

US

B)

whi

ch c

an v

ary

betw

een

440

V to

52

5V-

The

leve

l shi

fter

s ha

ve a

min

imal

vol

tage

leve

l of

165

V a

nd w

ill l

imit

the

min

imum

ope

ratin

g vo

ltage

all

owed

for

the

targ

et to

sti

ll a

llow

com

mun

icat

ion

- T

he M

IC94

163

has

a m

inim

al v

olat

ege

leve

l of

170

V a

nd w

ill l

imit

the

min

imum

vol

tage

del

iver

ed to

the

targ

et

- F

irm

war

e co

nfig

urat

ion

wil

l lim

it th

e vo

ltage

ran

ge to

be

wit

hin

the

the

targ

et s

peci

fica

tion

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 35

82 Assembly DrawingFigure 8-2 AVR128DB48 Curiosity Nano Assembly Drawing Top

+

Cb

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20001 PAC20002 COC200

PAC20101 PAC20102 COC201

PAC20201 PAC20202 COC202 PAC20301

PAC20302 COC203

PAC20401

PAC20402 COC204

PAC20502

PAC20501 COC205

PAC20601

PAC20602 COC206 PAC20701

PAC20702 COC207 PAD10002 PAD10001 COD100

PAD20002

PAD20001 COD200

PAF10002

PAF10001 COF100

PAJ10002 PAJ10001 COJ100

PAJ10101 PAJ10102 COJ101

PAJ10201

PAJ10202

PAJ10203

PAJ10204

PAJ10205

PAJ10206 COJ102

PAJ10506

PAJ10507 PAJ10509

PAJ10508 PAJ105010

PAJ105011 PAJ10505

PAJ10504

PAJ10503

PAJ10502

PAJ10501

PAJ10500

COJ105

PAJ200056 PAJ200053

PAJ200028 PAJ20002 PAJ20001

PAJ200051 PAJ200050 PAJ200052 PAJ200049 PAJ200048 PAJ200047 PAJ200046 PAJ200045 PAJ200044 PAJ200043 PAJ200042 PAJ200041 PAJ200040 PAJ200039 PAJ200038 PAJ200037 PAJ200036 PAJ200035 PAJ200034 PAJ200033 PAJ200032 PAJ200031 PAJ200030 PAJ200029

PAJ20003 PAJ20004 PAJ20005 PAJ20006 PAJ20007 PAJ20008 PAJ20009 PAJ200010 PAJ200011 PAJ200012 PAJ200013 PAJ200014 PAJ200015 PAJ200016 PAJ200017 PAJ200018 PAJ200019 PAJ200020 PAJ200021 PAJ200022 PAJ200023 PAJ200026 PAJ200025 PAJ200024 PAJ200027

PAJ200054 PAJ200055 PAJ20000

COJ200

PAJ20102 PAJ20101 COJ201

PAJ20202 PAJ20201 COJ202

PAJ20302 PAJ20301 COJ203

PAJ20402 PAJ20401 COJ204

PAJ20502 PAJ20501 COJ205

PAJ20602 PAJ20601 COJ206 PAJ20702 PAJ20701 COJ207

PAJ20802 PAJ20801 COJ208

PAJ20902 PAJ20901 COJ209

PAJ21001 PAJ21002 PAJ21005 COJ210

PAJ21102 PAJ21101 PAJ21105 COJ211

PAJ21202 PAJ21201 COJ212

PAJ21301 PAJ21302 PAJ21305 COJ213

PAJ21401 PAJ21402 PAJ21405 COJ214

PAJ21502 PAJ21501 COJ215

PAJ21602 PAJ21601 COJ216 PAJ21702 PAJ21701 COJ217

COLABEL1

PAQ10101 PAQ10102 PAQ10103 PAQ10100

COQ101 PAR10002

PAR10001 COR100 PAR10101 PAR10102 COR101

PAR10202 PAR10201 COR102

PAR10302 PAR10301 COR103

PAR10401 PAR10402 COR104

PAR10502

PAR10501 COR105

PAR10601 PAR10602 COR106

PAR10702 PAR10701 COR107

PAR10801

PAR10802 COR108

PAR10901 PAR10902 COR109

PAR11001 PAR11002 COR110

PAR11101 PAR11102 COR111

PAR11201 PAR11202 COR112

PAR11302 PAR11301 COR113

PAR20001 PAR20002 COR200 PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203 PAR20401 PAR20402 COR204

PASW20003

PASW20004 PASW20002

PASW20001 COSW200

PATP10001 COTP100

PATP10101 COTP101 PAU100033

PAU100032 PAU100031 PAU100030 PAU100029 PAU100028 PAU100027 PAU100026 PAU100025 PAU100024

PAU100023

PAU100022

PAU100021

PAU100020

PAU100019

PAU100018

PAU100017 PAU100016 PAU100015 PAU100014 PAU100013 PAU100012 PAU100011 PAU100010

PAU10001

PAU10002

PAU10003

PAU10004

PAU10005

PAU10006

PAU10007

PAU10008 PAU10009

COU100

PAU10107

PAU10104 PAU10105 PAU10106

PAU10103 PAU10102 PAU10101 PAU10100 COU101 PAU10207

PAU10204 PAU10205

PAU10206

PAU10203 PAU10202

PAU10201

COU102

PAU10306

PAU10305 PAU10304 PAU10303

PAU10302 PAU10301 PAU10300

COU103

PAU10406

PAU10405 PAU10404 PAU10403

PAU10402 PAU10401 PAU10400

COU104

PAU10506

PAU10505 PAU10504 PAU10503

PAU10502 PAU10501 PAU10500

COU105

PAU10606

PAU10605 PAU10604 PAU10603

PAU10602 PAU10601 PAU10600

COU106

PAU10706

PAU10705 PAU10704 PAU10703

PAU10702 PAU10701 PAU10700

COU107

PAU1080A1 PAU1080A2

PAU1080B1 PAU1080B2

PAU1080C1 PAU1080C2 COU108

PAU20001 PAU20002 PAU20003 PAU20004 PAU20005 PAU20006 PAU20007 PAU20008 PAU20009 PAU200010 PAU200011 PAU200012 PAU200013 PAU200014 PAU200015 PAU200016 PAU200017 PAU200018 PAU200019 PAU200020 PAU200021 PAU200022 PAU200023 PAU200024 PAU200025 PAU200026 PAU200027 PAU200028 PAU200029 PAU200030 PAU200031 PAU200032 PAU200033 PAU200034 PAU200035 PAU200036

PAU200037 PAU200038 PAU200039 PAU200040 PAU200041 PAU200042 PAU200043 PAU200044 PAU200045 PAU200046 PAU200047 PAU200048

COU200

PAXC20001

PAXC20002 COXC200

PAXC20101 PAXC20102

PAXC20103 PAXC20104 COXC201

Figure 8-3 AVR128DB48 Curiosity Nano Assembly Drawing Bottom

tcR

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20001 PAC20002 COC200

PAC20101 PAC20102 COC201

PAC20201 PAC20202 COC202 PAC20301

PAC20302 COC203

PAC20401

PAC20402 COC204

PAC20502

PAC20501 COC205

PAC20601

PAC20602 COC206 PAC20701

PAC20702 COC207 PAD10002 PAD10001 COD100

PAD20002

PAD20001 COD200

PAF10002

PAF10001 COF100

PAJ10002 PAJ10001 COJ100

PAJ10101 PAJ10102 COJ101

PAJ10201

PAJ10202

PAJ10203

PAJ10204

PAJ10205

PAJ10206 COJ102

PAJ10506

PAJ10507 PAJ10509

PAJ10508 PAJ105010

PAJ105011 PAJ10505

PAJ10504

PAJ10503

PAJ10502

PAJ10501

PAJ10500

COJ105

PAJ200056 PAJ200053

PAJ200028 PAJ20002 PAJ20001

PAJ200051 PAJ200050 PAJ200052 PAJ200049 PAJ200048 PAJ200047 PAJ200046 PAJ200045 PAJ200044 PAJ200043 PAJ200042 PAJ200041 PAJ200040 PAJ200039 PAJ200038 PAJ200037 PAJ200036 PAJ200035 PAJ200034 PAJ200033 PAJ200032 PAJ200031 PAJ200030 PAJ200029

PAJ20003 PAJ20004 PAJ20005 PAJ20006 PAJ20007 PAJ20008 PAJ20009 PAJ200010 PAJ200011 PAJ200012 PAJ200013 PAJ200014 PAJ200015 PAJ200016 PAJ200017 PAJ200018 PAJ200019 PAJ200020 PAJ200021 PAJ200022 PAJ200023 PAJ200026 PAJ200025 PAJ200024 PAJ200027

PAJ200054 PAJ200055 PAJ20000

COJ200

PAJ20102 PAJ20101 COJ201

PAJ20202 PAJ20201 COJ202

PAJ20302 PAJ20301 COJ203

PAJ20402 PAJ20401 COJ204

PAJ20502 PAJ20501 COJ205

PAJ20602 PAJ20601 COJ206 PAJ20702 PAJ20701 COJ207

PAJ20802 PAJ20801 COJ208

PAJ20902 PAJ20901 COJ209

PAJ21001 PAJ21002 PAJ21005 COJ210

PAJ21102 PAJ21101 PAJ21105 COJ211

PAJ21202 PAJ21201 COJ212

PAJ21301 PAJ21302 PAJ21305 COJ213

PAJ21401 PAJ21402 PAJ21405 COJ214

PAJ21502 PAJ21501 COJ215

PAJ21602 PAJ21601 COJ216 PAJ21702 PAJ21701 COJ217

COLABEL1

PAQ10101 PAQ10102 PAQ10103 PAQ10100

COQ101 PAR10002

PAR10001 COR100 PAR10101 PAR10102 COR101

PAR10202 PAR10201 COR102

PAR10302 PAR10301 COR103

PAR10401 PAR10402 COR104

PAR10502

PAR10501 COR105

PAR10601 PAR10602 COR106

PAR10702 PAR10701 COR107

PAR10801

PAR10802 COR108

PAR10901 PAR10902 COR109

PAR11001 PAR11002 COR110

PAR11101 PAR11102 COR111

PAR11201 PAR11202 COR112

PAR11302 PAR11301 COR113

PAR20001 PAR20002 COR200 PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203 PAR20401 PAR20402 COR204

PASW20003

PASW20004 PASW20002

PASW20001 COSW200

PATP10001 COTP100

PATP10101 COTP101 PAU100033

PAU100032 PAU100031 PAU100030 PAU100029 PAU100028 PAU100027 PAU100026 PAU100025 PAU100024

PAU100023

PAU100022

PAU100021

PAU100020

PAU100019

PAU100018

PAU100017 PAU100016 PAU100015 PAU100014 PAU100013 PAU100012 PAU100011 PAU100010

PAU10001

PAU10002

PAU10003

PAU10004

PAU10005

PAU10006

PAU10007

PAU10008 PAU10009

COU100

PAU10107

PAU10104 PAU10105 PAU10106

PAU10103 PAU10102 PAU10101 PAU10100 COU101 PAU10207

PAU10204 PAU10205

PAU10206

PAU10203 PAU10202

PAU10201

COU102

PAU10306

PAU10305 PAU10304 PAU10303

PAU10302 PAU10301 PAU10300

COU103

PAU10406

PAU10405 PAU10404 PAU10403

PAU10402 PAU10401 PAU10400

COU104

PAU10506

PAU10505 PAU10504 PAU10503

PAU10502 PAU10501 PAU10500

COU105

PAU10606

PAU10605 PAU10604 PAU10603

PAU10602 PAU10601 PAU10600

COU106

PAU10706

PAU10705 PAU10704 PAU10703

PAU10702 PAU10701 PAU10700

COU107

PAU1080A1 PAU1080A2

PAU1080B1 PAU1080B2

PAU1080C1 PAU1080C2 COU108

PAU20001 PAU20002 PAU20003 PAU20004 PAU20005 PAU20006 PAU20007 PAU20008 PAU20009 PAU200010 PAU200011 PAU200012 PAU200013 PAU200014 PAU200015 PAU200016 PAU200017 PAU200018 PAU200019 PAU200020 PAU200021 PAU200022 PAU200023 PAU200024 PAU200025 PAU200026 PAU200027 PAU200028 PAU200029 PAU200030 PAU200031 PAU200032 PAU200033 PAU200034 PAU200035 PAU200036

PAU200037 PAU200038 PAU200039 PAU200040 PAU200041 PAU200042 PAU200043 PAU200044 PAU200045 PAU200046 PAU200047 PAU200048

COU200

PAXC20001

PAXC20002 COXC200

PAXC20101 PAXC20102

PAXC20103 PAXC20104 COXC201

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 36

83 Curiosity Nano Base for Click boardstrade

Figure 8-4 AVR128DB48 Curiosity Nano Pinout Mapping

US

B

DE

BU

GG

ER

AV

R1

28

DB

48

SW

0

LE

D0

PS

LE

DNC

NC

ID

ID

CDC RX

CDCRX

USART3 TX

PB0

CDC TX

CDCTX

USART3 RX

PB1

DBG1

DBG1

PB3

LED0

DBG2

DBG2

PB2

SW0

PF4

PF4

USART2 TX

PF5

PF5

USART2 RX

PA2

PA2

TWI0 SDA

PA3

PA3

TWI0 SCL

PA4

PA4

SPI0 MOSI

PA5

PA5

SPI0 MISO

PA6

PA6

SPI0 SCK

PA7

PA7

SPI0 SS

GND

GND

PB0

PB0

USART3 TX

CDC RX

PB1

PB1

USART3 RX

CDC TX

PF2

PF2

PF3

PF3

PC0

PC0

PC1

PC1

PC2

PC2

PC3

PC3

GND

GND

(PA0)

(PA0)

XTALHF1

(PA1)

(PA1)

XTALHF2

PB2

PB2

SW0

PB3

PB3

LED0

VBUS

VBUS

VOFF

VOFF

DBG3

DBG3

PF6

DBG0

DBG0

UPDI

GND

GND

VTG

VTG

PD6

PD6

AIN6

PD3

PD3

AIN3

OP0 INN

PD2

PD2

AIN2

OP0 OUT

TCA0 WO2

PD1

PD1

AIN1

OP0 INP

TCA0 WO1

PD0

PD0

AIN0

TCA0 WO0

PD7

PD7

AIN7

OP1 INN

PD5

PD5

AIN5

OP1 OUT

PD4

PD4

AIN4

OP1 INP

GND

GND

PE3

PE3

OP2 INN

PE2

PE2

OP2 OUT

PE1

PE1

OP2 INP

PE0

PE0

PC7

PC7

PC6

PC6

PC5

PC5

PC4

PC4

GND

GND

PB5

PB5

PB4

PB4

(PF1)

(PF1)

XTAL32K2

(PF0)

(PF0)

XTAL32K1

DE

BU

GG

ER

AV

R1

28

DB

48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

MVIO

OPAMP

Shared pin

AV

R1

28

DB

48

Cu

rio

sity

Na

no

1

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

2

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

3

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

Xp

lain

ed

Pro

Ext

en

sio

nE

XT

11

2

19

20

Cu

rio

sity

Na

no

Ba

sefo

r cl

ick

bo

ard

sT

M

PD4

PD0

PD6

PD3

PA7

PF5

PA6

PF4

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

PD5

PD1

PF3

PF2

PE2

PB1

PA6

PB0

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

PD7

PD2

PE1

PE0

PE3

PF5

PA6

PF4

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

ID

GND

PD5

PD7

PF3

PE1

PD1

PD2

PF2

PE3

PA2

PA3

PB1

PB0

PE2

PA4

PA5

PA6

GND

+33V

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 37

84 Disconnecting the On-board DebuggerThe on-board debugger and level shifters can be completely disconnected from the AVR128DB48

The block diagram below shows all connections between the debugger and the AVR128DB48 The rounded boxesrepresent connections to the board edge The signal names shown are also printed in silkscreen on the bottom sideof the board

To disconnect the debugger cut the straps shown in Figure 8-6

Attention  Cutting the GPIO straps to the on-board debugger will disable the virtual serial portprogramming debugging and data streaming Cutting the power supply strap will disconnect the on-boardpower supply

Tip  Any connection that is cut can be reconnected using solder Alternatively a 0Ω 0402 resistor can bemounted

Tip  When the debugger is disconnected an external debugger can be connected to holes shown in Figure 8-6 Details about connecting an external debugger are described in 46 Connecting ExternalDebuggers

Figure 8-5  On-Board Debugger Connections Block Diagram

DE

BU

GG

ER

TARGETLevel-Shift

PA04PA06PA07PA08PA16PA00PA01

USB

DIR x 5

VCC_P3V3

VBUS

VC

C_L

EV

EL

VC

C_T

AR

GE

TDBG0DBG1DBG2DBG3CDC TXCDC RX

CDC RX

CDC TX

DBG3

DBG2

DBG1

DBG0

GPIO straps

LDO

VOFF

LDO

VBUS VTG

VCC_EDGE

Power Supply strap Target Power strap

UART RXUART TX

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 38

Figure 8-6 On-Board Debugger Connection Cut Straps

GPIO straps (bottom side) Power Supply strap (top side)

85 Getting Started with IARIAR Embedded Workbenchreg for AVRreg is a proprietary high-efficiency compiler not based on GCC Programming anddebugging of AVR128DB48 Curiosity Nano is supported in IARtrade Embedded Workbench for AVR using the Atmel-ICEinterface Some initial settings must be set up in the project to get the programming and debugging to work

The following steps will explain how to get your project ready for programming and debugging

1 Make sure you have opened the project you want to configure Open the OPTIONS dialog for the project2 In the category General Options select the Target tab Select the device for the project or if not listed the

core of the device as shown in Figure 8-73 In the category Debugger select the Setup tab Select Atmel-ICE as the driver as shown in Figure 8-84 In the category Debugger gt Atmel-ICE select the Atmel-ICE 1 tab Select UPDI as the interface and

optionally select the UPDI frequency as shown in Figure 8-9

Info  If the selection of Debug Port (mentioned in step 4) is grayed out the interface is preselected andthe user can skip this configuration step

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 39

Figure 8-7 Select Target Device

Figure 8-8 Select Debugger

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 40

Figure 8-9 Configure Interface

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 41

The Microchip Website

Microchip provides online support via our website at wwwmicrochipcom This website is used to make files andinformation easily available to customers Some of the content available includes

bull Product Support ndash Data sheets and errata application notes and sample programs design resources userrsquosguides and hardware support documents latest software releases and archived software

bull General Technical Support ndash Frequently Asked Questions (FAQs) technical support requests onlinediscussion groups Microchip design partner program member listing

bull Business of Microchip ndash Product selector and ordering guides latest Microchip press releases listing ofseminars and events listings of Microchip sales offices distributors and factory representatives

Product Change Notification Service

Microchiprsquos product change notification service helps keep customers current on Microchip products Subscribers willreceive email notification whenever there are changes updates revisions or errata related to a specified productfamily or development tool of interest

To register go to wwwmicrochipcompcn and follow the registration instructions

Customer Support

Users of Microchip products can receive assistance through several channels

bull Distributor or Representativebull Local Sales Officebull Embedded Solutions Engineer (ESE)bull Technical Support

Customers should contact their distributor representative or ESE for support Local sales offices are also available tohelp customers A listing of sales offices and locations is included in this document

Technical support is available through the website at wwwmicrochipcomsupport

Microchip Devices Code Protection Feature

Note the following details of the code protection feature on Microchip devices

bull Microchip products meet the specifications contained in their particular Microchip Data Sheetbull Microchip believes that its family of products is secure when used in the intended manner and under normal

conditionsbull There are dishonest and possibly illegal methods being used in attempts to breach the code protection features

of the Microchip devices We believe that these methods require using the Microchip products in a manneroutside the operating specifications contained in Microchiprsquos Data Sheets Attempts to breach these codeprotection features most likely cannot be accomplished without violating Microchiprsquos intellectual property rights

bull Microchip is willing to work with any customer who is concerned about the integrity of its codebull Neither Microchip nor any other semiconductor manufacturer can guarantee the security of its code Code

protection does not mean that we are guaranteeing the product is ldquounbreakablerdquo Code protection is constantlyevolving We at Microchip are committed to continuously improving the code protection features of our productsAttempts to break Microchiprsquos code protection feature may be a violation of the Digital Millennium Copyright ActIf such acts allow unauthorized access to your software or other copyrighted work you may have a right to suefor relief under that Act

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 42

Legal Notice

Information contained in this publication is provided for the sole purpose of designing with and using Microchipproducts Information regarding device applications and the like is provided only for your convenience and may besuperseded by updates It is your responsibility to ensure that your application meets with your specifications

THIS INFORMATION IS PROVIDED BY MICROCHIP ldquoAS ISrdquo MICROCHIP MAKES NO REPRESENTATIONS ORWARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED WRITTEN OR ORAL STATUTORY OROTHERWISE RELATED TO THE INFORMATION INCLUDING BUT NOT LIMITED TO ANY IMPLIEDWARRANTIES OF NON-INFRINGEMENT MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSEOR WARRANTIES RELATED TO ITS CONDITION QUALITY OR PERFORMANCE

IN NO EVENT WILL MICROCHIP BE LIABLE FOR ANY INDIRECT SPECIAL PUNITIVE INCIDENTAL ORCONSEQUENTIAL LOSS DAMAGE COST OR EXPENSE OF ANY KIND WHATSOEVER RELATED TO THEINFORMATION OR ITS USE HOWEVER CAUSED EVEN IF MICROCHIP HAS BEEN ADVISED OF THEPOSSIBILITY OR THE DAMAGES ARE FORESEEABLE TO THE FULLEST EXTENT ALLOWED BY LAWMICROCHIPS TOTAL LIABILITY ON ALL CLAIMS IN ANY WAY RELATED TO THE INFORMATION OR ITS USEWILL NOT EXCEED THE AMOUNT OF FEES IF ANY THAT YOU HAVE PAID DIRECTLY TO MICROCHIP FORTHE INFORMATION Use of Microchip devices in life support andor safety applications is entirely at the buyerrsquos riskand the buyer agrees to defend indemnify and hold harmless Microchip from any and all damages claims suits orexpenses resulting from such use No licenses are conveyed implicitly or otherwise under any Microchip intellectualproperty rights unless otherwise stated

Trademarks

The Microchip name and logo the Microchip logo Adaptec AnyRate AVR AVR logo AVR Freaks BesTimeBitCloud chipKIT chipKIT logo CryptoMemory CryptoRF dsPIC FlashFlex flexPWR HELDO IGLOO JukeBloxKeeLoq Kleer LANCheck LinkMD maXStylus maXTouch MediaLB megaAVR Microsemi Microsemi logo MOSTMOST logo MPLAB OptoLyzer PackeTime PIC picoPower PICSTART PIC32 logo PolarFire Prochip DesignerQTouch SAM-BA SenGenuity SpyNIC SST SST Logo SuperFlash Symmetricom SyncServer TachyonTempTrackr TimeSource tinyAVR UNIO Vectron and XMEGA are registered trademarks of Microchip TechnologyIncorporated in the USA and other countries

APT ClockWorks The Embedded Control Solutions Company EtherSynch FlashTec Hyper Speed ControlHyperLight Load IntelliMOS Libero motorBench mTouch Powermite 3 Precision Edge ProASIC ProASIC PlusProASIC Plus logo Quiet-Wire SmartFusion SyncWorld Temux TimeCesium TimeHub TimePictra TimeProviderVite WinPath and ZL are registered trademarks of Microchip Technology Incorporated in the USA

Adjacent Key Suppression AKS Analog-for-the-Digital Age Any Capacitor AnyIn AnyOut BlueSky BodyComCodeGuard CryptoAuthentication CryptoAutomotive CryptoCompanion CryptoController dsPICDEMdsPICDEMnet Dynamic Average Matching DAM ECAN EtherGREEN In-Circuit Serial Programming ICSPINICnet Inter-Chip Connectivity JitterBlocker KleerNet KleerNet logo memBrain Mindi MiWi MPASM MPFMPLAB Certified logo MPLIB MPLINK MultiTRAK NetDetach Omniscient Code Generation PICDEMPICDEMnet PICkit PICtail PowerSmart PureSilicon QMatrix REAL ICE Ripple Blocker SAM-ICE Serial QuadIO SMART-IS SQI SuperSwitcher SuperSwitcher II Total Endurance TSHARC USBCheck VariSenseViewSpan WiperLock Wireless DNA and ZENA are trademarks of Microchip Technology Incorporated in the USAand other countries

SQTP is a service mark of Microchip Technology Incorporated in the USA

The Adaptec logo Frequency on Demand Silicon Storage Technology and Symmcom are registered trademarks ofMicrochip Technology Inc in other countries

GestIC is a registered trademark of Microchip Technology Germany II GmbH amp Co KG a subsidiary of MicrochipTechnology Inc in other countries

All other trademarks mentioned herein are property of their respective companiescopy 2020 Microchip Technology Incorporated Printed in the USA All Rights Reserved

ISBN 978-1-5224-6667-3

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 43

Quality Management SystemFor information regarding Microchiprsquos Quality Management Systems please visit wwwmicrochipcomquality

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 44

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupportwwwmicrochipcomsupportWeb AddresswwwmicrochipcomAtlantaDuluth GATel 678-957-9614Fax 678-957-1455Austin TXTel 512-257-3370BostonWestborough MATel 774-760-0087Fax 774-760-0088ChicagoItasca ILTel 630-285-0071Fax 630-285-0075DallasAddison TXTel 972-818-7423Fax 972-818-2924DetroitNovi MITel 248-848-4000Houston TXTel 281-894-5983IndianapolisNoblesville INTel 317-773-8323Fax 317-773-5453Tel 317-536-2380Los AngelesMission Viejo CATel 949-462-9523Fax 949-462-9608Tel 951-273-7800Raleigh NCTel 919-844-7510New York NYTel 631-435-6000San Jose CATel 408-735-9110Tel 408-436-4270Canada - TorontoTel 905-695-1980Fax 905-695-2078

Australia - SydneyTel 61-2-9868-6733China - BeijingTel 86-10-8569-7000China - ChengduTel 86-28-8665-5511China - ChongqingTel 86-23-8980-9588China - DongguanTel 86-769-8702-9880China - GuangzhouTel 86-20-8755-8029China - HangzhouTel 86-571-8792-8115China - Hong Kong SARTel 852-2943-5100China - NanjingTel 86-25-8473-2460China - QingdaoTel 86-532-8502-7355China - ShanghaiTel 86-21-3326-8000China - ShenyangTel 86-24-2334-2829China - ShenzhenTel 86-755-8864-2200China - SuzhouTel 86-186-6233-1526China - WuhanTel 86-27-5980-5300China - XianTel 86-29-8833-7252China - XiamenTel 86-592-2388138China - ZhuhaiTel 86-756-3210040

India - BangaloreTel 91-80-3090-4444India - New DelhiTel 91-11-4160-8631India - PuneTel 91-20-4121-0141Japan - OsakaTel 81-6-6152-7160Japan - TokyoTel 81-3-6880- 3770Korea - DaeguTel 82-53-744-4301Korea - SeoulTel 82-2-554-7200Malaysia - Kuala LumpurTel 60-3-7651-7906Malaysia - PenangTel 60-4-227-8870Philippines - ManilaTel 63-2-634-9065SingaporeTel 65-6334-8870Taiwan - Hsin ChuTel 886-3-577-8366Taiwan - KaohsiungTel 886-7-213-7830Taiwan - TaipeiTel 886-2-2508-8600Thailand - BangkokTel 66-2-694-1351Vietnam - Ho Chi MinhTel 84-28-5448-2100

Austria - WelsTel 43-7242-2244-39Fax 43-7242-2244-393Denmark - CopenhagenTel 45-4485-5910Fax 45-4485-2829Finland - EspooTel 358-9-4520-820France - ParisTel 33-1-69-53-63-20Fax 33-1-69-30-90-79Germany - GarchingTel 49-8931-9700Germany - HaanTel 49-2129-3766400Germany - HeilbronnTel 49-7131-72400Germany - KarlsruheTel 49-721-625370Germany - MunichTel 49-89-627-144-0Fax 49-89-627-144-44Germany - RosenheimTel 49-8031-354-560Israel - RarsquoananaTel 972-9-744-7705Italy - MilanTel 39-0331-742611Fax 39-0331-466781Italy - PadovaTel 39-049-7625286Netherlands - DrunenTel 31-416-690399Fax 31-416-690340Norway - TrondheimTel 47-72884388Poland - WarsawTel 48-22-3325737Romania - BucharestTel 40-21-407-87-50Spain - MadridTel 34-91-708-08-90Fax 34-91-708-08-91Sweden - GothenbergTel 46-31-704-60-40Sweden - StockholmTel 46-8-5090-4654UK - WokinghamTel 44-118-921-5800Fax 44-118-921-5820

Worldwide Sales and Service

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 45

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Board Overview
      • 2 Getting Started
        • 21 Quick Start
          • 211 Driver Installation
          • 212 Kit Window
          • 213 MPLABreg X IDE Device Family Packs
          • 214 Atmel Studio 7 Device Family Pack
            • 22 Design Documentation and Relevant Links
              • 3 Preprogrammed Application
              • 4 Curiosity Nano
                • 41 On-Board Debugger Overview
                  • 411 Debugger
                  • 412 Virtual Serial Port (CDC)
                    • 4121 Overview
                    • 4122 Operating System Support
                    • 4123 Limitations
                    • 4124 Signaling
                    • 4125 Advanced Use
                      • 413 Mass Storage Device
                        • 4131 Mass Storage Device Implementation
                        • 4132 Limitations of Drag-and-Drop Programming
                        • 4133 Special Commands
                          • 414 Data Gateway Interface (DGI)
                            • 4141 Debug GPIO
                            • 4142 Timestamping
                                • 42 Curiosity Nano Standard Pinout
                                • 43 Power Supply
                                  • 431 Target Regulator
                                  • 432 External Supply
                                  • 433 VBUS Output Pin
                                  • 434 Power Supply Exceptions
                                    • 44 Low-Power Measurement
                                    • 45 Programming External Microcontrollers
                                      • 451 Supported Devices
                                      • 452 Software Configuration
                                      • 453 Hardware Modifications
                                      • 454 Connecting to External Microcontrollers
                                        • 46 Connecting External Debuggers
                                          • 5 Hardware User Guide
                                            • 51 Connectors
                                              • 511 AVR128DB48 Curiosity Nano Pinout
                                              • 512 Using Pin Headers
                                              • 513 Multi-Voltage IO
                                              • 514 Operational Amplifiers
                                                • 52 Peripherals
                                                  • 521 LED
                                                  • 522 Mechanical Switch
                                                  • 523 32768 kHz Crystal
                                                  • 524 1600 MHz Crystal
                                                  • 525 On-Board Debugger Implementation
                                                    • 5251 On-Board Debugger Connections
                                                      • 6 Hardware Revision History and Known Issues
                                                        • 61 Identifying Product ID and Revision
                                                        • 62 Revision 3
                                                        • 63 Revision 2
                                                          • 7 Document Revision History
                                                          • 8 Appendix
                                                            • 81 Schematic
                                                            • 82 Assembly Drawing
                                                            • 83 Curiosity Nano Base for Click boardstrade
                                                            • 84 Disconnecting the On-board Debugger
                                                            • 85 Getting Started with IAR
                                                              • The Microchip Website
                                                              • Product Change Notification Service
                                                              • Customer Support
                                                              • Microchip Devices Code Protection Feature
                                                              • Legal Notice
                                                              • Trademarks
                                                              • Quality Management System
                                                              • Worldwide Sales and Service
Page 21: AVR128DB48 Curiosity Nano Hardware User Guideww1.microchip.com/downloads/en/DeviceDoc/AVR128DB48-Curiosit… · 4. Curiosity Nano Curiosity Nano is an evaluation platform of small

Figure 4-8 Hide Unsupported Devices

Info  Atmel Studio allows any microcontroller and interface to be selected when Hide unsupporteddevices is set to False also microcontrollers and interfaces which are not supported by the on-boarddebugger

453 Hardware ModificationsThe on-board debugger is connected to the AVR128DB48 by default These connections must be removed beforeany external microcontroller can be programmed or debugged Cut the GPIO straps shown in the figure below with asharp tool to disconnect the AVR128DB48 from the on-board debugger

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 21

Figure 4-9 Programming and Debugging Connections to Debugger

GPIO straps (bottom side)

Info  Cutting the connections to the debugger will disable programming debugging and data streamingfrom the AVR128DB48 mounted on the board

Tip  Solder in 0Ω resistors across the footprints or short-circuit them with solder to reconnect the signalsbetween the on-board debugger and the AVR128DB48

454 Connecting to External MicrocontrollersThe figure and table below show where the programming and debugging signals must be connected to program anddebug external microcontrollers The on-board debugger can supply power to the external hardware or use anexternal voltage as a reference for its level shifters Read more about the power supply in 43 Power Supply

The on-board debugger and level shifters actively drive data and clock signals (DBG0 DBG1 and DBG2) used forprogramming and debugging and in most cases the external resistor on these signals can be ignored Pull-downresistors are required on the ICSPtrade data and clock signals to debug PICreg microcontrollers

DBG3 is an open-drain connection and requires a pull-up resistor to function

AVR128DB48 Curiosity Nano has a pull-up resistor R200 connected to its RESET signal (DBG3) The location ofthe pull-up resistor is shown in the 82 Assembly Drawing in the appendix

Remember bull Connect GND and VTG to the external microcontrollerbull Tie the VOFF pin to GND if the external hardware has its own power supplybull Make sure there are pull-down resistors on the ICSP data and clock signals (DBG0 and DBG1) to

support the debugging of PIC microcontrollers

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 22

Figure 4-10 Curiosity Nano Standard Pinout

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

Table 4-4 Programming and Debugging Interfaces

Curiosity Nano Pin UPDI ICSPtrade SWD

DBG0 UPDI DATA SWDIO

DBG1 mdash CLK SWCLK

DBG2 mdash mdash mdash

DBG3 mdash MCLR RESET

46 Connecting External DebuggersEven though there is an on-board debugger external debuggers can be connected directly to the AVR128DB48Curiosity Nano to programdebug the AVR128DB48 The on-board debugger keeps all the pins connected to theAVR128DB48 and board edge in tri-state when not actively used Therefore the on-board debugger will not interferewith any external debug tools

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 23

Figure 4-11 Connecting the MPLABreg PICkittrade 4 In-Circuit DebuggerProgrammer to AVR128DB48 CuriosityNano

2345678 1

VDD

GroundDATA

2 = VDD

3 = Ground

4 = PGD

5 = Unused

6 = Unused

7 = Unused

8 = Unused

1 = Unused

MPLABreg PICkittrade 4

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 24

Figure 4-12 Connecting the Atmel-ICE to AVR128DB48 Curiosity Nano

VDD

Ground

DATA

AVRregSAM

3 = UPDI

4 = VTG

5 = Unused

6 = Unused

7 = Unused

8 = Unused

1 = Unused

2 = GND

9 = Unused

10 = Unused

Atmel-ICE

21 9

10

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

CAUTIONTo avoid contention between the external debugger and the on-board debugger do not start anyprogrammingdebug operation with the on-board debugger through MPLABreg X IDE or Atmel Studio 7 ormass storage programming while the external tool is active

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 25

5 Hardware User Guide

51 Connectors

511 AVR128DB48 Curiosity Nano PinoutAll the AVR128DB48 IO pins are accessible at the edge connectors on the board The image below shows the boardpinout For all available functions on each pin refer to the IO Multiplexing and Considerations section in theAVR128DB48 data sheet

Figure 5-1 AVR128DB48 Curiosity Nano Pinout

USB

DEBUGGER

AVR128DB48

SW0

LED0

PS LEDNC

NC

IDID

CDC RX

CD

CR

XUSART3 TXPB0

CDC TX

CD

CT

XUSART3 RXPB1

DBG1

DB

G1PB3LED0

DBG2

DB

G2PB2SW0

PF4

PF

4USART2 TX

PF5

PF

5USART2 RX

PA2

PA

2TWI0 SDA

PA3

PA

3TWI0 SCL

PA4

PA

4SPI0 MOSI

PA5

PA

5SPI0 MISO

PA6

PA

6SPI0 SCK

PA7

PA

7SPI0 SS

GND

GN

D

PB0

PB

0USART3 TXCDC RX

PB1

PB

1USART3 RXCDC TX

PF2

PF

2

PF3

PF

3

PC0

PC

0

PC1

PC

1

PC2

PC

2

PC3

PC

3

GND

GN

D

(PA0)

(PA

0)XTALHF1

(PA1)

(PA

1)XTALHF2

PB2

PB

2SW0

PB3

PB

3LED0

VBUS

VB

US

VOFF

VO

FF

DBG3

DB

G3 PF6

DBG0

DB

G0 UPDI

GND

GN

D

VTG

VT

G

PD6

PD

6 AIN6

PD3

PD

3 AIN3 OP0 INN

PD2

PD

2 AIN2 OP0 OUT TCA0 WO2

PD1

PD

1 AIN1 OP0 INP TCA0 WO1

PD0

PD

0 AIN0 TCA0 WO0

PD7

PD

7 AIN7 OP1 INN

PD5

PD

5 AIN5 OP1 OUT

PD4

PD

4 AIN4 OP1 INP

GND

GN

D

PE3

PE

3 OP2 INN

PE2

PE

2 OP2 OUT

PE1

PE

1 OP2 INP

PE0

PE

0

PC7

PC

7

PC6

PC

6

PC5

PC

5

PC4

PC

4

GND

GN

D

PB5

PB

5

PB4

PB

4

(PF1)

(PF

1) XTAL32K2

(PF0)

(PF

0) XTAL32K1

DEBUGGERAVR128DB48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

MVIO

OPAMP

Shared pin

AVR128DB48Curiosity Nano

512 Using Pin HeadersThe edge connector footprint on AVR128DB48 Curiosity Nano has a staggered design where each hole is shifted 8mil (~02 mm) off-center The hole shift allows the use of regular 100 mil pin headers on the board without solderingOnce the pin headers are firmly in place they can be used in normal applications like pin sockets and prototypingboards without any issues

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 26

Figure 5-2 Attaching Pin-Headers to the Curiostiy Nano Board

Figure 5-3 Connecting to Curiosity Nano Base for Click boardstrade

Tip  Start at one end of the pin header and gradually insert the header along the length of the boardOnce all the pins are in place use a flat surface to push them in

Tip  For applications where the pin headers will be used permanently it is still recommended to solderthem in place

Important  Once the pin headers are in place they are hard to remove by hand Use a set of pliers andcarefully remove the pin headers to avoid damage to the pin headers and PCB

513 Multi-Voltage IO

The AVR128DB48 Curiosity Nano MCU has support for Multi-Voltage IO (MVIO) AVR128DB48 MVIO pins areconnected to the edge connector at PC0-PC7 MVIO pins are capable of regular IO-pin behavior

MVIO can be configured in one of two supply modesbull Single-Supply mode All IO pins including MVIO-capable pins are powered by VCC_TARGET By default

VCC_TARGET is connected to VDDIO2 through a 0-ohm resistor (R204)bull Dual-Supply mode MVIO-capable pins are powered by an external power supply connected to VDDIO2 Non-

MVIO pins are powered by VCC_TARGET

Dual-Supply mode allows MVIO-pins to be powered at different voltages than pins powered from VCC_TARGET

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 27

WARNINGThe absolute maximum external voltage range for the AVR128DB48 is 18ndash55V Applying a higher voltagemay cause permanent damage to the board

By default AVR128DB48 Curiosity Nano board is configured for single-supply mode To use Dual-Supply mode somehardware modifications are required

WARNINGBefore any hardware modifications are done make sure the board is disconnected from USB or externalpower

bull Disconnect resistor R204 connecting VDDIO2 to VCC_TARGETbull Connect a new power supply to VDDIO2 and ground at J212bull J212 does not have reverse polarity protection Make sure to match polarity between the power supply and

J212 Positive-polarity to J212-pin 1 and negative-polarity to J212-pin 2

The resistor R204 VDDIO2 and J212 can be seen in Figure 5-4

Figure 5-4 MVIO and VDDIO2 Connections

J212 R204

WARNINGApplying an external voltage to VDDIO2 pin without removing resistor R204 may cause permanentdamage to the board

WARNINGJ212 does not have reverse polarity protection Applying voltage to the wrong pin may cause permanentdamage to the board

514 Operational AmplifiersAVR128DB48 features three internal operational amplifiers with a flexible connection scheme using analogmultiplexers and resistor ladders This allows a large number of analog signal conditioning configurations manyrequiring no external components

Table 5-1 OPAMP Pin Connections

OPAMP Poisitive Input (INP) Negative Input (INN) Output (OUT)

OP0 PD1 PD3 PD2

OP1 PD4 PD7 PD5

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 28

continuedOPAMP Poisitive Input (INP) Negative Input (INN) Output (OUT)

OP2 PE1 PE3 PE2

For information about OPAMP on the edge connector and any shared functionality see 511 AVR128DB48 CuriosityNano Pinout

52 Peripherals

521 LEDThere is one yellow user LED available on the AVR128DB48 Curiosity Nano board that can be controlled by eitherGPIO or PWM The LED can be activated by driving the connected IO line to GND

Table 5-2 LED Connection

AVR128DB48 Pin Function Shared Functionality

PB3 Yellow LED0 Edge connector On-board debugger

522 Mechanical SwitchThe AVR128DB48 Curiosity Nano board has one mechanical switch This is a generic user-configurable switchWhen the switch is pressed it will drive the IO line to ground (GND)

Tip  There is no externally connected pull-up resistor on the switch To use the switch make sure that aninternal pull-up resistor is enabled on pin PB2

Table 5-3 Mechanical Switch

AVR128DB48 Pin Description Shared Functionality

PB2 User switch (SW0) Edge connector On-board debugger

523 32768 kHz Crystal

On the AVR128DB48 Curiosity Nano board is a mounted 32768 kHz crystal of type VMK3-9001-32K7680000 thecrystal is accurate to within 20 ppm Using the External 32768 kHz Crystal Oscillator (XOSC32K) module inAVR128DB48 with the mounted 32768 kHz crystal generates a clock signal that is significantly more accurate thanthe Internal 32768 kHz Ultra Low-Power Oscillator (OSC32K) module can generate alone With the Auto-Tunefeature the 32768 kHz can be used as a reference to improve the accuracy of the internal oscillator This is an idealreference clock for the Real-Time Counter module in AVR128DB48

The 32768 kHz crystal is connected to AVR128DB48 on PF0 and PF1 which are also routed to the edge connectorthrough two solder points PF0 and PF1 are disconnected from the edge connector by default to reduce the chanceof an external signal causing contention with the crystal and to remove excessive capacitance on the lines

Next to the 32768 kHz crystal is a cut-strap (J209) which can be used to measure the oscillator safety factor This isdone by cutting the strap and adding a 0402 SMD resistor across the strap More information about oscillatorallowance and safety factor can be found in the AN2648 application note from Microchip

Cut straps and solder points can be seen in Figure 5-5

Table 5-4 32768 kHz Crystal Connections

AVR128DB48 Pin Function Shared Functionality

PF0 XTAL32K1 (Crystal input) Edge connector

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 29

continuedAVR128DB48 Pin Function Shared Functionality

PF1 XTAL32K2 (Crystal output) Edge connector

PA0 and PA1 can be used as GPIO To do so some hardware modifications are required

WARNINGBefore any hardware modifications are done make sure the board is disconnected from the USB orexternal power

bull Disconnect the 32768 kHz crystal by cutting the two straps on the top side of the board next to the crystal(J207 J208) The crystal should be disconnected when using the pin as GPIO as this might harm the crystal

bull Connect the IO lines to the edge connector by placing solder blobs on the circular solder points marked PF0and PF1 on the bottom side of the board (J210 J211)

Figure 5-5 Crystal Connection and Cut Straps

Top side Boom side

J211

J210

J207

J20832768 kHz Crystal

J209

524 1600 MHz Crystal

On the AVR128DB48 Curiosity Nano board is a mounted 1600 MHz crystal of type VXM7-9040-16M0000000 thecrystal is accurate to within 20 ppm Using the External High-Frequency Crystal Oscillator (XOSCHF) module inAVR128DB48 with the mounted 1600 MHz crystal generates a clock signal that is significantly more accurate thanthe Internal High-Frequency Oscillator (OSCHF) module

The 1600 MHz crystal is connected to AVR128DB48 on PA0 and PA1 which are also routed to the edge connectorthrough two solder points PA0 and PA1 are disconnected from the edge connector by default to reduce the chanceof an external signal causing contention with the crystal and to remove excessive capacitance on the lines

Next to the 1600 MHz crystal is a cut-strap (J217) which can be used to measure the oscillator safety factor This isdone by cutting the strap and adding a 0402 SMD resistor across the strap More information about oscillatorallowance and safety factor can be found in the AN2648 application note from Microchip

Cut straps and solder points can be seen in Figure 5-6

Table 5-5 Crystal Connections

AVR128DB48 Pin Function Shared Functionality

PA0 XTALHF1 (Crystal input) Edge connector

PA1 XTALHF2 (Crystal output) Edge connector

PA0 and PA1 can be used as GPIO To do so some hardware modifications are required

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 30

WARNINGBefore any hardware modifications are done make sure the board is disconnected from USB or externalpower

bull Disconnect the 1600 MHz crystal by cutting the two straps on the top side of the board next to the crystal (J215J216) The crystal should be disconnected when using the pin as GPIO as this might harm the crystal

bull Connect the IO lines to the edge connector by placing solder blobs on the circular solder points marked PA0and PA1 on the bottom side of the board (J213 J214)

Figure 5-6 Crystal Connection and Cut Straps

Top side Boom side

J214

J213

J216

J2151600 MHzCrystal

J217

525 On-Board Debugger ImplementationAVR128DB48 Curiosity Nano features an on-board debugger that can be used to program and debug theAVR128DB48 using UPDI The on-board debugger also includes a virtual serial port (CDC) interface over UART anddebug GPIO Both MPLABreg X IDE and Atmel Studio 7 can be used as a front-end for the on-board debugger forprogramming and debugging MPLAB Data Visualizer can be used as a front-end for the CDC and debug GPIO

5251 On-Board Debugger ConnectionsThe table below shows the connections between the target and the debugger section All connections between thetarget and the debugger are tri-stated as long as the debugger is not actively using the interface Hence since thereare little contaminations of the signals the pins can be configured to anything the user wants

For further information on how to use the capabilities of the on-board debugger see 41 On-Board DebuggerOverview

Table 5-6 On-Board Debugger Connections

AVR128DB48Pin

Debugger Pin Function Shared Functionality

PB1 CDC TX UART RX (AVR128DB48 RX line) Edge connector

PB0 CDC RX UART TX (AVR128DB48 TX line) Edge connector

UPDI DBG0 UPDI Edge connector

PB3 DBG1 LED0Debug GPIO1 Edge connector

PB2 DBG2 SW0Debug GPIO0 Edge connector

PF6 DBG3 RESET Edge connector

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 31

6 Hardware Revision History and Known IssuesThis user guide is written to provide information about the latest available revision of the board The followingsections contain information about known issues a revision history of older revisions and how older revisions differfrom the latest revision

61 Identifying Product ID and RevisionThe revision and product identifier of the AVR128DB48 Curiosity Nano Board can be found in two ways Either byutilizing the MPLABreg X IDE or Atmel Studio 7 Kit Window or by looking at the sticker on the bottom side of the PCB

By connecting AVR128DB48 Curiosity Nano to a computer with MPLABreg X IDE or Atmel Studio 7 running the KitWindow will pop up The first six digits of the serial number which is listed under kit information contain the productidentifier and revision

Tip  The Kit Window can be opened in MPLABreg X IDE through the menu bar Window gt Kit Window

The same information can be found on the sticker on the bottom side of the PCB Most boards will have the identifierand revision printed in plain text as A09-nnnnrr where ldquonnnnrdquo is the identifier and ldquorrrdquo is the revision Boards withlimited space have a sticker with only a data matrix code containing the product identifier revision and serialnumber

The serial number string has the following format

nnnnrrssssssssss

n = product identifier

r = revision

s = serial number

The product identifier for AVR128DB48 Curiosity Nano is A09‑3372

62 Revision 3AVR128DB48 silicon revision A5 or later is mounted on this revision of the board

63 Revision 2Revision 2 is the initially released board revision

AVR128DB48 silicon revision A4 is mounted on this revision of the board

AVR128DB48 Curiosity NanoHardware Revision History and Known Issues

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 32

7 Document Revision HistoryDoc Rev Date Comments

A 092020 Initial document release

AVR128DB48 Curiosity NanoDocument Revision History

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 33

8 Appendix

81 SchematicFigure 8-1 AVR128DB48 Curiosity Nano Schematic

11

22

33

44

55

66

77

88

DD

CC

BB

AA

2 of

4

AV

R12

8DB

48 C

uri

osit

y N

ano

240

820

20A

VR

128D

B48

_Cur

iosi

ty_N

ano_

Targ

et_M

CU

Sch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA

Rev

isio

n

File

P

CB

Num

ber

PC

B

Rev

isio

n

Des

ign

ed w

ith

Dra

wn

By

ML

Shee

t Titl

e

Targ

et M

CU

Eng

inee

rA

H

A08

-305

71

Size

A3

A09

-337

22

Page

D

ateA

ltium

com

GN

D

VD

DIO

2

100n

C20

1

GN

D

PA5_

SPI0

_MIS

OPA

6_SP

I0_S

CK

PA7_

SPI0

_SS

PB0_

USA

RT

3_T

XPB

1_U

SAR

T3_

RX

PB2_

SW0_

DB

G2

PB3_

LE

D0_

DB

G1

PB

4P

B5

PC

0P

C1

PC

2

PC3

PC4PC5PC6PC7PD0_AIN0_TCA0_WO0PD1_AIN1_OP0_INP_TCA0_WO1PD2_AIN2_OP0_OUT_TCA0_WO2PD3_AIN3_OP0_INNPD4_AIN4_OP1_INP

PA3_TWI0_SCL

PA1_XTALHF2

UPDI_DBG0

PF5_USART2_RX

PF3

PF

2PF

1_X

TA

L32

K2

PF0_

XT

AL

32K

1P

E3_

OP

2_IN

NP

E2_

OP

2_O

UT

PE

1_O

P2_

INP

PE

0

PD5_

AIN

5_O

P1_

OU

TPD

6_A

IN6

PD7_

AIN

7_O

P1_

INN

GN

D

VC

C_T

AR

GE

T

100n

C20

2

GN

DV

CC

_TA

RG

ET

100n

C20

0

PF1_XTAL32K2

PF0_XTAL32K1

PA2_TWI0_SDA

PA0_XTALHF1

PF4_USART2_TX

PA4_SPI0_MOSI

GN

D

PA7_

SPI0

_SS

PA6_

SPI0

_SC

KPA

5_SP

I0_M

ISO

PA4_

SPI0

_MO

SIPA

3_T

WI0

_SC

LPA

2_T

WI0

_SD

A

PC

0P

C1

PC

2P

C3

PB

4P

B5

PD7_

AIN

7_O

P1_

INN

PD6_

AIN

6

PD2_

AIN

2_O

P0_

OU

T_T

CA

0_W

O2

PD1_

AIN

1_O

P0_

INP_

TC

A0_

WO

1PD

0_A

IN0_

TC

A0_

WO

0

PD5_

AIN

5_O

P1_

OU

TPD

4_A

IN4_

OP

1_IN

P

PD3_

AIN

3_O

P0_

INN

32K

Hz

Cry

stal

PB0_

USA

RT

3_T

XPB

1_U

SAR

T3_

RX

1kR203

US

ER

LE

D

VC

C_T

AR

GE

T

PF6_DBG3

PB2_SW0_DBG2

PB3_LED0_DBG1

GN

D

USE

R B

UT

TO

N

PB3_

LE

D0_

DB

G1

PB2_

SW0_

DB

G2

PB1_

USA

RT

3_R

XPB

0_U

SAR

T3_

TX

PF4_

USA

RT

2_T

XPF

5_U

SAR

T2_

RX

PF

2P

F3

PC

4P

C5

PC

6P

C7

1kR202

YELLOWLEDSML-D12Y1WT86

2 1

D200

TS604VM1-035CR13

4 2

SW20

0

GN

DV

CC

_ED

GE

GN

DG

ND

GN

DG

ND

UPD

I_D

BG

0P

F6_

DB

G3

J209

PB3_

LE

D0_

DB

G1

PB2_

SW0_

DB

G2

AV

R12

8DB

48

22u

FC

205

VC

C_E

DG

E

GN

D

DBG0

CDC_TXCDC_RX

DBG2

DBG1

DBG3

DBG2

DE

BU

GG

ER

CO

NN

EC

TIO

NS

DBG1

DBG3DBG0

VOFF

ID_SYS

ID_SYS

VOFF

TA

RG

ET

BU

LK

VC

C_T

AR

GE

TR

ESE

T P

ull

VB

US

CD

C R

X3

CD

C T

X4

DB

G1

5

DB

G2

6

0 T

X7

1 R

X8

2 SD

A9

3 S

CL

10

4 M

OSI

11

5 M

ISO

12

6 S

CK

13

7 S

S14

GN

D15

0 (T

X)

16

1 (R

X)

17

218

319

020

GN

D24

DB

G3

54

DB

G0

53

GN

D52

VC

C51

PW

M 3

46

AD

C 2

45

AD

C 1

44

AD

C 0

43

GN

D42

438

434

GN

D33

AD

C 7

50

AD

C 6

49

AD

C 5

48

PW

M 4

47

DE

BU

GG

ER

TAR

GE

T

ID2

VO

FF

55

121

222

323

025

126

227

328

429

530

631

732

535

636

737

539

640

741

RE

SER

VE

D1

VB

US

56

CN

AN

O56

-pin

edg

e co

nnec

tor

J200

J201

J203

J205

J206

J202

J204

PF1_

XT

AL

32K

2PF

0_X

TA

L32

K1

NC

XOUT

XIN

47kR200

AV

R12

8DB

48

UPD

I

GPI

O1

GPI

O0

RE

SET

DB

G0

DB

G1

DB

G2

DB

G3

Deb

ugge

r

CD

C T

X

CD

C R

X

UA

RT

3 R

X

UA

RT

3 T

X

VT

G1

8V -

55

VPB

3

PB

2

PF

6

UP

DI

PB

0

PB

1

Nam

eP

in

PE

3_O

P2_

INN

PE

2_O

P2_

OU

TP

E1_

OP

2_IN

PP

E0

J207

J208

PF

0P

F1

PA5

1

PA6

2

PA7

3

PB0

4

PB1

5

PB2

6

PB3

7

PB4

8

PB5

9

PC0

10

PC1

11

PC2

12

PC313

VDDIO214

GND15

PC416

PC517

PC618

PC719

PD020

PD121

PD222

PD323

PD424

PD5

25

PD6

26

PD7

27

AVDD

28

GND

29

PE0

30

PE1

31

PE2

32

PE3

33

XTAL32K1PF0

34

XTAL32K2PF1

35

PF2

36

PF337

PF438

PF539

PF640

UPDI41

VDD42

GND43

XTALHF1PA044

XTALHF2PA145

PA246

PA347

PA448

AV

R12

8DB

48-I

PT

U20

0

0RR204

GN

D

VC

C_T

AR

GE

T

VDDIO2

GND

J210

J211

82p

C20

48

2pC

203

GN

DG

ND

16M

Hz

Cry

stal

J217

XHFOUT

XHFIN

J214

J213

GN

D

J215

J216

PA0_XTALHF1

PA1_XTALHF2

PA0_

XT

AL

HF

1PA

1_X

TA

LH

F2

PA0

PA1

1 2

J212 N

M

15pF

C20

615

pFC

207

13

24 16

000

MH

zV

XM

7-90

40-1

6M00

0000

0TR

XC

201

GN

D32

768

kHz

VM

K3-

9001

-32K

7680

000T

R

XC

200

CDC_TX

CDC_RX

CD

C_T

XC

DC

_RX

Cry

stal

dat

ashe

et

Ccr

ysta

l = 9

pFm

ax E

SR

= 7

0kO

hmA

ccur

acy

plusmn20p

pm

AV

R48

DB

128

data

shee

tC

xin

= 4

0pF

(ty

pica

l val

ue)

Cxo

ut =

40

pF (

typi

cal v

alue

)C

lasymp1

( (1

40

pF)+

(1

40p

F)

)asymp

20p

FM

axim

um L

oad

= 1

25p

FM

axim

um E

SR =

50k

Ohm

Est

imat

ed C

pcb

= 0

5pF

Est

imat

ed lo

adC

= 2

(C

crys

tal-

Cpa

ra -

Cpc

b)C

= 2

(9p

F -

20

pF -

05

pF)

C =

13

0pF

Sele

cted

in d

esig

n af

ter

veri

fica

tion

C=

82

pF8

2pF

NO

TE

on

UA

RT

CD

C

RX

TX

onth

ehe

ader

deno

tes

the

inpu

tout

put d

irec

tion

of th

e si

gnal

resp

ectiv

e to

its

sou

rce

CD

C T

X is

out

put f

rom

the

DE

BU

GG

ER

C

DC

RX

is in

put t

o th

e D

EB

UG

GE

R

TX

is o

utpu

t fro

m th

e T

AR

GE

T d

evic

eR

X is

inpu

t to

the

TA

RG

ET

dev

ice

NO

TE

on

I2C

No

pull

-ups

on

boar

d P

ull-

ups

shou

ld b

em

ount

ed c

lose

to s

lave

dev

ice(

s)

WA

RN

ING

M

ake

sure

tore

mov

e R

204

befo

reap

plyi

ng p

ower

to J

212

Cry

stal

dat

ashe

et

Ccr

ysta

l = 1

2pF

max

ES

R =

60O

hmA

ccur

acy

plusmn30p

pm

AV

R48

DB

128

data

shee

tC

xin

= 4

0pF

(ty

pica

l val

ue)

Cxo

ut =

40

pF (

typi

cal v

alue

)C

lasymp1

( (1

40

pF)+

(1

40p

F)

)asymp

20p

FM

axim

um L

oad

= 1

25p

FM

axim

um E

SR =

k

Ohm

Est

imat

ed C

pcb

= 0

5pF

Est

imat

ed lo

adC

= 2

(C

crys

tal-

Cpa

ra -

Cpc

b)C

= 2

(12

pF -

20

pF -

05

pF)

C =

19

0pF

Sele

cted

in d

esig

n af

ter

veri

fica

tion

C=

15p

F1

5pF

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 34

11

22

33

44

55

66

77

88

DD

CC

BB

AA

3 of

4

AV

R12

8DB

48 C

uri

osit

y N

ano

2020

-06-

26A

VR

128D

B48

_Cur

iosi

ty_N

ano_

Deb

ugge

rSch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA

Rev

isio

n

Fil

eP

CB

Num

ber

PC

B

Rev

isio

n

Des

ign

ed w

ith

Dra

wn

By

ML

Shee

t Tit

le

Deb

ugge

r

Eng

inee

rA

H

A08

-305

71

Size

A3

A09

-337

22

Page

D

ateA

ltium

com

DE

BU

GG

ER

USB

MIC

RO

-B C

ON

NE

CT

OR

GN

D

USB

D_P

USB

D_N

100n

C10

7

100n

C10

8

1kR

107

VC

C_P

3V3

SRST

STA

TU

S_L

ED

SHIE

LD

VB

US

VC

C_P

3V3

GN

D

TP

100

Test

poin

t Arr

ay

12

34

56

78

910

TC

KT

DO

TM

SV

sup

TD

IG

ND

TR

STSR

STV

Tre

fG

ND

J102

GN

D

47u

F

C10

0

DBG0

DB

G0

21

GR

EE

N L

ED

SML

-P12

MT

T86

R

D10

0

VBUS

1

D-

2

D+

3

GND

5

SHIELD1

6

SHIELD2

7

ID

4

SHIELD3

8

SHIELD4

9 MU

-MB

0142

AB

2-26

9

J105

PAD

33

PA00

1

PA01

2

PA02

3

PA03

4

GND 10VDDANA 9

PA04

5

PA05

6

PA06

7

PA07

8

PA08 11

PA09 12

PA10 13

PA11 14

PA14 15

PA15 16

PA16

17

PA17

18

PA18

19

PA19

20

PA22

21

USB_SOFPA23

22

USB_DMPA24

23

USB_DPPA25

24

PA2725 RESETN26 PA2827 GND28 VDDCORE29 VDDIN30 SWDCLKPA3031 SWDIOPA3132

SAM

D21

E18

A-M

UT

U10

0

VOUT

1

VOUT

2

GND 3

EN

4

VIN

6

NC

5

EP 7

MIC

5528

-33

YM

TU

101

VC

C_P

3V3

GN

D

USB

D_P

USB

D_N

GN

D

1uC

106

VC

C_M

CU

_CO

RE

VC

C_P

3V3

VC

C_P

3V3

22u

FC

101

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

3

VC

C_P

3V3

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

4

VC

C_P

3V3

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

5

VC

C_P

3V3

GN

D

GN

D GN

D

GN

D

VC

C_E

DG

E

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

7

VC

C_P

3V3

GN

DDBG2

DB

G3_

CT

RL

S1_0

_TX

S1_1

_RX

S0_2

_TX

DA

CV

TG

_AD

C

RE

SER

VE

D

S0_3

_CL

K

DBG0_CTRL

CD

C_T

X_C

TR

L

BO

OT

DE

BU

GG

ER

PO

WE

RS

TA

TU

S L

ED

EN

1

BYP

6

VOUT

4

GND

2

VIN

3

NCADJ

5

GND

7

MIC

5353

U10

2

100n

C10

2

GN

D

GN

D

47kR101

27kR104 G

ND

33k

R10

6

22u

F

C10

3 GN

D

1kR

108

J100

VC

C_L

EV

EL

VC

C_R

EG

UL

AT

OR

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

6

VC

C_P

3V3

GN

DDBG1

CD

C_R

X

CD

C_T

X

DBG3

DBG1_CTRL

DE

BU

GG

ER

RE

GU

LA

TO

R

REG_ENABLE

RE

G_E

NA

BL

E

47kR103

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

47kR102

47kR105

SWC

LK

GN

D

47kR100 G

ND

DB

G2

S0_0

_RX

DB

G1_

CT

RL

DB

G0_

CT

RL

DB

G3

OP

EN

DR

AIN

TA

RG

ET

AD

JUST

AB

LE

RE

GU

LA

TO

R

SRST

DE

BU

GG

ER

TE

ST

PO

INT DBG2_CTRL

VO

FF

CD

C_R

X_C

TR

L

47kR109

DB

G1

CD

C_T

X_C

TR

L

CD

C_R

X_C

TR

L

SWC

LK

REG_ADJUST

DBG2_GPIO

DB

G3_

CT

RL

DB

G2_

CT

RL

UP

DI

UPD

I

GPI

O

GPI

O

RE

SET

Sign

al

DB

G0

DB

G1

DB

G2

DB

G3

ICS

PIn

terf

ace

DA

T

CL

K

GPI

O

MC

LR

DB

G3

CD

C T

X

CD

C R

X

UA

RT

RX

UA

RT

TX

UA

RT

RX

UA

RT

TX

TA

RG

ET

TA

RG

ET

1kR

110

VBUS_ADC

1

23

DM

N65

D8L

FB

Q10

1

VC

C-

-

ID_SYS

VOFF

1kR112

VC

C_P

3V3

VT

G_A

DC

DA

C

MIC

9416

3

VIN

B2

VOUT

A1

VIN

A2

EN

C2

GND

C1

VOUT

B1

U10

8

GN

D

ID_S

YS

VT

G_E

N

VTG_EN

VBUS_ADC

SWD

IO

ID_S

YS

TP

101

GN

DSW

DIO

VO

FF

47kR111 G

ND

ID P

IN

MC

3621

3

F10

0

VC

C_V

BU

S

VC

C_V

BU

S

VC

C_V

BU

S

J101

VC

C_T

AR

GE

T

47k

R11

3

CDC_TX

CDC_RX

Prog

ram

min

g co

nnec

tor

for

fact

ory

prog

ram

min

g of

DE

BU

GG

ER

MIC

5528

V

in 2

5V

to 5

5V

Vou

t F

ixed

33

VIm

ax 5

00m

AD

ropo

ut 2

60m

V

500

mA

MIC

5353

V

in 2

6V

to 6

VV

out

12

5V to

51

VIm

ax 5

00m

AD

ropo

ut (

typi

cal)

50m

V

150m

A 1

60m

V

500

mA

Acc

urac

y 2

in

itia

lT

herm

al s

hutd

own

and

curr

ent l

imit

Max

imum

out

put v

olta

ge is

lim

ited

by

the

inpu

t vol

tage

and

the

drop

out v

olta

ge in

the

regu

lato

r(V

max

= V

in -

dro

pout

)

J100

-

Cut

-str

ap u

sed

for

full

sep

arat

ion

of ta

rget

pow

er f

rom

the

leve

l shi

fter

s an

don

-boa

rd r

egul

ator

s-

For

cur

rent

mea

sure

men

ts u

sing

the

on-b

oard

pow

er s

uppl

y th

isst

rap

mus

t be

cut a

nd a

nam

met

er c

onne

cted

acr

oss

- F

or c

urre

nt m

easu

rem

ents

usi

ng a

n ex

tern

al p

ower

sup

ply

this

str

ap c

ould

be

cut f

or m

ore

accu

rate

mea

sure

men

ts L

eaka

ge b

ack

thro

ugh

the

swit

ch is

in th

e m

icro

am

pere

ran

ge

PT

C R

eset

tabl

e fu

se

Hol

d cu

rren

t 5

00m

AT

rip

curr

ent

100

0mA

Adj

usta

ble

outp

ut a

nd li

mit

atio

ns

- T

he D

EB

UG

GE

R c

an a

djus

t the

out

put v

olta

ge o

f th

e re

gula

tor

betw

een

125

V a

nd 5

1V

to th

e ta

rget

-

The

vol

tage

out

put i

s li

mit

ed b

y th

e in

put (

US

B)

whi

ch c

an v

ary

betw

een

440

V to

52

5V-

The

leve

l shi

fter

s ha

ve a

min

imal

vol

tage

leve

l of

165

V a

nd w

ill l

imit

the

min

imum

ope

ratin

g vo

ltage

all

owed

for

the

targ

et to

sti

ll a

llow

com

mun

icat

ion

- T

he M

IC94

163

has

a m

inim

al v

olat

ege

leve

l of

170

V a

nd w

ill l

imit

the

min

imum

vol

tage

del

iver

ed to

the

targ

et

- F

irm

war

e co

nfig

urat

ion

wil

l lim

it th

e vo

ltage

ran

ge to

be

wit

hin

the

the

targ

et s

peci

fica

tion

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 35

82 Assembly DrawingFigure 8-2 AVR128DB48 Curiosity Nano Assembly Drawing Top

+

Cb

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20001 PAC20002 COC200

PAC20101 PAC20102 COC201

PAC20201 PAC20202 COC202 PAC20301

PAC20302 COC203

PAC20401

PAC20402 COC204

PAC20502

PAC20501 COC205

PAC20601

PAC20602 COC206 PAC20701

PAC20702 COC207 PAD10002 PAD10001 COD100

PAD20002

PAD20001 COD200

PAF10002

PAF10001 COF100

PAJ10002 PAJ10001 COJ100

PAJ10101 PAJ10102 COJ101

PAJ10201

PAJ10202

PAJ10203

PAJ10204

PAJ10205

PAJ10206 COJ102

PAJ10506

PAJ10507 PAJ10509

PAJ10508 PAJ105010

PAJ105011 PAJ10505

PAJ10504

PAJ10503

PAJ10502

PAJ10501

PAJ10500

COJ105

PAJ200056 PAJ200053

PAJ200028 PAJ20002 PAJ20001

PAJ200051 PAJ200050 PAJ200052 PAJ200049 PAJ200048 PAJ200047 PAJ200046 PAJ200045 PAJ200044 PAJ200043 PAJ200042 PAJ200041 PAJ200040 PAJ200039 PAJ200038 PAJ200037 PAJ200036 PAJ200035 PAJ200034 PAJ200033 PAJ200032 PAJ200031 PAJ200030 PAJ200029

PAJ20003 PAJ20004 PAJ20005 PAJ20006 PAJ20007 PAJ20008 PAJ20009 PAJ200010 PAJ200011 PAJ200012 PAJ200013 PAJ200014 PAJ200015 PAJ200016 PAJ200017 PAJ200018 PAJ200019 PAJ200020 PAJ200021 PAJ200022 PAJ200023 PAJ200026 PAJ200025 PAJ200024 PAJ200027

PAJ200054 PAJ200055 PAJ20000

COJ200

PAJ20102 PAJ20101 COJ201

PAJ20202 PAJ20201 COJ202

PAJ20302 PAJ20301 COJ203

PAJ20402 PAJ20401 COJ204

PAJ20502 PAJ20501 COJ205

PAJ20602 PAJ20601 COJ206 PAJ20702 PAJ20701 COJ207

PAJ20802 PAJ20801 COJ208

PAJ20902 PAJ20901 COJ209

PAJ21001 PAJ21002 PAJ21005 COJ210

PAJ21102 PAJ21101 PAJ21105 COJ211

PAJ21202 PAJ21201 COJ212

PAJ21301 PAJ21302 PAJ21305 COJ213

PAJ21401 PAJ21402 PAJ21405 COJ214

PAJ21502 PAJ21501 COJ215

PAJ21602 PAJ21601 COJ216 PAJ21702 PAJ21701 COJ217

COLABEL1

PAQ10101 PAQ10102 PAQ10103 PAQ10100

COQ101 PAR10002

PAR10001 COR100 PAR10101 PAR10102 COR101

PAR10202 PAR10201 COR102

PAR10302 PAR10301 COR103

PAR10401 PAR10402 COR104

PAR10502

PAR10501 COR105

PAR10601 PAR10602 COR106

PAR10702 PAR10701 COR107

PAR10801

PAR10802 COR108

PAR10901 PAR10902 COR109

PAR11001 PAR11002 COR110

PAR11101 PAR11102 COR111

PAR11201 PAR11202 COR112

PAR11302 PAR11301 COR113

PAR20001 PAR20002 COR200 PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203 PAR20401 PAR20402 COR204

PASW20003

PASW20004 PASW20002

PASW20001 COSW200

PATP10001 COTP100

PATP10101 COTP101 PAU100033

PAU100032 PAU100031 PAU100030 PAU100029 PAU100028 PAU100027 PAU100026 PAU100025 PAU100024

PAU100023

PAU100022

PAU100021

PAU100020

PAU100019

PAU100018

PAU100017 PAU100016 PAU100015 PAU100014 PAU100013 PAU100012 PAU100011 PAU100010

PAU10001

PAU10002

PAU10003

PAU10004

PAU10005

PAU10006

PAU10007

PAU10008 PAU10009

COU100

PAU10107

PAU10104 PAU10105 PAU10106

PAU10103 PAU10102 PAU10101 PAU10100 COU101 PAU10207

PAU10204 PAU10205

PAU10206

PAU10203 PAU10202

PAU10201

COU102

PAU10306

PAU10305 PAU10304 PAU10303

PAU10302 PAU10301 PAU10300

COU103

PAU10406

PAU10405 PAU10404 PAU10403

PAU10402 PAU10401 PAU10400

COU104

PAU10506

PAU10505 PAU10504 PAU10503

PAU10502 PAU10501 PAU10500

COU105

PAU10606

PAU10605 PAU10604 PAU10603

PAU10602 PAU10601 PAU10600

COU106

PAU10706

PAU10705 PAU10704 PAU10703

PAU10702 PAU10701 PAU10700

COU107

PAU1080A1 PAU1080A2

PAU1080B1 PAU1080B2

PAU1080C1 PAU1080C2 COU108

PAU20001 PAU20002 PAU20003 PAU20004 PAU20005 PAU20006 PAU20007 PAU20008 PAU20009 PAU200010 PAU200011 PAU200012 PAU200013 PAU200014 PAU200015 PAU200016 PAU200017 PAU200018 PAU200019 PAU200020 PAU200021 PAU200022 PAU200023 PAU200024 PAU200025 PAU200026 PAU200027 PAU200028 PAU200029 PAU200030 PAU200031 PAU200032 PAU200033 PAU200034 PAU200035 PAU200036

PAU200037 PAU200038 PAU200039 PAU200040 PAU200041 PAU200042 PAU200043 PAU200044 PAU200045 PAU200046 PAU200047 PAU200048

COU200

PAXC20001

PAXC20002 COXC200

PAXC20101 PAXC20102

PAXC20103 PAXC20104 COXC201

Figure 8-3 AVR128DB48 Curiosity Nano Assembly Drawing Bottom

tcR

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20001 PAC20002 COC200

PAC20101 PAC20102 COC201

PAC20201 PAC20202 COC202 PAC20301

PAC20302 COC203

PAC20401

PAC20402 COC204

PAC20502

PAC20501 COC205

PAC20601

PAC20602 COC206 PAC20701

PAC20702 COC207 PAD10002 PAD10001 COD100

PAD20002

PAD20001 COD200

PAF10002

PAF10001 COF100

PAJ10002 PAJ10001 COJ100

PAJ10101 PAJ10102 COJ101

PAJ10201

PAJ10202

PAJ10203

PAJ10204

PAJ10205

PAJ10206 COJ102

PAJ10506

PAJ10507 PAJ10509

PAJ10508 PAJ105010

PAJ105011 PAJ10505

PAJ10504

PAJ10503

PAJ10502

PAJ10501

PAJ10500

COJ105

PAJ200056 PAJ200053

PAJ200028 PAJ20002 PAJ20001

PAJ200051 PAJ200050 PAJ200052 PAJ200049 PAJ200048 PAJ200047 PAJ200046 PAJ200045 PAJ200044 PAJ200043 PAJ200042 PAJ200041 PAJ200040 PAJ200039 PAJ200038 PAJ200037 PAJ200036 PAJ200035 PAJ200034 PAJ200033 PAJ200032 PAJ200031 PAJ200030 PAJ200029

PAJ20003 PAJ20004 PAJ20005 PAJ20006 PAJ20007 PAJ20008 PAJ20009 PAJ200010 PAJ200011 PAJ200012 PAJ200013 PAJ200014 PAJ200015 PAJ200016 PAJ200017 PAJ200018 PAJ200019 PAJ200020 PAJ200021 PAJ200022 PAJ200023 PAJ200026 PAJ200025 PAJ200024 PAJ200027

PAJ200054 PAJ200055 PAJ20000

COJ200

PAJ20102 PAJ20101 COJ201

PAJ20202 PAJ20201 COJ202

PAJ20302 PAJ20301 COJ203

PAJ20402 PAJ20401 COJ204

PAJ20502 PAJ20501 COJ205

PAJ20602 PAJ20601 COJ206 PAJ20702 PAJ20701 COJ207

PAJ20802 PAJ20801 COJ208

PAJ20902 PAJ20901 COJ209

PAJ21001 PAJ21002 PAJ21005 COJ210

PAJ21102 PAJ21101 PAJ21105 COJ211

PAJ21202 PAJ21201 COJ212

PAJ21301 PAJ21302 PAJ21305 COJ213

PAJ21401 PAJ21402 PAJ21405 COJ214

PAJ21502 PAJ21501 COJ215

PAJ21602 PAJ21601 COJ216 PAJ21702 PAJ21701 COJ217

COLABEL1

PAQ10101 PAQ10102 PAQ10103 PAQ10100

COQ101 PAR10002

PAR10001 COR100 PAR10101 PAR10102 COR101

PAR10202 PAR10201 COR102

PAR10302 PAR10301 COR103

PAR10401 PAR10402 COR104

PAR10502

PAR10501 COR105

PAR10601 PAR10602 COR106

PAR10702 PAR10701 COR107

PAR10801

PAR10802 COR108

PAR10901 PAR10902 COR109

PAR11001 PAR11002 COR110

PAR11101 PAR11102 COR111

PAR11201 PAR11202 COR112

PAR11302 PAR11301 COR113

PAR20001 PAR20002 COR200 PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203 PAR20401 PAR20402 COR204

PASW20003

PASW20004 PASW20002

PASW20001 COSW200

PATP10001 COTP100

PATP10101 COTP101 PAU100033

PAU100032 PAU100031 PAU100030 PAU100029 PAU100028 PAU100027 PAU100026 PAU100025 PAU100024

PAU100023

PAU100022

PAU100021

PAU100020

PAU100019

PAU100018

PAU100017 PAU100016 PAU100015 PAU100014 PAU100013 PAU100012 PAU100011 PAU100010

PAU10001

PAU10002

PAU10003

PAU10004

PAU10005

PAU10006

PAU10007

PAU10008 PAU10009

COU100

PAU10107

PAU10104 PAU10105 PAU10106

PAU10103 PAU10102 PAU10101 PAU10100 COU101 PAU10207

PAU10204 PAU10205

PAU10206

PAU10203 PAU10202

PAU10201

COU102

PAU10306

PAU10305 PAU10304 PAU10303

PAU10302 PAU10301 PAU10300

COU103

PAU10406

PAU10405 PAU10404 PAU10403

PAU10402 PAU10401 PAU10400

COU104

PAU10506

PAU10505 PAU10504 PAU10503

PAU10502 PAU10501 PAU10500

COU105

PAU10606

PAU10605 PAU10604 PAU10603

PAU10602 PAU10601 PAU10600

COU106

PAU10706

PAU10705 PAU10704 PAU10703

PAU10702 PAU10701 PAU10700

COU107

PAU1080A1 PAU1080A2

PAU1080B1 PAU1080B2

PAU1080C1 PAU1080C2 COU108

PAU20001 PAU20002 PAU20003 PAU20004 PAU20005 PAU20006 PAU20007 PAU20008 PAU20009 PAU200010 PAU200011 PAU200012 PAU200013 PAU200014 PAU200015 PAU200016 PAU200017 PAU200018 PAU200019 PAU200020 PAU200021 PAU200022 PAU200023 PAU200024 PAU200025 PAU200026 PAU200027 PAU200028 PAU200029 PAU200030 PAU200031 PAU200032 PAU200033 PAU200034 PAU200035 PAU200036

PAU200037 PAU200038 PAU200039 PAU200040 PAU200041 PAU200042 PAU200043 PAU200044 PAU200045 PAU200046 PAU200047 PAU200048

COU200

PAXC20001

PAXC20002 COXC200

PAXC20101 PAXC20102

PAXC20103 PAXC20104 COXC201

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 36

83 Curiosity Nano Base for Click boardstrade

Figure 8-4 AVR128DB48 Curiosity Nano Pinout Mapping

US

B

DE

BU

GG

ER

AV

R1

28

DB

48

SW

0

LE

D0

PS

LE

DNC

NC

ID

ID

CDC RX

CDCRX

USART3 TX

PB0

CDC TX

CDCTX

USART3 RX

PB1

DBG1

DBG1

PB3

LED0

DBG2

DBG2

PB2

SW0

PF4

PF4

USART2 TX

PF5

PF5

USART2 RX

PA2

PA2

TWI0 SDA

PA3

PA3

TWI0 SCL

PA4

PA4

SPI0 MOSI

PA5

PA5

SPI0 MISO

PA6

PA6

SPI0 SCK

PA7

PA7

SPI0 SS

GND

GND

PB0

PB0

USART3 TX

CDC RX

PB1

PB1

USART3 RX

CDC TX

PF2

PF2

PF3

PF3

PC0

PC0

PC1

PC1

PC2

PC2

PC3

PC3

GND

GND

(PA0)

(PA0)

XTALHF1

(PA1)

(PA1)

XTALHF2

PB2

PB2

SW0

PB3

PB3

LED0

VBUS

VBUS

VOFF

VOFF

DBG3

DBG3

PF6

DBG0

DBG0

UPDI

GND

GND

VTG

VTG

PD6

PD6

AIN6

PD3

PD3

AIN3

OP0 INN

PD2

PD2

AIN2

OP0 OUT

TCA0 WO2

PD1

PD1

AIN1

OP0 INP

TCA0 WO1

PD0

PD0

AIN0

TCA0 WO0

PD7

PD7

AIN7

OP1 INN

PD5

PD5

AIN5

OP1 OUT

PD4

PD4

AIN4

OP1 INP

GND

GND

PE3

PE3

OP2 INN

PE2

PE2

OP2 OUT

PE1

PE1

OP2 INP

PE0

PE0

PC7

PC7

PC6

PC6

PC5

PC5

PC4

PC4

GND

GND

PB5

PB5

PB4

PB4

(PF1)

(PF1)

XTAL32K2

(PF0)

(PF0)

XTAL32K1

DE

BU

GG

ER

AV

R1

28

DB

48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

MVIO

OPAMP

Shared pin

AV

R1

28

DB

48

Cu

rio

sity

Na

no

1

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

2

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

3

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

Xp

lain

ed

Pro

Ext

en

sio

nE

XT

11

2

19

20

Cu

rio

sity

Na

no

Ba

sefo

r cl

ick

bo

ard

sT

M

PD4

PD0

PD6

PD3

PA7

PF5

PA6

PF4

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

PD5

PD1

PF3

PF2

PE2

PB1

PA6

PB0

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

PD7

PD2

PE1

PE0

PE3

PF5

PA6

PF4

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

ID

GND

PD5

PD7

PF3

PE1

PD1

PD2

PF2

PE3

PA2

PA3

PB1

PB0

PE2

PA4

PA5

PA6

GND

+33V

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 37

84 Disconnecting the On-board DebuggerThe on-board debugger and level shifters can be completely disconnected from the AVR128DB48

The block diagram below shows all connections between the debugger and the AVR128DB48 The rounded boxesrepresent connections to the board edge The signal names shown are also printed in silkscreen on the bottom sideof the board

To disconnect the debugger cut the straps shown in Figure 8-6

Attention  Cutting the GPIO straps to the on-board debugger will disable the virtual serial portprogramming debugging and data streaming Cutting the power supply strap will disconnect the on-boardpower supply

Tip  Any connection that is cut can be reconnected using solder Alternatively a 0Ω 0402 resistor can bemounted

Tip  When the debugger is disconnected an external debugger can be connected to holes shown in Figure 8-6 Details about connecting an external debugger are described in 46 Connecting ExternalDebuggers

Figure 8-5  On-Board Debugger Connections Block Diagram

DE

BU

GG

ER

TARGETLevel-Shift

PA04PA06PA07PA08PA16PA00PA01

USB

DIR x 5

VCC_P3V3

VBUS

VC

C_L

EV

EL

VC

C_T

AR

GE

TDBG0DBG1DBG2DBG3CDC TXCDC RX

CDC RX

CDC TX

DBG3

DBG2

DBG1

DBG0

GPIO straps

LDO

VOFF

LDO

VBUS VTG

VCC_EDGE

Power Supply strap Target Power strap

UART RXUART TX

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 38

Figure 8-6 On-Board Debugger Connection Cut Straps

GPIO straps (bottom side) Power Supply strap (top side)

85 Getting Started with IARIAR Embedded Workbenchreg for AVRreg is a proprietary high-efficiency compiler not based on GCC Programming anddebugging of AVR128DB48 Curiosity Nano is supported in IARtrade Embedded Workbench for AVR using the Atmel-ICEinterface Some initial settings must be set up in the project to get the programming and debugging to work

The following steps will explain how to get your project ready for programming and debugging

1 Make sure you have opened the project you want to configure Open the OPTIONS dialog for the project2 In the category General Options select the Target tab Select the device for the project or if not listed the

core of the device as shown in Figure 8-73 In the category Debugger select the Setup tab Select Atmel-ICE as the driver as shown in Figure 8-84 In the category Debugger gt Atmel-ICE select the Atmel-ICE 1 tab Select UPDI as the interface and

optionally select the UPDI frequency as shown in Figure 8-9

Info  If the selection of Debug Port (mentioned in step 4) is grayed out the interface is preselected andthe user can skip this configuration step

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 39

Figure 8-7 Select Target Device

Figure 8-8 Select Debugger

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 40

Figure 8-9 Configure Interface

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 41

The Microchip Website

Microchip provides online support via our website at wwwmicrochipcom This website is used to make files andinformation easily available to customers Some of the content available includes

bull Product Support ndash Data sheets and errata application notes and sample programs design resources userrsquosguides and hardware support documents latest software releases and archived software

bull General Technical Support ndash Frequently Asked Questions (FAQs) technical support requests onlinediscussion groups Microchip design partner program member listing

bull Business of Microchip ndash Product selector and ordering guides latest Microchip press releases listing ofseminars and events listings of Microchip sales offices distributors and factory representatives

Product Change Notification Service

Microchiprsquos product change notification service helps keep customers current on Microchip products Subscribers willreceive email notification whenever there are changes updates revisions or errata related to a specified productfamily or development tool of interest

To register go to wwwmicrochipcompcn and follow the registration instructions

Customer Support

Users of Microchip products can receive assistance through several channels

bull Distributor or Representativebull Local Sales Officebull Embedded Solutions Engineer (ESE)bull Technical Support

Customers should contact their distributor representative or ESE for support Local sales offices are also available tohelp customers A listing of sales offices and locations is included in this document

Technical support is available through the website at wwwmicrochipcomsupport

Microchip Devices Code Protection Feature

Note the following details of the code protection feature on Microchip devices

bull Microchip products meet the specifications contained in their particular Microchip Data Sheetbull Microchip believes that its family of products is secure when used in the intended manner and under normal

conditionsbull There are dishonest and possibly illegal methods being used in attempts to breach the code protection features

of the Microchip devices We believe that these methods require using the Microchip products in a manneroutside the operating specifications contained in Microchiprsquos Data Sheets Attempts to breach these codeprotection features most likely cannot be accomplished without violating Microchiprsquos intellectual property rights

bull Microchip is willing to work with any customer who is concerned about the integrity of its codebull Neither Microchip nor any other semiconductor manufacturer can guarantee the security of its code Code

protection does not mean that we are guaranteeing the product is ldquounbreakablerdquo Code protection is constantlyevolving We at Microchip are committed to continuously improving the code protection features of our productsAttempts to break Microchiprsquos code protection feature may be a violation of the Digital Millennium Copyright ActIf such acts allow unauthorized access to your software or other copyrighted work you may have a right to suefor relief under that Act

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 42

Legal Notice

Information contained in this publication is provided for the sole purpose of designing with and using Microchipproducts Information regarding device applications and the like is provided only for your convenience and may besuperseded by updates It is your responsibility to ensure that your application meets with your specifications

THIS INFORMATION IS PROVIDED BY MICROCHIP ldquoAS ISrdquo MICROCHIP MAKES NO REPRESENTATIONS ORWARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED WRITTEN OR ORAL STATUTORY OROTHERWISE RELATED TO THE INFORMATION INCLUDING BUT NOT LIMITED TO ANY IMPLIEDWARRANTIES OF NON-INFRINGEMENT MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSEOR WARRANTIES RELATED TO ITS CONDITION QUALITY OR PERFORMANCE

IN NO EVENT WILL MICROCHIP BE LIABLE FOR ANY INDIRECT SPECIAL PUNITIVE INCIDENTAL ORCONSEQUENTIAL LOSS DAMAGE COST OR EXPENSE OF ANY KIND WHATSOEVER RELATED TO THEINFORMATION OR ITS USE HOWEVER CAUSED EVEN IF MICROCHIP HAS BEEN ADVISED OF THEPOSSIBILITY OR THE DAMAGES ARE FORESEEABLE TO THE FULLEST EXTENT ALLOWED BY LAWMICROCHIPS TOTAL LIABILITY ON ALL CLAIMS IN ANY WAY RELATED TO THE INFORMATION OR ITS USEWILL NOT EXCEED THE AMOUNT OF FEES IF ANY THAT YOU HAVE PAID DIRECTLY TO MICROCHIP FORTHE INFORMATION Use of Microchip devices in life support andor safety applications is entirely at the buyerrsquos riskand the buyer agrees to defend indemnify and hold harmless Microchip from any and all damages claims suits orexpenses resulting from such use No licenses are conveyed implicitly or otherwise under any Microchip intellectualproperty rights unless otherwise stated

Trademarks

The Microchip name and logo the Microchip logo Adaptec AnyRate AVR AVR logo AVR Freaks BesTimeBitCloud chipKIT chipKIT logo CryptoMemory CryptoRF dsPIC FlashFlex flexPWR HELDO IGLOO JukeBloxKeeLoq Kleer LANCheck LinkMD maXStylus maXTouch MediaLB megaAVR Microsemi Microsemi logo MOSTMOST logo MPLAB OptoLyzer PackeTime PIC picoPower PICSTART PIC32 logo PolarFire Prochip DesignerQTouch SAM-BA SenGenuity SpyNIC SST SST Logo SuperFlash Symmetricom SyncServer TachyonTempTrackr TimeSource tinyAVR UNIO Vectron and XMEGA are registered trademarks of Microchip TechnologyIncorporated in the USA and other countries

APT ClockWorks The Embedded Control Solutions Company EtherSynch FlashTec Hyper Speed ControlHyperLight Load IntelliMOS Libero motorBench mTouch Powermite 3 Precision Edge ProASIC ProASIC PlusProASIC Plus logo Quiet-Wire SmartFusion SyncWorld Temux TimeCesium TimeHub TimePictra TimeProviderVite WinPath and ZL are registered trademarks of Microchip Technology Incorporated in the USA

Adjacent Key Suppression AKS Analog-for-the-Digital Age Any Capacitor AnyIn AnyOut BlueSky BodyComCodeGuard CryptoAuthentication CryptoAutomotive CryptoCompanion CryptoController dsPICDEMdsPICDEMnet Dynamic Average Matching DAM ECAN EtherGREEN In-Circuit Serial Programming ICSPINICnet Inter-Chip Connectivity JitterBlocker KleerNet KleerNet logo memBrain Mindi MiWi MPASM MPFMPLAB Certified logo MPLIB MPLINK MultiTRAK NetDetach Omniscient Code Generation PICDEMPICDEMnet PICkit PICtail PowerSmart PureSilicon QMatrix REAL ICE Ripple Blocker SAM-ICE Serial QuadIO SMART-IS SQI SuperSwitcher SuperSwitcher II Total Endurance TSHARC USBCheck VariSenseViewSpan WiperLock Wireless DNA and ZENA are trademarks of Microchip Technology Incorporated in the USAand other countries

SQTP is a service mark of Microchip Technology Incorporated in the USA

The Adaptec logo Frequency on Demand Silicon Storage Technology and Symmcom are registered trademarks ofMicrochip Technology Inc in other countries

GestIC is a registered trademark of Microchip Technology Germany II GmbH amp Co KG a subsidiary of MicrochipTechnology Inc in other countries

All other trademarks mentioned herein are property of their respective companiescopy 2020 Microchip Technology Incorporated Printed in the USA All Rights Reserved

ISBN 978-1-5224-6667-3

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 43

Quality Management SystemFor information regarding Microchiprsquos Quality Management Systems please visit wwwmicrochipcomquality

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 44

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupportwwwmicrochipcomsupportWeb AddresswwwmicrochipcomAtlantaDuluth GATel 678-957-9614Fax 678-957-1455Austin TXTel 512-257-3370BostonWestborough MATel 774-760-0087Fax 774-760-0088ChicagoItasca ILTel 630-285-0071Fax 630-285-0075DallasAddison TXTel 972-818-7423Fax 972-818-2924DetroitNovi MITel 248-848-4000Houston TXTel 281-894-5983IndianapolisNoblesville INTel 317-773-8323Fax 317-773-5453Tel 317-536-2380Los AngelesMission Viejo CATel 949-462-9523Fax 949-462-9608Tel 951-273-7800Raleigh NCTel 919-844-7510New York NYTel 631-435-6000San Jose CATel 408-735-9110Tel 408-436-4270Canada - TorontoTel 905-695-1980Fax 905-695-2078

Australia - SydneyTel 61-2-9868-6733China - BeijingTel 86-10-8569-7000China - ChengduTel 86-28-8665-5511China - ChongqingTel 86-23-8980-9588China - DongguanTel 86-769-8702-9880China - GuangzhouTel 86-20-8755-8029China - HangzhouTel 86-571-8792-8115China - Hong Kong SARTel 852-2943-5100China - NanjingTel 86-25-8473-2460China - QingdaoTel 86-532-8502-7355China - ShanghaiTel 86-21-3326-8000China - ShenyangTel 86-24-2334-2829China - ShenzhenTel 86-755-8864-2200China - SuzhouTel 86-186-6233-1526China - WuhanTel 86-27-5980-5300China - XianTel 86-29-8833-7252China - XiamenTel 86-592-2388138China - ZhuhaiTel 86-756-3210040

India - BangaloreTel 91-80-3090-4444India - New DelhiTel 91-11-4160-8631India - PuneTel 91-20-4121-0141Japan - OsakaTel 81-6-6152-7160Japan - TokyoTel 81-3-6880- 3770Korea - DaeguTel 82-53-744-4301Korea - SeoulTel 82-2-554-7200Malaysia - Kuala LumpurTel 60-3-7651-7906Malaysia - PenangTel 60-4-227-8870Philippines - ManilaTel 63-2-634-9065SingaporeTel 65-6334-8870Taiwan - Hsin ChuTel 886-3-577-8366Taiwan - KaohsiungTel 886-7-213-7830Taiwan - TaipeiTel 886-2-2508-8600Thailand - BangkokTel 66-2-694-1351Vietnam - Ho Chi MinhTel 84-28-5448-2100

Austria - WelsTel 43-7242-2244-39Fax 43-7242-2244-393Denmark - CopenhagenTel 45-4485-5910Fax 45-4485-2829Finland - EspooTel 358-9-4520-820France - ParisTel 33-1-69-53-63-20Fax 33-1-69-30-90-79Germany - GarchingTel 49-8931-9700Germany - HaanTel 49-2129-3766400Germany - HeilbronnTel 49-7131-72400Germany - KarlsruheTel 49-721-625370Germany - MunichTel 49-89-627-144-0Fax 49-89-627-144-44Germany - RosenheimTel 49-8031-354-560Israel - RarsquoananaTel 972-9-744-7705Italy - MilanTel 39-0331-742611Fax 39-0331-466781Italy - PadovaTel 39-049-7625286Netherlands - DrunenTel 31-416-690399Fax 31-416-690340Norway - TrondheimTel 47-72884388Poland - WarsawTel 48-22-3325737Romania - BucharestTel 40-21-407-87-50Spain - MadridTel 34-91-708-08-90Fax 34-91-708-08-91Sweden - GothenbergTel 46-31-704-60-40Sweden - StockholmTel 46-8-5090-4654UK - WokinghamTel 44-118-921-5800Fax 44-118-921-5820

Worldwide Sales and Service

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 45

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Board Overview
      • 2 Getting Started
        • 21 Quick Start
          • 211 Driver Installation
          • 212 Kit Window
          • 213 MPLABreg X IDE Device Family Packs
          • 214 Atmel Studio 7 Device Family Pack
            • 22 Design Documentation and Relevant Links
              • 3 Preprogrammed Application
              • 4 Curiosity Nano
                • 41 On-Board Debugger Overview
                  • 411 Debugger
                  • 412 Virtual Serial Port (CDC)
                    • 4121 Overview
                    • 4122 Operating System Support
                    • 4123 Limitations
                    • 4124 Signaling
                    • 4125 Advanced Use
                      • 413 Mass Storage Device
                        • 4131 Mass Storage Device Implementation
                        • 4132 Limitations of Drag-and-Drop Programming
                        • 4133 Special Commands
                          • 414 Data Gateway Interface (DGI)
                            • 4141 Debug GPIO
                            • 4142 Timestamping
                                • 42 Curiosity Nano Standard Pinout
                                • 43 Power Supply
                                  • 431 Target Regulator
                                  • 432 External Supply
                                  • 433 VBUS Output Pin
                                  • 434 Power Supply Exceptions
                                    • 44 Low-Power Measurement
                                    • 45 Programming External Microcontrollers
                                      • 451 Supported Devices
                                      • 452 Software Configuration
                                      • 453 Hardware Modifications
                                      • 454 Connecting to External Microcontrollers
                                        • 46 Connecting External Debuggers
                                          • 5 Hardware User Guide
                                            • 51 Connectors
                                              • 511 AVR128DB48 Curiosity Nano Pinout
                                              • 512 Using Pin Headers
                                              • 513 Multi-Voltage IO
                                              • 514 Operational Amplifiers
                                                • 52 Peripherals
                                                  • 521 LED
                                                  • 522 Mechanical Switch
                                                  • 523 32768 kHz Crystal
                                                  • 524 1600 MHz Crystal
                                                  • 525 On-Board Debugger Implementation
                                                    • 5251 On-Board Debugger Connections
                                                      • 6 Hardware Revision History and Known Issues
                                                        • 61 Identifying Product ID and Revision
                                                        • 62 Revision 3
                                                        • 63 Revision 2
                                                          • 7 Document Revision History
                                                          • 8 Appendix
                                                            • 81 Schematic
                                                            • 82 Assembly Drawing
                                                            • 83 Curiosity Nano Base for Click boardstrade
                                                            • 84 Disconnecting the On-board Debugger
                                                            • 85 Getting Started with IAR
                                                              • The Microchip Website
                                                              • Product Change Notification Service
                                                              • Customer Support
                                                              • Microchip Devices Code Protection Feature
                                                              • Legal Notice
                                                              • Trademarks
                                                              • Quality Management System
                                                              • Worldwide Sales and Service
Page 22: AVR128DB48 Curiosity Nano Hardware User Guideww1.microchip.com/downloads/en/DeviceDoc/AVR128DB48-Curiosit… · 4. Curiosity Nano Curiosity Nano is an evaluation platform of small

Figure 4-9 Programming and Debugging Connections to Debugger

GPIO straps (bottom side)

Info  Cutting the connections to the debugger will disable programming debugging and data streamingfrom the AVR128DB48 mounted on the board

Tip  Solder in 0Ω resistors across the footprints or short-circuit them with solder to reconnect the signalsbetween the on-board debugger and the AVR128DB48

454 Connecting to External MicrocontrollersThe figure and table below show where the programming and debugging signals must be connected to program anddebug external microcontrollers The on-board debugger can supply power to the external hardware or use anexternal voltage as a reference for its level shifters Read more about the power supply in 43 Power Supply

The on-board debugger and level shifters actively drive data and clock signals (DBG0 DBG1 and DBG2) used forprogramming and debugging and in most cases the external resistor on these signals can be ignored Pull-downresistors are required on the ICSPtrade data and clock signals to debug PICreg microcontrollers

DBG3 is an open-drain connection and requires a pull-up resistor to function

AVR128DB48 Curiosity Nano has a pull-up resistor R200 connected to its RESET signal (DBG3) The location ofthe pull-up resistor is shown in the 82 Assembly Drawing in the appendix

Remember bull Connect GND and VTG to the external microcontrollerbull Tie the VOFF pin to GND if the external hardware has its own power supplybull Make sure there are pull-down resistors on the ICSP data and clock signals (DBG0 and DBG1) to

support the debugging of PIC microcontrollers

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 22

Figure 4-10 Curiosity Nano Standard Pinout

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

Table 4-4 Programming and Debugging Interfaces

Curiosity Nano Pin UPDI ICSPtrade SWD

DBG0 UPDI DATA SWDIO

DBG1 mdash CLK SWCLK

DBG2 mdash mdash mdash

DBG3 mdash MCLR RESET

46 Connecting External DebuggersEven though there is an on-board debugger external debuggers can be connected directly to the AVR128DB48Curiosity Nano to programdebug the AVR128DB48 The on-board debugger keeps all the pins connected to theAVR128DB48 and board edge in tri-state when not actively used Therefore the on-board debugger will not interferewith any external debug tools

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 23

Figure 4-11 Connecting the MPLABreg PICkittrade 4 In-Circuit DebuggerProgrammer to AVR128DB48 CuriosityNano

2345678 1

VDD

GroundDATA

2 = VDD

3 = Ground

4 = PGD

5 = Unused

6 = Unused

7 = Unused

8 = Unused

1 = Unused

MPLABreg PICkittrade 4

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 24

Figure 4-12 Connecting the Atmel-ICE to AVR128DB48 Curiosity Nano

VDD

Ground

DATA

AVRregSAM

3 = UPDI

4 = VTG

5 = Unused

6 = Unused

7 = Unused

8 = Unused

1 = Unused

2 = GND

9 = Unused

10 = Unused

Atmel-ICE

21 9

10

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

CAUTIONTo avoid contention between the external debugger and the on-board debugger do not start anyprogrammingdebug operation with the on-board debugger through MPLABreg X IDE or Atmel Studio 7 ormass storage programming while the external tool is active

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 25

5 Hardware User Guide

51 Connectors

511 AVR128DB48 Curiosity Nano PinoutAll the AVR128DB48 IO pins are accessible at the edge connectors on the board The image below shows the boardpinout For all available functions on each pin refer to the IO Multiplexing and Considerations section in theAVR128DB48 data sheet

Figure 5-1 AVR128DB48 Curiosity Nano Pinout

USB

DEBUGGER

AVR128DB48

SW0

LED0

PS LEDNC

NC

IDID

CDC RX

CD

CR

XUSART3 TXPB0

CDC TX

CD

CT

XUSART3 RXPB1

DBG1

DB

G1PB3LED0

DBG2

DB

G2PB2SW0

PF4

PF

4USART2 TX

PF5

PF

5USART2 RX

PA2

PA

2TWI0 SDA

PA3

PA

3TWI0 SCL

PA4

PA

4SPI0 MOSI

PA5

PA

5SPI0 MISO

PA6

PA

6SPI0 SCK

PA7

PA

7SPI0 SS

GND

GN

D

PB0

PB

0USART3 TXCDC RX

PB1

PB

1USART3 RXCDC TX

PF2

PF

2

PF3

PF

3

PC0

PC

0

PC1

PC

1

PC2

PC

2

PC3

PC

3

GND

GN

D

(PA0)

(PA

0)XTALHF1

(PA1)

(PA

1)XTALHF2

PB2

PB

2SW0

PB3

PB

3LED0

VBUS

VB

US

VOFF

VO

FF

DBG3

DB

G3 PF6

DBG0

DB

G0 UPDI

GND

GN

D

VTG

VT

G

PD6

PD

6 AIN6

PD3

PD

3 AIN3 OP0 INN

PD2

PD

2 AIN2 OP0 OUT TCA0 WO2

PD1

PD

1 AIN1 OP0 INP TCA0 WO1

PD0

PD

0 AIN0 TCA0 WO0

PD7

PD

7 AIN7 OP1 INN

PD5

PD

5 AIN5 OP1 OUT

PD4

PD

4 AIN4 OP1 INP

GND

GN

D

PE3

PE

3 OP2 INN

PE2

PE

2 OP2 OUT

PE1

PE

1 OP2 INP

PE0

PE

0

PC7

PC

7

PC6

PC

6

PC5

PC

5

PC4

PC

4

GND

GN

D

PB5

PB

5

PB4

PB

4

(PF1)

(PF

1) XTAL32K2

(PF0)

(PF

0) XTAL32K1

DEBUGGERAVR128DB48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

MVIO

OPAMP

Shared pin

AVR128DB48Curiosity Nano

512 Using Pin HeadersThe edge connector footprint on AVR128DB48 Curiosity Nano has a staggered design where each hole is shifted 8mil (~02 mm) off-center The hole shift allows the use of regular 100 mil pin headers on the board without solderingOnce the pin headers are firmly in place they can be used in normal applications like pin sockets and prototypingboards without any issues

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 26

Figure 5-2 Attaching Pin-Headers to the Curiostiy Nano Board

Figure 5-3 Connecting to Curiosity Nano Base for Click boardstrade

Tip  Start at one end of the pin header and gradually insert the header along the length of the boardOnce all the pins are in place use a flat surface to push them in

Tip  For applications where the pin headers will be used permanently it is still recommended to solderthem in place

Important  Once the pin headers are in place they are hard to remove by hand Use a set of pliers andcarefully remove the pin headers to avoid damage to the pin headers and PCB

513 Multi-Voltage IO

The AVR128DB48 Curiosity Nano MCU has support for Multi-Voltage IO (MVIO) AVR128DB48 MVIO pins areconnected to the edge connector at PC0-PC7 MVIO pins are capable of regular IO-pin behavior

MVIO can be configured in one of two supply modesbull Single-Supply mode All IO pins including MVIO-capable pins are powered by VCC_TARGET By default

VCC_TARGET is connected to VDDIO2 through a 0-ohm resistor (R204)bull Dual-Supply mode MVIO-capable pins are powered by an external power supply connected to VDDIO2 Non-

MVIO pins are powered by VCC_TARGET

Dual-Supply mode allows MVIO-pins to be powered at different voltages than pins powered from VCC_TARGET

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 27

WARNINGThe absolute maximum external voltage range for the AVR128DB48 is 18ndash55V Applying a higher voltagemay cause permanent damage to the board

By default AVR128DB48 Curiosity Nano board is configured for single-supply mode To use Dual-Supply mode somehardware modifications are required

WARNINGBefore any hardware modifications are done make sure the board is disconnected from USB or externalpower

bull Disconnect resistor R204 connecting VDDIO2 to VCC_TARGETbull Connect a new power supply to VDDIO2 and ground at J212bull J212 does not have reverse polarity protection Make sure to match polarity between the power supply and

J212 Positive-polarity to J212-pin 1 and negative-polarity to J212-pin 2

The resistor R204 VDDIO2 and J212 can be seen in Figure 5-4

Figure 5-4 MVIO and VDDIO2 Connections

J212 R204

WARNINGApplying an external voltage to VDDIO2 pin without removing resistor R204 may cause permanentdamage to the board

WARNINGJ212 does not have reverse polarity protection Applying voltage to the wrong pin may cause permanentdamage to the board

514 Operational AmplifiersAVR128DB48 features three internal operational amplifiers with a flexible connection scheme using analogmultiplexers and resistor ladders This allows a large number of analog signal conditioning configurations manyrequiring no external components

Table 5-1 OPAMP Pin Connections

OPAMP Poisitive Input (INP) Negative Input (INN) Output (OUT)

OP0 PD1 PD3 PD2

OP1 PD4 PD7 PD5

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 28

continuedOPAMP Poisitive Input (INP) Negative Input (INN) Output (OUT)

OP2 PE1 PE3 PE2

For information about OPAMP on the edge connector and any shared functionality see 511 AVR128DB48 CuriosityNano Pinout

52 Peripherals

521 LEDThere is one yellow user LED available on the AVR128DB48 Curiosity Nano board that can be controlled by eitherGPIO or PWM The LED can be activated by driving the connected IO line to GND

Table 5-2 LED Connection

AVR128DB48 Pin Function Shared Functionality

PB3 Yellow LED0 Edge connector On-board debugger

522 Mechanical SwitchThe AVR128DB48 Curiosity Nano board has one mechanical switch This is a generic user-configurable switchWhen the switch is pressed it will drive the IO line to ground (GND)

Tip  There is no externally connected pull-up resistor on the switch To use the switch make sure that aninternal pull-up resistor is enabled on pin PB2

Table 5-3 Mechanical Switch

AVR128DB48 Pin Description Shared Functionality

PB2 User switch (SW0) Edge connector On-board debugger

523 32768 kHz Crystal

On the AVR128DB48 Curiosity Nano board is a mounted 32768 kHz crystal of type VMK3-9001-32K7680000 thecrystal is accurate to within 20 ppm Using the External 32768 kHz Crystal Oscillator (XOSC32K) module inAVR128DB48 with the mounted 32768 kHz crystal generates a clock signal that is significantly more accurate thanthe Internal 32768 kHz Ultra Low-Power Oscillator (OSC32K) module can generate alone With the Auto-Tunefeature the 32768 kHz can be used as a reference to improve the accuracy of the internal oscillator This is an idealreference clock for the Real-Time Counter module in AVR128DB48

The 32768 kHz crystal is connected to AVR128DB48 on PF0 and PF1 which are also routed to the edge connectorthrough two solder points PF0 and PF1 are disconnected from the edge connector by default to reduce the chanceof an external signal causing contention with the crystal and to remove excessive capacitance on the lines

Next to the 32768 kHz crystal is a cut-strap (J209) which can be used to measure the oscillator safety factor This isdone by cutting the strap and adding a 0402 SMD resistor across the strap More information about oscillatorallowance and safety factor can be found in the AN2648 application note from Microchip

Cut straps and solder points can be seen in Figure 5-5

Table 5-4 32768 kHz Crystal Connections

AVR128DB48 Pin Function Shared Functionality

PF0 XTAL32K1 (Crystal input) Edge connector

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 29

continuedAVR128DB48 Pin Function Shared Functionality

PF1 XTAL32K2 (Crystal output) Edge connector

PA0 and PA1 can be used as GPIO To do so some hardware modifications are required

WARNINGBefore any hardware modifications are done make sure the board is disconnected from the USB orexternal power

bull Disconnect the 32768 kHz crystal by cutting the two straps on the top side of the board next to the crystal(J207 J208) The crystal should be disconnected when using the pin as GPIO as this might harm the crystal

bull Connect the IO lines to the edge connector by placing solder blobs on the circular solder points marked PF0and PF1 on the bottom side of the board (J210 J211)

Figure 5-5 Crystal Connection and Cut Straps

Top side Boom side

J211

J210

J207

J20832768 kHz Crystal

J209

524 1600 MHz Crystal

On the AVR128DB48 Curiosity Nano board is a mounted 1600 MHz crystal of type VXM7-9040-16M0000000 thecrystal is accurate to within 20 ppm Using the External High-Frequency Crystal Oscillator (XOSCHF) module inAVR128DB48 with the mounted 1600 MHz crystal generates a clock signal that is significantly more accurate thanthe Internal High-Frequency Oscillator (OSCHF) module

The 1600 MHz crystal is connected to AVR128DB48 on PA0 and PA1 which are also routed to the edge connectorthrough two solder points PA0 and PA1 are disconnected from the edge connector by default to reduce the chanceof an external signal causing contention with the crystal and to remove excessive capacitance on the lines

Next to the 1600 MHz crystal is a cut-strap (J217) which can be used to measure the oscillator safety factor This isdone by cutting the strap and adding a 0402 SMD resistor across the strap More information about oscillatorallowance and safety factor can be found in the AN2648 application note from Microchip

Cut straps and solder points can be seen in Figure 5-6

Table 5-5 Crystal Connections

AVR128DB48 Pin Function Shared Functionality

PA0 XTALHF1 (Crystal input) Edge connector

PA1 XTALHF2 (Crystal output) Edge connector

PA0 and PA1 can be used as GPIO To do so some hardware modifications are required

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 30

WARNINGBefore any hardware modifications are done make sure the board is disconnected from USB or externalpower

bull Disconnect the 1600 MHz crystal by cutting the two straps on the top side of the board next to the crystal (J215J216) The crystal should be disconnected when using the pin as GPIO as this might harm the crystal

bull Connect the IO lines to the edge connector by placing solder blobs on the circular solder points marked PA0and PA1 on the bottom side of the board (J213 J214)

Figure 5-6 Crystal Connection and Cut Straps

Top side Boom side

J214

J213

J216

J2151600 MHzCrystal

J217

525 On-Board Debugger ImplementationAVR128DB48 Curiosity Nano features an on-board debugger that can be used to program and debug theAVR128DB48 using UPDI The on-board debugger also includes a virtual serial port (CDC) interface over UART anddebug GPIO Both MPLABreg X IDE and Atmel Studio 7 can be used as a front-end for the on-board debugger forprogramming and debugging MPLAB Data Visualizer can be used as a front-end for the CDC and debug GPIO

5251 On-Board Debugger ConnectionsThe table below shows the connections between the target and the debugger section All connections between thetarget and the debugger are tri-stated as long as the debugger is not actively using the interface Hence since thereare little contaminations of the signals the pins can be configured to anything the user wants

For further information on how to use the capabilities of the on-board debugger see 41 On-Board DebuggerOverview

Table 5-6 On-Board Debugger Connections

AVR128DB48Pin

Debugger Pin Function Shared Functionality

PB1 CDC TX UART RX (AVR128DB48 RX line) Edge connector

PB0 CDC RX UART TX (AVR128DB48 TX line) Edge connector

UPDI DBG0 UPDI Edge connector

PB3 DBG1 LED0Debug GPIO1 Edge connector

PB2 DBG2 SW0Debug GPIO0 Edge connector

PF6 DBG3 RESET Edge connector

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 31

6 Hardware Revision History and Known IssuesThis user guide is written to provide information about the latest available revision of the board The followingsections contain information about known issues a revision history of older revisions and how older revisions differfrom the latest revision

61 Identifying Product ID and RevisionThe revision and product identifier of the AVR128DB48 Curiosity Nano Board can be found in two ways Either byutilizing the MPLABreg X IDE or Atmel Studio 7 Kit Window or by looking at the sticker on the bottom side of the PCB

By connecting AVR128DB48 Curiosity Nano to a computer with MPLABreg X IDE or Atmel Studio 7 running the KitWindow will pop up The first six digits of the serial number which is listed under kit information contain the productidentifier and revision

Tip  The Kit Window can be opened in MPLABreg X IDE through the menu bar Window gt Kit Window

The same information can be found on the sticker on the bottom side of the PCB Most boards will have the identifierand revision printed in plain text as A09-nnnnrr where ldquonnnnrdquo is the identifier and ldquorrrdquo is the revision Boards withlimited space have a sticker with only a data matrix code containing the product identifier revision and serialnumber

The serial number string has the following format

nnnnrrssssssssss

n = product identifier

r = revision

s = serial number

The product identifier for AVR128DB48 Curiosity Nano is A09‑3372

62 Revision 3AVR128DB48 silicon revision A5 or later is mounted on this revision of the board

63 Revision 2Revision 2 is the initially released board revision

AVR128DB48 silicon revision A4 is mounted on this revision of the board

AVR128DB48 Curiosity NanoHardware Revision History and Known Issues

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 32

7 Document Revision HistoryDoc Rev Date Comments

A 092020 Initial document release

AVR128DB48 Curiosity NanoDocument Revision History

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 33

8 Appendix

81 SchematicFigure 8-1 AVR128DB48 Curiosity Nano Schematic

11

22

33

44

55

66

77

88

DD

CC

BB

AA

2 of

4

AV

R12

8DB

48 C

uri

osit

y N

ano

240

820

20A

VR

128D

B48

_Cur

iosi

ty_N

ano_

Targ

et_M

CU

Sch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA

Rev

isio

n

File

P

CB

Num

ber

PC

B

Rev

isio

n

Des

ign

ed w

ith

Dra

wn

By

ML

Shee

t Titl

e

Targ

et M

CU

Eng

inee

rA

H

A08

-305

71

Size

A3

A09

-337

22

Page

D

ateA

ltium

com

GN

D

VD

DIO

2

100n

C20

1

GN

D

PA5_

SPI0

_MIS

OPA

6_SP

I0_S

CK

PA7_

SPI0

_SS

PB0_

USA

RT

3_T

XPB

1_U

SAR

T3_

RX

PB2_

SW0_

DB

G2

PB3_

LE

D0_

DB

G1

PB

4P

B5

PC

0P

C1

PC

2

PC3

PC4PC5PC6PC7PD0_AIN0_TCA0_WO0PD1_AIN1_OP0_INP_TCA0_WO1PD2_AIN2_OP0_OUT_TCA0_WO2PD3_AIN3_OP0_INNPD4_AIN4_OP1_INP

PA3_TWI0_SCL

PA1_XTALHF2

UPDI_DBG0

PF5_USART2_RX

PF3

PF

2PF

1_X

TA

L32

K2

PF0_

XT

AL

32K

1P

E3_

OP

2_IN

NP

E2_

OP

2_O

UT

PE

1_O

P2_

INP

PE

0

PD5_

AIN

5_O

P1_

OU

TPD

6_A

IN6

PD7_

AIN

7_O

P1_

INN

GN

D

VC

C_T

AR

GE

T

100n

C20

2

GN

DV

CC

_TA

RG

ET

100n

C20

0

PF1_XTAL32K2

PF0_XTAL32K1

PA2_TWI0_SDA

PA0_XTALHF1

PF4_USART2_TX

PA4_SPI0_MOSI

GN

D

PA7_

SPI0

_SS

PA6_

SPI0

_SC

KPA

5_SP

I0_M

ISO

PA4_

SPI0

_MO

SIPA

3_T

WI0

_SC

LPA

2_T

WI0

_SD

A

PC

0P

C1

PC

2P

C3

PB

4P

B5

PD7_

AIN

7_O

P1_

INN

PD6_

AIN

6

PD2_

AIN

2_O

P0_

OU

T_T

CA

0_W

O2

PD1_

AIN

1_O

P0_

INP_

TC

A0_

WO

1PD

0_A

IN0_

TC

A0_

WO

0

PD5_

AIN

5_O

P1_

OU

TPD

4_A

IN4_

OP

1_IN

P

PD3_

AIN

3_O

P0_

INN

32K

Hz

Cry

stal

PB0_

USA

RT

3_T

XPB

1_U

SAR

T3_

RX

1kR203

US

ER

LE

D

VC

C_T

AR

GE

T

PF6_DBG3

PB2_SW0_DBG2

PB3_LED0_DBG1

GN

D

USE

R B

UT

TO

N

PB3_

LE

D0_

DB

G1

PB2_

SW0_

DB

G2

PB1_

USA

RT

3_R

XPB

0_U

SAR

T3_

TX

PF4_

USA

RT

2_T

XPF

5_U

SAR

T2_

RX

PF

2P

F3

PC

4P

C5

PC

6P

C7

1kR202

YELLOWLEDSML-D12Y1WT86

2 1

D200

TS604VM1-035CR13

4 2

SW20

0

GN

DV

CC

_ED

GE

GN

DG

ND

GN

DG

ND

UPD

I_D

BG

0P

F6_

DB

G3

J209

PB3_

LE

D0_

DB

G1

PB2_

SW0_

DB

G2

AV

R12

8DB

48

22u

FC

205

VC

C_E

DG

E

GN

D

DBG0

CDC_TXCDC_RX

DBG2

DBG1

DBG3

DBG2

DE

BU

GG

ER

CO

NN

EC

TIO

NS

DBG1

DBG3DBG0

VOFF

ID_SYS

ID_SYS

VOFF

TA

RG

ET

BU

LK

VC

C_T

AR

GE

TR

ESE

T P

ull

VB

US

CD

C R

X3

CD

C T

X4

DB

G1

5

DB

G2

6

0 T

X7

1 R

X8

2 SD

A9

3 S

CL

10

4 M

OSI

11

5 M

ISO

12

6 S

CK

13

7 S

S14

GN

D15

0 (T

X)

16

1 (R

X)

17

218

319

020

GN

D24

DB

G3

54

DB

G0

53

GN

D52

VC

C51

PW

M 3

46

AD

C 2

45

AD

C 1

44

AD

C 0

43

GN

D42

438

434

GN

D33

AD

C 7

50

AD

C 6

49

AD

C 5

48

PW

M 4

47

DE

BU

GG

ER

TAR

GE

T

ID2

VO

FF

55

121

222

323

025

126

227

328

429

530

631

732

535

636

737

539

640

741

RE

SER

VE

D1

VB

US

56

CN

AN

O56

-pin

edg

e co

nnec

tor

J200

J201

J203

J205

J206

J202

J204

PF1_

XT

AL

32K

2PF

0_X

TA

L32

K1

NC

XOUT

XIN

47kR200

AV

R12

8DB

48

UPD

I

GPI

O1

GPI

O0

RE

SET

DB

G0

DB

G1

DB

G2

DB

G3

Deb

ugge

r

CD

C T

X

CD

C R

X

UA

RT

3 R

X

UA

RT

3 T

X

VT

G1

8V -

55

VPB

3

PB

2

PF

6

UP

DI

PB

0

PB

1

Nam

eP

in

PE

3_O

P2_

INN

PE

2_O

P2_

OU

TP

E1_

OP

2_IN

PP

E0

J207

J208

PF

0P

F1

PA5

1

PA6

2

PA7

3

PB0

4

PB1

5

PB2

6

PB3

7

PB4

8

PB5

9

PC0

10

PC1

11

PC2

12

PC313

VDDIO214

GND15

PC416

PC517

PC618

PC719

PD020

PD121

PD222

PD323

PD424

PD5

25

PD6

26

PD7

27

AVDD

28

GND

29

PE0

30

PE1

31

PE2

32

PE3

33

XTAL32K1PF0

34

XTAL32K2PF1

35

PF2

36

PF337

PF438

PF539

PF640

UPDI41

VDD42

GND43

XTALHF1PA044

XTALHF2PA145

PA246

PA347

PA448

AV

R12

8DB

48-I

PT

U20

0

0RR204

GN

D

VC

C_T

AR

GE

T

VDDIO2

GND

J210

J211

82p

C20

48

2pC

203

GN

DG

ND

16M

Hz

Cry

stal

J217

XHFOUT

XHFIN

J214

J213

GN

D

J215

J216

PA0_XTALHF1

PA1_XTALHF2

PA0_

XT

AL

HF

1PA

1_X

TA

LH

F2

PA0

PA1

1 2

J212 N

M

15pF

C20

615

pFC

207

13

24 16

000

MH

zV

XM

7-90

40-1

6M00

0000

0TR

XC

201

GN

D32

768

kHz

VM

K3-

9001

-32K

7680

000T

R

XC

200

CDC_TX

CDC_RX

CD

C_T

XC

DC

_RX

Cry

stal

dat

ashe

et

Ccr

ysta

l = 9

pFm

ax E

SR

= 7

0kO

hmA

ccur

acy

plusmn20p

pm

AV

R48

DB

128

data

shee

tC

xin

= 4

0pF

(ty

pica

l val

ue)

Cxo

ut =

40

pF (

typi

cal v

alue

)C

lasymp1

( (1

40

pF)+

(1

40p

F)

)asymp

20p

FM

axim

um L

oad

= 1

25p

FM

axim

um E

SR =

50k

Ohm

Est

imat

ed C

pcb

= 0

5pF

Est

imat

ed lo

adC

= 2

(C

crys

tal-

Cpa

ra -

Cpc

b)C

= 2

(9p

F -

20

pF -

05

pF)

C =

13

0pF

Sele

cted

in d

esig

n af

ter

veri

fica

tion

C=

82

pF8

2pF

NO

TE

on

UA

RT

CD

C

RX

TX

onth

ehe

ader

deno

tes

the

inpu

tout

put d

irec

tion

of th

e si

gnal

resp

ectiv

e to

its

sou

rce

CD

C T

X is

out

put f

rom

the

DE

BU

GG

ER

C

DC

RX

is in

put t

o th

e D

EB

UG

GE

R

TX

is o

utpu

t fro

m th

e T

AR

GE

T d

evic

eR

X is

inpu

t to

the

TA

RG

ET

dev

ice

NO

TE

on

I2C

No

pull

-ups

on

boar

d P

ull-

ups

shou

ld b

em

ount

ed c

lose

to s

lave

dev

ice(

s)

WA

RN

ING

M

ake

sure

tore

mov

e R

204

befo

reap

plyi

ng p

ower

to J

212

Cry

stal

dat

ashe

et

Ccr

ysta

l = 1

2pF

max

ES

R =

60O

hmA

ccur

acy

plusmn30p

pm

AV

R48

DB

128

data

shee

tC

xin

= 4

0pF

(ty

pica

l val

ue)

Cxo

ut =

40

pF (

typi

cal v

alue

)C

lasymp1

( (1

40

pF)+

(1

40p

F)

)asymp

20p

FM

axim

um L

oad

= 1

25p

FM

axim

um E

SR =

k

Ohm

Est

imat

ed C

pcb

= 0

5pF

Est

imat

ed lo

adC

= 2

(C

crys

tal-

Cpa

ra -

Cpc

b)C

= 2

(12

pF -

20

pF -

05

pF)

C =

19

0pF

Sele

cted

in d

esig

n af

ter

veri

fica

tion

C=

15p

F1

5pF

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 34

11

22

33

44

55

66

77

88

DD

CC

BB

AA

3 of

4

AV

R12

8DB

48 C

uri

osit

y N

ano

2020

-06-

26A

VR

128D

B48

_Cur

iosi

ty_N

ano_

Deb

ugge

rSch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA

Rev

isio

n

Fil

eP

CB

Num

ber

PC

B

Rev

isio

n

Des

ign

ed w

ith

Dra

wn

By

ML

Shee

t Tit

le

Deb

ugge

r

Eng

inee

rA

H

A08

-305

71

Size

A3

A09

-337

22

Page

D

ateA

ltium

com

DE

BU

GG

ER

USB

MIC

RO

-B C

ON

NE

CT

OR

GN

D

USB

D_P

USB

D_N

100n

C10

7

100n

C10

8

1kR

107

VC

C_P

3V3

SRST

STA

TU

S_L

ED

SHIE

LD

VB

US

VC

C_P

3V3

GN

D

TP

100

Test

poin

t Arr

ay

12

34

56

78

910

TC

KT

DO

TM

SV

sup

TD

IG

ND

TR

STSR

STV

Tre

fG

ND

J102

GN

D

47u

F

C10

0

DBG0

DB

G0

21

GR

EE

N L

ED

SML

-P12

MT

T86

R

D10

0

VBUS

1

D-

2

D+

3

GND

5

SHIELD1

6

SHIELD2

7

ID

4

SHIELD3

8

SHIELD4

9 MU

-MB

0142

AB

2-26

9

J105

PAD

33

PA00

1

PA01

2

PA02

3

PA03

4

GND 10VDDANA 9

PA04

5

PA05

6

PA06

7

PA07

8

PA08 11

PA09 12

PA10 13

PA11 14

PA14 15

PA15 16

PA16

17

PA17

18

PA18

19

PA19

20

PA22

21

USB_SOFPA23

22

USB_DMPA24

23

USB_DPPA25

24

PA2725 RESETN26 PA2827 GND28 VDDCORE29 VDDIN30 SWDCLKPA3031 SWDIOPA3132

SAM

D21

E18

A-M

UT

U10

0

VOUT

1

VOUT

2

GND 3

EN

4

VIN

6

NC

5

EP 7

MIC

5528

-33

YM

TU

101

VC

C_P

3V3

GN

D

USB

D_P

USB

D_N

GN

D

1uC

106

VC

C_M

CU

_CO

RE

VC

C_P

3V3

VC

C_P

3V3

22u

FC

101

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

3

VC

C_P

3V3

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

4

VC

C_P

3V3

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

5

VC

C_P

3V3

GN

D

GN

D GN

D

GN

D

VC

C_E

DG

E

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

7

VC

C_P

3V3

GN

DDBG2

DB

G3_

CT

RL

S1_0

_TX

S1_1

_RX

S0_2

_TX

DA

CV

TG

_AD

C

RE

SER

VE

D

S0_3

_CL

K

DBG0_CTRL

CD

C_T

X_C

TR

L

BO

OT

DE

BU

GG

ER

PO

WE

RS

TA

TU

S L

ED

EN

1

BYP

6

VOUT

4

GND

2

VIN

3

NCADJ

5

GND

7

MIC

5353

U10

2

100n

C10

2

GN

D

GN

D

47kR101

27kR104 G

ND

33k

R10

6

22u

F

C10

3 GN

D

1kR

108

J100

VC

C_L

EV

EL

VC

C_R

EG

UL

AT

OR

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

6

VC

C_P

3V3

GN

DDBG1

CD

C_R

X

CD

C_T

X

DBG3

DBG1_CTRL

DE

BU

GG

ER

RE

GU

LA

TO

R

REG_ENABLE

RE

G_E

NA

BL

E

47kR103

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

47kR102

47kR105

SWC

LK

GN

D

47kR100 G

ND

DB

G2

S0_0

_RX

DB

G1_

CT

RL

DB

G0_

CT

RL

DB

G3

OP

EN

DR

AIN

TA

RG

ET

AD

JUST

AB

LE

RE

GU

LA

TO

R

SRST

DE

BU

GG

ER

TE

ST

PO

INT DBG2_CTRL

VO

FF

CD

C_R

X_C

TR

L

47kR109

DB

G1

CD

C_T

X_C

TR

L

CD

C_R

X_C

TR

L

SWC

LK

REG_ADJUST

DBG2_GPIO

DB

G3_

CT

RL

DB

G2_

CT

RL

UP

DI

UPD

I

GPI

O

GPI

O

RE

SET

Sign

al

DB

G0

DB

G1

DB

G2

DB

G3

ICS

PIn

terf

ace

DA

T

CL

K

GPI

O

MC

LR

DB

G3

CD

C T

X

CD

C R

X

UA

RT

RX

UA

RT

TX

UA

RT

RX

UA

RT

TX

TA

RG

ET

TA

RG

ET

1kR

110

VBUS_ADC

1

23

DM

N65

D8L

FB

Q10

1

VC

C-

-

ID_SYS

VOFF

1kR112

VC

C_P

3V3

VT

G_A

DC

DA

C

MIC

9416

3

VIN

B2

VOUT

A1

VIN

A2

EN

C2

GND

C1

VOUT

B1

U10

8

GN

D

ID_S

YS

VT

G_E

N

VTG_EN

VBUS_ADC

SWD

IO

ID_S

YS

TP

101

GN

DSW

DIO

VO

FF

47kR111 G

ND

ID P

IN

MC

3621

3

F10

0

VC

C_V

BU

S

VC

C_V

BU

S

VC

C_V

BU

S

J101

VC

C_T

AR

GE

T

47k

R11

3

CDC_TX

CDC_RX

Prog

ram

min

g co

nnec

tor

for

fact

ory

prog

ram

min

g of

DE

BU

GG

ER

MIC

5528

V

in 2

5V

to 5

5V

Vou

t F

ixed

33

VIm

ax 5

00m

AD

ropo

ut 2

60m

V

500

mA

MIC

5353

V

in 2

6V

to 6

VV

out

12

5V to

51

VIm

ax 5

00m

AD

ropo

ut (

typi

cal)

50m

V

150m

A 1

60m

V

500

mA

Acc

urac

y 2

in

itia

lT

herm

al s

hutd

own

and

curr

ent l

imit

Max

imum

out

put v

olta

ge is

lim

ited

by

the

inpu

t vol

tage

and

the

drop

out v

olta

ge in

the

regu

lato

r(V

max

= V

in -

dro

pout

)

J100

-

Cut

-str

ap u

sed

for

full

sep

arat

ion

of ta

rget

pow

er f

rom

the

leve

l shi

fter

s an

don

-boa

rd r

egul

ator

s-

For

cur

rent

mea

sure

men

ts u

sing

the

on-b

oard

pow

er s

uppl

y th

isst

rap

mus

t be

cut a

nd a

nam

met

er c

onne

cted

acr

oss

- F

or c

urre

nt m

easu

rem

ents

usi

ng a

n ex

tern

al p

ower

sup

ply

this

str

ap c

ould

be

cut f

or m

ore

accu

rate

mea

sure

men

ts L

eaka

ge b

ack

thro

ugh

the

swit

ch is

in th

e m

icro

am

pere

ran

ge

PT

C R

eset

tabl

e fu

se

Hol

d cu

rren

t 5

00m

AT

rip

curr

ent

100

0mA

Adj

usta

ble

outp

ut a

nd li

mit

atio

ns

- T

he D

EB

UG

GE

R c

an a

djus

t the

out

put v

olta

ge o

f th

e re

gula

tor

betw

een

125

V a

nd 5

1V

to th

e ta

rget

-

The

vol

tage

out

put i

s li

mit

ed b

y th

e in

put (

US

B)

whi

ch c

an v

ary

betw

een

440

V to

52

5V-

The

leve

l shi

fter

s ha

ve a

min

imal

vol

tage

leve

l of

165

V a

nd w

ill l

imit

the

min

imum

ope

ratin

g vo

ltage

all

owed

for

the

targ

et to

sti

ll a

llow

com

mun

icat

ion

- T

he M

IC94

163

has

a m

inim

al v

olat

ege

leve

l of

170

V a

nd w

ill l

imit

the

min

imum

vol

tage

del

iver

ed to

the

targ

et

- F

irm

war

e co

nfig

urat

ion

wil

l lim

it th

e vo

ltage

ran

ge to

be

wit

hin

the

the

targ

et s

peci

fica

tion

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 35

82 Assembly DrawingFigure 8-2 AVR128DB48 Curiosity Nano Assembly Drawing Top

+

Cb

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20001 PAC20002 COC200

PAC20101 PAC20102 COC201

PAC20201 PAC20202 COC202 PAC20301

PAC20302 COC203

PAC20401

PAC20402 COC204

PAC20502

PAC20501 COC205

PAC20601

PAC20602 COC206 PAC20701

PAC20702 COC207 PAD10002 PAD10001 COD100

PAD20002

PAD20001 COD200

PAF10002

PAF10001 COF100

PAJ10002 PAJ10001 COJ100

PAJ10101 PAJ10102 COJ101

PAJ10201

PAJ10202

PAJ10203

PAJ10204

PAJ10205

PAJ10206 COJ102

PAJ10506

PAJ10507 PAJ10509

PAJ10508 PAJ105010

PAJ105011 PAJ10505

PAJ10504

PAJ10503

PAJ10502

PAJ10501

PAJ10500

COJ105

PAJ200056 PAJ200053

PAJ200028 PAJ20002 PAJ20001

PAJ200051 PAJ200050 PAJ200052 PAJ200049 PAJ200048 PAJ200047 PAJ200046 PAJ200045 PAJ200044 PAJ200043 PAJ200042 PAJ200041 PAJ200040 PAJ200039 PAJ200038 PAJ200037 PAJ200036 PAJ200035 PAJ200034 PAJ200033 PAJ200032 PAJ200031 PAJ200030 PAJ200029

PAJ20003 PAJ20004 PAJ20005 PAJ20006 PAJ20007 PAJ20008 PAJ20009 PAJ200010 PAJ200011 PAJ200012 PAJ200013 PAJ200014 PAJ200015 PAJ200016 PAJ200017 PAJ200018 PAJ200019 PAJ200020 PAJ200021 PAJ200022 PAJ200023 PAJ200026 PAJ200025 PAJ200024 PAJ200027

PAJ200054 PAJ200055 PAJ20000

COJ200

PAJ20102 PAJ20101 COJ201

PAJ20202 PAJ20201 COJ202

PAJ20302 PAJ20301 COJ203

PAJ20402 PAJ20401 COJ204

PAJ20502 PAJ20501 COJ205

PAJ20602 PAJ20601 COJ206 PAJ20702 PAJ20701 COJ207

PAJ20802 PAJ20801 COJ208

PAJ20902 PAJ20901 COJ209

PAJ21001 PAJ21002 PAJ21005 COJ210

PAJ21102 PAJ21101 PAJ21105 COJ211

PAJ21202 PAJ21201 COJ212

PAJ21301 PAJ21302 PAJ21305 COJ213

PAJ21401 PAJ21402 PAJ21405 COJ214

PAJ21502 PAJ21501 COJ215

PAJ21602 PAJ21601 COJ216 PAJ21702 PAJ21701 COJ217

COLABEL1

PAQ10101 PAQ10102 PAQ10103 PAQ10100

COQ101 PAR10002

PAR10001 COR100 PAR10101 PAR10102 COR101

PAR10202 PAR10201 COR102

PAR10302 PAR10301 COR103

PAR10401 PAR10402 COR104

PAR10502

PAR10501 COR105

PAR10601 PAR10602 COR106

PAR10702 PAR10701 COR107

PAR10801

PAR10802 COR108

PAR10901 PAR10902 COR109

PAR11001 PAR11002 COR110

PAR11101 PAR11102 COR111

PAR11201 PAR11202 COR112

PAR11302 PAR11301 COR113

PAR20001 PAR20002 COR200 PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203 PAR20401 PAR20402 COR204

PASW20003

PASW20004 PASW20002

PASW20001 COSW200

PATP10001 COTP100

PATP10101 COTP101 PAU100033

PAU100032 PAU100031 PAU100030 PAU100029 PAU100028 PAU100027 PAU100026 PAU100025 PAU100024

PAU100023

PAU100022

PAU100021

PAU100020

PAU100019

PAU100018

PAU100017 PAU100016 PAU100015 PAU100014 PAU100013 PAU100012 PAU100011 PAU100010

PAU10001

PAU10002

PAU10003

PAU10004

PAU10005

PAU10006

PAU10007

PAU10008 PAU10009

COU100

PAU10107

PAU10104 PAU10105 PAU10106

PAU10103 PAU10102 PAU10101 PAU10100 COU101 PAU10207

PAU10204 PAU10205

PAU10206

PAU10203 PAU10202

PAU10201

COU102

PAU10306

PAU10305 PAU10304 PAU10303

PAU10302 PAU10301 PAU10300

COU103

PAU10406

PAU10405 PAU10404 PAU10403

PAU10402 PAU10401 PAU10400

COU104

PAU10506

PAU10505 PAU10504 PAU10503

PAU10502 PAU10501 PAU10500

COU105

PAU10606

PAU10605 PAU10604 PAU10603

PAU10602 PAU10601 PAU10600

COU106

PAU10706

PAU10705 PAU10704 PAU10703

PAU10702 PAU10701 PAU10700

COU107

PAU1080A1 PAU1080A2

PAU1080B1 PAU1080B2

PAU1080C1 PAU1080C2 COU108

PAU20001 PAU20002 PAU20003 PAU20004 PAU20005 PAU20006 PAU20007 PAU20008 PAU20009 PAU200010 PAU200011 PAU200012 PAU200013 PAU200014 PAU200015 PAU200016 PAU200017 PAU200018 PAU200019 PAU200020 PAU200021 PAU200022 PAU200023 PAU200024 PAU200025 PAU200026 PAU200027 PAU200028 PAU200029 PAU200030 PAU200031 PAU200032 PAU200033 PAU200034 PAU200035 PAU200036

PAU200037 PAU200038 PAU200039 PAU200040 PAU200041 PAU200042 PAU200043 PAU200044 PAU200045 PAU200046 PAU200047 PAU200048

COU200

PAXC20001

PAXC20002 COXC200

PAXC20101 PAXC20102

PAXC20103 PAXC20104 COXC201

Figure 8-3 AVR128DB48 Curiosity Nano Assembly Drawing Bottom

tcR

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20001 PAC20002 COC200

PAC20101 PAC20102 COC201

PAC20201 PAC20202 COC202 PAC20301

PAC20302 COC203

PAC20401

PAC20402 COC204

PAC20502

PAC20501 COC205

PAC20601

PAC20602 COC206 PAC20701

PAC20702 COC207 PAD10002 PAD10001 COD100

PAD20002

PAD20001 COD200

PAF10002

PAF10001 COF100

PAJ10002 PAJ10001 COJ100

PAJ10101 PAJ10102 COJ101

PAJ10201

PAJ10202

PAJ10203

PAJ10204

PAJ10205

PAJ10206 COJ102

PAJ10506

PAJ10507 PAJ10509

PAJ10508 PAJ105010

PAJ105011 PAJ10505

PAJ10504

PAJ10503

PAJ10502

PAJ10501

PAJ10500

COJ105

PAJ200056 PAJ200053

PAJ200028 PAJ20002 PAJ20001

PAJ200051 PAJ200050 PAJ200052 PAJ200049 PAJ200048 PAJ200047 PAJ200046 PAJ200045 PAJ200044 PAJ200043 PAJ200042 PAJ200041 PAJ200040 PAJ200039 PAJ200038 PAJ200037 PAJ200036 PAJ200035 PAJ200034 PAJ200033 PAJ200032 PAJ200031 PAJ200030 PAJ200029

PAJ20003 PAJ20004 PAJ20005 PAJ20006 PAJ20007 PAJ20008 PAJ20009 PAJ200010 PAJ200011 PAJ200012 PAJ200013 PAJ200014 PAJ200015 PAJ200016 PAJ200017 PAJ200018 PAJ200019 PAJ200020 PAJ200021 PAJ200022 PAJ200023 PAJ200026 PAJ200025 PAJ200024 PAJ200027

PAJ200054 PAJ200055 PAJ20000

COJ200

PAJ20102 PAJ20101 COJ201

PAJ20202 PAJ20201 COJ202

PAJ20302 PAJ20301 COJ203

PAJ20402 PAJ20401 COJ204

PAJ20502 PAJ20501 COJ205

PAJ20602 PAJ20601 COJ206 PAJ20702 PAJ20701 COJ207

PAJ20802 PAJ20801 COJ208

PAJ20902 PAJ20901 COJ209

PAJ21001 PAJ21002 PAJ21005 COJ210

PAJ21102 PAJ21101 PAJ21105 COJ211

PAJ21202 PAJ21201 COJ212

PAJ21301 PAJ21302 PAJ21305 COJ213

PAJ21401 PAJ21402 PAJ21405 COJ214

PAJ21502 PAJ21501 COJ215

PAJ21602 PAJ21601 COJ216 PAJ21702 PAJ21701 COJ217

COLABEL1

PAQ10101 PAQ10102 PAQ10103 PAQ10100

COQ101 PAR10002

PAR10001 COR100 PAR10101 PAR10102 COR101

PAR10202 PAR10201 COR102

PAR10302 PAR10301 COR103

PAR10401 PAR10402 COR104

PAR10502

PAR10501 COR105

PAR10601 PAR10602 COR106

PAR10702 PAR10701 COR107

PAR10801

PAR10802 COR108

PAR10901 PAR10902 COR109

PAR11001 PAR11002 COR110

PAR11101 PAR11102 COR111

PAR11201 PAR11202 COR112

PAR11302 PAR11301 COR113

PAR20001 PAR20002 COR200 PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203 PAR20401 PAR20402 COR204

PASW20003

PASW20004 PASW20002

PASW20001 COSW200

PATP10001 COTP100

PATP10101 COTP101 PAU100033

PAU100032 PAU100031 PAU100030 PAU100029 PAU100028 PAU100027 PAU100026 PAU100025 PAU100024

PAU100023

PAU100022

PAU100021

PAU100020

PAU100019

PAU100018

PAU100017 PAU100016 PAU100015 PAU100014 PAU100013 PAU100012 PAU100011 PAU100010

PAU10001

PAU10002

PAU10003

PAU10004

PAU10005

PAU10006

PAU10007

PAU10008 PAU10009

COU100

PAU10107

PAU10104 PAU10105 PAU10106

PAU10103 PAU10102 PAU10101 PAU10100 COU101 PAU10207

PAU10204 PAU10205

PAU10206

PAU10203 PAU10202

PAU10201

COU102

PAU10306

PAU10305 PAU10304 PAU10303

PAU10302 PAU10301 PAU10300

COU103

PAU10406

PAU10405 PAU10404 PAU10403

PAU10402 PAU10401 PAU10400

COU104

PAU10506

PAU10505 PAU10504 PAU10503

PAU10502 PAU10501 PAU10500

COU105

PAU10606

PAU10605 PAU10604 PAU10603

PAU10602 PAU10601 PAU10600

COU106

PAU10706

PAU10705 PAU10704 PAU10703

PAU10702 PAU10701 PAU10700

COU107

PAU1080A1 PAU1080A2

PAU1080B1 PAU1080B2

PAU1080C1 PAU1080C2 COU108

PAU20001 PAU20002 PAU20003 PAU20004 PAU20005 PAU20006 PAU20007 PAU20008 PAU20009 PAU200010 PAU200011 PAU200012 PAU200013 PAU200014 PAU200015 PAU200016 PAU200017 PAU200018 PAU200019 PAU200020 PAU200021 PAU200022 PAU200023 PAU200024 PAU200025 PAU200026 PAU200027 PAU200028 PAU200029 PAU200030 PAU200031 PAU200032 PAU200033 PAU200034 PAU200035 PAU200036

PAU200037 PAU200038 PAU200039 PAU200040 PAU200041 PAU200042 PAU200043 PAU200044 PAU200045 PAU200046 PAU200047 PAU200048

COU200

PAXC20001

PAXC20002 COXC200

PAXC20101 PAXC20102

PAXC20103 PAXC20104 COXC201

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 36

83 Curiosity Nano Base for Click boardstrade

Figure 8-4 AVR128DB48 Curiosity Nano Pinout Mapping

US

B

DE

BU

GG

ER

AV

R1

28

DB

48

SW

0

LE

D0

PS

LE

DNC

NC

ID

ID

CDC RX

CDCRX

USART3 TX

PB0

CDC TX

CDCTX

USART3 RX

PB1

DBG1

DBG1

PB3

LED0

DBG2

DBG2

PB2

SW0

PF4

PF4

USART2 TX

PF5

PF5

USART2 RX

PA2

PA2

TWI0 SDA

PA3

PA3

TWI0 SCL

PA4

PA4

SPI0 MOSI

PA5

PA5

SPI0 MISO

PA6

PA6

SPI0 SCK

PA7

PA7

SPI0 SS

GND

GND

PB0

PB0

USART3 TX

CDC RX

PB1

PB1

USART3 RX

CDC TX

PF2

PF2

PF3

PF3

PC0

PC0

PC1

PC1

PC2

PC2

PC3

PC3

GND

GND

(PA0)

(PA0)

XTALHF1

(PA1)

(PA1)

XTALHF2

PB2

PB2

SW0

PB3

PB3

LED0

VBUS

VBUS

VOFF

VOFF

DBG3

DBG3

PF6

DBG0

DBG0

UPDI

GND

GND

VTG

VTG

PD6

PD6

AIN6

PD3

PD3

AIN3

OP0 INN

PD2

PD2

AIN2

OP0 OUT

TCA0 WO2

PD1

PD1

AIN1

OP0 INP

TCA0 WO1

PD0

PD0

AIN0

TCA0 WO0

PD7

PD7

AIN7

OP1 INN

PD5

PD5

AIN5

OP1 OUT

PD4

PD4

AIN4

OP1 INP

GND

GND

PE3

PE3

OP2 INN

PE2

PE2

OP2 OUT

PE1

PE1

OP2 INP

PE0

PE0

PC7

PC7

PC6

PC6

PC5

PC5

PC4

PC4

GND

GND

PB5

PB5

PB4

PB4

(PF1)

(PF1)

XTAL32K2

(PF0)

(PF0)

XTAL32K1

DE

BU

GG

ER

AV

R1

28

DB

48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

MVIO

OPAMP

Shared pin

AV

R1

28

DB

48

Cu

rio

sity

Na

no

1

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

2

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

3

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

Xp

lain

ed

Pro

Ext

en

sio

nE

XT

11

2

19

20

Cu

rio

sity

Na

no

Ba

sefo

r cl

ick

bo

ard

sT

M

PD4

PD0

PD6

PD3

PA7

PF5

PA6

PF4

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

PD5

PD1

PF3

PF2

PE2

PB1

PA6

PB0

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

PD7

PD2

PE1

PE0

PE3

PF5

PA6

PF4

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

ID

GND

PD5

PD7

PF3

PE1

PD1

PD2

PF2

PE3

PA2

PA3

PB1

PB0

PE2

PA4

PA5

PA6

GND

+33V

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 37

84 Disconnecting the On-board DebuggerThe on-board debugger and level shifters can be completely disconnected from the AVR128DB48

The block diagram below shows all connections between the debugger and the AVR128DB48 The rounded boxesrepresent connections to the board edge The signal names shown are also printed in silkscreen on the bottom sideof the board

To disconnect the debugger cut the straps shown in Figure 8-6

Attention  Cutting the GPIO straps to the on-board debugger will disable the virtual serial portprogramming debugging and data streaming Cutting the power supply strap will disconnect the on-boardpower supply

Tip  Any connection that is cut can be reconnected using solder Alternatively a 0Ω 0402 resistor can bemounted

Tip  When the debugger is disconnected an external debugger can be connected to holes shown in Figure 8-6 Details about connecting an external debugger are described in 46 Connecting ExternalDebuggers

Figure 8-5  On-Board Debugger Connections Block Diagram

DE

BU

GG

ER

TARGETLevel-Shift

PA04PA06PA07PA08PA16PA00PA01

USB

DIR x 5

VCC_P3V3

VBUS

VC

C_L

EV

EL

VC

C_T

AR

GE

TDBG0DBG1DBG2DBG3CDC TXCDC RX

CDC RX

CDC TX

DBG3

DBG2

DBG1

DBG0

GPIO straps

LDO

VOFF

LDO

VBUS VTG

VCC_EDGE

Power Supply strap Target Power strap

UART RXUART TX

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 38

Figure 8-6 On-Board Debugger Connection Cut Straps

GPIO straps (bottom side) Power Supply strap (top side)

85 Getting Started with IARIAR Embedded Workbenchreg for AVRreg is a proprietary high-efficiency compiler not based on GCC Programming anddebugging of AVR128DB48 Curiosity Nano is supported in IARtrade Embedded Workbench for AVR using the Atmel-ICEinterface Some initial settings must be set up in the project to get the programming and debugging to work

The following steps will explain how to get your project ready for programming and debugging

1 Make sure you have opened the project you want to configure Open the OPTIONS dialog for the project2 In the category General Options select the Target tab Select the device for the project or if not listed the

core of the device as shown in Figure 8-73 In the category Debugger select the Setup tab Select Atmel-ICE as the driver as shown in Figure 8-84 In the category Debugger gt Atmel-ICE select the Atmel-ICE 1 tab Select UPDI as the interface and

optionally select the UPDI frequency as shown in Figure 8-9

Info  If the selection of Debug Port (mentioned in step 4) is grayed out the interface is preselected andthe user can skip this configuration step

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 39

Figure 8-7 Select Target Device

Figure 8-8 Select Debugger

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 40

Figure 8-9 Configure Interface

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 41

The Microchip Website

Microchip provides online support via our website at wwwmicrochipcom This website is used to make files andinformation easily available to customers Some of the content available includes

bull Product Support ndash Data sheets and errata application notes and sample programs design resources userrsquosguides and hardware support documents latest software releases and archived software

bull General Technical Support ndash Frequently Asked Questions (FAQs) technical support requests onlinediscussion groups Microchip design partner program member listing

bull Business of Microchip ndash Product selector and ordering guides latest Microchip press releases listing ofseminars and events listings of Microchip sales offices distributors and factory representatives

Product Change Notification Service

Microchiprsquos product change notification service helps keep customers current on Microchip products Subscribers willreceive email notification whenever there are changes updates revisions or errata related to a specified productfamily or development tool of interest

To register go to wwwmicrochipcompcn and follow the registration instructions

Customer Support

Users of Microchip products can receive assistance through several channels

bull Distributor or Representativebull Local Sales Officebull Embedded Solutions Engineer (ESE)bull Technical Support

Customers should contact their distributor representative or ESE for support Local sales offices are also available tohelp customers A listing of sales offices and locations is included in this document

Technical support is available through the website at wwwmicrochipcomsupport

Microchip Devices Code Protection Feature

Note the following details of the code protection feature on Microchip devices

bull Microchip products meet the specifications contained in their particular Microchip Data Sheetbull Microchip believes that its family of products is secure when used in the intended manner and under normal

conditionsbull There are dishonest and possibly illegal methods being used in attempts to breach the code protection features

of the Microchip devices We believe that these methods require using the Microchip products in a manneroutside the operating specifications contained in Microchiprsquos Data Sheets Attempts to breach these codeprotection features most likely cannot be accomplished without violating Microchiprsquos intellectual property rights

bull Microchip is willing to work with any customer who is concerned about the integrity of its codebull Neither Microchip nor any other semiconductor manufacturer can guarantee the security of its code Code

protection does not mean that we are guaranteeing the product is ldquounbreakablerdquo Code protection is constantlyevolving We at Microchip are committed to continuously improving the code protection features of our productsAttempts to break Microchiprsquos code protection feature may be a violation of the Digital Millennium Copyright ActIf such acts allow unauthorized access to your software or other copyrighted work you may have a right to suefor relief under that Act

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 42

Legal Notice

Information contained in this publication is provided for the sole purpose of designing with and using Microchipproducts Information regarding device applications and the like is provided only for your convenience and may besuperseded by updates It is your responsibility to ensure that your application meets with your specifications

THIS INFORMATION IS PROVIDED BY MICROCHIP ldquoAS ISrdquo MICROCHIP MAKES NO REPRESENTATIONS ORWARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED WRITTEN OR ORAL STATUTORY OROTHERWISE RELATED TO THE INFORMATION INCLUDING BUT NOT LIMITED TO ANY IMPLIEDWARRANTIES OF NON-INFRINGEMENT MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSEOR WARRANTIES RELATED TO ITS CONDITION QUALITY OR PERFORMANCE

IN NO EVENT WILL MICROCHIP BE LIABLE FOR ANY INDIRECT SPECIAL PUNITIVE INCIDENTAL ORCONSEQUENTIAL LOSS DAMAGE COST OR EXPENSE OF ANY KIND WHATSOEVER RELATED TO THEINFORMATION OR ITS USE HOWEVER CAUSED EVEN IF MICROCHIP HAS BEEN ADVISED OF THEPOSSIBILITY OR THE DAMAGES ARE FORESEEABLE TO THE FULLEST EXTENT ALLOWED BY LAWMICROCHIPS TOTAL LIABILITY ON ALL CLAIMS IN ANY WAY RELATED TO THE INFORMATION OR ITS USEWILL NOT EXCEED THE AMOUNT OF FEES IF ANY THAT YOU HAVE PAID DIRECTLY TO MICROCHIP FORTHE INFORMATION Use of Microchip devices in life support andor safety applications is entirely at the buyerrsquos riskand the buyer agrees to defend indemnify and hold harmless Microchip from any and all damages claims suits orexpenses resulting from such use No licenses are conveyed implicitly or otherwise under any Microchip intellectualproperty rights unless otherwise stated

Trademarks

The Microchip name and logo the Microchip logo Adaptec AnyRate AVR AVR logo AVR Freaks BesTimeBitCloud chipKIT chipKIT logo CryptoMemory CryptoRF dsPIC FlashFlex flexPWR HELDO IGLOO JukeBloxKeeLoq Kleer LANCheck LinkMD maXStylus maXTouch MediaLB megaAVR Microsemi Microsemi logo MOSTMOST logo MPLAB OptoLyzer PackeTime PIC picoPower PICSTART PIC32 logo PolarFire Prochip DesignerQTouch SAM-BA SenGenuity SpyNIC SST SST Logo SuperFlash Symmetricom SyncServer TachyonTempTrackr TimeSource tinyAVR UNIO Vectron and XMEGA are registered trademarks of Microchip TechnologyIncorporated in the USA and other countries

APT ClockWorks The Embedded Control Solutions Company EtherSynch FlashTec Hyper Speed ControlHyperLight Load IntelliMOS Libero motorBench mTouch Powermite 3 Precision Edge ProASIC ProASIC PlusProASIC Plus logo Quiet-Wire SmartFusion SyncWorld Temux TimeCesium TimeHub TimePictra TimeProviderVite WinPath and ZL are registered trademarks of Microchip Technology Incorporated in the USA

Adjacent Key Suppression AKS Analog-for-the-Digital Age Any Capacitor AnyIn AnyOut BlueSky BodyComCodeGuard CryptoAuthentication CryptoAutomotive CryptoCompanion CryptoController dsPICDEMdsPICDEMnet Dynamic Average Matching DAM ECAN EtherGREEN In-Circuit Serial Programming ICSPINICnet Inter-Chip Connectivity JitterBlocker KleerNet KleerNet logo memBrain Mindi MiWi MPASM MPFMPLAB Certified logo MPLIB MPLINK MultiTRAK NetDetach Omniscient Code Generation PICDEMPICDEMnet PICkit PICtail PowerSmart PureSilicon QMatrix REAL ICE Ripple Blocker SAM-ICE Serial QuadIO SMART-IS SQI SuperSwitcher SuperSwitcher II Total Endurance TSHARC USBCheck VariSenseViewSpan WiperLock Wireless DNA and ZENA are trademarks of Microchip Technology Incorporated in the USAand other countries

SQTP is a service mark of Microchip Technology Incorporated in the USA

The Adaptec logo Frequency on Demand Silicon Storage Technology and Symmcom are registered trademarks ofMicrochip Technology Inc in other countries

GestIC is a registered trademark of Microchip Technology Germany II GmbH amp Co KG a subsidiary of MicrochipTechnology Inc in other countries

All other trademarks mentioned herein are property of their respective companiescopy 2020 Microchip Technology Incorporated Printed in the USA All Rights Reserved

ISBN 978-1-5224-6667-3

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 43

Quality Management SystemFor information regarding Microchiprsquos Quality Management Systems please visit wwwmicrochipcomquality

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 44

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupportwwwmicrochipcomsupportWeb AddresswwwmicrochipcomAtlantaDuluth GATel 678-957-9614Fax 678-957-1455Austin TXTel 512-257-3370BostonWestborough MATel 774-760-0087Fax 774-760-0088ChicagoItasca ILTel 630-285-0071Fax 630-285-0075DallasAddison TXTel 972-818-7423Fax 972-818-2924DetroitNovi MITel 248-848-4000Houston TXTel 281-894-5983IndianapolisNoblesville INTel 317-773-8323Fax 317-773-5453Tel 317-536-2380Los AngelesMission Viejo CATel 949-462-9523Fax 949-462-9608Tel 951-273-7800Raleigh NCTel 919-844-7510New York NYTel 631-435-6000San Jose CATel 408-735-9110Tel 408-436-4270Canada - TorontoTel 905-695-1980Fax 905-695-2078

Australia - SydneyTel 61-2-9868-6733China - BeijingTel 86-10-8569-7000China - ChengduTel 86-28-8665-5511China - ChongqingTel 86-23-8980-9588China - DongguanTel 86-769-8702-9880China - GuangzhouTel 86-20-8755-8029China - HangzhouTel 86-571-8792-8115China - Hong Kong SARTel 852-2943-5100China - NanjingTel 86-25-8473-2460China - QingdaoTel 86-532-8502-7355China - ShanghaiTel 86-21-3326-8000China - ShenyangTel 86-24-2334-2829China - ShenzhenTel 86-755-8864-2200China - SuzhouTel 86-186-6233-1526China - WuhanTel 86-27-5980-5300China - XianTel 86-29-8833-7252China - XiamenTel 86-592-2388138China - ZhuhaiTel 86-756-3210040

India - BangaloreTel 91-80-3090-4444India - New DelhiTel 91-11-4160-8631India - PuneTel 91-20-4121-0141Japan - OsakaTel 81-6-6152-7160Japan - TokyoTel 81-3-6880- 3770Korea - DaeguTel 82-53-744-4301Korea - SeoulTel 82-2-554-7200Malaysia - Kuala LumpurTel 60-3-7651-7906Malaysia - PenangTel 60-4-227-8870Philippines - ManilaTel 63-2-634-9065SingaporeTel 65-6334-8870Taiwan - Hsin ChuTel 886-3-577-8366Taiwan - KaohsiungTel 886-7-213-7830Taiwan - TaipeiTel 886-2-2508-8600Thailand - BangkokTel 66-2-694-1351Vietnam - Ho Chi MinhTel 84-28-5448-2100

Austria - WelsTel 43-7242-2244-39Fax 43-7242-2244-393Denmark - CopenhagenTel 45-4485-5910Fax 45-4485-2829Finland - EspooTel 358-9-4520-820France - ParisTel 33-1-69-53-63-20Fax 33-1-69-30-90-79Germany - GarchingTel 49-8931-9700Germany - HaanTel 49-2129-3766400Germany - HeilbronnTel 49-7131-72400Germany - KarlsruheTel 49-721-625370Germany - MunichTel 49-89-627-144-0Fax 49-89-627-144-44Germany - RosenheimTel 49-8031-354-560Israel - RarsquoananaTel 972-9-744-7705Italy - MilanTel 39-0331-742611Fax 39-0331-466781Italy - PadovaTel 39-049-7625286Netherlands - DrunenTel 31-416-690399Fax 31-416-690340Norway - TrondheimTel 47-72884388Poland - WarsawTel 48-22-3325737Romania - BucharestTel 40-21-407-87-50Spain - MadridTel 34-91-708-08-90Fax 34-91-708-08-91Sweden - GothenbergTel 46-31-704-60-40Sweden - StockholmTel 46-8-5090-4654UK - WokinghamTel 44-118-921-5800Fax 44-118-921-5820

Worldwide Sales and Service

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 45

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Board Overview
      • 2 Getting Started
        • 21 Quick Start
          • 211 Driver Installation
          • 212 Kit Window
          • 213 MPLABreg X IDE Device Family Packs
          • 214 Atmel Studio 7 Device Family Pack
            • 22 Design Documentation and Relevant Links
              • 3 Preprogrammed Application
              • 4 Curiosity Nano
                • 41 On-Board Debugger Overview
                  • 411 Debugger
                  • 412 Virtual Serial Port (CDC)
                    • 4121 Overview
                    • 4122 Operating System Support
                    • 4123 Limitations
                    • 4124 Signaling
                    • 4125 Advanced Use
                      • 413 Mass Storage Device
                        • 4131 Mass Storage Device Implementation
                        • 4132 Limitations of Drag-and-Drop Programming
                        • 4133 Special Commands
                          • 414 Data Gateway Interface (DGI)
                            • 4141 Debug GPIO
                            • 4142 Timestamping
                                • 42 Curiosity Nano Standard Pinout
                                • 43 Power Supply
                                  • 431 Target Regulator
                                  • 432 External Supply
                                  • 433 VBUS Output Pin
                                  • 434 Power Supply Exceptions
                                    • 44 Low-Power Measurement
                                    • 45 Programming External Microcontrollers
                                      • 451 Supported Devices
                                      • 452 Software Configuration
                                      • 453 Hardware Modifications
                                      • 454 Connecting to External Microcontrollers
                                        • 46 Connecting External Debuggers
                                          • 5 Hardware User Guide
                                            • 51 Connectors
                                              • 511 AVR128DB48 Curiosity Nano Pinout
                                              • 512 Using Pin Headers
                                              • 513 Multi-Voltage IO
                                              • 514 Operational Amplifiers
                                                • 52 Peripherals
                                                  • 521 LED
                                                  • 522 Mechanical Switch
                                                  • 523 32768 kHz Crystal
                                                  • 524 1600 MHz Crystal
                                                  • 525 On-Board Debugger Implementation
                                                    • 5251 On-Board Debugger Connections
                                                      • 6 Hardware Revision History and Known Issues
                                                        • 61 Identifying Product ID and Revision
                                                        • 62 Revision 3
                                                        • 63 Revision 2
                                                          • 7 Document Revision History
                                                          • 8 Appendix
                                                            • 81 Schematic
                                                            • 82 Assembly Drawing
                                                            • 83 Curiosity Nano Base for Click boardstrade
                                                            • 84 Disconnecting the On-board Debugger
                                                            • 85 Getting Started with IAR
                                                              • The Microchip Website
                                                              • Product Change Notification Service
                                                              • Customer Support
                                                              • Microchip Devices Code Protection Feature
                                                              • Legal Notice
                                                              • Trademarks
                                                              • Quality Management System
                                                              • Worldwide Sales and Service
Page 23: AVR128DB48 Curiosity Nano Hardware User Guideww1.microchip.com/downloads/en/DeviceDoc/AVR128DB48-Curiosit… · 4. Curiosity Nano Curiosity Nano is an evaluation platform of small

Figure 4-10 Curiosity Nano Standard Pinout

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

Table 4-4 Programming and Debugging Interfaces

Curiosity Nano Pin UPDI ICSPtrade SWD

DBG0 UPDI DATA SWDIO

DBG1 mdash CLK SWCLK

DBG2 mdash mdash mdash

DBG3 mdash MCLR RESET

46 Connecting External DebuggersEven though there is an on-board debugger external debuggers can be connected directly to the AVR128DB48Curiosity Nano to programdebug the AVR128DB48 The on-board debugger keeps all the pins connected to theAVR128DB48 and board edge in tri-state when not actively used Therefore the on-board debugger will not interferewith any external debug tools

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 23

Figure 4-11 Connecting the MPLABreg PICkittrade 4 In-Circuit DebuggerProgrammer to AVR128DB48 CuriosityNano

2345678 1

VDD

GroundDATA

2 = VDD

3 = Ground

4 = PGD

5 = Unused

6 = Unused

7 = Unused

8 = Unused

1 = Unused

MPLABreg PICkittrade 4

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 24

Figure 4-12 Connecting the Atmel-ICE to AVR128DB48 Curiosity Nano

VDD

Ground

DATA

AVRregSAM

3 = UPDI

4 = VTG

5 = Unused

6 = Unused

7 = Unused

8 = Unused

1 = Unused

2 = GND

9 = Unused

10 = Unused

Atmel-ICE

21 9

10

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

CAUTIONTo avoid contention between the external debugger and the on-board debugger do not start anyprogrammingdebug operation with the on-board debugger through MPLABreg X IDE or Atmel Studio 7 ormass storage programming while the external tool is active

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 25

5 Hardware User Guide

51 Connectors

511 AVR128DB48 Curiosity Nano PinoutAll the AVR128DB48 IO pins are accessible at the edge connectors on the board The image below shows the boardpinout For all available functions on each pin refer to the IO Multiplexing and Considerations section in theAVR128DB48 data sheet

Figure 5-1 AVR128DB48 Curiosity Nano Pinout

USB

DEBUGGER

AVR128DB48

SW0

LED0

PS LEDNC

NC

IDID

CDC RX

CD

CR

XUSART3 TXPB0

CDC TX

CD

CT

XUSART3 RXPB1

DBG1

DB

G1PB3LED0

DBG2

DB

G2PB2SW0

PF4

PF

4USART2 TX

PF5

PF

5USART2 RX

PA2

PA

2TWI0 SDA

PA3

PA

3TWI0 SCL

PA4

PA

4SPI0 MOSI

PA5

PA

5SPI0 MISO

PA6

PA

6SPI0 SCK

PA7

PA

7SPI0 SS

GND

GN

D

PB0

PB

0USART3 TXCDC RX

PB1

PB

1USART3 RXCDC TX

PF2

PF

2

PF3

PF

3

PC0

PC

0

PC1

PC

1

PC2

PC

2

PC3

PC

3

GND

GN

D

(PA0)

(PA

0)XTALHF1

(PA1)

(PA

1)XTALHF2

PB2

PB

2SW0

PB3

PB

3LED0

VBUS

VB

US

VOFF

VO

FF

DBG3

DB

G3 PF6

DBG0

DB

G0 UPDI

GND

GN

D

VTG

VT

G

PD6

PD

6 AIN6

PD3

PD

3 AIN3 OP0 INN

PD2

PD

2 AIN2 OP0 OUT TCA0 WO2

PD1

PD

1 AIN1 OP0 INP TCA0 WO1

PD0

PD

0 AIN0 TCA0 WO0

PD7

PD

7 AIN7 OP1 INN

PD5

PD

5 AIN5 OP1 OUT

PD4

PD

4 AIN4 OP1 INP

GND

GN

D

PE3

PE

3 OP2 INN

PE2

PE

2 OP2 OUT

PE1

PE

1 OP2 INP

PE0

PE

0

PC7

PC

7

PC6

PC

6

PC5

PC

5

PC4

PC

4

GND

GN

D

PB5

PB

5

PB4

PB

4

(PF1)

(PF

1) XTAL32K2

(PF0)

(PF

0) XTAL32K1

DEBUGGERAVR128DB48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

MVIO

OPAMP

Shared pin

AVR128DB48Curiosity Nano

512 Using Pin HeadersThe edge connector footprint on AVR128DB48 Curiosity Nano has a staggered design where each hole is shifted 8mil (~02 mm) off-center The hole shift allows the use of regular 100 mil pin headers on the board without solderingOnce the pin headers are firmly in place they can be used in normal applications like pin sockets and prototypingboards without any issues

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 26

Figure 5-2 Attaching Pin-Headers to the Curiostiy Nano Board

Figure 5-3 Connecting to Curiosity Nano Base for Click boardstrade

Tip  Start at one end of the pin header and gradually insert the header along the length of the boardOnce all the pins are in place use a flat surface to push them in

Tip  For applications where the pin headers will be used permanently it is still recommended to solderthem in place

Important  Once the pin headers are in place they are hard to remove by hand Use a set of pliers andcarefully remove the pin headers to avoid damage to the pin headers and PCB

513 Multi-Voltage IO

The AVR128DB48 Curiosity Nano MCU has support for Multi-Voltage IO (MVIO) AVR128DB48 MVIO pins areconnected to the edge connector at PC0-PC7 MVIO pins are capable of regular IO-pin behavior

MVIO can be configured in one of two supply modesbull Single-Supply mode All IO pins including MVIO-capable pins are powered by VCC_TARGET By default

VCC_TARGET is connected to VDDIO2 through a 0-ohm resistor (R204)bull Dual-Supply mode MVIO-capable pins are powered by an external power supply connected to VDDIO2 Non-

MVIO pins are powered by VCC_TARGET

Dual-Supply mode allows MVIO-pins to be powered at different voltages than pins powered from VCC_TARGET

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 27

WARNINGThe absolute maximum external voltage range for the AVR128DB48 is 18ndash55V Applying a higher voltagemay cause permanent damage to the board

By default AVR128DB48 Curiosity Nano board is configured for single-supply mode To use Dual-Supply mode somehardware modifications are required

WARNINGBefore any hardware modifications are done make sure the board is disconnected from USB or externalpower

bull Disconnect resistor R204 connecting VDDIO2 to VCC_TARGETbull Connect a new power supply to VDDIO2 and ground at J212bull J212 does not have reverse polarity protection Make sure to match polarity between the power supply and

J212 Positive-polarity to J212-pin 1 and negative-polarity to J212-pin 2

The resistor R204 VDDIO2 and J212 can be seen in Figure 5-4

Figure 5-4 MVIO and VDDIO2 Connections

J212 R204

WARNINGApplying an external voltage to VDDIO2 pin without removing resistor R204 may cause permanentdamage to the board

WARNINGJ212 does not have reverse polarity protection Applying voltage to the wrong pin may cause permanentdamage to the board

514 Operational AmplifiersAVR128DB48 features three internal operational amplifiers with a flexible connection scheme using analogmultiplexers and resistor ladders This allows a large number of analog signal conditioning configurations manyrequiring no external components

Table 5-1 OPAMP Pin Connections

OPAMP Poisitive Input (INP) Negative Input (INN) Output (OUT)

OP0 PD1 PD3 PD2

OP1 PD4 PD7 PD5

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 28

continuedOPAMP Poisitive Input (INP) Negative Input (INN) Output (OUT)

OP2 PE1 PE3 PE2

For information about OPAMP on the edge connector and any shared functionality see 511 AVR128DB48 CuriosityNano Pinout

52 Peripherals

521 LEDThere is one yellow user LED available on the AVR128DB48 Curiosity Nano board that can be controlled by eitherGPIO or PWM The LED can be activated by driving the connected IO line to GND

Table 5-2 LED Connection

AVR128DB48 Pin Function Shared Functionality

PB3 Yellow LED0 Edge connector On-board debugger

522 Mechanical SwitchThe AVR128DB48 Curiosity Nano board has one mechanical switch This is a generic user-configurable switchWhen the switch is pressed it will drive the IO line to ground (GND)

Tip  There is no externally connected pull-up resistor on the switch To use the switch make sure that aninternal pull-up resistor is enabled on pin PB2

Table 5-3 Mechanical Switch

AVR128DB48 Pin Description Shared Functionality

PB2 User switch (SW0) Edge connector On-board debugger

523 32768 kHz Crystal

On the AVR128DB48 Curiosity Nano board is a mounted 32768 kHz crystal of type VMK3-9001-32K7680000 thecrystal is accurate to within 20 ppm Using the External 32768 kHz Crystal Oscillator (XOSC32K) module inAVR128DB48 with the mounted 32768 kHz crystal generates a clock signal that is significantly more accurate thanthe Internal 32768 kHz Ultra Low-Power Oscillator (OSC32K) module can generate alone With the Auto-Tunefeature the 32768 kHz can be used as a reference to improve the accuracy of the internal oscillator This is an idealreference clock for the Real-Time Counter module in AVR128DB48

The 32768 kHz crystal is connected to AVR128DB48 on PF0 and PF1 which are also routed to the edge connectorthrough two solder points PF0 and PF1 are disconnected from the edge connector by default to reduce the chanceof an external signal causing contention with the crystal and to remove excessive capacitance on the lines

Next to the 32768 kHz crystal is a cut-strap (J209) which can be used to measure the oscillator safety factor This isdone by cutting the strap and adding a 0402 SMD resistor across the strap More information about oscillatorallowance and safety factor can be found in the AN2648 application note from Microchip

Cut straps and solder points can be seen in Figure 5-5

Table 5-4 32768 kHz Crystal Connections

AVR128DB48 Pin Function Shared Functionality

PF0 XTAL32K1 (Crystal input) Edge connector

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 29

continuedAVR128DB48 Pin Function Shared Functionality

PF1 XTAL32K2 (Crystal output) Edge connector

PA0 and PA1 can be used as GPIO To do so some hardware modifications are required

WARNINGBefore any hardware modifications are done make sure the board is disconnected from the USB orexternal power

bull Disconnect the 32768 kHz crystal by cutting the two straps on the top side of the board next to the crystal(J207 J208) The crystal should be disconnected when using the pin as GPIO as this might harm the crystal

bull Connect the IO lines to the edge connector by placing solder blobs on the circular solder points marked PF0and PF1 on the bottom side of the board (J210 J211)

Figure 5-5 Crystal Connection and Cut Straps

Top side Boom side

J211

J210

J207

J20832768 kHz Crystal

J209

524 1600 MHz Crystal

On the AVR128DB48 Curiosity Nano board is a mounted 1600 MHz crystal of type VXM7-9040-16M0000000 thecrystal is accurate to within 20 ppm Using the External High-Frequency Crystal Oscillator (XOSCHF) module inAVR128DB48 with the mounted 1600 MHz crystal generates a clock signal that is significantly more accurate thanthe Internal High-Frequency Oscillator (OSCHF) module

The 1600 MHz crystal is connected to AVR128DB48 on PA0 and PA1 which are also routed to the edge connectorthrough two solder points PA0 and PA1 are disconnected from the edge connector by default to reduce the chanceof an external signal causing contention with the crystal and to remove excessive capacitance on the lines

Next to the 1600 MHz crystal is a cut-strap (J217) which can be used to measure the oscillator safety factor This isdone by cutting the strap and adding a 0402 SMD resistor across the strap More information about oscillatorallowance and safety factor can be found in the AN2648 application note from Microchip

Cut straps and solder points can be seen in Figure 5-6

Table 5-5 Crystal Connections

AVR128DB48 Pin Function Shared Functionality

PA0 XTALHF1 (Crystal input) Edge connector

PA1 XTALHF2 (Crystal output) Edge connector

PA0 and PA1 can be used as GPIO To do so some hardware modifications are required

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 30

WARNINGBefore any hardware modifications are done make sure the board is disconnected from USB or externalpower

bull Disconnect the 1600 MHz crystal by cutting the two straps on the top side of the board next to the crystal (J215J216) The crystal should be disconnected when using the pin as GPIO as this might harm the crystal

bull Connect the IO lines to the edge connector by placing solder blobs on the circular solder points marked PA0and PA1 on the bottom side of the board (J213 J214)

Figure 5-6 Crystal Connection and Cut Straps

Top side Boom side

J214

J213

J216

J2151600 MHzCrystal

J217

525 On-Board Debugger ImplementationAVR128DB48 Curiosity Nano features an on-board debugger that can be used to program and debug theAVR128DB48 using UPDI The on-board debugger also includes a virtual serial port (CDC) interface over UART anddebug GPIO Both MPLABreg X IDE and Atmel Studio 7 can be used as a front-end for the on-board debugger forprogramming and debugging MPLAB Data Visualizer can be used as a front-end for the CDC and debug GPIO

5251 On-Board Debugger ConnectionsThe table below shows the connections between the target and the debugger section All connections between thetarget and the debugger are tri-stated as long as the debugger is not actively using the interface Hence since thereare little contaminations of the signals the pins can be configured to anything the user wants

For further information on how to use the capabilities of the on-board debugger see 41 On-Board DebuggerOverview

Table 5-6 On-Board Debugger Connections

AVR128DB48Pin

Debugger Pin Function Shared Functionality

PB1 CDC TX UART RX (AVR128DB48 RX line) Edge connector

PB0 CDC RX UART TX (AVR128DB48 TX line) Edge connector

UPDI DBG0 UPDI Edge connector

PB3 DBG1 LED0Debug GPIO1 Edge connector

PB2 DBG2 SW0Debug GPIO0 Edge connector

PF6 DBG3 RESET Edge connector

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 31

6 Hardware Revision History and Known IssuesThis user guide is written to provide information about the latest available revision of the board The followingsections contain information about known issues a revision history of older revisions and how older revisions differfrom the latest revision

61 Identifying Product ID and RevisionThe revision and product identifier of the AVR128DB48 Curiosity Nano Board can be found in two ways Either byutilizing the MPLABreg X IDE or Atmel Studio 7 Kit Window or by looking at the sticker on the bottom side of the PCB

By connecting AVR128DB48 Curiosity Nano to a computer with MPLABreg X IDE or Atmel Studio 7 running the KitWindow will pop up The first six digits of the serial number which is listed under kit information contain the productidentifier and revision

Tip  The Kit Window can be opened in MPLABreg X IDE through the menu bar Window gt Kit Window

The same information can be found on the sticker on the bottom side of the PCB Most boards will have the identifierand revision printed in plain text as A09-nnnnrr where ldquonnnnrdquo is the identifier and ldquorrrdquo is the revision Boards withlimited space have a sticker with only a data matrix code containing the product identifier revision and serialnumber

The serial number string has the following format

nnnnrrssssssssss

n = product identifier

r = revision

s = serial number

The product identifier for AVR128DB48 Curiosity Nano is A09‑3372

62 Revision 3AVR128DB48 silicon revision A5 or later is mounted on this revision of the board

63 Revision 2Revision 2 is the initially released board revision

AVR128DB48 silicon revision A4 is mounted on this revision of the board

AVR128DB48 Curiosity NanoHardware Revision History and Known Issues

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 32

7 Document Revision HistoryDoc Rev Date Comments

A 092020 Initial document release

AVR128DB48 Curiosity NanoDocument Revision History

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 33

8 Appendix

81 SchematicFigure 8-1 AVR128DB48 Curiosity Nano Schematic

11

22

33

44

55

66

77

88

DD

CC

BB

AA

2 of

4

AV

R12

8DB

48 C

uri

osit

y N

ano

240

820

20A

VR

128D

B48

_Cur

iosi

ty_N

ano_

Targ

et_M

CU

Sch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA

Rev

isio

n

File

P

CB

Num

ber

PC

B

Rev

isio

n

Des

ign

ed w

ith

Dra

wn

By

ML

Shee

t Titl

e

Targ

et M

CU

Eng

inee

rA

H

A08

-305

71

Size

A3

A09

-337

22

Page

D

ateA

ltium

com

GN

D

VD

DIO

2

100n

C20

1

GN

D

PA5_

SPI0

_MIS

OPA

6_SP

I0_S

CK

PA7_

SPI0

_SS

PB0_

USA

RT

3_T

XPB

1_U

SAR

T3_

RX

PB2_

SW0_

DB

G2

PB3_

LE

D0_

DB

G1

PB

4P

B5

PC

0P

C1

PC

2

PC3

PC4PC5PC6PC7PD0_AIN0_TCA0_WO0PD1_AIN1_OP0_INP_TCA0_WO1PD2_AIN2_OP0_OUT_TCA0_WO2PD3_AIN3_OP0_INNPD4_AIN4_OP1_INP

PA3_TWI0_SCL

PA1_XTALHF2

UPDI_DBG0

PF5_USART2_RX

PF3

PF

2PF

1_X

TA

L32

K2

PF0_

XT

AL

32K

1P

E3_

OP

2_IN

NP

E2_

OP

2_O

UT

PE

1_O

P2_

INP

PE

0

PD5_

AIN

5_O

P1_

OU

TPD

6_A

IN6

PD7_

AIN

7_O

P1_

INN

GN

D

VC

C_T

AR

GE

T

100n

C20

2

GN

DV

CC

_TA

RG

ET

100n

C20

0

PF1_XTAL32K2

PF0_XTAL32K1

PA2_TWI0_SDA

PA0_XTALHF1

PF4_USART2_TX

PA4_SPI0_MOSI

GN

D

PA7_

SPI0

_SS

PA6_

SPI0

_SC

KPA

5_SP

I0_M

ISO

PA4_

SPI0

_MO

SIPA

3_T

WI0

_SC

LPA

2_T

WI0

_SD

A

PC

0P

C1

PC

2P

C3

PB

4P

B5

PD7_

AIN

7_O

P1_

INN

PD6_

AIN

6

PD2_

AIN

2_O

P0_

OU

T_T

CA

0_W

O2

PD1_

AIN

1_O

P0_

INP_

TC

A0_

WO

1PD

0_A

IN0_

TC

A0_

WO

0

PD5_

AIN

5_O

P1_

OU

TPD

4_A

IN4_

OP

1_IN

P

PD3_

AIN

3_O

P0_

INN

32K

Hz

Cry

stal

PB0_

USA

RT

3_T

XPB

1_U

SAR

T3_

RX

1kR203

US

ER

LE

D

VC

C_T

AR

GE

T

PF6_DBG3

PB2_SW0_DBG2

PB3_LED0_DBG1

GN

D

USE

R B

UT

TO

N

PB3_

LE

D0_

DB

G1

PB2_

SW0_

DB

G2

PB1_

USA

RT

3_R

XPB

0_U

SAR

T3_

TX

PF4_

USA

RT

2_T

XPF

5_U

SAR

T2_

RX

PF

2P

F3

PC

4P

C5

PC

6P

C7

1kR202

YELLOWLEDSML-D12Y1WT86

2 1

D200

TS604VM1-035CR13

4 2

SW20

0

GN

DV

CC

_ED

GE

GN

DG

ND

GN

DG

ND

UPD

I_D

BG

0P

F6_

DB

G3

J209

PB3_

LE

D0_

DB

G1

PB2_

SW0_

DB

G2

AV

R12

8DB

48

22u

FC

205

VC

C_E

DG

E

GN

D

DBG0

CDC_TXCDC_RX

DBG2

DBG1

DBG3

DBG2

DE

BU

GG

ER

CO

NN

EC

TIO

NS

DBG1

DBG3DBG0

VOFF

ID_SYS

ID_SYS

VOFF

TA

RG

ET

BU

LK

VC

C_T

AR

GE

TR

ESE

T P

ull

VB

US

CD

C R

X3

CD

C T

X4

DB

G1

5

DB

G2

6

0 T

X7

1 R

X8

2 SD

A9

3 S

CL

10

4 M

OSI

11

5 M

ISO

12

6 S

CK

13

7 S

S14

GN

D15

0 (T

X)

16

1 (R

X)

17

218

319

020

GN

D24

DB

G3

54

DB

G0

53

GN

D52

VC

C51

PW

M 3

46

AD

C 2

45

AD

C 1

44

AD

C 0

43

GN

D42

438

434

GN

D33

AD

C 7

50

AD

C 6

49

AD

C 5

48

PW

M 4

47

DE

BU

GG

ER

TAR

GE

T

ID2

VO

FF

55

121

222

323

025

126

227

328

429

530

631

732

535

636

737

539

640

741

RE

SER

VE

D1

VB

US

56

CN

AN

O56

-pin

edg

e co

nnec

tor

J200

J201

J203

J205

J206

J202

J204

PF1_

XT

AL

32K

2PF

0_X

TA

L32

K1

NC

XOUT

XIN

47kR200

AV

R12

8DB

48

UPD

I

GPI

O1

GPI

O0

RE

SET

DB

G0

DB

G1

DB

G2

DB

G3

Deb

ugge

r

CD

C T

X

CD

C R

X

UA

RT

3 R

X

UA

RT

3 T

X

VT

G1

8V -

55

VPB

3

PB

2

PF

6

UP

DI

PB

0

PB

1

Nam

eP

in

PE

3_O

P2_

INN

PE

2_O

P2_

OU

TP

E1_

OP

2_IN

PP

E0

J207

J208

PF

0P

F1

PA5

1

PA6

2

PA7

3

PB0

4

PB1

5

PB2

6

PB3

7

PB4

8

PB5

9

PC0

10

PC1

11

PC2

12

PC313

VDDIO214

GND15

PC416

PC517

PC618

PC719

PD020

PD121

PD222

PD323

PD424

PD5

25

PD6

26

PD7

27

AVDD

28

GND

29

PE0

30

PE1

31

PE2

32

PE3

33

XTAL32K1PF0

34

XTAL32K2PF1

35

PF2

36

PF337

PF438

PF539

PF640

UPDI41

VDD42

GND43

XTALHF1PA044

XTALHF2PA145

PA246

PA347

PA448

AV

R12

8DB

48-I

PT

U20

0

0RR204

GN

D

VC

C_T

AR

GE

T

VDDIO2

GND

J210

J211

82p

C20

48

2pC

203

GN

DG

ND

16M

Hz

Cry

stal

J217

XHFOUT

XHFIN

J214

J213

GN

D

J215

J216

PA0_XTALHF1

PA1_XTALHF2

PA0_

XT

AL

HF

1PA

1_X

TA

LH

F2

PA0

PA1

1 2

J212 N

M

15pF

C20

615

pFC

207

13

24 16

000

MH

zV

XM

7-90

40-1

6M00

0000

0TR

XC

201

GN

D32

768

kHz

VM

K3-

9001

-32K

7680

000T

R

XC

200

CDC_TX

CDC_RX

CD

C_T

XC

DC

_RX

Cry

stal

dat

ashe

et

Ccr

ysta

l = 9

pFm

ax E

SR

= 7

0kO

hmA

ccur

acy

plusmn20p

pm

AV

R48

DB

128

data

shee

tC

xin

= 4

0pF

(ty

pica

l val

ue)

Cxo

ut =

40

pF (

typi

cal v

alue

)C

lasymp1

( (1

40

pF)+

(1

40p

F)

)asymp

20p

FM

axim

um L

oad

= 1

25p

FM

axim

um E

SR =

50k

Ohm

Est

imat

ed C

pcb

= 0

5pF

Est

imat

ed lo

adC

= 2

(C

crys

tal-

Cpa

ra -

Cpc

b)C

= 2

(9p

F -

20

pF -

05

pF)

C =

13

0pF

Sele

cted

in d

esig

n af

ter

veri

fica

tion

C=

82

pF8

2pF

NO

TE

on

UA

RT

CD

C

RX

TX

onth

ehe

ader

deno

tes

the

inpu

tout

put d

irec

tion

of th

e si

gnal

resp

ectiv

e to

its

sou

rce

CD

C T

X is

out

put f

rom

the

DE

BU

GG

ER

C

DC

RX

is in

put t

o th

e D

EB

UG

GE

R

TX

is o

utpu

t fro

m th

e T

AR

GE

T d

evic

eR

X is

inpu

t to

the

TA

RG

ET

dev

ice

NO

TE

on

I2C

No

pull

-ups

on

boar

d P

ull-

ups

shou

ld b

em

ount

ed c

lose

to s

lave

dev

ice(

s)

WA

RN

ING

M

ake

sure

tore

mov

e R

204

befo

reap

plyi

ng p

ower

to J

212

Cry

stal

dat

ashe

et

Ccr

ysta

l = 1

2pF

max

ES

R =

60O

hmA

ccur

acy

plusmn30p

pm

AV

R48

DB

128

data

shee

tC

xin

= 4

0pF

(ty

pica

l val

ue)

Cxo

ut =

40

pF (

typi

cal v

alue

)C

lasymp1

( (1

40

pF)+

(1

40p

F)

)asymp

20p

FM

axim

um L

oad

= 1

25p

FM

axim

um E

SR =

k

Ohm

Est

imat

ed C

pcb

= 0

5pF

Est

imat

ed lo

adC

= 2

(C

crys

tal-

Cpa

ra -

Cpc

b)C

= 2

(12

pF -

20

pF -

05

pF)

C =

19

0pF

Sele

cted

in d

esig

n af

ter

veri

fica

tion

C=

15p

F1

5pF

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 34

11

22

33

44

55

66

77

88

DD

CC

BB

AA

3 of

4

AV

R12

8DB

48 C

uri

osit

y N

ano

2020

-06-

26A

VR

128D

B48

_Cur

iosi

ty_N

ano_

Deb

ugge

rSch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA

Rev

isio

n

Fil

eP

CB

Num

ber

PC

B

Rev

isio

n

Des

ign

ed w

ith

Dra

wn

By

ML

Shee

t Tit

le

Deb

ugge

r

Eng

inee

rA

H

A08

-305

71

Size

A3

A09

-337

22

Page

D

ateA

ltium

com

DE

BU

GG

ER

USB

MIC

RO

-B C

ON

NE

CT

OR

GN

D

USB

D_P

USB

D_N

100n

C10

7

100n

C10

8

1kR

107

VC

C_P

3V3

SRST

STA

TU

S_L

ED

SHIE

LD

VB

US

VC

C_P

3V3

GN

D

TP

100

Test

poin

t Arr

ay

12

34

56

78

910

TC

KT

DO

TM

SV

sup

TD

IG

ND

TR

STSR

STV

Tre

fG

ND

J102

GN

D

47u

F

C10

0

DBG0

DB

G0

21

GR

EE

N L

ED

SML

-P12

MT

T86

R

D10

0

VBUS

1

D-

2

D+

3

GND

5

SHIELD1

6

SHIELD2

7

ID

4

SHIELD3

8

SHIELD4

9 MU

-MB

0142

AB

2-26

9

J105

PAD

33

PA00

1

PA01

2

PA02

3

PA03

4

GND 10VDDANA 9

PA04

5

PA05

6

PA06

7

PA07

8

PA08 11

PA09 12

PA10 13

PA11 14

PA14 15

PA15 16

PA16

17

PA17

18

PA18

19

PA19

20

PA22

21

USB_SOFPA23

22

USB_DMPA24

23

USB_DPPA25

24

PA2725 RESETN26 PA2827 GND28 VDDCORE29 VDDIN30 SWDCLKPA3031 SWDIOPA3132

SAM

D21

E18

A-M

UT

U10

0

VOUT

1

VOUT

2

GND 3

EN

4

VIN

6

NC

5

EP 7

MIC

5528

-33

YM

TU

101

VC

C_P

3V3

GN

D

USB

D_P

USB

D_N

GN

D

1uC

106

VC

C_M

CU

_CO

RE

VC

C_P

3V3

VC

C_P

3V3

22u

FC

101

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

3

VC

C_P

3V3

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

4

VC

C_P

3V3

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

5

VC

C_P

3V3

GN

D

GN

D GN

D

GN

D

VC

C_E

DG

E

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

7

VC

C_P

3V3

GN

DDBG2

DB

G3_

CT

RL

S1_0

_TX

S1_1

_RX

S0_2

_TX

DA

CV

TG

_AD

C

RE

SER

VE

D

S0_3

_CL

K

DBG0_CTRL

CD

C_T

X_C

TR

L

BO

OT

DE

BU

GG

ER

PO

WE

RS

TA

TU

S L

ED

EN

1

BYP

6

VOUT

4

GND

2

VIN

3

NCADJ

5

GND

7

MIC

5353

U10

2

100n

C10

2

GN

D

GN

D

47kR101

27kR104 G

ND

33k

R10

6

22u

F

C10

3 GN

D

1kR

108

J100

VC

C_L

EV

EL

VC

C_R

EG

UL

AT

OR

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

6

VC

C_P

3V3

GN

DDBG1

CD

C_R

X

CD

C_T

X

DBG3

DBG1_CTRL

DE

BU

GG

ER

RE

GU

LA

TO

R

REG_ENABLE

RE

G_E

NA

BL

E

47kR103

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

47kR102

47kR105

SWC

LK

GN

D

47kR100 G

ND

DB

G2

S0_0

_RX

DB

G1_

CT

RL

DB

G0_

CT

RL

DB

G3

OP

EN

DR

AIN

TA

RG

ET

AD

JUST

AB

LE

RE

GU

LA

TO

R

SRST

DE

BU

GG

ER

TE

ST

PO

INT DBG2_CTRL

VO

FF

CD

C_R

X_C

TR

L

47kR109

DB

G1

CD

C_T

X_C

TR

L

CD

C_R

X_C

TR

L

SWC

LK

REG_ADJUST

DBG2_GPIO

DB

G3_

CT

RL

DB

G2_

CT

RL

UP

DI

UPD

I

GPI

O

GPI

O

RE

SET

Sign

al

DB

G0

DB

G1

DB

G2

DB

G3

ICS

PIn

terf

ace

DA

T

CL

K

GPI

O

MC

LR

DB

G3

CD

C T

X

CD

C R

X

UA

RT

RX

UA

RT

TX

UA

RT

RX

UA

RT

TX

TA

RG

ET

TA

RG

ET

1kR

110

VBUS_ADC

1

23

DM

N65

D8L

FB

Q10

1

VC

C-

-

ID_SYS

VOFF

1kR112

VC

C_P

3V3

VT

G_A

DC

DA

C

MIC

9416

3

VIN

B2

VOUT

A1

VIN

A2

EN

C2

GND

C1

VOUT

B1

U10

8

GN

D

ID_S

YS

VT

G_E

N

VTG_EN

VBUS_ADC

SWD

IO

ID_S

YS

TP

101

GN

DSW

DIO

VO

FF

47kR111 G

ND

ID P

IN

MC

3621

3

F10

0

VC

C_V

BU

S

VC

C_V

BU

S

VC

C_V

BU

S

J101

VC

C_T

AR

GE

T

47k

R11

3

CDC_TX

CDC_RX

Prog

ram

min

g co

nnec

tor

for

fact

ory

prog

ram

min

g of

DE

BU

GG

ER

MIC

5528

V

in 2

5V

to 5

5V

Vou

t F

ixed

33

VIm

ax 5

00m

AD

ropo

ut 2

60m

V

500

mA

MIC

5353

V

in 2

6V

to 6

VV

out

12

5V to

51

VIm

ax 5

00m

AD

ropo

ut (

typi

cal)

50m

V

150m

A 1

60m

V

500

mA

Acc

urac

y 2

in

itia

lT

herm

al s

hutd

own

and

curr

ent l

imit

Max

imum

out

put v

olta

ge is

lim

ited

by

the

inpu

t vol

tage

and

the

drop

out v

olta

ge in

the

regu

lato

r(V

max

= V

in -

dro

pout

)

J100

-

Cut

-str

ap u

sed

for

full

sep

arat

ion

of ta

rget

pow

er f

rom

the

leve

l shi

fter

s an

don

-boa

rd r

egul

ator

s-

For

cur

rent

mea

sure

men

ts u

sing

the

on-b

oard

pow

er s

uppl

y th

isst

rap

mus

t be

cut a

nd a

nam

met

er c

onne

cted

acr

oss

- F

or c

urre

nt m

easu

rem

ents

usi

ng a

n ex

tern

al p

ower

sup

ply

this

str

ap c

ould

be

cut f

or m

ore

accu

rate

mea

sure

men

ts L

eaka

ge b

ack

thro

ugh

the

swit

ch is

in th

e m

icro

am

pere

ran

ge

PT

C R

eset

tabl

e fu

se

Hol

d cu

rren

t 5

00m

AT

rip

curr

ent

100

0mA

Adj

usta

ble

outp

ut a

nd li

mit

atio

ns

- T

he D

EB

UG

GE

R c

an a

djus

t the

out

put v

olta

ge o

f th

e re

gula

tor

betw

een

125

V a

nd 5

1V

to th

e ta

rget

-

The

vol

tage

out

put i

s li

mit

ed b

y th

e in

put (

US

B)

whi

ch c

an v

ary

betw

een

440

V to

52

5V-

The

leve

l shi

fter

s ha

ve a

min

imal

vol

tage

leve

l of

165

V a

nd w

ill l

imit

the

min

imum

ope

ratin

g vo

ltage

all

owed

for

the

targ

et to

sti

ll a

llow

com

mun

icat

ion

- T

he M

IC94

163

has

a m

inim

al v

olat

ege

leve

l of

170

V a

nd w

ill l

imit

the

min

imum

vol

tage

del

iver

ed to

the

targ

et

- F

irm

war

e co

nfig

urat

ion

wil

l lim

it th

e vo

ltage

ran

ge to

be

wit

hin

the

the

targ

et s

peci

fica

tion

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 35

82 Assembly DrawingFigure 8-2 AVR128DB48 Curiosity Nano Assembly Drawing Top

+

Cb

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20001 PAC20002 COC200

PAC20101 PAC20102 COC201

PAC20201 PAC20202 COC202 PAC20301

PAC20302 COC203

PAC20401

PAC20402 COC204

PAC20502

PAC20501 COC205

PAC20601

PAC20602 COC206 PAC20701

PAC20702 COC207 PAD10002 PAD10001 COD100

PAD20002

PAD20001 COD200

PAF10002

PAF10001 COF100

PAJ10002 PAJ10001 COJ100

PAJ10101 PAJ10102 COJ101

PAJ10201

PAJ10202

PAJ10203

PAJ10204

PAJ10205

PAJ10206 COJ102

PAJ10506

PAJ10507 PAJ10509

PAJ10508 PAJ105010

PAJ105011 PAJ10505

PAJ10504

PAJ10503

PAJ10502

PAJ10501

PAJ10500

COJ105

PAJ200056 PAJ200053

PAJ200028 PAJ20002 PAJ20001

PAJ200051 PAJ200050 PAJ200052 PAJ200049 PAJ200048 PAJ200047 PAJ200046 PAJ200045 PAJ200044 PAJ200043 PAJ200042 PAJ200041 PAJ200040 PAJ200039 PAJ200038 PAJ200037 PAJ200036 PAJ200035 PAJ200034 PAJ200033 PAJ200032 PAJ200031 PAJ200030 PAJ200029

PAJ20003 PAJ20004 PAJ20005 PAJ20006 PAJ20007 PAJ20008 PAJ20009 PAJ200010 PAJ200011 PAJ200012 PAJ200013 PAJ200014 PAJ200015 PAJ200016 PAJ200017 PAJ200018 PAJ200019 PAJ200020 PAJ200021 PAJ200022 PAJ200023 PAJ200026 PAJ200025 PAJ200024 PAJ200027

PAJ200054 PAJ200055 PAJ20000

COJ200

PAJ20102 PAJ20101 COJ201

PAJ20202 PAJ20201 COJ202

PAJ20302 PAJ20301 COJ203

PAJ20402 PAJ20401 COJ204

PAJ20502 PAJ20501 COJ205

PAJ20602 PAJ20601 COJ206 PAJ20702 PAJ20701 COJ207

PAJ20802 PAJ20801 COJ208

PAJ20902 PAJ20901 COJ209

PAJ21001 PAJ21002 PAJ21005 COJ210

PAJ21102 PAJ21101 PAJ21105 COJ211

PAJ21202 PAJ21201 COJ212

PAJ21301 PAJ21302 PAJ21305 COJ213

PAJ21401 PAJ21402 PAJ21405 COJ214

PAJ21502 PAJ21501 COJ215

PAJ21602 PAJ21601 COJ216 PAJ21702 PAJ21701 COJ217

COLABEL1

PAQ10101 PAQ10102 PAQ10103 PAQ10100

COQ101 PAR10002

PAR10001 COR100 PAR10101 PAR10102 COR101

PAR10202 PAR10201 COR102

PAR10302 PAR10301 COR103

PAR10401 PAR10402 COR104

PAR10502

PAR10501 COR105

PAR10601 PAR10602 COR106

PAR10702 PAR10701 COR107

PAR10801

PAR10802 COR108

PAR10901 PAR10902 COR109

PAR11001 PAR11002 COR110

PAR11101 PAR11102 COR111

PAR11201 PAR11202 COR112

PAR11302 PAR11301 COR113

PAR20001 PAR20002 COR200 PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203 PAR20401 PAR20402 COR204

PASW20003

PASW20004 PASW20002

PASW20001 COSW200

PATP10001 COTP100

PATP10101 COTP101 PAU100033

PAU100032 PAU100031 PAU100030 PAU100029 PAU100028 PAU100027 PAU100026 PAU100025 PAU100024

PAU100023

PAU100022

PAU100021

PAU100020

PAU100019

PAU100018

PAU100017 PAU100016 PAU100015 PAU100014 PAU100013 PAU100012 PAU100011 PAU100010

PAU10001

PAU10002

PAU10003

PAU10004

PAU10005

PAU10006

PAU10007

PAU10008 PAU10009

COU100

PAU10107

PAU10104 PAU10105 PAU10106

PAU10103 PAU10102 PAU10101 PAU10100 COU101 PAU10207

PAU10204 PAU10205

PAU10206

PAU10203 PAU10202

PAU10201

COU102

PAU10306

PAU10305 PAU10304 PAU10303

PAU10302 PAU10301 PAU10300

COU103

PAU10406

PAU10405 PAU10404 PAU10403

PAU10402 PAU10401 PAU10400

COU104

PAU10506

PAU10505 PAU10504 PAU10503

PAU10502 PAU10501 PAU10500

COU105

PAU10606

PAU10605 PAU10604 PAU10603

PAU10602 PAU10601 PAU10600

COU106

PAU10706

PAU10705 PAU10704 PAU10703

PAU10702 PAU10701 PAU10700

COU107

PAU1080A1 PAU1080A2

PAU1080B1 PAU1080B2

PAU1080C1 PAU1080C2 COU108

PAU20001 PAU20002 PAU20003 PAU20004 PAU20005 PAU20006 PAU20007 PAU20008 PAU20009 PAU200010 PAU200011 PAU200012 PAU200013 PAU200014 PAU200015 PAU200016 PAU200017 PAU200018 PAU200019 PAU200020 PAU200021 PAU200022 PAU200023 PAU200024 PAU200025 PAU200026 PAU200027 PAU200028 PAU200029 PAU200030 PAU200031 PAU200032 PAU200033 PAU200034 PAU200035 PAU200036

PAU200037 PAU200038 PAU200039 PAU200040 PAU200041 PAU200042 PAU200043 PAU200044 PAU200045 PAU200046 PAU200047 PAU200048

COU200

PAXC20001

PAXC20002 COXC200

PAXC20101 PAXC20102

PAXC20103 PAXC20104 COXC201

Figure 8-3 AVR128DB48 Curiosity Nano Assembly Drawing Bottom

tcR

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20001 PAC20002 COC200

PAC20101 PAC20102 COC201

PAC20201 PAC20202 COC202 PAC20301

PAC20302 COC203

PAC20401

PAC20402 COC204

PAC20502

PAC20501 COC205

PAC20601

PAC20602 COC206 PAC20701

PAC20702 COC207 PAD10002 PAD10001 COD100

PAD20002

PAD20001 COD200

PAF10002

PAF10001 COF100

PAJ10002 PAJ10001 COJ100

PAJ10101 PAJ10102 COJ101

PAJ10201

PAJ10202

PAJ10203

PAJ10204

PAJ10205

PAJ10206 COJ102

PAJ10506

PAJ10507 PAJ10509

PAJ10508 PAJ105010

PAJ105011 PAJ10505

PAJ10504

PAJ10503

PAJ10502

PAJ10501

PAJ10500

COJ105

PAJ200056 PAJ200053

PAJ200028 PAJ20002 PAJ20001

PAJ200051 PAJ200050 PAJ200052 PAJ200049 PAJ200048 PAJ200047 PAJ200046 PAJ200045 PAJ200044 PAJ200043 PAJ200042 PAJ200041 PAJ200040 PAJ200039 PAJ200038 PAJ200037 PAJ200036 PAJ200035 PAJ200034 PAJ200033 PAJ200032 PAJ200031 PAJ200030 PAJ200029

PAJ20003 PAJ20004 PAJ20005 PAJ20006 PAJ20007 PAJ20008 PAJ20009 PAJ200010 PAJ200011 PAJ200012 PAJ200013 PAJ200014 PAJ200015 PAJ200016 PAJ200017 PAJ200018 PAJ200019 PAJ200020 PAJ200021 PAJ200022 PAJ200023 PAJ200026 PAJ200025 PAJ200024 PAJ200027

PAJ200054 PAJ200055 PAJ20000

COJ200

PAJ20102 PAJ20101 COJ201

PAJ20202 PAJ20201 COJ202

PAJ20302 PAJ20301 COJ203

PAJ20402 PAJ20401 COJ204

PAJ20502 PAJ20501 COJ205

PAJ20602 PAJ20601 COJ206 PAJ20702 PAJ20701 COJ207

PAJ20802 PAJ20801 COJ208

PAJ20902 PAJ20901 COJ209

PAJ21001 PAJ21002 PAJ21005 COJ210

PAJ21102 PAJ21101 PAJ21105 COJ211

PAJ21202 PAJ21201 COJ212

PAJ21301 PAJ21302 PAJ21305 COJ213

PAJ21401 PAJ21402 PAJ21405 COJ214

PAJ21502 PAJ21501 COJ215

PAJ21602 PAJ21601 COJ216 PAJ21702 PAJ21701 COJ217

COLABEL1

PAQ10101 PAQ10102 PAQ10103 PAQ10100

COQ101 PAR10002

PAR10001 COR100 PAR10101 PAR10102 COR101

PAR10202 PAR10201 COR102

PAR10302 PAR10301 COR103

PAR10401 PAR10402 COR104

PAR10502

PAR10501 COR105

PAR10601 PAR10602 COR106

PAR10702 PAR10701 COR107

PAR10801

PAR10802 COR108

PAR10901 PAR10902 COR109

PAR11001 PAR11002 COR110

PAR11101 PAR11102 COR111

PAR11201 PAR11202 COR112

PAR11302 PAR11301 COR113

PAR20001 PAR20002 COR200 PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203 PAR20401 PAR20402 COR204

PASW20003

PASW20004 PASW20002

PASW20001 COSW200

PATP10001 COTP100

PATP10101 COTP101 PAU100033

PAU100032 PAU100031 PAU100030 PAU100029 PAU100028 PAU100027 PAU100026 PAU100025 PAU100024

PAU100023

PAU100022

PAU100021

PAU100020

PAU100019

PAU100018

PAU100017 PAU100016 PAU100015 PAU100014 PAU100013 PAU100012 PAU100011 PAU100010

PAU10001

PAU10002

PAU10003

PAU10004

PAU10005

PAU10006

PAU10007

PAU10008 PAU10009

COU100

PAU10107

PAU10104 PAU10105 PAU10106

PAU10103 PAU10102 PAU10101 PAU10100 COU101 PAU10207

PAU10204 PAU10205

PAU10206

PAU10203 PAU10202

PAU10201

COU102

PAU10306

PAU10305 PAU10304 PAU10303

PAU10302 PAU10301 PAU10300

COU103

PAU10406

PAU10405 PAU10404 PAU10403

PAU10402 PAU10401 PAU10400

COU104

PAU10506

PAU10505 PAU10504 PAU10503

PAU10502 PAU10501 PAU10500

COU105

PAU10606

PAU10605 PAU10604 PAU10603

PAU10602 PAU10601 PAU10600

COU106

PAU10706

PAU10705 PAU10704 PAU10703

PAU10702 PAU10701 PAU10700

COU107

PAU1080A1 PAU1080A2

PAU1080B1 PAU1080B2

PAU1080C1 PAU1080C2 COU108

PAU20001 PAU20002 PAU20003 PAU20004 PAU20005 PAU20006 PAU20007 PAU20008 PAU20009 PAU200010 PAU200011 PAU200012 PAU200013 PAU200014 PAU200015 PAU200016 PAU200017 PAU200018 PAU200019 PAU200020 PAU200021 PAU200022 PAU200023 PAU200024 PAU200025 PAU200026 PAU200027 PAU200028 PAU200029 PAU200030 PAU200031 PAU200032 PAU200033 PAU200034 PAU200035 PAU200036

PAU200037 PAU200038 PAU200039 PAU200040 PAU200041 PAU200042 PAU200043 PAU200044 PAU200045 PAU200046 PAU200047 PAU200048

COU200

PAXC20001

PAXC20002 COXC200

PAXC20101 PAXC20102

PAXC20103 PAXC20104 COXC201

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 36

83 Curiosity Nano Base for Click boardstrade

Figure 8-4 AVR128DB48 Curiosity Nano Pinout Mapping

US

B

DE

BU

GG

ER

AV

R1

28

DB

48

SW

0

LE

D0

PS

LE

DNC

NC

ID

ID

CDC RX

CDCRX

USART3 TX

PB0

CDC TX

CDCTX

USART3 RX

PB1

DBG1

DBG1

PB3

LED0

DBG2

DBG2

PB2

SW0

PF4

PF4

USART2 TX

PF5

PF5

USART2 RX

PA2

PA2

TWI0 SDA

PA3

PA3

TWI0 SCL

PA4

PA4

SPI0 MOSI

PA5

PA5

SPI0 MISO

PA6

PA6

SPI0 SCK

PA7

PA7

SPI0 SS

GND

GND

PB0

PB0

USART3 TX

CDC RX

PB1

PB1

USART3 RX

CDC TX

PF2

PF2

PF3

PF3

PC0

PC0

PC1

PC1

PC2

PC2

PC3

PC3

GND

GND

(PA0)

(PA0)

XTALHF1

(PA1)

(PA1)

XTALHF2

PB2

PB2

SW0

PB3

PB3

LED0

VBUS

VBUS

VOFF

VOFF

DBG3

DBG3

PF6

DBG0

DBG0

UPDI

GND

GND

VTG

VTG

PD6

PD6

AIN6

PD3

PD3

AIN3

OP0 INN

PD2

PD2

AIN2

OP0 OUT

TCA0 WO2

PD1

PD1

AIN1

OP0 INP

TCA0 WO1

PD0

PD0

AIN0

TCA0 WO0

PD7

PD7

AIN7

OP1 INN

PD5

PD5

AIN5

OP1 OUT

PD4

PD4

AIN4

OP1 INP

GND

GND

PE3

PE3

OP2 INN

PE2

PE2

OP2 OUT

PE1

PE1

OP2 INP

PE0

PE0

PC7

PC7

PC6

PC6

PC5

PC5

PC4

PC4

GND

GND

PB5

PB5

PB4

PB4

(PF1)

(PF1)

XTAL32K2

(PF0)

(PF0)

XTAL32K1

DE

BU

GG

ER

AV

R1

28

DB

48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

MVIO

OPAMP

Shared pin

AV

R1

28

DB

48

Cu

rio

sity

Na

no

1

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

2

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

3

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

Xp

lain

ed

Pro

Ext

en

sio

nE

XT

11

2

19

20

Cu

rio

sity

Na

no

Ba

sefo

r cl

ick

bo

ard

sT

M

PD4

PD0

PD6

PD3

PA7

PF5

PA6

PF4

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

PD5

PD1

PF3

PF2

PE2

PB1

PA6

PB0

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

PD7

PD2

PE1

PE0

PE3

PF5

PA6

PF4

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

ID

GND

PD5

PD7

PF3

PE1

PD1

PD2

PF2

PE3

PA2

PA3

PB1

PB0

PE2

PA4

PA5

PA6

GND

+33V

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 37

84 Disconnecting the On-board DebuggerThe on-board debugger and level shifters can be completely disconnected from the AVR128DB48

The block diagram below shows all connections between the debugger and the AVR128DB48 The rounded boxesrepresent connections to the board edge The signal names shown are also printed in silkscreen on the bottom sideof the board

To disconnect the debugger cut the straps shown in Figure 8-6

Attention  Cutting the GPIO straps to the on-board debugger will disable the virtual serial portprogramming debugging and data streaming Cutting the power supply strap will disconnect the on-boardpower supply

Tip  Any connection that is cut can be reconnected using solder Alternatively a 0Ω 0402 resistor can bemounted

Tip  When the debugger is disconnected an external debugger can be connected to holes shown in Figure 8-6 Details about connecting an external debugger are described in 46 Connecting ExternalDebuggers

Figure 8-5  On-Board Debugger Connections Block Diagram

DE

BU

GG

ER

TARGETLevel-Shift

PA04PA06PA07PA08PA16PA00PA01

USB

DIR x 5

VCC_P3V3

VBUS

VC

C_L

EV

EL

VC

C_T

AR

GE

TDBG0DBG1DBG2DBG3CDC TXCDC RX

CDC RX

CDC TX

DBG3

DBG2

DBG1

DBG0

GPIO straps

LDO

VOFF

LDO

VBUS VTG

VCC_EDGE

Power Supply strap Target Power strap

UART RXUART TX

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 38

Figure 8-6 On-Board Debugger Connection Cut Straps

GPIO straps (bottom side) Power Supply strap (top side)

85 Getting Started with IARIAR Embedded Workbenchreg for AVRreg is a proprietary high-efficiency compiler not based on GCC Programming anddebugging of AVR128DB48 Curiosity Nano is supported in IARtrade Embedded Workbench for AVR using the Atmel-ICEinterface Some initial settings must be set up in the project to get the programming and debugging to work

The following steps will explain how to get your project ready for programming and debugging

1 Make sure you have opened the project you want to configure Open the OPTIONS dialog for the project2 In the category General Options select the Target tab Select the device for the project or if not listed the

core of the device as shown in Figure 8-73 In the category Debugger select the Setup tab Select Atmel-ICE as the driver as shown in Figure 8-84 In the category Debugger gt Atmel-ICE select the Atmel-ICE 1 tab Select UPDI as the interface and

optionally select the UPDI frequency as shown in Figure 8-9

Info  If the selection of Debug Port (mentioned in step 4) is grayed out the interface is preselected andthe user can skip this configuration step

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 39

Figure 8-7 Select Target Device

Figure 8-8 Select Debugger

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 40

Figure 8-9 Configure Interface

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 41

The Microchip Website

Microchip provides online support via our website at wwwmicrochipcom This website is used to make files andinformation easily available to customers Some of the content available includes

bull Product Support ndash Data sheets and errata application notes and sample programs design resources userrsquosguides and hardware support documents latest software releases and archived software

bull General Technical Support ndash Frequently Asked Questions (FAQs) technical support requests onlinediscussion groups Microchip design partner program member listing

bull Business of Microchip ndash Product selector and ordering guides latest Microchip press releases listing ofseminars and events listings of Microchip sales offices distributors and factory representatives

Product Change Notification Service

Microchiprsquos product change notification service helps keep customers current on Microchip products Subscribers willreceive email notification whenever there are changes updates revisions or errata related to a specified productfamily or development tool of interest

To register go to wwwmicrochipcompcn and follow the registration instructions

Customer Support

Users of Microchip products can receive assistance through several channels

bull Distributor or Representativebull Local Sales Officebull Embedded Solutions Engineer (ESE)bull Technical Support

Customers should contact their distributor representative or ESE for support Local sales offices are also available tohelp customers A listing of sales offices and locations is included in this document

Technical support is available through the website at wwwmicrochipcomsupport

Microchip Devices Code Protection Feature

Note the following details of the code protection feature on Microchip devices

bull Microchip products meet the specifications contained in their particular Microchip Data Sheetbull Microchip believes that its family of products is secure when used in the intended manner and under normal

conditionsbull There are dishonest and possibly illegal methods being used in attempts to breach the code protection features

of the Microchip devices We believe that these methods require using the Microchip products in a manneroutside the operating specifications contained in Microchiprsquos Data Sheets Attempts to breach these codeprotection features most likely cannot be accomplished without violating Microchiprsquos intellectual property rights

bull Microchip is willing to work with any customer who is concerned about the integrity of its codebull Neither Microchip nor any other semiconductor manufacturer can guarantee the security of its code Code

protection does not mean that we are guaranteeing the product is ldquounbreakablerdquo Code protection is constantlyevolving We at Microchip are committed to continuously improving the code protection features of our productsAttempts to break Microchiprsquos code protection feature may be a violation of the Digital Millennium Copyright ActIf such acts allow unauthorized access to your software or other copyrighted work you may have a right to suefor relief under that Act

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 42

Legal Notice

Information contained in this publication is provided for the sole purpose of designing with and using Microchipproducts Information regarding device applications and the like is provided only for your convenience and may besuperseded by updates It is your responsibility to ensure that your application meets with your specifications

THIS INFORMATION IS PROVIDED BY MICROCHIP ldquoAS ISrdquo MICROCHIP MAKES NO REPRESENTATIONS ORWARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED WRITTEN OR ORAL STATUTORY OROTHERWISE RELATED TO THE INFORMATION INCLUDING BUT NOT LIMITED TO ANY IMPLIEDWARRANTIES OF NON-INFRINGEMENT MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSEOR WARRANTIES RELATED TO ITS CONDITION QUALITY OR PERFORMANCE

IN NO EVENT WILL MICROCHIP BE LIABLE FOR ANY INDIRECT SPECIAL PUNITIVE INCIDENTAL ORCONSEQUENTIAL LOSS DAMAGE COST OR EXPENSE OF ANY KIND WHATSOEVER RELATED TO THEINFORMATION OR ITS USE HOWEVER CAUSED EVEN IF MICROCHIP HAS BEEN ADVISED OF THEPOSSIBILITY OR THE DAMAGES ARE FORESEEABLE TO THE FULLEST EXTENT ALLOWED BY LAWMICROCHIPS TOTAL LIABILITY ON ALL CLAIMS IN ANY WAY RELATED TO THE INFORMATION OR ITS USEWILL NOT EXCEED THE AMOUNT OF FEES IF ANY THAT YOU HAVE PAID DIRECTLY TO MICROCHIP FORTHE INFORMATION Use of Microchip devices in life support andor safety applications is entirely at the buyerrsquos riskand the buyer agrees to defend indemnify and hold harmless Microchip from any and all damages claims suits orexpenses resulting from such use No licenses are conveyed implicitly or otherwise under any Microchip intellectualproperty rights unless otherwise stated

Trademarks

The Microchip name and logo the Microchip logo Adaptec AnyRate AVR AVR logo AVR Freaks BesTimeBitCloud chipKIT chipKIT logo CryptoMemory CryptoRF dsPIC FlashFlex flexPWR HELDO IGLOO JukeBloxKeeLoq Kleer LANCheck LinkMD maXStylus maXTouch MediaLB megaAVR Microsemi Microsemi logo MOSTMOST logo MPLAB OptoLyzer PackeTime PIC picoPower PICSTART PIC32 logo PolarFire Prochip DesignerQTouch SAM-BA SenGenuity SpyNIC SST SST Logo SuperFlash Symmetricom SyncServer TachyonTempTrackr TimeSource tinyAVR UNIO Vectron and XMEGA are registered trademarks of Microchip TechnologyIncorporated in the USA and other countries

APT ClockWorks The Embedded Control Solutions Company EtherSynch FlashTec Hyper Speed ControlHyperLight Load IntelliMOS Libero motorBench mTouch Powermite 3 Precision Edge ProASIC ProASIC PlusProASIC Plus logo Quiet-Wire SmartFusion SyncWorld Temux TimeCesium TimeHub TimePictra TimeProviderVite WinPath and ZL are registered trademarks of Microchip Technology Incorporated in the USA

Adjacent Key Suppression AKS Analog-for-the-Digital Age Any Capacitor AnyIn AnyOut BlueSky BodyComCodeGuard CryptoAuthentication CryptoAutomotive CryptoCompanion CryptoController dsPICDEMdsPICDEMnet Dynamic Average Matching DAM ECAN EtherGREEN In-Circuit Serial Programming ICSPINICnet Inter-Chip Connectivity JitterBlocker KleerNet KleerNet logo memBrain Mindi MiWi MPASM MPFMPLAB Certified logo MPLIB MPLINK MultiTRAK NetDetach Omniscient Code Generation PICDEMPICDEMnet PICkit PICtail PowerSmart PureSilicon QMatrix REAL ICE Ripple Blocker SAM-ICE Serial QuadIO SMART-IS SQI SuperSwitcher SuperSwitcher II Total Endurance TSHARC USBCheck VariSenseViewSpan WiperLock Wireless DNA and ZENA are trademarks of Microchip Technology Incorporated in the USAand other countries

SQTP is a service mark of Microchip Technology Incorporated in the USA

The Adaptec logo Frequency on Demand Silicon Storage Technology and Symmcom are registered trademarks ofMicrochip Technology Inc in other countries

GestIC is a registered trademark of Microchip Technology Germany II GmbH amp Co KG a subsidiary of MicrochipTechnology Inc in other countries

All other trademarks mentioned herein are property of their respective companiescopy 2020 Microchip Technology Incorporated Printed in the USA All Rights Reserved

ISBN 978-1-5224-6667-3

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 43

Quality Management SystemFor information regarding Microchiprsquos Quality Management Systems please visit wwwmicrochipcomquality

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 44

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupportwwwmicrochipcomsupportWeb AddresswwwmicrochipcomAtlantaDuluth GATel 678-957-9614Fax 678-957-1455Austin TXTel 512-257-3370BostonWestborough MATel 774-760-0087Fax 774-760-0088ChicagoItasca ILTel 630-285-0071Fax 630-285-0075DallasAddison TXTel 972-818-7423Fax 972-818-2924DetroitNovi MITel 248-848-4000Houston TXTel 281-894-5983IndianapolisNoblesville INTel 317-773-8323Fax 317-773-5453Tel 317-536-2380Los AngelesMission Viejo CATel 949-462-9523Fax 949-462-9608Tel 951-273-7800Raleigh NCTel 919-844-7510New York NYTel 631-435-6000San Jose CATel 408-735-9110Tel 408-436-4270Canada - TorontoTel 905-695-1980Fax 905-695-2078

Australia - SydneyTel 61-2-9868-6733China - BeijingTel 86-10-8569-7000China - ChengduTel 86-28-8665-5511China - ChongqingTel 86-23-8980-9588China - DongguanTel 86-769-8702-9880China - GuangzhouTel 86-20-8755-8029China - HangzhouTel 86-571-8792-8115China - Hong Kong SARTel 852-2943-5100China - NanjingTel 86-25-8473-2460China - QingdaoTel 86-532-8502-7355China - ShanghaiTel 86-21-3326-8000China - ShenyangTel 86-24-2334-2829China - ShenzhenTel 86-755-8864-2200China - SuzhouTel 86-186-6233-1526China - WuhanTel 86-27-5980-5300China - XianTel 86-29-8833-7252China - XiamenTel 86-592-2388138China - ZhuhaiTel 86-756-3210040

India - BangaloreTel 91-80-3090-4444India - New DelhiTel 91-11-4160-8631India - PuneTel 91-20-4121-0141Japan - OsakaTel 81-6-6152-7160Japan - TokyoTel 81-3-6880- 3770Korea - DaeguTel 82-53-744-4301Korea - SeoulTel 82-2-554-7200Malaysia - Kuala LumpurTel 60-3-7651-7906Malaysia - PenangTel 60-4-227-8870Philippines - ManilaTel 63-2-634-9065SingaporeTel 65-6334-8870Taiwan - Hsin ChuTel 886-3-577-8366Taiwan - KaohsiungTel 886-7-213-7830Taiwan - TaipeiTel 886-2-2508-8600Thailand - BangkokTel 66-2-694-1351Vietnam - Ho Chi MinhTel 84-28-5448-2100

Austria - WelsTel 43-7242-2244-39Fax 43-7242-2244-393Denmark - CopenhagenTel 45-4485-5910Fax 45-4485-2829Finland - EspooTel 358-9-4520-820France - ParisTel 33-1-69-53-63-20Fax 33-1-69-30-90-79Germany - GarchingTel 49-8931-9700Germany - HaanTel 49-2129-3766400Germany - HeilbronnTel 49-7131-72400Germany - KarlsruheTel 49-721-625370Germany - MunichTel 49-89-627-144-0Fax 49-89-627-144-44Germany - RosenheimTel 49-8031-354-560Israel - RarsquoananaTel 972-9-744-7705Italy - MilanTel 39-0331-742611Fax 39-0331-466781Italy - PadovaTel 39-049-7625286Netherlands - DrunenTel 31-416-690399Fax 31-416-690340Norway - TrondheimTel 47-72884388Poland - WarsawTel 48-22-3325737Romania - BucharestTel 40-21-407-87-50Spain - MadridTel 34-91-708-08-90Fax 34-91-708-08-91Sweden - GothenbergTel 46-31-704-60-40Sweden - StockholmTel 46-8-5090-4654UK - WokinghamTel 44-118-921-5800Fax 44-118-921-5820

Worldwide Sales and Service

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 45

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Board Overview
      • 2 Getting Started
        • 21 Quick Start
          • 211 Driver Installation
          • 212 Kit Window
          • 213 MPLABreg X IDE Device Family Packs
          • 214 Atmel Studio 7 Device Family Pack
            • 22 Design Documentation and Relevant Links
              • 3 Preprogrammed Application
              • 4 Curiosity Nano
                • 41 On-Board Debugger Overview
                  • 411 Debugger
                  • 412 Virtual Serial Port (CDC)
                    • 4121 Overview
                    • 4122 Operating System Support
                    • 4123 Limitations
                    • 4124 Signaling
                    • 4125 Advanced Use
                      • 413 Mass Storage Device
                        • 4131 Mass Storage Device Implementation
                        • 4132 Limitations of Drag-and-Drop Programming
                        • 4133 Special Commands
                          • 414 Data Gateway Interface (DGI)
                            • 4141 Debug GPIO
                            • 4142 Timestamping
                                • 42 Curiosity Nano Standard Pinout
                                • 43 Power Supply
                                  • 431 Target Regulator
                                  • 432 External Supply
                                  • 433 VBUS Output Pin
                                  • 434 Power Supply Exceptions
                                    • 44 Low-Power Measurement
                                    • 45 Programming External Microcontrollers
                                      • 451 Supported Devices
                                      • 452 Software Configuration
                                      • 453 Hardware Modifications
                                      • 454 Connecting to External Microcontrollers
                                        • 46 Connecting External Debuggers
                                          • 5 Hardware User Guide
                                            • 51 Connectors
                                              • 511 AVR128DB48 Curiosity Nano Pinout
                                              • 512 Using Pin Headers
                                              • 513 Multi-Voltage IO
                                              • 514 Operational Amplifiers
                                                • 52 Peripherals
                                                  • 521 LED
                                                  • 522 Mechanical Switch
                                                  • 523 32768 kHz Crystal
                                                  • 524 1600 MHz Crystal
                                                  • 525 On-Board Debugger Implementation
                                                    • 5251 On-Board Debugger Connections
                                                      • 6 Hardware Revision History and Known Issues
                                                        • 61 Identifying Product ID and Revision
                                                        • 62 Revision 3
                                                        • 63 Revision 2
                                                          • 7 Document Revision History
                                                          • 8 Appendix
                                                            • 81 Schematic
                                                            • 82 Assembly Drawing
                                                            • 83 Curiosity Nano Base for Click boardstrade
                                                            • 84 Disconnecting the On-board Debugger
                                                            • 85 Getting Started with IAR
                                                              • The Microchip Website
                                                              • Product Change Notification Service
                                                              • Customer Support
                                                              • Microchip Devices Code Protection Feature
                                                              • Legal Notice
                                                              • Trademarks
                                                              • Quality Management System
                                                              • Worldwide Sales and Service
Page 24: AVR128DB48 Curiosity Nano Hardware User Guideww1.microchip.com/downloads/en/DeviceDoc/AVR128DB48-Curiosit… · 4. Curiosity Nano Curiosity Nano is an evaluation platform of small

Figure 4-11 Connecting the MPLABreg PICkittrade 4 In-Circuit DebuggerProgrammer to AVR128DB48 CuriosityNano

2345678 1

VDD

GroundDATA

2 = VDD

3 = Ground

4 = PGD

5 = Unused

6 = Unused

7 = Unused

8 = Unused

1 = Unused

MPLABreg PICkittrade 4

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 24

Figure 4-12 Connecting the Atmel-ICE to AVR128DB48 Curiosity Nano

VDD

Ground

DATA

AVRregSAM

3 = UPDI

4 = VTG

5 = Unused

6 = Unused

7 = Unused

8 = Unused

1 = Unused

2 = GND

9 = Unused

10 = Unused

Atmel-ICE

21 9

10

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

CAUTIONTo avoid contention between the external debugger and the on-board debugger do not start anyprogrammingdebug operation with the on-board debugger through MPLABreg X IDE or Atmel Studio 7 ormass storage programming while the external tool is active

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 25

5 Hardware User Guide

51 Connectors

511 AVR128DB48 Curiosity Nano PinoutAll the AVR128DB48 IO pins are accessible at the edge connectors on the board The image below shows the boardpinout For all available functions on each pin refer to the IO Multiplexing and Considerations section in theAVR128DB48 data sheet

Figure 5-1 AVR128DB48 Curiosity Nano Pinout

USB

DEBUGGER

AVR128DB48

SW0

LED0

PS LEDNC

NC

IDID

CDC RX

CD

CR

XUSART3 TXPB0

CDC TX

CD

CT

XUSART3 RXPB1

DBG1

DB

G1PB3LED0

DBG2

DB

G2PB2SW0

PF4

PF

4USART2 TX

PF5

PF

5USART2 RX

PA2

PA

2TWI0 SDA

PA3

PA

3TWI0 SCL

PA4

PA

4SPI0 MOSI

PA5

PA

5SPI0 MISO

PA6

PA

6SPI0 SCK

PA7

PA

7SPI0 SS

GND

GN

D

PB0

PB

0USART3 TXCDC RX

PB1

PB

1USART3 RXCDC TX

PF2

PF

2

PF3

PF

3

PC0

PC

0

PC1

PC

1

PC2

PC

2

PC3

PC

3

GND

GN

D

(PA0)

(PA

0)XTALHF1

(PA1)

(PA

1)XTALHF2

PB2

PB

2SW0

PB3

PB

3LED0

VBUS

VB

US

VOFF

VO

FF

DBG3

DB

G3 PF6

DBG0

DB

G0 UPDI

GND

GN

D

VTG

VT

G

PD6

PD

6 AIN6

PD3

PD

3 AIN3 OP0 INN

PD2

PD

2 AIN2 OP0 OUT TCA0 WO2

PD1

PD

1 AIN1 OP0 INP TCA0 WO1

PD0

PD

0 AIN0 TCA0 WO0

PD7

PD

7 AIN7 OP1 INN

PD5

PD

5 AIN5 OP1 OUT

PD4

PD

4 AIN4 OP1 INP

GND

GN

D

PE3

PE

3 OP2 INN

PE2

PE

2 OP2 OUT

PE1

PE

1 OP2 INP

PE0

PE

0

PC7

PC

7

PC6

PC

6

PC5

PC

5

PC4

PC

4

GND

GN

D

PB5

PB

5

PB4

PB

4

(PF1)

(PF

1) XTAL32K2

(PF0)

(PF

0) XTAL32K1

DEBUGGERAVR128DB48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

MVIO

OPAMP

Shared pin

AVR128DB48Curiosity Nano

512 Using Pin HeadersThe edge connector footprint on AVR128DB48 Curiosity Nano has a staggered design where each hole is shifted 8mil (~02 mm) off-center The hole shift allows the use of regular 100 mil pin headers on the board without solderingOnce the pin headers are firmly in place they can be used in normal applications like pin sockets and prototypingboards without any issues

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 26

Figure 5-2 Attaching Pin-Headers to the Curiostiy Nano Board

Figure 5-3 Connecting to Curiosity Nano Base for Click boardstrade

Tip  Start at one end of the pin header and gradually insert the header along the length of the boardOnce all the pins are in place use a flat surface to push them in

Tip  For applications where the pin headers will be used permanently it is still recommended to solderthem in place

Important  Once the pin headers are in place they are hard to remove by hand Use a set of pliers andcarefully remove the pin headers to avoid damage to the pin headers and PCB

513 Multi-Voltage IO

The AVR128DB48 Curiosity Nano MCU has support for Multi-Voltage IO (MVIO) AVR128DB48 MVIO pins areconnected to the edge connector at PC0-PC7 MVIO pins are capable of regular IO-pin behavior

MVIO can be configured in one of two supply modesbull Single-Supply mode All IO pins including MVIO-capable pins are powered by VCC_TARGET By default

VCC_TARGET is connected to VDDIO2 through a 0-ohm resistor (R204)bull Dual-Supply mode MVIO-capable pins are powered by an external power supply connected to VDDIO2 Non-

MVIO pins are powered by VCC_TARGET

Dual-Supply mode allows MVIO-pins to be powered at different voltages than pins powered from VCC_TARGET

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 27

WARNINGThe absolute maximum external voltage range for the AVR128DB48 is 18ndash55V Applying a higher voltagemay cause permanent damage to the board

By default AVR128DB48 Curiosity Nano board is configured for single-supply mode To use Dual-Supply mode somehardware modifications are required

WARNINGBefore any hardware modifications are done make sure the board is disconnected from USB or externalpower

bull Disconnect resistor R204 connecting VDDIO2 to VCC_TARGETbull Connect a new power supply to VDDIO2 and ground at J212bull J212 does not have reverse polarity protection Make sure to match polarity between the power supply and

J212 Positive-polarity to J212-pin 1 and negative-polarity to J212-pin 2

The resistor R204 VDDIO2 and J212 can be seen in Figure 5-4

Figure 5-4 MVIO and VDDIO2 Connections

J212 R204

WARNINGApplying an external voltage to VDDIO2 pin without removing resistor R204 may cause permanentdamage to the board

WARNINGJ212 does not have reverse polarity protection Applying voltage to the wrong pin may cause permanentdamage to the board

514 Operational AmplifiersAVR128DB48 features three internal operational amplifiers with a flexible connection scheme using analogmultiplexers and resistor ladders This allows a large number of analog signal conditioning configurations manyrequiring no external components

Table 5-1 OPAMP Pin Connections

OPAMP Poisitive Input (INP) Negative Input (INN) Output (OUT)

OP0 PD1 PD3 PD2

OP1 PD4 PD7 PD5

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 28

continuedOPAMP Poisitive Input (INP) Negative Input (INN) Output (OUT)

OP2 PE1 PE3 PE2

For information about OPAMP on the edge connector and any shared functionality see 511 AVR128DB48 CuriosityNano Pinout

52 Peripherals

521 LEDThere is one yellow user LED available on the AVR128DB48 Curiosity Nano board that can be controlled by eitherGPIO or PWM The LED can be activated by driving the connected IO line to GND

Table 5-2 LED Connection

AVR128DB48 Pin Function Shared Functionality

PB3 Yellow LED0 Edge connector On-board debugger

522 Mechanical SwitchThe AVR128DB48 Curiosity Nano board has one mechanical switch This is a generic user-configurable switchWhen the switch is pressed it will drive the IO line to ground (GND)

Tip  There is no externally connected pull-up resistor on the switch To use the switch make sure that aninternal pull-up resistor is enabled on pin PB2

Table 5-3 Mechanical Switch

AVR128DB48 Pin Description Shared Functionality

PB2 User switch (SW0) Edge connector On-board debugger

523 32768 kHz Crystal

On the AVR128DB48 Curiosity Nano board is a mounted 32768 kHz crystal of type VMK3-9001-32K7680000 thecrystal is accurate to within 20 ppm Using the External 32768 kHz Crystal Oscillator (XOSC32K) module inAVR128DB48 with the mounted 32768 kHz crystal generates a clock signal that is significantly more accurate thanthe Internal 32768 kHz Ultra Low-Power Oscillator (OSC32K) module can generate alone With the Auto-Tunefeature the 32768 kHz can be used as a reference to improve the accuracy of the internal oscillator This is an idealreference clock for the Real-Time Counter module in AVR128DB48

The 32768 kHz crystal is connected to AVR128DB48 on PF0 and PF1 which are also routed to the edge connectorthrough two solder points PF0 and PF1 are disconnected from the edge connector by default to reduce the chanceof an external signal causing contention with the crystal and to remove excessive capacitance on the lines

Next to the 32768 kHz crystal is a cut-strap (J209) which can be used to measure the oscillator safety factor This isdone by cutting the strap and adding a 0402 SMD resistor across the strap More information about oscillatorallowance and safety factor can be found in the AN2648 application note from Microchip

Cut straps and solder points can be seen in Figure 5-5

Table 5-4 32768 kHz Crystal Connections

AVR128DB48 Pin Function Shared Functionality

PF0 XTAL32K1 (Crystal input) Edge connector

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 29

continuedAVR128DB48 Pin Function Shared Functionality

PF1 XTAL32K2 (Crystal output) Edge connector

PA0 and PA1 can be used as GPIO To do so some hardware modifications are required

WARNINGBefore any hardware modifications are done make sure the board is disconnected from the USB orexternal power

bull Disconnect the 32768 kHz crystal by cutting the two straps on the top side of the board next to the crystal(J207 J208) The crystal should be disconnected when using the pin as GPIO as this might harm the crystal

bull Connect the IO lines to the edge connector by placing solder blobs on the circular solder points marked PF0and PF1 on the bottom side of the board (J210 J211)

Figure 5-5 Crystal Connection and Cut Straps

Top side Boom side

J211

J210

J207

J20832768 kHz Crystal

J209

524 1600 MHz Crystal

On the AVR128DB48 Curiosity Nano board is a mounted 1600 MHz crystal of type VXM7-9040-16M0000000 thecrystal is accurate to within 20 ppm Using the External High-Frequency Crystal Oscillator (XOSCHF) module inAVR128DB48 with the mounted 1600 MHz crystal generates a clock signal that is significantly more accurate thanthe Internal High-Frequency Oscillator (OSCHF) module

The 1600 MHz crystal is connected to AVR128DB48 on PA0 and PA1 which are also routed to the edge connectorthrough two solder points PA0 and PA1 are disconnected from the edge connector by default to reduce the chanceof an external signal causing contention with the crystal and to remove excessive capacitance on the lines

Next to the 1600 MHz crystal is a cut-strap (J217) which can be used to measure the oscillator safety factor This isdone by cutting the strap and adding a 0402 SMD resistor across the strap More information about oscillatorallowance and safety factor can be found in the AN2648 application note from Microchip

Cut straps and solder points can be seen in Figure 5-6

Table 5-5 Crystal Connections

AVR128DB48 Pin Function Shared Functionality

PA0 XTALHF1 (Crystal input) Edge connector

PA1 XTALHF2 (Crystal output) Edge connector

PA0 and PA1 can be used as GPIO To do so some hardware modifications are required

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 30

WARNINGBefore any hardware modifications are done make sure the board is disconnected from USB or externalpower

bull Disconnect the 1600 MHz crystal by cutting the two straps on the top side of the board next to the crystal (J215J216) The crystal should be disconnected when using the pin as GPIO as this might harm the crystal

bull Connect the IO lines to the edge connector by placing solder blobs on the circular solder points marked PA0and PA1 on the bottom side of the board (J213 J214)

Figure 5-6 Crystal Connection and Cut Straps

Top side Boom side

J214

J213

J216

J2151600 MHzCrystal

J217

525 On-Board Debugger ImplementationAVR128DB48 Curiosity Nano features an on-board debugger that can be used to program and debug theAVR128DB48 using UPDI The on-board debugger also includes a virtual serial port (CDC) interface over UART anddebug GPIO Both MPLABreg X IDE and Atmel Studio 7 can be used as a front-end for the on-board debugger forprogramming and debugging MPLAB Data Visualizer can be used as a front-end for the CDC and debug GPIO

5251 On-Board Debugger ConnectionsThe table below shows the connections between the target and the debugger section All connections between thetarget and the debugger are tri-stated as long as the debugger is not actively using the interface Hence since thereare little contaminations of the signals the pins can be configured to anything the user wants

For further information on how to use the capabilities of the on-board debugger see 41 On-Board DebuggerOverview

Table 5-6 On-Board Debugger Connections

AVR128DB48Pin

Debugger Pin Function Shared Functionality

PB1 CDC TX UART RX (AVR128DB48 RX line) Edge connector

PB0 CDC RX UART TX (AVR128DB48 TX line) Edge connector

UPDI DBG0 UPDI Edge connector

PB3 DBG1 LED0Debug GPIO1 Edge connector

PB2 DBG2 SW0Debug GPIO0 Edge connector

PF6 DBG3 RESET Edge connector

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 31

6 Hardware Revision History and Known IssuesThis user guide is written to provide information about the latest available revision of the board The followingsections contain information about known issues a revision history of older revisions and how older revisions differfrom the latest revision

61 Identifying Product ID and RevisionThe revision and product identifier of the AVR128DB48 Curiosity Nano Board can be found in two ways Either byutilizing the MPLABreg X IDE or Atmel Studio 7 Kit Window or by looking at the sticker on the bottom side of the PCB

By connecting AVR128DB48 Curiosity Nano to a computer with MPLABreg X IDE or Atmel Studio 7 running the KitWindow will pop up The first six digits of the serial number which is listed under kit information contain the productidentifier and revision

Tip  The Kit Window can be opened in MPLABreg X IDE through the menu bar Window gt Kit Window

The same information can be found on the sticker on the bottom side of the PCB Most boards will have the identifierand revision printed in plain text as A09-nnnnrr where ldquonnnnrdquo is the identifier and ldquorrrdquo is the revision Boards withlimited space have a sticker with only a data matrix code containing the product identifier revision and serialnumber

The serial number string has the following format

nnnnrrssssssssss

n = product identifier

r = revision

s = serial number

The product identifier for AVR128DB48 Curiosity Nano is A09‑3372

62 Revision 3AVR128DB48 silicon revision A5 or later is mounted on this revision of the board

63 Revision 2Revision 2 is the initially released board revision

AVR128DB48 silicon revision A4 is mounted on this revision of the board

AVR128DB48 Curiosity NanoHardware Revision History and Known Issues

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 32

7 Document Revision HistoryDoc Rev Date Comments

A 092020 Initial document release

AVR128DB48 Curiosity NanoDocument Revision History

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 33

8 Appendix

81 SchematicFigure 8-1 AVR128DB48 Curiosity Nano Schematic

11

22

33

44

55

66

77

88

DD

CC

BB

AA

2 of

4

AV

R12

8DB

48 C

uri

osit

y N

ano

240

820

20A

VR

128D

B48

_Cur

iosi

ty_N

ano_

Targ

et_M

CU

Sch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA

Rev

isio

n

File

P

CB

Num

ber

PC

B

Rev

isio

n

Des

ign

ed w

ith

Dra

wn

By

ML

Shee

t Titl

e

Targ

et M

CU

Eng

inee

rA

H

A08

-305

71

Size

A3

A09

-337

22

Page

D

ateA

ltium

com

GN

D

VD

DIO

2

100n

C20

1

GN

D

PA5_

SPI0

_MIS

OPA

6_SP

I0_S

CK

PA7_

SPI0

_SS

PB0_

USA

RT

3_T

XPB

1_U

SAR

T3_

RX

PB2_

SW0_

DB

G2

PB3_

LE

D0_

DB

G1

PB

4P

B5

PC

0P

C1

PC

2

PC3

PC4PC5PC6PC7PD0_AIN0_TCA0_WO0PD1_AIN1_OP0_INP_TCA0_WO1PD2_AIN2_OP0_OUT_TCA0_WO2PD3_AIN3_OP0_INNPD4_AIN4_OP1_INP

PA3_TWI0_SCL

PA1_XTALHF2

UPDI_DBG0

PF5_USART2_RX

PF3

PF

2PF

1_X

TA

L32

K2

PF0_

XT

AL

32K

1P

E3_

OP

2_IN

NP

E2_

OP

2_O

UT

PE

1_O

P2_

INP

PE

0

PD5_

AIN

5_O

P1_

OU

TPD

6_A

IN6

PD7_

AIN

7_O

P1_

INN

GN

D

VC

C_T

AR

GE

T

100n

C20

2

GN

DV

CC

_TA

RG

ET

100n

C20

0

PF1_XTAL32K2

PF0_XTAL32K1

PA2_TWI0_SDA

PA0_XTALHF1

PF4_USART2_TX

PA4_SPI0_MOSI

GN

D

PA7_

SPI0

_SS

PA6_

SPI0

_SC

KPA

5_SP

I0_M

ISO

PA4_

SPI0

_MO

SIPA

3_T

WI0

_SC

LPA

2_T

WI0

_SD

A

PC

0P

C1

PC

2P

C3

PB

4P

B5

PD7_

AIN

7_O

P1_

INN

PD6_

AIN

6

PD2_

AIN

2_O

P0_

OU

T_T

CA

0_W

O2

PD1_

AIN

1_O

P0_

INP_

TC

A0_

WO

1PD

0_A

IN0_

TC

A0_

WO

0

PD5_

AIN

5_O

P1_

OU

TPD

4_A

IN4_

OP

1_IN

P

PD3_

AIN

3_O

P0_

INN

32K

Hz

Cry

stal

PB0_

USA

RT

3_T

XPB

1_U

SAR

T3_

RX

1kR203

US

ER

LE

D

VC

C_T

AR

GE

T

PF6_DBG3

PB2_SW0_DBG2

PB3_LED0_DBG1

GN

D

USE

R B

UT

TO

N

PB3_

LE

D0_

DB

G1

PB2_

SW0_

DB

G2

PB1_

USA

RT

3_R

XPB

0_U

SAR

T3_

TX

PF4_

USA

RT

2_T

XPF

5_U

SAR

T2_

RX

PF

2P

F3

PC

4P

C5

PC

6P

C7

1kR202

YELLOWLEDSML-D12Y1WT86

2 1

D200

TS604VM1-035CR13

4 2

SW20

0

GN

DV

CC

_ED

GE

GN

DG

ND

GN

DG

ND

UPD

I_D

BG

0P

F6_

DB

G3

J209

PB3_

LE

D0_

DB

G1

PB2_

SW0_

DB

G2

AV

R12

8DB

48

22u

FC

205

VC

C_E

DG

E

GN

D

DBG0

CDC_TXCDC_RX

DBG2

DBG1

DBG3

DBG2

DE

BU

GG

ER

CO

NN

EC

TIO

NS

DBG1

DBG3DBG0

VOFF

ID_SYS

ID_SYS

VOFF

TA

RG

ET

BU

LK

VC

C_T

AR

GE

TR

ESE

T P

ull

VB

US

CD

C R

X3

CD

C T

X4

DB

G1

5

DB

G2

6

0 T

X7

1 R

X8

2 SD

A9

3 S

CL

10

4 M

OSI

11

5 M

ISO

12

6 S

CK

13

7 S

S14

GN

D15

0 (T

X)

16

1 (R

X)

17

218

319

020

GN

D24

DB

G3

54

DB

G0

53

GN

D52

VC

C51

PW

M 3

46

AD

C 2

45

AD

C 1

44

AD

C 0

43

GN

D42

438

434

GN

D33

AD

C 7

50

AD

C 6

49

AD

C 5

48

PW

M 4

47

DE

BU

GG

ER

TAR

GE

T

ID2

VO

FF

55

121

222

323

025

126

227

328

429

530

631

732

535

636

737

539

640

741

RE

SER

VE

D1

VB

US

56

CN

AN

O56

-pin

edg

e co

nnec

tor

J200

J201

J203

J205

J206

J202

J204

PF1_

XT

AL

32K

2PF

0_X

TA

L32

K1

NC

XOUT

XIN

47kR200

AV

R12

8DB

48

UPD

I

GPI

O1

GPI

O0

RE

SET

DB

G0

DB

G1

DB

G2

DB

G3

Deb

ugge

r

CD

C T

X

CD

C R

X

UA

RT

3 R

X

UA

RT

3 T

X

VT

G1

8V -

55

VPB

3

PB

2

PF

6

UP

DI

PB

0

PB

1

Nam

eP

in

PE

3_O

P2_

INN

PE

2_O

P2_

OU

TP

E1_

OP

2_IN

PP

E0

J207

J208

PF

0P

F1

PA5

1

PA6

2

PA7

3

PB0

4

PB1

5

PB2

6

PB3

7

PB4

8

PB5

9

PC0

10

PC1

11

PC2

12

PC313

VDDIO214

GND15

PC416

PC517

PC618

PC719

PD020

PD121

PD222

PD323

PD424

PD5

25

PD6

26

PD7

27

AVDD

28

GND

29

PE0

30

PE1

31

PE2

32

PE3

33

XTAL32K1PF0

34

XTAL32K2PF1

35

PF2

36

PF337

PF438

PF539

PF640

UPDI41

VDD42

GND43

XTALHF1PA044

XTALHF2PA145

PA246

PA347

PA448

AV

R12

8DB

48-I

PT

U20

0

0RR204

GN

D

VC

C_T

AR

GE

T

VDDIO2

GND

J210

J211

82p

C20

48

2pC

203

GN

DG

ND

16M

Hz

Cry

stal

J217

XHFOUT

XHFIN

J214

J213

GN

D

J215

J216

PA0_XTALHF1

PA1_XTALHF2

PA0_

XT

AL

HF

1PA

1_X

TA

LH

F2

PA0

PA1

1 2

J212 N

M

15pF

C20

615

pFC

207

13

24 16

000

MH

zV

XM

7-90

40-1

6M00

0000

0TR

XC

201

GN

D32

768

kHz

VM

K3-

9001

-32K

7680

000T

R

XC

200

CDC_TX

CDC_RX

CD

C_T

XC

DC

_RX

Cry

stal

dat

ashe

et

Ccr

ysta

l = 9

pFm

ax E

SR

= 7

0kO

hmA

ccur

acy

plusmn20p

pm

AV

R48

DB

128

data

shee

tC

xin

= 4

0pF

(ty

pica

l val

ue)

Cxo

ut =

40

pF (

typi

cal v

alue

)C

lasymp1

( (1

40

pF)+

(1

40p

F)

)asymp

20p

FM

axim

um L

oad

= 1

25p

FM

axim

um E

SR =

50k

Ohm

Est

imat

ed C

pcb

= 0

5pF

Est

imat

ed lo

adC

= 2

(C

crys

tal-

Cpa

ra -

Cpc

b)C

= 2

(9p

F -

20

pF -

05

pF)

C =

13

0pF

Sele

cted

in d

esig

n af

ter

veri

fica

tion

C=

82

pF8

2pF

NO

TE

on

UA

RT

CD

C

RX

TX

onth

ehe

ader

deno

tes

the

inpu

tout

put d

irec

tion

of th

e si

gnal

resp

ectiv

e to

its

sou

rce

CD

C T

X is

out

put f

rom

the

DE

BU

GG

ER

C

DC

RX

is in

put t

o th

e D

EB

UG

GE

R

TX

is o

utpu

t fro

m th

e T

AR

GE

T d

evic

eR

X is

inpu

t to

the

TA

RG

ET

dev

ice

NO

TE

on

I2C

No

pull

-ups

on

boar

d P

ull-

ups

shou

ld b

em

ount

ed c

lose

to s

lave

dev

ice(

s)

WA

RN

ING

M

ake

sure

tore

mov

e R

204

befo

reap

plyi

ng p

ower

to J

212

Cry

stal

dat

ashe

et

Ccr

ysta

l = 1

2pF

max

ES

R =

60O

hmA

ccur

acy

plusmn30p

pm

AV

R48

DB

128

data

shee

tC

xin

= 4

0pF

(ty

pica

l val

ue)

Cxo

ut =

40

pF (

typi

cal v

alue

)C

lasymp1

( (1

40

pF)+

(1

40p

F)

)asymp

20p

FM

axim

um L

oad

= 1

25p

FM

axim

um E

SR =

k

Ohm

Est

imat

ed C

pcb

= 0

5pF

Est

imat

ed lo

adC

= 2

(C

crys

tal-

Cpa

ra -

Cpc

b)C

= 2

(12

pF -

20

pF -

05

pF)

C =

19

0pF

Sele

cted

in d

esig

n af

ter

veri

fica

tion

C=

15p

F1

5pF

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 34

11

22

33

44

55

66

77

88

DD

CC

BB

AA

3 of

4

AV

R12

8DB

48 C

uri

osit

y N

ano

2020

-06-

26A

VR

128D

B48

_Cur

iosi

ty_N

ano_

Deb

ugge

rSch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA

Rev

isio

n

Fil

eP

CB

Num

ber

PC

B

Rev

isio

n

Des

ign

ed w

ith

Dra

wn

By

ML

Shee

t Tit

le

Deb

ugge

r

Eng

inee

rA

H

A08

-305

71

Size

A3

A09

-337

22

Page

D

ateA

ltium

com

DE

BU

GG

ER

USB

MIC

RO

-B C

ON

NE

CT

OR

GN

D

USB

D_P

USB

D_N

100n

C10

7

100n

C10

8

1kR

107

VC

C_P

3V3

SRST

STA

TU

S_L

ED

SHIE

LD

VB

US

VC

C_P

3V3

GN

D

TP

100

Test

poin

t Arr

ay

12

34

56

78

910

TC

KT

DO

TM

SV

sup

TD

IG

ND

TR

STSR

STV

Tre

fG

ND

J102

GN

D

47u

F

C10

0

DBG0

DB

G0

21

GR

EE

N L

ED

SML

-P12

MT

T86

R

D10

0

VBUS

1

D-

2

D+

3

GND

5

SHIELD1

6

SHIELD2

7

ID

4

SHIELD3

8

SHIELD4

9 MU

-MB

0142

AB

2-26

9

J105

PAD

33

PA00

1

PA01

2

PA02

3

PA03

4

GND 10VDDANA 9

PA04

5

PA05

6

PA06

7

PA07

8

PA08 11

PA09 12

PA10 13

PA11 14

PA14 15

PA15 16

PA16

17

PA17

18

PA18

19

PA19

20

PA22

21

USB_SOFPA23

22

USB_DMPA24

23

USB_DPPA25

24

PA2725 RESETN26 PA2827 GND28 VDDCORE29 VDDIN30 SWDCLKPA3031 SWDIOPA3132

SAM

D21

E18

A-M

UT

U10

0

VOUT

1

VOUT

2

GND 3

EN

4

VIN

6

NC

5

EP 7

MIC

5528

-33

YM

TU

101

VC

C_P

3V3

GN

D

USB

D_P

USB

D_N

GN

D

1uC

106

VC

C_M

CU

_CO

RE

VC

C_P

3V3

VC

C_P

3V3

22u

FC

101

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

3

VC

C_P

3V3

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

4

VC

C_P

3V3

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

5

VC

C_P

3V3

GN

D

GN

D GN

D

GN

D

VC

C_E

DG

E

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

7

VC

C_P

3V3

GN

DDBG2

DB

G3_

CT

RL

S1_0

_TX

S1_1

_RX

S0_2

_TX

DA

CV

TG

_AD

C

RE

SER

VE

D

S0_3

_CL

K

DBG0_CTRL

CD

C_T

X_C

TR

L

BO

OT

DE

BU

GG

ER

PO

WE

RS

TA

TU

S L

ED

EN

1

BYP

6

VOUT

4

GND

2

VIN

3

NCADJ

5

GND

7

MIC

5353

U10

2

100n

C10

2

GN

D

GN

D

47kR101

27kR104 G

ND

33k

R10

6

22u

F

C10

3 GN

D

1kR

108

J100

VC

C_L

EV

EL

VC

C_R

EG

UL

AT

OR

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

6

VC

C_P

3V3

GN

DDBG1

CD

C_R

X

CD

C_T

X

DBG3

DBG1_CTRL

DE

BU

GG

ER

RE

GU

LA

TO

R

REG_ENABLE

RE

G_E

NA

BL

E

47kR103

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

47kR102

47kR105

SWC

LK

GN

D

47kR100 G

ND

DB

G2

S0_0

_RX

DB

G1_

CT

RL

DB

G0_

CT

RL

DB

G3

OP

EN

DR

AIN

TA

RG

ET

AD

JUST

AB

LE

RE

GU

LA

TO

R

SRST

DE

BU

GG

ER

TE

ST

PO

INT DBG2_CTRL

VO

FF

CD

C_R

X_C

TR

L

47kR109

DB

G1

CD

C_T

X_C

TR

L

CD

C_R

X_C

TR

L

SWC

LK

REG_ADJUST

DBG2_GPIO

DB

G3_

CT

RL

DB

G2_

CT

RL

UP

DI

UPD

I

GPI

O

GPI

O

RE

SET

Sign

al

DB

G0

DB

G1

DB

G2

DB

G3

ICS

PIn

terf

ace

DA

T

CL

K

GPI

O

MC

LR

DB

G3

CD

C T

X

CD

C R

X

UA

RT

RX

UA

RT

TX

UA

RT

RX

UA

RT

TX

TA

RG

ET

TA

RG

ET

1kR

110

VBUS_ADC

1

23

DM

N65

D8L

FB

Q10

1

VC

C-

-

ID_SYS

VOFF

1kR112

VC

C_P

3V3

VT

G_A

DC

DA

C

MIC

9416

3

VIN

B2

VOUT

A1

VIN

A2

EN

C2

GND

C1

VOUT

B1

U10

8

GN

D

ID_S

YS

VT

G_E

N

VTG_EN

VBUS_ADC

SWD

IO

ID_S

YS

TP

101

GN

DSW

DIO

VO

FF

47kR111 G

ND

ID P

IN

MC

3621

3

F10

0

VC

C_V

BU

S

VC

C_V

BU

S

VC

C_V

BU

S

J101

VC

C_T

AR

GE

T

47k

R11

3

CDC_TX

CDC_RX

Prog

ram

min

g co

nnec

tor

for

fact

ory

prog

ram

min

g of

DE

BU

GG

ER

MIC

5528

V

in 2

5V

to 5

5V

Vou

t F

ixed

33

VIm

ax 5

00m

AD

ropo

ut 2

60m

V

500

mA

MIC

5353

V

in 2

6V

to 6

VV

out

12

5V to

51

VIm

ax 5

00m

AD

ropo

ut (

typi

cal)

50m

V

150m

A 1

60m

V

500

mA

Acc

urac

y 2

in

itia

lT

herm

al s

hutd

own

and

curr

ent l

imit

Max

imum

out

put v

olta

ge is

lim

ited

by

the

inpu

t vol

tage

and

the

drop

out v

olta

ge in

the

regu

lato

r(V

max

= V

in -

dro

pout

)

J100

-

Cut

-str

ap u

sed

for

full

sep

arat

ion

of ta

rget

pow

er f

rom

the

leve

l shi

fter

s an

don

-boa

rd r

egul

ator

s-

For

cur

rent

mea

sure

men

ts u

sing

the

on-b

oard

pow

er s

uppl

y th

isst

rap

mus

t be

cut a

nd a

nam

met

er c

onne

cted

acr

oss

- F

or c

urre

nt m

easu

rem

ents

usi

ng a

n ex

tern

al p

ower

sup

ply

this

str

ap c

ould

be

cut f

or m

ore

accu

rate

mea

sure

men

ts L

eaka

ge b

ack

thro

ugh

the

swit

ch is

in th

e m

icro

am

pere

ran

ge

PT

C R

eset

tabl

e fu

se

Hol

d cu

rren

t 5

00m

AT

rip

curr

ent

100

0mA

Adj

usta

ble

outp

ut a

nd li

mit

atio

ns

- T

he D

EB

UG

GE

R c

an a

djus

t the

out

put v

olta

ge o

f th

e re

gula

tor

betw

een

125

V a

nd 5

1V

to th

e ta

rget

-

The

vol

tage

out

put i

s li

mit

ed b

y th

e in

put (

US

B)

whi

ch c

an v

ary

betw

een

440

V to

52

5V-

The

leve

l shi

fter

s ha

ve a

min

imal

vol

tage

leve

l of

165

V a

nd w

ill l

imit

the

min

imum

ope

ratin

g vo

ltage

all

owed

for

the

targ

et to

sti

ll a

llow

com

mun

icat

ion

- T

he M

IC94

163

has

a m

inim

al v

olat

ege

leve

l of

170

V a

nd w

ill l

imit

the

min

imum

vol

tage

del

iver

ed to

the

targ

et

- F

irm

war

e co

nfig

urat

ion

wil

l lim

it th

e vo

ltage

ran

ge to

be

wit

hin

the

the

targ

et s

peci

fica

tion

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 35

82 Assembly DrawingFigure 8-2 AVR128DB48 Curiosity Nano Assembly Drawing Top

+

Cb

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20001 PAC20002 COC200

PAC20101 PAC20102 COC201

PAC20201 PAC20202 COC202 PAC20301

PAC20302 COC203

PAC20401

PAC20402 COC204

PAC20502

PAC20501 COC205

PAC20601

PAC20602 COC206 PAC20701

PAC20702 COC207 PAD10002 PAD10001 COD100

PAD20002

PAD20001 COD200

PAF10002

PAF10001 COF100

PAJ10002 PAJ10001 COJ100

PAJ10101 PAJ10102 COJ101

PAJ10201

PAJ10202

PAJ10203

PAJ10204

PAJ10205

PAJ10206 COJ102

PAJ10506

PAJ10507 PAJ10509

PAJ10508 PAJ105010

PAJ105011 PAJ10505

PAJ10504

PAJ10503

PAJ10502

PAJ10501

PAJ10500

COJ105

PAJ200056 PAJ200053

PAJ200028 PAJ20002 PAJ20001

PAJ200051 PAJ200050 PAJ200052 PAJ200049 PAJ200048 PAJ200047 PAJ200046 PAJ200045 PAJ200044 PAJ200043 PAJ200042 PAJ200041 PAJ200040 PAJ200039 PAJ200038 PAJ200037 PAJ200036 PAJ200035 PAJ200034 PAJ200033 PAJ200032 PAJ200031 PAJ200030 PAJ200029

PAJ20003 PAJ20004 PAJ20005 PAJ20006 PAJ20007 PAJ20008 PAJ20009 PAJ200010 PAJ200011 PAJ200012 PAJ200013 PAJ200014 PAJ200015 PAJ200016 PAJ200017 PAJ200018 PAJ200019 PAJ200020 PAJ200021 PAJ200022 PAJ200023 PAJ200026 PAJ200025 PAJ200024 PAJ200027

PAJ200054 PAJ200055 PAJ20000

COJ200

PAJ20102 PAJ20101 COJ201

PAJ20202 PAJ20201 COJ202

PAJ20302 PAJ20301 COJ203

PAJ20402 PAJ20401 COJ204

PAJ20502 PAJ20501 COJ205

PAJ20602 PAJ20601 COJ206 PAJ20702 PAJ20701 COJ207

PAJ20802 PAJ20801 COJ208

PAJ20902 PAJ20901 COJ209

PAJ21001 PAJ21002 PAJ21005 COJ210

PAJ21102 PAJ21101 PAJ21105 COJ211

PAJ21202 PAJ21201 COJ212

PAJ21301 PAJ21302 PAJ21305 COJ213

PAJ21401 PAJ21402 PAJ21405 COJ214

PAJ21502 PAJ21501 COJ215

PAJ21602 PAJ21601 COJ216 PAJ21702 PAJ21701 COJ217

COLABEL1

PAQ10101 PAQ10102 PAQ10103 PAQ10100

COQ101 PAR10002

PAR10001 COR100 PAR10101 PAR10102 COR101

PAR10202 PAR10201 COR102

PAR10302 PAR10301 COR103

PAR10401 PAR10402 COR104

PAR10502

PAR10501 COR105

PAR10601 PAR10602 COR106

PAR10702 PAR10701 COR107

PAR10801

PAR10802 COR108

PAR10901 PAR10902 COR109

PAR11001 PAR11002 COR110

PAR11101 PAR11102 COR111

PAR11201 PAR11202 COR112

PAR11302 PAR11301 COR113

PAR20001 PAR20002 COR200 PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203 PAR20401 PAR20402 COR204

PASW20003

PASW20004 PASW20002

PASW20001 COSW200

PATP10001 COTP100

PATP10101 COTP101 PAU100033

PAU100032 PAU100031 PAU100030 PAU100029 PAU100028 PAU100027 PAU100026 PAU100025 PAU100024

PAU100023

PAU100022

PAU100021

PAU100020

PAU100019

PAU100018

PAU100017 PAU100016 PAU100015 PAU100014 PAU100013 PAU100012 PAU100011 PAU100010

PAU10001

PAU10002

PAU10003

PAU10004

PAU10005

PAU10006

PAU10007

PAU10008 PAU10009

COU100

PAU10107

PAU10104 PAU10105 PAU10106

PAU10103 PAU10102 PAU10101 PAU10100 COU101 PAU10207

PAU10204 PAU10205

PAU10206

PAU10203 PAU10202

PAU10201

COU102

PAU10306

PAU10305 PAU10304 PAU10303

PAU10302 PAU10301 PAU10300

COU103

PAU10406

PAU10405 PAU10404 PAU10403

PAU10402 PAU10401 PAU10400

COU104

PAU10506

PAU10505 PAU10504 PAU10503

PAU10502 PAU10501 PAU10500

COU105

PAU10606

PAU10605 PAU10604 PAU10603

PAU10602 PAU10601 PAU10600

COU106

PAU10706

PAU10705 PAU10704 PAU10703

PAU10702 PAU10701 PAU10700

COU107

PAU1080A1 PAU1080A2

PAU1080B1 PAU1080B2

PAU1080C1 PAU1080C2 COU108

PAU20001 PAU20002 PAU20003 PAU20004 PAU20005 PAU20006 PAU20007 PAU20008 PAU20009 PAU200010 PAU200011 PAU200012 PAU200013 PAU200014 PAU200015 PAU200016 PAU200017 PAU200018 PAU200019 PAU200020 PAU200021 PAU200022 PAU200023 PAU200024 PAU200025 PAU200026 PAU200027 PAU200028 PAU200029 PAU200030 PAU200031 PAU200032 PAU200033 PAU200034 PAU200035 PAU200036

PAU200037 PAU200038 PAU200039 PAU200040 PAU200041 PAU200042 PAU200043 PAU200044 PAU200045 PAU200046 PAU200047 PAU200048

COU200

PAXC20001

PAXC20002 COXC200

PAXC20101 PAXC20102

PAXC20103 PAXC20104 COXC201

Figure 8-3 AVR128DB48 Curiosity Nano Assembly Drawing Bottom

tcR

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20001 PAC20002 COC200

PAC20101 PAC20102 COC201

PAC20201 PAC20202 COC202 PAC20301

PAC20302 COC203

PAC20401

PAC20402 COC204

PAC20502

PAC20501 COC205

PAC20601

PAC20602 COC206 PAC20701

PAC20702 COC207 PAD10002 PAD10001 COD100

PAD20002

PAD20001 COD200

PAF10002

PAF10001 COF100

PAJ10002 PAJ10001 COJ100

PAJ10101 PAJ10102 COJ101

PAJ10201

PAJ10202

PAJ10203

PAJ10204

PAJ10205

PAJ10206 COJ102

PAJ10506

PAJ10507 PAJ10509

PAJ10508 PAJ105010

PAJ105011 PAJ10505

PAJ10504

PAJ10503

PAJ10502

PAJ10501

PAJ10500

COJ105

PAJ200056 PAJ200053

PAJ200028 PAJ20002 PAJ20001

PAJ200051 PAJ200050 PAJ200052 PAJ200049 PAJ200048 PAJ200047 PAJ200046 PAJ200045 PAJ200044 PAJ200043 PAJ200042 PAJ200041 PAJ200040 PAJ200039 PAJ200038 PAJ200037 PAJ200036 PAJ200035 PAJ200034 PAJ200033 PAJ200032 PAJ200031 PAJ200030 PAJ200029

PAJ20003 PAJ20004 PAJ20005 PAJ20006 PAJ20007 PAJ20008 PAJ20009 PAJ200010 PAJ200011 PAJ200012 PAJ200013 PAJ200014 PAJ200015 PAJ200016 PAJ200017 PAJ200018 PAJ200019 PAJ200020 PAJ200021 PAJ200022 PAJ200023 PAJ200026 PAJ200025 PAJ200024 PAJ200027

PAJ200054 PAJ200055 PAJ20000

COJ200

PAJ20102 PAJ20101 COJ201

PAJ20202 PAJ20201 COJ202

PAJ20302 PAJ20301 COJ203

PAJ20402 PAJ20401 COJ204

PAJ20502 PAJ20501 COJ205

PAJ20602 PAJ20601 COJ206 PAJ20702 PAJ20701 COJ207

PAJ20802 PAJ20801 COJ208

PAJ20902 PAJ20901 COJ209

PAJ21001 PAJ21002 PAJ21005 COJ210

PAJ21102 PAJ21101 PAJ21105 COJ211

PAJ21202 PAJ21201 COJ212

PAJ21301 PAJ21302 PAJ21305 COJ213

PAJ21401 PAJ21402 PAJ21405 COJ214

PAJ21502 PAJ21501 COJ215

PAJ21602 PAJ21601 COJ216 PAJ21702 PAJ21701 COJ217

COLABEL1

PAQ10101 PAQ10102 PAQ10103 PAQ10100

COQ101 PAR10002

PAR10001 COR100 PAR10101 PAR10102 COR101

PAR10202 PAR10201 COR102

PAR10302 PAR10301 COR103

PAR10401 PAR10402 COR104

PAR10502

PAR10501 COR105

PAR10601 PAR10602 COR106

PAR10702 PAR10701 COR107

PAR10801

PAR10802 COR108

PAR10901 PAR10902 COR109

PAR11001 PAR11002 COR110

PAR11101 PAR11102 COR111

PAR11201 PAR11202 COR112

PAR11302 PAR11301 COR113

PAR20001 PAR20002 COR200 PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203 PAR20401 PAR20402 COR204

PASW20003

PASW20004 PASW20002

PASW20001 COSW200

PATP10001 COTP100

PATP10101 COTP101 PAU100033

PAU100032 PAU100031 PAU100030 PAU100029 PAU100028 PAU100027 PAU100026 PAU100025 PAU100024

PAU100023

PAU100022

PAU100021

PAU100020

PAU100019

PAU100018

PAU100017 PAU100016 PAU100015 PAU100014 PAU100013 PAU100012 PAU100011 PAU100010

PAU10001

PAU10002

PAU10003

PAU10004

PAU10005

PAU10006

PAU10007

PAU10008 PAU10009

COU100

PAU10107

PAU10104 PAU10105 PAU10106

PAU10103 PAU10102 PAU10101 PAU10100 COU101 PAU10207

PAU10204 PAU10205

PAU10206

PAU10203 PAU10202

PAU10201

COU102

PAU10306

PAU10305 PAU10304 PAU10303

PAU10302 PAU10301 PAU10300

COU103

PAU10406

PAU10405 PAU10404 PAU10403

PAU10402 PAU10401 PAU10400

COU104

PAU10506

PAU10505 PAU10504 PAU10503

PAU10502 PAU10501 PAU10500

COU105

PAU10606

PAU10605 PAU10604 PAU10603

PAU10602 PAU10601 PAU10600

COU106

PAU10706

PAU10705 PAU10704 PAU10703

PAU10702 PAU10701 PAU10700

COU107

PAU1080A1 PAU1080A2

PAU1080B1 PAU1080B2

PAU1080C1 PAU1080C2 COU108

PAU20001 PAU20002 PAU20003 PAU20004 PAU20005 PAU20006 PAU20007 PAU20008 PAU20009 PAU200010 PAU200011 PAU200012 PAU200013 PAU200014 PAU200015 PAU200016 PAU200017 PAU200018 PAU200019 PAU200020 PAU200021 PAU200022 PAU200023 PAU200024 PAU200025 PAU200026 PAU200027 PAU200028 PAU200029 PAU200030 PAU200031 PAU200032 PAU200033 PAU200034 PAU200035 PAU200036

PAU200037 PAU200038 PAU200039 PAU200040 PAU200041 PAU200042 PAU200043 PAU200044 PAU200045 PAU200046 PAU200047 PAU200048

COU200

PAXC20001

PAXC20002 COXC200

PAXC20101 PAXC20102

PAXC20103 PAXC20104 COXC201

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 36

83 Curiosity Nano Base for Click boardstrade

Figure 8-4 AVR128DB48 Curiosity Nano Pinout Mapping

US

B

DE

BU

GG

ER

AV

R1

28

DB

48

SW

0

LE

D0

PS

LE

DNC

NC

ID

ID

CDC RX

CDCRX

USART3 TX

PB0

CDC TX

CDCTX

USART3 RX

PB1

DBG1

DBG1

PB3

LED0

DBG2

DBG2

PB2

SW0

PF4

PF4

USART2 TX

PF5

PF5

USART2 RX

PA2

PA2

TWI0 SDA

PA3

PA3

TWI0 SCL

PA4

PA4

SPI0 MOSI

PA5

PA5

SPI0 MISO

PA6

PA6

SPI0 SCK

PA7

PA7

SPI0 SS

GND

GND

PB0

PB0

USART3 TX

CDC RX

PB1

PB1

USART3 RX

CDC TX

PF2

PF2

PF3

PF3

PC0

PC0

PC1

PC1

PC2

PC2

PC3

PC3

GND

GND

(PA0)

(PA0)

XTALHF1

(PA1)

(PA1)

XTALHF2

PB2

PB2

SW0

PB3

PB3

LED0

VBUS

VBUS

VOFF

VOFF

DBG3

DBG3

PF6

DBG0

DBG0

UPDI

GND

GND

VTG

VTG

PD6

PD6

AIN6

PD3

PD3

AIN3

OP0 INN

PD2

PD2

AIN2

OP0 OUT

TCA0 WO2

PD1

PD1

AIN1

OP0 INP

TCA0 WO1

PD0

PD0

AIN0

TCA0 WO0

PD7

PD7

AIN7

OP1 INN

PD5

PD5

AIN5

OP1 OUT

PD4

PD4

AIN4

OP1 INP

GND

GND

PE3

PE3

OP2 INN

PE2

PE2

OP2 OUT

PE1

PE1

OP2 INP

PE0

PE0

PC7

PC7

PC6

PC6

PC5

PC5

PC4

PC4

GND

GND

PB5

PB5

PB4

PB4

(PF1)

(PF1)

XTAL32K2

(PF0)

(PF0)

XTAL32K1

DE

BU

GG

ER

AV

R1

28

DB

48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

MVIO

OPAMP

Shared pin

AV

R1

28

DB

48

Cu

rio

sity

Na

no

1

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

2

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

3

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

Xp

lain

ed

Pro

Ext

en

sio

nE

XT

11

2

19

20

Cu

rio

sity

Na

no

Ba

sefo

r cl

ick

bo

ard

sT

M

PD4

PD0

PD6

PD3

PA7

PF5

PA6

PF4

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

PD5

PD1

PF3

PF2

PE2

PB1

PA6

PB0

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

PD7

PD2

PE1

PE0

PE3

PF5

PA6

PF4

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

ID

GND

PD5

PD7

PF3

PE1

PD1

PD2

PF2

PE3

PA2

PA3

PB1

PB0

PE2

PA4

PA5

PA6

GND

+33V

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 37

84 Disconnecting the On-board DebuggerThe on-board debugger and level shifters can be completely disconnected from the AVR128DB48

The block diagram below shows all connections between the debugger and the AVR128DB48 The rounded boxesrepresent connections to the board edge The signal names shown are also printed in silkscreen on the bottom sideof the board

To disconnect the debugger cut the straps shown in Figure 8-6

Attention  Cutting the GPIO straps to the on-board debugger will disable the virtual serial portprogramming debugging and data streaming Cutting the power supply strap will disconnect the on-boardpower supply

Tip  Any connection that is cut can be reconnected using solder Alternatively a 0Ω 0402 resistor can bemounted

Tip  When the debugger is disconnected an external debugger can be connected to holes shown in Figure 8-6 Details about connecting an external debugger are described in 46 Connecting ExternalDebuggers

Figure 8-5  On-Board Debugger Connections Block Diagram

DE

BU

GG

ER

TARGETLevel-Shift

PA04PA06PA07PA08PA16PA00PA01

USB

DIR x 5

VCC_P3V3

VBUS

VC

C_L

EV

EL

VC

C_T

AR

GE

TDBG0DBG1DBG2DBG3CDC TXCDC RX

CDC RX

CDC TX

DBG3

DBG2

DBG1

DBG0

GPIO straps

LDO

VOFF

LDO

VBUS VTG

VCC_EDGE

Power Supply strap Target Power strap

UART RXUART TX

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 38

Figure 8-6 On-Board Debugger Connection Cut Straps

GPIO straps (bottom side) Power Supply strap (top side)

85 Getting Started with IARIAR Embedded Workbenchreg for AVRreg is a proprietary high-efficiency compiler not based on GCC Programming anddebugging of AVR128DB48 Curiosity Nano is supported in IARtrade Embedded Workbench for AVR using the Atmel-ICEinterface Some initial settings must be set up in the project to get the programming and debugging to work

The following steps will explain how to get your project ready for programming and debugging

1 Make sure you have opened the project you want to configure Open the OPTIONS dialog for the project2 In the category General Options select the Target tab Select the device for the project or if not listed the

core of the device as shown in Figure 8-73 In the category Debugger select the Setup tab Select Atmel-ICE as the driver as shown in Figure 8-84 In the category Debugger gt Atmel-ICE select the Atmel-ICE 1 tab Select UPDI as the interface and

optionally select the UPDI frequency as shown in Figure 8-9

Info  If the selection of Debug Port (mentioned in step 4) is grayed out the interface is preselected andthe user can skip this configuration step

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 39

Figure 8-7 Select Target Device

Figure 8-8 Select Debugger

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 40

Figure 8-9 Configure Interface

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 41

The Microchip Website

Microchip provides online support via our website at wwwmicrochipcom This website is used to make files andinformation easily available to customers Some of the content available includes

bull Product Support ndash Data sheets and errata application notes and sample programs design resources userrsquosguides and hardware support documents latest software releases and archived software

bull General Technical Support ndash Frequently Asked Questions (FAQs) technical support requests onlinediscussion groups Microchip design partner program member listing

bull Business of Microchip ndash Product selector and ordering guides latest Microchip press releases listing ofseminars and events listings of Microchip sales offices distributors and factory representatives

Product Change Notification Service

Microchiprsquos product change notification service helps keep customers current on Microchip products Subscribers willreceive email notification whenever there are changes updates revisions or errata related to a specified productfamily or development tool of interest

To register go to wwwmicrochipcompcn and follow the registration instructions

Customer Support

Users of Microchip products can receive assistance through several channels

bull Distributor or Representativebull Local Sales Officebull Embedded Solutions Engineer (ESE)bull Technical Support

Customers should contact their distributor representative or ESE for support Local sales offices are also available tohelp customers A listing of sales offices and locations is included in this document

Technical support is available through the website at wwwmicrochipcomsupport

Microchip Devices Code Protection Feature

Note the following details of the code protection feature on Microchip devices

bull Microchip products meet the specifications contained in their particular Microchip Data Sheetbull Microchip believes that its family of products is secure when used in the intended manner and under normal

conditionsbull There are dishonest and possibly illegal methods being used in attempts to breach the code protection features

of the Microchip devices We believe that these methods require using the Microchip products in a manneroutside the operating specifications contained in Microchiprsquos Data Sheets Attempts to breach these codeprotection features most likely cannot be accomplished without violating Microchiprsquos intellectual property rights

bull Microchip is willing to work with any customer who is concerned about the integrity of its codebull Neither Microchip nor any other semiconductor manufacturer can guarantee the security of its code Code

protection does not mean that we are guaranteeing the product is ldquounbreakablerdquo Code protection is constantlyevolving We at Microchip are committed to continuously improving the code protection features of our productsAttempts to break Microchiprsquos code protection feature may be a violation of the Digital Millennium Copyright ActIf such acts allow unauthorized access to your software or other copyrighted work you may have a right to suefor relief under that Act

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 42

Legal Notice

Information contained in this publication is provided for the sole purpose of designing with and using Microchipproducts Information regarding device applications and the like is provided only for your convenience and may besuperseded by updates It is your responsibility to ensure that your application meets with your specifications

THIS INFORMATION IS PROVIDED BY MICROCHIP ldquoAS ISrdquo MICROCHIP MAKES NO REPRESENTATIONS ORWARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED WRITTEN OR ORAL STATUTORY OROTHERWISE RELATED TO THE INFORMATION INCLUDING BUT NOT LIMITED TO ANY IMPLIEDWARRANTIES OF NON-INFRINGEMENT MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSEOR WARRANTIES RELATED TO ITS CONDITION QUALITY OR PERFORMANCE

IN NO EVENT WILL MICROCHIP BE LIABLE FOR ANY INDIRECT SPECIAL PUNITIVE INCIDENTAL ORCONSEQUENTIAL LOSS DAMAGE COST OR EXPENSE OF ANY KIND WHATSOEVER RELATED TO THEINFORMATION OR ITS USE HOWEVER CAUSED EVEN IF MICROCHIP HAS BEEN ADVISED OF THEPOSSIBILITY OR THE DAMAGES ARE FORESEEABLE TO THE FULLEST EXTENT ALLOWED BY LAWMICROCHIPS TOTAL LIABILITY ON ALL CLAIMS IN ANY WAY RELATED TO THE INFORMATION OR ITS USEWILL NOT EXCEED THE AMOUNT OF FEES IF ANY THAT YOU HAVE PAID DIRECTLY TO MICROCHIP FORTHE INFORMATION Use of Microchip devices in life support andor safety applications is entirely at the buyerrsquos riskand the buyer agrees to defend indemnify and hold harmless Microchip from any and all damages claims suits orexpenses resulting from such use No licenses are conveyed implicitly or otherwise under any Microchip intellectualproperty rights unless otherwise stated

Trademarks

The Microchip name and logo the Microchip logo Adaptec AnyRate AVR AVR logo AVR Freaks BesTimeBitCloud chipKIT chipKIT logo CryptoMemory CryptoRF dsPIC FlashFlex flexPWR HELDO IGLOO JukeBloxKeeLoq Kleer LANCheck LinkMD maXStylus maXTouch MediaLB megaAVR Microsemi Microsemi logo MOSTMOST logo MPLAB OptoLyzer PackeTime PIC picoPower PICSTART PIC32 logo PolarFire Prochip DesignerQTouch SAM-BA SenGenuity SpyNIC SST SST Logo SuperFlash Symmetricom SyncServer TachyonTempTrackr TimeSource tinyAVR UNIO Vectron and XMEGA are registered trademarks of Microchip TechnologyIncorporated in the USA and other countries

APT ClockWorks The Embedded Control Solutions Company EtherSynch FlashTec Hyper Speed ControlHyperLight Load IntelliMOS Libero motorBench mTouch Powermite 3 Precision Edge ProASIC ProASIC PlusProASIC Plus logo Quiet-Wire SmartFusion SyncWorld Temux TimeCesium TimeHub TimePictra TimeProviderVite WinPath and ZL are registered trademarks of Microchip Technology Incorporated in the USA

Adjacent Key Suppression AKS Analog-for-the-Digital Age Any Capacitor AnyIn AnyOut BlueSky BodyComCodeGuard CryptoAuthentication CryptoAutomotive CryptoCompanion CryptoController dsPICDEMdsPICDEMnet Dynamic Average Matching DAM ECAN EtherGREEN In-Circuit Serial Programming ICSPINICnet Inter-Chip Connectivity JitterBlocker KleerNet KleerNet logo memBrain Mindi MiWi MPASM MPFMPLAB Certified logo MPLIB MPLINK MultiTRAK NetDetach Omniscient Code Generation PICDEMPICDEMnet PICkit PICtail PowerSmart PureSilicon QMatrix REAL ICE Ripple Blocker SAM-ICE Serial QuadIO SMART-IS SQI SuperSwitcher SuperSwitcher II Total Endurance TSHARC USBCheck VariSenseViewSpan WiperLock Wireless DNA and ZENA are trademarks of Microchip Technology Incorporated in the USAand other countries

SQTP is a service mark of Microchip Technology Incorporated in the USA

The Adaptec logo Frequency on Demand Silicon Storage Technology and Symmcom are registered trademarks ofMicrochip Technology Inc in other countries

GestIC is a registered trademark of Microchip Technology Germany II GmbH amp Co KG a subsidiary of MicrochipTechnology Inc in other countries

All other trademarks mentioned herein are property of their respective companiescopy 2020 Microchip Technology Incorporated Printed in the USA All Rights Reserved

ISBN 978-1-5224-6667-3

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 43

Quality Management SystemFor information regarding Microchiprsquos Quality Management Systems please visit wwwmicrochipcomquality

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 44

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupportwwwmicrochipcomsupportWeb AddresswwwmicrochipcomAtlantaDuluth GATel 678-957-9614Fax 678-957-1455Austin TXTel 512-257-3370BostonWestborough MATel 774-760-0087Fax 774-760-0088ChicagoItasca ILTel 630-285-0071Fax 630-285-0075DallasAddison TXTel 972-818-7423Fax 972-818-2924DetroitNovi MITel 248-848-4000Houston TXTel 281-894-5983IndianapolisNoblesville INTel 317-773-8323Fax 317-773-5453Tel 317-536-2380Los AngelesMission Viejo CATel 949-462-9523Fax 949-462-9608Tel 951-273-7800Raleigh NCTel 919-844-7510New York NYTel 631-435-6000San Jose CATel 408-735-9110Tel 408-436-4270Canada - TorontoTel 905-695-1980Fax 905-695-2078

Australia - SydneyTel 61-2-9868-6733China - BeijingTel 86-10-8569-7000China - ChengduTel 86-28-8665-5511China - ChongqingTel 86-23-8980-9588China - DongguanTel 86-769-8702-9880China - GuangzhouTel 86-20-8755-8029China - HangzhouTel 86-571-8792-8115China - Hong Kong SARTel 852-2943-5100China - NanjingTel 86-25-8473-2460China - QingdaoTel 86-532-8502-7355China - ShanghaiTel 86-21-3326-8000China - ShenyangTel 86-24-2334-2829China - ShenzhenTel 86-755-8864-2200China - SuzhouTel 86-186-6233-1526China - WuhanTel 86-27-5980-5300China - XianTel 86-29-8833-7252China - XiamenTel 86-592-2388138China - ZhuhaiTel 86-756-3210040

India - BangaloreTel 91-80-3090-4444India - New DelhiTel 91-11-4160-8631India - PuneTel 91-20-4121-0141Japan - OsakaTel 81-6-6152-7160Japan - TokyoTel 81-3-6880- 3770Korea - DaeguTel 82-53-744-4301Korea - SeoulTel 82-2-554-7200Malaysia - Kuala LumpurTel 60-3-7651-7906Malaysia - PenangTel 60-4-227-8870Philippines - ManilaTel 63-2-634-9065SingaporeTel 65-6334-8870Taiwan - Hsin ChuTel 886-3-577-8366Taiwan - KaohsiungTel 886-7-213-7830Taiwan - TaipeiTel 886-2-2508-8600Thailand - BangkokTel 66-2-694-1351Vietnam - Ho Chi MinhTel 84-28-5448-2100

Austria - WelsTel 43-7242-2244-39Fax 43-7242-2244-393Denmark - CopenhagenTel 45-4485-5910Fax 45-4485-2829Finland - EspooTel 358-9-4520-820France - ParisTel 33-1-69-53-63-20Fax 33-1-69-30-90-79Germany - GarchingTel 49-8931-9700Germany - HaanTel 49-2129-3766400Germany - HeilbronnTel 49-7131-72400Germany - KarlsruheTel 49-721-625370Germany - MunichTel 49-89-627-144-0Fax 49-89-627-144-44Germany - RosenheimTel 49-8031-354-560Israel - RarsquoananaTel 972-9-744-7705Italy - MilanTel 39-0331-742611Fax 39-0331-466781Italy - PadovaTel 39-049-7625286Netherlands - DrunenTel 31-416-690399Fax 31-416-690340Norway - TrondheimTel 47-72884388Poland - WarsawTel 48-22-3325737Romania - BucharestTel 40-21-407-87-50Spain - MadridTel 34-91-708-08-90Fax 34-91-708-08-91Sweden - GothenbergTel 46-31-704-60-40Sweden - StockholmTel 46-8-5090-4654UK - WokinghamTel 44-118-921-5800Fax 44-118-921-5820

Worldwide Sales and Service

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 45

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Board Overview
      • 2 Getting Started
        • 21 Quick Start
          • 211 Driver Installation
          • 212 Kit Window
          • 213 MPLABreg X IDE Device Family Packs
          • 214 Atmel Studio 7 Device Family Pack
            • 22 Design Documentation and Relevant Links
              • 3 Preprogrammed Application
              • 4 Curiosity Nano
                • 41 On-Board Debugger Overview
                  • 411 Debugger
                  • 412 Virtual Serial Port (CDC)
                    • 4121 Overview
                    • 4122 Operating System Support
                    • 4123 Limitations
                    • 4124 Signaling
                    • 4125 Advanced Use
                      • 413 Mass Storage Device
                        • 4131 Mass Storage Device Implementation
                        • 4132 Limitations of Drag-and-Drop Programming
                        • 4133 Special Commands
                          • 414 Data Gateway Interface (DGI)
                            • 4141 Debug GPIO
                            • 4142 Timestamping
                                • 42 Curiosity Nano Standard Pinout
                                • 43 Power Supply
                                  • 431 Target Regulator
                                  • 432 External Supply
                                  • 433 VBUS Output Pin
                                  • 434 Power Supply Exceptions
                                    • 44 Low-Power Measurement
                                    • 45 Programming External Microcontrollers
                                      • 451 Supported Devices
                                      • 452 Software Configuration
                                      • 453 Hardware Modifications
                                      • 454 Connecting to External Microcontrollers
                                        • 46 Connecting External Debuggers
                                          • 5 Hardware User Guide
                                            • 51 Connectors
                                              • 511 AVR128DB48 Curiosity Nano Pinout
                                              • 512 Using Pin Headers
                                              • 513 Multi-Voltage IO
                                              • 514 Operational Amplifiers
                                                • 52 Peripherals
                                                  • 521 LED
                                                  • 522 Mechanical Switch
                                                  • 523 32768 kHz Crystal
                                                  • 524 1600 MHz Crystal
                                                  • 525 On-Board Debugger Implementation
                                                    • 5251 On-Board Debugger Connections
                                                      • 6 Hardware Revision History and Known Issues
                                                        • 61 Identifying Product ID and Revision
                                                        • 62 Revision 3
                                                        • 63 Revision 2
                                                          • 7 Document Revision History
                                                          • 8 Appendix
                                                            • 81 Schematic
                                                            • 82 Assembly Drawing
                                                            • 83 Curiosity Nano Base for Click boardstrade
                                                            • 84 Disconnecting the On-board Debugger
                                                            • 85 Getting Started with IAR
                                                              • The Microchip Website
                                                              • Product Change Notification Service
                                                              • Customer Support
                                                              • Microchip Devices Code Protection Feature
                                                              • Legal Notice
                                                              • Trademarks
                                                              • Quality Management System
                                                              • Worldwide Sales and Service
Page 25: AVR128DB48 Curiosity Nano Hardware User Guideww1.microchip.com/downloads/en/DeviceDoc/AVR128DB48-Curiosit… · 4. Curiosity Nano Curiosity Nano is an evaluation platform of small

Figure 4-12 Connecting the Atmel-ICE to AVR128DB48 Curiosity Nano

VDD

Ground

DATA

AVRregSAM

3 = UPDI

4 = VTG

5 = Unused

6 = Unused

7 = Unused

8 = Unused

1 = Unused

2 = GND

9 = Unused

10 = Unused

Atmel-ICE

21 9

10

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

CAUTIONTo avoid contention between the external debugger and the on-board debugger do not start anyprogrammingdebug operation with the on-board debugger through MPLABreg X IDE or Atmel Studio 7 ormass storage programming while the external tool is active

AVR128DB48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 25

5 Hardware User Guide

51 Connectors

511 AVR128DB48 Curiosity Nano PinoutAll the AVR128DB48 IO pins are accessible at the edge connectors on the board The image below shows the boardpinout For all available functions on each pin refer to the IO Multiplexing and Considerations section in theAVR128DB48 data sheet

Figure 5-1 AVR128DB48 Curiosity Nano Pinout

USB

DEBUGGER

AVR128DB48

SW0

LED0

PS LEDNC

NC

IDID

CDC RX

CD

CR

XUSART3 TXPB0

CDC TX

CD

CT

XUSART3 RXPB1

DBG1

DB

G1PB3LED0

DBG2

DB

G2PB2SW0

PF4

PF

4USART2 TX

PF5

PF

5USART2 RX

PA2

PA

2TWI0 SDA

PA3

PA

3TWI0 SCL

PA4

PA

4SPI0 MOSI

PA5

PA

5SPI0 MISO

PA6

PA

6SPI0 SCK

PA7

PA

7SPI0 SS

GND

GN

D

PB0

PB

0USART3 TXCDC RX

PB1

PB

1USART3 RXCDC TX

PF2

PF

2

PF3

PF

3

PC0

PC

0

PC1

PC

1

PC2

PC

2

PC3

PC

3

GND

GN

D

(PA0)

(PA

0)XTALHF1

(PA1)

(PA

1)XTALHF2

PB2

PB

2SW0

PB3

PB

3LED0

VBUS

VB

US

VOFF

VO

FF

DBG3

DB

G3 PF6

DBG0

DB

G0 UPDI

GND

GN

D

VTG

VT

G

PD6

PD

6 AIN6

PD3

PD

3 AIN3 OP0 INN

PD2

PD

2 AIN2 OP0 OUT TCA0 WO2

PD1

PD

1 AIN1 OP0 INP TCA0 WO1

PD0

PD

0 AIN0 TCA0 WO0

PD7

PD

7 AIN7 OP1 INN

PD5

PD

5 AIN5 OP1 OUT

PD4

PD

4 AIN4 OP1 INP

GND

GN

D

PE3

PE

3 OP2 INN

PE2

PE

2 OP2 OUT

PE1

PE

1 OP2 INP

PE0

PE

0

PC7

PC

7

PC6

PC

6

PC5

PC

5

PC4

PC

4

GND

GN

D

PB5

PB

5

PB4

PB

4

(PF1)

(PF

1) XTAL32K2

(PF0)

(PF

0) XTAL32K1

DEBUGGERAVR128DB48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

MVIO

OPAMP

Shared pin

AVR128DB48Curiosity Nano

512 Using Pin HeadersThe edge connector footprint on AVR128DB48 Curiosity Nano has a staggered design where each hole is shifted 8mil (~02 mm) off-center The hole shift allows the use of regular 100 mil pin headers on the board without solderingOnce the pin headers are firmly in place they can be used in normal applications like pin sockets and prototypingboards without any issues

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 26

Figure 5-2 Attaching Pin-Headers to the Curiostiy Nano Board

Figure 5-3 Connecting to Curiosity Nano Base for Click boardstrade

Tip  Start at one end of the pin header and gradually insert the header along the length of the boardOnce all the pins are in place use a flat surface to push them in

Tip  For applications where the pin headers will be used permanently it is still recommended to solderthem in place

Important  Once the pin headers are in place they are hard to remove by hand Use a set of pliers andcarefully remove the pin headers to avoid damage to the pin headers and PCB

513 Multi-Voltage IO

The AVR128DB48 Curiosity Nano MCU has support for Multi-Voltage IO (MVIO) AVR128DB48 MVIO pins areconnected to the edge connector at PC0-PC7 MVIO pins are capable of regular IO-pin behavior

MVIO can be configured in one of two supply modesbull Single-Supply mode All IO pins including MVIO-capable pins are powered by VCC_TARGET By default

VCC_TARGET is connected to VDDIO2 through a 0-ohm resistor (R204)bull Dual-Supply mode MVIO-capable pins are powered by an external power supply connected to VDDIO2 Non-

MVIO pins are powered by VCC_TARGET

Dual-Supply mode allows MVIO-pins to be powered at different voltages than pins powered from VCC_TARGET

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 27

WARNINGThe absolute maximum external voltage range for the AVR128DB48 is 18ndash55V Applying a higher voltagemay cause permanent damage to the board

By default AVR128DB48 Curiosity Nano board is configured for single-supply mode To use Dual-Supply mode somehardware modifications are required

WARNINGBefore any hardware modifications are done make sure the board is disconnected from USB or externalpower

bull Disconnect resistor R204 connecting VDDIO2 to VCC_TARGETbull Connect a new power supply to VDDIO2 and ground at J212bull J212 does not have reverse polarity protection Make sure to match polarity between the power supply and

J212 Positive-polarity to J212-pin 1 and negative-polarity to J212-pin 2

The resistor R204 VDDIO2 and J212 can be seen in Figure 5-4

Figure 5-4 MVIO and VDDIO2 Connections

J212 R204

WARNINGApplying an external voltage to VDDIO2 pin without removing resistor R204 may cause permanentdamage to the board

WARNINGJ212 does not have reverse polarity protection Applying voltage to the wrong pin may cause permanentdamage to the board

514 Operational AmplifiersAVR128DB48 features three internal operational amplifiers with a flexible connection scheme using analogmultiplexers and resistor ladders This allows a large number of analog signal conditioning configurations manyrequiring no external components

Table 5-1 OPAMP Pin Connections

OPAMP Poisitive Input (INP) Negative Input (INN) Output (OUT)

OP0 PD1 PD3 PD2

OP1 PD4 PD7 PD5

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 28

continuedOPAMP Poisitive Input (INP) Negative Input (INN) Output (OUT)

OP2 PE1 PE3 PE2

For information about OPAMP on the edge connector and any shared functionality see 511 AVR128DB48 CuriosityNano Pinout

52 Peripherals

521 LEDThere is one yellow user LED available on the AVR128DB48 Curiosity Nano board that can be controlled by eitherGPIO or PWM The LED can be activated by driving the connected IO line to GND

Table 5-2 LED Connection

AVR128DB48 Pin Function Shared Functionality

PB3 Yellow LED0 Edge connector On-board debugger

522 Mechanical SwitchThe AVR128DB48 Curiosity Nano board has one mechanical switch This is a generic user-configurable switchWhen the switch is pressed it will drive the IO line to ground (GND)

Tip  There is no externally connected pull-up resistor on the switch To use the switch make sure that aninternal pull-up resistor is enabled on pin PB2

Table 5-3 Mechanical Switch

AVR128DB48 Pin Description Shared Functionality

PB2 User switch (SW0) Edge connector On-board debugger

523 32768 kHz Crystal

On the AVR128DB48 Curiosity Nano board is a mounted 32768 kHz crystal of type VMK3-9001-32K7680000 thecrystal is accurate to within 20 ppm Using the External 32768 kHz Crystal Oscillator (XOSC32K) module inAVR128DB48 with the mounted 32768 kHz crystal generates a clock signal that is significantly more accurate thanthe Internal 32768 kHz Ultra Low-Power Oscillator (OSC32K) module can generate alone With the Auto-Tunefeature the 32768 kHz can be used as a reference to improve the accuracy of the internal oscillator This is an idealreference clock for the Real-Time Counter module in AVR128DB48

The 32768 kHz crystal is connected to AVR128DB48 on PF0 and PF1 which are also routed to the edge connectorthrough two solder points PF0 and PF1 are disconnected from the edge connector by default to reduce the chanceof an external signal causing contention with the crystal and to remove excessive capacitance on the lines

Next to the 32768 kHz crystal is a cut-strap (J209) which can be used to measure the oscillator safety factor This isdone by cutting the strap and adding a 0402 SMD resistor across the strap More information about oscillatorallowance and safety factor can be found in the AN2648 application note from Microchip

Cut straps and solder points can be seen in Figure 5-5

Table 5-4 32768 kHz Crystal Connections

AVR128DB48 Pin Function Shared Functionality

PF0 XTAL32K1 (Crystal input) Edge connector

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 29

continuedAVR128DB48 Pin Function Shared Functionality

PF1 XTAL32K2 (Crystal output) Edge connector

PA0 and PA1 can be used as GPIO To do so some hardware modifications are required

WARNINGBefore any hardware modifications are done make sure the board is disconnected from the USB orexternal power

bull Disconnect the 32768 kHz crystal by cutting the two straps on the top side of the board next to the crystal(J207 J208) The crystal should be disconnected when using the pin as GPIO as this might harm the crystal

bull Connect the IO lines to the edge connector by placing solder blobs on the circular solder points marked PF0and PF1 on the bottom side of the board (J210 J211)

Figure 5-5 Crystal Connection and Cut Straps

Top side Boom side

J211

J210

J207

J20832768 kHz Crystal

J209

524 1600 MHz Crystal

On the AVR128DB48 Curiosity Nano board is a mounted 1600 MHz crystal of type VXM7-9040-16M0000000 thecrystal is accurate to within 20 ppm Using the External High-Frequency Crystal Oscillator (XOSCHF) module inAVR128DB48 with the mounted 1600 MHz crystal generates a clock signal that is significantly more accurate thanthe Internal High-Frequency Oscillator (OSCHF) module

The 1600 MHz crystal is connected to AVR128DB48 on PA0 and PA1 which are also routed to the edge connectorthrough two solder points PA0 and PA1 are disconnected from the edge connector by default to reduce the chanceof an external signal causing contention with the crystal and to remove excessive capacitance on the lines

Next to the 1600 MHz crystal is a cut-strap (J217) which can be used to measure the oscillator safety factor This isdone by cutting the strap and adding a 0402 SMD resistor across the strap More information about oscillatorallowance and safety factor can be found in the AN2648 application note from Microchip

Cut straps and solder points can be seen in Figure 5-6

Table 5-5 Crystal Connections

AVR128DB48 Pin Function Shared Functionality

PA0 XTALHF1 (Crystal input) Edge connector

PA1 XTALHF2 (Crystal output) Edge connector

PA0 and PA1 can be used as GPIO To do so some hardware modifications are required

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 30

WARNINGBefore any hardware modifications are done make sure the board is disconnected from USB or externalpower

bull Disconnect the 1600 MHz crystal by cutting the two straps on the top side of the board next to the crystal (J215J216) The crystal should be disconnected when using the pin as GPIO as this might harm the crystal

bull Connect the IO lines to the edge connector by placing solder blobs on the circular solder points marked PA0and PA1 on the bottom side of the board (J213 J214)

Figure 5-6 Crystal Connection and Cut Straps

Top side Boom side

J214

J213

J216

J2151600 MHzCrystal

J217

525 On-Board Debugger ImplementationAVR128DB48 Curiosity Nano features an on-board debugger that can be used to program and debug theAVR128DB48 using UPDI The on-board debugger also includes a virtual serial port (CDC) interface over UART anddebug GPIO Both MPLABreg X IDE and Atmel Studio 7 can be used as a front-end for the on-board debugger forprogramming and debugging MPLAB Data Visualizer can be used as a front-end for the CDC and debug GPIO

5251 On-Board Debugger ConnectionsThe table below shows the connections between the target and the debugger section All connections between thetarget and the debugger are tri-stated as long as the debugger is not actively using the interface Hence since thereare little contaminations of the signals the pins can be configured to anything the user wants

For further information on how to use the capabilities of the on-board debugger see 41 On-Board DebuggerOverview

Table 5-6 On-Board Debugger Connections

AVR128DB48Pin

Debugger Pin Function Shared Functionality

PB1 CDC TX UART RX (AVR128DB48 RX line) Edge connector

PB0 CDC RX UART TX (AVR128DB48 TX line) Edge connector

UPDI DBG0 UPDI Edge connector

PB3 DBG1 LED0Debug GPIO1 Edge connector

PB2 DBG2 SW0Debug GPIO0 Edge connector

PF6 DBG3 RESET Edge connector

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 31

6 Hardware Revision History and Known IssuesThis user guide is written to provide information about the latest available revision of the board The followingsections contain information about known issues a revision history of older revisions and how older revisions differfrom the latest revision

61 Identifying Product ID and RevisionThe revision and product identifier of the AVR128DB48 Curiosity Nano Board can be found in two ways Either byutilizing the MPLABreg X IDE or Atmel Studio 7 Kit Window or by looking at the sticker on the bottom side of the PCB

By connecting AVR128DB48 Curiosity Nano to a computer with MPLABreg X IDE or Atmel Studio 7 running the KitWindow will pop up The first six digits of the serial number which is listed under kit information contain the productidentifier and revision

Tip  The Kit Window can be opened in MPLABreg X IDE through the menu bar Window gt Kit Window

The same information can be found on the sticker on the bottom side of the PCB Most boards will have the identifierand revision printed in plain text as A09-nnnnrr where ldquonnnnrdquo is the identifier and ldquorrrdquo is the revision Boards withlimited space have a sticker with only a data matrix code containing the product identifier revision and serialnumber

The serial number string has the following format

nnnnrrssssssssss

n = product identifier

r = revision

s = serial number

The product identifier for AVR128DB48 Curiosity Nano is A09‑3372

62 Revision 3AVR128DB48 silicon revision A5 or later is mounted on this revision of the board

63 Revision 2Revision 2 is the initially released board revision

AVR128DB48 silicon revision A4 is mounted on this revision of the board

AVR128DB48 Curiosity NanoHardware Revision History and Known Issues

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 32

7 Document Revision HistoryDoc Rev Date Comments

A 092020 Initial document release

AVR128DB48 Curiosity NanoDocument Revision History

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 33

8 Appendix

81 SchematicFigure 8-1 AVR128DB48 Curiosity Nano Schematic

11

22

33

44

55

66

77

88

DD

CC

BB

AA

2 of

4

AV

R12

8DB

48 C

uri

osit

y N

ano

240

820

20A

VR

128D

B48

_Cur

iosi

ty_N

ano_

Targ

et_M

CU

Sch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA

Rev

isio

n

File

P

CB

Num

ber

PC

B

Rev

isio

n

Des

ign

ed w

ith

Dra

wn

By

ML

Shee

t Titl

e

Targ

et M

CU

Eng

inee

rA

H

A08

-305

71

Size

A3

A09

-337

22

Page

D

ateA

ltium

com

GN

D

VD

DIO

2

100n

C20

1

GN

D

PA5_

SPI0

_MIS

OPA

6_SP

I0_S

CK

PA7_

SPI0

_SS

PB0_

USA

RT

3_T

XPB

1_U

SAR

T3_

RX

PB2_

SW0_

DB

G2

PB3_

LE

D0_

DB

G1

PB

4P

B5

PC

0P

C1

PC

2

PC3

PC4PC5PC6PC7PD0_AIN0_TCA0_WO0PD1_AIN1_OP0_INP_TCA0_WO1PD2_AIN2_OP0_OUT_TCA0_WO2PD3_AIN3_OP0_INNPD4_AIN4_OP1_INP

PA3_TWI0_SCL

PA1_XTALHF2

UPDI_DBG0

PF5_USART2_RX

PF3

PF

2PF

1_X

TA

L32

K2

PF0_

XT

AL

32K

1P

E3_

OP

2_IN

NP

E2_

OP

2_O

UT

PE

1_O

P2_

INP

PE

0

PD5_

AIN

5_O

P1_

OU

TPD

6_A

IN6

PD7_

AIN

7_O

P1_

INN

GN

D

VC

C_T

AR

GE

T

100n

C20

2

GN

DV

CC

_TA

RG

ET

100n

C20

0

PF1_XTAL32K2

PF0_XTAL32K1

PA2_TWI0_SDA

PA0_XTALHF1

PF4_USART2_TX

PA4_SPI0_MOSI

GN

D

PA7_

SPI0

_SS

PA6_

SPI0

_SC

KPA

5_SP

I0_M

ISO

PA4_

SPI0

_MO

SIPA

3_T

WI0

_SC

LPA

2_T

WI0

_SD

A

PC

0P

C1

PC

2P

C3

PB

4P

B5

PD7_

AIN

7_O

P1_

INN

PD6_

AIN

6

PD2_

AIN

2_O

P0_

OU

T_T

CA

0_W

O2

PD1_

AIN

1_O

P0_

INP_

TC

A0_

WO

1PD

0_A

IN0_

TC

A0_

WO

0

PD5_

AIN

5_O

P1_

OU

TPD

4_A

IN4_

OP

1_IN

P

PD3_

AIN

3_O

P0_

INN

32K

Hz

Cry

stal

PB0_

USA

RT

3_T

XPB

1_U

SAR

T3_

RX

1kR203

US

ER

LE

D

VC

C_T

AR

GE

T

PF6_DBG3

PB2_SW0_DBG2

PB3_LED0_DBG1

GN

D

USE

R B

UT

TO

N

PB3_

LE

D0_

DB

G1

PB2_

SW0_

DB

G2

PB1_

USA

RT

3_R

XPB

0_U

SAR

T3_

TX

PF4_

USA

RT

2_T

XPF

5_U

SAR

T2_

RX

PF

2P

F3

PC

4P

C5

PC

6P

C7

1kR202

YELLOWLEDSML-D12Y1WT86

2 1

D200

TS604VM1-035CR13

4 2

SW20

0

GN

DV

CC

_ED

GE

GN

DG

ND

GN

DG

ND

UPD

I_D

BG

0P

F6_

DB

G3

J209

PB3_

LE

D0_

DB

G1

PB2_

SW0_

DB

G2

AV

R12

8DB

48

22u

FC

205

VC

C_E

DG

E

GN

D

DBG0

CDC_TXCDC_RX

DBG2

DBG1

DBG3

DBG2

DE

BU

GG

ER

CO

NN

EC

TIO

NS

DBG1

DBG3DBG0

VOFF

ID_SYS

ID_SYS

VOFF

TA

RG

ET

BU

LK

VC

C_T

AR

GE

TR

ESE

T P

ull

VB

US

CD

C R

X3

CD

C T

X4

DB

G1

5

DB

G2

6

0 T

X7

1 R

X8

2 SD

A9

3 S

CL

10

4 M

OSI

11

5 M

ISO

12

6 S

CK

13

7 S

S14

GN

D15

0 (T

X)

16

1 (R

X)

17

218

319

020

GN

D24

DB

G3

54

DB

G0

53

GN

D52

VC

C51

PW

M 3

46

AD

C 2

45

AD

C 1

44

AD

C 0

43

GN

D42

438

434

GN

D33

AD

C 7

50

AD

C 6

49

AD

C 5

48

PW

M 4

47

DE

BU

GG

ER

TAR

GE

T

ID2

VO

FF

55

121

222

323

025

126

227

328

429

530

631

732

535

636

737

539

640

741

RE

SER

VE

D1

VB

US

56

CN

AN

O56

-pin

edg

e co

nnec

tor

J200

J201

J203

J205

J206

J202

J204

PF1_

XT

AL

32K

2PF

0_X

TA

L32

K1

NC

XOUT

XIN

47kR200

AV

R12

8DB

48

UPD

I

GPI

O1

GPI

O0

RE

SET

DB

G0

DB

G1

DB

G2

DB

G3

Deb

ugge

r

CD

C T

X

CD

C R

X

UA

RT

3 R

X

UA

RT

3 T

X

VT

G1

8V -

55

VPB

3

PB

2

PF

6

UP

DI

PB

0

PB

1

Nam

eP

in

PE

3_O

P2_

INN

PE

2_O

P2_

OU

TP

E1_

OP

2_IN

PP

E0

J207

J208

PF

0P

F1

PA5

1

PA6

2

PA7

3

PB0

4

PB1

5

PB2

6

PB3

7

PB4

8

PB5

9

PC0

10

PC1

11

PC2

12

PC313

VDDIO214

GND15

PC416

PC517

PC618

PC719

PD020

PD121

PD222

PD323

PD424

PD5

25

PD6

26

PD7

27

AVDD

28

GND

29

PE0

30

PE1

31

PE2

32

PE3

33

XTAL32K1PF0

34

XTAL32K2PF1

35

PF2

36

PF337

PF438

PF539

PF640

UPDI41

VDD42

GND43

XTALHF1PA044

XTALHF2PA145

PA246

PA347

PA448

AV

R12

8DB

48-I

PT

U20

0

0RR204

GN

D

VC

C_T

AR

GE

T

VDDIO2

GND

J210

J211

82p

C20

48

2pC

203

GN

DG

ND

16M

Hz

Cry

stal

J217

XHFOUT

XHFIN

J214

J213

GN

D

J215

J216

PA0_XTALHF1

PA1_XTALHF2

PA0_

XT

AL

HF

1PA

1_X

TA

LH

F2

PA0

PA1

1 2

J212 N

M

15pF

C20

615

pFC

207

13

24 16

000

MH

zV

XM

7-90

40-1

6M00

0000

0TR

XC

201

GN

D32

768

kHz

VM

K3-

9001

-32K

7680

000T

R

XC

200

CDC_TX

CDC_RX

CD

C_T

XC

DC

_RX

Cry

stal

dat

ashe

et

Ccr

ysta

l = 9

pFm

ax E

SR

= 7

0kO

hmA

ccur

acy

plusmn20p

pm

AV

R48

DB

128

data

shee

tC

xin

= 4

0pF

(ty

pica

l val

ue)

Cxo

ut =

40

pF (

typi

cal v

alue

)C

lasymp1

( (1

40

pF)+

(1

40p

F)

)asymp

20p

FM

axim

um L

oad

= 1

25p

FM

axim

um E

SR =

50k

Ohm

Est

imat

ed C

pcb

= 0

5pF

Est

imat

ed lo

adC

= 2

(C

crys

tal-

Cpa

ra -

Cpc

b)C

= 2

(9p

F -

20

pF -

05

pF)

C =

13

0pF

Sele

cted

in d

esig

n af

ter

veri

fica

tion

C=

82

pF8

2pF

NO

TE

on

UA

RT

CD

C

RX

TX

onth

ehe

ader

deno

tes

the

inpu

tout

put d

irec

tion

of th

e si

gnal

resp

ectiv

e to

its

sou

rce

CD

C T

X is

out

put f

rom

the

DE

BU

GG

ER

C

DC

RX

is in

put t

o th

e D

EB

UG

GE

R

TX

is o

utpu

t fro

m th

e T

AR

GE

T d

evic

eR

X is

inpu

t to

the

TA

RG

ET

dev

ice

NO

TE

on

I2C

No

pull

-ups

on

boar

d P

ull-

ups

shou

ld b

em

ount

ed c

lose

to s

lave

dev

ice(

s)

WA

RN

ING

M

ake

sure

tore

mov

e R

204

befo

reap

plyi

ng p

ower

to J

212

Cry

stal

dat

ashe

et

Ccr

ysta

l = 1

2pF

max

ES

R =

60O

hmA

ccur

acy

plusmn30p

pm

AV

R48

DB

128

data

shee

tC

xin

= 4

0pF

(ty

pica

l val

ue)

Cxo

ut =

40

pF (

typi

cal v

alue

)C

lasymp1

( (1

40

pF)+

(1

40p

F)

)asymp

20p

FM

axim

um L

oad

= 1

25p

FM

axim

um E

SR =

k

Ohm

Est

imat

ed C

pcb

= 0

5pF

Est

imat

ed lo

adC

= 2

(C

crys

tal-

Cpa

ra -

Cpc

b)C

= 2

(12

pF -

20

pF -

05

pF)

C =

19

0pF

Sele

cted

in d

esig

n af

ter

veri

fica

tion

C=

15p

F1

5pF

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 34

11

22

33

44

55

66

77

88

DD

CC

BB

AA

3 of

4

AV

R12

8DB

48 C

uri

osit

y N

ano

2020

-06-

26A

VR

128D

B48

_Cur

iosi

ty_N

ano_

Deb

ugge

rSch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA

Rev

isio

n

Fil

eP

CB

Num

ber

PC

B

Rev

isio

n

Des

ign

ed w

ith

Dra

wn

By

ML

Shee

t Tit

le

Deb

ugge

r

Eng

inee

rA

H

A08

-305

71

Size

A3

A09

-337

22

Page

D

ateA

ltium

com

DE

BU

GG

ER

USB

MIC

RO

-B C

ON

NE

CT

OR

GN

D

USB

D_P

USB

D_N

100n

C10

7

100n

C10

8

1kR

107

VC

C_P

3V3

SRST

STA

TU

S_L

ED

SHIE

LD

VB

US

VC

C_P

3V3

GN

D

TP

100

Test

poin

t Arr

ay

12

34

56

78

910

TC

KT

DO

TM

SV

sup

TD

IG

ND

TR

STSR

STV

Tre

fG

ND

J102

GN

D

47u

F

C10

0

DBG0

DB

G0

21

GR

EE

N L

ED

SML

-P12

MT

T86

R

D10

0

VBUS

1

D-

2

D+

3

GND

5

SHIELD1

6

SHIELD2

7

ID

4

SHIELD3

8

SHIELD4

9 MU

-MB

0142

AB

2-26

9

J105

PAD

33

PA00

1

PA01

2

PA02

3

PA03

4

GND 10VDDANA 9

PA04

5

PA05

6

PA06

7

PA07

8

PA08 11

PA09 12

PA10 13

PA11 14

PA14 15

PA15 16

PA16

17

PA17

18

PA18

19

PA19

20

PA22

21

USB_SOFPA23

22

USB_DMPA24

23

USB_DPPA25

24

PA2725 RESETN26 PA2827 GND28 VDDCORE29 VDDIN30 SWDCLKPA3031 SWDIOPA3132

SAM

D21

E18

A-M

UT

U10

0

VOUT

1

VOUT

2

GND 3

EN

4

VIN

6

NC

5

EP 7

MIC

5528

-33

YM

TU

101

VC

C_P

3V3

GN

D

USB

D_P

USB

D_N

GN

D

1uC

106

VC

C_M

CU

_CO

RE

VC

C_P

3V3

VC

C_P

3V3

22u

FC

101

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

3

VC

C_P

3V3

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

4

VC

C_P

3V3

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

5

VC

C_P

3V3

GN

D

GN

D GN

D

GN

D

VC

C_E

DG

E

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

7

VC

C_P

3V3

GN

DDBG2

DB

G3_

CT

RL

S1_0

_TX

S1_1

_RX

S0_2

_TX

DA

CV

TG

_AD

C

RE

SER

VE

D

S0_3

_CL

K

DBG0_CTRL

CD

C_T

X_C

TR

L

BO

OT

DE

BU

GG

ER

PO

WE

RS

TA

TU

S L

ED

EN

1

BYP

6

VOUT

4

GND

2

VIN

3

NCADJ

5

GND

7

MIC

5353

U10

2

100n

C10

2

GN

D

GN

D

47kR101

27kR104 G

ND

33k

R10

6

22u

F

C10

3 GN

D

1kR

108

J100

VC

C_L

EV

EL

VC

C_R

EG

UL

AT

OR

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

6

VC

C_P

3V3

GN

DDBG1

CD

C_R

X

CD

C_T

X

DBG3

DBG1_CTRL

DE

BU

GG

ER

RE

GU

LA

TO

R

REG_ENABLE

RE

G_E

NA

BL

E

47kR103

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

47kR102

47kR105

SWC

LK

GN

D

47kR100 G

ND

DB

G2

S0_0

_RX

DB

G1_

CT

RL

DB

G0_

CT

RL

DB

G3

OP

EN

DR

AIN

TA

RG

ET

AD

JUST

AB

LE

RE

GU

LA

TO

R

SRST

DE

BU

GG

ER

TE

ST

PO

INT DBG2_CTRL

VO

FF

CD

C_R

X_C

TR

L

47kR109

DB

G1

CD

C_T

X_C

TR

L

CD

C_R

X_C

TR

L

SWC

LK

REG_ADJUST

DBG2_GPIO

DB

G3_

CT

RL

DB

G2_

CT

RL

UP

DI

UPD

I

GPI

O

GPI

O

RE

SET

Sign

al

DB

G0

DB

G1

DB

G2

DB

G3

ICS

PIn

terf

ace

DA

T

CL

K

GPI

O

MC

LR

DB

G3

CD

C T

X

CD

C R

X

UA

RT

RX

UA

RT

TX

UA

RT

RX

UA

RT

TX

TA

RG

ET

TA

RG

ET

1kR

110

VBUS_ADC

1

23

DM

N65

D8L

FB

Q10

1

VC

C-

-

ID_SYS

VOFF

1kR112

VC

C_P

3V3

VT

G_A

DC

DA

C

MIC

9416

3

VIN

B2

VOUT

A1

VIN

A2

EN

C2

GND

C1

VOUT

B1

U10

8

GN

D

ID_S

YS

VT

G_E

N

VTG_EN

VBUS_ADC

SWD

IO

ID_S

YS

TP

101

GN

DSW

DIO

VO

FF

47kR111 G

ND

ID P

IN

MC

3621

3

F10

0

VC

C_V

BU

S

VC

C_V

BU

S

VC

C_V

BU

S

J101

VC

C_T

AR

GE

T

47k

R11

3

CDC_TX

CDC_RX

Prog

ram

min

g co

nnec

tor

for

fact

ory

prog

ram

min

g of

DE

BU

GG

ER

MIC

5528

V

in 2

5V

to 5

5V

Vou

t F

ixed

33

VIm

ax 5

00m

AD

ropo

ut 2

60m

V

500

mA

MIC

5353

V

in 2

6V

to 6

VV

out

12

5V to

51

VIm

ax 5

00m

AD

ropo

ut (

typi

cal)

50m

V

150m

A 1

60m

V

500

mA

Acc

urac

y 2

in

itia

lT

herm

al s

hutd

own

and

curr

ent l

imit

Max

imum

out

put v

olta

ge is

lim

ited

by

the

inpu

t vol

tage

and

the

drop

out v

olta

ge in

the

regu

lato

r(V

max

= V

in -

dro

pout

)

J100

-

Cut

-str

ap u

sed

for

full

sep

arat

ion

of ta

rget

pow

er f

rom

the

leve

l shi

fter

s an

don

-boa

rd r

egul

ator

s-

For

cur

rent

mea

sure

men

ts u

sing

the

on-b

oard

pow

er s

uppl

y th

isst

rap

mus

t be

cut a

nd a

nam

met

er c

onne

cted

acr

oss

- F

or c

urre

nt m

easu

rem

ents

usi

ng a

n ex

tern

al p

ower

sup

ply

this

str

ap c

ould

be

cut f

or m

ore

accu

rate

mea

sure

men

ts L

eaka

ge b

ack

thro

ugh

the

swit

ch is

in th

e m

icro

am

pere

ran

ge

PT

C R

eset

tabl

e fu

se

Hol

d cu

rren

t 5

00m

AT

rip

curr

ent

100

0mA

Adj

usta

ble

outp

ut a

nd li

mit

atio

ns

- T

he D

EB

UG

GE

R c

an a

djus

t the

out

put v

olta

ge o

f th

e re

gula

tor

betw

een

125

V a

nd 5

1V

to th

e ta

rget

-

The

vol

tage

out

put i

s li

mit

ed b

y th

e in

put (

US

B)

whi

ch c

an v

ary

betw

een

440

V to

52

5V-

The

leve

l shi

fter

s ha

ve a

min

imal

vol

tage

leve

l of

165

V a

nd w

ill l

imit

the

min

imum

ope

ratin

g vo

ltage

all

owed

for

the

targ

et to

sti

ll a

llow

com

mun

icat

ion

- T

he M

IC94

163

has

a m

inim

al v

olat

ege

leve

l of

170

V a

nd w

ill l

imit

the

min

imum

vol

tage

del

iver

ed to

the

targ

et

- F

irm

war

e co

nfig

urat

ion

wil

l lim

it th

e vo

ltage

ran

ge to

be

wit

hin

the

the

targ

et s

peci

fica

tion

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 35

82 Assembly DrawingFigure 8-2 AVR128DB48 Curiosity Nano Assembly Drawing Top

+

Cb

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20001 PAC20002 COC200

PAC20101 PAC20102 COC201

PAC20201 PAC20202 COC202 PAC20301

PAC20302 COC203

PAC20401

PAC20402 COC204

PAC20502

PAC20501 COC205

PAC20601

PAC20602 COC206 PAC20701

PAC20702 COC207 PAD10002 PAD10001 COD100

PAD20002

PAD20001 COD200

PAF10002

PAF10001 COF100

PAJ10002 PAJ10001 COJ100

PAJ10101 PAJ10102 COJ101

PAJ10201

PAJ10202

PAJ10203

PAJ10204

PAJ10205

PAJ10206 COJ102

PAJ10506

PAJ10507 PAJ10509

PAJ10508 PAJ105010

PAJ105011 PAJ10505

PAJ10504

PAJ10503

PAJ10502

PAJ10501

PAJ10500

COJ105

PAJ200056 PAJ200053

PAJ200028 PAJ20002 PAJ20001

PAJ200051 PAJ200050 PAJ200052 PAJ200049 PAJ200048 PAJ200047 PAJ200046 PAJ200045 PAJ200044 PAJ200043 PAJ200042 PAJ200041 PAJ200040 PAJ200039 PAJ200038 PAJ200037 PAJ200036 PAJ200035 PAJ200034 PAJ200033 PAJ200032 PAJ200031 PAJ200030 PAJ200029

PAJ20003 PAJ20004 PAJ20005 PAJ20006 PAJ20007 PAJ20008 PAJ20009 PAJ200010 PAJ200011 PAJ200012 PAJ200013 PAJ200014 PAJ200015 PAJ200016 PAJ200017 PAJ200018 PAJ200019 PAJ200020 PAJ200021 PAJ200022 PAJ200023 PAJ200026 PAJ200025 PAJ200024 PAJ200027

PAJ200054 PAJ200055 PAJ20000

COJ200

PAJ20102 PAJ20101 COJ201

PAJ20202 PAJ20201 COJ202

PAJ20302 PAJ20301 COJ203

PAJ20402 PAJ20401 COJ204

PAJ20502 PAJ20501 COJ205

PAJ20602 PAJ20601 COJ206 PAJ20702 PAJ20701 COJ207

PAJ20802 PAJ20801 COJ208

PAJ20902 PAJ20901 COJ209

PAJ21001 PAJ21002 PAJ21005 COJ210

PAJ21102 PAJ21101 PAJ21105 COJ211

PAJ21202 PAJ21201 COJ212

PAJ21301 PAJ21302 PAJ21305 COJ213

PAJ21401 PAJ21402 PAJ21405 COJ214

PAJ21502 PAJ21501 COJ215

PAJ21602 PAJ21601 COJ216 PAJ21702 PAJ21701 COJ217

COLABEL1

PAQ10101 PAQ10102 PAQ10103 PAQ10100

COQ101 PAR10002

PAR10001 COR100 PAR10101 PAR10102 COR101

PAR10202 PAR10201 COR102

PAR10302 PAR10301 COR103

PAR10401 PAR10402 COR104

PAR10502

PAR10501 COR105

PAR10601 PAR10602 COR106

PAR10702 PAR10701 COR107

PAR10801

PAR10802 COR108

PAR10901 PAR10902 COR109

PAR11001 PAR11002 COR110

PAR11101 PAR11102 COR111

PAR11201 PAR11202 COR112

PAR11302 PAR11301 COR113

PAR20001 PAR20002 COR200 PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203 PAR20401 PAR20402 COR204

PASW20003

PASW20004 PASW20002

PASW20001 COSW200

PATP10001 COTP100

PATP10101 COTP101 PAU100033

PAU100032 PAU100031 PAU100030 PAU100029 PAU100028 PAU100027 PAU100026 PAU100025 PAU100024

PAU100023

PAU100022

PAU100021

PAU100020

PAU100019

PAU100018

PAU100017 PAU100016 PAU100015 PAU100014 PAU100013 PAU100012 PAU100011 PAU100010

PAU10001

PAU10002

PAU10003

PAU10004

PAU10005

PAU10006

PAU10007

PAU10008 PAU10009

COU100

PAU10107

PAU10104 PAU10105 PAU10106

PAU10103 PAU10102 PAU10101 PAU10100 COU101 PAU10207

PAU10204 PAU10205

PAU10206

PAU10203 PAU10202

PAU10201

COU102

PAU10306

PAU10305 PAU10304 PAU10303

PAU10302 PAU10301 PAU10300

COU103

PAU10406

PAU10405 PAU10404 PAU10403

PAU10402 PAU10401 PAU10400

COU104

PAU10506

PAU10505 PAU10504 PAU10503

PAU10502 PAU10501 PAU10500

COU105

PAU10606

PAU10605 PAU10604 PAU10603

PAU10602 PAU10601 PAU10600

COU106

PAU10706

PAU10705 PAU10704 PAU10703

PAU10702 PAU10701 PAU10700

COU107

PAU1080A1 PAU1080A2

PAU1080B1 PAU1080B2

PAU1080C1 PAU1080C2 COU108

PAU20001 PAU20002 PAU20003 PAU20004 PAU20005 PAU20006 PAU20007 PAU20008 PAU20009 PAU200010 PAU200011 PAU200012 PAU200013 PAU200014 PAU200015 PAU200016 PAU200017 PAU200018 PAU200019 PAU200020 PAU200021 PAU200022 PAU200023 PAU200024 PAU200025 PAU200026 PAU200027 PAU200028 PAU200029 PAU200030 PAU200031 PAU200032 PAU200033 PAU200034 PAU200035 PAU200036

PAU200037 PAU200038 PAU200039 PAU200040 PAU200041 PAU200042 PAU200043 PAU200044 PAU200045 PAU200046 PAU200047 PAU200048

COU200

PAXC20001

PAXC20002 COXC200

PAXC20101 PAXC20102

PAXC20103 PAXC20104 COXC201

Figure 8-3 AVR128DB48 Curiosity Nano Assembly Drawing Bottom

tcR

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20001 PAC20002 COC200

PAC20101 PAC20102 COC201

PAC20201 PAC20202 COC202 PAC20301

PAC20302 COC203

PAC20401

PAC20402 COC204

PAC20502

PAC20501 COC205

PAC20601

PAC20602 COC206 PAC20701

PAC20702 COC207 PAD10002 PAD10001 COD100

PAD20002

PAD20001 COD200

PAF10002

PAF10001 COF100

PAJ10002 PAJ10001 COJ100

PAJ10101 PAJ10102 COJ101

PAJ10201

PAJ10202

PAJ10203

PAJ10204

PAJ10205

PAJ10206 COJ102

PAJ10506

PAJ10507 PAJ10509

PAJ10508 PAJ105010

PAJ105011 PAJ10505

PAJ10504

PAJ10503

PAJ10502

PAJ10501

PAJ10500

COJ105

PAJ200056 PAJ200053

PAJ200028 PAJ20002 PAJ20001

PAJ200051 PAJ200050 PAJ200052 PAJ200049 PAJ200048 PAJ200047 PAJ200046 PAJ200045 PAJ200044 PAJ200043 PAJ200042 PAJ200041 PAJ200040 PAJ200039 PAJ200038 PAJ200037 PAJ200036 PAJ200035 PAJ200034 PAJ200033 PAJ200032 PAJ200031 PAJ200030 PAJ200029

PAJ20003 PAJ20004 PAJ20005 PAJ20006 PAJ20007 PAJ20008 PAJ20009 PAJ200010 PAJ200011 PAJ200012 PAJ200013 PAJ200014 PAJ200015 PAJ200016 PAJ200017 PAJ200018 PAJ200019 PAJ200020 PAJ200021 PAJ200022 PAJ200023 PAJ200026 PAJ200025 PAJ200024 PAJ200027

PAJ200054 PAJ200055 PAJ20000

COJ200

PAJ20102 PAJ20101 COJ201

PAJ20202 PAJ20201 COJ202

PAJ20302 PAJ20301 COJ203

PAJ20402 PAJ20401 COJ204

PAJ20502 PAJ20501 COJ205

PAJ20602 PAJ20601 COJ206 PAJ20702 PAJ20701 COJ207

PAJ20802 PAJ20801 COJ208

PAJ20902 PAJ20901 COJ209

PAJ21001 PAJ21002 PAJ21005 COJ210

PAJ21102 PAJ21101 PAJ21105 COJ211

PAJ21202 PAJ21201 COJ212

PAJ21301 PAJ21302 PAJ21305 COJ213

PAJ21401 PAJ21402 PAJ21405 COJ214

PAJ21502 PAJ21501 COJ215

PAJ21602 PAJ21601 COJ216 PAJ21702 PAJ21701 COJ217

COLABEL1

PAQ10101 PAQ10102 PAQ10103 PAQ10100

COQ101 PAR10002

PAR10001 COR100 PAR10101 PAR10102 COR101

PAR10202 PAR10201 COR102

PAR10302 PAR10301 COR103

PAR10401 PAR10402 COR104

PAR10502

PAR10501 COR105

PAR10601 PAR10602 COR106

PAR10702 PAR10701 COR107

PAR10801

PAR10802 COR108

PAR10901 PAR10902 COR109

PAR11001 PAR11002 COR110

PAR11101 PAR11102 COR111

PAR11201 PAR11202 COR112

PAR11302 PAR11301 COR113

PAR20001 PAR20002 COR200 PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203 PAR20401 PAR20402 COR204

PASW20003

PASW20004 PASW20002

PASW20001 COSW200

PATP10001 COTP100

PATP10101 COTP101 PAU100033

PAU100032 PAU100031 PAU100030 PAU100029 PAU100028 PAU100027 PAU100026 PAU100025 PAU100024

PAU100023

PAU100022

PAU100021

PAU100020

PAU100019

PAU100018

PAU100017 PAU100016 PAU100015 PAU100014 PAU100013 PAU100012 PAU100011 PAU100010

PAU10001

PAU10002

PAU10003

PAU10004

PAU10005

PAU10006

PAU10007

PAU10008 PAU10009

COU100

PAU10107

PAU10104 PAU10105 PAU10106

PAU10103 PAU10102 PAU10101 PAU10100 COU101 PAU10207

PAU10204 PAU10205

PAU10206

PAU10203 PAU10202

PAU10201

COU102

PAU10306

PAU10305 PAU10304 PAU10303

PAU10302 PAU10301 PAU10300

COU103

PAU10406

PAU10405 PAU10404 PAU10403

PAU10402 PAU10401 PAU10400

COU104

PAU10506

PAU10505 PAU10504 PAU10503

PAU10502 PAU10501 PAU10500

COU105

PAU10606

PAU10605 PAU10604 PAU10603

PAU10602 PAU10601 PAU10600

COU106

PAU10706

PAU10705 PAU10704 PAU10703

PAU10702 PAU10701 PAU10700

COU107

PAU1080A1 PAU1080A2

PAU1080B1 PAU1080B2

PAU1080C1 PAU1080C2 COU108

PAU20001 PAU20002 PAU20003 PAU20004 PAU20005 PAU20006 PAU20007 PAU20008 PAU20009 PAU200010 PAU200011 PAU200012 PAU200013 PAU200014 PAU200015 PAU200016 PAU200017 PAU200018 PAU200019 PAU200020 PAU200021 PAU200022 PAU200023 PAU200024 PAU200025 PAU200026 PAU200027 PAU200028 PAU200029 PAU200030 PAU200031 PAU200032 PAU200033 PAU200034 PAU200035 PAU200036

PAU200037 PAU200038 PAU200039 PAU200040 PAU200041 PAU200042 PAU200043 PAU200044 PAU200045 PAU200046 PAU200047 PAU200048

COU200

PAXC20001

PAXC20002 COXC200

PAXC20101 PAXC20102

PAXC20103 PAXC20104 COXC201

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 36

83 Curiosity Nano Base for Click boardstrade

Figure 8-4 AVR128DB48 Curiosity Nano Pinout Mapping

US

B

DE

BU

GG

ER

AV

R1

28

DB

48

SW

0

LE

D0

PS

LE

DNC

NC

ID

ID

CDC RX

CDCRX

USART3 TX

PB0

CDC TX

CDCTX

USART3 RX

PB1

DBG1

DBG1

PB3

LED0

DBG2

DBG2

PB2

SW0

PF4

PF4

USART2 TX

PF5

PF5

USART2 RX

PA2

PA2

TWI0 SDA

PA3

PA3

TWI0 SCL

PA4

PA4

SPI0 MOSI

PA5

PA5

SPI0 MISO

PA6

PA6

SPI0 SCK

PA7

PA7

SPI0 SS

GND

GND

PB0

PB0

USART3 TX

CDC RX

PB1

PB1

USART3 RX

CDC TX

PF2

PF2

PF3

PF3

PC0

PC0

PC1

PC1

PC2

PC2

PC3

PC3

GND

GND

(PA0)

(PA0)

XTALHF1

(PA1)

(PA1)

XTALHF2

PB2

PB2

SW0

PB3

PB3

LED0

VBUS

VBUS

VOFF

VOFF

DBG3

DBG3

PF6

DBG0

DBG0

UPDI

GND

GND

VTG

VTG

PD6

PD6

AIN6

PD3

PD3

AIN3

OP0 INN

PD2

PD2

AIN2

OP0 OUT

TCA0 WO2

PD1

PD1

AIN1

OP0 INP

TCA0 WO1

PD0

PD0

AIN0

TCA0 WO0

PD7

PD7

AIN7

OP1 INN

PD5

PD5

AIN5

OP1 OUT

PD4

PD4

AIN4

OP1 INP

GND

GND

PE3

PE3

OP2 INN

PE2

PE2

OP2 OUT

PE1

PE1

OP2 INP

PE0

PE0

PC7

PC7

PC6

PC6

PC5

PC5

PC4

PC4

GND

GND

PB5

PB5

PB4

PB4

(PF1)

(PF1)

XTAL32K2

(PF0)

(PF0)

XTAL32K1

DE

BU

GG

ER

AV

R1

28

DB

48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

MVIO

OPAMP

Shared pin

AV

R1

28

DB

48

Cu

rio

sity

Na

no

1

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

2

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

3

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

Xp

lain

ed

Pro

Ext

en

sio

nE

XT

11

2

19

20

Cu

rio

sity

Na

no

Ba

sefo

r cl

ick

bo

ard

sT

M

PD4

PD0

PD6

PD3

PA7

PF5

PA6

PF4

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

PD5

PD1

PF3

PF2

PE2

PB1

PA6

PB0

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

PD7

PD2

PE1

PE0

PE3

PF5

PA6

PF4

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

ID

GND

PD5

PD7

PF3

PE1

PD1

PD2

PF2

PE3

PA2

PA3

PB1

PB0

PE2

PA4

PA5

PA6

GND

+33V

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 37

84 Disconnecting the On-board DebuggerThe on-board debugger and level shifters can be completely disconnected from the AVR128DB48

The block diagram below shows all connections between the debugger and the AVR128DB48 The rounded boxesrepresent connections to the board edge The signal names shown are also printed in silkscreen on the bottom sideof the board

To disconnect the debugger cut the straps shown in Figure 8-6

Attention  Cutting the GPIO straps to the on-board debugger will disable the virtual serial portprogramming debugging and data streaming Cutting the power supply strap will disconnect the on-boardpower supply

Tip  Any connection that is cut can be reconnected using solder Alternatively a 0Ω 0402 resistor can bemounted

Tip  When the debugger is disconnected an external debugger can be connected to holes shown in Figure 8-6 Details about connecting an external debugger are described in 46 Connecting ExternalDebuggers

Figure 8-5  On-Board Debugger Connections Block Diagram

DE

BU

GG

ER

TARGETLevel-Shift

PA04PA06PA07PA08PA16PA00PA01

USB

DIR x 5

VCC_P3V3

VBUS

VC

C_L

EV

EL

VC

C_T

AR

GE

TDBG0DBG1DBG2DBG3CDC TXCDC RX

CDC RX

CDC TX

DBG3

DBG2

DBG1

DBG0

GPIO straps

LDO

VOFF

LDO

VBUS VTG

VCC_EDGE

Power Supply strap Target Power strap

UART RXUART TX

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 38

Figure 8-6 On-Board Debugger Connection Cut Straps

GPIO straps (bottom side) Power Supply strap (top side)

85 Getting Started with IARIAR Embedded Workbenchreg for AVRreg is a proprietary high-efficiency compiler not based on GCC Programming anddebugging of AVR128DB48 Curiosity Nano is supported in IARtrade Embedded Workbench for AVR using the Atmel-ICEinterface Some initial settings must be set up in the project to get the programming and debugging to work

The following steps will explain how to get your project ready for programming and debugging

1 Make sure you have opened the project you want to configure Open the OPTIONS dialog for the project2 In the category General Options select the Target tab Select the device for the project or if not listed the

core of the device as shown in Figure 8-73 In the category Debugger select the Setup tab Select Atmel-ICE as the driver as shown in Figure 8-84 In the category Debugger gt Atmel-ICE select the Atmel-ICE 1 tab Select UPDI as the interface and

optionally select the UPDI frequency as shown in Figure 8-9

Info  If the selection of Debug Port (mentioned in step 4) is grayed out the interface is preselected andthe user can skip this configuration step

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 39

Figure 8-7 Select Target Device

Figure 8-8 Select Debugger

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 40

Figure 8-9 Configure Interface

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 41

The Microchip Website

Microchip provides online support via our website at wwwmicrochipcom This website is used to make files andinformation easily available to customers Some of the content available includes

bull Product Support ndash Data sheets and errata application notes and sample programs design resources userrsquosguides and hardware support documents latest software releases and archived software

bull General Technical Support ndash Frequently Asked Questions (FAQs) technical support requests onlinediscussion groups Microchip design partner program member listing

bull Business of Microchip ndash Product selector and ordering guides latest Microchip press releases listing ofseminars and events listings of Microchip sales offices distributors and factory representatives

Product Change Notification Service

Microchiprsquos product change notification service helps keep customers current on Microchip products Subscribers willreceive email notification whenever there are changes updates revisions or errata related to a specified productfamily or development tool of interest

To register go to wwwmicrochipcompcn and follow the registration instructions

Customer Support

Users of Microchip products can receive assistance through several channels

bull Distributor or Representativebull Local Sales Officebull Embedded Solutions Engineer (ESE)bull Technical Support

Customers should contact their distributor representative or ESE for support Local sales offices are also available tohelp customers A listing of sales offices and locations is included in this document

Technical support is available through the website at wwwmicrochipcomsupport

Microchip Devices Code Protection Feature

Note the following details of the code protection feature on Microchip devices

bull Microchip products meet the specifications contained in their particular Microchip Data Sheetbull Microchip believes that its family of products is secure when used in the intended manner and under normal

conditionsbull There are dishonest and possibly illegal methods being used in attempts to breach the code protection features

of the Microchip devices We believe that these methods require using the Microchip products in a manneroutside the operating specifications contained in Microchiprsquos Data Sheets Attempts to breach these codeprotection features most likely cannot be accomplished without violating Microchiprsquos intellectual property rights

bull Microchip is willing to work with any customer who is concerned about the integrity of its codebull Neither Microchip nor any other semiconductor manufacturer can guarantee the security of its code Code

protection does not mean that we are guaranteeing the product is ldquounbreakablerdquo Code protection is constantlyevolving We at Microchip are committed to continuously improving the code protection features of our productsAttempts to break Microchiprsquos code protection feature may be a violation of the Digital Millennium Copyright ActIf such acts allow unauthorized access to your software or other copyrighted work you may have a right to suefor relief under that Act

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 42

Legal Notice

Information contained in this publication is provided for the sole purpose of designing with and using Microchipproducts Information regarding device applications and the like is provided only for your convenience and may besuperseded by updates It is your responsibility to ensure that your application meets with your specifications

THIS INFORMATION IS PROVIDED BY MICROCHIP ldquoAS ISrdquo MICROCHIP MAKES NO REPRESENTATIONS ORWARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED WRITTEN OR ORAL STATUTORY OROTHERWISE RELATED TO THE INFORMATION INCLUDING BUT NOT LIMITED TO ANY IMPLIEDWARRANTIES OF NON-INFRINGEMENT MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSEOR WARRANTIES RELATED TO ITS CONDITION QUALITY OR PERFORMANCE

IN NO EVENT WILL MICROCHIP BE LIABLE FOR ANY INDIRECT SPECIAL PUNITIVE INCIDENTAL ORCONSEQUENTIAL LOSS DAMAGE COST OR EXPENSE OF ANY KIND WHATSOEVER RELATED TO THEINFORMATION OR ITS USE HOWEVER CAUSED EVEN IF MICROCHIP HAS BEEN ADVISED OF THEPOSSIBILITY OR THE DAMAGES ARE FORESEEABLE TO THE FULLEST EXTENT ALLOWED BY LAWMICROCHIPS TOTAL LIABILITY ON ALL CLAIMS IN ANY WAY RELATED TO THE INFORMATION OR ITS USEWILL NOT EXCEED THE AMOUNT OF FEES IF ANY THAT YOU HAVE PAID DIRECTLY TO MICROCHIP FORTHE INFORMATION Use of Microchip devices in life support andor safety applications is entirely at the buyerrsquos riskand the buyer agrees to defend indemnify and hold harmless Microchip from any and all damages claims suits orexpenses resulting from such use No licenses are conveyed implicitly or otherwise under any Microchip intellectualproperty rights unless otherwise stated

Trademarks

The Microchip name and logo the Microchip logo Adaptec AnyRate AVR AVR logo AVR Freaks BesTimeBitCloud chipKIT chipKIT logo CryptoMemory CryptoRF dsPIC FlashFlex flexPWR HELDO IGLOO JukeBloxKeeLoq Kleer LANCheck LinkMD maXStylus maXTouch MediaLB megaAVR Microsemi Microsemi logo MOSTMOST logo MPLAB OptoLyzer PackeTime PIC picoPower PICSTART PIC32 logo PolarFire Prochip DesignerQTouch SAM-BA SenGenuity SpyNIC SST SST Logo SuperFlash Symmetricom SyncServer TachyonTempTrackr TimeSource tinyAVR UNIO Vectron and XMEGA are registered trademarks of Microchip TechnologyIncorporated in the USA and other countries

APT ClockWorks The Embedded Control Solutions Company EtherSynch FlashTec Hyper Speed ControlHyperLight Load IntelliMOS Libero motorBench mTouch Powermite 3 Precision Edge ProASIC ProASIC PlusProASIC Plus logo Quiet-Wire SmartFusion SyncWorld Temux TimeCesium TimeHub TimePictra TimeProviderVite WinPath and ZL are registered trademarks of Microchip Technology Incorporated in the USA

Adjacent Key Suppression AKS Analog-for-the-Digital Age Any Capacitor AnyIn AnyOut BlueSky BodyComCodeGuard CryptoAuthentication CryptoAutomotive CryptoCompanion CryptoController dsPICDEMdsPICDEMnet Dynamic Average Matching DAM ECAN EtherGREEN In-Circuit Serial Programming ICSPINICnet Inter-Chip Connectivity JitterBlocker KleerNet KleerNet logo memBrain Mindi MiWi MPASM MPFMPLAB Certified logo MPLIB MPLINK MultiTRAK NetDetach Omniscient Code Generation PICDEMPICDEMnet PICkit PICtail PowerSmart PureSilicon QMatrix REAL ICE Ripple Blocker SAM-ICE Serial QuadIO SMART-IS SQI SuperSwitcher SuperSwitcher II Total Endurance TSHARC USBCheck VariSenseViewSpan WiperLock Wireless DNA and ZENA are trademarks of Microchip Technology Incorporated in the USAand other countries

SQTP is a service mark of Microchip Technology Incorporated in the USA

The Adaptec logo Frequency on Demand Silicon Storage Technology and Symmcom are registered trademarks ofMicrochip Technology Inc in other countries

GestIC is a registered trademark of Microchip Technology Germany II GmbH amp Co KG a subsidiary of MicrochipTechnology Inc in other countries

All other trademarks mentioned herein are property of their respective companiescopy 2020 Microchip Technology Incorporated Printed in the USA All Rights Reserved

ISBN 978-1-5224-6667-3

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 43

Quality Management SystemFor information regarding Microchiprsquos Quality Management Systems please visit wwwmicrochipcomquality

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 44

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupportwwwmicrochipcomsupportWeb AddresswwwmicrochipcomAtlantaDuluth GATel 678-957-9614Fax 678-957-1455Austin TXTel 512-257-3370BostonWestborough MATel 774-760-0087Fax 774-760-0088ChicagoItasca ILTel 630-285-0071Fax 630-285-0075DallasAddison TXTel 972-818-7423Fax 972-818-2924DetroitNovi MITel 248-848-4000Houston TXTel 281-894-5983IndianapolisNoblesville INTel 317-773-8323Fax 317-773-5453Tel 317-536-2380Los AngelesMission Viejo CATel 949-462-9523Fax 949-462-9608Tel 951-273-7800Raleigh NCTel 919-844-7510New York NYTel 631-435-6000San Jose CATel 408-735-9110Tel 408-436-4270Canada - TorontoTel 905-695-1980Fax 905-695-2078

Australia - SydneyTel 61-2-9868-6733China - BeijingTel 86-10-8569-7000China - ChengduTel 86-28-8665-5511China - ChongqingTel 86-23-8980-9588China - DongguanTel 86-769-8702-9880China - GuangzhouTel 86-20-8755-8029China - HangzhouTel 86-571-8792-8115China - Hong Kong SARTel 852-2943-5100China - NanjingTel 86-25-8473-2460China - QingdaoTel 86-532-8502-7355China - ShanghaiTel 86-21-3326-8000China - ShenyangTel 86-24-2334-2829China - ShenzhenTel 86-755-8864-2200China - SuzhouTel 86-186-6233-1526China - WuhanTel 86-27-5980-5300China - XianTel 86-29-8833-7252China - XiamenTel 86-592-2388138China - ZhuhaiTel 86-756-3210040

India - BangaloreTel 91-80-3090-4444India - New DelhiTel 91-11-4160-8631India - PuneTel 91-20-4121-0141Japan - OsakaTel 81-6-6152-7160Japan - TokyoTel 81-3-6880- 3770Korea - DaeguTel 82-53-744-4301Korea - SeoulTel 82-2-554-7200Malaysia - Kuala LumpurTel 60-3-7651-7906Malaysia - PenangTel 60-4-227-8870Philippines - ManilaTel 63-2-634-9065SingaporeTel 65-6334-8870Taiwan - Hsin ChuTel 886-3-577-8366Taiwan - KaohsiungTel 886-7-213-7830Taiwan - TaipeiTel 886-2-2508-8600Thailand - BangkokTel 66-2-694-1351Vietnam - Ho Chi MinhTel 84-28-5448-2100

Austria - WelsTel 43-7242-2244-39Fax 43-7242-2244-393Denmark - CopenhagenTel 45-4485-5910Fax 45-4485-2829Finland - EspooTel 358-9-4520-820France - ParisTel 33-1-69-53-63-20Fax 33-1-69-30-90-79Germany - GarchingTel 49-8931-9700Germany - HaanTel 49-2129-3766400Germany - HeilbronnTel 49-7131-72400Germany - KarlsruheTel 49-721-625370Germany - MunichTel 49-89-627-144-0Fax 49-89-627-144-44Germany - RosenheimTel 49-8031-354-560Israel - RarsquoananaTel 972-9-744-7705Italy - MilanTel 39-0331-742611Fax 39-0331-466781Italy - PadovaTel 39-049-7625286Netherlands - DrunenTel 31-416-690399Fax 31-416-690340Norway - TrondheimTel 47-72884388Poland - WarsawTel 48-22-3325737Romania - BucharestTel 40-21-407-87-50Spain - MadridTel 34-91-708-08-90Fax 34-91-708-08-91Sweden - GothenbergTel 46-31-704-60-40Sweden - StockholmTel 46-8-5090-4654UK - WokinghamTel 44-118-921-5800Fax 44-118-921-5820

Worldwide Sales and Service

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 45

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Board Overview
      • 2 Getting Started
        • 21 Quick Start
          • 211 Driver Installation
          • 212 Kit Window
          • 213 MPLABreg X IDE Device Family Packs
          • 214 Atmel Studio 7 Device Family Pack
            • 22 Design Documentation and Relevant Links
              • 3 Preprogrammed Application
              • 4 Curiosity Nano
                • 41 On-Board Debugger Overview
                  • 411 Debugger
                  • 412 Virtual Serial Port (CDC)
                    • 4121 Overview
                    • 4122 Operating System Support
                    • 4123 Limitations
                    • 4124 Signaling
                    • 4125 Advanced Use
                      • 413 Mass Storage Device
                        • 4131 Mass Storage Device Implementation
                        • 4132 Limitations of Drag-and-Drop Programming
                        • 4133 Special Commands
                          • 414 Data Gateway Interface (DGI)
                            • 4141 Debug GPIO
                            • 4142 Timestamping
                                • 42 Curiosity Nano Standard Pinout
                                • 43 Power Supply
                                  • 431 Target Regulator
                                  • 432 External Supply
                                  • 433 VBUS Output Pin
                                  • 434 Power Supply Exceptions
                                    • 44 Low-Power Measurement
                                    • 45 Programming External Microcontrollers
                                      • 451 Supported Devices
                                      • 452 Software Configuration
                                      • 453 Hardware Modifications
                                      • 454 Connecting to External Microcontrollers
                                        • 46 Connecting External Debuggers
                                          • 5 Hardware User Guide
                                            • 51 Connectors
                                              • 511 AVR128DB48 Curiosity Nano Pinout
                                              • 512 Using Pin Headers
                                              • 513 Multi-Voltage IO
                                              • 514 Operational Amplifiers
                                                • 52 Peripherals
                                                  • 521 LED
                                                  • 522 Mechanical Switch
                                                  • 523 32768 kHz Crystal
                                                  • 524 1600 MHz Crystal
                                                  • 525 On-Board Debugger Implementation
                                                    • 5251 On-Board Debugger Connections
                                                      • 6 Hardware Revision History and Known Issues
                                                        • 61 Identifying Product ID and Revision
                                                        • 62 Revision 3
                                                        • 63 Revision 2
                                                          • 7 Document Revision History
                                                          • 8 Appendix
                                                            • 81 Schematic
                                                            • 82 Assembly Drawing
                                                            • 83 Curiosity Nano Base for Click boardstrade
                                                            • 84 Disconnecting the On-board Debugger
                                                            • 85 Getting Started with IAR
                                                              • The Microchip Website
                                                              • Product Change Notification Service
                                                              • Customer Support
                                                              • Microchip Devices Code Protection Feature
                                                              • Legal Notice
                                                              • Trademarks
                                                              • Quality Management System
                                                              • Worldwide Sales and Service
Page 26: AVR128DB48 Curiosity Nano Hardware User Guideww1.microchip.com/downloads/en/DeviceDoc/AVR128DB48-Curiosit… · 4. Curiosity Nano Curiosity Nano is an evaluation platform of small

5 Hardware User Guide

51 Connectors

511 AVR128DB48 Curiosity Nano PinoutAll the AVR128DB48 IO pins are accessible at the edge connectors on the board The image below shows the boardpinout For all available functions on each pin refer to the IO Multiplexing and Considerations section in theAVR128DB48 data sheet

Figure 5-1 AVR128DB48 Curiosity Nano Pinout

USB

DEBUGGER

AVR128DB48

SW0

LED0

PS LEDNC

NC

IDID

CDC RX

CD

CR

XUSART3 TXPB0

CDC TX

CD

CT

XUSART3 RXPB1

DBG1

DB

G1PB3LED0

DBG2

DB

G2PB2SW0

PF4

PF

4USART2 TX

PF5

PF

5USART2 RX

PA2

PA

2TWI0 SDA

PA3

PA

3TWI0 SCL

PA4

PA

4SPI0 MOSI

PA5

PA

5SPI0 MISO

PA6

PA

6SPI0 SCK

PA7

PA

7SPI0 SS

GND

GN

D

PB0

PB

0USART3 TXCDC RX

PB1

PB

1USART3 RXCDC TX

PF2

PF

2

PF3

PF

3

PC0

PC

0

PC1

PC

1

PC2

PC

2

PC3

PC

3

GND

GN

D

(PA0)

(PA

0)XTALHF1

(PA1)

(PA

1)XTALHF2

PB2

PB

2SW0

PB3

PB

3LED0

VBUS

VB

US

VOFF

VO

FF

DBG3

DB

G3 PF6

DBG0

DB

G0 UPDI

GND

GN

D

VTG

VT

G

PD6

PD

6 AIN6

PD3

PD

3 AIN3 OP0 INN

PD2

PD

2 AIN2 OP0 OUT TCA0 WO2

PD1

PD

1 AIN1 OP0 INP TCA0 WO1

PD0

PD

0 AIN0 TCA0 WO0

PD7

PD

7 AIN7 OP1 INN

PD5

PD

5 AIN5 OP1 OUT

PD4

PD

4 AIN4 OP1 INP

GND

GN

D

PE3

PE

3 OP2 INN

PE2

PE

2 OP2 OUT

PE1

PE

1 OP2 INP

PE0

PE

0

PC7

PC

7

PC6

PC

6

PC5

PC

5

PC4

PC

4

GND

GN

D

PB5

PB

5

PB4

PB

4

(PF1)

(PF

1) XTAL32K2

(PF0)

(PF

0) XTAL32K1

DEBUGGERAVR128DB48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

MVIO

OPAMP

Shared pin

AVR128DB48Curiosity Nano

512 Using Pin HeadersThe edge connector footprint on AVR128DB48 Curiosity Nano has a staggered design where each hole is shifted 8mil (~02 mm) off-center The hole shift allows the use of regular 100 mil pin headers on the board without solderingOnce the pin headers are firmly in place they can be used in normal applications like pin sockets and prototypingboards without any issues

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 26

Figure 5-2 Attaching Pin-Headers to the Curiostiy Nano Board

Figure 5-3 Connecting to Curiosity Nano Base for Click boardstrade

Tip  Start at one end of the pin header and gradually insert the header along the length of the boardOnce all the pins are in place use a flat surface to push them in

Tip  For applications where the pin headers will be used permanently it is still recommended to solderthem in place

Important  Once the pin headers are in place they are hard to remove by hand Use a set of pliers andcarefully remove the pin headers to avoid damage to the pin headers and PCB

513 Multi-Voltage IO

The AVR128DB48 Curiosity Nano MCU has support for Multi-Voltage IO (MVIO) AVR128DB48 MVIO pins areconnected to the edge connector at PC0-PC7 MVIO pins are capable of regular IO-pin behavior

MVIO can be configured in one of two supply modesbull Single-Supply mode All IO pins including MVIO-capable pins are powered by VCC_TARGET By default

VCC_TARGET is connected to VDDIO2 through a 0-ohm resistor (R204)bull Dual-Supply mode MVIO-capable pins are powered by an external power supply connected to VDDIO2 Non-

MVIO pins are powered by VCC_TARGET

Dual-Supply mode allows MVIO-pins to be powered at different voltages than pins powered from VCC_TARGET

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 27

WARNINGThe absolute maximum external voltage range for the AVR128DB48 is 18ndash55V Applying a higher voltagemay cause permanent damage to the board

By default AVR128DB48 Curiosity Nano board is configured for single-supply mode To use Dual-Supply mode somehardware modifications are required

WARNINGBefore any hardware modifications are done make sure the board is disconnected from USB or externalpower

bull Disconnect resistor R204 connecting VDDIO2 to VCC_TARGETbull Connect a new power supply to VDDIO2 and ground at J212bull J212 does not have reverse polarity protection Make sure to match polarity between the power supply and

J212 Positive-polarity to J212-pin 1 and negative-polarity to J212-pin 2

The resistor R204 VDDIO2 and J212 can be seen in Figure 5-4

Figure 5-4 MVIO and VDDIO2 Connections

J212 R204

WARNINGApplying an external voltage to VDDIO2 pin without removing resistor R204 may cause permanentdamage to the board

WARNINGJ212 does not have reverse polarity protection Applying voltage to the wrong pin may cause permanentdamage to the board

514 Operational AmplifiersAVR128DB48 features three internal operational amplifiers with a flexible connection scheme using analogmultiplexers and resistor ladders This allows a large number of analog signal conditioning configurations manyrequiring no external components

Table 5-1 OPAMP Pin Connections

OPAMP Poisitive Input (INP) Negative Input (INN) Output (OUT)

OP0 PD1 PD3 PD2

OP1 PD4 PD7 PD5

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 28

continuedOPAMP Poisitive Input (INP) Negative Input (INN) Output (OUT)

OP2 PE1 PE3 PE2

For information about OPAMP on the edge connector and any shared functionality see 511 AVR128DB48 CuriosityNano Pinout

52 Peripherals

521 LEDThere is one yellow user LED available on the AVR128DB48 Curiosity Nano board that can be controlled by eitherGPIO or PWM The LED can be activated by driving the connected IO line to GND

Table 5-2 LED Connection

AVR128DB48 Pin Function Shared Functionality

PB3 Yellow LED0 Edge connector On-board debugger

522 Mechanical SwitchThe AVR128DB48 Curiosity Nano board has one mechanical switch This is a generic user-configurable switchWhen the switch is pressed it will drive the IO line to ground (GND)

Tip  There is no externally connected pull-up resistor on the switch To use the switch make sure that aninternal pull-up resistor is enabled on pin PB2

Table 5-3 Mechanical Switch

AVR128DB48 Pin Description Shared Functionality

PB2 User switch (SW0) Edge connector On-board debugger

523 32768 kHz Crystal

On the AVR128DB48 Curiosity Nano board is a mounted 32768 kHz crystal of type VMK3-9001-32K7680000 thecrystal is accurate to within 20 ppm Using the External 32768 kHz Crystal Oscillator (XOSC32K) module inAVR128DB48 with the mounted 32768 kHz crystal generates a clock signal that is significantly more accurate thanthe Internal 32768 kHz Ultra Low-Power Oscillator (OSC32K) module can generate alone With the Auto-Tunefeature the 32768 kHz can be used as a reference to improve the accuracy of the internal oscillator This is an idealreference clock for the Real-Time Counter module in AVR128DB48

The 32768 kHz crystal is connected to AVR128DB48 on PF0 and PF1 which are also routed to the edge connectorthrough two solder points PF0 and PF1 are disconnected from the edge connector by default to reduce the chanceof an external signal causing contention with the crystal and to remove excessive capacitance on the lines

Next to the 32768 kHz crystal is a cut-strap (J209) which can be used to measure the oscillator safety factor This isdone by cutting the strap and adding a 0402 SMD resistor across the strap More information about oscillatorallowance and safety factor can be found in the AN2648 application note from Microchip

Cut straps and solder points can be seen in Figure 5-5

Table 5-4 32768 kHz Crystal Connections

AVR128DB48 Pin Function Shared Functionality

PF0 XTAL32K1 (Crystal input) Edge connector

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 29

continuedAVR128DB48 Pin Function Shared Functionality

PF1 XTAL32K2 (Crystal output) Edge connector

PA0 and PA1 can be used as GPIO To do so some hardware modifications are required

WARNINGBefore any hardware modifications are done make sure the board is disconnected from the USB orexternal power

bull Disconnect the 32768 kHz crystal by cutting the two straps on the top side of the board next to the crystal(J207 J208) The crystal should be disconnected when using the pin as GPIO as this might harm the crystal

bull Connect the IO lines to the edge connector by placing solder blobs on the circular solder points marked PF0and PF1 on the bottom side of the board (J210 J211)

Figure 5-5 Crystal Connection and Cut Straps

Top side Boom side

J211

J210

J207

J20832768 kHz Crystal

J209

524 1600 MHz Crystal

On the AVR128DB48 Curiosity Nano board is a mounted 1600 MHz crystal of type VXM7-9040-16M0000000 thecrystal is accurate to within 20 ppm Using the External High-Frequency Crystal Oscillator (XOSCHF) module inAVR128DB48 with the mounted 1600 MHz crystal generates a clock signal that is significantly more accurate thanthe Internal High-Frequency Oscillator (OSCHF) module

The 1600 MHz crystal is connected to AVR128DB48 on PA0 and PA1 which are also routed to the edge connectorthrough two solder points PA0 and PA1 are disconnected from the edge connector by default to reduce the chanceof an external signal causing contention with the crystal and to remove excessive capacitance on the lines

Next to the 1600 MHz crystal is a cut-strap (J217) which can be used to measure the oscillator safety factor This isdone by cutting the strap and adding a 0402 SMD resistor across the strap More information about oscillatorallowance and safety factor can be found in the AN2648 application note from Microchip

Cut straps and solder points can be seen in Figure 5-6

Table 5-5 Crystal Connections

AVR128DB48 Pin Function Shared Functionality

PA0 XTALHF1 (Crystal input) Edge connector

PA1 XTALHF2 (Crystal output) Edge connector

PA0 and PA1 can be used as GPIO To do so some hardware modifications are required

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 30

WARNINGBefore any hardware modifications are done make sure the board is disconnected from USB or externalpower

bull Disconnect the 1600 MHz crystal by cutting the two straps on the top side of the board next to the crystal (J215J216) The crystal should be disconnected when using the pin as GPIO as this might harm the crystal

bull Connect the IO lines to the edge connector by placing solder blobs on the circular solder points marked PA0and PA1 on the bottom side of the board (J213 J214)

Figure 5-6 Crystal Connection and Cut Straps

Top side Boom side

J214

J213

J216

J2151600 MHzCrystal

J217

525 On-Board Debugger ImplementationAVR128DB48 Curiosity Nano features an on-board debugger that can be used to program and debug theAVR128DB48 using UPDI The on-board debugger also includes a virtual serial port (CDC) interface over UART anddebug GPIO Both MPLABreg X IDE and Atmel Studio 7 can be used as a front-end for the on-board debugger forprogramming and debugging MPLAB Data Visualizer can be used as a front-end for the CDC and debug GPIO

5251 On-Board Debugger ConnectionsThe table below shows the connections between the target and the debugger section All connections between thetarget and the debugger are tri-stated as long as the debugger is not actively using the interface Hence since thereare little contaminations of the signals the pins can be configured to anything the user wants

For further information on how to use the capabilities of the on-board debugger see 41 On-Board DebuggerOverview

Table 5-6 On-Board Debugger Connections

AVR128DB48Pin

Debugger Pin Function Shared Functionality

PB1 CDC TX UART RX (AVR128DB48 RX line) Edge connector

PB0 CDC RX UART TX (AVR128DB48 TX line) Edge connector

UPDI DBG0 UPDI Edge connector

PB3 DBG1 LED0Debug GPIO1 Edge connector

PB2 DBG2 SW0Debug GPIO0 Edge connector

PF6 DBG3 RESET Edge connector

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 31

6 Hardware Revision History and Known IssuesThis user guide is written to provide information about the latest available revision of the board The followingsections contain information about known issues a revision history of older revisions and how older revisions differfrom the latest revision

61 Identifying Product ID and RevisionThe revision and product identifier of the AVR128DB48 Curiosity Nano Board can be found in two ways Either byutilizing the MPLABreg X IDE or Atmel Studio 7 Kit Window or by looking at the sticker on the bottom side of the PCB

By connecting AVR128DB48 Curiosity Nano to a computer with MPLABreg X IDE or Atmel Studio 7 running the KitWindow will pop up The first six digits of the serial number which is listed under kit information contain the productidentifier and revision

Tip  The Kit Window can be opened in MPLABreg X IDE through the menu bar Window gt Kit Window

The same information can be found on the sticker on the bottom side of the PCB Most boards will have the identifierand revision printed in plain text as A09-nnnnrr where ldquonnnnrdquo is the identifier and ldquorrrdquo is the revision Boards withlimited space have a sticker with only a data matrix code containing the product identifier revision and serialnumber

The serial number string has the following format

nnnnrrssssssssss

n = product identifier

r = revision

s = serial number

The product identifier for AVR128DB48 Curiosity Nano is A09‑3372

62 Revision 3AVR128DB48 silicon revision A5 or later is mounted on this revision of the board

63 Revision 2Revision 2 is the initially released board revision

AVR128DB48 silicon revision A4 is mounted on this revision of the board

AVR128DB48 Curiosity NanoHardware Revision History and Known Issues

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 32

7 Document Revision HistoryDoc Rev Date Comments

A 092020 Initial document release

AVR128DB48 Curiosity NanoDocument Revision History

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 33

8 Appendix

81 SchematicFigure 8-1 AVR128DB48 Curiosity Nano Schematic

11

22

33

44

55

66

77

88

DD

CC

BB

AA

2 of

4

AV

R12

8DB

48 C

uri

osit

y N

ano

240

820

20A

VR

128D

B48

_Cur

iosi

ty_N

ano_

Targ

et_M

CU

Sch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA

Rev

isio

n

File

P

CB

Num

ber

PC

B

Rev

isio

n

Des

ign

ed w

ith

Dra

wn

By

ML

Shee

t Titl

e

Targ

et M

CU

Eng

inee

rA

H

A08

-305

71

Size

A3

A09

-337

22

Page

D

ateA

ltium

com

GN

D

VD

DIO

2

100n

C20

1

GN

D

PA5_

SPI0

_MIS

OPA

6_SP

I0_S

CK

PA7_

SPI0

_SS

PB0_

USA

RT

3_T

XPB

1_U

SAR

T3_

RX

PB2_

SW0_

DB

G2

PB3_

LE

D0_

DB

G1

PB

4P

B5

PC

0P

C1

PC

2

PC3

PC4PC5PC6PC7PD0_AIN0_TCA0_WO0PD1_AIN1_OP0_INP_TCA0_WO1PD2_AIN2_OP0_OUT_TCA0_WO2PD3_AIN3_OP0_INNPD4_AIN4_OP1_INP

PA3_TWI0_SCL

PA1_XTALHF2

UPDI_DBG0

PF5_USART2_RX

PF3

PF

2PF

1_X

TA

L32

K2

PF0_

XT

AL

32K

1P

E3_

OP

2_IN

NP

E2_

OP

2_O

UT

PE

1_O

P2_

INP

PE

0

PD5_

AIN

5_O

P1_

OU

TPD

6_A

IN6

PD7_

AIN

7_O

P1_

INN

GN

D

VC

C_T

AR

GE

T

100n

C20

2

GN

DV

CC

_TA

RG

ET

100n

C20

0

PF1_XTAL32K2

PF0_XTAL32K1

PA2_TWI0_SDA

PA0_XTALHF1

PF4_USART2_TX

PA4_SPI0_MOSI

GN

D

PA7_

SPI0

_SS

PA6_

SPI0

_SC

KPA

5_SP

I0_M

ISO

PA4_

SPI0

_MO

SIPA

3_T

WI0

_SC

LPA

2_T

WI0

_SD

A

PC

0P

C1

PC

2P

C3

PB

4P

B5

PD7_

AIN

7_O

P1_

INN

PD6_

AIN

6

PD2_

AIN

2_O

P0_

OU

T_T

CA

0_W

O2

PD1_

AIN

1_O

P0_

INP_

TC

A0_

WO

1PD

0_A

IN0_

TC

A0_

WO

0

PD5_

AIN

5_O

P1_

OU

TPD

4_A

IN4_

OP

1_IN

P

PD3_

AIN

3_O

P0_

INN

32K

Hz

Cry

stal

PB0_

USA

RT

3_T

XPB

1_U

SAR

T3_

RX

1kR203

US

ER

LE

D

VC

C_T

AR

GE

T

PF6_DBG3

PB2_SW0_DBG2

PB3_LED0_DBG1

GN

D

USE

R B

UT

TO

N

PB3_

LE

D0_

DB

G1

PB2_

SW0_

DB

G2

PB1_

USA

RT

3_R

XPB

0_U

SAR

T3_

TX

PF4_

USA

RT

2_T

XPF

5_U

SAR

T2_

RX

PF

2P

F3

PC

4P

C5

PC

6P

C7

1kR202

YELLOWLEDSML-D12Y1WT86

2 1

D200

TS604VM1-035CR13

4 2

SW20

0

GN

DV

CC

_ED

GE

GN

DG

ND

GN

DG

ND

UPD

I_D

BG

0P

F6_

DB

G3

J209

PB3_

LE

D0_

DB

G1

PB2_

SW0_

DB

G2

AV

R12

8DB

48

22u

FC

205

VC

C_E

DG

E

GN

D

DBG0

CDC_TXCDC_RX

DBG2

DBG1

DBG3

DBG2

DE

BU

GG

ER

CO

NN

EC

TIO

NS

DBG1

DBG3DBG0

VOFF

ID_SYS

ID_SYS

VOFF

TA

RG

ET

BU

LK

VC

C_T

AR

GE

TR

ESE

T P

ull

VB

US

CD

C R

X3

CD

C T

X4

DB

G1

5

DB

G2

6

0 T

X7

1 R

X8

2 SD

A9

3 S

CL

10

4 M

OSI

11

5 M

ISO

12

6 S

CK

13

7 S

S14

GN

D15

0 (T

X)

16

1 (R

X)

17

218

319

020

GN

D24

DB

G3

54

DB

G0

53

GN

D52

VC

C51

PW

M 3

46

AD

C 2

45

AD

C 1

44

AD

C 0

43

GN

D42

438

434

GN

D33

AD

C 7

50

AD

C 6

49

AD

C 5

48

PW

M 4

47

DE

BU

GG

ER

TAR

GE

T

ID2

VO

FF

55

121

222

323

025

126

227

328

429

530

631

732

535

636

737

539

640

741

RE

SER

VE

D1

VB

US

56

CN

AN

O56

-pin

edg

e co

nnec

tor

J200

J201

J203

J205

J206

J202

J204

PF1_

XT

AL

32K

2PF

0_X

TA

L32

K1

NC

XOUT

XIN

47kR200

AV

R12

8DB

48

UPD

I

GPI

O1

GPI

O0

RE

SET

DB

G0

DB

G1

DB

G2

DB

G3

Deb

ugge

r

CD

C T

X

CD

C R

X

UA

RT

3 R

X

UA

RT

3 T

X

VT

G1

8V -

55

VPB

3

PB

2

PF

6

UP

DI

PB

0

PB

1

Nam

eP

in

PE

3_O

P2_

INN

PE

2_O

P2_

OU

TP

E1_

OP

2_IN

PP

E0

J207

J208

PF

0P

F1

PA5

1

PA6

2

PA7

3

PB0

4

PB1

5

PB2

6

PB3

7

PB4

8

PB5

9

PC0

10

PC1

11

PC2

12

PC313

VDDIO214

GND15

PC416

PC517

PC618

PC719

PD020

PD121

PD222

PD323

PD424

PD5

25

PD6

26

PD7

27

AVDD

28

GND

29

PE0

30

PE1

31

PE2

32

PE3

33

XTAL32K1PF0

34

XTAL32K2PF1

35

PF2

36

PF337

PF438

PF539

PF640

UPDI41

VDD42

GND43

XTALHF1PA044

XTALHF2PA145

PA246

PA347

PA448

AV

R12

8DB

48-I

PT

U20

0

0RR204

GN

D

VC

C_T

AR

GE

T

VDDIO2

GND

J210

J211

82p

C20

48

2pC

203

GN

DG

ND

16M

Hz

Cry

stal

J217

XHFOUT

XHFIN

J214

J213

GN

D

J215

J216

PA0_XTALHF1

PA1_XTALHF2

PA0_

XT

AL

HF

1PA

1_X

TA

LH

F2

PA0

PA1

1 2

J212 N

M

15pF

C20

615

pFC

207

13

24 16

000

MH

zV

XM

7-90

40-1

6M00

0000

0TR

XC

201

GN

D32

768

kHz

VM

K3-

9001

-32K

7680

000T

R

XC

200

CDC_TX

CDC_RX

CD

C_T

XC

DC

_RX

Cry

stal

dat

ashe

et

Ccr

ysta

l = 9

pFm

ax E

SR

= 7

0kO

hmA

ccur

acy

plusmn20p

pm

AV

R48

DB

128

data

shee

tC

xin

= 4

0pF

(ty

pica

l val

ue)

Cxo

ut =

40

pF (

typi

cal v

alue

)C

lasymp1

( (1

40

pF)+

(1

40p

F)

)asymp

20p

FM

axim

um L

oad

= 1

25p

FM

axim

um E

SR =

50k

Ohm

Est

imat

ed C

pcb

= 0

5pF

Est

imat

ed lo

adC

= 2

(C

crys

tal-

Cpa

ra -

Cpc

b)C

= 2

(9p

F -

20

pF -

05

pF)

C =

13

0pF

Sele

cted

in d

esig

n af

ter

veri

fica

tion

C=

82

pF8

2pF

NO

TE

on

UA

RT

CD

C

RX

TX

onth

ehe

ader

deno

tes

the

inpu

tout

put d

irec

tion

of th

e si

gnal

resp

ectiv

e to

its

sou

rce

CD

C T

X is

out

put f

rom

the

DE

BU

GG

ER

C

DC

RX

is in

put t

o th

e D

EB

UG

GE

R

TX

is o

utpu

t fro

m th

e T

AR

GE

T d

evic

eR

X is

inpu

t to

the

TA

RG

ET

dev

ice

NO

TE

on

I2C

No

pull

-ups

on

boar

d P

ull-

ups

shou

ld b

em

ount

ed c

lose

to s

lave

dev

ice(

s)

WA

RN

ING

M

ake

sure

tore

mov

e R

204

befo

reap

plyi

ng p

ower

to J

212

Cry

stal

dat

ashe

et

Ccr

ysta

l = 1

2pF

max

ES

R =

60O

hmA

ccur

acy

plusmn30p

pm

AV

R48

DB

128

data

shee

tC

xin

= 4

0pF

(ty

pica

l val

ue)

Cxo

ut =

40

pF (

typi

cal v

alue

)C

lasymp1

( (1

40

pF)+

(1

40p

F)

)asymp

20p

FM

axim

um L

oad

= 1

25p

FM

axim

um E

SR =

k

Ohm

Est

imat

ed C

pcb

= 0

5pF

Est

imat

ed lo

adC

= 2

(C

crys

tal-

Cpa

ra -

Cpc

b)C

= 2

(12

pF -

20

pF -

05

pF)

C =

19

0pF

Sele

cted

in d

esig

n af

ter

veri

fica

tion

C=

15p

F1

5pF

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 34

11

22

33

44

55

66

77

88

DD

CC

BB

AA

3 of

4

AV

R12

8DB

48 C

uri

osit

y N

ano

2020

-06-

26A

VR

128D

B48

_Cur

iosi

ty_N

ano_

Deb

ugge

rSch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA

Rev

isio

n

Fil

eP

CB

Num

ber

PC

B

Rev

isio

n

Des

ign

ed w

ith

Dra

wn

By

ML

Shee

t Tit

le

Deb

ugge

r

Eng

inee

rA

H

A08

-305

71

Size

A3

A09

-337

22

Page

D

ateA

ltium

com

DE

BU

GG

ER

USB

MIC

RO

-B C

ON

NE

CT

OR

GN

D

USB

D_P

USB

D_N

100n

C10

7

100n

C10

8

1kR

107

VC

C_P

3V3

SRST

STA

TU

S_L

ED

SHIE

LD

VB

US

VC

C_P

3V3

GN

D

TP

100

Test

poin

t Arr

ay

12

34

56

78

910

TC

KT

DO

TM

SV

sup

TD

IG

ND

TR

STSR

STV

Tre

fG

ND

J102

GN

D

47u

F

C10

0

DBG0

DB

G0

21

GR

EE

N L

ED

SML

-P12

MT

T86

R

D10

0

VBUS

1

D-

2

D+

3

GND

5

SHIELD1

6

SHIELD2

7

ID

4

SHIELD3

8

SHIELD4

9 MU

-MB

0142

AB

2-26

9

J105

PAD

33

PA00

1

PA01

2

PA02

3

PA03

4

GND 10VDDANA 9

PA04

5

PA05

6

PA06

7

PA07

8

PA08 11

PA09 12

PA10 13

PA11 14

PA14 15

PA15 16

PA16

17

PA17

18

PA18

19

PA19

20

PA22

21

USB_SOFPA23

22

USB_DMPA24

23

USB_DPPA25

24

PA2725 RESETN26 PA2827 GND28 VDDCORE29 VDDIN30 SWDCLKPA3031 SWDIOPA3132

SAM

D21

E18

A-M

UT

U10

0

VOUT

1

VOUT

2

GND 3

EN

4

VIN

6

NC

5

EP 7

MIC

5528

-33

YM

TU

101

VC

C_P

3V3

GN

D

USB

D_P

USB

D_N

GN

D

1uC

106

VC

C_M

CU

_CO

RE

VC

C_P

3V3

VC

C_P

3V3

22u

FC

101

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

3

VC

C_P

3V3

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

4

VC

C_P

3V3

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

5

VC

C_P

3V3

GN

D

GN

D GN

D

GN

D

VC

C_E

DG

E

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

7

VC

C_P

3V3

GN

DDBG2

DB

G3_

CT

RL

S1_0

_TX

S1_1

_RX

S0_2

_TX

DA

CV

TG

_AD

C

RE

SER

VE

D

S0_3

_CL

K

DBG0_CTRL

CD

C_T

X_C

TR

L

BO

OT

DE

BU

GG

ER

PO

WE

RS

TA

TU

S L

ED

EN

1

BYP

6

VOUT

4

GND

2

VIN

3

NCADJ

5

GND

7

MIC

5353

U10

2

100n

C10

2

GN

D

GN

D

47kR101

27kR104 G

ND

33k

R10

6

22u

F

C10

3 GN

D

1kR

108

J100

VC

C_L

EV

EL

VC

C_R

EG

UL

AT

OR

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

6

VC

C_P

3V3

GN

DDBG1

CD

C_R

X

CD

C_T

X

DBG3

DBG1_CTRL

DE

BU

GG

ER

RE

GU

LA

TO

R

REG_ENABLE

RE

G_E

NA

BL

E

47kR103

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

47kR102

47kR105

SWC

LK

GN

D

47kR100 G

ND

DB

G2

S0_0

_RX

DB

G1_

CT

RL

DB

G0_

CT

RL

DB

G3

OP

EN

DR

AIN

TA

RG

ET

AD

JUST

AB

LE

RE

GU

LA

TO

R

SRST

DE

BU

GG

ER

TE

ST

PO

INT DBG2_CTRL

VO

FF

CD

C_R

X_C

TR

L

47kR109

DB

G1

CD

C_T

X_C

TR

L

CD

C_R

X_C

TR

L

SWC

LK

REG_ADJUST

DBG2_GPIO

DB

G3_

CT

RL

DB

G2_

CT

RL

UP

DI

UPD

I

GPI

O

GPI

O

RE

SET

Sign

al

DB

G0

DB

G1

DB

G2

DB

G3

ICS

PIn

terf

ace

DA

T

CL

K

GPI

O

MC

LR

DB

G3

CD

C T

X

CD

C R

X

UA

RT

RX

UA

RT

TX

UA

RT

RX

UA

RT

TX

TA

RG

ET

TA

RG

ET

1kR

110

VBUS_ADC

1

23

DM

N65

D8L

FB

Q10

1

VC

C-

-

ID_SYS

VOFF

1kR112

VC

C_P

3V3

VT

G_A

DC

DA

C

MIC

9416

3

VIN

B2

VOUT

A1

VIN

A2

EN

C2

GND

C1

VOUT

B1

U10

8

GN

D

ID_S

YS

VT

G_E

N

VTG_EN

VBUS_ADC

SWD

IO

ID_S

YS

TP

101

GN

DSW

DIO

VO

FF

47kR111 G

ND

ID P

IN

MC

3621

3

F10

0

VC

C_V

BU

S

VC

C_V

BU

S

VC

C_V

BU

S

J101

VC

C_T

AR

GE

T

47k

R11

3

CDC_TX

CDC_RX

Prog

ram

min

g co

nnec

tor

for

fact

ory

prog

ram

min

g of

DE

BU

GG

ER

MIC

5528

V

in 2

5V

to 5

5V

Vou

t F

ixed

33

VIm

ax 5

00m

AD

ropo

ut 2

60m

V

500

mA

MIC

5353

V

in 2

6V

to 6

VV

out

12

5V to

51

VIm

ax 5

00m

AD

ropo

ut (

typi

cal)

50m

V

150m

A 1

60m

V

500

mA

Acc

urac

y 2

in

itia

lT

herm

al s

hutd

own

and

curr

ent l

imit

Max

imum

out

put v

olta

ge is

lim

ited

by

the

inpu

t vol

tage

and

the

drop

out v

olta

ge in

the

regu

lato

r(V

max

= V

in -

dro

pout

)

J100

-

Cut

-str

ap u

sed

for

full

sep

arat

ion

of ta

rget

pow

er f

rom

the

leve

l shi

fter

s an

don

-boa

rd r

egul

ator

s-

For

cur

rent

mea

sure

men

ts u

sing

the

on-b

oard

pow

er s

uppl

y th

isst

rap

mus

t be

cut a

nd a

nam

met

er c

onne

cted

acr

oss

- F

or c

urre

nt m

easu

rem

ents

usi

ng a

n ex

tern

al p

ower

sup

ply

this

str

ap c

ould

be

cut f

or m

ore

accu

rate

mea

sure

men

ts L

eaka

ge b

ack

thro

ugh

the

swit

ch is

in th

e m

icro

am

pere

ran

ge

PT

C R

eset

tabl

e fu

se

Hol

d cu

rren

t 5

00m

AT

rip

curr

ent

100

0mA

Adj

usta

ble

outp

ut a

nd li

mit

atio

ns

- T

he D

EB

UG

GE

R c

an a

djus

t the

out

put v

olta

ge o

f th

e re

gula

tor

betw

een

125

V a

nd 5

1V

to th

e ta

rget

-

The

vol

tage

out

put i

s li

mit

ed b

y th

e in

put (

US

B)

whi

ch c

an v

ary

betw

een

440

V to

52

5V-

The

leve

l shi

fter

s ha

ve a

min

imal

vol

tage

leve

l of

165

V a

nd w

ill l

imit

the

min

imum

ope

ratin

g vo

ltage

all

owed

for

the

targ

et to

sti

ll a

llow

com

mun

icat

ion

- T

he M

IC94

163

has

a m

inim

al v

olat

ege

leve

l of

170

V a

nd w

ill l

imit

the

min

imum

vol

tage

del

iver

ed to

the

targ

et

- F

irm

war

e co

nfig

urat

ion

wil

l lim

it th

e vo

ltage

ran

ge to

be

wit

hin

the

the

targ

et s

peci

fica

tion

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 35

82 Assembly DrawingFigure 8-2 AVR128DB48 Curiosity Nano Assembly Drawing Top

+

Cb

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20001 PAC20002 COC200

PAC20101 PAC20102 COC201

PAC20201 PAC20202 COC202 PAC20301

PAC20302 COC203

PAC20401

PAC20402 COC204

PAC20502

PAC20501 COC205

PAC20601

PAC20602 COC206 PAC20701

PAC20702 COC207 PAD10002 PAD10001 COD100

PAD20002

PAD20001 COD200

PAF10002

PAF10001 COF100

PAJ10002 PAJ10001 COJ100

PAJ10101 PAJ10102 COJ101

PAJ10201

PAJ10202

PAJ10203

PAJ10204

PAJ10205

PAJ10206 COJ102

PAJ10506

PAJ10507 PAJ10509

PAJ10508 PAJ105010

PAJ105011 PAJ10505

PAJ10504

PAJ10503

PAJ10502

PAJ10501

PAJ10500

COJ105

PAJ200056 PAJ200053

PAJ200028 PAJ20002 PAJ20001

PAJ200051 PAJ200050 PAJ200052 PAJ200049 PAJ200048 PAJ200047 PAJ200046 PAJ200045 PAJ200044 PAJ200043 PAJ200042 PAJ200041 PAJ200040 PAJ200039 PAJ200038 PAJ200037 PAJ200036 PAJ200035 PAJ200034 PAJ200033 PAJ200032 PAJ200031 PAJ200030 PAJ200029

PAJ20003 PAJ20004 PAJ20005 PAJ20006 PAJ20007 PAJ20008 PAJ20009 PAJ200010 PAJ200011 PAJ200012 PAJ200013 PAJ200014 PAJ200015 PAJ200016 PAJ200017 PAJ200018 PAJ200019 PAJ200020 PAJ200021 PAJ200022 PAJ200023 PAJ200026 PAJ200025 PAJ200024 PAJ200027

PAJ200054 PAJ200055 PAJ20000

COJ200

PAJ20102 PAJ20101 COJ201

PAJ20202 PAJ20201 COJ202

PAJ20302 PAJ20301 COJ203

PAJ20402 PAJ20401 COJ204

PAJ20502 PAJ20501 COJ205

PAJ20602 PAJ20601 COJ206 PAJ20702 PAJ20701 COJ207

PAJ20802 PAJ20801 COJ208

PAJ20902 PAJ20901 COJ209

PAJ21001 PAJ21002 PAJ21005 COJ210

PAJ21102 PAJ21101 PAJ21105 COJ211

PAJ21202 PAJ21201 COJ212

PAJ21301 PAJ21302 PAJ21305 COJ213

PAJ21401 PAJ21402 PAJ21405 COJ214

PAJ21502 PAJ21501 COJ215

PAJ21602 PAJ21601 COJ216 PAJ21702 PAJ21701 COJ217

COLABEL1

PAQ10101 PAQ10102 PAQ10103 PAQ10100

COQ101 PAR10002

PAR10001 COR100 PAR10101 PAR10102 COR101

PAR10202 PAR10201 COR102

PAR10302 PAR10301 COR103

PAR10401 PAR10402 COR104

PAR10502

PAR10501 COR105

PAR10601 PAR10602 COR106

PAR10702 PAR10701 COR107

PAR10801

PAR10802 COR108

PAR10901 PAR10902 COR109

PAR11001 PAR11002 COR110

PAR11101 PAR11102 COR111

PAR11201 PAR11202 COR112

PAR11302 PAR11301 COR113

PAR20001 PAR20002 COR200 PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203 PAR20401 PAR20402 COR204

PASW20003

PASW20004 PASW20002

PASW20001 COSW200

PATP10001 COTP100

PATP10101 COTP101 PAU100033

PAU100032 PAU100031 PAU100030 PAU100029 PAU100028 PAU100027 PAU100026 PAU100025 PAU100024

PAU100023

PAU100022

PAU100021

PAU100020

PAU100019

PAU100018

PAU100017 PAU100016 PAU100015 PAU100014 PAU100013 PAU100012 PAU100011 PAU100010

PAU10001

PAU10002

PAU10003

PAU10004

PAU10005

PAU10006

PAU10007

PAU10008 PAU10009

COU100

PAU10107

PAU10104 PAU10105 PAU10106

PAU10103 PAU10102 PAU10101 PAU10100 COU101 PAU10207

PAU10204 PAU10205

PAU10206

PAU10203 PAU10202

PAU10201

COU102

PAU10306

PAU10305 PAU10304 PAU10303

PAU10302 PAU10301 PAU10300

COU103

PAU10406

PAU10405 PAU10404 PAU10403

PAU10402 PAU10401 PAU10400

COU104

PAU10506

PAU10505 PAU10504 PAU10503

PAU10502 PAU10501 PAU10500

COU105

PAU10606

PAU10605 PAU10604 PAU10603

PAU10602 PAU10601 PAU10600

COU106

PAU10706

PAU10705 PAU10704 PAU10703

PAU10702 PAU10701 PAU10700

COU107

PAU1080A1 PAU1080A2

PAU1080B1 PAU1080B2

PAU1080C1 PAU1080C2 COU108

PAU20001 PAU20002 PAU20003 PAU20004 PAU20005 PAU20006 PAU20007 PAU20008 PAU20009 PAU200010 PAU200011 PAU200012 PAU200013 PAU200014 PAU200015 PAU200016 PAU200017 PAU200018 PAU200019 PAU200020 PAU200021 PAU200022 PAU200023 PAU200024 PAU200025 PAU200026 PAU200027 PAU200028 PAU200029 PAU200030 PAU200031 PAU200032 PAU200033 PAU200034 PAU200035 PAU200036

PAU200037 PAU200038 PAU200039 PAU200040 PAU200041 PAU200042 PAU200043 PAU200044 PAU200045 PAU200046 PAU200047 PAU200048

COU200

PAXC20001

PAXC20002 COXC200

PAXC20101 PAXC20102

PAXC20103 PAXC20104 COXC201

Figure 8-3 AVR128DB48 Curiosity Nano Assembly Drawing Bottom

tcR

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20001 PAC20002 COC200

PAC20101 PAC20102 COC201

PAC20201 PAC20202 COC202 PAC20301

PAC20302 COC203

PAC20401

PAC20402 COC204

PAC20502

PAC20501 COC205

PAC20601

PAC20602 COC206 PAC20701

PAC20702 COC207 PAD10002 PAD10001 COD100

PAD20002

PAD20001 COD200

PAF10002

PAF10001 COF100

PAJ10002 PAJ10001 COJ100

PAJ10101 PAJ10102 COJ101

PAJ10201

PAJ10202

PAJ10203

PAJ10204

PAJ10205

PAJ10206 COJ102

PAJ10506

PAJ10507 PAJ10509

PAJ10508 PAJ105010

PAJ105011 PAJ10505

PAJ10504

PAJ10503

PAJ10502

PAJ10501

PAJ10500

COJ105

PAJ200056 PAJ200053

PAJ200028 PAJ20002 PAJ20001

PAJ200051 PAJ200050 PAJ200052 PAJ200049 PAJ200048 PAJ200047 PAJ200046 PAJ200045 PAJ200044 PAJ200043 PAJ200042 PAJ200041 PAJ200040 PAJ200039 PAJ200038 PAJ200037 PAJ200036 PAJ200035 PAJ200034 PAJ200033 PAJ200032 PAJ200031 PAJ200030 PAJ200029

PAJ20003 PAJ20004 PAJ20005 PAJ20006 PAJ20007 PAJ20008 PAJ20009 PAJ200010 PAJ200011 PAJ200012 PAJ200013 PAJ200014 PAJ200015 PAJ200016 PAJ200017 PAJ200018 PAJ200019 PAJ200020 PAJ200021 PAJ200022 PAJ200023 PAJ200026 PAJ200025 PAJ200024 PAJ200027

PAJ200054 PAJ200055 PAJ20000

COJ200

PAJ20102 PAJ20101 COJ201

PAJ20202 PAJ20201 COJ202

PAJ20302 PAJ20301 COJ203

PAJ20402 PAJ20401 COJ204

PAJ20502 PAJ20501 COJ205

PAJ20602 PAJ20601 COJ206 PAJ20702 PAJ20701 COJ207

PAJ20802 PAJ20801 COJ208

PAJ20902 PAJ20901 COJ209

PAJ21001 PAJ21002 PAJ21005 COJ210

PAJ21102 PAJ21101 PAJ21105 COJ211

PAJ21202 PAJ21201 COJ212

PAJ21301 PAJ21302 PAJ21305 COJ213

PAJ21401 PAJ21402 PAJ21405 COJ214

PAJ21502 PAJ21501 COJ215

PAJ21602 PAJ21601 COJ216 PAJ21702 PAJ21701 COJ217

COLABEL1

PAQ10101 PAQ10102 PAQ10103 PAQ10100

COQ101 PAR10002

PAR10001 COR100 PAR10101 PAR10102 COR101

PAR10202 PAR10201 COR102

PAR10302 PAR10301 COR103

PAR10401 PAR10402 COR104

PAR10502

PAR10501 COR105

PAR10601 PAR10602 COR106

PAR10702 PAR10701 COR107

PAR10801

PAR10802 COR108

PAR10901 PAR10902 COR109

PAR11001 PAR11002 COR110

PAR11101 PAR11102 COR111

PAR11201 PAR11202 COR112

PAR11302 PAR11301 COR113

PAR20001 PAR20002 COR200 PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203 PAR20401 PAR20402 COR204

PASW20003

PASW20004 PASW20002

PASW20001 COSW200

PATP10001 COTP100

PATP10101 COTP101 PAU100033

PAU100032 PAU100031 PAU100030 PAU100029 PAU100028 PAU100027 PAU100026 PAU100025 PAU100024

PAU100023

PAU100022

PAU100021

PAU100020

PAU100019

PAU100018

PAU100017 PAU100016 PAU100015 PAU100014 PAU100013 PAU100012 PAU100011 PAU100010

PAU10001

PAU10002

PAU10003

PAU10004

PAU10005

PAU10006

PAU10007

PAU10008 PAU10009

COU100

PAU10107

PAU10104 PAU10105 PAU10106

PAU10103 PAU10102 PAU10101 PAU10100 COU101 PAU10207

PAU10204 PAU10205

PAU10206

PAU10203 PAU10202

PAU10201

COU102

PAU10306

PAU10305 PAU10304 PAU10303

PAU10302 PAU10301 PAU10300

COU103

PAU10406

PAU10405 PAU10404 PAU10403

PAU10402 PAU10401 PAU10400

COU104

PAU10506

PAU10505 PAU10504 PAU10503

PAU10502 PAU10501 PAU10500

COU105

PAU10606

PAU10605 PAU10604 PAU10603

PAU10602 PAU10601 PAU10600

COU106

PAU10706

PAU10705 PAU10704 PAU10703

PAU10702 PAU10701 PAU10700

COU107

PAU1080A1 PAU1080A2

PAU1080B1 PAU1080B2

PAU1080C1 PAU1080C2 COU108

PAU20001 PAU20002 PAU20003 PAU20004 PAU20005 PAU20006 PAU20007 PAU20008 PAU20009 PAU200010 PAU200011 PAU200012 PAU200013 PAU200014 PAU200015 PAU200016 PAU200017 PAU200018 PAU200019 PAU200020 PAU200021 PAU200022 PAU200023 PAU200024 PAU200025 PAU200026 PAU200027 PAU200028 PAU200029 PAU200030 PAU200031 PAU200032 PAU200033 PAU200034 PAU200035 PAU200036

PAU200037 PAU200038 PAU200039 PAU200040 PAU200041 PAU200042 PAU200043 PAU200044 PAU200045 PAU200046 PAU200047 PAU200048

COU200

PAXC20001

PAXC20002 COXC200

PAXC20101 PAXC20102

PAXC20103 PAXC20104 COXC201

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 36

83 Curiosity Nano Base for Click boardstrade

Figure 8-4 AVR128DB48 Curiosity Nano Pinout Mapping

US

B

DE

BU

GG

ER

AV

R1

28

DB

48

SW

0

LE

D0

PS

LE

DNC

NC

ID

ID

CDC RX

CDCRX

USART3 TX

PB0

CDC TX

CDCTX

USART3 RX

PB1

DBG1

DBG1

PB3

LED0

DBG2

DBG2

PB2

SW0

PF4

PF4

USART2 TX

PF5

PF5

USART2 RX

PA2

PA2

TWI0 SDA

PA3

PA3

TWI0 SCL

PA4

PA4

SPI0 MOSI

PA5

PA5

SPI0 MISO

PA6

PA6

SPI0 SCK

PA7

PA7

SPI0 SS

GND

GND

PB0

PB0

USART3 TX

CDC RX

PB1

PB1

USART3 RX

CDC TX

PF2

PF2

PF3

PF3

PC0

PC0

PC1

PC1

PC2

PC2

PC3

PC3

GND

GND

(PA0)

(PA0)

XTALHF1

(PA1)

(PA1)

XTALHF2

PB2

PB2

SW0

PB3

PB3

LED0

VBUS

VBUS

VOFF

VOFF

DBG3

DBG3

PF6

DBG0

DBG0

UPDI

GND

GND

VTG

VTG

PD6

PD6

AIN6

PD3

PD3

AIN3

OP0 INN

PD2

PD2

AIN2

OP0 OUT

TCA0 WO2

PD1

PD1

AIN1

OP0 INP

TCA0 WO1

PD0

PD0

AIN0

TCA0 WO0

PD7

PD7

AIN7

OP1 INN

PD5

PD5

AIN5

OP1 OUT

PD4

PD4

AIN4

OP1 INP

GND

GND

PE3

PE3

OP2 INN

PE2

PE2

OP2 OUT

PE1

PE1

OP2 INP

PE0

PE0

PC7

PC7

PC6

PC6

PC5

PC5

PC4

PC4

GND

GND

PB5

PB5

PB4

PB4

(PF1)

(PF1)

XTAL32K2

(PF0)

(PF0)

XTAL32K1

DE

BU

GG

ER

AV

R1

28

DB

48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

MVIO

OPAMP

Shared pin

AV

R1

28

DB

48

Cu

rio

sity

Na

no

1

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

2

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

3

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

Xp

lain

ed

Pro

Ext

en

sio

nE

XT

11

2

19

20

Cu

rio

sity

Na

no

Ba

sefo

r cl

ick

bo

ard

sT

M

PD4

PD0

PD6

PD3

PA7

PF5

PA6

PF4

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

PD5

PD1

PF3

PF2

PE2

PB1

PA6

PB0

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

PD7

PD2

PE1

PE0

PE3

PF5

PA6

PF4

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

ID

GND

PD5

PD7

PF3

PE1

PD1

PD2

PF2

PE3

PA2

PA3

PB1

PB0

PE2

PA4

PA5

PA6

GND

+33V

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 37

84 Disconnecting the On-board DebuggerThe on-board debugger and level shifters can be completely disconnected from the AVR128DB48

The block diagram below shows all connections between the debugger and the AVR128DB48 The rounded boxesrepresent connections to the board edge The signal names shown are also printed in silkscreen on the bottom sideof the board

To disconnect the debugger cut the straps shown in Figure 8-6

Attention  Cutting the GPIO straps to the on-board debugger will disable the virtual serial portprogramming debugging and data streaming Cutting the power supply strap will disconnect the on-boardpower supply

Tip  Any connection that is cut can be reconnected using solder Alternatively a 0Ω 0402 resistor can bemounted

Tip  When the debugger is disconnected an external debugger can be connected to holes shown in Figure 8-6 Details about connecting an external debugger are described in 46 Connecting ExternalDebuggers

Figure 8-5  On-Board Debugger Connections Block Diagram

DE

BU

GG

ER

TARGETLevel-Shift

PA04PA06PA07PA08PA16PA00PA01

USB

DIR x 5

VCC_P3V3

VBUS

VC

C_L

EV

EL

VC

C_T

AR

GE

TDBG0DBG1DBG2DBG3CDC TXCDC RX

CDC RX

CDC TX

DBG3

DBG2

DBG1

DBG0

GPIO straps

LDO

VOFF

LDO

VBUS VTG

VCC_EDGE

Power Supply strap Target Power strap

UART RXUART TX

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 38

Figure 8-6 On-Board Debugger Connection Cut Straps

GPIO straps (bottom side) Power Supply strap (top side)

85 Getting Started with IARIAR Embedded Workbenchreg for AVRreg is a proprietary high-efficiency compiler not based on GCC Programming anddebugging of AVR128DB48 Curiosity Nano is supported in IARtrade Embedded Workbench for AVR using the Atmel-ICEinterface Some initial settings must be set up in the project to get the programming and debugging to work

The following steps will explain how to get your project ready for programming and debugging

1 Make sure you have opened the project you want to configure Open the OPTIONS dialog for the project2 In the category General Options select the Target tab Select the device for the project or if not listed the

core of the device as shown in Figure 8-73 In the category Debugger select the Setup tab Select Atmel-ICE as the driver as shown in Figure 8-84 In the category Debugger gt Atmel-ICE select the Atmel-ICE 1 tab Select UPDI as the interface and

optionally select the UPDI frequency as shown in Figure 8-9

Info  If the selection of Debug Port (mentioned in step 4) is grayed out the interface is preselected andthe user can skip this configuration step

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 39

Figure 8-7 Select Target Device

Figure 8-8 Select Debugger

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 40

Figure 8-9 Configure Interface

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 41

The Microchip Website

Microchip provides online support via our website at wwwmicrochipcom This website is used to make files andinformation easily available to customers Some of the content available includes

bull Product Support ndash Data sheets and errata application notes and sample programs design resources userrsquosguides and hardware support documents latest software releases and archived software

bull General Technical Support ndash Frequently Asked Questions (FAQs) technical support requests onlinediscussion groups Microchip design partner program member listing

bull Business of Microchip ndash Product selector and ordering guides latest Microchip press releases listing ofseminars and events listings of Microchip sales offices distributors and factory representatives

Product Change Notification Service

Microchiprsquos product change notification service helps keep customers current on Microchip products Subscribers willreceive email notification whenever there are changes updates revisions or errata related to a specified productfamily or development tool of interest

To register go to wwwmicrochipcompcn and follow the registration instructions

Customer Support

Users of Microchip products can receive assistance through several channels

bull Distributor or Representativebull Local Sales Officebull Embedded Solutions Engineer (ESE)bull Technical Support

Customers should contact their distributor representative or ESE for support Local sales offices are also available tohelp customers A listing of sales offices and locations is included in this document

Technical support is available through the website at wwwmicrochipcomsupport

Microchip Devices Code Protection Feature

Note the following details of the code protection feature on Microchip devices

bull Microchip products meet the specifications contained in their particular Microchip Data Sheetbull Microchip believes that its family of products is secure when used in the intended manner and under normal

conditionsbull There are dishonest and possibly illegal methods being used in attempts to breach the code protection features

of the Microchip devices We believe that these methods require using the Microchip products in a manneroutside the operating specifications contained in Microchiprsquos Data Sheets Attempts to breach these codeprotection features most likely cannot be accomplished without violating Microchiprsquos intellectual property rights

bull Microchip is willing to work with any customer who is concerned about the integrity of its codebull Neither Microchip nor any other semiconductor manufacturer can guarantee the security of its code Code

protection does not mean that we are guaranteeing the product is ldquounbreakablerdquo Code protection is constantlyevolving We at Microchip are committed to continuously improving the code protection features of our productsAttempts to break Microchiprsquos code protection feature may be a violation of the Digital Millennium Copyright ActIf such acts allow unauthorized access to your software or other copyrighted work you may have a right to suefor relief under that Act

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 42

Legal Notice

Information contained in this publication is provided for the sole purpose of designing with and using Microchipproducts Information regarding device applications and the like is provided only for your convenience and may besuperseded by updates It is your responsibility to ensure that your application meets with your specifications

THIS INFORMATION IS PROVIDED BY MICROCHIP ldquoAS ISrdquo MICROCHIP MAKES NO REPRESENTATIONS ORWARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED WRITTEN OR ORAL STATUTORY OROTHERWISE RELATED TO THE INFORMATION INCLUDING BUT NOT LIMITED TO ANY IMPLIEDWARRANTIES OF NON-INFRINGEMENT MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSEOR WARRANTIES RELATED TO ITS CONDITION QUALITY OR PERFORMANCE

IN NO EVENT WILL MICROCHIP BE LIABLE FOR ANY INDIRECT SPECIAL PUNITIVE INCIDENTAL ORCONSEQUENTIAL LOSS DAMAGE COST OR EXPENSE OF ANY KIND WHATSOEVER RELATED TO THEINFORMATION OR ITS USE HOWEVER CAUSED EVEN IF MICROCHIP HAS BEEN ADVISED OF THEPOSSIBILITY OR THE DAMAGES ARE FORESEEABLE TO THE FULLEST EXTENT ALLOWED BY LAWMICROCHIPS TOTAL LIABILITY ON ALL CLAIMS IN ANY WAY RELATED TO THE INFORMATION OR ITS USEWILL NOT EXCEED THE AMOUNT OF FEES IF ANY THAT YOU HAVE PAID DIRECTLY TO MICROCHIP FORTHE INFORMATION Use of Microchip devices in life support andor safety applications is entirely at the buyerrsquos riskand the buyer agrees to defend indemnify and hold harmless Microchip from any and all damages claims suits orexpenses resulting from such use No licenses are conveyed implicitly or otherwise under any Microchip intellectualproperty rights unless otherwise stated

Trademarks

The Microchip name and logo the Microchip logo Adaptec AnyRate AVR AVR logo AVR Freaks BesTimeBitCloud chipKIT chipKIT logo CryptoMemory CryptoRF dsPIC FlashFlex flexPWR HELDO IGLOO JukeBloxKeeLoq Kleer LANCheck LinkMD maXStylus maXTouch MediaLB megaAVR Microsemi Microsemi logo MOSTMOST logo MPLAB OptoLyzer PackeTime PIC picoPower PICSTART PIC32 logo PolarFire Prochip DesignerQTouch SAM-BA SenGenuity SpyNIC SST SST Logo SuperFlash Symmetricom SyncServer TachyonTempTrackr TimeSource tinyAVR UNIO Vectron and XMEGA are registered trademarks of Microchip TechnologyIncorporated in the USA and other countries

APT ClockWorks The Embedded Control Solutions Company EtherSynch FlashTec Hyper Speed ControlHyperLight Load IntelliMOS Libero motorBench mTouch Powermite 3 Precision Edge ProASIC ProASIC PlusProASIC Plus logo Quiet-Wire SmartFusion SyncWorld Temux TimeCesium TimeHub TimePictra TimeProviderVite WinPath and ZL are registered trademarks of Microchip Technology Incorporated in the USA

Adjacent Key Suppression AKS Analog-for-the-Digital Age Any Capacitor AnyIn AnyOut BlueSky BodyComCodeGuard CryptoAuthentication CryptoAutomotive CryptoCompanion CryptoController dsPICDEMdsPICDEMnet Dynamic Average Matching DAM ECAN EtherGREEN In-Circuit Serial Programming ICSPINICnet Inter-Chip Connectivity JitterBlocker KleerNet KleerNet logo memBrain Mindi MiWi MPASM MPFMPLAB Certified logo MPLIB MPLINK MultiTRAK NetDetach Omniscient Code Generation PICDEMPICDEMnet PICkit PICtail PowerSmart PureSilicon QMatrix REAL ICE Ripple Blocker SAM-ICE Serial QuadIO SMART-IS SQI SuperSwitcher SuperSwitcher II Total Endurance TSHARC USBCheck VariSenseViewSpan WiperLock Wireless DNA and ZENA are trademarks of Microchip Technology Incorporated in the USAand other countries

SQTP is a service mark of Microchip Technology Incorporated in the USA

The Adaptec logo Frequency on Demand Silicon Storage Technology and Symmcom are registered trademarks ofMicrochip Technology Inc in other countries

GestIC is a registered trademark of Microchip Technology Germany II GmbH amp Co KG a subsidiary of MicrochipTechnology Inc in other countries

All other trademarks mentioned herein are property of their respective companiescopy 2020 Microchip Technology Incorporated Printed in the USA All Rights Reserved

ISBN 978-1-5224-6667-3

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 43

Quality Management SystemFor information regarding Microchiprsquos Quality Management Systems please visit wwwmicrochipcomquality

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 44

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupportwwwmicrochipcomsupportWeb AddresswwwmicrochipcomAtlantaDuluth GATel 678-957-9614Fax 678-957-1455Austin TXTel 512-257-3370BostonWestborough MATel 774-760-0087Fax 774-760-0088ChicagoItasca ILTel 630-285-0071Fax 630-285-0075DallasAddison TXTel 972-818-7423Fax 972-818-2924DetroitNovi MITel 248-848-4000Houston TXTel 281-894-5983IndianapolisNoblesville INTel 317-773-8323Fax 317-773-5453Tel 317-536-2380Los AngelesMission Viejo CATel 949-462-9523Fax 949-462-9608Tel 951-273-7800Raleigh NCTel 919-844-7510New York NYTel 631-435-6000San Jose CATel 408-735-9110Tel 408-436-4270Canada - TorontoTel 905-695-1980Fax 905-695-2078

Australia - SydneyTel 61-2-9868-6733China - BeijingTel 86-10-8569-7000China - ChengduTel 86-28-8665-5511China - ChongqingTel 86-23-8980-9588China - DongguanTel 86-769-8702-9880China - GuangzhouTel 86-20-8755-8029China - HangzhouTel 86-571-8792-8115China - Hong Kong SARTel 852-2943-5100China - NanjingTel 86-25-8473-2460China - QingdaoTel 86-532-8502-7355China - ShanghaiTel 86-21-3326-8000China - ShenyangTel 86-24-2334-2829China - ShenzhenTel 86-755-8864-2200China - SuzhouTel 86-186-6233-1526China - WuhanTel 86-27-5980-5300China - XianTel 86-29-8833-7252China - XiamenTel 86-592-2388138China - ZhuhaiTel 86-756-3210040

India - BangaloreTel 91-80-3090-4444India - New DelhiTel 91-11-4160-8631India - PuneTel 91-20-4121-0141Japan - OsakaTel 81-6-6152-7160Japan - TokyoTel 81-3-6880- 3770Korea - DaeguTel 82-53-744-4301Korea - SeoulTel 82-2-554-7200Malaysia - Kuala LumpurTel 60-3-7651-7906Malaysia - PenangTel 60-4-227-8870Philippines - ManilaTel 63-2-634-9065SingaporeTel 65-6334-8870Taiwan - Hsin ChuTel 886-3-577-8366Taiwan - KaohsiungTel 886-7-213-7830Taiwan - TaipeiTel 886-2-2508-8600Thailand - BangkokTel 66-2-694-1351Vietnam - Ho Chi MinhTel 84-28-5448-2100

Austria - WelsTel 43-7242-2244-39Fax 43-7242-2244-393Denmark - CopenhagenTel 45-4485-5910Fax 45-4485-2829Finland - EspooTel 358-9-4520-820France - ParisTel 33-1-69-53-63-20Fax 33-1-69-30-90-79Germany - GarchingTel 49-8931-9700Germany - HaanTel 49-2129-3766400Germany - HeilbronnTel 49-7131-72400Germany - KarlsruheTel 49-721-625370Germany - MunichTel 49-89-627-144-0Fax 49-89-627-144-44Germany - RosenheimTel 49-8031-354-560Israel - RarsquoananaTel 972-9-744-7705Italy - MilanTel 39-0331-742611Fax 39-0331-466781Italy - PadovaTel 39-049-7625286Netherlands - DrunenTel 31-416-690399Fax 31-416-690340Norway - TrondheimTel 47-72884388Poland - WarsawTel 48-22-3325737Romania - BucharestTel 40-21-407-87-50Spain - MadridTel 34-91-708-08-90Fax 34-91-708-08-91Sweden - GothenbergTel 46-31-704-60-40Sweden - StockholmTel 46-8-5090-4654UK - WokinghamTel 44-118-921-5800Fax 44-118-921-5820

Worldwide Sales and Service

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 45

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Board Overview
      • 2 Getting Started
        • 21 Quick Start
          • 211 Driver Installation
          • 212 Kit Window
          • 213 MPLABreg X IDE Device Family Packs
          • 214 Atmel Studio 7 Device Family Pack
            • 22 Design Documentation and Relevant Links
              • 3 Preprogrammed Application
              • 4 Curiosity Nano
                • 41 On-Board Debugger Overview
                  • 411 Debugger
                  • 412 Virtual Serial Port (CDC)
                    • 4121 Overview
                    • 4122 Operating System Support
                    • 4123 Limitations
                    • 4124 Signaling
                    • 4125 Advanced Use
                      • 413 Mass Storage Device
                        • 4131 Mass Storage Device Implementation
                        • 4132 Limitations of Drag-and-Drop Programming
                        • 4133 Special Commands
                          • 414 Data Gateway Interface (DGI)
                            • 4141 Debug GPIO
                            • 4142 Timestamping
                                • 42 Curiosity Nano Standard Pinout
                                • 43 Power Supply
                                  • 431 Target Regulator
                                  • 432 External Supply
                                  • 433 VBUS Output Pin
                                  • 434 Power Supply Exceptions
                                    • 44 Low-Power Measurement
                                    • 45 Programming External Microcontrollers
                                      • 451 Supported Devices
                                      • 452 Software Configuration
                                      • 453 Hardware Modifications
                                      • 454 Connecting to External Microcontrollers
                                        • 46 Connecting External Debuggers
                                          • 5 Hardware User Guide
                                            • 51 Connectors
                                              • 511 AVR128DB48 Curiosity Nano Pinout
                                              • 512 Using Pin Headers
                                              • 513 Multi-Voltage IO
                                              • 514 Operational Amplifiers
                                                • 52 Peripherals
                                                  • 521 LED
                                                  • 522 Mechanical Switch
                                                  • 523 32768 kHz Crystal
                                                  • 524 1600 MHz Crystal
                                                  • 525 On-Board Debugger Implementation
                                                    • 5251 On-Board Debugger Connections
                                                      • 6 Hardware Revision History and Known Issues
                                                        • 61 Identifying Product ID and Revision
                                                        • 62 Revision 3
                                                        • 63 Revision 2
                                                          • 7 Document Revision History
                                                          • 8 Appendix
                                                            • 81 Schematic
                                                            • 82 Assembly Drawing
                                                            • 83 Curiosity Nano Base for Click boardstrade
                                                            • 84 Disconnecting the On-board Debugger
                                                            • 85 Getting Started with IAR
                                                              • The Microchip Website
                                                              • Product Change Notification Service
                                                              • Customer Support
                                                              • Microchip Devices Code Protection Feature
                                                              • Legal Notice
                                                              • Trademarks
                                                              • Quality Management System
                                                              • Worldwide Sales and Service
Page 27: AVR128DB48 Curiosity Nano Hardware User Guideww1.microchip.com/downloads/en/DeviceDoc/AVR128DB48-Curiosit… · 4. Curiosity Nano Curiosity Nano is an evaluation platform of small

Figure 5-2 Attaching Pin-Headers to the Curiostiy Nano Board

Figure 5-3 Connecting to Curiosity Nano Base for Click boardstrade

Tip  Start at one end of the pin header and gradually insert the header along the length of the boardOnce all the pins are in place use a flat surface to push them in

Tip  For applications where the pin headers will be used permanently it is still recommended to solderthem in place

Important  Once the pin headers are in place they are hard to remove by hand Use a set of pliers andcarefully remove the pin headers to avoid damage to the pin headers and PCB

513 Multi-Voltage IO

The AVR128DB48 Curiosity Nano MCU has support for Multi-Voltage IO (MVIO) AVR128DB48 MVIO pins areconnected to the edge connector at PC0-PC7 MVIO pins are capable of regular IO-pin behavior

MVIO can be configured in one of two supply modesbull Single-Supply mode All IO pins including MVIO-capable pins are powered by VCC_TARGET By default

VCC_TARGET is connected to VDDIO2 through a 0-ohm resistor (R204)bull Dual-Supply mode MVIO-capable pins are powered by an external power supply connected to VDDIO2 Non-

MVIO pins are powered by VCC_TARGET

Dual-Supply mode allows MVIO-pins to be powered at different voltages than pins powered from VCC_TARGET

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 27

WARNINGThe absolute maximum external voltage range for the AVR128DB48 is 18ndash55V Applying a higher voltagemay cause permanent damage to the board

By default AVR128DB48 Curiosity Nano board is configured for single-supply mode To use Dual-Supply mode somehardware modifications are required

WARNINGBefore any hardware modifications are done make sure the board is disconnected from USB or externalpower

bull Disconnect resistor R204 connecting VDDIO2 to VCC_TARGETbull Connect a new power supply to VDDIO2 and ground at J212bull J212 does not have reverse polarity protection Make sure to match polarity between the power supply and

J212 Positive-polarity to J212-pin 1 and negative-polarity to J212-pin 2

The resistor R204 VDDIO2 and J212 can be seen in Figure 5-4

Figure 5-4 MVIO and VDDIO2 Connections

J212 R204

WARNINGApplying an external voltage to VDDIO2 pin without removing resistor R204 may cause permanentdamage to the board

WARNINGJ212 does not have reverse polarity protection Applying voltage to the wrong pin may cause permanentdamage to the board

514 Operational AmplifiersAVR128DB48 features three internal operational amplifiers with a flexible connection scheme using analogmultiplexers and resistor ladders This allows a large number of analog signal conditioning configurations manyrequiring no external components

Table 5-1 OPAMP Pin Connections

OPAMP Poisitive Input (INP) Negative Input (INN) Output (OUT)

OP0 PD1 PD3 PD2

OP1 PD4 PD7 PD5

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 28

continuedOPAMP Poisitive Input (INP) Negative Input (INN) Output (OUT)

OP2 PE1 PE3 PE2

For information about OPAMP on the edge connector and any shared functionality see 511 AVR128DB48 CuriosityNano Pinout

52 Peripherals

521 LEDThere is one yellow user LED available on the AVR128DB48 Curiosity Nano board that can be controlled by eitherGPIO or PWM The LED can be activated by driving the connected IO line to GND

Table 5-2 LED Connection

AVR128DB48 Pin Function Shared Functionality

PB3 Yellow LED0 Edge connector On-board debugger

522 Mechanical SwitchThe AVR128DB48 Curiosity Nano board has one mechanical switch This is a generic user-configurable switchWhen the switch is pressed it will drive the IO line to ground (GND)

Tip  There is no externally connected pull-up resistor on the switch To use the switch make sure that aninternal pull-up resistor is enabled on pin PB2

Table 5-3 Mechanical Switch

AVR128DB48 Pin Description Shared Functionality

PB2 User switch (SW0) Edge connector On-board debugger

523 32768 kHz Crystal

On the AVR128DB48 Curiosity Nano board is a mounted 32768 kHz crystal of type VMK3-9001-32K7680000 thecrystal is accurate to within 20 ppm Using the External 32768 kHz Crystal Oscillator (XOSC32K) module inAVR128DB48 with the mounted 32768 kHz crystal generates a clock signal that is significantly more accurate thanthe Internal 32768 kHz Ultra Low-Power Oscillator (OSC32K) module can generate alone With the Auto-Tunefeature the 32768 kHz can be used as a reference to improve the accuracy of the internal oscillator This is an idealreference clock for the Real-Time Counter module in AVR128DB48

The 32768 kHz crystal is connected to AVR128DB48 on PF0 and PF1 which are also routed to the edge connectorthrough two solder points PF0 and PF1 are disconnected from the edge connector by default to reduce the chanceof an external signal causing contention with the crystal and to remove excessive capacitance on the lines

Next to the 32768 kHz crystal is a cut-strap (J209) which can be used to measure the oscillator safety factor This isdone by cutting the strap and adding a 0402 SMD resistor across the strap More information about oscillatorallowance and safety factor can be found in the AN2648 application note from Microchip

Cut straps and solder points can be seen in Figure 5-5

Table 5-4 32768 kHz Crystal Connections

AVR128DB48 Pin Function Shared Functionality

PF0 XTAL32K1 (Crystal input) Edge connector

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 29

continuedAVR128DB48 Pin Function Shared Functionality

PF1 XTAL32K2 (Crystal output) Edge connector

PA0 and PA1 can be used as GPIO To do so some hardware modifications are required

WARNINGBefore any hardware modifications are done make sure the board is disconnected from the USB orexternal power

bull Disconnect the 32768 kHz crystal by cutting the two straps on the top side of the board next to the crystal(J207 J208) The crystal should be disconnected when using the pin as GPIO as this might harm the crystal

bull Connect the IO lines to the edge connector by placing solder blobs on the circular solder points marked PF0and PF1 on the bottom side of the board (J210 J211)

Figure 5-5 Crystal Connection and Cut Straps

Top side Boom side

J211

J210

J207

J20832768 kHz Crystal

J209

524 1600 MHz Crystal

On the AVR128DB48 Curiosity Nano board is a mounted 1600 MHz crystal of type VXM7-9040-16M0000000 thecrystal is accurate to within 20 ppm Using the External High-Frequency Crystal Oscillator (XOSCHF) module inAVR128DB48 with the mounted 1600 MHz crystal generates a clock signal that is significantly more accurate thanthe Internal High-Frequency Oscillator (OSCHF) module

The 1600 MHz crystal is connected to AVR128DB48 on PA0 and PA1 which are also routed to the edge connectorthrough two solder points PA0 and PA1 are disconnected from the edge connector by default to reduce the chanceof an external signal causing contention with the crystal and to remove excessive capacitance on the lines

Next to the 1600 MHz crystal is a cut-strap (J217) which can be used to measure the oscillator safety factor This isdone by cutting the strap and adding a 0402 SMD resistor across the strap More information about oscillatorallowance and safety factor can be found in the AN2648 application note from Microchip

Cut straps and solder points can be seen in Figure 5-6

Table 5-5 Crystal Connections

AVR128DB48 Pin Function Shared Functionality

PA0 XTALHF1 (Crystal input) Edge connector

PA1 XTALHF2 (Crystal output) Edge connector

PA0 and PA1 can be used as GPIO To do so some hardware modifications are required

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 30

WARNINGBefore any hardware modifications are done make sure the board is disconnected from USB or externalpower

bull Disconnect the 1600 MHz crystal by cutting the two straps on the top side of the board next to the crystal (J215J216) The crystal should be disconnected when using the pin as GPIO as this might harm the crystal

bull Connect the IO lines to the edge connector by placing solder blobs on the circular solder points marked PA0and PA1 on the bottom side of the board (J213 J214)

Figure 5-6 Crystal Connection and Cut Straps

Top side Boom side

J214

J213

J216

J2151600 MHzCrystal

J217

525 On-Board Debugger ImplementationAVR128DB48 Curiosity Nano features an on-board debugger that can be used to program and debug theAVR128DB48 using UPDI The on-board debugger also includes a virtual serial port (CDC) interface over UART anddebug GPIO Both MPLABreg X IDE and Atmel Studio 7 can be used as a front-end for the on-board debugger forprogramming and debugging MPLAB Data Visualizer can be used as a front-end for the CDC and debug GPIO

5251 On-Board Debugger ConnectionsThe table below shows the connections between the target and the debugger section All connections between thetarget and the debugger are tri-stated as long as the debugger is not actively using the interface Hence since thereare little contaminations of the signals the pins can be configured to anything the user wants

For further information on how to use the capabilities of the on-board debugger see 41 On-Board DebuggerOverview

Table 5-6 On-Board Debugger Connections

AVR128DB48Pin

Debugger Pin Function Shared Functionality

PB1 CDC TX UART RX (AVR128DB48 RX line) Edge connector

PB0 CDC RX UART TX (AVR128DB48 TX line) Edge connector

UPDI DBG0 UPDI Edge connector

PB3 DBG1 LED0Debug GPIO1 Edge connector

PB2 DBG2 SW0Debug GPIO0 Edge connector

PF6 DBG3 RESET Edge connector

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 31

6 Hardware Revision History and Known IssuesThis user guide is written to provide information about the latest available revision of the board The followingsections contain information about known issues a revision history of older revisions and how older revisions differfrom the latest revision

61 Identifying Product ID and RevisionThe revision and product identifier of the AVR128DB48 Curiosity Nano Board can be found in two ways Either byutilizing the MPLABreg X IDE or Atmel Studio 7 Kit Window or by looking at the sticker on the bottom side of the PCB

By connecting AVR128DB48 Curiosity Nano to a computer with MPLABreg X IDE or Atmel Studio 7 running the KitWindow will pop up The first six digits of the serial number which is listed under kit information contain the productidentifier and revision

Tip  The Kit Window can be opened in MPLABreg X IDE through the menu bar Window gt Kit Window

The same information can be found on the sticker on the bottom side of the PCB Most boards will have the identifierand revision printed in plain text as A09-nnnnrr where ldquonnnnrdquo is the identifier and ldquorrrdquo is the revision Boards withlimited space have a sticker with only a data matrix code containing the product identifier revision and serialnumber

The serial number string has the following format

nnnnrrssssssssss

n = product identifier

r = revision

s = serial number

The product identifier for AVR128DB48 Curiosity Nano is A09‑3372

62 Revision 3AVR128DB48 silicon revision A5 or later is mounted on this revision of the board

63 Revision 2Revision 2 is the initially released board revision

AVR128DB48 silicon revision A4 is mounted on this revision of the board

AVR128DB48 Curiosity NanoHardware Revision History and Known Issues

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 32

7 Document Revision HistoryDoc Rev Date Comments

A 092020 Initial document release

AVR128DB48 Curiosity NanoDocument Revision History

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 33

8 Appendix

81 SchematicFigure 8-1 AVR128DB48 Curiosity Nano Schematic

11

22

33

44

55

66

77

88

DD

CC

BB

AA

2 of

4

AV

R12

8DB

48 C

uri

osit

y N

ano

240

820

20A

VR

128D

B48

_Cur

iosi

ty_N

ano_

Targ

et_M

CU

Sch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA

Rev

isio

n

File

P

CB

Num

ber

PC

B

Rev

isio

n

Des

ign

ed w

ith

Dra

wn

By

ML

Shee

t Titl

e

Targ

et M

CU

Eng

inee

rA

H

A08

-305

71

Size

A3

A09

-337

22

Page

D

ateA

ltium

com

GN

D

VD

DIO

2

100n

C20

1

GN

D

PA5_

SPI0

_MIS

OPA

6_SP

I0_S

CK

PA7_

SPI0

_SS

PB0_

USA

RT

3_T

XPB

1_U

SAR

T3_

RX

PB2_

SW0_

DB

G2

PB3_

LE

D0_

DB

G1

PB

4P

B5

PC

0P

C1

PC

2

PC3

PC4PC5PC6PC7PD0_AIN0_TCA0_WO0PD1_AIN1_OP0_INP_TCA0_WO1PD2_AIN2_OP0_OUT_TCA0_WO2PD3_AIN3_OP0_INNPD4_AIN4_OP1_INP

PA3_TWI0_SCL

PA1_XTALHF2

UPDI_DBG0

PF5_USART2_RX

PF3

PF

2PF

1_X

TA

L32

K2

PF0_

XT

AL

32K

1P

E3_

OP

2_IN

NP

E2_

OP

2_O

UT

PE

1_O

P2_

INP

PE

0

PD5_

AIN

5_O

P1_

OU

TPD

6_A

IN6

PD7_

AIN

7_O

P1_

INN

GN

D

VC

C_T

AR

GE

T

100n

C20

2

GN

DV

CC

_TA

RG

ET

100n

C20

0

PF1_XTAL32K2

PF0_XTAL32K1

PA2_TWI0_SDA

PA0_XTALHF1

PF4_USART2_TX

PA4_SPI0_MOSI

GN

D

PA7_

SPI0

_SS

PA6_

SPI0

_SC

KPA

5_SP

I0_M

ISO

PA4_

SPI0

_MO

SIPA

3_T

WI0

_SC

LPA

2_T

WI0

_SD

A

PC

0P

C1

PC

2P

C3

PB

4P

B5

PD7_

AIN

7_O

P1_

INN

PD6_

AIN

6

PD2_

AIN

2_O

P0_

OU

T_T

CA

0_W

O2

PD1_

AIN

1_O

P0_

INP_

TC

A0_

WO

1PD

0_A

IN0_

TC

A0_

WO

0

PD5_

AIN

5_O

P1_

OU

TPD

4_A

IN4_

OP

1_IN

P

PD3_

AIN

3_O

P0_

INN

32K

Hz

Cry

stal

PB0_

USA

RT

3_T

XPB

1_U

SAR

T3_

RX

1kR203

US

ER

LE

D

VC

C_T

AR

GE

T

PF6_DBG3

PB2_SW0_DBG2

PB3_LED0_DBG1

GN

D

USE

R B

UT

TO

N

PB3_

LE

D0_

DB

G1

PB2_

SW0_

DB

G2

PB1_

USA

RT

3_R

XPB

0_U

SAR

T3_

TX

PF4_

USA

RT

2_T

XPF

5_U

SAR

T2_

RX

PF

2P

F3

PC

4P

C5

PC

6P

C7

1kR202

YELLOWLEDSML-D12Y1WT86

2 1

D200

TS604VM1-035CR13

4 2

SW20

0

GN

DV

CC

_ED

GE

GN

DG

ND

GN

DG

ND

UPD

I_D

BG

0P

F6_

DB

G3

J209

PB3_

LE

D0_

DB

G1

PB2_

SW0_

DB

G2

AV

R12

8DB

48

22u

FC

205

VC

C_E

DG

E

GN

D

DBG0

CDC_TXCDC_RX

DBG2

DBG1

DBG3

DBG2

DE

BU

GG

ER

CO

NN

EC

TIO

NS

DBG1

DBG3DBG0

VOFF

ID_SYS

ID_SYS

VOFF

TA

RG

ET

BU

LK

VC

C_T

AR

GE

TR

ESE

T P

ull

VB

US

CD

C R

X3

CD

C T

X4

DB

G1

5

DB

G2

6

0 T

X7

1 R

X8

2 SD

A9

3 S

CL

10

4 M

OSI

11

5 M

ISO

12

6 S

CK

13

7 S

S14

GN

D15

0 (T

X)

16

1 (R

X)

17

218

319

020

GN

D24

DB

G3

54

DB

G0

53

GN

D52

VC

C51

PW

M 3

46

AD

C 2

45

AD

C 1

44

AD

C 0

43

GN

D42

438

434

GN

D33

AD

C 7

50

AD

C 6

49

AD

C 5

48

PW

M 4

47

DE

BU

GG

ER

TAR

GE

T

ID2

VO

FF

55

121

222

323

025

126

227

328

429

530

631

732

535

636

737

539

640

741

RE

SER

VE

D1

VB

US

56

CN

AN

O56

-pin

edg

e co

nnec

tor

J200

J201

J203

J205

J206

J202

J204

PF1_

XT

AL

32K

2PF

0_X

TA

L32

K1

NC

XOUT

XIN

47kR200

AV

R12

8DB

48

UPD

I

GPI

O1

GPI

O0

RE

SET

DB

G0

DB

G1

DB

G2

DB

G3

Deb

ugge

r

CD

C T

X

CD

C R

X

UA

RT

3 R

X

UA

RT

3 T

X

VT

G1

8V -

55

VPB

3

PB

2

PF

6

UP

DI

PB

0

PB

1

Nam

eP

in

PE

3_O

P2_

INN

PE

2_O

P2_

OU

TP

E1_

OP

2_IN

PP

E0

J207

J208

PF

0P

F1

PA5

1

PA6

2

PA7

3

PB0

4

PB1

5

PB2

6

PB3

7

PB4

8

PB5

9

PC0

10

PC1

11

PC2

12

PC313

VDDIO214

GND15

PC416

PC517

PC618

PC719

PD020

PD121

PD222

PD323

PD424

PD5

25

PD6

26

PD7

27

AVDD

28

GND

29

PE0

30

PE1

31

PE2

32

PE3

33

XTAL32K1PF0

34

XTAL32K2PF1

35

PF2

36

PF337

PF438

PF539

PF640

UPDI41

VDD42

GND43

XTALHF1PA044

XTALHF2PA145

PA246

PA347

PA448

AV

R12

8DB

48-I

PT

U20

0

0RR204

GN

D

VC

C_T

AR

GE

T

VDDIO2

GND

J210

J211

82p

C20

48

2pC

203

GN

DG

ND

16M

Hz

Cry

stal

J217

XHFOUT

XHFIN

J214

J213

GN

D

J215

J216

PA0_XTALHF1

PA1_XTALHF2

PA0_

XT

AL

HF

1PA

1_X

TA

LH

F2

PA0

PA1

1 2

J212 N

M

15pF

C20

615

pFC

207

13

24 16

000

MH

zV

XM

7-90

40-1

6M00

0000

0TR

XC

201

GN

D32

768

kHz

VM

K3-

9001

-32K

7680

000T

R

XC

200

CDC_TX

CDC_RX

CD

C_T

XC

DC

_RX

Cry

stal

dat

ashe

et

Ccr

ysta

l = 9

pFm

ax E

SR

= 7

0kO

hmA

ccur

acy

plusmn20p

pm

AV

R48

DB

128

data

shee

tC

xin

= 4

0pF

(ty

pica

l val

ue)

Cxo

ut =

40

pF (

typi

cal v

alue

)C

lasymp1

( (1

40

pF)+

(1

40p

F)

)asymp

20p

FM

axim

um L

oad

= 1

25p

FM

axim

um E

SR =

50k

Ohm

Est

imat

ed C

pcb

= 0

5pF

Est

imat

ed lo

adC

= 2

(C

crys

tal-

Cpa

ra -

Cpc

b)C

= 2

(9p

F -

20

pF -

05

pF)

C =

13

0pF

Sele

cted

in d

esig

n af

ter

veri

fica

tion

C=

82

pF8

2pF

NO

TE

on

UA

RT

CD

C

RX

TX

onth

ehe

ader

deno

tes

the

inpu

tout

put d

irec

tion

of th

e si

gnal

resp

ectiv

e to

its

sou

rce

CD

C T

X is

out

put f

rom

the

DE

BU

GG

ER

C

DC

RX

is in

put t

o th

e D

EB

UG

GE

R

TX

is o

utpu

t fro

m th

e T

AR

GE

T d

evic

eR

X is

inpu

t to

the

TA

RG

ET

dev

ice

NO

TE

on

I2C

No

pull

-ups

on

boar

d P

ull-

ups

shou

ld b

em

ount

ed c

lose

to s

lave

dev

ice(

s)

WA

RN

ING

M

ake

sure

tore

mov

e R

204

befo

reap

plyi

ng p

ower

to J

212

Cry

stal

dat

ashe

et

Ccr

ysta

l = 1

2pF

max

ES

R =

60O

hmA

ccur

acy

plusmn30p

pm

AV

R48

DB

128

data

shee

tC

xin

= 4

0pF

(ty

pica

l val

ue)

Cxo

ut =

40

pF (

typi

cal v

alue

)C

lasymp1

( (1

40

pF)+

(1

40p

F)

)asymp

20p

FM

axim

um L

oad

= 1

25p

FM

axim

um E

SR =

k

Ohm

Est

imat

ed C

pcb

= 0

5pF

Est

imat

ed lo

adC

= 2

(C

crys

tal-

Cpa

ra -

Cpc

b)C

= 2

(12

pF -

20

pF -

05

pF)

C =

19

0pF

Sele

cted

in d

esig

n af

ter

veri

fica

tion

C=

15p

F1

5pF

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 34

11

22

33

44

55

66

77

88

DD

CC

BB

AA

3 of

4

AV

R12

8DB

48 C

uri

osit

y N

ano

2020

-06-

26A

VR

128D

B48

_Cur

iosi

ty_N

ano_

Deb

ugge

rSch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA

Rev

isio

n

Fil

eP

CB

Num

ber

PC

B

Rev

isio

n

Des

ign

ed w

ith

Dra

wn

By

ML

Shee

t Tit

le

Deb

ugge

r

Eng

inee

rA

H

A08

-305

71

Size

A3

A09

-337

22

Page

D

ateA

ltium

com

DE

BU

GG

ER

USB

MIC

RO

-B C

ON

NE

CT

OR

GN

D

USB

D_P

USB

D_N

100n

C10

7

100n

C10

8

1kR

107

VC

C_P

3V3

SRST

STA

TU

S_L

ED

SHIE

LD

VB

US

VC

C_P

3V3

GN

D

TP

100

Test

poin

t Arr

ay

12

34

56

78

910

TC

KT

DO

TM

SV

sup

TD

IG

ND

TR

STSR

STV

Tre

fG

ND

J102

GN

D

47u

F

C10

0

DBG0

DB

G0

21

GR

EE

N L

ED

SML

-P12

MT

T86

R

D10

0

VBUS

1

D-

2

D+

3

GND

5

SHIELD1

6

SHIELD2

7

ID

4

SHIELD3

8

SHIELD4

9 MU

-MB

0142

AB

2-26

9

J105

PAD

33

PA00

1

PA01

2

PA02

3

PA03

4

GND 10VDDANA 9

PA04

5

PA05

6

PA06

7

PA07

8

PA08 11

PA09 12

PA10 13

PA11 14

PA14 15

PA15 16

PA16

17

PA17

18

PA18

19

PA19

20

PA22

21

USB_SOFPA23

22

USB_DMPA24

23

USB_DPPA25

24

PA2725 RESETN26 PA2827 GND28 VDDCORE29 VDDIN30 SWDCLKPA3031 SWDIOPA3132

SAM

D21

E18

A-M

UT

U10

0

VOUT

1

VOUT

2

GND 3

EN

4

VIN

6

NC

5

EP 7

MIC

5528

-33

YM

TU

101

VC

C_P

3V3

GN

D

USB

D_P

USB

D_N

GN

D

1uC

106

VC

C_M

CU

_CO

RE

VC

C_P

3V3

VC

C_P

3V3

22u

FC

101

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

3

VC

C_P

3V3

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

4

VC

C_P

3V3

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

5

VC

C_P

3V3

GN

D

GN

D GN

D

GN

D

VC

C_E

DG

E

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

7

VC

C_P

3V3

GN

DDBG2

DB

G3_

CT

RL

S1_0

_TX

S1_1

_RX

S0_2

_TX

DA

CV

TG

_AD

C

RE

SER

VE

D

S0_3

_CL

K

DBG0_CTRL

CD

C_T

X_C

TR

L

BO

OT

DE

BU

GG

ER

PO

WE

RS

TA

TU

S L

ED

EN

1

BYP

6

VOUT

4

GND

2

VIN

3

NCADJ

5

GND

7

MIC

5353

U10

2

100n

C10

2

GN

D

GN

D

47kR101

27kR104 G

ND

33k

R10

6

22u

F

C10

3 GN

D

1kR

108

J100

VC

C_L

EV

EL

VC

C_R

EG

UL

AT

OR

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

6

VC

C_P

3V3

GN

DDBG1

CD

C_R

X

CD

C_T

X

DBG3

DBG1_CTRL

DE

BU

GG

ER

RE

GU

LA

TO

R

REG_ENABLE

RE

G_E

NA

BL

E

47kR103

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

47kR102

47kR105

SWC

LK

GN

D

47kR100 G

ND

DB

G2

S0_0

_RX

DB

G1_

CT

RL

DB

G0_

CT

RL

DB

G3

OP

EN

DR

AIN

TA

RG

ET

AD

JUST

AB

LE

RE

GU

LA

TO

R

SRST

DE

BU

GG

ER

TE

ST

PO

INT DBG2_CTRL

VO

FF

CD

C_R

X_C

TR

L

47kR109

DB

G1

CD

C_T

X_C

TR

L

CD

C_R

X_C

TR

L

SWC

LK

REG_ADJUST

DBG2_GPIO

DB

G3_

CT

RL

DB

G2_

CT

RL

UP

DI

UPD

I

GPI

O

GPI

O

RE

SET

Sign

al

DB

G0

DB

G1

DB

G2

DB

G3

ICS

PIn

terf

ace

DA

T

CL

K

GPI

O

MC

LR

DB

G3

CD

C T

X

CD

C R

X

UA

RT

RX

UA

RT

TX

UA

RT

RX

UA

RT

TX

TA

RG

ET

TA

RG

ET

1kR

110

VBUS_ADC

1

23

DM

N65

D8L

FB

Q10

1

VC

C-

-

ID_SYS

VOFF

1kR112

VC

C_P

3V3

VT

G_A

DC

DA

C

MIC

9416

3

VIN

B2

VOUT

A1

VIN

A2

EN

C2

GND

C1

VOUT

B1

U10

8

GN

D

ID_S

YS

VT

G_E

N

VTG_EN

VBUS_ADC

SWD

IO

ID_S

YS

TP

101

GN

DSW

DIO

VO

FF

47kR111 G

ND

ID P

IN

MC

3621

3

F10

0

VC

C_V

BU

S

VC

C_V

BU

S

VC

C_V

BU

S

J101

VC

C_T

AR

GE

T

47k

R11

3

CDC_TX

CDC_RX

Prog

ram

min

g co

nnec

tor

for

fact

ory

prog

ram

min

g of

DE

BU

GG

ER

MIC

5528

V

in 2

5V

to 5

5V

Vou

t F

ixed

33

VIm

ax 5

00m

AD

ropo

ut 2

60m

V

500

mA

MIC

5353

V

in 2

6V

to 6

VV

out

12

5V to

51

VIm

ax 5

00m

AD

ropo

ut (

typi

cal)

50m

V

150m

A 1

60m

V

500

mA

Acc

urac

y 2

in

itia

lT

herm

al s

hutd

own

and

curr

ent l

imit

Max

imum

out

put v

olta

ge is

lim

ited

by

the

inpu

t vol

tage

and

the

drop

out v

olta

ge in

the

regu

lato

r(V

max

= V

in -

dro

pout

)

J100

-

Cut

-str

ap u

sed

for

full

sep

arat

ion

of ta

rget

pow

er f

rom

the

leve

l shi

fter

s an

don

-boa

rd r

egul

ator

s-

For

cur

rent

mea

sure

men

ts u

sing

the

on-b

oard

pow

er s

uppl

y th

isst

rap

mus

t be

cut a

nd a

nam

met

er c

onne

cted

acr

oss

- F

or c

urre

nt m

easu

rem

ents

usi

ng a

n ex

tern

al p

ower

sup

ply

this

str

ap c

ould

be

cut f

or m

ore

accu

rate

mea

sure

men

ts L

eaka

ge b

ack

thro

ugh

the

swit

ch is

in th

e m

icro

am

pere

ran

ge

PT

C R

eset

tabl

e fu

se

Hol

d cu

rren

t 5

00m

AT

rip

curr

ent

100

0mA

Adj

usta

ble

outp

ut a

nd li

mit

atio

ns

- T

he D

EB

UG

GE

R c

an a

djus

t the

out

put v

olta

ge o

f th

e re

gula

tor

betw

een

125

V a

nd 5

1V

to th

e ta

rget

-

The

vol

tage

out

put i

s li

mit

ed b

y th

e in

put (

US

B)

whi

ch c

an v

ary

betw

een

440

V to

52

5V-

The

leve

l shi

fter

s ha

ve a

min

imal

vol

tage

leve

l of

165

V a

nd w

ill l

imit

the

min

imum

ope

ratin

g vo

ltage

all

owed

for

the

targ

et to

sti

ll a

llow

com

mun

icat

ion

- T

he M

IC94

163

has

a m

inim

al v

olat

ege

leve

l of

170

V a

nd w

ill l

imit

the

min

imum

vol

tage

del

iver

ed to

the

targ

et

- F

irm

war

e co

nfig

urat

ion

wil

l lim

it th

e vo

ltage

ran

ge to

be

wit

hin

the

the

targ

et s

peci

fica

tion

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 35

82 Assembly DrawingFigure 8-2 AVR128DB48 Curiosity Nano Assembly Drawing Top

+

Cb

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20001 PAC20002 COC200

PAC20101 PAC20102 COC201

PAC20201 PAC20202 COC202 PAC20301

PAC20302 COC203

PAC20401

PAC20402 COC204

PAC20502

PAC20501 COC205

PAC20601

PAC20602 COC206 PAC20701

PAC20702 COC207 PAD10002 PAD10001 COD100

PAD20002

PAD20001 COD200

PAF10002

PAF10001 COF100

PAJ10002 PAJ10001 COJ100

PAJ10101 PAJ10102 COJ101

PAJ10201

PAJ10202

PAJ10203

PAJ10204

PAJ10205

PAJ10206 COJ102

PAJ10506

PAJ10507 PAJ10509

PAJ10508 PAJ105010

PAJ105011 PAJ10505

PAJ10504

PAJ10503

PAJ10502

PAJ10501

PAJ10500

COJ105

PAJ200056 PAJ200053

PAJ200028 PAJ20002 PAJ20001

PAJ200051 PAJ200050 PAJ200052 PAJ200049 PAJ200048 PAJ200047 PAJ200046 PAJ200045 PAJ200044 PAJ200043 PAJ200042 PAJ200041 PAJ200040 PAJ200039 PAJ200038 PAJ200037 PAJ200036 PAJ200035 PAJ200034 PAJ200033 PAJ200032 PAJ200031 PAJ200030 PAJ200029

PAJ20003 PAJ20004 PAJ20005 PAJ20006 PAJ20007 PAJ20008 PAJ20009 PAJ200010 PAJ200011 PAJ200012 PAJ200013 PAJ200014 PAJ200015 PAJ200016 PAJ200017 PAJ200018 PAJ200019 PAJ200020 PAJ200021 PAJ200022 PAJ200023 PAJ200026 PAJ200025 PAJ200024 PAJ200027

PAJ200054 PAJ200055 PAJ20000

COJ200

PAJ20102 PAJ20101 COJ201

PAJ20202 PAJ20201 COJ202

PAJ20302 PAJ20301 COJ203

PAJ20402 PAJ20401 COJ204

PAJ20502 PAJ20501 COJ205

PAJ20602 PAJ20601 COJ206 PAJ20702 PAJ20701 COJ207

PAJ20802 PAJ20801 COJ208

PAJ20902 PAJ20901 COJ209

PAJ21001 PAJ21002 PAJ21005 COJ210

PAJ21102 PAJ21101 PAJ21105 COJ211

PAJ21202 PAJ21201 COJ212

PAJ21301 PAJ21302 PAJ21305 COJ213

PAJ21401 PAJ21402 PAJ21405 COJ214

PAJ21502 PAJ21501 COJ215

PAJ21602 PAJ21601 COJ216 PAJ21702 PAJ21701 COJ217

COLABEL1

PAQ10101 PAQ10102 PAQ10103 PAQ10100

COQ101 PAR10002

PAR10001 COR100 PAR10101 PAR10102 COR101

PAR10202 PAR10201 COR102

PAR10302 PAR10301 COR103

PAR10401 PAR10402 COR104

PAR10502

PAR10501 COR105

PAR10601 PAR10602 COR106

PAR10702 PAR10701 COR107

PAR10801

PAR10802 COR108

PAR10901 PAR10902 COR109

PAR11001 PAR11002 COR110

PAR11101 PAR11102 COR111

PAR11201 PAR11202 COR112

PAR11302 PAR11301 COR113

PAR20001 PAR20002 COR200 PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203 PAR20401 PAR20402 COR204

PASW20003

PASW20004 PASW20002

PASW20001 COSW200

PATP10001 COTP100

PATP10101 COTP101 PAU100033

PAU100032 PAU100031 PAU100030 PAU100029 PAU100028 PAU100027 PAU100026 PAU100025 PAU100024

PAU100023

PAU100022

PAU100021

PAU100020

PAU100019

PAU100018

PAU100017 PAU100016 PAU100015 PAU100014 PAU100013 PAU100012 PAU100011 PAU100010

PAU10001

PAU10002

PAU10003

PAU10004

PAU10005

PAU10006

PAU10007

PAU10008 PAU10009

COU100

PAU10107

PAU10104 PAU10105 PAU10106

PAU10103 PAU10102 PAU10101 PAU10100 COU101 PAU10207

PAU10204 PAU10205

PAU10206

PAU10203 PAU10202

PAU10201

COU102

PAU10306

PAU10305 PAU10304 PAU10303

PAU10302 PAU10301 PAU10300

COU103

PAU10406

PAU10405 PAU10404 PAU10403

PAU10402 PAU10401 PAU10400

COU104

PAU10506

PAU10505 PAU10504 PAU10503

PAU10502 PAU10501 PAU10500

COU105

PAU10606

PAU10605 PAU10604 PAU10603

PAU10602 PAU10601 PAU10600

COU106

PAU10706

PAU10705 PAU10704 PAU10703

PAU10702 PAU10701 PAU10700

COU107

PAU1080A1 PAU1080A2

PAU1080B1 PAU1080B2

PAU1080C1 PAU1080C2 COU108

PAU20001 PAU20002 PAU20003 PAU20004 PAU20005 PAU20006 PAU20007 PAU20008 PAU20009 PAU200010 PAU200011 PAU200012 PAU200013 PAU200014 PAU200015 PAU200016 PAU200017 PAU200018 PAU200019 PAU200020 PAU200021 PAU200022 PAU200023 PAU200024 PAU200025 PAU200026 PAU200027 PAU200028 PAU200029 PAU200030 PAU200031 PAU200032 PAU200033 PAU200034 PAU200035 PAU200036

PAU200037 PAU200038 PAU200039 PAU200040 PAU200041 PAU200042 PAU200043 PAU200044 PAU200045 PAU200046 PAU200047 PAU200048

COU200

PAXC20001

PAXC20002 COXC200

PAXC20101 PAXC20102

PAXC20103 PAXC20104 COXC201

Figure 8-3 AVR128DB48 Curiosity Nano Assembly Drawing Bottom

tcR

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20001 PAC20002 COC200

PAC20101 PAC20102 COC201

PAC20201 PAC20202 COC202 PAC20301

PAC20302 COC203

PAC20401

PAC20402 COC204

PAC20502

PAC20501 COC205

PAC20601

PAC20602 COC206 PAC20701

PAC20702 COC207 PAD10002 PAD10001 COD100

PAD20002

PAD20001 COD200

PAF10002

PAF10001 COF100

PAJ10002 PAJ10001 COJ100

PAJ10101 PAJ10102 COJ101

PAJ10201

PAJ10202

PAJ10203

PAJ10204

PAJ10205

PAJ10206 COJ102

PAJ10506

PAJ10507 PAJ10509

PAJ10508 PAJ105010

PAJ105011 PAJ10505

PAJ10504

PAJ10503

PAJ10502

PAJ10501

PAJ10500

COJ105

PAJ200056 PAJ200053

PAJ200028 PAJ20002 PAJ20001

PAJ200051 PAJ200050 PAJ200052 PAJ200049 PAJ200048 PAJ200047 PAJ200046 PAJ200045 PAJ200044 PAJ200043 PAJ200042 PAJ200041 PAJ200040 PAJ200039 PAJ200038 PAJ200037 PAJ200036 PAJ200035 PAJ200034 PAJ200033 PAJ200032 PAJ200031 PAJ200030 PAJ200029

PAJ20003 PAJ20004 PAJ20005 PAJ20006 PAJ20007 PAJ20008 PAJ20009 PAJ200010 PAJ200011 PAJ200012 PAJ200013 PAJ200014 PAJ200015 PAJ200016 PAJ200017 PAJ200018 PAJ200019 PAJ200020 PAJ200021 PAJ200022 PAJ200023 PAJ200026 PAJ200025 PAJ200024 PAJ200027

PAJ200054 PAJ200055 PAJ20000

COJ200

PAJ20102 PAJ20101 COJ201

PAJ20202 PAJ20201 COJ202

PAJ20302 PAJ20301 COJ203

PAJ20402 PAJ20401 COJ204

PAJ20502 PAJ20501 COJ205

PAJ20602 PAJ20601 COJ206 PAJ20702 PAJ20701 COJ207

PAJ20802 PAJ20801 COJ208

PAJ20902 PAJ20901 COJ209

PAJ21001 PAJ21002 PAJ21005 COJ210

PAJ21102 PAJ21101 PAJ21105 COJ211

PAJ21202 PAJ21201 COJ212

PAJ21301 PAJ21302 PAJ21305 COJ213

PAJ21401 PAJ21402 PAJ21405 COJ214

PAJ21502 PAJ21501 COJ215

PAJ21602 PAJ21601 COJ216 PAJ21702 PAJ21701 COJ217

COLABEL1

PAQ10101 PAQ10102 PAQ10103 PAQ10100

COQ101 PAR10002

PAR10001 COR100 PAR10101 PAR10102 COR101

PAR10202 PAR10201 COR102

PAR10302 PAR10301 COR103

PAR10401 PAR10402 COR104

PAR10502

PAR10501 COR105

PAR10601 PAR10602 COR106

PAR10702 PAR10701 COR107

PAR10801

PAR10802 COR108

PAR10901 PAR10902 COR109

PAR11001 PAR11002 COR110

PAR11101 PAR11102 COR111

PAR11201 PAR11202 COR112

PAR11302 PAR11301 COR113

PAR20001 PAR20002 COR200 PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203 PAR20401 PAR20402 COR204

PASW20003

PASW20004 PASW20002

PASW20001 COSW200

PATP10001 COTP100

PATP10101 COTP101 PAU100033

PAU100032 PAU100031 PAU100030 PAU100029 PAU100028 PAU100027 PAU100026 PAU100025 PAU100024

PAU100023

PAU100022

PAU100021

PAU100020

PAU100019

PAU100018

PAU100017 PAU100016 PAU100015 PAU100014 PAU100013 PAU100012 PAU100011 PAU100010

PAU10001

PAU10002

PAU10003

PAU10004

PAU10005

PAU10006

PAU10007

PAU10008 PAU10009

COU100

PAU10107

PAU10104 PAU10105 PAU10106

PAU10103 PAU10102 PAU10101 PAU10100 COU101 PAU10207

PAU10204 PAU10205

PAU10206

PAU10203 PAU10202

PAU10201

COU102

PAU10306

PAU10305 PAU10304 PAU10303

PAU10302 PAU10301 PAU10300

COU103

PAU10406

PAU10405 PAU10404 PAU10403

PAU10402 PAU10401 PAU10400

COU104

PAU10506

PAU10505 PAU10504 PAU10503

PAU10502 PAU10501 PAU10500

COU105

PAU10606

PAU10605 PAU10604 PAU10603

PAU10602 PAU10601 PAU10600

COU106

PAU10706

PAU10705 PAU10704 PAU10703

PAU10702 PAU10701 PAU10700

COU107

PAU1080A1 PAU1080A2

PAU1080B1 PAU1080B2

PAU1080C1 PAU1080C2 COU108

PAU20001 PAU20002 PAU20003 PAU20004 PAU20005 PAU20006 PAU20007 PAU20008 PAU20009 PAU200010 PAU200011 PAU200012 PAU200013 PAU200014 PAU200015 PAU200016 PAU200017 PAU200018 PAU200019 PAU200020 PAU200021 PAU200022 PAU200023 PAU200024 PAU200025 PAU200026 PAU200027 PAU200028 PAU200029 PAU200030 PAU200031 PAU200032 PAU200033 PAU200034 PAU200035 PAU200036

PAU200037 PAU200038 PAU200039 PAU200040 PAU200041 PAU200042 PAU200043 PAU200044 PAU200045 PAU200046 PAU200047 PAU200048

COU200

PAXC20001

PAXC20002 COXC200

PAXC20101 PAXC20102

PAXC20103 PAXC20104 COXC201

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 36

83 Curiosity Nano Base for Click boardstrade

Figure 8-4 AVR128DB48 Curiosity Nano Pinout Mapping

US

B

DE

BU

GG

ER

AV

R1

28

DB

48

SW

0

LE

D0

PS

LE

DNC

NC

ID

ID

CDC RX

CDCRX

USART3 TX

PB0

CDC TX

CDCTX

USART3 RX

PB1

DBG1

DBG1

PB3

LED0

DBG2

DBG2

PB2

SW0

PF4

PF4

USART2 TX

PF5

PF5

USART2 RX

PA2

PA2

TWI0 SDA

PA3

PA3

TWI0 SCL

PA4

PA4

SPI0 MOSI

PA5

PA5

SPI0 MISO

PA6

PA6

SPI0 SCK

PA7

PA7

SPI0 SS

GND

GND

PB0

PB0

USART3 TX

CDC RX

PB1

PB1

USART3 RX

CDC TX

PF2

PF2

PF3

PF3

PC0

PC0

PC1

PC1

PC2

PC2

PC3

PC3

GND

GND

(PA0)

(PA0)

XTALHF1

(PA1)

(PA1)

XTALHF2

PB2

PB2

SW0

PB3

PB3

LED0

VBUS

VBUS

VOFF

VOFF

DBG3

DBG3

PF6

DBG0

DBG0

UPDI

GND

GND

VTG

VTG

PD6

PD6

AIN6

PD3

PD3

AIN3

OP0 INN

PD2

PD2

AIN2

OP0 OUT

TCA0 WO2

PD1

PD1

AIN1

OP0 INP

TCA0 WO1

PD0

PD0

AIN0

TCA0 WO0

PD7

PD7

AIN7

OP1 INN

PD5

PD5

AIN5

OP1 OUT

PD4

PD4

AIN4

OP1 INP

GND

GND

PE3

PE3

OP2 INN

PE2

PE2

OP2 OUT

PE1

PE1

OP2 INP

PE0

PE0

PC7

PC7

PC6

PC6

PC5

PC5

PC4

PC4

GND

GND

PB5

PB5

PB4

PB4

(PF1)

(PF1)

XTAL32K2

(PF0)

(PF0)

XTAL32K1

DE

BU

GG

ER

AV

R1

28

DB

48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

MVIO

OPAMP

Shared pin

AV

R1

28

DB

48

Cu

rio

sity

Na

no

1

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

2

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

3

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

Xp

lain

ed

Pro

Ext

en

sio

nE

XT

11

2

19

20

Cu

rio

sity

Na

no

Ba

sefo

r cl

ick

bo

ard

sT

M

PD4

PD0

PD6

PD3

PA7

PF5

PA6

PF4

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

PD5

PD1

PF3

PF2

PE2

PB1

PA6

PB0

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

PD7

PD2

PE1

PE0

PE3

PF5

PA6

PF4

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

ID

GND

PD5

PD7

PF3

PE1

PD1

PD2

PF2

PE3

PA2

PA3

PB1

PB0

PE2

PA4

PA5

PA6

GND

+33V

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 37

84 Disconnecting the On-board DebuggerThe on-board debugger and level shifters can be completely disconnected from the AVR128DB48

The block diagram below shows all connections between the debugger and the AVR128DB48 The rounded boxesrepresent connections to the board edge The signal names shown are also printed in silkscreen on the bottom sideof the board

To disconnect the debugger cut the straps shown in Figure 8-6

Attention  Cutting the GPIO straps to the on-board debugger will disable the virtual serial portprogramming debugging and data streaming Cutting the power supply strap will disconnect the on-boardpower supply

Tip  Any connection that is cut can be reconnected using solder Alternatively a 0Ω 0402 resistor can bemounted

Tip  When the debugger is disconnected an external debugger can be connected to holes shown in Figure 8-6 Details about connecting an external debugger are described in 46 Connecting ExternalDebuggers

Figure 8-5  On-Board Debugger Connections Block Diagram

DE

BU

GG

ER

TARGETLevel-Shift

PA04PA06PA07PA08PA16PA00PA01

USB

DIR x 5

VCC_P3V3

VBUS

VC

C_L

EV

EL

VC

C_T

AR

GE

TDBG0DBG1DBG2DBG3CDC TXCDC RX

CDC RX

CDC TX

DBG3

DBG2

DBG1

DBG0

GPIO straps

LDO

VOFF

LDO

VBUS VTG

VCC_EDGE

Power Supply strap Target Power strap

UART RXUART TX

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 38

Figure 8-6 On-Board Debugger Connection Cut Straps

GPIO straps (bottom side) Power Supply strap (top side)

85 Getting Started with IARIAR Embedded Workbenchreg for AVRreg is a proprietary high-efficiency compiler not based on GCC Programming anddebugging of AVR128DB48 Curiosity Nano is supported in IARtrade Embedded Workbench for AVR using the Atmel-ICEinterface Some initial settings must be set up in the project to get the programming and debugging to work

The following steps will explain how to get your project ready for programming and debugging

1 Make sure you have opened the project you want to configure Open the OPTIONS dialog for the project2 In the category General Options select the Target tab Select the device for the project or if not listed the

core of the device as shown in Figure 8-73 In the category Debugger select the Setup tab Select Atmel-ICE as the driver as shown in Figure 8-84 In the category Debugger gt Atmel-ICE select the Atmel-ICE 1 tab Select UPDI as the interface and

optionally select the UPDI frequency as shown in Figure 8-9

Info  If the selection of Debug Port (mentioned in step 4) is grayed out the interface is preselected andthe user can skip this configuration step

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 39

Figure 8-7 Select Target Device

Figure 8-8 Select Debugger

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 40

Figure 8-9 Configure Interface

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 41

The Microchip Website

Microchip provides online support via our website at wwwmicrochipcom This website is used to make files andinformation easily available to customers Some of the content available includes

bull Product Support ndash Data sheets and errata application notes and sample programs design resources userrsquosguides and hardware support documents latest software releases and archived software

bull General Technical Support ndash Frequently Asked Questions (FAQs) technical support requests onlinediscussion groups Microchip design partner program member listing

bull Business of Microchip ndash Product selector and ordering guides latest Microchip press releases listing ofseminars and events listings of Microchip sales offices distributors and factory representatives

Product Change Notification Service

Microchiprsquos product change notification service helps keep customers current on Microchip products Subscribers willreceive email notification whenever there are changes updates revisions or errata related to a specified productfamily or development tool of interest

To register go to wwwmicrochipcompcn and follow the registration instructions

Customer Support

Users of Microchip products can receive assistance through several channels

bull Distributor or Representativebull Local Sales Officebull Embedded Solutions Engineer (ESE)bull Technical Support

Customers should contact their distributor representative or ESE for support Local sales offices are also available tohelp customers A listing of sales offices and locations is included in this document

Technical support is available through the website at wwwmicrochipcomsupport

Microchip Devices Code Protection Feature

Note the following details of the code protection feature on Microchip devices

bull Microchip products meet the specifications contained in their particular Microchip Data Sheetbull Microchip believes that its family of products is secure when used in the intended manner and under normal

conditionsbull There are dishonest and possibly illegal methods being used in attempts to breach the code protection features

of the Microchip devices We believe that these methods require using the Microchip products in a manneroutside the operating specifications contained in Microchiprsquos Data Sheets Attempts to breach these codeprotection features most likely cannot be accomplished without violating Microchiprsquos intellectual property rights

bull Microchip is willing to work with any customer who is concerned about the integrity of its codebull Neither Microchip nor any other semiconductor manufacturer can guarantee the security of its code Code

protection does not mean that we are guaranteeing the product is ldquounbreakablerdquo Code protection is constantlyevolving We at Microchip are committed to continuously improving the code protection features of our productsAttempts to break Microchiprsquos code protection feature may be a violation of the Digital Millennium Copyright ActIf such acts allow unauthorized access to your software or other copyrighted work you may have a right to suefor relief under that Act

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 42

Legal Notice

Information contained in this publication is provided for the sole purpose of designing with and using Microchipproducts Information regarding device applications and the like is provided only for your convenience and may besuperseded by updates It is your responsibility to ensure that your application meets with your specifications

THIS INFORMATION IS PROVIDED BY MICROCHIP ldquoAS ISrdquo MICROCHIP MAKES NO REPRESENTATIONS ORWARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED WRITTEN OR ORAL STATUTORY OROTHERWISE RELATED TO THE INFORMATION INCLUDING BUT NOT LIMITED TO ANY IMPLIEDWARRANTIES OF NON-INFRINGEMENT MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSEOR WARRANTIES RELATED TO ITS CONDITION QUALITY OR PERFORMANCE

IN NO EVENT WILL MICROCHIP BE LIABLE FOR ANY INDIRECT SPECIAL PUNITIVE INCIDENTAL ORCONSEQUENTIAL LOSS DAMAGE COST OR EXPENSE OF ANY KIND WHATSOEVER RELATED TO THEINFORMATION OR ITS USE HOWEVER CAUSED EVEN IF MICROCHIP HAS BEEN ADVISED OF THEPOSSIBILITY OR THE DAMAGES ARE FORESEEABLE TO THE FULLEST EXTENT ALLOWED BY LAWMICROCHIPS TOTAL LIABILITY ON ALL CLAIMS IN ANY WAY RELATED TO THE INFORMATION OR ITS USEWILL NOT EXCEED THE AMOUNT OF FEES IF ANY THAT YOU HAVE PAID DIRECTLY TO MICROCHIP FORTHE INFORMATION Use of Microchip devices in life support andor safety applications is entirely at the buyerrsquos riskand the buyer agrees to defend indemnify and hold harmless Microchip from any and all damages claims suits orexpenses resulting from such use No licenses are conveyed implicitly or otherwise under any Microchip intellectualproperty rights unless otherwise stated

Trademarks

The Microchip name and logo the Microchip logo Adaptec AnyRate AVR AVR logo AVR Freaks BesTimeBitCloud chipKIT chipKIT logo CryptoMemory CryptoRF dsPIC FlashFlex flexPWR HELDO IGLOO JukeBloxKeeLoq Kleer LANCheck LinkMD maXStylus maXTouch MediaLB megaAVR Microsemi Microsemi logo MOSTMOST logo MPLAB OptoLyzer PackeTime PIC picoPower PICSTART PIC32 logo PolarFire Prochip DesignerQTouch SAM-BA SenGenuity SpyNIC SST SST Logo SuperFlash Symmetricom SyncServer TachyonTempTrackr TimeSource tinyAVR UNIO Vectron and XMEGA are registered trademarks of Microchip TechnologyIncorporated in the USA and other countries

APT ClockWorks The Embedded Control Solutions Company EtherSynch FlashTec Hyper Speed ControlHyperLight Load IntelliMOS Libero motorBench mTouch Powermite 3 Precision Edge ProASIC ProASIC PlusProASIC Plus logo Quiet-Wire SmartFusion SyncWorld Temux TimeCesium TimeHub TimePictra TimeProviderVite WinPath and ZL are registered trademarks of Microchip Technology Incorporated in the USA

Adjacent Key Suppression AKS Analog-for-the-Digital Age Any Capacitor AnyIn AnyOut BlueSky BodyComCodeGuard CryptoAuthentication CryptoAutomotive CryptoCompanion CryptoController dsPICDEMdsPICDEMnet Dynamic Average Matching DAM ECAN EtherGREEN In-Circuit Serial Programming ICSPINICnet Inter-Chip Connectivity JitterBlocker KleerNet KleerNet logo memBrain Mindi MiWi MPASM MPFMPLAB Certified logo MPLIB MPLINK MultiTRAK NetDetach Omniscient Code Generation PICDEMPICDEMnet PICkit PICtail PowerSmart PureSilicon QMatrix REAL ICE Ripple Blocker SAM-ICE Serial QuadIO SMART-IS SQI SuperSwitcher SuperSwitcher II Total Endurance TSHARC USBCheck VariSenseViewSpan WiperLock Wireless DNA and ZENA are trademarks of Microchip Technology Incorporated in the USAand other countries

SQTP is a service mark of Microchip Technology Incorporated in the USA

The Adaptec logo Frequency on Demand Silicon Storage Technology and Symmcom are registered trademarks ofMicrochip Technology Inc in other countries

GestIC is a registered trademark of Microchip Technology Germany II GmbH amp Co KG a subsidiary of MicrochipTechnology Inc in other countries

All other trademarks mentioned herein are property of their respective companiescopy 2020 Microchip Technology Incorporated Printed in the USA All Rights Reserved

ISBN 978-1-5224-6667-3

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 43

Quality Management SystemFor information regarding Microchiprsquos Quality Management Systems please visit wwwmicrochipcomquality

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 44

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupportwwwmicrochipcomsupportWeb AddresswwwmicrochipcomAtlantaDuluth GATel 678-957-9614Fax 678-957-1455Austin TXTel 512-257-3370BostonWestborough MATel 774-760-0087Fax 774-760-0088ChicagoItasca ILTel 630-285-0071Fax 630-285-0075DallasAddison TXTel 972-818-7423Fax 972-818-2924DetroitNovi MITel 248-848-4000Houston TXTel 281-894-5983IndianapolisNoblesville INTel 317-773-8323Fax 317-773-5453Tel 317-536-2380Los AngelesMission Viejo CATel 949-462-9523Fax 949-462-9608Tel 951-273-7800Raleigh NCTel 919-844-7510New York NYTel 631-435-6000San Jose CATel 408-735-9110Tel 408-436-4270Canada - TorontoTel 905-695-1980Fax 905-695-2078

Australia - SydneyTel 61-2-9868-6733China - BeijingTel 86-10-8569-7000China - ChengduTel 86-28-8665-5511China - ChongqingTel 86-23-8980-9588China - DongguanTel 86-769-8702-9880China - GuangzhouTel 86-20-8755-8029China - HangzhouTel 86-571-8792-8115China - Hong Kong SARTel 852-2943-5100China - NanjingTel 86-25-8473-2460China - QingdaoTel 86-532-8502-7355China - ShanghaiTel 86-21-3326-8000China - ShenyangTel 86-24-2334-2829China - ShenzhenTel 86-755-8864-2200China - SuzhouTel 86-186-6233-1526China - WuhanTel 86-27-5980-5300China - XianTel 86-29-8833-7252China - XiamenTel 86-592-2388138China - ZhuhaiTel 86-756-3210040

India - BangaloreTel 91-80-3090-4444India - New DelhiTel 91-11-4160-8631India - PuneTel 91-20-4121-0141Japan - OsakaTel 81-6-6152-7160Japan - TokyoTel 81-3-6880- 3770Korea - DaeguTel 82-53-744-4301Korea - SeoulTel 82-2-554-7200Malaysia - Kuala LumpurTel 60-3-7651-7906Malaysia - PenangTel 60-4-227-8870Philippines - ManilaTel 63-2-634-9065SingaporeTel 65-6334-8870Taiwan - Hsin ChuTel 886-3-577-8366Taiwan - KaohsiungTel 886-7-213-7830Taiwan - TaipeiTel 886-2-2508-8600Thailand - BangkokTel 66-2-694-1351Vietnam - Ho Chi MinhTel 84-28-5448-2100

Austria - WelsTel 43-7242-2244-39Fax 43-7242-2244-393Denmark - CopenhagenTel 45-4485-5910Fax 45-4485-2829Finland - EspooTel 358-9-4520-820France - ParisTel 33-1-69-53-63-20Fax 33-1-69-30-90-79Germany - GarchingTel 49-8931-9700Germany - HaanTel 49-2129-3766400Germany - HeilbronnTel 49-7131-72400Germany - KarlsruheTel 49-721-625370Germany - MunichTel 49-89-627-144-0Fax 49-89-627-144-44Germany - RosenheimTel 49-8031-354-560Israel - RarsquoananaTel 972-9-744-7705Italy - MilanTel 39-0331-742611Fax 39-0331-466781Italy - PadovaTel 39-049-7625286Netherlands - DrunenTel 31-416-690399Fax 31-416-690340Norway - TrondheimTel 47-72884388Poland - WarsawTel 48-22-3325737Romania - BucharestTel 40-21-407-87-50Spain - MadridTel 34-91-708-08-90Fax 34-91-708-08-91Sweden - GothenbergTel 46-31-704-60-40Sweden - StockholmTel 46-8-5090-4654UK - WokinghamTel 44-118-921-5800Fax 44-118-921-5820

Worldwide Sales and Service

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 45

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Board Overview
      • 2 Getting Started
        • 21 Quick Start
          • 211 Driver Installation
          • 212 Kit Window
          • 213 MPLABreg X IDE Device Family Packs
          • 214 Atmel Studio 7 Device Family Pack
            • 22 Design Documentation and Relevant Links
              • 3 Preprogrammed Application
              • 4 Curiosity Nano
                • 41 On-Board Debugger Overview
                  • 411 Debugger
                  • 412 Virtual Serial Port (CDC)
                    • 4121 Overview
                    • 4122 Operating System Support
                    • 4123 Limitations
                    • 4124 Signaling
                    • 4125 Advanced Use
                      • 413 Mass Storage Device
                        • 4131 Mass Storage Device Implementation
                        • 4132 Limitations of Drag-and-Drop Programming
                        • 4133 Special Commands
                          • 414 Data Gateway Interface (DGI)
                            • 4141 Debug GPIO
                            • 4142 Timestamping
                                • 42 Curiosity Nano Standard Pinout
                                • 43 Power Supply
                                  • 431 Target Regulator
                                  • 432 External Supply
                                  • 433 VBUS Output Pin
                                  • 434 Power Supply Exceptions
                                    • 44 Low-Power Measurement
                                    • 45 Programming External Microcontrollers
                                      • 451 Supported Devices
                                      • 452 Software Configuration
                                      • 453 Hardware Modifications
                                      • 454 Connecting to External Microcontrollers
                                        • 46 Connecting External Debuggers
                                          • 5 Hardware User Guide
                                            • 51 Connectors
                                              • 511 AVR128DB48 Curiosity Nano Pinout
                                              • 512 Using Pin Headers
                                              • 513 Multi-Voltage IO
                                              • 514 Operational Amplifiers
                                                • 52 Peripherals
                                                  • 521 LED
                                                  • 522 Mechanical Switch
                                                  • 523 32768 kHz Crystal
                                                  • 524 1600 MHz Crystal
                                                  • 525 On-Board Debugger Implementation
                                                    • 5251 On-Board Debugger Connections
                                                      • 6 Hardware Revision History and Known Issues
                                                        • 61 Identifying Product ID and Revision
                                                        • 62 Revision 3
                                                        • 63 Revision 2
                                                          • 7 Document Revision History
                                                          • 8 Appendix
                                                            • 81 Schematic
                                                            • 82 Assembly Drawing
                                                            • 83 Curiosity Nano Base for Click boardstrade
                                                            • 84 Disconnecting the On-board Debugger
                                                            • 85 Getting Started with IAR
                                                              • The Microchip Website
                                                              • Product Change Notification Service
                                                              • Customer Support
                                                              • Microchip Devices Code Protection Feature
                                                              • Legal Notice
                                                              • Trademarks
                                                              • Quality Management System
                                                              • Worldwide Sales and Service
Page 28: AVR128DB48 Curiosity Nano Hardware User Guideww1.microchip.com/downloads/en/DeviceDoc/AVR128DB48-Curiosit… · 4. Curiosity Nano Curiosity Nano is an evaluation platform of small

WARNINGThe absolute maximum external voltage range for the AVR128DB48 is 18ndash55V Applying a higher voltagemay cause permanent damage to the board

By default AVR128DB48 Curiosity Nano board is configured for single-supply mode To use Dual-Supply mode somehardware modifications are required

WARNINGBefore any hardware modifications are done make sure the board is disconnected from USB or externalpower

bull Disconnect resistor R204 connecting VDDIO2 to VCC_TARGETbull Connect a new power supply to VDDIO2 and ground at J212bull J212 does not have reverse polarity protection Make sure to match polarity between the power supply and

J212 Positive-polarity to J212-pin 1 and negative-polarity to J212-pin 2

The resistor R204 VDDIO2 and J212 can be seen in Figure 5-4

Figure 5-4 MVIO and VDDIO2 Connections

J212 R204

WARNINGApplying an external voltage to VDDIO2 pin without removing resistor R204 may cause permanentdamage to the board

WARNINGJ212 does not have reverse polarity protection Applying voltage to the wrong pin may cause permanentdamage to the board

514 Operational AmplifiersAVR128DB48 features three internal operational amplifiers with a flexible connection scheme using analogmultiplexers and resistor ladders This allows a large number of analog signal conditioning configurations manyrequiring no external components

Table 5-1 OPAMP Pin Connections

OPAMP Poisitive Input (INP) Negative Input (INN) Output (OUT)

OP0 PD1 PD3 PD2

OP1 PD4 PD7 PD5

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 28

continuedOPAMP Poisitive Input (INP) Negative Input (INN) Output (OUT)

OP2 PE1 PE3 PE2

For information about OPAMP on the edge connector and any shared functionality see 511 AVR128DB48 CuriosityNano Pinout

52 Peripherals

521 LEDThere is one yellow user LED available on the AVR128DB48 Curiosity Nano board that can be controlled by eitherGPIO or PWM The LED can be activated by driving the connected IO line to GND

Table 5-2 LED Connection

AVR128DB48 Pin Function Shared Functionality

PB3 Yellow LED0 Edge connector On-board debugger

522 Mechanical SwitchThe AVR128DB48 Curiosity Nano board has one mechanical switch This is a generic user-configurable switchWhen the switch is pressed it will drive the IO line to ground (GND)

Tip  There is no externally connected pull-up resistor on the switch To use the switch make sure that aninternal pull-up resistor is enabled on pin PB2

Table 5-3 Mechanical Switch

AVR128DB48 Pin Description Shared Functionality

PB2 User switch (SW0) Edge connector On-board debugger

523 32768 kHz Crystal

On the AVR128DB48 Curiosity Nano board is a mounted 32768 kHz crystal of type VMK3-9001-32K7680000 thecrystal is accurate to within 20 ppm Using the External 32768 kHz Crystal Oscillator (XOSC32K) module inAVR128DB48 with the mounted 32768 kHz crystal generates a clock signal that is significantly more accurate thanthe Internal 32768 kHz Ultra Low-Power Oscillator (OSC32K) module can generate alone With the Auto-Tunefeature the 32768 kHz can be used as a reference to improve the accuracy of the internal oscillator This is an idealreference clock for the Real-Time Counter module in AVR128DB48

The 32768 kHz crystal is connected to AVR128DB48 on PF0 and PF1 which are also routed to the edge connectorthrough two solder points PF0 and PF1 are disconnected from the edge connector by default to reduce the chanceof an external signal causing contention with the crystal and to remove excessive capacitance on the lines

Next to the 32768 kHz crystal is a cut-strap (J209) which can be used to measure the oscillator safety factor This isdone by cutting the strap and adding a 0402 SMD resistor across the strap More information about oscillatorallowance and safety factor can be found in the AN2648 application note from Microchip

Cut straps and solder points can be seen in Figure 5-5

Table 5-4 32768 kHz Crystal Connections

AVR128DB48 Pin Function Shared Functionality

PF0 XTAL32K1 (Crystal input) Edge connector

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 29

continuedAVR128DB48 Pin Function Shared Functionality

PF1 XTAL32K2 (Crystal output) Edge connector

PA0 and PA1 can be used as GPIO To do so some hardware modifications are required

WARNINGBefore any hardware modifications are done make sure the board is disconnected from the USB orexternal power

bull Disconnect the 32768 kHz crystal by cutting the two straps on the top side of the board next to the crystal(J207 J208) The crystal should be disconnected when using the pin as GPIO as this might harm the crystal

bull Connect the IO lines to the edge connector by placing solder blobs on the circular solder points marked PF0and PF1 on the bottom side of the board (J210 J211)

Figure 5-5 Crystal Connection and Cut Straps

Top side Boom side

J211

J210

J207

J20832768 kHz Crystal

J209

524 1600 MHz Crystal

On the AVR128DB48 Curiosity Nano board is a mounted 1600 MHz crystal of type VXM7-9040-16M0000000 thecrystal is accurate to within 20 ppm Using the External High-Frequency Crystal Oscillator (XOSCHF) module inAVR128DB48 with the mounted 1600 MHz crystal generates a clock signal that is significantly more accurate thanthe Internal High-Frequency Oscillator (OSCHF) module

The 1600 MHz crystal is connected to AVR128DB48 on PA0 and PA1 which are also routed to the edge connectorthrough two solder points PA0 and PA1 are disconnected from the edge connector by default to reduce the chanceof an external signal causing contention with the crystal and to remove excessive capacitance on the lines

Next to the 1600 MHz crystal is a cut-strap (J217) which can be used to measure the oscillator safety factor This isdone by cutting the strap and adding a 0402 SMD resistor across the strap More information about oscillatorallowance and safety factor can be found in the AN2648 application note from Microchip

Cut straps and solder points can be seen in Figure 5-6

Table 5-5 Crystal Connections

AVR128DB48 Pin Function Shared Functionality

PA0 XTALHF1 (Crystal input) Edge connector

PA1 XTALHF2 (Crystal output) Edge connector

PA0 and PA1 can be used as GPIO To do so some hardware modifications are required

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 30

WARNINGBefore any hardware modifications are done make sure the board is disconnected from USB or externalpower

bull Disconnect the 1600 MHz crystal by cutting the two straps on the top side of the board next to the crystal (J215J216) The crystal should be disconnected when using the pin as GPIO as this might harm the crystal

bull Connect the IO lines to the edge connector by placing solder blobs on the circular solder points marked PA0and PA1 on the bottom side of the board (J213 J214)

Figure 5-6 Crystal Connection and Cut Straps

Top side Boom side

J214

J213

J216

J2151600 MHzCrystal

J217

525 On-Board Debugger ImplementationAVR128DB48 Curiosity Nano features an on-board debugger that can be used to program and debug theAVR128DB48 using UPDI The on-board debugger also includes a virtual serial port (CDC) interface over UART anddebug GPIO Both MPLABreg X IDE and Atmel Studio 7 can be used as a front-end for the on-board debugger forprogramming and debugging MPLAB Data Visualizer can be used as a front-end for the CDC and debug GPIO

5251 On-Board Debugger ConnectionsThe table below shows the connections between the target and the debugger section All connections between thetarget and the debugger are tri-stated as long as the debugger is not actively using the interface Hence since thereare little contaminations of the signals the pins can be configured to anything the user wants

For further information on how to use the capabilities of the on-board debugger see 41 On-Board DebuggerOverview

Table 5-6 On-Board Debugger Connections

AVR128DB48Pin

Debugger Pin Function Shared Functionality

PB1 CDC TX UART RX (AVR128DB48 RX line) Edge connector

PB0 CDC RX UART TX (AVR128DB48 TX line) Edge connector

UPDI DBG0 UPDI Edge connector

PB3 DBG1 LED0Debug GPIO1 Edge connector

PB2 DBG2 SW0Debug GPIO0 Edge connector

PF6 DBG3 RESET Edge connector

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 31

6 Hardware Revision History and Known IssuesThis user guide is written to provide information about the latest available revision of the board The followingsections contain information about known issues a revision history of older revisions and how older revisions differfrom the latest revision

61 Identifying Product ID and RevisionThe revision and product identifier of the AVR128DB48 Curiosity Nano Board can be found in two ways Either byutilizing the MPLABreg X IDE or Atmel Studio 7 Kit Window or by looking at the sticker on the bottom side of the PCB

By connecting AVR128DB48 Curiosity Nano to a computer with MPLABreg X IDE or Atmel Studio 7 running the KitWindow will pop up The first six digits of the serial number which is listed under kit information contain the productidentifier and revision

Tip  The Kit Window can be opened in MPLABreg X IDE through the menu bar Window gt Kit Window

The same information can be found on the sticker on the bottom side of the PCB Most boards will have the identifierand revision printed in plain text as A09-nnnnrr where ldquonnnnrdquo is the identifier and ldquorrrdquo is the revision Boards withlimited space have a sticker with only a data matrix code containing the product identifier revision and serialnumber

The serial number string has the following format

nnnnrrssssssssss

n = product identifier

r = revision

s = serial number

The product identifier for AVR128DB48 Curiosity Nano is A09‑3372

62 Revision 3AVR128DB48 silicon revision A5 or later is mounted on this revision of the board

63 Revision 2Revision 2 is the initially released board revision

AVR128DB48 silicon revision A4 is mounted on this revision of the board

AVR128DB48 Curiosity NanoHardware Revision History and Known Issues

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 32

7 Document Revision HistoryDoc Rev Date Comments

A 092020 Initial document release

AVR128DB48 Curiosity NanoDocument Revision History

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 33

8 Appendix

81 SchematicFigure 8-1 AVR128DB48 Curiosity Nano Schematic

11

22

33

44

55

66

77

88

DD

CC

BB

AA

2 of

4

AV

R12

8DB

48 C

uri

osit

y N

ano

240

820

20A

VR

128D

B48

_Cur

iosi

ty_N

ano_

Targ

et_M

CU

Sch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA

Rev

isio

n

File

P

CB

Num

ber

PC

B

Rev

isio

n

Des

ign

ed w

ith

Dra

wn

By

ML

Shee

t Titl

e

Targ

et M

CU

Eng

inee

rA

H

A08

-305

71

Size

A3

A09

-337

22

Page

D

ateA

ltium

com

GN

D

VD

DIO

2

100n

C20

1

GN

D

PA5_

SPI0

_MIS

OPA

6_SP

I0_S

CK

PA7_

SPI0

_SS

PB0_

USA

RT

3_T

XPB

1_U

SAR

T3_

RX

PB2_

SW0_

DB

G2

PB3_

LE

D0_

DB

G1

PB

4P

B5

PC

0P

C1

PC

2

PC3

PC4PC5PC6PC7PD0_AIN0_TCA0_WO0PD1_AIN1_OP0_INP_TCA0_WO1PD2_AIN2_OP0_OUT_TCA0_WO2PD3_AIN3_OP0_INNPD4_AIN4_OP1_INP

PA3_TWI0_SCL

PA1_XTALHF2

UPDI_DBG0

PF5_USART2_RX

PF3

PF

2PF

1_X

TA

L32

K2

PF0_

XT

AL

32K

1P

E3_

OP

2_IN

NP

E2_

OP

2_O

UT

PE

1_O

P2_

INP

PE

0

PD5_

AIN

5_O

P1_

OU

TPD

6_A

IN6

PD7_

AIN

7_O

P1_

INN

GN

D

VC

C_T

AR

GE

T

100n

C20

2

GN

DV

CC

_TA

RG

ET

100n

C20

0

PF1_XTAL32K2

PF0_XTAL32K1

PA2_TWI0_SDA

PA0_XTALHF1

PF4_USART2_TX

PA4_SPI0_MOSI

GN

D

PA7_

SPI0

_SS

PA6_

SPI0

_SC

KPA

5_SP

I0_M

ISO

PA4_

SPI0

_MO

SIPA

3_T

WI0

_SC

LPA

2_T

WI0

_SD

A

PC

0P

C1

PC

2P

C3

PB

4P

B5

PD7_

AIN

7_O

P1_

INN

PD6_

AIN

6

PD2_

AIN

2_O

P0_

OU

T_T

CA

0_W

O2

PD1_

AIN

1_O

P0_

INP_

TC

A0_

WO

1PD

0_A

IN0_

TC

A0_

WO

0

PD5_

AIN

5_O

P1_

OU

TPD

4_A

IN4_

OP

1_IN

P

PD3_

AIN

3_O

P0_

INN

32K

Hz

Cry

stal

PB0_

USA

RT

3_T

XPB

1_U

SAR

T3_

RX

1kR203

US

ER

LE

D

VC

C_T

AR

GE

T

PF6_DBG3

PB2_SW0_DBG2

PB3_LED0_DBG1

GN

D

USE

R B

UT

TO

N

PB3_

LE

D0_

DB

G1

PB2_

SW0_

DB

G2

PB1_

USA

RT

3_R

XPB

0_U

SAR

T3_

TX

PF4_

USA

RT

2_T

XPF

5_U

SAR

T2_

RX

PF

2P

F3

PC

4P

C5

PC

6P

C7

1kR202

YELLOWLEDSML-D12Y1WT86

2 1

D200

TS604VM1-035CR13

4 2

SW20

0

GN

DV

CC

_ED

GE

GN

DG

ND

GN

DG

ND

UPD

I_D

BG

0P

F6_

DB

G3

J209

PB3_

LE

D0_

DB

G1

PB2_

SW0_

DB

G2

AV

R12

8DB

48

22u

FC

205

VC

C_E

DG

E

GN

D

DBG0

CDC_TXCDC_RX

DBG2

DBG1

DBG3

DBG2

DE

BU

GG

ER

CO

NN

EC

TIO

NS

DBG1

DBG3DBG0

VOFF

ID_SYS

ID_SYS

VOFF

TA

RG

ET

BU

LK

VC

C_T

AR

GE

TR

ESE

T P

ull

VB

US

CD

C R

X3

CD

C T

X4

DB

G1

5

DB

G2

6

0 T

X7

1 R

X8

2 SD

A9

3 S

CL

10

4 M

OSI

11

5 M

ISO

12

6 S

CK

13

7 S

S14

GN

D15

0 (T

X)

16

1 (R

X)

17

218

319

020

GN

D24

DB

G3

54

DB

G0

53

GN

D52

VC

C51

PW

M 3

46

AD

C 2

45

AD

C 1

44

AD

C 0

43

GN

D42

438

434

GN

D33

AD

C 7

50

AD

C 6

49

AD

C 5

48

PW

M 4

47

DE

BU

GG

ER

TAR

GE

T

ID2

VO

FF

55

121

222

323

025

126

227

328

429

530

631

732

535

636

737

539

640

741

RE

SER

VE

D1

VB

US

56

CN

AN

O56

-pin

edg

e co

nnec

tor

J200

J201

J203

J205

J206

J202

J204

PF1_

XT

AL

32K

2PF

0_X

TA

L32

K1

NC

XOUT

XIN

47kR200

AV

R12

8DB

48

UPD

I

GPI

O1

GPI

O0

RE

SET

DB

G0

DB

G1

DB

G2

DB

G3

Deb

ugge

r

CD

C T

X

CD

C R

X

UA

RT

3 R

X

UA

RT

3 T

X

VT

G1

8V -

55

VPB

3

PB

2

PF

6

UP

DI

PB

0

PB

1

Nam

eP

in

PE

3_O

P2_

INN

PE

2_O

P2_

OU

TP

E1_

OP

2_IN

PP

E0

J207

J208

PF

0P

F1

PA5

1

PA6

2

PA7

3

PB0

4

PB1

5

PB2

6

PB3

7

PB4

8

PB5

9

PC0

10

PC1

11

PC2

12

PC313

VDDIO214

GND15

PC416

PC517

PC618

PC719

PD020

PD121

PD222

PD323

PD424

PD5

25

PD6

26

PD7

27

AVDD

28

GND

29

PE0

30

PE1

31

PE2

32

PE3

33

XTAL32K1PF0

34

XTAL32K2PF1

35

PF2

36

PF337

PF438

PF539

PF640

UPDI41

VDD42

GND43

XTALHF1PA044

XTALHF2PA145

PA246

PA347

PA448

AV

R12

8DB

48-I

PT

U20

0

0RR204

GN

D

VC

C_T

AR

GE

T

VDDIO2

GND

J210

J211

82p

C20

48

2pC

203

GN

DG

ND

16M

Hz

Cry

stal

J217

XHFOUT

XHFIN

J214

J213

GN

D

J215

J216

PA0_XTALHF1

PA1_XTALHF2

PA0_

XT

AL

HF

1PA

1_X

TA

LH

F2

PA0

PA1

1 2

J212 N

M

15pF

C20

615

pFC

207

13

24 16

000

MH

zV

XM

7-90

40-1

6M00

0000

0TR

XC

201

GN

D32

768

kHz

VM

K3-

9001

-32K

7680

000T

R

XC

200

CDC_TX

CDC_RX

CD

C_T

XC

DC

_RX

Cry

stal

dat

ashe

et

Ccr

ysta

l = 9

pFm

ax E

SR

= 7

0kO

hmA

ccur

acy

plusmn20p

pm

AV

R48

DB

128

data

shee

tC

xin

= 4

0pF

(ty

pica

l val

ue)

Cxo

ut =

40

pF (

typi

cal v

alue

)C

lasymp1

( (1

40

pF)+

(1

40p

F)

)asymp

20p

FM

axim

um L

oad

= 1

25p

FM

axim

um E

SR =

50k

Ohm

Est

imat

ed C

pcb

= 0

5pF

Est

imat

ed lo

adC

= 2

(C

crys

tal-

Cpa

ra -

Cpc

b)C

= 2

(9p

F -

20

pF -

05

pF)

C =

13

0pF

Sele

cted

in d

esig

n af

ter

veri

fica

tion

C=

82

pF8

2pF

NO

TE

on

UA

RT

CD

C

RX

TX

onth

ehe

ader

deno

tes

the

inpu

tout

put d

irec

tion

of th

e si

gnal

resp

ectiv

e to

its

sou

rce

CD

C T

X is

out

put f

rom

the

DE

BU

GG

ER

C

DC

RX

is in

put t

o th

e D

EB

UG

GE

R

TX

is o

utpu

t fro

m th

e T

AR

GE

T d

evic

eR

X is

inpu

t to

the

TA

RG

ET

dev

ice

NO

TE

on

I2C

No

pull

-ups

on

boar

d P

ull-

ups

shou

ld b

em

ount

ed c

lose

to s

lave

dev

ice(

s)

WA

RN

ING

M

ake

sure

tore

mov

e R

204

befo

reap

plyi

ng p

ower

to J

212

Cry

stal

dat

ashe

et

Ccr

ysta

l = 1

2pF

max

ES

R =

60O

hmA

ccur

acy

plusmn30p

pm

AV

R48

DB

128

data

shee

tC

xin

= 4

0pF

(ty

pica

l val

ue)

Cxo

ut =

40

pF (

typi

cal v

alue

)C

lasymp1

( (1

40

pF)+

(1

40p

F)

)asymp

20p

FM

axim

um L

oad

= 1

25p

FM

axim

um E

SR =

k

Ohm

Est

imat

ed C

pcb

= 0

5pF

Est

imat

ed lo

adC

= 2

(C

crys

tal-

Cpa

ra -

Cpc

b)C

= 2

(12

pF -

20

pF -

05

pF)

C =

19

0pF

Sele

cted

in d

esig

n af

ter

veri

fica

tion

C=

15p

F1

5pF

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 34

11

22

33

44

55

66

77

88

DD

CC

BB

AA

3 of

4

AV

R12

8DB

48 C

uri

osit

y N

ano

2020

-06-

26A

VR

128D

B48

_Cur

iosi

ty_N

ano_

Deb

ugge

rSch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA

Rev

isio

n

Fil

eP

CB

Num

ber

PC

B

Rev

isio

n

Des

ign

ed w

ith

Dra

wn

By

ML

Shee

t Tit

le

Deb

ugge

r

Eng

inee

rA

H

A08

-305

71

Size

A3

A09

-337

22

Page

D

ateA

ltium

com

DE

BU

GG

ER

USB

MIC

RO

-B C

ON

NE

CT

OR

GN

D

USB

D_P

USB

D_N

100n

C10

7

100n

C10

8

1kR

107

VC

C_P

3V3

SRST

STA

TU

S_L

ED

SHIE

LD

VB

US

VC

C_P

3V3

GN

D

TP

100

Test

poin

t Arr

ay

12

34

56

78

910

TC

KT

DO

TM

SV

sup

TD

IG

ND

TR

STSR

STV

Tre

fG

ND

J102

GN

D

47u

F

C10

0

DBG0

DB

G0

21

GR

EE

N L

ED

SML

-P12

MT

T86

R

D10

0

VBUS

1

D-

2

D+

3

GND

5

SHIELD1

6

SHIELD2

7

ID

4

SHIELD3

8

SHIELD4

9 MU

-MB

0142

AB

2-26

9

J105

PAD

33

PA00

1

PA01

2

PA02

3

PA03

4

GND 10VDDANA 9

PA04

5

PA05

6

PA06

7

PA07

8

PA08 11

PA09 12

PA10 13

PA11 14

PA14 15

PA15 16

PA16

17

PA17

18

PA18

19

PA19

20

PA22

21

USB_SOFPA23

22

USB_DMPA24

23

USB_DPPA25

24

PA2725 RESETN26 PA2827 GND28 VDDCORE29 VDDIN30 SWDCLKPA3031 SWDIOPA3132

SAM

D21

E18

A-M

UT

U10

0

VOUT

1

VOUT

2

GND 3

EN

4

VIN

6

NC

5

EP 7

MIC

5528

-33

YM

TU

101

VC

C_P

3V3

GN

D

USB

D_P

USB

D_N

GN

D

1uC

106

VC

C_M

CU

_CO

RE

VC

C_P

3V3

VC

C_P

3V3

22u

FC

101

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

3

VC

C_P

3V3

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

4

VC

C_P

3V3

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

5

VC

C_P

3V3

GN

D

GN

D GN

D

GN

D

VC

C_E

DG

E

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

7

VC

C_P

3V3

GN

DDBG2

DB

G3_

CT

RL

S1_0

_TX

S1_1

_RX

S0_2

_TX

DA

CV

TG

_AD

C

RE

SER

VE

D

S0_3

_CL

K

DBG0_CTRL

CD

C_T

X_C

TR

L

BO

OT

DE

BU

GG

ER

PO

WE

RS

TA

TU

S L

ED

EN

1

BYP

6

VOUT

4

GND

2

VIN

3

NCADJ

5

GND

7

MIC

5353

U10

2

100n

C10

2

GN

D

GN

D

47kR101

27kR104 G

ND

33k

R10

6

22u

F

C10

3 GN

D

1kR

108

J100

VC

C_L

EV

EL

VC

C_R

EG

UL

AT

OR

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

6

VC

C_P

3V3

GN

DDBG1

CD

C_R

X

CD

C_T

X

DBG3

DBG1_CTRL

DE

BU

GG

ER

RE

GU

LA

TO

R

REG_ENABLE

RE

G_E

NA

BL

E

47kR103

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

47kR102

47kR105

SWC

LK

GN

D

47kR100 G

ND

DB

G2

S0_0

_RX

DB

G1_

CT

RL

DB

G0_

CT

RL

DB

G3

OP

EN

DR

AIN

TA

RG

ET

AD

JUST

AB

LE

RE

GU

LA

TO

R

SRST

DE

BU

GG

ER

TE

ST

PO

INT DBG2_CTRL

VO

FF

CD

C_R

X_C

TR

L

47kR109

DB

G1

CD

C_T

X_C

TR

L

CD

C_R

X_C

TR

L

SWC

LK

REG_ADJUST

DBG2_GPIO

DB

G3_

CT

RL

DB

G2_

CT

RL

UP

DI

UPD

I

GPI

O

GPI

O

RE

SET

Sign

al

DB

G0

DB

G1

DB

G2

DB

G3

ICS

PIn

terf

ace

DA

T

CL

K

GPI

O

MC

LR

DB

G3

CD

C T

X

CD

C R

X

UA

RT

RX

UA

RT

TX

UA

RT

RX

UA

RT

TX

TA

RG

ET

TA

RG

ET

1kR

110

VBUS_ADC

1

23

DM

N65

D8L

FB

Q10

1

VC

C-

-

ID_SYS

VOFF

1kR112

VC

C_P

3V3

VT

G_A

DC

DA

C

MIC

9416

3

VIN

B2

VOUT

A1

VIN

A2

EN

C2

GND

C1

VOUT

B1

U10

8

GN

D

ID_S

YS

VT

G_E

N

VTG_EN

VBUS_ADC

SWD

IO

ID_S

YS

TP

101

GN

DSW

DIO

VO

FF

47kR111 G

ND

ID P

IN

MC

3621

3

F10

0

VC

C_V

BU

S

VC

C_V

BU

S

VC

C_V

BU

S

J101

VC

C_T

AR

GE

T

47k

R11

3

CDC_TX

CDC_RX

Prog

ram

min

g co

nnec

tor

for

fact

ory

prog

ram

min

g of

DE

BU

GG

ER

MIC

5528

V

in 2

5V

to 5

5V

Vou

t F

ixed

33

VIm

ax 5

00m

AD

ropo

ut 2

60m

V

500

mA

MIC

5353

V

in 2

6V

to 6

VV

out

12

5V to

51

VIm

ax 5

00m

AD

ropo

ut (

typi

cal)

50m

V

150m

A 1

60m

V

500

mA

Acc

urac

y 2

in

itia

lT

herm

al s

hutd

own

and

curr

ent l

imit

Max

imum

out

put v

olta

ge is

lim

ited

by

the

inpu

t vol

tage

and

the

drop

out v

olta

ge in

the

regu

lato

r(V

max

= V

in -

dro

pout

)

J100

-

Cut

-str

ap u

sed

for

full

sep

arat

ion

of ta

rget

pow

er f

rom

the

leve

l shi

fter

s an

don

-boa

rd r

egul

ator

s-

For

cur

rent

mea

sure

men

ts u

sing

the

on-b

oard

pow

er s

uppl

y th

isst

rap

mus

t be

cut a

nd a

nam

met

er c

onne

cted

acr

oss

- F

or c

urre

nt m

easu

rem

ents

usi

ng a

n ex

tern

al p

ower

sup

ply

this

str

ap c

ould

be

cut f

or m

ore

accu

rate

mea

sure

men

ts L

eaka

ge b

ack

thro

ugh

the

swit

ch is

in th

e m

icro

am

pere

ran

ge

PT

C R

eset

tabl

e fu

se

Hol

d cu

rren

t 5

00m

AT

rip

curr

ent

100

0mA

Adj

usta

ble

outp

ut a

nd li

mit

atio

ns

- T

he D

EB

UG

GE

R c

an a

djus

t the

out

put v

olta

ge o

f th

e re

gula

tor

betw

een

125

V a

nd 5

1V

to th

e ta

rget

-

The

vol

tage

out

put i

s li

mit

ed b

y th

e in

put (

US

B)

whi

ch c

an v

ary

betw

een

440

V to

52

5V-

The

leve

l shi

fter

s ha

ve a

min

imal

vol

tage

leve

l of

165

V a

nd w

ill l

imit

the

min

imum

ope

ratin

g vo

ltage

all

owed

for

the

targ

et to

sti

ll a

llow

com

mun

icat

ion

- T

he M

IC94

163

has

a m

inim

al v

olat

ege

leve

l of

170

V a

nd w

ill l

imit

the

min

imum

vol

tage

del

iver

ed to

the

targ

et

- F

irm

war

e co

nfig

urat

ion

wil

l lim

it th

e vo

ltage

ran

ge to

be

wit

hin

the

the

targ

et s

peci

fica

tion

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 35

82 Assembly DrawingFigure 8-2 AVR128DB48 Curiosity Nano Assembly Drawing Top

+

Cb

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20001 PAC20002 COC200

PAC20101 PAC20102 COC201

PAC20201 PAC20202 COC202 PAC20301

PAC20302 COC203

PAC20401

PAC20402 COC204

PAC20502

PAC20501 COC205

PAC20601

PAC20602 COC206 PAC20701

PAC20702 COC207 PAD10002 PAD10001 COD100

PAD20002

PAD20001 COD200

PAF10002

PAF10001 COF100

PAJ10002 PAJ10001 COJ100

PAJ10101 PAJ10102 COJ101

PAJ10201

PAJ10202

PAJ10203

PAJ10204

PAJ10205

PAJ10206 COJ102

PAJ10506

PAJ10507 PAJ10509

PAJ10508 PAJ105010

PAJ105011 PAJ10505

PAJ10504

PAJ10503

PAJ10502

PAJ10501

PAJ10500

COJ105

PAJ200056 PAJ200053

PAJ200028 PAJ20002 PAJ20001

PAJ200051 PAJ200050 PAJ200052 PAJ200049 PAJ200048 PAJ200047 PAJ200046 PAJ200045 PAJ200044 PAJ200043 PAJ200042 PAJ200041 PAJ200040 PAJ200039 PAJ200038 PAJ200037 PAJ200036 PAJ200035 PAJ200034 PAJ200033 PAJ200032 PAJ200031 PAJ200030 PAJ200029

PAJ20003 PAJ20004 PAJ20005 PAJ20006 PAJ20007 PAJ20008 PAJ20009 PAJ200010 PAJ200011 PAJ200012 PAJ200013 PAJ200014 PAJ200015 PAJ200016 PAJ200017 PAJ200018 PAJ200019 PAJ200020 PAJ200021 PAJ200022 PAJ200023 PAJ200026 PAJ200025 PAJ200024 PAJ200027

PAJ200054 PAJ200055 PAJ20000

COJ200

PAJ20102 PAJ20101 COJ201

PAJ20202 PAJ20201 COJ202

PAJ20302 PAJ20301 COJ203

PAJ20402 PAJ20401 COJ204

PAJ20502 PAJ20501 COJ205

PAJ20602 PAJ20601 COJ206 PAJ20702 PAJ20701 COJ207

PAJ20802 PAJ20801 COJ208

PAJ20902 PAJ20901 COJ209

PAJ21001 PAJ21002 PAJ21005 COJ210

PAJ21102 PAJ21101 PAJ21105 COJ211

PAJ21202 PAJ21201 COJ212

PAJ21301 PAJ21302 PAJ21305 COJ213

PAJ21401 PAJ21402 PAJ21405 COJ214

PAJ21502 PAJ21501 COJ215

PAJ21602 PAJ21601 COJ216 PAJ21702 PAJ21701 COJ217

COLABEL1

PAQ10101 PAQ10102 PAQ10103 PAQ10100

COQ101 PAR10002

PAR10001 COR100 PAR10101 PAR10102 COR101

PAR10202 PAR10201 COR102

PAR10302 PAR10301 COR103

PAR10401 PAR10402 COR104

PAR10502

PAR10501 COR105

PAR10601 PAR10602 COR106

PAR10702 PAR10701 COR107

PAR10801

PAR10802 COR108

PAR10901 PAR10902 COR109

PAR11001 PAR11002 COR110

PAR11101 PAR11102 COR111

PAR11201 PAR11202 COR112

PAR11302 PAR11301 COR113

PAR20001 PAR20002 COR200 PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203 PAR20401 PAR20402 COR204

PASW20003

PASW20004 PASW20002

PASW20001 COSW200

PATP10001 COTP100

PATP10101 COTP101 PAU100033

PAU100032 PAU100031 PAU100030 PAU100029 PAU100028 PAU100027 PAU100026 PAU100025 PAU100024

PAU100023

PAU100022

PAU100021

PAU100020

PAU100019

PAU100018

PAU100017 PAU100016 PAU100015 PAU100014 PAU100013 PAU100012 PAU100011 PAU100010

PAU10001

PAU10002

PAU10003

PAU10004

PAU10005

PAU10006

PAU10007

PAU10008 PAU10009

COU100

PAU10107

PAU10104 PAU10105 PAU10106

PAU10103 PAU10102 PAU10101 PAU10100 COU101 PAU10207

PAU10204 PAU10205

PAU10206

PAU10203 PAU10202

PAU10201

COU102

PAU10306

PAU10305 PAU10304 PAU10303

PAU10302 PAU10301 PAU10300

COU103

PAU10406

PAU10405 PAU10404 PAU10403

PAU10402 PAU10401 PAU10400

COU104

PAU10506

PAU10505 PAU10504 PAU10503

PAU10502 PAU10501 PAU10500

COU105

PAU10606

PAU10605 PAU10604 PAU10603

PAU10602 PAU10601 PAU10600

COU106

PAU10706

PAU10705 PAU10704 PAU10703

PAU10702 PAU10701 PAU10700

COU107

PAU1080A1 PAU1080A2

PAU1080B1 PAU1080B2

PAU1080C1 PAU1080C2 COU108

PAU20001 PAU20002 PAU20003 PAU20004 PAU20005 PAU20006 PAU20007 PAU20008 PAU20009 PAU200010 PAU200011 PAU200012 PAU200013 PAU200014 PAU200015 PAU200016 PAU200017 PAU200018 PAU200019 PAU200020 PAU200021 PAU200022 PAU200023 PAU200024 PAU200025 PAU200026 PAU200027 PAU200028 PAU200029 PAU200030 PAU200031 PAU200032 PAU200033 PAU200034 PAU200035 PAU200036

PAU200037 PAU200038 PAU200039 PAU200040 PAU200041 PAU200042 PAU200043 PAU200044 PAU200045 PAU200046 PAU200047 PAU200048

COU200

PAXC20001

PAXC20002 COXC200

PAXC20101 PAXC20102

PAXC20103 PAXC20104 COXC201

Figure 8-3 AVR128DB48 Curiosity Nano Assembly Drawing Bottom

tcR

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20001 PAC20002 COC200

PAC20101 PAC20102 COC201

PAC20201 PAC20202 COC202 PAC20301

PAC20302 COC203

PAC20401

PAC20402 COC204

PAC20502

PAC20501 COC205

PAC20601

PAC20602 COC206 PAC20701

PAC20702 COC207 PAD10002 PAD10001 COD100

PAD20002

PAD20001 COD200

PAF10002

PAF10001 COF100

PAJ10002 PAJ10001 COJ100

PAJ10101 PAJ10102 COJ101

PAJ10201

PAJ10202

PAJ10203

PAJ10204

PAJ10205

PAJ10206 COJ102

PAJ10506

PAJ10507 PAJ10509

PAJ10508 PAJ105010

PAJ105011 PAJ10505

PAJ10504

PAJ10503

PAJ10502

PAJ10501

PAJ10500

COJ105

PAJ200056 PAJ200053

PAJ200028 PAJ20002 PAJ20001

PAJ200051 PAJ200050 PAJ200052 PAJ200049 PAJ200048 PAJ200047 PAJ200046 PAJ200045 PAJ200044 PAJ200043 PAJ200042 PAJ200041 PAJ200040 PAJ200039 PAJ200038 PAJ200037 PAJ200036 PAJ200035 PAJ200034 PAJ200033 PAJ200032 PAJ200031 PAJ200030 PAJ200029

PAJ20003 PAJ20004 PAJ20005 PAJ20006 PAJ20007 PAJ20008 PAJ20009 PAJ200010 PAJ200011 PAJ200012 PAJ200013 PAJ200014 PAJ200015 PAJ200016 PAJ200017 PAJ200018 PAJ200019 PAJ200020 PAJ200021 PAJ200022 PAJ200023 PAJ200026 PAJ200025 PAJ200024 PAJ200027

PAJ200054 PAJ200055 PAJ20000

COJ200

PAJ20102 PAJ20101 COJ201

PAJ20202 PAJ20201 COJ202

PAJ20302 PAJ20301 COJ203

PAJ20402 PAJ20401 COJ204

PAJ20502 PAJ20501 COJ205

PAJ20602 PAJ20601 COJ206 PAJ20702 PAJ20701 COJ207

PAJ20802 PAJ20801 COJ208

PAJ20902 PAJ20901 COJ209

PAJ21001 PAJ21002 PAJ21005 COJ210

PAJ21102 PAJ21101 PAJ21105 COJ211

PAJ21202 PAJ21201 COJ212

PAJ21301 PAJ21302 PAJ21305 COJ213

PAJ21401 PAJ21402 PAJ21405 COJ214

PAJ21502 PAJ21501 COJ215

PAJ21602 PAJ21601 COJ216 PAJ21702 PAJ21701 COJ217

COLABEL1

PAQ10101 PAQ10102 PAQ10103 PAQ10100

COQ101 PAR10002

PAR10001 COR100 PAR10101 PAR10102 COR101

PAR10202 PAR10201 COR102

PAR10302 PAR10301 COR103

PAR10401 PAR10402 COR104

PAR10502

PAR10501 COR105

PAR10601 PAR10602 COR106

PAR10702 PAR10701 COR107

PAR10801

PAR10802 COR108

PAR10901 PAR10902 COR109

PAR11001 PAR11002 COR110

PAR11101 PAR11102 COR111

PAR11201 PAR11202 COR112

PAR11302 PAR11301 COR113

PAR20001 PAR20002 COR200 PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203 PAR20401 PAR20402 COR204

PASW20003

PASW20004 PASW20002

PASW20001 COSW200

PATP10001 COTP100

PATP10101 COTP101 PAU100033

PAU100032 PAU100031 PAU100030 PAU100029 PAU100028 PAU100027 PAU100026 PAU100025 PAU100024

PAU100023

PAU100022

PAU100021

PAU100020

PAU100019

PAU100018

PAU100017 PAU100016 PAU100015 PAU100014 PAU100013 PAU100012 PAU100011 PAU100010

PAU10001

PAU10002

PAU10003

PAU10004

PAU10005

PAU10006

PAU10007

PAU10008 PAU10009

COU100

PAU10107

PAU10104 PAU10105 PAU10106

PAU10103 PAU10102 PAU10101 PAU10100 COU101 PAU10207

PAU10204 PAU10205

PAU10206

PAU10203 PAU10202

PAU10201

COU102

PAU10306

PAU10305 PAU10304 PAU10303

PAU10302 PAU10301 PAU10300

COU103

PAU10406

PAU10405 PAU10404 PAU10403

PAU10402 PAU10401 PAU10400

COU104

PAU10506

PAU10505 PAU10504 PAU10503

PAU10502 PAU10501 PAU10500

COU105

PAU10606

PAU10605 PAU10604 PAU10603

PAU10602 PAU10601 PAU10600

COU106

PAU10706

PAU10705 PAU10704 PAU10703

PAU10702 PAU10701 PAU10700

COU107

PAU1080A1 PAU1080A2

PAU1080B1 PAU1080B2

PAU1080C1 PAU1080C2 COU108

PAU20001 PAU20002 PAU20003 PAU20004 PAU20005 PAU20006 PAU20007 PAU20008 PAU20009 PAU200010 PAU200011 PAU200012 PAU200013 PAU200014 PAU200015 PAU200016 PAU200017 PAU200018 PAU200019 PAU200020 PAU200021 PAU200022 PAU200023 PAU200024 PAU200025 PAU200026 PAU200027 PAU200028 PAU200029 PAU200030 PAU200031 PAU200032 PAU200033 PAU200034 PAU200035 PAU200036

PAU200037 PAU200038 PAU200039 PAU200040 PAU200041 PAU200042 PAU200043 PAU200044 PAU200045 PAU200046 PAU200047 PAU200048

COU200

PAXC20001

PAXC20002 COXC200

PAXC20101 PAXC20102

PAXC20103 PAXC20104 COXC201

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 36

83 Curiosity Nano Base for Click boardstrade

Figure 8-4 AVR128DB48 Curiosity Nano Pinout Mapping

US

B

DE

BU

GG

ER

AV

R1

28

DB

48

SW

0

LE

D0

PS

LE

DNC

NC

ID

ID

CDC RX

CDCRX

USART3 TX

PB0

CDC TX

CDCTX

USART3 RX

PB1

DBG1

DBG1

PB3

LED0

DBG2

DBG2

PB2

SW0

PF4

PF4

USART2 TX

PF5

PF5

USART2 RX

PA2

PA2

TWI0 SDA

PA3

PA3

TWI0 SCL

PA4

PA4

SPI0 MOSI

PA5

PA5

SPI0 MISO

PA6

PA6

SPI0 SCK

PA7

PA7

SPI0 SS

GND

GND

PB0

PB0

USART3 TX

CDC RX

PB1

PB1

USART3 RX

CDC TX

PF2

PF2

PF3

PF3

PC0

PC0

PC1

PC1

PC2

PC2

PC3

PC3

GND

GND

(PA0)

(PA0)

XTALHF1

(PA1)

(PA1)

XTALHF2

PB2

PB2

SW0

PB3

PB3

LED0

VBUS

VBUS

VOFF

VOFF

DBG3

DBG3

PF6

DBG0

DBG0

UPDI

GND

GND

VTG

VTG

PD6

PD6

AIN6

PD3

PD3

AIN3

OP0 INN

PD2

PD2

AIN2

OP0 OUT

TCA0 WO2

PD1

PD1

AIN1

OP0 INP

TCA0 WO1

PD0

PD0

AIN0

TCA0 WO0

PD7

PD7

AIN7

OP1 INN

PD5

PD5

AIN5

OP1 OUT

PD4

PD4

AIN4

OP1 INP

GND

GND

PE3

PE3

OP2 INN

PE2

PE2

OP2 OUT

PE1

PE1

OP2 INP

PE0

PE0

PC7

PC7

PC6

PC6

PC5

PC5

PC4

PC4

GND

GND

PB5

PB5

PB4

PB4

(PF1)

(PF1)

XTAL32K2

(PF0)

(PF0)

XTAL32K1

DE

BU

GG

ER

AV

R1

28

DB

48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

MVIO

OPAMP

Shared pin

AV

R1

28

DB

48

Cu

rio

sity

Na

no

1

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

2

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

3

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

Xp

lain

ed

Pro

Ext

en

sio

nE

XT

11

2

19

20

Cu

rio

sity

Na

no

Ba

sefo

r cl

ick

bo

ard

sT

M

PD4

PD0

PD6

PD3

PA7

PF5

PA6

PF4

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

PD5

PD1

PF3

PF2

PE2

PB1

PA6

PB0

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

PD7

PD2

PE1

PE0

PE3

PF5

PA6

PF4

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

ID

GND

PD5

PD7

PF3

PE1

PD1

PD2

PF2

PE3

PA2

PA3

PB1

PB0

PE2

PA4

PA5

PA6

GND

+33V

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 37

84 Disconnecting the On-board DebuggerThe on-board debugger and level shifters can be completely disconnected from the AVR128DB48

The block diagram below shows all connections between the debugger and the AVR128DB48 The rounded boxesrepresent connections to the board edge The signal names shown are also printed in silkscreen on the bottom sideof the board

To disconnect the debugger cut the straps shown in Figure 8-6

Attention  Cutting the GPIO straps to the on-board debugger will disable the virtual serial portprogramming debugging and data streaming Cutting the power supply strap will disconnect the on-boardpower supply

Tip  Any connection that is cut can be reconnected using solder Alternatively a 0Ω 0402 resistor can bemounted

Tip  When the debugger is disconnected an external debugger can be connected to holes shown in Figure 8-6 Details about connecting an external debugger are described in 46 Connecting ExternalDebuggers

Figure 8-5  On-Board Debugger Connections Block Diagram

DE

BU

GG

ER

TARGETLevel-Shift

PA04PA06PA07PA08PA16PA00PA01

USB

DIR x 5

VCC_P3V3

VBUS

VC

C_L

EV

EL

VC

C_T

AR

GE

TDBG0DBG1DBG2DBG3CDC TXCDC RX

CDC RX

CDC TX

DBG3

DBG2

DBG1

DBG0

GPIO straps

LDO

VOFF

LDO

VBUS VTG

VCC_EDGE

Power Supply strap Target Power strap

UART RXUART TX

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 38

Figure 8-6 On-Board Debugger Connection Cut Straps

GPIO straps (bottom side) Power Supply strap (top side)

85 Getting Started with IARIAR Embedded Workbenchreg for AVRreg is a proprietary high-efficiency compiler not based on GCC Programming anddebugging of AVR128DB48 Curiosity Nano is supported in IARtrade Embedded Workbench for AVR using the Atmel-ICEinterface Some initial settings must be set up in the project to get the programming and debugging to work

The following steps will explain how to get your project ready for programming and debugging

1 Make sure you have opened the project you want to configure Open the OPTIONS dialog for the project2 In the category General Options select the Target tab Select the device for the project or if not listed the

core of the device as shown in Figure 8-73 In the category Debugger select the Setup tab Select Atmel-ICE as the driver as shown in Figure 8-84 In the category Debugger gt Atmel-ICE select the Atmel-ICE 1 tab Select UPDI as the interface and

optionally select the UPDI frequency as shown in Figure 8-9

Info  If the selection of Debug Port (mentioned in step 4) is grayed out the interface is preselected andthe user can skip this configuration step

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 39

Figure 8-7 Select Target Device

Figure 8-8 Select Debugger

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 40

Figure 8-9 Configure Interface

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 41

The Microchip Website

Microchip provides online support via our website at wwwmicrochipcom This website is used to make files andinformation easily available to customers Some of the content available includes

bull Product Support ndash Data sheets and errata application notes and sample programs design resources userrsquosguides and hardware support documents latest software releases and archived software

bull General Technical Support ndash Frequently Asked Questions (FAQs) technical support requests onlinediscussion groups Microchip design partner program member listing

bull Business of Microchip ndash Product selector and ordering guides latest Microchip press releases listing ofseminars and events listings of Microchip sales offices distributors and factory representatives

Product Change Notification Service

Microchiprsquos product change notification service helps keep customers current on Microchip products Subscribers willreceive email notification whenever there are changes updates revisions or errata related to a specified productfamily or development tool of interest

To register go to wwwmicrochipcompcn and follow the registration instructions

Customer Support

Users of Microchip products can receive assistance through several channels

bull Distributor or Representativebull Local Sales Officebull Embedded Solutions Engineer (ESE)bull Technical Support

Customers should contact their distributor representative or ESE for support Local sales offices are also available tohelp customers A listing of sales offices and locations is included in this document

Technical support is available through the website at wwwmicrochipcomsupport

Microchip Devices Code Protection Feature

Note the following details of the code protection feature on Microchip devices

bull Microchip products meet the specifications contained in their particular Microchip Data Sheetbull Microchip believes that its family of products is secure when used in the intended manner and under normal

conditionsbull There are dishonest and possibly illegal methods being used in attempts to breach the code protection features

of the Microchip devices We believe that these methods require using the Microchip products in a manneroutside the operating specifications contained in Microchiprsquos Data Sheets Attempts to breach these codeprotection features most likely cannot be accomplished without violating Microchiprsquos intellectual property rights

bull Microchip is willing to work with any customer who is concerned about the integrity of its codebull Neither Microchip nor any other semiconductor manufacturer can guarantee the security of its code Code

protection does not mean that we are guaranteeing the product is ldquounbreakablerdquo Code protection is constantlyevolving We at Microchip are committed to continuously improving the code protection features of our productsAttempts to break Microchiprsquos code protection feature may be a violation of the Digital Millennium Copyright ActIf such acts allow unauthorized access to your software or other copyrighted work you may have a right to suefor relief under that Act

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 42

Legal Notice

Information contained in this publication is provided for the sole purpose of designing with and using Microchipproducts Information regarding device applications and the like is provided only for your convenience and may besuperseded by updates It is your responsibility to ensure that your application meets with your specifications

THIS INFORMATION IS PROVIDED BY MICROCHIP ldquoAS ISrdquo MICROCHIP MAKES NO REPRESENTATIONS ORWARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED WRITTEN OR ORAL STATUTORY OROTHERWISE RELATED TO THE INFORMATION INCLUDING BUT NOT LIMITED TO ANY IMPLIEDWARRANTIES OF NON-INFRINGEMENT MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSEOR WARRANTIES RELATED TO ITS CONDITION QUALITY OR PERFORMANCE

IN NO EVENT WILL MICROCHIP BE LIABLE FOR ANY INDIRECT SPECIAL PUNITIVE INCIDENTAL ORCONSEQUENTIAL LOSS DAMAGE COST OR EXPENSE OF ANY KIND WHATSOEVER RELATED TO THEINFORMATION OR ITS USE HOWEVER CAUSED EVEN IF MICROCHIP HAS BEEN ADVISED OF THEPOSSIBILITY OR THE DAMAGES ARE FORESEEABLE TO THE FULLEST EXTENT ALLOWED BY LAWMICROCHIPS TOTAL LIABILITY ON ALL CLAIMS IN ANY WAY RELATED TO THE INFORMATION OR ITS USEWILL NOT EXCEED THE AMOUNT OF FEES IF ANY THAT YOU HAVE PAID DIRECTLY TO MICROCHIP FORTHE INFORMATION Use of Microchip devices in life support andor safety applications is entirely at the buyerrsquos riskand the buyer agrees to defend indemnify and hold harmless Microchip from any and all damages claims suits orexpenses resulting from such use No licenses are conveyed implicitly or otherwise under any Microchip intellectualproperty rights unless otherwise stated

Trademarks

The Microchip name and logo the Microchip logo Adaptec AnyRate AVR AVR logo AVR Freaks BesTimeBitCloud chipKIT chipKIT logo CryptoMemory CryptoRF dsPIC FlashFlex flexPWR HELDO IGLOO JukeBloxKeeLoq Kleer LANCheck LinkMD maXStylus maXTouch MediaLB megaAVR Microsemi Microsemi logo MOSTMOST logo MPLAB OptoLyzer PackeTime PIC picoPower PICSTART PIC32 logo PolarFire Prochip DesignerQTouch SAM-BA SenGenuity SpyNIC SST SST Logo SuperFlash Symmetricom SyncServer TachyonTempTrackr TimeSource tinyAVR UNIO Vectron and XMEGA are registered trademarks of Microchip TechnologyIncorporated in the USA and other countries

APT ClockWorks The Embedded Control Solutions Company EtherSynch FlashTec Hyper Speed ControlHyperLight Load IntelliMOS Libero motorBench mTouch Powermite 3 Precision Edge ProASIC ProASIC PlusProASIC Plus logo Quiet-Wire SmartFusion SyncWorld Temux TimeCesium TimeHub TimePictra TimeProviderVite WinPath and ZL are registered trademarks of Microchip Technology Incorporated in the USA

Adjacent Key Suppression AKS Analog-for-the-Digital Age Any Capacitor AnyIn AnyOut BlueSky BodyComCodeGuard CryptoAuthentication CryptoAutomotive CryptoCompanion CryptoController dsPICDEMdsPICDEMnet Dynamic Average Matching DAM ECAN EtherGREEN In-Circuit Serial Programming ICSPINICnet Inter-Chip Connectivity JitterBlocker KleerNet KleerNet logo memBrain Mindi MiWi MPASM MPFMPLAB Certified logo MPLIB MPLINK MultiTRAK NetDetach Omniscient Code Generation PICDEMPICDEMnet PICkit PICtail PowerSmart PureSilicon QMatrix REAL ICE Ripple Blocker SAM-ICE Serial QuadIO SMART-IS SQI SuperSwitcher SuperSwitcher II Total Endurance TSHARC USBCheck VariSenseViewSpan WiperLock Wireless DNA and ZENA are trademarks of Microchip Technology Incorporated in the USAand other countries

SQTP is a service mark of Microchip Technology Incorporated in the USA

The Adaptec logo Frequency on Demand Silicon Storage Technology and Symmcom are registered trademarks ofMicrochip Technology Inc in other countries

GestIC is a registered trademark of Microchip Technology Germany II GmbH amp Co KG a subsidiary of MicrochipTechnology Inc in other countries

All other trademarks mentioned herein are property of their respective companiescopy 2020 Microchip Technology Incorporated Printed in the USA All Rights Reserved

ISBN 978-1-5224-6667-3

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 43

Quality Management SystemFor information regarding Microchiprsquos Quality Management Systems please visit wwwmicrochipcomquality

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 44

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupportwwwmicrochipcomsupportWeb AddresswwwmicrochipcomAtlantaDuluth GATel 678-957-9614Fax 678-957-1455Austin TXTel 512-257-3370BostonWestborough MATel 774-760-0087Fax 774-760-0088ChicagoItasca ILTel 630-285-0071Fax 630-285-0075DallasAddison TXTel 972-818-7423Fax 972-818-2924DetroitNovi MITel 248-848-4000Houston TXTel 281-894-5983IndianapolisNoblesville INTel 317-773-8323Fax 317-773-5453Tel 317-536-2380Los AngelesMission Viejo CATel 949-462-9523Fax 949-462-9608Tel 951-273-7800Raleigh NCTel 919-844-7510New York NYTel 631-435-6000San Jose CATel 408-735-9110Tel 408-436-4270Canada - TorontoTel 905-695-1980Fax 905-695-2078

Australia - SydneyTel 61-2-9868-6733China - BeijingTel 86-10-8569-7000China - ChengduTel 86-28-8665-5511China - ChongqingTel 86-23-8980-9588China - DongguanTel 86-769-8702-9880China - GuangzhouTel 86-20-8755-8029China - HangzhouTel 86-571-8792-8115China - Hong Kong SARTel 852-2943-5100China - NanjingTel 86-25-8473-2460China - QingdaoTel 86-532-8502-7355China - ShanghaiTel 86-21-3326-8000China - ShenyangTel 86-24-2334-2829China - ShenzhenTel 86-755-8864-2200China - SuzhouTel 86-186-6233-1526China - WuhanTel 86-27-5980-5300China - XianTel 86-29-8833-7252China - XiamenTel 86-592-2388138China - ZhuhaiTel 86-756-3210040

India - BangaloreTel 91-80-3090-4444India - New DelhiTel 91-11-4160-8631India - PuneTel 91-20-4121-0141Japan - OsakaTel 81-6-6152-7160Japan - TokyoTel 81-3-6880- 3770Korea - DaeguTel 82-53-744-4301Korea - SeoulTel 82-2-554-7200Malaysia - Kuala LumpurTel 60-3-7651-7906Malaysia - PenangTel 60-4-227-8870Philippines - ManilaTel 63-2-634-9065SingaporeTel 65-6334-8870Taiwan - Hsin ChuTel 886-3-577-8366Taiwan - KaohsiungTel 886-7-213-7830Taiwan - TaipeiTel 886-2-2508-8600Thailand - BangkokTel 66-2-694-1351Vietnam - Ho Chi MinhTel 84-28-5448-2100

Austria - WelsTel 43-7242-2244-39Fax 43-7242-2244-393Denmark - CopenhagenTel 45-4485-5910Fax 45-4485-2829Finland - EspooTel 358-9-4520-820France - ParisTel 33-1-69-53-63-20Fax 33-1-69-30-90-79Germany - GarchingTel 49-8931-9700Germany - HaanTel 49-2129-3766400Germany - HeilbronnTel 49-7131-72400Germany - KarlsruheTel 49-721-625370Germany - MunichTel 49-89-627-144-0Fax 49-89-627-144-44Germany - RosenheimTel 49-8031-354-560Israel - RarsquoananaTel 972-9-744-7705Italy - MilanTel 39-0331-742611Fax 39-0331-466781Italy - PadovaTel 39-049-7625286Netherlands - DrunenTel 31-416-690399Fax 31-416-690340Norway - TrondheimTel 47-72884388Poland - WarsawTel 48-22-3325737Romania - BucharestTel 40-21-407-87-50Spain - MadridTel 34-91-708-08-90Fax 34-91-708-08-91Sweden - GothenbergTel 46-31-704-60-40Sweden - StockholmTel 46-8-5090-4654UK - WokinghamTel 44-118-921-5800Fax 44-118-921-5820

Worldwide Sales and Service

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 45

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Board Overview
      • 2 Getting Started
        • 21 Quick Start
          • 211 Driver Installation
          • 212 Kit Window
          • 213 MPLABreg X IDE Device Family Packs
          • 214 Atmel Studio 7 Device Family Pack
            • 22 Design Documentation and Relevant Links
              • 3 Preprogrammed Application
              • 4 Curiosity Nano
                • 41 On-Board Debugger Overview
                  • 411 Debugger
                  • 412 Virtual Serial Port (CDC)
                    • 4121 Overview
                    • 4122 Operating System Support
                    • 4123 Limitations
                    • 4124 Signaling
                    • 4125 Advanced Use
                      • 413 Mass Storage Device
                        • 4131 Mass Storage Device Implementation
                        • 4132 Limitations of Drag-and-Drop Programming
                        • 4133 Special Commands
                          • 414 Data Gateway Interface (DGI)
                            • 4141 Debug GPIO
                            • 4142 Timestamping
                                • 42 Curiosity Nano Standard Pinout
                                • 43 Power Supply
                                  • 431 Target Regulator
                                  • 432 External Supply
                                  • 433 VBUS Output Pin
                                  • 434 Power Supply Exceptions
                                    • 44 Low-Power Measurement
                                    • 45 Programming External Microcontrollers
                                      • 451 Supported Devices
                                      • 452 Software Configuration
                                      • 453 Hardware Modifications
                                      • 454 Connecting to External Microcontrollers
                                        • 46 Connecting External Debuggers
                                          • 5 Hardware User Guide
                                            • 51 Connectors
                                              • 511 AVR128DB48 Curiosity Nano Pinout
                                              • 512 Using Pin Headers
                                              • 513 Multi-Voltage IO
                                              • 514 Operational Amplifiers
                                                • 52 Peripherals
                                                  • 521 LED
                                                  • 522 Mechanical Switch
                                                  • 523 32768 kHz Crystal
                                                  • 524 1600 MHz Crystal
                                                  • 525 On-Board Debugger Implementation
                                                    • 5251 On-Board Debugger Connections
                                                      • 6 Hardware Revision History and Known Issues
                                                        • 61 Identifying Product ID and Revision
                                                        • 62 Revision 3
                                                        • 63 Revision 2
                                                          • 7 Document Revision History
                                                          • 8 Appendix
                                                            • 81 Schematic
                                                            • 82 Assembly Drawing
                                                            • 83 Curiosity Nano Base for Click boardstrade
                                                            • 84 Disconnecting the On-board Debugger
                                                            • 85 Getting Started with IAR
                                                              • The Microchip Website
                                                              • Product Change Notification Service
                                                              • Customer Support
                                                              • Microchip Devices Code Protection Feature
                                                              • Legal Notice
                                                              • Trademarks
                                                              • Quality Management System
                                                              • Worldwide Sales and Service
Page 29: AVR128DB48 Curiosity Nano Hardware User Guideww1.microchip.com/downloads/en/DeviceDoc/AVR128DB48-Curiosit… · 4. Curiosity Nano Curiosity Nano is an evaluation platform of small

continuedOPAMP Poisitive Input (INP) Negative Input (INN) Output (OUT)

OP2 PE1 PE3 PE2

For information about OPAMP on the edge connector and any shared functionality see 511 AVR128DB48 CuriosityNano Pinout

52 Peripherals

521 LEDThere is one yellow user LED available on the AVR128DB48 Curiosity Nano board that can be controlled by eitherGPIO or PWM The LED can be activated by driving the connected IO line to GND

Table 5-2 LED Connection

AVR128DB48 Pin Function Shared Functionality

PB3 Yellow LED0 Edge connector On-board debugger

522 Mechanical SwitchThe AVR128DB48 Curiosity Nano board has one mechanical switch This is a generic user-configurable switchWhen the switch is pressed it will drive the IO line to ground (GND)

Tip  There is no externally connected pull-up resistor on the switch To use the switch make sure that aninternal pull-up resistor is enabled on pin PB2

Table 5-3 Mechanical Switch

AVR128DB48 Pin Description Shared Functionality

PB2 User switch (SW0) Edge connector On-board debugger

523 32768 kHz Crystal

On the AVR128DB48 Curiosity Nano board is a mounted 32768 kHz crystal of type VMK3-9001-32K7680000 thecrystal is accurate to within 20 ppm Using the External 32768 kHz Crystal Oscillator (XOSC32K) module inAVR128DB48 with the mounted 32768 kHz crystal generates a clock signal that is significantly more accurate thanthe Internal 32768 kHz Ultra Low-Power Oscillator (OSC32K) module can generate alone With the Auto-Tunefeature the 32768 kHz can be used as a reference to improve the accuracy of the internal oscillator This is an idealreference clock for the Real-Time Counter module in AVR128DB48

The 32768 kHz crystal is connected to AVR128DB48 on PF0 and PF1 which are also routed to the edge connectorthrough two solder points PF0 and PF1 are disconnected from the edge connector by default to reduce the chanceof an external signal causing contention with the crystal and to remove excessive capacitance on the lines

Next to the 32768 kHz crystal is a cut-strap (J209) which can be used to measure the oscillator safety factor This isdone by cutting the strap and adding a 0402 SMD resistor across the strap More information about oscillatorallowance and safety factor can be found in the AN2648 application note from Microchip

Cut straps and solder points can be seen in Figure 5-5

Table 5-4 32768 kHz Crystal Connections

AVR128DB48 Pin Function Shared Functionality

PF0 XTAL32K1 (Crystal input) Edge connector

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 29

continuedAVR128DB48 Pin Function Shared Functionality

PF1 XTAL32K2 (Crystal output) Edge connector

PA0 and PA1 can be used as GPIO To do so some hardware modifications are required

WARNINGBefore any hardware modifications are done make sure the board is disconnected from the USB orexternal power

bull Disconnect the 32768 kHz crystal by cutting the two straps on the top side of the board next to the crystal(J207 J208) The crystal should be disconnected when using the pin as GPIO as this might harm the crystal

bull Connect the IO lines to the edge connector by placing solder blobs on the circular solder points marked PF0and PF1 on the bottom side of the board (J210 J211)

Figure 5-5 Crystal Connection and Cut Straps

Top side Boom side

J211

J210

J207

J20832768 kHz Crystal

J209

524 1600 MHz Crystal

On the AVR128DB48 Curiosity Nano board is a mounted 1600 MHz crystal of type VXM7-9040-16M0000000 thecrystal is accurate to within 20 ppm Using the External High-Frequency Crystal Oscillator (XOSCHF) module inAVR128DB48 with the mounted 1600 MHz crystal generates a clock signal that is significantly more accurate thanthe Internal High-Frequency Oscillator (OSCHF) module

The 1600 MHz crystal is connected to AVR128DB48 on PA0 and PA1 which are also routed to the edge connectorthrough two solder points PA0 and PA1 are disconnected from the edge connector by default to reduce the chanceof an external signal causing contention with the crystal and to remove excessive capacitance on the lines

Next to the 1600 MHz crystal is a cut-strap (J217) which can be used to measure the oscillator safety factor This isdone by cutting the strap and adding a 0402 SMD resistor across the strap More information about oscillatorallowance and safety factor can be found in the AN2648 application note from Microchip

Cut straps and solder points can be seen in Figure 5-6

Table 5-5 Crystal Connections

AVR128DB48 Pin Function Shared Functionality

PA0 XTALHF1 (Crystal input) Edge connector

PA1 XTALHF2 (Crystal output) Edge connector

PA0 and PA1 can be used as GPIO To do so some hardware modifications are required

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 30

WARNINGBefore any hardware modifications are done make sure the board is disconnected from USB or externalpower

bull Disconnect the 1600 MHz crystal by cutting the two straps on the top side of the board next to the crystal (J215J216) The crystal should be disconnected when using the pin as GPIO as this might harm the crystal

bull Connect the IO lines to the edge connector by placing solder blobs on the circular solder points marked PA0and PA1 on the bottom side of the board (J213 J214)

Figure 5-6 Crystal Connection and Cut Straps

Top side Boom side

J214

J213

J216

J2151600 MHzCrystal

J217

525 On-Board Debugger ImplementationAVR128DB48 Curiosity Nano features an on-board debugger that can be used to program and debug theAVR128DB48 using UPDI The on-board debugger also includes a virtual serial port (CDC) interface over UART anddebug GPIO Both MPLABreg X IDE and Atmel Studio 7 can be used as a front-end for the on-board debugger forprogramming and debugging MPLAB Data Visualizer can be used as a front-end for the CDC and debug GPIO

5251 On-Board Debugger ConnectionsThe table below shows the connections between the target and the debugger section All connections between thetarget and the debugger are tri-stated as long as the debugger is not actively using the interface Hence since thereare little contaminations of the signals the pins can be configured to anything the user wants

For further information on how to use the capabilities of the on-board debugger see 41 On-Board DebuggerOverview

Table 5-6 On-Board Debugger Connections

AVR128DB48Pin

Debugger Pin Function Shared Functionality

PB1 CDC TX UART RX (AVR128DB48 RX line) Edge connector

PB0 CDC RX UART TX (AVR128DB48 TX line) Edge connector

UPDI DBG0 UPDI Edge connector

PB3 DBG1 LED0Debug GPIO1 Edge connector

PB2 DBG2 SW0Debug GPIO0 Edge connector

PF6 DBG3 RESET Edge connector

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 31

6 Hardware Revision History and Known IssuesThis user guide is written to provide information about the latest available revision of the board The followingsections contain information about known issues a revision history of older revisions and how older revisions differfrom the latest revision

61 Identifying Product ID and RevisionThe revision and product identifier of the AVR128DB48 Curiosity Nano Board can be found in two ways Either byutilizing the MPLABreg X IDE or Atmel Studio 7 Kit Window or by looking at the sticker on the bottom side of the PCB

By connecting AVR128DB48 Curiosity Nano to a computer with MPLABreg X IDE or Atmel Studio 7 running the KitWindow will pop up The first six digits of the serial number which is listed under kit information contain the productidentifier and revision

Tip  The Kit Window can be opened in MPLABreg X IDE through the menu bar Window gt Kit Window

The same information can be found on the sticker on the bottom side of the PCB Most boards will have the identifierand revision printed in plain text as A09-nnnnrr where ldquonnnnrdquo is the identifier and ldquorrrdquo is the revision Boards withlimited space have a sticker with only a data matrix code containing the product identifier revision and serialnumber

The serial number string has the following format

nnnnrrssssssssss

n = product identifier

r = revision

s = serial number

The product identifier for AVR128DB48 Curiosity Nano is A09‑3372

62 Revision 3AVR128DB48 silicon revision A5 or later is mounted on this revision of the board

63 Revision 2Revision 2 is the initially released board revision

AVR128DB48 silicon revision A4 is mounted on this revision of the board

AVR128DB48 Curiosity NanoHardware Revision History and Known Issues

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 32

7 Document Revision HistoryDoc Rev Date Comments

A 092020 Initial document release

AVR128DB48 Curiosity NanoDocument Revision History

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 33

8 Appendix

81 SchematicFigure 8-1 AVR128DB48 Curiosity Nano Schematic

11

22

33

44

55

66

77

88

DD

CC

BB

AA

2 of

4

AV

R12

8DB

48 C

uri

osit

y N

ano

240

820

20A

VR

128D

B48

_Cur

iosi

ty_N

ano_

Targ

et_M

CU

Sch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA

Rev

isio

n

File

P

CB

Num

ber

PC

B

Rev

isio

n

Des

ign

ed w

ith

Dra

wn

By

ML

Shee

t Titl

e

Targ

et M

CU

Eng

inee

rA

H

A08

-305

71

Size

A3

A09

-337

22

Page

D

ateA

ltium

com

GN

D

VD

DIO

2

100n

C20

1

GN

D

PA5_

SPI0

_MIS

OPA

6_SP

I0_S

CK

PA7_

SPI0

_SS

PB0_

USA

RT

3_T

XPB

1_U

SAR

T3_

RX

PB2_

SW0_

DB

G2

PB3_

LE

D0_

DB

G1

PB

4P

B5

PC

0P

C1

PC

2

PC3

PC4PC5PC6PC7PD0_AIN0_TCA0_WO0PD1_AIN1_OP0_INP_TCA0_WO1PD2_AIN2_OP0_OUT_TCA0_WO2PD3_AIN3_OP0_INNPD4_AIN4_OP1_INP

PA3_TWI0_SCL

PA1_XTALHF2

UPDI_DBG0

PF5_USART2_RX

PF3

PF

2PF

1_X

TA

L32

K2

PF0_

XT

AL

32K

1P

E3_

OP

2_IN

NP

E2_

OP

2_O

UT

PE

1_O

P2_

INP

PE

0

PD5_

AIN

5_O

P1_

OU

TPD

6_A

IN6

PD7_

AIN

7_O

P1_

INN

GN

D

VC

C_T

AR

GE

T

100n

C20

2

GN

DV

CC

_TA

RG

ET

100n

C20

0

PF1_XTAL32K2

PF0_XTAL32K1

PA2_TWI0_SDA

PA0_XTALHF1

PF4_USART2_TX

PA4_SPI0_MOSI

GN

D

PA7_

SPI0

_SS

PA6_

SPI0

_SC

KPA

5_SP

I0_M

ISO

PA4_

SPI0

_MO

SIPA

3_T

WI0

_SC

LPA

2_T

WI0

_SD

A

PC

0P

C1

PC

2P

C3

PB

4P

B5

PD7_

AIN

7_O

P1_

INN

PD6_

AIN

6

PD2_

AIN

2_O

P0_

OU

T_T

CA

0_W

O2

PD1_

AIN

1_O

P0_

INP_

TC

A0_

WO

1PD

0_A

IN0_

TC

A0_

WO

0

PD5_

AIN

5_O

P1_

OU

TPD

4_A

IN4_

OP

1_IN

P

PD3_

AIN

3_O

P0_

INN

32K

Hz

Cry

stal

PB0_

USA

RT

3_T

XPB

1_U

SAR

T3_

RX

1kR203

US

ER

LE

D

VC

C_T

AR

GE

T

PF6_DBG3

PB2_SW0_DBG2

PB3_LED0_DBG1

GN

D

USE

R B

UT

TO

N

PB3_

LE

D0_

DB

G1

PB2_

SW0_

DB

G2

PB1_

USA

RT

3_R

XPB

0_U

SAR

T3_

TX

PF4_

USA

RT

2_T

XPF

5_U

SAR

T2_

RX

PF

2P

F3

PC

4P

C5

PC

6P

C7

1kR202

YELLOWLEDSML-D12Y1WT86

2 1

D200

TS604VM1-035CR13

4 2

SW20

0

GN

DV

CC

_ED

GE

GN

DG

ND

GN

DG

ND

UPD

I_D

BG

0P

F6_

DB

G3

J209

PB3_

LE

D0_

DB

G1

PB2_

SW0_

DB

G2

AV

R12

8DB

48

22u

FC

205

VC

C_E

DG

E

GN

D

DBG0

CDC_TXCDC_RX

DBG2

DBG1

DBG3

DBG2

DE

BU

GG

ER

CO

NN

EC

TIO

NS

DBG1

DBG3DBG0

VOFF

ID_SYS

ID_SYS

VOFF

TA

RG

ET

BU

LK

VC

C_T

AR

GE

TR

ESE

T P

ull

VB

US

CD

C R

X3

CD

C T

X4

DB

G1

5

DB

G2

6

0 T

X7

1 R

X8

2 SD

A9

3 S

CL

10

4 M

OSI

11

5 M

ISO

12

6 S

CK

13

7 S

S14

GN

D15

0 (T

X)

16

1 (R

X)

17

218

319

020

GN

D24

DB

G3

54

DB

G0

53

GN

D52

VC

C51

PW

M 3

46

AD

C 2

45

AD

C 1

44

AD

C 0

43

GN

D42

438

434

GN

D33

AD

C 7

50

AD

C 6

49

AD

C 5

48

PW

M 4

47

DE

BU

GG

ER

TAR

GE

T

ID2

VO

FF

55

121

222

323

025

126

227

328

429

530

631

732

535

636

737

539

640

741

RE

SER

VE

D1

VB

US

56

CN

AN

O56

-pin

edg

e co

nnec

tor

J200

J201

J203

J205

J206

J202

J204

PF1_

XT

AL

32K

2PF

0_X

TA

L32

K1

NC

XOUT

XIN

47kR200

AV

R12

8DB

48

UPD

I

GPI

O1

GPI

O0

RE

SET

DB

G0

DB

G1

DB

G2

DB

G3

Deb

ugge

r

CD

C T

X

CD

C R

X

UA

RT

3 R

X

UA

RT

3 T

X

VT

G1

8V -

55

VPB

3

PB

2

PF

6

UP

DI

PB

0

PB

1

Nam

eP

in

PE

3_O

P2_

INN

PE

2_O

P2_

OU

TP

E1_

OP

2_IN

PP

E0

J207

J208

PF

0P

F1

PA5

1

PA6

2

PA7

3

PB0

4

PB1

5

PB2

6

PB3

7

PB4

8

PB5

9

PC0

10

PC1

11

PC2

12

PC313

VDDIO214

GND15

PC416

PC517

PC618

PC719

PD020

PD121

PD222

PD323

PD424

PD5

25

PD6

26

PD7

27

AVDD

28

GND

29

PE0

30

PE1

31

PE2

32

PE3

33

XTAL32K1PF0

34

XTAL32K2PF1

35

PF2

36

PF337

PF438

PF539

PF640

UPDI41

VDD42

GND43

XTALHF1PA044

XTALHF2PA145

PA246

PA347

PA448

AV

R12

8DB

48-I

PT

U20

0

0RR204

GN

D

VC

C_T

AR

GE

T

VDDIO2

GND

J210

J211

82p

C20

48

2pC

203

GN

DG

ND

16M

Hz

Cry

stal

J217

XHFOUT

XHFIN

J214

J213

GN

D

J215

J216

PA0_XTALHF1

PA1_XTALHF2

PA0_

XT

AL

HF

1PA

1_X

TA

LH

F2

PA0

PA1

1 2

J212 N

M

15pF

C20

615

pFC

207

13

24 16

000

MH

zV

XM

7-90

40-1

6M00

0000

0TR

XC

201

GN

D32

768

kHz

VM

K3-

9001

-32K

7680

000T

R

XC

200

CDC_TX

CDC_RX

CD

C_T

XC

DC

_RX

Cry

stal

dat

ashe

et

Ccr

ysta

l = 9

pFm

ax E

SR

= 7

0kO

hmA

ccur

acy

plusmn20p

pm

AV

R48

DB

128

data

shee

tC

xin

= 4

0pF

(ty

pica

l val

ue)

Cxo

ut =

40

pF (

typi

cal v

alue

)C

lasymp1

( (1

40

pF)+

(1

40p

F)

)asymp

20p

FM

axim

um L

oad

= 1

25p

FM

axim

um E

SR =

50k

Ohm

Est

imat

ed C

pcb

= 0

5pF

Est

imat

ed lo

adC

= 2

(C

crys

tal-

Cpa

ra -

Cpc

b)C

= 2

(9p

F -

20

pF -

05

pF)

C =

13

0pF

Sele

cted

in d

esig

n af

ter

veri

fica

tion

C=

82

pF8

2pF

NO

TE

on

UA

RT

CD

C

RX

TX

onth

ehe

ader

deno

tes

the

inpu

tout

put d

irec

tion

of th

e si

gnal

resp

ectiv

e to

its

sou

rce

CD

C T

X is

out

put f

rom

the

DE

BU

GG

ER

C

DC

RX

is in

put t

o th

e D

EB

UG

GE

R

TX

is o

utpu

t fro

m th

e T

AR

GE

T d

evic

eR

X is

inpu

t to

the

TA

RG

ET

dev

ice

NO

TE

on

I2C

No

pull

-ups

on

boar

d P

ull-

ups

shou

ld b

em

ount

ed c

lose

to s

lave

dev

ice(

s)

WA

RN

ING

M

ake

sure

tore

mov

e R

204

befo

reap

plyi

ng p

ower

to J

212

Cry

stal

dat

ashe

et

Ccr

ysta

l = 1

2pF

max

ES

R =

60O

hmA

ccur

acy

plusmn30p

pm

AV

R48

DB

128

data

shee

tC

xin

= 4

0pF

(ty

pica

l val

ue)

Cxo

ut =

40

pF (

typi

cal v

alue

)C

lasymp1

( (1

40

pF)+

(1

40p

F)

)asymp

20p

FM

axim

um L

oad

= 1

25p

FM

axim

um E

SR =

k

Ohm

Est

imat

ed C

pcb

= 0

5pF

Est

imat

ed lo

adC

= 2

(C

crys

tal-

Cpa

ra -

Cpc

b)C

= 2

(12

pF -

20

pF -

05

pF)

C =

19

0pF

Sele

cted

in d

esig

n af

ter

veri

fica

tion

C=

15p

F1

5pF

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 34

11

22

33

44

55

66

77

88

DD

CC

BB

AA

3 of

4

AV

R12

8DB

48 C

uri

osit

y N

ano

2020

-06-

26A

VR

128D

B48

_Cur

iosi

ty_N

ano_

Deb

ugge

rSch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA

Rev

isio

n

Fil

eP

CB

Num

ber

PC

B

Rev

isio

n

Des

ign

ed w

ith

Dra

wn

By

ML

Shee

t Tit

le

Deb

ugge

r

Eng

inee

rA

H

A08

-305

71

Size

A3

A09

-337

22

Page

D

ateA

ltium

com

DE

BU

GG

ER

USB

MIC

RO

-B C

ON

NE

CT

OR

GN

D

USB

D_P

USB

D_N

100n

C10

7

100n

C10

8

1kR

107

VC

C_P

3V3

SRST

STA

TU

S_L

ED

SHIE

LD

VB

US

VC

C_P

3V3

GN

D

TP

100

Test

poin

t Arr

ay

12

34

56

78

910

TC

KT

DO

TM

SV

sup

TD

IG

ND

TR

STSR

STV

Tre

fG

ND

J102

GN

D

47u

F

C10

0

DBG0

DB

G0

21

GR

EE

N L

ED

SML

-P12

MT

T86

R

D10

0

VBUS

1

D-

2

D+

3

GND

5

SHIELD1

6

SHIELD2

7

ID

4

SHIELD3

8

SHIELD4

9 MU

-MB

0142

AB

2-26

9

J105

PAD

33

PA00

1

PA01

2

PA02

3

PA03

4

GND 10VDDANA 9

PA04

5

PA05

6

PA06

7

PA07

8

PA08 11

PA09 12

PA10 13

PA11 14

PA14 15

PA15 16

PA16

17

PA17

18

PA18

19

PA19

20

PA22

21

USB_SOFPA23

22

USB_DMPA24

23

USB_DPPA25

24

PA2725 RESETN26 PA2827 GND28 VDDCORE29 VDDIN30 SWDCLKPA3031 SWDIOPA3132

SAM

D21

E18

A-M

UT

U10

0

VOUT

1

VOUT

2

GND 3

EN

4

VIN

6

NC

5

EP 7

MIC

5528

-33

YM

TU

101

VC

C_P

3V3

GN

D

USB

D_P

USB

D_N

GN

D

1uC

106

VC

C_M

CU

_CO

RE

VC

C_P

3V3

VC

C_P

3V3

22u

FC

101

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

3

VC

C_P

3V3

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

4

VC

C_P

3V3

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

5

VC

C_P

3V3

GN

D

GN

D GN

D

GN

D

VC

C_E

DG

E

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

7

VC

C_P

3V3

GN

DDBG2

DB

G3_

CT

RL

S1_0

_TX

S1_1

_RX

S0_2

_TX

DA

CV

TG

_AD

C

RE

SER

VE

D

S0_3

_CL

K

DBG0_CTRL

CD

C_T

X_C

TR

L

BO

OT

DE

BU

GG

ER

PO

WE

RS

TA

TU

S L

ED

EN

1

BYP

6

VOUT

4

GND

2

VIN

3

NCADJ

5

GND

7

MIC

5353

U10

2

100n

C10

2

GN

D

GN

D

47kR101

27kR104 G

ND

33k

R10

6

22u

F

C10

3 GN

D

1kR

108

J100

VC

C_L

EV

EL

VC

C_R

EG

UL

AT

OR

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

6

VC

C_P

3V3

GN

DDBG1

CD

C_R

X

CD

C_T

X

DBG3

DBG1_CTRL

DE

BU

GG

ER

RE

GU

LA

TO

R

REG_ENABLE

RE

G_E

NA

BL

E

47kR103

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

47kR102

47kR105

SWC

LK

GN

D

47kR100 G

ND

DB

G2

S0_0

_RX

DB

G1_

CT

RL

DB

G0_

CT

RL

DB

G3

OP

EN

DR

AIN

TA

RG

ET

AD

JUST

AB

LE

RE

GU

LA

TO

R

SRST

DE

BU

GG

ER

TE

ST

PO

INT DBG2_CTRL

VO

FF

CD

C_R

X_C

TR

L

47kR109

DB

G1

CD

C_T

X_C

TR

L

CD

C_R

X_C

TR

L

SWC

LK

REG_ADJUST

DBG2_GPIO

DB

G3_

CT

RL

DB

G2_

CT

RL

UP

DI

UPD

I

GPI

O

GPI

O

RE

SET

Sign

al

DB

G0

DB

G1

DB

G2

DB

G3

ICS

PIn

terf

ace

DA

T

CL

K

GPI

O

MC

LR

DB

G3

CD

C T

X

CD

C R

X

UA

RT

RX

UA

RT

TX

UA

RT

RX

UA

RT

TX

TA

RG

ET

TA

RG

ET

1kR

110

VBUS_ADC

1

23

DM

N65

D8L

FB

Q10

1

VC

C-

-

ID_SYS

VOFF

1kR112

VC

C_P

3V3

VT

G_A

DC

DA

C

MIC

9416

3

VIN

B2

VOUT

A1

VIN

A2

EN

C2

GND

C1

VOUT

B1

U10

8

GN

D

ID_S

YS

VT

G_E

N

VTG_EN

VBUS_ADC

SWD

IO

ID_S

YS

TP

101

GN

DSW

DIO

VO

FF

47kR111 G

ND

ID P

IN

MC

3621

3

F10

0

VC

C_V

BU

S

VC

C_V

BU

S

VC

C_V

BU

S

J101

VC

C_T

AR

GE

T

47k

R11

3

CDC_TX

CDC_RX

Prog

ram

min

g co

nnec

tor

for

fact

ory

prog

ram

min

g of

DE

BU

GG

ER

MIC

5528

V

in 2

5V

to 5

5V

Vou

t F

ixed

33

VIm

ax 5

00m

AD

ropo

ut 2

60m

V

500

mA

MIC

5353

V

in 2

6V

to 6

VV

out

12

5V to

51

VIm

ax 5

00m

AD

ropo

ut (

typi

cal)

50m

V

150m

A 1

60m

V

500

mA

Acc

urac

y 2

in

itia

lT

herm

al s

hutd

own

and

curr

ent l

imit

Max

imum

out

put v

olta

ge is

lim

ited

by

the

inpu

t vol

tage

and

the

drop

out v

olta

ge in

the

regu

lato

r(V

max

= V

in -

dro

pout

)

J100

-

Cut

-str

ap u

sed

for

full

sep

arat

ion

of ta

rget

pow

er f

rom

the

leve

l shi

fter

s an

don

-boa

rd r

egul

ator

s-

For

cur

rent

mea

sure

men

ts u

sing

the

on-b

oard

pow

er s

uppl

y th

isst

rap

mus

t be

cut a

nd a

nam

met

er c

onne

cted

acr

oss

- F

or c

urre

nt m

easu

rem

ents

usi

ng a

n ex

tern

al p

ower

sup

ply

this

str

ap c

ould

be

cut f

or m

ore

accu

rate

mea

sure

men

ts L

eaka

ge b

ack

thro

ugh

the

swit

ch is

in th

e m

icro

am

pere

ran

ge

PT

C R

eset

tabl

e fu

se

Hol

d cu

rren

t 5

00m

AT

rip

curr

ent

100

0mA

Adj

usta

ble

outp

ut a

nd li

mit

atio

ns

- T

he D

EB

UG

GE

R c

an a

djus

t the

out

put v

olta

ge o

f th

e re

gula

tor

betw

een

125

V a

nd 5

1V

to th

e ta

rget

-

The

vol

tage

out

put i

s li

mit

ed b

y th

e in

put (

US

B)

whi

ch c

an v

ary

betw

een

440

V to

52

5V-

The

leve

l shi

fter

s ha

ve a

min

imal

vol

tage

leve

l of

165

V a

nd w

ill l

imit

the

min

imum

ope

ratin

g vo

ltage

all

owed

for

the

targ

et to

sti

ll a

llow

com

mun

icat

ion

- T

he M

IC94

163

has

a m

inim

al v

olat

ege

leve

l of

170

V a

nd w

ill l

imit

the

min

imum

vol

tage

del

iver

ed to

the

targ

et

- F

irm

war

e co

nfig

urat

ion

wil

l lim

it th

e vo

ltage

ran

ge to

be

wit

hin

the

the

targ

et s

peci

fica

tion

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 35

82 Assembly DrawingFigure 8-2 AVR128DB48 Curiosity Nano Assembly Drawing Top

+

Cb

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20001 PAC20002 COC200

PAC20101 PAC20102 COC201

PAC20201 PAC20202 COC202 PAC20301

PAC20302 COC203

PAC20401

PAC20402 COC204

PAC20502

PAC20501 COC205

PAC20601

PAC20602 COC206 PAC20701

PAC20702 COC207 PAD10002 PAD10001 COD100

PAD20002

PAD20001 COD200

PAF10002

PAF10001 COF100

PAJ10002 PAJ10001 COJ100

PAJ10101 PAJ10102 COJ101

PAJ10201

PAJ10202

PAJ10203

PAJ10204

PAJ10205

PAJ10206 COJ102

PAJ10506

PAJ10507 PAJ10509

PAJ10508 PAJ105010

PAJ105011 PAJ10505

PAJ10504

PAJ10503

PAJ10502

PAJ10501

PAJ10500

COJ105

PAJ200056 PAJ200053

PAJ200028 PAJ20002 PAJ20001

PAJ200051 PAJ200050 PAJ200052 PAJ200049 PAJ200048 PAJ200047 PAJ200046 PAJ200045 PAJ200044 PAJ200043 PAJ200042 PAJ200041 PAJ200040 PAJ200039 PAJ200038 PAJ200037 PAJ200036 PAJ200035 PAJ200034 PAJ200033 PAJ200032 PAJ200031 PAJ200030 PAJ200029

PAJ20003 PAJ20004 PAJ20005 PAJ20006 PAJ20007 PAJ20008 PAJ20009 PAJ200010 PAJ200011 PAJ200012 PAJ200013 PAJ200014 PAJ200015 PAJ200016 PAJ200017 PAJ200018 PAJ200019 PAJ200020 PAJ200021 PAJ200022 PAJ200023 PAJ200026 PAJ200025 PAJ200024 PAJ200027

PAJ200054 PAJ200055 PAJ20000

COJ200

PAJ20102 PAJ20101 COJ201

PAJ20202 PAJ20201 COJ202

PAJ20302 PAJ20301 COJ203

PAJ20402 PAJ20401 COJ204

PAJ20502 PAJ20501 COJ205

PAJ20602 PAJ20601 COJ206 PAJ20702 PAJ20701 COJ207

PAJ20802 PAJ20801 COJ208

PAJ20902 PAJ20901 COJ209

PAJ21001 PAJ21002 PAJ21005 COJ210

PAJ21102 PAJ21101 PAJ21105 COJ211

PAJ21202 PAJ21201 COJ212

PAJ21301 PAJ21302 PAJ21305 COJ213

PAJ21401 PAJ21402 PAJ21405 COJ214

PAJ21502 PAJ21501 COJ215

PAJ21602 PAJ21601 COJ216 PAJ21702 PAJ21701 COJ217

COLABEL1

PAQ10101 PAQ10102 PAQ10103 PAQ10100

COQ101 PAR10002

PAR10001 COR100 PAR10101 PAR10102 COR101

PAR10202 PAR10201 COR102

PAR10302 PAR10301 COR103

PAR10401 PAR10402 COR104

PAR10502

PAR10501 COR105

PAR10601 PAR10602 COR106

PAR10702 PAR10701 COR107

PAR10801

PAR10802 COR108

PAR10901 PAR10902 COR109

PAR11001 PAR11002 COR110

PAR11101 PAR11102 COR111

PAR11201 PAR11202 COR112

PAR11302 PAR11301 COR113

PAR20001 PAR20002 COR200 PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203 PAR20401 PAR20402 COR204

PASW20003

PASW20004 PASW20002

PASW20001 COSW200

PATP10001 COTP100

PATP10101 COTP101 PAU100033

PAU100032 PAU100031 PAU100030 PAU100029 PAU100028 PAU100027 PAU100026 PAU100025 PAU100024

PAU100023

PAU100022

PAU100021

PAU100020

PAU100019

PAU100018

PAU100017 PAU100016 PAU100015 PAU100014 PAU100013 PAU100012 PAU100011 PAU100010

PAU10001

PAU10002

PAU10003

PAU10004

PAU10005

PAU10006

PAU10007

PAU10008 PAU10009

COU100

PAU10107

PAU10104 PAU10105 PAU10106

PAU10103 PAU10102 PAU10101 PAU10100 COU101 PAU10207

PAU10204 PAU10205

PAU10206

PAU10203 PAU10202

PAU10201

COU102

PAU10306

PAU10305 PAU10304 PAU10303

PAU10302 PAU10301 PAU10300

COU103

PAU10406

PAU10405 PAU10404 PAU10403

PAU10402 PAU10401 PAU10400

COU104

PAU10506

PAU10505 PAU10504 PAU10503

PAU10502 PAU10501 PAU10500

COU105

PAU10606

PAU10605 PAU10604 PAU10603

PAU10602 PAU10601 PAU10600

COU106

PAU10706

PAU10705 PAU10704 PAU10703

PAU10702 PAU10701 PAU10700

COU107

PAU1080A1 PAU1080A2

PAU1080B1 PAU1080B2

PAU1080C1 PAU1080C2 COU108

PAU20001 PAU20002 PAU20003 PAU20004 PAU20005 PAU20006 PAU20007 PAU20008 PAU20009 PAU200010 PAU200011 PAU200012 PAU200013 PAU200014 PAU200015 PAU200016 PAU200017 PAU200018 PAU200019 PAU200020 PAU200021 PAU200022 PAU200023 PAU200024 PAU200025 PAU200026 PAU200027 PAU200028 PAU200029 PAU200030 PAU200031 PAU200032 PAU200033 PAU200034 PAU200035 PAU200036

PAU200037 PAU200038 PAU200039 PAU200040 PAU200041 PAU200042 PAU200043 PAU200044 PAU200045 PAU200046 PAU200047 PAU200048

COU200

PAXC20001

PAXC20002 COXC200

PAXC20101 PAXC20102

PAXC20103 PAXC20104 COXC201

Figure 8-3 AVR128DB48 Curiosity Nano Assembly Drawing Bottom

tcR

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20001 PAC20002 COC200

PAC20101 PAC20102 COC201

PAC20201 PAC20202 COC202 PAC20301

PAC20302 COC203

PAC20401

PAC20402 COC204

PAC20502

PAC20501 COC205

PAC20601

PAC20602 COC206 PAC20701

PAC20702 COC207 PAD10002 PAD10001 COD100

PAD20002

PAD20001 COD200

PAF10002

PAF10001 COF100

PAJ10002 PAJ10001 COJ100

PAJ10101 PAJ10102 COJ101

PAJ10201

PAJ10202

PAJ10203

PAJ10204

PAJ10205

PAJ10206 COJ102

PAJ10506

PAJ10507 PAJ10509

PAJ10508 PAJ105010

PAJ105011 PAJ10505

PAJ10504

PAJ10503

PAJ10502

PAJ10501

PAJ10500

COJ105

PAJ200056 PAJ200053

PAJ200028 PAJ20002 PAJ20001

PAJ200051 PAJ200050 PAJ200052 PAJ200049 PAJ200048 PAJ200047 PAJ200046 PAJ200045 PAJ200044 PAJ200043 PAJ200042 PAJ200041 PAJ200040 PAJ200039 PAJ200038 PAJ200037 PAJ200036 PAJ200035 PAJ200034 PAJ200033 PAJ200032 PAJ200031 PAJ200030 PAJ200029

PAJ20003 PAJ20004 PAJ20005 PAJ20006 PAJ20007 PAJ20008 PAJ20009 PAJ200010 PAJ200011 PAJ200012 PAJ200013 PAJ200014 PAJ200015 PAJ200016 PAJ200017 PAJ200018 PAJ200019 PAJ200020 PAJ200021 PAJ200022 PAJ200023 PAJ200026 PAJ200025 PAJ200024 PAJ200027

PAJ200054 PAJ200055 PAJ20000

COJ200

PAJ20102 PAJ20101 COJ201

PAJ20202 PAJ20201 COJ202

PAJ20302 PAJ20301 COJ203

PAJ20402 PAJ20401 COJ204

PAJ20502 PAJ20501 COJ205

PAJ20602 PAJ20601 COJ206 PAJ20702 PAJ20701 COJ207

PAJ20802 PAJ20801 COJ208

PAJ20902 PAJ20901 COJ209

PAJ21001 PAJ21002 PAJ21005 COJ210

PAJ21102 PAJ21101 PAJ21105 COJ211

PAJ21202 PAJ21201 COJ212

PAJ21301 PAJ21302 PAJ21305 COJ213

PAJ21401 PAJ21402 PAJ21405 COJ214

PAJ21502 PAJ21501 COJ215

PAJ21602 PAJ21601 COJ216 PAJ21702 PAJ21701 COJ217

COLABEL1

PAQ10101 PAQ10102 PAQ10103 PAQ10100

COQ101 PAR10002

PAR10001 COR100 PAR10101 PAR10102 COR101

PAR10202 PAR10201 COR102

PAR10302 PAR10301 COR103

PAR10401 PAR10402 COR104

PAR10502

PAR10501 COR105

PAR10601 PAR10602 COR106

PAR10702 PAR10701 COR107

PAR10801

PAR10802 COR108

PAR10901 PAR10902 COR109

PAR11001 PAR11002 COR110

PAR11101 PAR11102 COR111

PAR11201 PAR11202 COR112

PAR11302 PAR11301 COR113

PAR20001 PAR20002 COR200 PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203 PAR20401 PAR20402 COR204

PASW20003

PASW20004 PASW20002

PASW20001 COSW200

PATP10001 COTP100

PATP10101 COTP101 PAU100033

PAU100032 PAU100031 PAU100030 PAU100029 PAU100028 PAU100027 PAU100026 PAU100025 PAU100024

PAU100023

PAU100022

PAU100021

PAU100020

PAU100019

PAU100018

PAU100017 PAU100016 PAU100015 PAU100014 PAU100013 PAU100012 PAU100011 PAU100010

PAU10001

PAU10002

PAU10003

PAU10004

PAU10005

PAU10006

PAU10007

PAU10008 PAU10009

COU100

PAU10107

PAU10104 PAU10105 PAU10106

PAU10103 PAU10102 PAU10101 PAU10100 COU101 PAU10207

PAU10204 PAU10205

PAU10206

PAU10203 PAU10202

PAU10201

COU102

PAU10306

PAU10305 PAU10304 PAU10303

PAU10302 PAU10301 PAU10300

COU103

PAU10406

PAU10405 PAU10404 PAU10403

PAU10402 PAU10401 PAU10400

COU104

PAU10506

PAU10505 PAU10504 PAU10503

PAU10502 PAU10501 PAU10500

COU105

PAU10606

PAU10605 PAU10604 PAU10603

PAU10602 PAU10601 PAU10600

COU106

PAU10706

PAU10705 PAU10704 PAU10703

PAU10702 PAU10701 PAU10700

COU107

PAU1080A1 PAU1080A2

PAU1080B1 PAU1080B2

PAU1080C1 PAU1080C2 COU108

PAU20001 PAU20002 PAU20003 PAU20004 PAU20005 PAU20006 PAU20007 PAU20008 PAU20009 PAU200010 PAU200011 PAU200012 PAU200013 PAU200014 PAU200015 PAU200016 PAU200017 PAU200018 PAU200019 PAU200020 PAU200021 PAU200022 PAU200023 PAU200024 PAU200025 PAU200026 PAU200027 PAU200028 PAU200029 PAU200030 PAU200031 PAU200032 PAU200033 PAU200034 PAU200035 PAU200036

PAU200037 PAU200038 PAU200039 PAU200040 PAU200041 PAU200042 PAU200043 PAU200044 PAU200045 PAU200046 PAU200047 PAU200048

COU200

PAXC20001

PAXC20002 COXC200

PAXC20101 PAXC20102

PAXC20103 PAXC20104 COXC201

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 36

83 Curiosity Nano Base for Click boardstrade

Figure 8-4 AVR128DB48 Curiosity Nano Pinout Mapping

US

B

DE

BU

GG

ER

AV

R1

28

DB

48

SW

0

LE

D0

PS

LE

DNC

NC

ID

ID

CDC RX

CDCRX

USART3 TX

PB0

CDC TX

CDCTX

USART3 RX

PB1

DBG1

DBG1

PB3

LED0

DBG2

DBG2

PB2

SW0

PF4

PF4

USART2 TX

PF5

PF5

USART2 RX

PA2

PA2

TWI0 SDA

PA3

PA3

TWI0 SCL

PA4

PA4

SPI0 MOSI

PA5

PA5

SPI0 MISO

PA6

PA6

SPI0 SCK

PA7

PA7

SPI0 SS

GND

GND

PB0

PB0

USART3 TX

CDC RX

PB1

PB1

USART3 RX

CDC TX

PF2

PF2

PF3

PF3

PC0

PC0

PC1

PC1

PC2

PC2

PC3

PC3

GND

GND

(PA0)

(PA0)

XTALHF1

(PA1)

(PA1)

XTALHF2

PB2

PB2

SW0

PB3

PB3

LED0

VBUS

VBUS

VOFF

VOFF

DBG3

DBG3

PF6

DBG0

DBG0

UPDI

GND

GND

VTG

VTG

PD6

PD6

AIN6

PD3

PD3

AIN3

OP0 INN

PD2

PD2

AIN2

OP0 OUT

TCA0 WO2

PD1

PD1

AIN1

OP0 INP

TCA0 WO1

PD0

PD0

AIN0

TCA0 WO0

PD7

PD7

AIN7

OP1 INN

PD5

PD5

AIN5

OP1 OUT

PD4

PD4

AIN4

OP1 INP

GND

GND

PE3

PE3

OP2 INN

PE2

PE2

OP2 OUT

PE1

PE1

OP2 INP

PE0

PE0

PC7

PC7

PC6

PC6

PC5

PC5

PC4

PC4

GND

GND

PB5

PB5

PB4

PB4

(PF1)

(PF1)

XTAL32K2

(PF0)

(PF0)

XTAL32K1

DE

BU

GG

ER

AV

R1

28

DB

48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

MVIO

OPAMP

Shared pin

AV

R1

28

DB

48

Cu

rio

sity

Na

no

1

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

2

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

3

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

Xp

lain

ed

Pro

Ext

en

sio

nE

XT

11

2

19

20

Cu

rio

sity

Na

no

Ba

sefo

r cl

ick

bo

ard

sT

M

PD4

PD0

PD6

PD3

PA7

PF5

PA6

PF4

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

PD5

PD1

PF3

PF2

PE2

PB1

PA6

PB0

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

PD7

PD2

PE1

PE0

PE3

PF5

PA6

PF4

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

ID

GND

PD5

PD7

PF3

PE1

PD1

PD2

PF2

PE3

PA2

PA3

PB1

PB0

PE2

PA4

PA5

PA6

GND

+33V

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 37

84 Disconnecting the On-board DebuggerThe on-board debugger and level shifters can be completely disconnected from the AVR128DB48

The block diagram below shows all connections between the debugger and the AVR128DB48 The rounded boxesrepresent connections to the board edge The signal names shown are also printed in silkscreen on the bottom sideof the board

To disconnect the debugger cut the straps shown in Figure 8-6

Attention  Cutting the GPIO straps to the on-board debugger will disable the virtual serial portprogramming debugging and data streaming Cutting the power supply strap will disconnect the on-boardpower supply

Tip  Any connection that is cut can be reconnected using solder Alternatively a 0Ω 0402 resistor can bemounted

Tip  When the debugger is disconnected an external debugger can be connected to holes shown in Figure 8-6 Details about connecting an external debugger are described in 46 Connecting ExternalDebuggers

Figure 8-5  On-Board Debugger Connections Block Diagram

DE

BU

GG

ER

TARGETLevel-Shift

PA04PA06PA07PA08PA16PA00PA01

USB

DIR x 5

VCC_P3V3

VBUS

VC

C_L

EV

EL

VC

C_T

AR

GE

TDBG0DBG1DBG2DBG3CDC TXCDC RX

CDC RX

CDC TX

DBG3

DBG2

DBG1

DBG0

GPIO straps

LDO

VOFF

LDO

VBUS VTG

VCC_EDGE

Power Supply strap Target Power strap

UART RXUART TX

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 38

Figure 8-6 On-Board Debugger Connection Cut Straps

GPIO straps (bottom side) Power Supply strap (top side)

85 Getting Started with IARIAR Embedded Workbenchreg for AVRreg is a proprietary high-efficiency compiler not based on GCC Programming anddebugging of AVR128DB48 Curiosity Nano is supported in IARtrade Embedded Workbench for AVR using the Atmel-ICEinterface Some initial settings must be set up in the project to get the programming and debugging to work

The following steps will explain how to get your project ready for programming and debugging

1 Make sure you have opened the project you want to configure Open the OPTIONS dialog for the project2 In the category General Options select the Target tab Select the device for the project or if not listed the

core of the device as shown in Figure 8-73 In the category Debugger select the Setup tab Select Atmel-ICE as the driver as shown in Figure 8-84 In the category Debugger gt Atmel-ICE select the Atmel-ICE 1 tab Select UPDI as the interface and

optionally select the UPDI frequency as shown in Figure 8-9

Info  If the selection of Debug Port (mentioned in step 4) is grayed out the interface is preselected andthe user can skip this configuration step

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 39

Figure 8-7 Select Target Device

Figure 8-8 Select Debugger

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 40

Figure 8-9 Configure Interface

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 41

The Microchip Website

Microchip provides online support via our website at wwwmicrochipcom This website is used to make files andinformation easily available to customers Some of the content available includes

bull Product Support ndash Data sheets and errata application notes and sample programs design resources userrsquosguides and hardware support documents latest software releases and archived software

bull General Technical Support ndash Frequently Asked Questions (FAQs) technical support requests onlinediscussion groups Microchip design partner program member listing

bull Business of Microchip ndash Product selector and ordering guides latest Microchip press releases listing ofseminars and events listings of Microchip sales offices distributors and factory representatives

Product Change Notification Service

Microchiprsquos product change notification service helps keep customers current on Microchip products Subscribers willreceive email notification whenever there are changes updates revisions or errata related to a specified productfamily or development tool of interest

To register go to wwwmicrochipcompcn and follow the registration instructions

Customer Support

Users of Microchip products can receive assistance through several channels

bull Distributor or Representativebull Local Sales Officebull Embedded Solutions Engineer (ESE)bull Technical Support

Customers should contact their distributor representative or ESE for support Local sales offices are also available tohelp customers A listing of sales offices and locations is included in this document

Technical support is available through the website at wwwmicrochipcomsupport

Microchip Devices Code Protection Feature

Note the following details of the code protection feature on Microchip devices

bull Microchip products meet the specifications contained in their particular Microchip Data Sheetbull Microchip believes that its family of products is secure when used in the intended manner and under normal

conditionsbull There are dishonest and possibly illegal methods being used in attempts to breach the code protection features

of the Microchip devices We believe that these methods require using the Microchip products in a manneroutside the operating specifications contained in Microchiprsquos Data Sheets Attempts to breach these codeprotection features most likely cannot be accomplished without violating Microchiprsquos intellectual property rights

bull Microchip is willing to work with any customer who is concerned about the integrity of its codebull Neither Microchip nor any other semiconductor manufacturer can guarantee the security of its code Code

protection does not mean that we are guaranteeing the product is ldquounbreakablerdquo Code protection is constantlyevolving We at Microchip are committed to continuously improving the code protection features of our productsAttempts to break Microchiprsquos code protection feature may be a violation of the Digital Millennium Copyright ActIf such acts allow unauthorized access to your software or other copyrighted work you may have a right to suefor relief under that Act

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 42

Legal Notice

Information contained in this publication is provided for the sole purpose of designing with and using Microchipproducts Information regarding device applications and the like is provided only for your convenience and may besuperseded by updates It is your responsibility to ensure that your application meets with your specifications

THIS INFORMATION IS PROVIDED BY MICROCHIP ldquoAS ISrdquo MICROCHIP MAKES NO REPRESENTATIONS ORWARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED WRITTEN OR ORAL STATUTORY OROTHERWISE RELATED TO THE INFORMATION INCLUDING BUT NOT LIMITED TO ANY IMPLIEDWARRANTIES OF NON-INFRINGEMENT MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSEOR WARRANTIES RELATED TO ITS CONDITION QUALITY OR PERFORMANCE

IN NO EVENT WILL MICROCHIP BE LIABLE FOR ANY INDIRECT SPECIAL PUNITIVE INCIDENTAL ORCONSEQUENTIAL LOSS DAMAGE COST OR EXPENSE OF ANY KIND WHATSOEVER RELATED TO THEINFORMATION OR ITS USE HOWEVER CAUSED EVEN IF MICROCHIP HAS BEEN ADVISED OF THEPOSSIBILITY OR THE DAMAGES ARE FORESEEABLE TO THE FULLEST EXTENT ALLOWED BY LAWMICROCHIPS TOTAL LIABILITY ON ALL CLAIMS IN ANY WAY RELATED TO THE INFORMATION OR ITS USEWILL NOT EXCEED THE AMOUNT OF FEES IF ANY THAT YOU HAVE PAID DIRECTLY TO MICROCHIP FORTHE INFORMATION Use of Microchip devices in life support andor safety applications is entirely at the buyerrsquos riskand the buyer agrees to defend indemnify and hold harmless Microchip from any and all damages claims suits orexpenses resulting from such use No licenses are conveyed implicitly or otherwise under any Microchip intellectualproperty rights unless otherwise stated

Trademarks

The Microchip name and logo the Microchip logo Adaptec AnyRate AVR AVR logo AVR Freaks BesTimeBitCloud chipKIT chipKIT logo CryptoMemory CryptoRF dsPIC FlashFlex flexPWR HELDO IGLOO JukeBloxKeeLoq Kleer LANCheck LinkMD maXStylus maXTouch MediaLB megaAVR Microsemi Microsemi logo MOSTMOST logo MPLAB OptoLyzer PackeTime PIC picoPower PICSTART PIC32 logo PolarFire Prochip DesignerQTouch SAM-BA SenGenuity SpyNIC SST SST Logo SuperFlash Symmetricom SyncServer TachyonTempTrackr TimeSource tinyAVR UNIO Vectron and XMEGA are registered trademarks of Microchip TechnologyIncorporated in the USA and other countries

APT ClockWorks The Embedded Control Solutions Company EtherSynch FlashTec Hyper Speed ControlHyperLight Load IntelliMOS Libero motorBench mTouch Powermite 3 Precision Edge ProASIC ProASIC PlusProASIC Plus logo Quiet-Wire SmartFusion SyncWorld Temux TimeCesium TimeHub TimePictra TimeProviderVite WinPath and ZL are registered trademarks of Microchip Technology Incorporated in the USA

Adjacent Key Suppression AKS Analog-for-the-Digital Age Any Capacitor AnyIn AnyOut BlueSky BodyComCodeGuard CryptoAuthentication CryptoAutomotive CryptoCompanion CryptoController dsPICDEMdsPICDEMnet Dynamic Average Matching DAM ECAN EtherGREEN In-Circuit Serial Programming ICSPINICnet Inter-Chip Connectivity JitterBlocker KleerNet KleerNet logo memBrain Mindi MiWi MPASM MPFMPLAB Certified logo MPLIB MPLINK MultiTRAK NetDetach Omniscient Code Generation PICDEMPICDEMnet PICkit PICtail PowerSmart PureSilicon QMatrix REAL ICE Ripple Blocker SAM-ICE Serial QuadIO SMART-IS SQI SuperSwitcher SuperSwitcher II Total Endurance TSHARC USBCheck VariSenseViewSpan WiperLock Wireless DNA and ZENA are trademarks of Microchip Technology Incorporated in the USAand other countries

SQTP is a service mark of Microchip Technology Incorporated in the USA

The Adaptec logo Frequency on Demand Silicon Storage Technology and Symmcom are registered trademarks ofMicrochip Technology Inc in other countries

GestIC is a registered trademark of Microchip Technology Germany II GmbH amp Co KG a subsidiary of MicrochipTechnology Inc in other countries

All other trademarks mentioned herein are property of their respective companiescopy 2020 Microchip Technology Incorporated Printed in the USA All Rights Reserved

ISBN 978-1-5224-6667-3

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 43

Quality Management SystemFor information regarding Microchiprsquos Quality Management Systems please visit wwwmicrochipcomquality

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 44

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupportwwwmicrochipcomsupportWeb AddresswwwmicrochipcomAtlantaDuluth GATel 678-957-9614Fax 678-957-1455Austin TXTel 512-257-3370BostonWestborough MATel 774-760-0087Fax 774-760-0088ChicagoItasca ILTel 630-285-0071Fax 630-285-0075DallasAddison TXTel 972-818-7423Fax 972-818-2924DetroitNovi MITel 248-848-4000Houston TXTel 281-894-5983IndianapolisNoblesville INTel 317-773-8323Fax 317-773-5453Tel 317-536-2380Los AngelesMission Viejo CATel 949-462-9523Fax 949-462-9608Tel 951-273-7800Raleigh NCTel 919-844-7510New York NYTel 631-435-6000San Jose CATel 408-735-9110Tel 408-436-4270Canada - TorontoTel 905-695-1980Fax 905-695-2078

Australia - SydneyTel 61-2-9868-6733China - BeijingTel 86-10-8569-7000China - ChengduTel 86-28-8665-5511China - ChongqingTel 86-23-8980-9588China - DongguanTel 86-769-8702-9880China - GuangzhouTel 86-20-8755-8029China - HangzhouTel 86-571-8792-8115China - Hong Kong SARTel 852-2943-5100China - NanjingTel 86-25-8473-2460China - QingdaoTel 86-532-8502-7355China - ShanghaiTel 86-21-3326-8000China - ShenyangTel 86-24-2334-2829China - ShenzhenTel 86-755-8864-2200China - SuzhouTel 86-186-6233-1526China - WuhanTel 86-27-5980-5300China - XianTel 86-29-8833-7252China - XiamenTel 86-592-2388138China - ZhuhaiTel 86-756-3210040

India - BangaloreTel 91-80-3090-4444India - New DelhiTel 91-11-4160-8631India - PuneTel 91-20-4121-0141Japan - OsakaTel 81-6-6152-7160Japan - TokyoTel 81-3-6880- 3770Korea - DaeguTel 82-53-744-4301Korea - SeoulTel 82-2-554-7200Malaysia - Kuala LumpurTel 60-3-7651-7906Malaysia - PenangTel 60-4-227-8870Philippines - ManilaTel 63-2-634-9065SingaporeTel 65-6334-8870Taiwan - Hsin ChuTel 886-3-577-8366Taiwan - KaohsiungTel 886-7-213-7830Taiwan - TaipeiTel 886-2-2508-8600Thailand - BangkokTel 66-2-694-1351Vietnam - Ho Chi MinhTel 84-28-5448-2100

Austria - WelsTel 43-7242-2244-39Fax 43-7242-2244-393Denmark - CopenhagenTel 45-4485-5910Fax 45-4485-2829Finland - EspooTel 358-9-4520-820France - ParisTel 33-1-69-53-63-20Fax 33-1-69-30-90-79Germany - GarchingTel 49-8931-9700Germany - HaanTel 49-2129-3766400Germany - HeilbronnTel 49-7131-72400Germany - KarlsruheTel 49-721-625370Germany - MunichTel 49-89-627-144-0Fax 49-89-627-144-44Germany - RosenheimTel 49-8031-354-560Israel - RarsquoananaTel 972-9-744-7705Italy - MilanTel 39-0331-742611Fax 39-0331-466781Italy - PadovaTel 39-049-7625286Netherlands - DrunenTel 31-416-690399Fax 31-416-690340Norway - TrondheimTel 47-72884388Poland - WarsawTel 48-22-3325737Romania - BucharestTel 40-21-407-87-50Spain - MadridTel 34-91-708-08-90Fax 34-91-708-08-91Sweden - GothenbergTel 46-31-704-60-40Sweden - StockholmTel 46-8-5090-4654UK - WokinghamTel 44-118-921-5800Fax 44-118-921-5820

Worldwide Sales and Service

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 45

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Board Overview
      • 2 Getting Started
        • 21 Quick Start
          • 211 Driver Installation
          • 212 Kit Window
          • 213 MPLABreg X IDE Device Family Packs
          • 214 Atmel Studio 7 Device Family Pack
            • 22 Design Documentation and Relevant Links
              • 3 Preprogrammed Application
              • 4 Curiosity Nano
                • 41 On-Board Debugger Overview
                  • 411 Debugger
                  • 412 Virtual Serial Port (CDC)
                    • 4121 Overview
                    • 4122 Operating System Support
                    • 4123 Limitations
                    • 4124 Signaling
                    • 4125 Advanced Use
                      • 413 Mass Storage Device
                        • 4131 Mass Storage Device Implementation
                        • 4132 Limitations of Drag-and-Drop Programming
                        • 4133 Special Commands
                          • 414 Data Gateway Interface (DGI)
                            • 4141 Debug GPIO
                            • 4142 Timestamping
                                • 42 Curiosity Nano Standard Pinout
                                • 43 Power Supply
                                  • 431 Target Regulator
                                  • 432 External Supply
                                  • 433 VBUS Output Pin
                                  • 434 Power Supply Exceptions
                                    • 44 Low-Power Measurement
                                    • 45 Programming External Microcontrollers
                                      • 451 Supported Devices
                                      • 452 Software Configuration
                                      • 453 Hardware Modifications
                                      • 454 Connecting to External Microcontrollers
                                        • 46 Connecting External Debuggers
                                          • 5 Hardware User Guide
                                            • 51 Connectors
                                              • 511 AVR128DB48 Curiosity Nano Pinout
                                              • 512 Using Pin Headers
                                              • 513 Multi-Voltage IO
                                              • 514 Operational Amplifiers
                                                • 52 Peripherals
                                                  • 521 LED
                                                  • 522 Mechanical Switch
                                                  • 523 32768 kHz Crystal
                                                  • 524 1600 MHz Crystal
                                                  • 525 On-Board Debugger Implementation
                                                    • 5251 On-Board Debugger Connections
                                                      • 6 Hardware Revision History and Known Issues
                                                        • 61 Identifying Product ID and Revision
                                                        • 62 Revision 3
                                                        • 63 Revision 2
                                                          • 7 Document Revision History
                                                          • 8 Appendix
                                                            • 81 Schematic
                                                            • 82 Assembly Drawing
                                                            • 83 Curiosity Nano Base for Click boardstrade
                                                            • 84 Disconnecting the On-board Debugger
                                                            • 85 Getting Started with IAR
                                                              • The Microchip Website
                                                              • Product Change Notification Service
                                                              • Customer Support
                                                              • Microchip Devices Code Protection Feature
                                                              • Legal Notice
                                                              • Trademarks
                                                              • Quality Management System
                                                              • Worldwide Sales and Service
Page 30: AVR128DB48 Curiosity Nano Hardware User Guideww1.microchip.com/downloads/en/DeviceDoc/AVR128DB48-Curiosit… · 4. Curiosity Nano Curiosity Nano is an evaluation platform of small

continuedAVR128DB48 Pin Function Shared Functionality

PF1 XTAL32K2 (Crystal output) Edge connector

PA0 and PA1 can be used as GPIO To do so some hardware modifications are required

WARNINGBefore any hardware modifications are done make sure the board is disconnected from the USB orexternal power

bull Disconnect the 32768 kHz crystal by cutting the two straps on the top side of the board next to the crystal(J207 J208) The crystal should be disconnected when using the pin as GPIO as this might harm the crystal

bull Connect the IO lines to the edge connector by placing solder blobs on the circular solder points marked PF0and PF1 on the bottom side of the board (J210 J211)

Figure 5-5 Crystal Connection and Cut Straps

Top side Boom side

J211

J210

J207

J20832768 kHz Crystal

J209

524 1600 MHz Crystal

On the AVR128DB48 Curiosity Nano board is a mounted 1600 MHz crystal of type VXM7-9040-16M0000000 thecrystal is accurate to within 20 ppm Using the External High-Frequency Crystal Oscillator (XOSCHF) module inAVR128DB48 with the mounted 1600 MHz crystal generates a clock signal that is significantly more accurate thanthe Internal High-Frequency Oscillator (OSCHF) module

The 1600 MHz crystal is connected to AVR128DB48 on PA0 and PA1 which are also routed to the edge connectorthrough two solder points PA0 and PA1 are disconnected from the edge connector by default to reduce the chanceof an external signal causing contention with the crystal and to remove excessive capacitance on the lines

Next to the 1600 MHz crystal is a cut-strap (J217) which can be used to measure the oscillator safety factor This isdone by cutting the strap and adding a 0402 SMD resistor across the strap More information about oscillatorallowance and safety factor can be found in the AN2648 application note from Microchip

Cut straps and solder points can be seen in Figure 5-6

Table 5-5 Crystal Connections

AVR128DB48 Pin Function Shared Functionality

PA0 XTALHF1 (Crystal input) Edge connector

PA1 XTALHF2 (Crystal output) Edge connector

PA0 and PA1 can be used as GPIO To do so some hardware modifications are required

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 30

WARNINGBefore any hardware modifications are done make sure the board is disconnected from USB or externalpower

bull Disconnect the 1600 MHz crystal by cutting the two straps on the top side of the board next to the crystal (J215J216) The crystal should be disconnected when using the pin as GPIO as this might harm the crystal

bull Connect the IO lines to the edge connector by placing solder blobs on the circular solder points marked PA0and PA1 on the bottom side of the board (J213 J214)

Figure 5-6 Crystal Connection and Cut Straps

Top side Boom side

J214

J213

J216

J2151600 MHzCrystal

J217

525 On-Board Debugger ImplementationAVR128DB48 Curiosity Nano features an on-board debugger that can be used to program and debug theAVR128DB48 using UPDI The on-board debugger also includes a virtual serial port (CDC) interface over UART anddebug GPIO Both MPLABreg X IDE and Atmel Studio 7 can be used as a front-end for the on-board debugger forprogramming and debugging MPLAB Data Visualizer can be used as a front-end for the CDC and debug GPIO

5251 On-Board Debugger ConnectionsThe table below shows the connections between the target and the debugger section All connections between thetarget and the debugger are tri-stated as long as the debugger is not actively using the interface Hence since thereare little contaminations of the signals the pins can be configured to anything the user wants

For further information on how to use the capabilities of the on-board debugger see 41 On-Board DebuggerOverview

Table 5-6 On-Board Debugger Connections

AVR128DB48Pin

Debugger Pin Function Shared Functionality

PB1 CDC TX UART RX (AVR128DB48 RX line) Edge connector

PB0 CDC RX UART TX (AVR128DB48 TX line) Edge connector

UPDI DBG0 UPDI Edge connector

PB3 DBG1 LED0Debug GPIO1 Edge connector

PB2 DBG2 SW0Debug GPIO0 Edge connector

PF6 DBG3 RESET Edge connector

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 31

6 Hardware Revision History and Known IssuesThis user guide is written to provide information about the latest available revision of the board The followingsections contain information about known issues a revision history of older revisions and how older revisions differfrom the latest revision

61 Identifying Product ID and RevisionThe revision and product identifier of the AVR128DB48 Curiosity Nano Board can be found in two ways Either byutilizing the MPLABreg X IDE or Atmel Studio 7 Kit Window or by looking at the sticker on the bottom side of the PCB

By connecting AVR128DB48 Curiosity Nano to a computer with MPLABreg X IDE or Atmel Studio 7 running the KitWindow will pop up The first six digits of the serial number which is listed under kit information contain the productidentifier and revision

Tip  The Kit Window can be opened in MPLABreg X IDE through the menu bar Window gt Kit Window

The same information can be found on the sticker on the bottom side of the PCB Most boards will have the identifierand revision printed in plain text as A09-nnnnrr where ldquonnnnrdquo is the identifier and ldquorrrdquo is the revision Boards withlimited space have a sticker with only a data matrix code containing the product identifier revision and serialnumber

The serial number string has the following format

nnnnrrssssssssss

n = product identifier

r = revision

s = serial number

The product identifier for AVR128DB48 Curiosity Nano is A09‑3372

62 Revision 3AVR128DB48 silicon revision A5 or later is mounted on this revision of the board

63 Revision 2Revision 2 is the initially released board revision

AVR128DB48 silicon revision A4 is mounted on this revision of the board

AVR128DB48 Curiosity NanoHardware Revision History and Known Issues

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 32

7 Document Revision HistoryDoc Rev Date Comments

A 092020 Initial document release

AVR128DB48 Curiosity NanoDocument Revision History

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 33

8 Appendix

81 SchematicFigure 8-1 AVR128DB48 Curiosity Nano Schematic

11

22

33

44

55

66

77

88

DD

CC

BB

AA

2 of

4

AV

R12

8DB

48 C

uri

osit

y N

ano

240

820

20A

VR

128D

B48

_Cur

iosi

ty_N

ano_

Targ

et_M

CU

Sch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA

Rev

isio

n

File

P

CB

Num

ber

PC

B

Rev

isio

n

Des

ign

ed w

ith

Dra

wn

By

ML

Shee

t Titl

e

Targ

et M

CU

Eng

inee

rA

H

A08

-305

71

Size

A3

A09

-337

22

Page

D

ateA

ltium

com

GN

D

VD

DIO

2

100n

C20

1

GN

D

PA5_

SPI0

_MIS

OPA

6_SP

I0_S

CK

PA7_

SPI0

_SS

PB0_

USA

RT

3_T

XPB

1_U

SAR

T3_

RX

PB2_

SW0_

DB

G2

PB3_

LE

D0_

DB

G1

PB

4P

B5

PC

0P

C1

PC

2

PC3

PC4PC5PC6PC7PD0_AIN0_TCA0_WO0PD1_AIN1_OP0_INP_TCA0_WO1PD2_AIN2_OP0_OUT_TCA0_WO2PD3_AIN3_OP0_INNPD4_AIN4_OP1_INP

PA3_TWI0_SCL

PA1_XTALHF2

UPDI_DBG0

PF5_USART2_RX

PF3

PF

2PF

1_X

TA

L32

K2

PF0_

XT

AL

32K

1P

E3_

OP

2_IN

NP

E2_

OP

2_O

UT

PE

1_O

P2_

INP

PE

0

PD5_

AIN

5_O

P1_

OU

TPD

6_A

IN6

PD7_

AIN

7_O

P1_

INN

GN

D

VC

C_T

AR

GE

T

100n

C20

2

GN

DV

CC

_TA

RG

ET

100n

C20

0

PF1_XTAL32K2

PF0_XTAL32K1

PA2_TWI0_SDA

PA0_XTALHF1

PF4_USART2_TX

PA4_SPI0_MOSI

GN

D

PA7_

SPI0

_SS

PA6_

SPI0

_SC

KPA

5_SP

I0_M

ISO

PA4_

SPI0

_MO

SIPA

3_T

WI0

_SC

LPA

2_T

WI0

_SD

A

PC

0P

C1

PC

2P

C3

PB

4P

B5

PD7_

AIN

7_O

P1_

INN

PD6_

AIN

6

PD2_

AIN

2_O

P0_

OU

T_T

CA

0_W

O2

PD1_

AIN

1_O

P0_

INP_

TC

A0_

WO

1PD

0_A

IN0_

TC

A0_

WO

0

PD5_

AIN

5_O

P1_

OU

TPD

4_A

IN4_

OP

1_IN

P

PD3_

AIN

3_O

P0_

INN

32K

Hz

Cry

stal

PB0_

USA

RT

3_T

XPB

1_U

SAR

T3_

RX

1kR203

US

ER

LE

D

VC

C_T

AR

GE

T

PF6_DBG3

PB2_SW0_DBG2

PB3_LED0_DBG1

GN

D

USE

R B

UT

TO

N

PB3_

LE

D0_

DB

G1

PB2_

SW0_

DB

G2

PB1_

USA

RT

3_R

XPB

0_U

SAR

T3_

TX

PF4_

USA

RT

2_T

XPF

5_U

SAR

T2_

RX

PF

2P

F3

PC

4P

C5

PC

6P

C7

1kR202

YELLOWLEDSML-D12Y1WT86

2 1

D200

TS604VM1-035CR13

4 2

SW20

0

GN

DV

CC

_ED

GE

GN

DG

ND

GN

DG

ND

UPD

I_D

BG

0P

F6_

DB

G3

J209

PB3_

LE

D0_

DB

G1

PB2_

SW0_

DB

G2

AV

R12

8DB

48

22u

FC

205

VC

C_E

DG

E

GN

D

DBG0

CDC_TXCDC_RX

DBG2

DBG1

DBG3

DBG2

DE

BU

GG

ER

CO

NN

EC

TIO

NS

DBG1

DBG3DBG0

VOFF

ID_SYS

ID_SYS

VOFF

TA

RG

ET

BU

LK

VC

C_T

AR

GE

TR

ESE

T P

ull

VB

US

CD

C R

X3

CD

C T

X4

DB

G1

5

DB

G2

6

0 T

X7

1 R

X8

2 SD

A9

3 S

CL

10

4 M

OSI

11

5 M

ISO

12

6 S

CK

13

7 S

S14

GN

D15

0 (T

X)

16

1 (R

X)

17

218

319

020

GN

D24

DB

G3

54

DB

G0

53

GN

D52

VC

C51

PW

M 3

46

AD

C 2

45

AD

C 1

44

AD

C 0

43

GN

D42

438

434

GN

D33

AD

C 7

50

AD

C 6

49

AD

C 5

48

PW

M 4

47

DE

BU

GG

ER

TAR

GE

T

ID2

VO

FF

55

121

222

323

025

126

227

328

429

530

631

732

535

636

737

539

640

741

RE

SER

VE

D1

VB

US

56

CN

AN

O56

-pin

edg

e co

nnec

tor

J200

J201

J203

J205

J206

J202

J204

PF1_

XT

AL

32K

2PF

0_X

TA

L32

K1

NC

XOUT

XIN

47kR200

AV

R12

8DB

48

UPD

I

GPI

O1

GPI

O0

RE

SET

DB

G0

DB

G1

DB

G2

DB

G3

Deb

ugge

r

CD

C T

X

CD

C R

X

UA

RT

3 R

X

UA

RT

3 T

X

VT

G1

8V -

55

VPB

3

PB

2

PF

6

UP

DI

PB

0

PB

1

Nam

eP

in

PE

3_O

P2_

INN

PE

2_O

P2_

OU

TP

E1_

OP

2_IN

PP

E0

J207

J208

PF

0P

F1

PA5

1

PA6

2

PA7

3

PB0

4

PB1

5

PB2

6

PB3

7

PB4

8

PB5

9

PC0

10

PC1

11

PC2

12

PC313

VDDIO214

GND15

PC416

PC517

PC618

PC719

PD020

PD121

PD222

PD323

PD424

PD5

25

PD6

26

PD7

27

AVDD

28

GND

29

PE0

30

PE1

31

PE2

32

PE3

33

XTAL32K1PF0

34

XTAL32K2PF1

35

PF2

36

PF337

PF438

PF539

PF640

UPDI41

VDD42

GND43

XTALHF1PA044

XTALHF2PA145

PA246

PA347

PA448

AV

R12

8DB

48-I

PT

U20

0

0RR204

GN

D

VC

C_T

AR

GE

T

VDDIO2

GND

J210

J211

82p

C20

48

2pC

203

GN

DG

ND

16M

Hz

Cry

stal

J217

XHFOUT

XHFIN

J214

J213

GN

D

J215

J216

PA0_XTALHF1

PA1_XTALHF2

PA0_

XT

AL

HF

1PA

1_X

TA

LH

F2

PA0

PA1

1 2

J212 N

M

15pF

C20

615

pFC

207

13

24 16

000

MH

zV

XM

7-90

40-1

6M00

0000

0TR

XC

201

GN

D32

768

kHz

VM

K3-

9001

-32K

7680

000T

R

XC

200

CDC_TX

CDC_RX

CD

C_T

XC

DC

_RX

Cry

stal

dat

ashe

et

Ccr

ysta

l = 9

pFm

ax E

SR

= 7

0kO

hmA

ccur

acy

plusmn20p

pm

AV

R48

DB

128

data

shee

tC

xin

= 4

0pF

(ty

pica

l val

ue)

Cxo

ut =

40

pF (

typi

cal v

alue

)C

lasymp1

( (1

40

pF)+

(1

40p

F)

)asymp

20p

FM

axim

um L

oad

= 1

25p

FM

axim

um E

SR =

50k

Ohm

Est

imat

ed C

pcb

= 0

5pF

Est

imat

ed lo

adC

= 2

(C

crys

tal-

Cpa

ra -

Cpc

b)C

= 2

(9p

F -

20

pF -

05

pF)

C =

13

0pF

Sele

cted

in d

esig

n af

ter

veri

fica

tion

C=

82

pF8

2pF

NO

TE

on

UA

RT

CD

C

RX

TX

onth

ehe

ader

deno

tes

the

inpu

tout

put d

irec

tion

of th

e si

gnal

resp

ectiv

e to

its

sou

rce

CD

C T

X is

out

put f

rom

the

DE

BU

GG

ER

C

DC

RX

is in

put t

o th

e D

EB

UG

GE

R

TX

is o

utpu

t fro

m th

e T

AR

GE

T d

evic

eR

X is

inpu

t to

the

TA

RG

ET

dev

ice

NO

TE

on

I2C

No

pull

-ups

on

boar

d P

ull-

ups

shou

ld b

em

ount

ed c

lose

to s

lave

dev

ice(

s)

WA

RN

ING

M

ake

sure

tore

mov

e R

204

befo

reap

plyi

ng p

ower

to J

212

Cry

stal

dat

ashe

et

Ccr

ysta

l = 1

2pF

max

ES

R =

60O

hmA

ccur

acy

plusmn30p

pm

AV

R48

DB

128

data

shee

tC

xin

= 4

0pF

(ty

pica

l val

ue)

Cxo

ut =

40

pF (

typi

cal v

alue

)C

lasymp1

( (1

40

pF)+

(1

40p

F)

)asymp

20p

FM

axim

um L

oad

= 1

25p

FM

axim

um E

SR =

k

Ohm

Est

imat

ed C

pcb

= 0

5pF

Est

imat

ed lo

adC

= 2

(C

crys

tal-

Cpa

ra -

Cpc

b)C

= 2

(12

pF -

20

pF -

05

pF)

C =

19

0pF

Sele

cted

in d

esig

n af

ter

veri

fica

tion

C=

15p

F1

5pF

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 34

11

22

33

44

55

66

77

88

DD

CC

BB

AA

3 of

4

AV

R12

8DB

48 C

uri

osit

y N

ano

2020

-06-

26A

VR

128D

B48

_Cur

iosi

ty_N

ano_

Deb

ugge

rSch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA

Rev

isio

n

Fil

eP

CB

Num

ber

PC

B

Rev

isio

n

Des

ign

ed w

ith

Dra

wn

By

ML

Shee

t Tit

le

Deb

ugge

r

Eng

inee

rA

H

A08

-305

71

Size

A3

A09

-337

22

Page

D

ateA

ltium

com

DE

BU

GG

ER

USB

MIC

RO

-B C

ON

NE

CT

OR

GN

D

USB

D_P

USB

D_N

100n

C10

7

100n

C10

8

1kR

107

VC

C_P

3V3

SRST

STA

TU

S_L

ED

SHIE

LD

VB

US

VC

C_P

3V3

GN

D

TP

100

Test

poin

t Arr

ay

12

34

56

78

910

TC

KT

DO

TM

SV

sup

TD

IG

ND

TR

STSR

STV

Tre

fG

ND

J102

GN

D

47u

F

C10

0

DBG0

DB

G0

21

GR

EE

N L

ED

SML

-P12

MT

T86

R

D10

0

VBUS

1

D-

2

D+

3

GND

5

SHIELD1

6

SHIELD2

7

ID

4

SHIELD3

8

SHIELD4

9 MU

-MB

0142

AB

2-26

9

J105

PAD

33

PA00

1

PA01

2

PA02

3

PA03

4

GND 10VDDANA 9

PA04

5

PA05

6

PA06

7

PA07

8

PA08 11

PA09 12

PA10 13

PA11 14

PA14 15

PA15 16

PA16

17

PA17

18

PA18

19

PA19

20

PA22

21

USB_SOFPA23

22

USB_DMPA24

23

USB_DPPA25

24

PA2725 RESETN26 PA2827 GND28 VDDCORE29 VDDIN30 SWDCLKPA3031 SWDIOPA3132

SAM

D21

E18

A-M

UT

U10

0

VOUT

1

VOUT

2

GND 3

EN

4

VIN

6

NC

5

EP 7

MIC

5528

-33

YM

TU

101

VC

C_P

3V3

GN

D

USB

D_P

USB

D_N

GN

D

1uC

106

VC

C_M

CU

_CO

RE

VC

C_P

3V3

VC

C_P

3V3

22u

FC

101

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

3

VC

C_P

3V3

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

4

VC

C_P

3V3

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

5

VC

C_P

3V3

GN

D

GN

D GN

D

GN

D

VC

C_E

DG

E

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

7

VC

C_P

3V3

GN

DDBG2

DB

G3_

CT

RL

S1_0

_TX

S1_1

_RX

S0_2

_TX

DA

CV

TG

_AD

C

RE

SER

VE

D

S0_3

_CL

K

DBG0_CTRL

CD

C_T

X_C

TR

L

BO

OT

DE

BU

GG

ER

PO

WE

RS

TA

TU

S L

ED

EN

1

BYP

6

VOUT

4

GND

2

VIN

3

NCADJ

5

GND

7

MIC

5353

U10

2

100n

C10

2

GN

D

GN

D

47kR101

27kR104 G

ND

33k

R10

6

22u

F

C10

3 GN

D

1kR

108

J100

VC

C_L

EV

EL

VC

C_R

EG

UL

AT

OR

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

6

VC

C_P

3V3

GN

DDBG1

CD

C_R

X

CD

C_T

X

DBG3

DBG1_CTRL

DE

BU

GG

ER

RE

GU

LA

TO

R

REG_ENABLE

RE

G_E

NA

BL

E

47kR103

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

47kR102

47kR105

SWC

LK

GN

D

47kR100 G

ND

DB

G2

S0_0

_RX

DB

G1_

CT

RL

DB

G0_

CT

RL

DB

G3

OP

EN

DR

AIN

TA

RG

ET

AD

JUST

AB

LE

RE

GU

LA

TO

R

SRST

DE

BU

GG

ER

TE

ST

PO

INT DBG2_CTRL

VO

FF

CD

C_R

X_C

TR

L

47kR109

DB

G1

CD

C_T

X_C

TR

L

CD

C_R

X_C

TR

L

SWC

LK

REG_ADJUST

DBG2_GPIO

DB

G3_

CT

RL

DB

G2_

CT

RL

UP

DI

UPD

I

GPI

O

GPI

O

RE

SET

Sign

al

DB

G0

DB

G1

DB

G2

DB

G3

ICS

PIn

terf

ace

DA

T

CL

K

GPI

O

MC

LR

DB

G3

CD

C T

X

CD

C R

X

UA

RT

RX

UA

RT

TX

UA

RT

RX

UA

RT

TX

TA

RG

ET

TA

RG

ET

1kR

110

VBUS_ADC

1

23

DM

N65

D8L

FB

Q10

1

VC

C-

-

ID_SYS

VOFF

1kR112

VC

C_P

3V3

VT

G_A

DC

DA

C

MIC

9416

3

VIN

B2

VOUT

A1

VIN

A2

EN

C2

GND

C1

VOUT

B1

U10

8

GN

D

ID_S

YS

VT

G_E

N

VTG_EN

VBUS_ADC

SWD

IO

ID_S

YS

TP

101

GN

DSW

DIO

VO

FF

47kR111 G

ND

ID P

IN

MC

3621

3

F10

0

VC

C_V

BU

S

VC

C_V

BU

S

VC

C_V

BU

S

J101

VC

C_T

AR

GE

T

47k

R11

3

CDC_TX

CDC_RX

Prog

ram

min

g co

nnec

tor

for

fact

ory

prog

ram

min

g of

DE

BU

GG

ER

MIC

5528

V

in 2

5V

to 5

5V

Vou

t F

ixed

33

VIm

ax 5

00m

AD

ropo

ut 2

60m

V

500

mA

MIC

5353

V

in 2

6V

to 6

VV

out

12

5V to

51

VIm

ax 5

00m

AD

ropo

ut (

typi

cal)

50m

V

150m

A 1

60m

V

500

mA

Acc

urac

y 2

in

itia

lT

herm

al s

hutd

own

and

curr

ent l

imit

Max

imum

out

put v

olta

ge is

lim

ited

by

the

inpu

t vol

tage

and

the

drop

out v

olta

ge in

the

regu

lato

r(V

max

= V

in -

dro

pout

)

J100

-

Cut

-str

ap u

sed

for

full

sep

arat

ion

of ta

rget

pow

er f

rom

the

leve

l shi

fter

s an

don

-boa

rd r

egul

ator

s-

For

cur

rent

mea

sure

men

ts u

sing

the

on-b

oard

pow

er s

uppl

y th

isst

rap

mus

t be

cut a

nd a

nam

met

er c

onne

cted

acr

oss

- F

or c

urre

nt m

easu

rem

ents

usi

ng a

n ex

tern

al p

ower

sup

ply

this

str

ap c

ould

be

cut f

or m

ore

accu

rate

mea

sure

men

ts L

eaka

ge b

ack

thro

ugh

the

swit

ch is

in th

e m

icro

am

pere

ran

ge

PT

C R

eset

tabl

e fu

se

Hol

d cu

rren

t 5

00m

AT

rip

curr

ent

100

0mA

Adj

usta

ble

outp

ut a

nd li

mit

atio

ns

- T

he D

EB

UG

GE

R c

an a

djus

t the

out

put v

olta

ge o

f th

e re

gula

tor

betw

een

125

V a

nd 5

1V

to th

e ta

rget

-

The

vol

tage

out

put i

s li

mit

ed b

y th

e in

put (

US

B)

whi

ch c

an v

ary

betw

een

440

V to

52

5V-

The

leve

l shi

fter

s ha

ve a

min

imal

vol

tage

leve

l of

165

V a

nd w

ill l

imit

the

min

imum

ope

ratin

g vo

ltage

all

owed

for

the

targ

et to

sti

ll a

llow

com

mun

icat

ion

- T

he M

IC94

163

has

a m

inim

al v

olat

ege

leve

l of

170

V a

nd w

ill l

imit

the

min

imum

vol

tage

del

iver

ed to

the

targ

et

- F

irm

war

e co

nfig

urat

ion

wil

l lim

it th

e vo

ltage

ran

ge to

be

wit

hin

the

the

targ

et s

peci

fica

tion

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 35

82 Assembly DrawingFigure 8-2 AVR128DB48 Curiosity Nano Assembly Drawing Top

+

Cb

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20001 PAC20002 COC200

PAC20101 PAC20102 COC201

PAC20201 PAC20202 COC202 PAC20301

PAC20302 COC203

PAC20401

PAC20402 COC204

PAC20502

PAC20501 COC205

PAC20601

PAC20602 COC206 PAC20701

PAC20702 COC207 PAD10002 PAD10001 COD100

PAD20002

PAD20001 COD200

PAF10002

PAF10001 COF100

PAJ10002 PAJ10001 COJ100

PAJ10101 PAJ10102 COJ101

PAJ10201

PAJ10202

PAJ10203

PAJ10204

PAJ10205

PAJ10206 COJ102

PAJ10506

PAJ10507 PAJ10509

PAJ10508 PAJ105010

PAJ105011 PAJ10505

PAJ10504

PAJ10503

PAJ10502

PAJ10501

PAJ10500

COJ105

PAJ200056 PAJ200053

PAJ200028 PAJ20002 PAJ20001

PAJ200051 PAJ200050 PAJ200052 PAJ200049 PAJ200048 PAJ200047 PAJ200046 PAJ200045 PAJ200044 PAJ200043 PAJ200042 PAJ200041 PAJ200040 PAJ200039 PAJ200038 PAJ200037 PAJ200036 PAJ200035 PAJ200034 PAJ200033 PAJ200032 PAJ200031 PAJ200030 PAJ200029

PAJ20003 PAJ20004 PAJ20005 PAJ20006 PAJ20007 PAJ20008 PAJ20009 PAJ200010 PAJ200011 PAJ200012 PAJ200013 PAJ200014 PAJ200015 PAJ200016 PAJ200017 PAJ200018 PAJ200019 PAJ200020 PAJ200021 PAJ200022 PAJ200023 PAJ200026 PAJ200025 PAJ200024 PAJ200027

PAJ200054 PAJ200055 PAJ20000

COJ200

PAJ20102 PAJ20101 COJ201

PAJ20202 PAJ20201 COJ202

PAJ20302 PAJ20301 COJ203

PAJ20402 PAJ20401 COJ204

PAJ20502 PAJ20501 COJ205

PAJ20602 PAJ20601 COJ206 PAJ20702 PAJ20701 COJ207

PAJ20802 PAJ20801 COJ208

PAJ20902 PAJ20901 COJ209

PAJ21001 PAJ21002 PAJ21005 COJ210

PAJ21102 PAJ21101 PAJ21105 COJ211

PAJ21202 PAJ21201 COJ212

PAJ21301 PAJ21302 PAJ21305 COJ213

PAJ21401 PAJ21402 PAJ21405 COJ214

PAJ21502 PAJ21501 COJ215

PAJ21602 PAJ21601 COJ216 PAJ21702 PAJ21701 COJ217

COLABEL1

PAQ10101 PAQ10102 PAQ10103 PAQ10100

COQ101 PAR10002

PAR10001 COR100 PAR10101 PAR10102 COR101

PAR10202 PAR10201 COR102

PAR10302 PAR10301 COR103

PAR10401 PAR10402 COR104

PAR10502

PAR10501 COR105

PAR10601 PAR10602 COR106

PAR10702 PAR10701 COR107

PAR10801

PAR10802 COR108

PAR10901 PAR10902 COR109

PAR11001 PAR11002 COR110

PAR11101 PAR11102 COR111

PAR11201 PAR11202 COR112

PAR11302 PAR11301 COR113

PAR20001 PAR20002 COR200 PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203 PAR20401 PAR20402 COR204

PASW20003

PASW20004 PASW20002

PASW20001 COSW200

PATP10001 COTP100

PATP10101 COTP101 PAU100033

PAU100032 PAU100031 PAU100030 PAU100029 PAU100028 PAU100027 PAU100026 PAU100025 PAU100024

PAU100023

PAU100022

PAU100021

PAU100020

PAU100019

PAU100018

PAU100017 PAU100016 PAU100015 PAU100014 PAU100013 PAU100012 PAU100011 PAU100010

PAU10001

PAU10002

PAU10003

PAU10004

PAU10005

PAU10006

PAU10007

PAU10008 PAU10009

COU100

PAU10107

PAU10104 PAU10105 PAU10106

PAU10103 PAU10102 PAU10101 PAU10100 COU101 PAU10207

PAU10204 PAU10205

PAU10206

PAU10203 PAU10202

PAU10201

COU102

PAU10306

PAU10305 PAU10304 PAU10303

PAU10302 PAU10301 PAU10300

COU103

PAU10406

PAU10405 PAU10404 PAU10403

PAU10402 PAU10401 PAU10400

COU104

PAU10506

PAU10505 PAU10504 PAU10503

PAU10502 PAU10501 PAU10500

COU105

PAU10606

PAU10605 PAU10604 PAU10603

PAU10602 PAU10601 PAU10600

COU106

PAU10706

PAU10705 PAU10704 PAU10703

PAU10702 PAU10701 PAU10700

COU107

PAU1080A1 PAU1080A2

PAU1080B1 PAU1080B2

PAU1080C1 PAU1080C2 COU108

PAU20001 PAU20002 PAU20003 PAU20004 PAU20005 PAU20006 PAU20007 PAU20008 PAU20009 PAU200010 PAU200011 PAU200012 PAU200013 PAU200014 PAU200015 PAU200016 PAU200017 PAU200018 PAU200019 PAU200020 PAU200021 PAU200022 PAU200023 PAU200024 PAU200025 PAU200026 PAU200027 PAU200028 PAU200029 PAU200030 PAU200031 PAU200032 PAU200033 PAU200034 PAU200035 PAU200036

PAU200037 PAU200038 PAU200039 PAU200040 PAU200041 PAU200042 PAU200043 PAU200044 PAU200045 PAU200046 PAU200047 PAU200048

COU200

PAXC20001

PAXC20002 COXC200

PAXC20101 PAXC20102

PAXC20103 PAXC20104 COXC201

Figure 8-3 AVR128DB48 Curiosity Nano Assembly Drawing Bottom

tcR

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20001 PAC20002 COC200

PAC20101 PAC20102 COC201

PAC20201 PAC20202 COC202 PAC20301

PAC20302 COC203

PAC20401

PAC20402 COC204

PAC20502

PAC20501 COC205

PAC20601

PAC20602 COC206 PAC20701

PAC20702 COC207 PAD10002 PAD10001 COD100

PAD20002

PAD20001 COD200

PAF10002

PAF10001 COF100

PAJ10002 PAJ10001 COJ100

PAJ10101 PAJ10102 COJ101

PAJ10201

PAJ10202

PAJ10203

PAJ10204

PAJ10205

PAJ10206 COJ102

PAJ10506

PAJ10507 PAJ10509

PAJ10508 PAJ105010

PAJ105011 PAJ10505

PAJ10504

PAJ10503

PAJ10502

PAJ10501

PAJ10500

COJ105

PAJ200056 PAJ200053

PAJ200028 PAJ20002 PAJ20001

PAJ200051 PAJ200050 PAJ200052 PAJ200049 PAJ200048 PAJ200047 PAJ200046 PAJ200045 PAJ200044 PAJ200043 PAJ200042 PAJ200041 PAJ200040 PAJ200039 PAJ200038 PAJ200037 PAJ200036 PAJ200035 PAJ200034 PAJ200033 PAJ200032 PAJ200031 PAJ200030 PAJ200029

PAJ20003 PAJ20004 PAJ20005 PAJ20006 PAJ20007 PAJ20008 PAJ20009 PAJ200010 PAJ200011 PAJ200012 PAJ200013 PAJ200014 PAJ200015 PAJ200016 PAJ200017 PAJ200018 PAJ200019 PAJ200020 PAJ200021 PAJ200022 PAJ200023 PAJ200026 PAJ200025 PAJ200024 PAJ200027

PAJ200054 PAJ200055 PAJ20000

COJ200

PAJ20102 PAJ20101 COJ201

PAJ20202 PAJ20201 COJ202

PAJ20302 PAJ20301 COJ203

PAJ20402 PAJ20401 COJ204

PAJ20502 PAJ20501 COJ205

PAJ20602 PAJ20601 COJ206 PAJ20702 PAJ20701 COJ207

PAJ20802 PAJ20801 COJ208

PAJ20902 PAJ20901 COJ209

PAJ21001 PAJ21002 PAJ21005 COJ210

PAJ21102 PAJ21101 PAJ21105 COJ211

PAJ21202 PAJ21201 COJ212

PAJ21301 PAJ21302 PAJ21305 COJ213

PAJ21401 PAJ21402 PAJ21405 COJ214

PAJ21502 PAJ21501 COJ215

PAJ21602 PAJ21601 COJ216 PAJ21702 PAJ21701 COJ217

COLABEL1

PAQ10101 PAQ10102 PAQ10103 PAQ10100

COQ101 PAR10002

PAR10001 COR100 PAR10101 PAR10102 COR101

PAR10202 PAR10201 COR102

PAR10302 PAR10301 COR103

PAR10401 PAR10402 COR104

PAR10502

PAR10501 COR105

PAR10601 PAR10602 COR106

PAR10702 PAR10701 COR107

PAR10801

PAR10802 COR108

PAR10901 PAR10902 COR109

PAR11001 PAR11002 COR110

PAR11101 PAR11102 COR111

PAR11201 PAR11202 COR112

PAR11302 PAR11301 COR113

PAR20001 PAR20002 COR200 PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203 PAR20401 PAR20402 COR204

PASW20003

PASW20004 PASW20002

PASW20001 COSW200

PATP10001 COTP100

PATP10101 COTP101 PAU100033

PAU100032 PAU100031 PAU100030 PAU100029 PAU100028 PAU100027 PAU100026 PAU100025 PAU100024

PAU100023

PAU100022

PAU100021

PAU100020

PAU100019

PAU100018

PAU100017 PAU100016 PAU100015 PAU100014 PAU100013 PAU100012 PAU100011 PAU100010

PAU10001

PAU10002

PAU10003

PAU10004

PAU10005

PAU10006

PAU10007

PAU10008 PAU10009

COU100

PAU10107

PAU10104 PAU10105 PAU10106

PAU10103 PAU10102 PAU10101 PAU10100 COU101 PAU10207

PAU10204 PAU10205

PAU10206

PAU10203 PAU10202

PAU10201

COU102

PAU10306

PAU10305 PAU10304 PAU10303

PAU10302 PAU10301 PAU10300

COU103

PAU10406

PAU10405 PAU10404 PAU10403

PAU10402 PAU10401 PAU10400

COU104

PAU10506

PAU10505 PAU10504 PAU10503

PAU10502 PAU10501 PAU10500

COU105

PAU10606

PAU10605 PAU10604 PAU10603

PAU10602 PAU10601 PAU10600

COU106

PAU10706

PAU10705 PAU10704 PAU10703

PAU10702 PAU10701 PAU10700

COU107

PAU1080A1 PAU1080A2

PAU1080B1 PAU1080B2

PAU1080C1 PAU1080C2 COU108

PAU20001 PAU20002 PAU20003 PAU20004 PAU20005 PAU20006 PAU20007 PAU20008 PAU20009 PAU200010 PAU200011 PAU200012 PAU200013 PAU200014 PAU200015 PAU200016 PAU200017 PAU200018 PAU200019 PAU200020 PAU200021 PAU200022 PAU200023 PAU200024 PAU200025 PAU200026 PAU200027 PAU200028 PAU200029 PAU200030 PAU200031 PAU200032 PAU200033 PAU200034 PAU200035 PAU200036

PAU200037 PAU200038 PAU200039 PAU200040 PAU200041 PAU200042 PAU200043 PAU200044 PAU200045 PAU200046 PAU200047 PAU200048

COU200

PAXC20001

PAXC20002 COXC200

PAXC20101 PAXC20102

PAXC20103 PAXC20104 COXC201

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 36

83 Curiosity Nano Base for Click boardstrade

Figure 8-4 AVR128DB48 Curiosity Nano Pinout Mapping

US

B

DE

BU

GG

ER

AV

R1

28

DB

48

SW

0

LE

D0

PS

LE

DNC

NC

ID

ID

CDC RX

CDCRX

USART3 TX

PB0

CDC TX

CDCTX

USART3 RX

PB1

DBG1

DBG1

PB3

LED0

DBG2

DBG2

PB2

SW0

PF4

PF4

USART2 TX

PF5

PF5

USART2 RX

PA2

PA2

TWI0 SDA

PA3

PA3

TWI0 SCL

PA4

PA4

SPI0 MOSI

PA5

PA5

SPI0 MISO

PA6

PA6

SPI0 SCK

PA7

PA7

SPI0 SS

GND

GND

PB0

PB0

USART3 TX

CDC RX

PB1

PB1

USART3 RX

CDC TX

PF2

PF2

PF3

PF3

PC0

PC0

PC1

PC1

PC2

PC2

PC3

PC3

GND

GND

(PA0)

(PA0)

XTALHF1

(PA1)

(PA1)

XTALHF2

PB2

PB2

SW0

PB3

PB3

LED0

VBUS

VBUS

VOFF

VOFF

DBG3

DBG3

PF6

DBG0

DBG0

UPDI

GND

GND

VTG

VTG

PD6

PD6

AIN6

PD3

PD3

AIN3

OP0 INN

PD2

PD2

AIN2

OP0 OUT

TCA0 WO2

PD1

PD1

AIN1

OP0 INP

TCA0 WO1

PD0

PD0

AIN0

TCA0 WO0

PD7

PD7

AIN7

OP1 INN

PD5

PD5

AIN5

OP1 OUT

PD4

PD4

AIN4

OP1 INP

GND

GND

PE3

PE3

OP2 INN

PE2

PE2

OP2 OUT

PE1

PE1

OP2 INP

PE0

PE0

PC7

PC7

PC6

PC6

PC5

PC5

PC4

PC4

GND

GND

PB5

PB5

PB4

PB4

(PF1)

(PF1)

XTAL32K2

(PF0)

(PF0)

XTAL32K1

DE

BU

GG

ER

AV

R1

28

DB

48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

MVIO

OPAMP

Shared pin

AV

R1

28

DB

48

Cu

rio

sity

Na

no

1

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

2

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

3

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

Xp

lain

ed

Pro

Ext

en

sio

nE

XT

11

2

19

20

Cu

rio

sity

Na

no

Ba

sefo

r cl

ick

bo

ard

sT

M

PD4

PD0

PD6

PD3

PA7

PF5

PA6

PF4

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

PD5

PD1

PF3

PF2

PE2

PB1

PA6

PB0

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

PD7

PD2

PE1

PE0

PE3

PF5

PA6

PF4

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

ID

GND

PD5

PD7

PF3

PE1

PD1

PD2

PF2

PE3

PA2

PA3

PB1

PB0

PE2

PA4

PA5

PA6

GND

+33V

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 37

84 Disconnecting the On-board DebuggerThe on-board debugger and level shifters can be completely disconnected from the AVR128DB48

The block diagram below shows all connections between the debugger and the AVR128DB48 The rounded boxesrepresent connections to the board edge The signal names shown are also printed in silkscreen on the bottom sideof the board

To disconnect the debugger cut the straps shown in Figure 8-6

Attention  Cutting the GPIO straps to the on-board debugger will disable the virtual serial portprogramming debugging and data streaming Cutting the power supply strap will disconnect the on-boardpower supply

Tip  Any connection that is cut can be reconnected using solder Alternatively a 0Ω 0402 resistor can bemounted

Tip  When the debugger is disconnected an external debugger can be connected to holes shown in Figure 8-6 Details about connecting an external debugger are described in 46 Connecting ExternalDebuggers

Figure 8-5  On-Board Debugger Connections Block Diagram

DE

BU

GG

ER

TARGETLevel-Shift

PA04PA06PA07PA08PA16PA00PA01

USB

DIR x 5

VCC_P3V3

VBUS

VC

C_L

EV

EL

VC

C_T

AR

GE

TDBG0DBG1DBG2DBG3CDC TXCDC RX

CDC RX

CDC TX

DBG3

DBG2

DBG1

DBG0

GPIO straps

LDO

VOFF

LDO

VBUS VTG

VCC_EDGE

Power Supply strap Target Power strap

UART RXUART TX

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 38

Figure 8-6 On-Board Debugger Connection Cut Straps

GPIO straps (bottom side) Power Supply strap (top side)

85 Getting Started with IARIAR Embedded Workbenchreg for AVRreg is a proprietary high-efficiency compiler not based on GCC Programming anddebugging of AVR128DB48 Curiosity Nano is supported in IARtrade Embedded Workbench for AVR using the Atmel-ICEinterface Some initial settings must be set up in the project to get the programming and debugging to work

The following steps will explain how to get your project ready for programming and debugging

1 Make sure you have opened the project you want to configure Open the OPTIONS dialog for the project2 In the category General Options select the Target tab Select the device for the project or if not listed the

core of the device as shown in Figure 8-73 In the category Debugger select the Setup tab Select Atmel-ICE as the driver as shown in Figure 8-84 In the category Debugger gt Atmel-ICE select the Atmel-ICE 1 tab Select UPDI as the interface and

optionally select the UPDI frequency as shown in Figure 8-9

Info  If the selection of Debug Port (mentioned in step 4) is grayed out the interface is preselected andthe user can skip this configuration step

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 39

Figure 8-7 Select Target Device

Figure 8-8 Select Debugger

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 40

Figure 8-9 Configure Interface

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 41

The Microchip Website

Microchip provides online support via our website at wwwmicrochipcom This website is used to make files andinformation easily available to customers Some of the content available includes

bull Product Support ndash Data sheets and errata application notes and sample programs design resources userrsquosguides and hardware support documents latest software releases and archived software

bull General Technical Support ndash Frequently Asked Questions (FAQs) technical support requests onlinediscussion groups Microchip design partner program member listing

bull Business of Microchip ndash Product selector and ordering guides latest Microchip press releases listing ofseminars and events listings of Microchip sales offices distributors and factory representatives

Product Change Notification Service

Microchiprsquos product change notification service helps keep customers current on Microchip products Subscribers willreceive email notification whenever there are changes updates revisions or errata related to a specified productfamily or development tool of interest

To register go to wwwmicrochipcompcn and follow the registration instructions

Customer Support

Users of Microchip products can receive assistance through several channels

bull Distributor or Representativebull Local Sales Officebull Embedded Solutions Engineer (ESE)bull Technical Support

Customers should contact their distributor representative or ESE for support Local sales offices are also available tohelp customers A listing of sales offices and locations is included in this document

Technical support is available through the website at wwwmicrochipcomsupport

Microchip Devices Code Protection Feature

Note the following details of the code protection feature on Microchip devices

bull Microchip products meet the specifications contained in their particular Microchip Data Sheetbull Microchip believes that its family of products is secure when used in the intended manner and under normal

conditionsbull There are dishonest and possibly illegal methods being used in attempts to breach the code protection features

of the Microchip devices We believe that these methods require using the Microchip products in a manneroutside the operating specifications contained in Microchiprsquos Data Sheets Attempts to breach these codeprotection features most likely cannot be accomplished without violating Microchiprsquos intellectual property rights

bull Microchip is willing to work with any customer who is concerned about the integrity of its codebull Neither Microchip nor any other semiconductor manufacturer can guarantee the security of its code Code

protection does not mean that we are guaranteeing the product is ldquounbreakablerdquo Code protection is constantlyevolving We at Microchip are committed to continuously improving the code protection features of our productsAttempts to break Microchiprsquos code protection feature may be a violation of the Digital Millennium Copyright ActIf such acts allow unauthorized access to your software or other copyrighted work you may have a right to suefor relief under that Act

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 42

Legal Notice

Information contained in this publication is provided for the sole purpose of designing with and using Microchipproducts Information regarding device applications and the like is provided only for your convenience and may besuperseded by updates It is your responsibility to ensure that your application meets with your specifications

THIS INFORMATION IS PROVIDED BY MICROCHIP ldquoAS ISrdquo MICROCHIP MAKES NO REPRESENTATIONS ORWARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED WRITTEN OR ORAL STATUTORY OROTHERWISE RELATED TO THE INFORMATION INCLUDING BUT NOT LIMITED TO ANY IMPLIEDWARRANTIES OF NON-INFRINGEMENT MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSEOR WARRANTIES RELATED TO ITS CONDITION QUALITY OR PERFORMANCE

IN NO EVENT WILL MICROCHIP BE LIABLE FOR ANY INDIRECT SPECIAL PUNITIVE INCIDENTAL ORCONSEQUENTIAL LOSS DAMAGE COST OR EXPENSE OF ANY KIND WHATSOEVER RELATED TO THEINFORMATION OR ITS USE HOWEVER CAUSED EVEN IF MICROCHIP HAS BEEN ADVISED OF THEPOSSIBILITY OR THE DAMAGES ARE FORESEEABLE TO THE FULLEST EXTENT ALLOWED BY LAWMICROCHIPS TOTAL LIABILITY ON ALL CLAIMS IN ANY WAY RELATED TO THE INFORMATION OR ITS USEWILL NOT EXCEED THE AMOUNT OF FEES IF ANY THAT YOU HAVE PAID DIRECTLY TO MICROCHIP FORTHE INFORMATION Use of Microchip devices in life support andor safety applications is entirely at the buyerrsquos riskand the buyer agrees to defend indemnify and hold harmless Microchip from any and all damages claims suits orexpenses resulting from such use No licenses are conveyed implicitly or otherwise under any Microchip intellectualproperty rights unless otherwise stated

Trademarks

The Microchip name and logo the Microchip logo Adaptec AnyRate AVR AVR logo AVR Freaks BesTimeBitCloud chipKIT chipKIT logo CryptoMemory CryptoRF dsPIC FlashFlex flexPWR HELDO IGLOO JukeBloxKeeLoq Kleer LANCheck LinkMD maXStylus maXTouch MediaLB megaAVR Microsemi Microsemi logo MOSTMOST logo MPLAB OptoLyzer PackeTime PIC picoPower PICSTART PIC32 logo PolarFire Prochip DesignerQTouch SAM-BA SenGenuity SpyNIC SST SST Logo SuperFlash Symmetricom SyncServer TachyonTempTrackr TimeSource tinyAVR UNIO Vectron and XMEGA are registered trademarks of Microchip TechnologyIncorporated in the USA and other countries

APT ClockWorks The Embedded Control Solutions Company EtherSynch FlashTec Hyper Speed ControlHyperLight Load IntelliMOS Libero motorBench mTouch Powermite 3 Precision Edge ProASIC ProASIC PlusProASIC Plus logo Quiet-Wire SmartFusion SyncWorld Temux TimeCesium TimeHub TimePictra TimeProviderVite WinPath and ZL are registered trademarks of Microchip Technology Incorporated in the USA

Adjacent Key Suppression AKS Analog-for-the-Digital Age Any Capacitor AnyIn AnyOut BlueSky BodyComCodeGuard CryptoAuthentication CryptoAutomotive CryptoCompanion CryptoController dsPICDEMdsPICDEMnet Dynamic Average Matching DAM ECAN EtherGREEN In-Circuit Serial Programming ICSPINICnet Inter-Chip Connectivity JitterBlocker KleerNet KleerNet logo memBrain Mindi MiWi MPASM MPFMPLAB Certified logo MPLIB MPLINK MultiTRAK NetDetach Omniscient Code Generation PICDEMPICDEMnet PICkit PICtail PowerSmart PureSilicon QMatrix REAL ICE Ripple Blocker SAM-ICE Serial QuadIO SMART-IS SQI SuperSwitcher SuperSwitcher II Total Endurance TSHARC USBCheck VariSenseViewSpan WiperLock Wireless DNA and ZENA are trademarks of Microchip Technology Incorporated in the USAand other countries

SQTP is a service mark of Microchip Technology Incorporated in the USA

The Adaptec logo Frequency on Demand Silicon Storage Technology and Symmcom are registered trademarks ofMicrochip Technology Inc in other countries

GestIC is a registered trademark of Microchip Technology Germany II GmbH amp Co KG a subsidiary of MicrochipTechnology Inc in other countries

All other trademarks mentioned herein are property of their respective companiescopy 2020 Microchip Technology Incorporated Printed in the USA All Rights Reserved

ISBN 978-1-5224-6667-3

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 43

Quality Management SystemFor information regarding Microchiprsquos Quality Management Systems please visit wwwmicrochipcomquality

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 44

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupportwwwmicrochipcomsupportWeb AddresswwwmicrochipcomAtlantaDuluth GATel 678-957-9614Fax 678-957-1455Austin TXTel 512-257-3370BostonWestborough MATel 774-760-0087Fax 774-760-0088ChicagoItasca ILTel 630-285-0071Fax 630-285-0075DallasAddison TXTel 972-818-7423Fax 972-818-2924DetroitNovi MITel 248-848-4000Houston TXTel 281-894-5983IndianapolisNoblesville INTel 317-773-8323Fax 317-773-5453Tel 317-536-2380Los AngelesMission Viejo CATel 949-462-9523Fax 949-462-9608Tel 951-273-7800Raleigh NCTel 919-844-7510New York NYTel 631-435-6000San Jose CATel 408-735-9110Tel 408-436-4270Canada - TorontoTel 905-695-1980Fax 905-695-2078

Australia - SydneyTel 61-2-9868-6733China - BeijingTel 86-10-8569-7000China - ChengduTel 86-28-8665-5511China - ChongqingTel 86-23-8980-9588China - DongguanTel 86-769-8702-9880China - GuangzhouTel 86-20-8755-8029China - HangzhouTel 86-571-8792-8115China - Hong Kong SARTel 852-2943-5100China - NanjingTel 86-25-8473-2460China - QingdaoTel 86-532-8502-7355China - ShanghaiTel 86-21-3326-8000China - ShenyangTel 86-24-2334-2829China - ShenzhenTel 86-755-8864-2200China - SuzhouTel 86-186-6233-1526China - WuhanTel 86-27-5980-5300China - XianTel 86-29-8833-7252China - XiamenTel 86-592-2388138China - ZhuhaiTel 86-756-3210040

India - BangaloreTel 91-80-3090-4444India - New DelhiTel 91-11-4160-8631India - PuneTel 91-20-4121-0141Japan - OsakaTel 81-6-6152-7160Japan - TokyoTel 81-3-6880- 3770Korea - DaeguTel 82-53-744-4301Korea - SeoulTel 82-2-554-7200Malaysia - Kuala LumpurTel 60-3-7651-7906Malaysia - PenangTel 60-4-227-8870Philippines - ManilaTel 63-2-634-9065SingaporeTel 65-6334-8870Taiwan - Hsin ChuTel 886-3-577-8366Taiwan - KaohsiungTel 886-7-213-7830Taiwan - TaipeiTel 886-2-2508-8600Thailand - BangkokTel 66-2-694-1351Vietnam - Ho Chi MinhTel 84-28-5448-2100

Austria - WelsTel 43-7242-2244-39Fax 43-7242-2244-393Denmark - CopenhagenTel 45-4485-5910Fax 45-4485-2829Finland - EspooTel 358-9-4520-820France - ParisTel 33-1-69-53-63-20Fax 33-1-69-30-90-79Germany - GarchingTel 49-8931-9700Germany - HaanTel 49-2129-3766400Germany - HeilbronnTel 49-7131-72400Germany - KarlsruheTel 49-721-625370Germany - MunichTel 49-89-627-144-0Fax 49-89-627-144-44Germany - RosenheimTel 49-8031-354-560Israel - RarsquoananaTel 972-9-744-7705Italy - MilanTel 39-0331-742611Fax 39-0331-466781Italy - PadovaTel 39-049-7625286Netherlands - DrunenTel 31-416-690399Fax 31-416-690340Norway - TrondheimTel 47-72884388Poland - WarsawTel 48-22-3325737Romania - BucharestTel 40-21-407-87-50Spain - MadridTel 34-91-708-08-90Fax 34-91-708-08-91Sweden - GothenbergTel 46-31-704-60-40Sweden - StockholmTel 46-8-5090-4654UK - WokinghamTel 44-118-921-5800Fax 44-118-921-5820

Worldwide Sales and Service

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 45

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Board Overview
      • 2 Getting Started
        • 21 Quick Start
          • 211 Driver Installation
          • 212 Kit Window
          • 213 MPLABreg X IDE Device Family Packs
          • 214 Atmel Studio 7 Device Family Pack
            • 22 Design Documentation and Relevant Links
              • 3 Preprogrammed Application
              • 4 Curiosity Nano
                • 41 On-Board Debugger Overview
                  • 411 Debugger
                  • 412 Virtual Serial Port (CDC)
                    • 4121 Overview
                    • 4122 Operating System Support
                    • 4123 Limitations
                    • 4124 Signaling
                    • 4125 Advanced Use
                      • 413 Mass Storage Device
                        • 4131 Mass Storage Device Implementation
                        • 4132 Limitations of Drag-and-Drop Programming
                        • 4133 Special Commands
                          • 414 Data Gateway Interface (DGI)
                            • 4141 Debug GPIO
                            • 4142 Timestamping
                                • 42 Curiosity Nano Standard Pinout
                                • 43 Power Supply
                                  • 431 Target Regulator
                                  • 432 External Supply
                                  • 433 VBUS Output Pin
                                  • 434 Power Supply Exceptions
                                    • 44 Low-Power Measurement
                                    • 45 Programming External Microcontrollers
                                      • 451 Supported Devices
                                      • 452 Software Configuration
                                      • 453 Hardware Modifications
                                      • 454 Connecting to External Microcontrollers
                                        • 46 Connecting External Debuggers
                                          • 5 Hardware User Guide
                                            • 51 Connectors
                                              • 511 AVR128DB48 Curiosity Nano Pinout
                                              • 512 Using Pin Headers
                                              • 513 Multi-Voltage IO
                                              • 514 Operational Amplifiers
                                                • 52 Peripherals
                                                  • 521 LED
                                                  • 522 Mechanical Switch
                                                  • 523 32768 kHz Crystal
                                                  • 524 1600 MHz Crystal
                                                  • 525 On-Board Debugger Implementation
                                                    • 5251 On-Board Debugger Connections
                                                      • 6 Hardware Revision History and Known Issues
                                                        • 61 Identifying Product ID and Revision
                                                        • 62 Revision 3
                                                        • 63 Revision 2
                                                          • 7 Document Revision History
                                                          • 8 Appendix
                                                            • 81 Schematic
                                                            • 82 Assembly Drawing
                                                            • 83 Curiosity Nano Base for Click boardstrade
                                                            • 84 Disconnecting the On-board Debugger
                                                            • 85 Getting Started with IAR
                                                              • The Microchip Website
                                                              • Product Change Notification Service
                                                              • Customer Support
                                                              • Microchip Devices Code Protection Feature
                                                              • Legal Notice
                                                              • Trademarks
                                                              • Quality Management System
                                                              • Worldwide Sales and Service
Page 31: AVR128DB48 Curiosity Nano Hardware User Guideww1.microchip.com/downloads/en/DeviceDoc/AVR128DB48-Curiosit… · 4. Curiosity Nano Curiosity Nano is an evaluation platform of small

WARNINGBefore any hardware modifications are done make sure the board is disconnected from USB or externalpower

bull Disconnect the 1600 MHz crystal by cutting the two straps on the top side of the board next to the crystal (J215J216) The crystal should be disconnected when using the pin as GPIO as this might harm the crystal

bull Connect the IO lines to the edge connector by placing solder blobs on the circular solder points marked PA0and PA1 on the bottom side of the board (J213 J214)

Figure 5-6 Crystal Connection and Cut Straps

Top side Boom side

J214

J213

J216

J2151600 MHzCrystal

J217

525 On-Board Debugger ImplementationAVR128DB48 Curiosity Nano features an on-board debugger that can be used to program and debug theAVR128DB48 using UPDI The on-board debugger also includes a virtual serial port (CDC) interface over UART anddebug GPIO Both MPLABreg X IDE and Atmel Studio 7 can be used as a front-end for the on-board debugger forprogramming and debugging MPLAB Data Visualizer can be used as a front-end for the CDC and debug GPIO

5251 On-Board Debugger ConnectionsThe table below shows the connections between the target and the debugger section All connections between thetarget and the debugger are tri-stated as long as the debugger is not actively using the interface Hence since thereare little contaminations of the signals the pins can be configured to anything the user wants

For further information on how to use the capabilities of the on-board debugger see 41 On-Board DebuggerOverview

Table 5-6 On-Board Debugger Connections

AVR128DB48Pin

Debugger Pin Function Shared Functionality

PB1 CDC TX UART RX (AVR128DB48 RX line) Edge connector

PB0 CDC RX UART TX (AVR128DB48 TX line) Edge connector

UPDI DBG0 UPDI Edge connector

PB3 DBG1 LED0Debug GPIO1 Edge connector

PB2 DBG2 SW0Debug GPIO0 Edge connector

PF6 DBG3 RESET Edge connector

AVR128DB48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 31

6 Hardware Revision History and Known IssuesThis user guide is written to provide information about the latest available revision of the board The followingsections contain information about known issues a revision history of older revisions and how older revisions differfrom the latest revision

61 Identifying Product ID and RevisionThe revision and product identifier of the AVR128DB48 Curiosity Nano Board can be found in two ways Either byutilizing the MPLABreg X IDE or Atmel Studio 7 Kit Window or by looking at the sticker on the bottom side of the PCB

By connecting AVR128DB48 Curiosity Nano to a computer with MPLABreg X IDE or Atmel Studio 7 running the KitWindow will pop up The first six digits of the serial number which is listed under kit information contain the productidentifier and revision

Tip  The Kit Window can be opened in MPLABreg X IDE through the menu bar Window gt Kit Window

The same information can be found on the sticker on the bottom side of the PCB Most boards will have the identifierand revision printed in plain text as A09-nnnnrr where ldquonnnnrdquo is the identifier and ldquorrrdquo is the revision Boards withlimited space have a sticker with only a data matrix code containing the product identifier revision and serialnumber

The serial number string has the following format

nnnnrrssssssssss

n = product identifier

r = revision

s = serial number

The product identifier for AVR128DB48 Curiosity Nano is A09‑3372

62 Revision 3AVR128DB48 silicon revision A5 or later is mounted on this revision of the board

63 Revision 2Revision 2 is the initially released board revision

AVR128DB48 silicon revision A4 is mounted on this revision of the board

AVR128DB48 Curiosity NanoHardware Revision History and Known Issues

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 32

7 Document Revision HistoryDoc Rev Date Comments

A 092020 Initial document release

AVR128DB48 Curiosity NanoDocument Revision History

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 33

8 Appendix

81 SchematicFigure 8-1 AVR128DB48 Curiosity Nano Schematic

11

22

33

44

55

66

77

88

DD

CC

BB

AA

2 of

4

AV

R12

8DB

48 C

uri

osit

y N

ano

240

820

20A

VR

128D

B48

_Cur

iosi

ty_N

ano_

Targ

et_M

CU

Sch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA

Rev

isio

n

File

P

CB

Num

ber

PC

B

Rev

isio

n

Des

ign

ed w

ith

Dra

wn

By

ML

Shee

t Titl

e

Targ

et M

CU

Eng

inee

rA

H

A08

-305

71

Size

A3

A09

-337

22

Page

D

ateA

ltium

com

GN

D

VD

DIO

2

100n

C20

1

GN

D

PA5_

SPI0

_MIS

OPA

6_SP

I0_S

CK

PA7_

SPI0

_SS

PB0_

USA

RT

3_T

XPB

1_U

SAR

T3_

RX

PB2_

SW0_

DB

G2

PB3_

LE

D0_

DB

G1

PB

4P

B5

PC

0P

C1

PC

2

PC3

PC4PC5PC6PC7PD0_AIN0_TCA0_WO0PD1_AIN1_OP0_INP_TCA0_WO1PD2_AIN2_OP0_OUT_TCA0_WO2PD3_AIN3_OP0_INNPD4_AIN4_OP1_INP

PA3_TWI0_SCL

PA1_XTALHF2

UPDI_DBG0

PF5_USART2_RX

PF3

PF

2PF

1_X

TA

L32

K2

PF0_

XT

AL

32K

1P

E3_

OP

2_IN

NP

E2_

OP

2_O

UT

PE

1_O

P2_

INP

PE

0

PD5_

AIN

5_O

P1_

OU

TPD

6_A

IN6

PD7_

AIN

7_O

P1_

INN

GN

D

VC

C_T

AR

GE

T

100n

C20

2

GN

DV

CC

_TA

RG

ET

100n

C20

0

PF1_XTAL32K2

PF0_XTAL32K1

PA2_TWI0_SDA

PA0_XTALHF1

PF4_USART2_TX

PA4_SPI0_MOSI

GN

D

PA7_

SPI0

_SS

PA6_

SPI0

_SC

KPA

5_SP

I0_M

ISO

PA4_

SPI0

_MO

SIPA

3_T

WI0

_SC

LPA

2_T

WI0

_SD

A

PC

0P

C1

PC

2P

C3

PB

4P

B5

PD7_

AIN

7_O

P1_

INN

PD6_

AIN

6

PD2_

AIN

2_O

P0_

OU

T_T

CA

0_W

O2

PD1_

AIN

1_O

P0_

INP_

TC

A0_

WO

1PD

0_A

IN0_

TC

A0_

WO

0

PD5_

AIN

5_O

P1_

OU

TPD

4_A

IN4_

OP

1_IN

P

PD3_

AIN

3_O

P0_

INN

32K

Hz

Cry

stal

PB0_

USA

RT

3_T

XPB

1_U

SAR

T3_

RX

1kR203

US

ER

LE

D

VC

C_T

AR

GE

T

PF6_DBG3

PB2_SW0_DBG2

PB3_LED0_DBG1

GN

D

USE

R B

UT

TO

N

PB3_

LE

D0_

DB

G1

PB2_

SW0_

DB

G2

PB1_

USA

RT

3_R

XPB

0_U

SAR

T3_

TX

PF4_

USA

RT

2_T

XPF

5_U

SAR

T2_

RX

PF

2P

F3

PC

4P

C5

PC

6P

C7

1kR202

YELLOWLEDSML-D12Y1WT86

2 1

D200

TS604VM1-035CR13

4 2

SW20

0

GN

DV

CC

_ED

GE

GN

DG

ND

GN

DG

ND

UPD

I_D

BG

0P

F6_

DB

G3

J209

PB3_

LE

D0_

DB

G1

PB2_

SW0_

DB

G2

AV

R12

8DB

48

22u

FC

205

VC

C_E

DG

E

GN

D

DBG0

CDC_TXCDC_RX

DBG2

DBG1

DBG3

DBG2

DE

BU

GG

ER

CO

NN

EC

TIO

NS

DBG1

DBG3DBG0

VOFF

ID_SYS

ID_SYS

VOFF

TA

RG

ET

BU

LK

VC

C_T

AR

GE

TR

ESE

T P

ull

VB

US

CD

C R

X3

CD

C T

X4

DB

G1

5

DB

G2

6

0 T

X7

1 R

X8

2 SD

A9

3 S

CL

10

4 M

OSI

11

5 M

ISO

12

6 S

CK

13

7 S

S14

GN

D15

0 (T

X)

16

1 (R

X)

17

218

319

020

GN

D24

DB

G3

54

DB

G0

53

GN

D52

VC

C51

PW

M 3

46

AD

C 2

45

AD

C 1

44

AD

C 0

43

GN

D42

438

434

GN

D33

AD

C 7

50

AD

C 6

49

AD

C 5

48

PW

M 4

47

DE

BU

GG

ER

TAR

GE

T

ID2

VO

FF

55

121

222

323

025

126

227

328

429

530

631

732

535

636

737

539

640

741

RE

SER

VE

D1

VB

US

56

CN

AN

O56

-pin

edg

e co

nnec

tor

J200

J201

J203

J205

J206

J202

J204

PF1_

XT

AL

32K

2PF

0_X

TA

L32

K1

NC

XOUT

XIN

47kR200

AV

R12

8DB

48

UPD

I

GPI

O1

GPI

O0

RE

SET

DB

G0

DB

G1

DB

G2

DB

G3

Deb

ugge

r

CD

C T

X

CD

C R

X

UA

RT

3 R

X

UA

RT

3 T

X

VT

G1

8V -

55

VPB

3

PB

2

PF

6

UP

DI

PB

0

PB

1

Nam

eP

in

PE

3_O

P2_

INN

PE

2_O

P2_

OU

TP

E1_

OP

2_IN

PP

E0

J207

J208

PF

0P

F1

PA5

1

PA6

2

PA7

3

PB0

4

PB1

5

PB2

6

PB3

7

PB4

8

PB5

9

PC0

10

PC1

11

PC2

12

PC313

VDDIO214

GND15

PC416

PC517

PC618

PC719

PD020

PD121

PD222

PD323

PD424

PD5

25

PD6

26

PD7

27

AVDD

28

GND

29

PE0

30

PE1

31

PE2

32

PE3

33

XTAL32K1PF0

34

XTAL32K2PF1

35

PF2

36

PF337

PF438

PF539

PF640

UPDI41

VDD42

GND43

XTALHF1PA044

XTALHF2PA145

PA246

PA347

PA448

AV

R12

8DB

48-I

PT

U20

0

0RR204

GN

D

VC

C_T

AR

GE

T

VDDIO2

GND

J210

J211

82p

C20

48

2pC

203

GN

DG

ND

16M

Hz

Cry

stal

J217

XHFOUT

XHFIN

J214

J213

GN

D

J215

J216

PA0_XTALHF1

PA1_XTALHF2

PA0_

XT

AL

HF

1PA

1_X

TA

LH

F2

PA0

PA1

1 2

J212 N

M

15pF

C20

615

pFC

207

13

24 16

000

MH

zV

XM

7-90

40-1

6M00

0000

0TR

XC

201

GN

D32

768

kHz

VM

K3-

9001

-32K

7680

000T

R

XC

200

CDC_TX

CDC_RX

CD

C_T

XC

DC

_RX

Cry

stal

dat

ashe

et

Ccr

ysta

l = 9

pFm

ax E

SR

= 7

0kO

hmA

ccur

acy

plusmn20p

pm

AV

R48

DB

128

data

shee

tC

xin

= 4

0pF

(ty

pica

l val

ue)

Cxo

ut =

40

pF (

typi

cal v

alue

)C

lasymp1

( (1

40

pF)+

(1

40p

F)

)asymp

20p

FM

axim

um L

oad

= 1

25p

FM

axim

um E

SR =

50k

Ohm

Est

imat

ed C

pcb

= 0

5pF

Est

imat

ed lo

adC

= 2

(C

crys

tal-

Cpa

ra -

Cpc

b)C

= 2

(9p

F -

20

pF -

05

pF)

C =

13

0pF

Sele

cted

in d

esig

n af

ter

veri

fica

tion

C=

82

pF8

2pF

NO

TE

on

UA

RT

CD

C

RX

TX

onth

ehe

ader

deno

tes

the

inpu

tout

put d

irec

tion

of th

e si

gnal

resp

ectiv

e to

its

sou

rce

CD

C T

X is

out

put f

rom

the

DE

BU

GG

ER

C

DC

RX

is in

put t

o th

e D

EB

UG

GE

R

TX

is o

utpu

t fro

m th

e T

AR

GE

T d

evic

eR

X is

inpu

t to

the

TA

RG

ET

dev

ice

NO

TE

on

I2C

No

pull

-ups

on

boar

d P

ull-

ups

shou

ld b

em

ount

ed c

lose

to s

lave

dev

ice(

s)

WA

RN

ING

M

ake

sure

tore

mov

e R

204

befo

reap

plyi

ng p

ower

to J

212

Cry

stal

dat

ashe

et

Ccr

ysta

l = 1

2pF

max

ES

R =

60O

hmA

ccur

acy

plusmn30p

pm

AV

R48

DB

128

data

shee

tC

xin

= 4

0pF

(ty

pica

l val

ue)

Cxo

ut =

40

pF (

typi

cal v

alue

)C

lasymp1

( (1

40

pF)+

(1

40p

F)

)asymp

20p

FM

axim

um L

oad

= 1

25p

FM

axim

um E

SR =

k

Ohm

Est

imat

ed C

pcb

= 0

5pF

Est

imat

ed lo

adC

= 2

(C

crys

tal-

Cpa

ra -

Cpc

b)C

= 2

(12

pF -

20

pF -

05

pF)

C =

19

0pF

Sele

cted

in d

esig

n af

ter

veri

fica

tion

C=

15p

F1

5pF

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 34

11

22

33

44

55

66

77

88

DD

CC

BB

AA

3 of

4

AV

R12

8DB

48 C

uri

osit

y N

ano

2020

-06-

26A

VR

128D

B48

_Cur

iosi

ty_N

ano_

Deb

ugge

rSch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA

Rev

isio

n

Fil

eP

CB

Num

ber

PC

B

Rev

isio

n

Des

ign

ed w

ith

Dra

wn

By

ML

Shee

t Tit

le

Deb

ugge

r

Eng

inee

rA

H

A08

-305

71

Size

A3

A09

-337

22

Page

D

ateA

ltium

com

DE

BU

GG

ER

USB

MIC

RO

-B C

ON

NE

CT

OR

GN

D

USB

D_P

USB

D_N

100n

C10

7

100n

C10

8

1kR

107

VC

C_P

3V3

SRST

STA

TU

S_L

ED

SHIE

LD

VB

US

VC

C_P

3V3

GN

D

TP

100

Test

poin

t Arr

ay

12

34

56

78

910

TC

KT

DO

TM

SV

sup

TD

IG

ND

TR

STSR

STV

Tre

fG

ND

J102

GN

D

47u

F

C10

0

DBG0

DB

G0

21

GR

EE

N L

ED

SML

-P12

MT

T86

R

D10

0

VBUS

1

D-

2

D+

3

GND

5

SHIELD1

6

SHIELD2

7

ID

4

SHIELD3

8

SHIELD4

9 MU

-MB

0142

AB

2-26

9

J105

PAD

33

PA00

1

PA01

2

PA02

3

PA03

4

GND 10VDDANA 9

PA04

5

PA05

6

PA06

7

PA07

8

PA08 11

PA09 12

PA10 13

PA11 14

PA14 15

PA15 16

PA16

17

PA17

18

PA18

19

PA19

20

PA22

21

USB_SOFPA23

22

USB_DMPA24

23

USB_DPPA25

24

PA2725 RESETN26 PA2827 GND28 VDDCORE29 VDDIN30 SWDCLKPA3031 SWDIOPA3132

SAM

D21

E18

A-M

UT

U10

0

VOUT

1

VOUT

2

GND 3

EN

4

VIN

6

NC

5

EP 7

MIC

5528

-33

YM

TU

101

VC

C_P

3V3

GN

D

USB

D_P

USB

D_N

GN

D

1uC

106

VC

C_M

CU

_CO

RE

VC

C_P

3V3

VC

C_P

3V3

22u

FC

101

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

3

VC

C_P

3V3

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

4

VC

C_P

3V3

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

5

VC

C_P

3V3

GN

D

GN

D GN

D

GN

D

VC

C_E

DG

E

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

7

VC

C_P

3V3

GN

DDBG2

DB

G3_

CT

RL

S1_0

_TX

S1_1

_RX

S0_2

_TX

DA

CV

TG

_AD

C

RE

SER

VE

D

S0_3

_CL

K

DBG0_CTRL

CD

C_T

X_C

TR

L

BO

OT

DE

BU

GG

ER

PO

WE

RS

TA

TU

S L

ED

EN

1

BYP

6

VOUT

4

GND

2

VIN

3

NCADJ

5

GND

7

MIC

5353

U10

2

100n

C10

2

GN

D

GN

D

47kR101

27kR104 G

ND

33k

R10

6

22u

F

C10

3 GN

D

1kR

108

J100

VC

C_L

EV

EL

VC

C_R

EG

UL

AT

OR

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

6

VC

C_P

3V3

GN

DDBG1

CD

C_R

X

CD

C_T

X

DBG3

DBG1_CTRL

DE

BU

GG

ER

RE

GU

LA

TO

R

REG_ENABLE

RE

G_E

NA

BL

E

47kR103

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

47kR102

47kR105

SWC

LK

GN

D

47kR100 G

ND

DB

G2

S0_0

_RX

DB

G1_

CT

RL

DB

G0_

CT

RL

DB

G3

OP

EN

DR

AIN

TA

RG

ET

AD

JUST

AB

LE

RE

GU

LA

TO

R

SRST

DE

BU

GG

ER

TE

ST

PO

INT DBG2_CTRL

VO

FF

CD

C_R

X_C

TR

L

47kR109

DB

G1

CD

C_T

X_C

TR

L

CD

C_R

X_C

TR

L

SWC

LK

REG_ADJUST

DBG2_GPIO

DB

G3_

CT

RL

DB

G2_

CT

RL

UP

DI

UPD

I

GPI

O

GPI

O

RE

SET

Sign

al

DB

G0

DB

G1

DB

G2

DB

G3

ICS

PIn

terf

ace

DA

T

CL

K

GPI

O

MC

LR

DB

G3

CD

C T

X

CD

C R

X

UA

RT

RX

UA

RT

TX

UA

RT

RX

UA

RT

TX

TA

RG

ET

TA

RG

ET

1kR

110

VBUS_ADC

1

23

DM

N65

D8L

FB

Q10

1

VC

C-

-

ID_SYS

VOFF

1kR112

VC

C_P

3V3

VT

G_A

DC

DA

C

MIC

9416

3

VIN

B2

VOUT

A1

VIN

A2

EN

C2

GND

C1

VOUT

B1

U10

8

GN

D

ID_S

YS

VT

G_E

N

VTG_EN

VBUS_ADC

SWD

IO

ID_S

YS

TP

101

GN

DSW

DIO

VO

FF

47kR111 G

ND

ID P

IN

MC

3621

3

F10

0

VC

C_V

BU

S

VC

C_V

BU

S

VC

C_V

BU

S

J101

VC

C_T

AR

GE

T

47k

R11

3

CDC_TX

CDC_RX

Prog

ram

min

g co

nnec

tor

for

fact

ory

prog

ram

min

g of

DE

BU

GG

ER

MIC

5528

V

in 2

5V

to 5

5V

Vou

t F

ixed

33

VIm

ax 5

00m

AD

ropo

ut 2

60m

V

500

mA

MIC

5353

V

in 2

6V

to 6

VV

out

12

5V to

51

VIm

ax 5

00m

AD

ropo

ut (

typi

cal)

50m

V

150m

A 1

60m

V

500

mA

Acc

urac

y 2

in

itia

lT

herm

al s

hutd

own

and

curr

ent l

imit

Max

imum

out

put v

olta

ge is

lim

ited

by

the

inpu

t vol

tage

and

the

drop

out v

olta

ge in

the

regu

lato

r(V

max

= V

in -

dro

pout

)

J100

-

Cut

-str

ap u

sed

for

full

sep

arat

ion

of ta

rget

pow

er f

rom

the

leve

l shi

fter

s an

don

-boa

rd r

egul

ator

s-

For

cur

rent

mea

sure

men

ts u

sing

the

on-b

oard

pow

er s

uppl

y th

isst

rap

mus

t be

cut a

nd a

nam

met

er c

onne

cted

acr

oss

- F

or c

urre

nt m

easu

rem

ents

usi

ng a

n ex

tern

al p

ower

sup

ply

this

str

ap c

ould

be

cut f

or m

ore

accu

rate

mea

sure

men

ts L

eaka

ge b

ack

thro

ugh

the

swit

ch is

in th

e m

icro

am

pere

ran

ge

PT

C R

eset

tabl

e fu

se

Hol

d cu

rren

t 5

00m

AT

rip

curr

ent

100

0mA

Adj

usta

ble

outp

ut a

nd li

mit

atio

ns

- T

he D

EB

UG

GE

R c

an a

djus

t the

out

put v

olta

ge o

f th

e re

gula

tor

betw

een

125

V a

nd 5

1V

to th

e ta

rget

-

The

vol

tage

out

put i

s li

mit

ed b

y th

e in

put (

US

B)

whi

ch c

an v

ary

betw

een

440

V to

52

5V-

The

leve

l shi

fter

s ha

ve a

min

imal

vol

tage

leve

l of

165

V a

nd w

ill l

imit

the

min

imum

ope

ratin

g vo

ltage

all

owed

for

the

targ

et to

sti

ll a

llow

com

mun

icat

ion

- T

he M

IC94

163

has

a m

inim

al v

olat

ege

leve

l of

170

V a

nd w

ill l

imit

the

min

imum

vol

tage

del

iver

ed to

the

targ

et

- F

irm

war

e co

nfig

urat

ion

wil

l lim

it th

e vo

ltage

ran

ge to

be

wit

hin

the

the

targ

et s

peci

fica

tion

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 35

82 Assembly DrawingFigure 8-2 AVR128DB48 Curiosity Nano Assembly Drawing Top

+

Cb

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20001 PAC20002 COC200

PAC20101 PAC20102 COC201

PAC20201 PAC20202 COC202 PAC20301

PAC20302 COC203

PAC20401

PAC20402 COC204

PAC20502

PAC20501 COC205

PAC20601

PAC20602 COC206 PAC20701

PAC20702 COC207 PAD10002 PAD10001 COD100

PAD20002

PAD20001 COD200

PAF10002

PAF10001 COF100

PAJ10002 PAJ10001 COJ100

PAJ10101 PAJ10102 COJ101

PAJ10201

PAJ10202

PAJ10203

PAJ10204

PAJ10205

PAJ10206 COJ102

PAJ10506

PAJ10507 PAJ10509

PAJ10508 PAJ105010

PAJ105011 PAJ10505

PAJ10504

PAJ10503

PAJ10502

PAJ10501

PAJ10500

COJ105

PAJ200056 PAJ200053

PAJ200028 PAJ20002 PAJ20001

PAJ200051 PAJ200050 PAJ200052 PAJ200049 PAJ200048 PAJ200047 PAJ200046 PAJ200045 PAJ200044 PAJ200043 PAJ200042 PAJ200041 PAJ200040 PAJ200039 PAJ200038 PAJ200037 PAJ200036 PAJ200035 PAJ200034 PAJ200033 PAJ200032 PAJ200031 PAJ200030 PAJ200029

PAJ20003 PAJ20004 PAJ20005 PAJ20006 PAJ20007 PAJ20008 PAJ20009 PAJ200010 PAJ200011 PAJ200012 PAJ200013 PAJ200014 PAJ200015 PAJ200016 PAJ200017 PAJ200018 PAJ200019 PAJ200020 PAJ200021 PAJ200022 PAJ200023 PAJ200026 PAJ200025 PAJ200024 PAJ200027

PAJ200054 PAJ200055 PAJ20000

COJ200

PAJ20102 PAJ20101 COJ201

PAJ20202 PAJ20201 COJ202

PAJ20302 PAJ20301 COJ203

PAJ20402 PAJ20401 COJ204

PAJ20502 PAJ20501 COJ205

PAJ20602 PAJ20601 COJ206 PAJ20702 PAJ20701 COJ207

PAJ20802 PAJ20801 COJ208

PAJ20902 PAJ20901 COJ209

PAJ21001 PAJ21002 PAJ21005 COJ210

PAJ21102 PAJ21101 PAJ21105 COJ211

PAJ21202 PAJ21201 COJ212

PAJ21301 PAJ21302 PAJ21305 COJ213

PAJ21401 PAJ21402 PAJ21405 COJ214

PAJ21502 PAJ21501 COJ215

PAJ21602 PAJ21601 COJ216 PAJ21702 PAJ21701 COJ217

COLABEL1

PAQ10101 PAQ10102 PAQ10103 PAQ10100

COQ101 PAR10002

PAR10001 COR100 PAR10101 PAR10102 COR101

PAR10202 PAR10201 COR102

PAR10302 PAR10301 COR103

PAR10401 PAR10402 COR104

PAR10502

PAR10501 COR105

PAR10601 PAR10602 COR106

PAR10702 PAR10701 COR107

PAR10801

PAR10802 COR108

PAR10901 PAR10902 COR109

PAR11001 PAR11002 COR110

PAR11101 PAR11102 COR111

PAR11201 PAR11202 COR112

PAR11302 PAR11301 COR113

PAR20001 PAR20002 COR200 PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203 PAR20401 PAR20402 COR204

PASW20003

PASW20004 PASW20002

PASW20001 COSW200

PATP10001 COTP100

PATP10101 COTP101 PAU100033

PAU100032 PAU100031 PAU100030 PAU100029 PAU100028 PAU100027 PAU100026 PAU100025 PAU100024

PAU100023

PAU100022

PAU100021

PAU100020

PAU100019

PAU100018

PAU100017 PAU100016 PAU100015 PAU100014 PAU100013 PAU100012 PAU100011 PAU100010

PAU10001

PAU10002

PAU10003

PAU10004

PAU10005

PAU10006

PAU10007

PAU10008 PAU10009

COU100

PAU10107

PAU10104 PAU10105 PAU10106

PAU10103 PAU10102 PAU10101 PAU10100 COU101 PAU10207

PAU10204 PAU10205

PAU10206

PAU10203 PAU10202

PAU10201

COU102

PAU10306

PAU10305 PAU10304 PAU10303

PAU10302 PAU10301 PAU10300

COU103

PAU10406

PAU10405 PAU10404 PAU10403

PAU10402 PAU10401 PAU10400

COU104

PAU10506

PAU10505 PAU10504 PAU10503

PAU10502 PAU10501 PAU10500

COU105

PAU10606

PAU10605 PAU10604 PAU10603

PAU10602 PAU10601 PAU10600

COU106

PAU10706

PAU10705 PAU10704 PAU10703

PAU10702 PAU10701 PAU10700

COU107

PAU1080A1 PAU1080A2

PAU1080B1 PAU1080B2

PAU1080C1 PAU1080C2 COU108

PAU20001 PAU20002 PAU20003 PAU20004 PAU20005 PAU20006 PAU20007 PAU20008 PAU20009 PAU200010 PAU200011 PAU200012 PAU200013 PAU200014 PAU200015 PAU200016 PAU200017 PAU200018 PAU200019 PAU200020 PAU200021 PAU200022 PAU200023 PAU200024 PAU200025 PAU200026 PAU200027 PAU200028 PAU200029 PAU200030 PAU200031 PAU200032 PAU200033 PAU200034 PAU200035 PAU200036

PAU200037 PAU200038 PAU200039 PAU200040 PAU200041 PAU200042 PAU200043 PAU200044 PAU200045 PAU200046 PAU200047 PAU200048

COU200

PAXC20001

PAXC20002 COXC200

PAXC20101 PAXC20102

PAXC20103 PAXC20104 COXC201

Figure 8-3 AVR128DB48 Curiosity Nano Assembly Drawing Bottom

tcR

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20001 PAC20002 COC200

PAC20101 PAC20102 COC201

PAC20201 PAC20202 COC202 PAC20301

PAC20302 COC203

PAC20401

PAC20402 COC204

PAC20502

PAC20501 COC205

PAC20601

PAC20602 COC206 PAC20701

PAC20702 COC207 PAD10002 PAD10001 COD100

PAD20002

PAD20001 COD200

PAF10002

PAF10001 COF100

PAJ10002 PAJ10001 COJ100

PAJ10101 PAJ10102 COJ101

PAJ10201

PAJ10202

PAJ10203

PAJ10204

PAJ10205

PAJ10206 COJ102

PAJ10506

PAJ10507 PAJ10509

PAJ10508 PAJ105010

PAJ105011 PAJ10505

PAJ10504

PAJ10503

PAJ10502

PAJ10501

PAJ10500

COJ105

PAJ200056 PAJ200053

PAJ200028 PAJ20002 PAJ20001

PAJ200051 PAJ200050 PAJ200052 PAJ200049 PAJ200048 PAJ200047 PAJ200046 PAJ200045 PAJ200044 PAJ200043 PAJ200042 PAJ200041 PAJ200040 PAJ200039 PAJ200038 PAJ200037 PAJ200036 PAJ200035 PAJ200034 PAJ200033 PAJ200032 PAJ200031 PAJ200030 PAJ200029

PAJ20003 PAJ20004 PAJ20005 PAJ20006 PAJ20007 PAJ20008 PAJ20009 PAJ200010 PAJ200011 PAJ200012 PAJ200013 PAJ200014 PAJ200015 PAJ200016 PAJ200017 PAJ200018 PAJ200019 PAJ200020 PAJ200021 PAJ200022 PAJ200023 PAJ200026 PAJ200025 PAJ200024 PAJ200027

PAJ200054 PAJ200055 PAJ20000

COJ200

PAJ20102 PAJ20101 COJ201

PAJ20202 PAJ20201 COJ202

PAJ20302 PAJ20301 COJ203

PAJ20402 PAJ20401 COJ204

PAJ20502 PAJ20501 COJ205

PAJ20602 PAJ20601 COJ206 PAJ20702 PAJ20701 COJ207

PAJ20802 PAJ20801 COJ208

PAJ20902 PAJ20901 COJ209

PAJ21001 PAJ21002 PAJ21005 COJ210

PAJ21102 PAJ21101 PAJ21105 COJ211

PAJ21202 PAJ21201 COJ212

PAJ21301 PAJ21302 PAJ21305 COJ213

PAJ21401 PAJ21402 PAJ21405 COJ214

PAJ21502 PAJ21501 COJ215

PAJ21602 PAJ21601 COJ216 PAJ21702 PAJ21701 COJ217

COLABEL1

PAQ10101 PAQ10102 PAQ10103 PAQ10100

COQ101 PAR10002

PAR10001 COR100 PAR10101 PAR10102 COR101

PAR10202 PAR10201 COR102

PAR10302 PAR10301 COR103

PAR10401 PAR10402 COR104

PAR10502

PAR10501 COR105

PAR10601 PAR10602 COR106

PAR10702 PAR10701 COR107

PAR10801

PAR10802 COR108

PAR10901 PAR10902 COR109

PAR11001 PAR11002 COR110

PAR11101 PAR11102 COR111

PAR11201 PAR11202 COR112

PAR11302 PAR11301 COR113

PAR20001 PAR20002 COR200 PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203 PAR20401 PAR20402 COR204

PASW20003

PASW20004 PASW20002

PASW20001 COSW200

PATP10001 COTP100

PATP10101 COTP101 PAU100033

PAU100032 PAU100031 PAU100030 PAU100029 PAU100028 PAU100027 PAU100026 PAU100025 PAU100024

PAU100023

PAU100022

PAU100021

PAU100020

PAU100019

PAU100018

PAU100017 PAU100016 PAU100015 PAU100014 PAU100013 PAU100012 PAU100011 PAU100010

PAU10001

PAU10002

PAU10003

PAU10004

PAU10005

PAU10006

PAU10007

PAU10008 PAU10009

COU100

PAU10107

PAU10104 PAU10105 PAU10106

PAU10103 PAU10102 PAU10101 PAU10100 COU101 PAU10207

PAU10204 PAU10205

PAU10206

PAU10203 PAU10202

PAU10201

COU102

PAU10306

PAU10305 PAU10304 PAU10303

PAU10302 PAU10301 PAU10300

COU103

PAU10406

PAU10405 PAU10404 PAU10403

PAU10402 PAU10401 PAU10400

COU104

PAU10506

PAU10505 PAU10504 PAU10503

PAU10502 PAU10501 PAU10500

COU105

PAU10606

PAU10605 PAU10604 PAU10603

PAU10602 PAU10601 PAU10600

COU106

PAU10706

PAU10705 PAU10704 PAU10703

PAU10702 PAU10701 PAU10700

COU107

PAU1080A1 PAU1080A2

PAU1080B1 PAU1080B2

PAU1080C1 PAU1080C2 COU108

PAU20001 PAU20002 PAU20003 PAU20004 PAU20005 PAU20006 PAU20007 PAU20008 PAU20009 PAU200010 PAU200011 PAU200012 PAU200013 PAU200014 PAU200015 PAU200016 PAU200017 PAU200018 PAU200019 PAU200020 PAU200021 PAU200022 PAU200023 PAU200024 PAU200025 PAU200026 PAU200027 PAU200028 PAU200029 PAU200030 PAU200031 PAU200032 PAU200033 PAU200034 PAU200035 PAU200036

PAU200037 PAU200038 PAU200039 PAU200040 PAU200041 PAU200042 PAU200043 PAU200044 PAU200045 PAU200046 PAU200047 PAU200048

COU200

PAXC20001

PAXC20002 COXC200

PAXC20101 PAXC20102

PAXC20103 PAXC20104 COXC201

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 36

83 Curiosity Nano Base for Click boardstrade

Figure 8-4 AVR128DB48 Curiosity Nano Pinout Mapping

US

B

DE

BU

GG

ER

AV

R1

28

DB

48

SW

0

LE

D0

PS

LE

DNC

NC

ID

ID

CDC RX

CDCRX

USART3 TX

PB0

CDC TX

CDCTX

USART3 RX

PB1

DBG1

DBG1

PB3

LED0

DBG2

DBG2

PB2

SW0

PF4

PF4

USART2 TX

PF5

PF5

USART2 RX

PA2

PA2

TWI0 SDA

PA3

PA3

TWI0 SCL

PA4

PA4

SPI0 MOSI

PA5

PA5

SPI0 MISO

PA6

PA6

SPI0 SCK

PA7

PA7

SPI0 SS

GND

GND

PB0

PB0

USART3 TX

CDC RX

PB1

PB1

USART3 RX

CDC TX

PF2

PF2

PF3

PF3

PC0

PC0

PC1

PC1

PC2

PC2

PC3

PC3

GND

GND

(PA0)

(PA0)

XTALHF1

(PA1)

(PA1)

XTALHF2

PB2

PB2

SW0

PB3

PB3

LED0

VBUS

VBUS

VOFF

VOFF

DBG3

DBG3

PF6

DBG0

DBG0

UPDI

GND

GND

VTG

VTG

PD6

PD6

AIN6

PD3

PD3

AIN3

OP0 INN

PD2

PD2

AIN2

OP0 OUT

TCA0 WO2

PD1

PD1

AIN1

OP0 INP

TCA0 WO1

PD0

PD0

AIN0

TCA0 WO0

PD7

PD7

AIN7

OP1 INN

PD5

PD5

AIN5

OP1 OUT

PD4

PD4

AIN4

OP1 INP

GND

GND

PE3

PE3

OP2 INN

PE2

PE2

OP2 OUT

PE1

PE1

OP2 INP

PE0

PE0

PC7

PC7

PC6

PC6

PC5

PC5

PC4

PC4

GND

GND

PB5

PB5

PB4

PB4

(PF1)

(PF1)

XTAL32K2

(PF0)

(PF0)

XTAL32K1

DE

BU

GG

ER

AV

R1

28

DB

48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

MVIO

OPAMP

Shared pin

AV

R1

28

DB

48

Cu

rio

sity

Na

no

1

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

2

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

3

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

Xp

lain

ed

Pro

Ext

en

sio

nE

XT

11

2

19

20

Cu

rio

sity

Na

no

Ba

sefo

r cl

ick

bo

ard

sT

M

PD4

PD0

PD6

PD3

PA7

PF5

PA6

PF4

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

PD5

PD1

PF3

PF2

PE2

PB1

PA6

PB0

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

PD7

PD2

PE1

PE0

PE3

PF5

PA6

PF4

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

ID

GND

PD5

PD7

PF3

PE1

PD1

PD2

PF2

PE3

PA2

PA3

PB1

PB0

PE2

PA4

PA5

PA6

GND

+33V

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 37

84 Disconnecting the On-board DebuggerThe on-board debugger and level shifters can be completely disconnected from the AVR128DB48

The block diagram below shows all connections between the debugger and the AVR128DB48 The rounded boxesrepresent connections to the board edge The signal names shown are also printed in silkscreen on the bottom sideof the board

To disconnect the debugger cut the straps shown in Figure 8-6

Attention  Cutting the GPIO straps to the on-board debugger will disable the virtual serial portprogramming debugging and data streaming Cutting the power supply strap will disconnect the on-boardpower supply

Tip  Any connection that is cut can be reconnected using solder Alternatively a 0Ω 0402 resistor can bemounted

Tip  When the debugger is disconnected an external debugger can be connected to holes shown in Figure 8-6 Details about connecting an external debugger are described in 46 Connecting ExternalDebuggers

Figure 8-5  On-Board Debugger Connections Block Diagram

DE

BU

GG

ER

TARGETLevel-Shift

PA04PA06PA07PA08PA16PA00PA01

USB

DIR x 5

VCC_P3V3

VBUS

VC

C_L

EV

EL

VC

C_T

AR

GE

TDBG0DBG1DBG2DBG3CDC TXCDC RX

CDC RX

CDC TX

DBG3

DBG2

DBG1

DBG0

GPIO straps

LDO

VOFF

LDO

VBUS VTG

VCC_EDGE

Power Supply strap Target Power strap

UART RXUART TX

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 38

Figure 8-6 On-Board Debugger Connection Cut Straps

GPIO straps (bottom side) Power Supply strap (top side)

85 Getting Started with IARIAR Embedded Workbenchreg for AVRreg is a proprietary high-efficiency compiler not based on GCC Programming anddebugging of AVR128DB48 Curiosity Nano is supported in IARtrade Embedded Workbench for AVR using the Atmel-ICEinterface Some initial settings must be set up in the project to get the programming and debugging to work

The following steps will explain how to get your project ready for programming and debugging

1 Make sure you have opened the project you want to configure Open the OPTIONS dialog for the project2 In the category General Options select the Target tab Select the device for the project or if not listed the

core of the device as shown in Figure 8-73 In the category Debugger select the Setup tab Select Atmel-ICE as the driver as shown in Figure 8-84 In the category Debugger gt Atmel-ICE select the Atmel-ICE 1 tab Select UPDI as the interface and

optionally select the UPDI frequency as shown in Figure 8-9

Info  If the selection of Debug Port (mentioned in step 4) is grayed out the interface is preselected andthe user can skip this configuration step

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 39

Figure 8-7 Select Target Device

Figure 8-8 Select Debugger

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 40

Figure 8-9 Configure Interface

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 41

The Microchip Website

Microchip provides online support via our website at wwwmicrochipcom This website is used to make files andinformation easily available to customers Some of the content available includes

bull Product Support ndash Data sheets and errata application notes and sample programs design resources userrsquosguides and hardware support documents latest software releases and archived software

bull General Technical Support ndash Frequently Asked Questions (FAQs) technical support requests onlinediscussion groups Microchip design partner program member listing

bull Business of Microchip ndash Product selector and ordering guides latest Microchip press releases listing ofseminars and events listings of Microchip sales offices distributors and factory representatives

Product Change Notification Service

Microchiprsquos product change notification service helps keep customers current on Microchip products Subscribers willreceive email notification whenever there are changes updates revisions or errata related to a specified productfamily or development tool of interest

To register go to wwwmicrochipcompcn and follow the registration instructions

Customer Support

Users of Microchip products can receive assistance through several channels

bull Distributor or Representativebull Local Sales Officebull Embedded Solutions Engineer (ESE)bull Technical Support

Customers should contact their distributor representative or ESE for support Local sales offices are also available tohelp customers A listing of sales offices and locations is included in this document

Technical support is available through the website at wwwmicrochipcomsupport

Microchip Devices Code Protection Feature

Note the following details of the code protection feature on Microchip devices

bull Microchip products meet the specifications contained in their particular Microchip Data Sheetbull Microchip believes that its family of products is secure when used in the intended manner and under normal

conditionsbull There are dishonest and possibly illegal methods being used in attempts to breach the code protection features

of the Microchip devices We believe that these methods require using the Microchip products in a manneroutside the operating specifications contained in Microchiprsquos Data Sheets Attempts to breach these codeprotection features most likely cannot be accomplished without violating Microchiprsquos intellectual property rights

bull Microchip is willing to work with any customer who is concerned about the integrity of its codebull Neither Microchip nor any other semiconductor manufacturer can guarantee the security of its code Code

protection does not mean that we are guaranteeing the product is ldquounbreakablerdquo Code protection is constantlyevolving We at Microchip are committed to continuously improving the code protection features of our productsAttempts to break Microchiprsquos code protection feature may be a violation of the Digital Millennium Copyright ActIf such acts allow unauthorized access to your software or other copyrighted work you may have a right to suefor relief under that Act

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 42

Legal Notice

Information contained in this publication is provided for the sole purpose of designing with and using Microchipproducts Information regarding device applications and the like is provided only for your convenience and may besuperseded by updates It is your responsibility to ensure that your application meets with your specifications

THIS INFORMATION IS PROVIDED BY MICROCHIP ldquoAS ISrdquo MICROCHIP MAKES NO REPRESENTATIONS ORWARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED WRITTEN OR ORAL STATUTORY OROTHERWISE RELATED TO THE INFORMATION INCLUDING BUT NOT LIMITED TO ANY IMPLIEDWARRANTIES OF NON-INFRINGEMENT MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSEOR WARRANTIES RELATED TO ITS CONDITION QUALITY OR PERFORMANCE

IN NO EVENT WILL MICROCHIP BE LIABLE FOR ANY INDIRECT SPECIAL PUNITIVE INCIDENTAL ORCONSEQUENTIAL LOSS DAMAGE COST OR EXPENSE OF ANY KIND WHATSOEVER RELATED TO THEINFORMATION OR ITS USE HOWEVER CAUSED EVEN IF MICROCHIP HAS BEEN ADVISED OF THEPOSSIBILITY OR THE DAMAGES ARE FORESEEABLE TO THE FULLEST EXTENT ALLOWED BY LAWMICROCHIPS TOTAL LIABILITY ON ALL CLAIMS IN ANY WAY RELATED TO THE INFORMATION OR ITS USEWILL NOT EXCEED THE AMOUNT OF FEES IF ANY THAT YOU HAVE PAID DIRECTLY TO MICROCHIP FORTHE INFORMATION Use of Microchip devices in life support andor safety applications is entirely at the buyerrsquos riskand the buyer agrees to defend indemnify and hold harmless Microchip from any and all damages claims suits orexpenses resulting from such use No licenses are conveyed implicitly or otherwise under any Microchip intellectualproperty rights unless otherwise stated

Trademarks

The Microchip name and logo the Microchip logo Adaptec AnyRate AVR AVR logo AVR Freaks BesTimeBitCloud chipKIT chipKIT logo CryptoMemory CryptoRF dsPIC FlashFlex flexPWR HELDO IGLOO JukeBloxKeeLoq Kleer LANCheck LinkMD maXStylus maXTouch MediaLB megaAVR Microsemi Microsemi logo MOSTMOST logo MPLAB OptoLyzer PackeTime PIC picoPower PICSTART PIC32 logo PolarFire Prochip DesignerQTouch SAM-BA SenGenuity SpyNIC SST SST Logo SuperFlash Symmetricom SyncServer TachyonTempTrackr TimeSource tinyAVR UNIO Vectron and XMEGA are registered trademarks of Microchip TechnologyIncorporated in the USA and other countries

APT ClockWorks The Embedded Control Solutions Company EtherSynch FlashTec Hyper Speed ControlHyperLight Load IntelliMOS Libero motorBench mTouch Powermite 3 Precision Edge ProASIC ProASIC PlusProASIC Plus logo Quiet-Wire SmartFusion SyncWorld Temux TimeCesium TimeHub TimePictra TimeProviderVite WinPath and ZL are registered trademarks of Microchip Technology Incorporated in the USA

Adjacent Key Suppression AKS Analog-for-the-Digital Age Any Capacitor AnyIn AnyOut BlueSky BodyComCodeGuard CryptoAuthentication CryptoAutomotive CryptoCompanion CryptoController dsPICDEMdsPICDEMnet Dynamic Average Matching DAM ECAN EtherGREEN In-Circuit Serial Programming ICSPINICnet Inter-Chip Connectivity JitterBlocker KleerNet KleerNet logo memBrain Mindi MiWi MPASM MPFMPLAB Certified logo MPLIB MPLINK MultiTRAK NetDetach Omniscient Code Generation PICDEMPICDEMnet PICkit PICtail PowerSmart PureSilicon QMatrix REAL ICE Ripple Blocker SAM-ICE Serial QuadIO SMART-IS SQI SuperSwitcher SuperSwitcher II Total Endurance TSHARC USBCheck VariSenseViewSpan WiperLock Wireless DNA and ZENA are trademarks of Microchip Technology Incorporated in the USAand other countries

SQTP is a service mark of Microchip Technology Incorporated in the USA

The Adaptec logo Frequency on Demand Silicon Storage Technology and Symmcom are registered trademarks ofMicrochip Technology Inc in other countries

GestIC is a registered trademark of Microchip Technology Germany II GmbH amp Co KG a subsidiary of MicrochipTechnology Inc in other countries

All other trademarks mentioned herein are property of their respective companiescopy 2020 Microchip Technology Incorporated Printed in the USA All Rights Reserved

ISBN 978-1-5224-6667-3

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 43

Quality Management SystemFor information regarding Microchiprsquos Quality Management Systems please visit wwwmicrochipcomquality

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 44

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupportwwwmicrochipcomsupportWeb AddresswwwmicrochipcomAtlantaDuluth GATel 678-957-9614Fax 678-957-1455Austin TXTel 512-257-3370BostonWestborough MATel 774-760-0087Fax 774-760-0088ChicagoItasca ILTel 630-285-0071Fax 630-285-0075DallasAddison TXTel 972-818-7423Fax 972-818-2924DetroitNovi MITel 248-848-4000Houston TXTel 281-894-5983IndianapolisNoblesville INTel 317-773-8323Fax 317-773-5453Tel 317-536-2380Los AngelesMission Viejo CATel 949-462-9523Fax 949-462-9608Tel 951-273-7800Raleigh NCTel 919-844-7510New York NYTel 631-435-6000San Jose CATel 408-735-9110Tel 408-436-4270Canada - TorontoTel 905-695-1980Fax 905-695-2078

Australia - SydneyTel 61-2-9868-6733China - BeijingTel 86-10-8569-7000China - ChengduTel 86-28-8665-5511China - ChongqingTel 86-23-8980-9588China - DongguanTel 86-769-8702-9880China - GuangzhouTel 86-20-8755-8029China - HangzhouTel 86-571-8792-8115China - Hong Kong SARTel 852-2943-5100China - NanjingTel 86-25-8473-2460China - QingdaoTel 86-532-8502-7355China - ShanghaiTel 86-21-3326-8000China - ShenyangTel 86-24-2334-2829China - ShenzhenTel 86-755-8864-2200China - SuzhouTel 86-186-6233-1526China - WuhanTel 86-27-5980-5300China - XianTel 86-29-8833-7252China - XiamenTel 86-592-2388138China - ZhuhaiTel 86-756-3210040

India - BangaloreTel 91-80-3090-4444India - New DelhiTel 91-11-4160-8631India - PuneTel 91-20-4121-0141Japan - OsakaTel 81-6-6152-7160Japan - TokyoTel 81-3-6880- 3770Korea - DaeguTel 82-53-744-4301Korea - SeoulTel 82-2-554-7200Malaysia - Kuala LumpurTel 60-3-7651-7906Malaysia - PenangTel 60-4-227-8870Philippines - ManilaTel 63-2-634-9065SingaporeTel 65-6334-8870Taiwan - Hsin ChuTel 886-3-577-8366Taiwan - KaohsiungTel 886-7-213-7830Taiwan - TaipeiTel 886-2-2508-8600Thailand - BangkokTel 66-2-694-1351Vietnam - Ho Chi MinhTel 84-28-5448-2100

Austria - WelsTel 43-7242-2244-39Fax 43-7242-2244-393Denmark - CopenhagenTel 45-4485-5910Fax 45-4485-2829Finland - EspooTel 358-9-4520-820France - ParisTel 33-1-69-53-63-20Fax 33-1-69-30-90-79Germany - GarchingTel 49-8931-9700Germany - HaanTel 49-2129-3766400Germany - HeilbronnTel 49-7131-72400Germany - KarlsruheTel 49-721-625370Germany - MunichTel 49-89-627-144-0Fax 49-89-627-144-44Germany - RosenheimTel 49-8031-354-560Israel - RarsquoananaTel 972-9-744-7705Italy - MilanTel 39-0331-742611Fax 39-0331-466781Italy - PadovaTel 39-049-7625286Netherlands - DrunenTel 31-416-690399Fax 31-416-690340Norway - TrondheimTel 47-72884388Poland - WarsawTel 48-22-3325737Romania - BucharestTel 40-21-407-87-50Spain - MadridTel 34-91-708-08-90Fax 34-91-708-08-91Sweden - GothenbergTel 46-31-704-60-40Sweden - StockholmTel 46-8-5090-4654UK - WokinghamTel 44-118-921-5800Fax 44-118-921-5820

Worldwide Sales and Service

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 45

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Board Overview
      • 2 Getting Started
        • 21 Quick Start
          • 211 Driver Installation
          • 212 Kit Window
          • 213 MPLABreg X IDE Device Family Packs
          • 214 Atmel Studio 7 Device Family Pack
            • 22 Design Documentation and Relevant Links
              • 3 Preprogrammed Application
              • 4 Curiosity Nano
                • 41 On-Board Debugger Overview
                  • 411 Debugger
                  • 412 Virtual Serial Port (CDC)
                    • 4121 Overview
                    • 4122 Operating System Support
                    • 4123 Limitations
                    • 4124 Signaling
                    • 4125 Advanced Use
                      • 413 Mass Storage Device
                        • 4131 Mass Storage Device Implementation
                        • 4132 Limitations of Drag-and-Drop Programming
                        • 4133 Special Commands
                          • 414 Data Gateway Interface (DGI)
                            • 4141 Debug GPIO
                            • 4142 Timestamping
                                • 42 Curiosity Nano Standard Pinout
                                • 43 Power Supply
                                  • 431 Target Regulator
                                  • 432 External Supply
                                  • 433 VBUS Output Pin
                                  • 434 Power Supply Exceptions
                                    • 44 Low-Power Measurement
                                    • 45 Programming External Microcontrollers
                                      • 451 Supported Devices
                                      • 452 Software Configuration
                                      • 453 Hardware Modifications
                                      • 454 Connecting to External Microcontrollers
                                        • 46 Connecting External Debuggers
                                          • 5 Hardware User Guide
                                            • 51 Connectors
                                              • 511 AVR128DB48 Curiosity Nano Pinout
                                              • 512 Using Pin Headers
                                              • 513 Multi-Voltage IO
                                              • 514 Operational Amplifiers
                                                • 52 Peripherals
                                                  • 521 LED
                                                  • 522 Mechanical Switch
                                                  • 523 32768 kHz Crystal
                                                  • 524 1600 MHz Crystal
                                                  • 525 On-Board Debugger Implementation
                                                    • 5251 On-Board Debugger Connections
                                                      • 6 Hardware Revision History and Known Issues
                                                        • 61 Identifying Product ID and Revision
                                                        • 62 Revision 3
                                                        • 63 Revision 2
                                                          • 7 Document Revision History
                                                          • 8 Appendix
                                                            • 81 Schematic
                                                            • 82 Assembly Drawing
                                                            • 83 Curiosity Nano Base for Click boardstrade
                                                            • 84 Disconnecting the On-board Debugger
                                                            • 85 Getting Started with IAR
                                                              • The Microchip Website
                                                              • Product Change Notification Service
                                                              • Customer Support
                                                              • Microchip Devices Code Protection Feature
                                                              • Legal Notice
                                                              • Trademarks
                                                              • Quality Management System
                                                              • Worldwide Sales and Service
Page 32: AVR128DB48 Curiosity Nano Hardware User Guideww1.microchip.com/downloads/en/DeviceDoc/AVR128DB48-Curiosit… · 4. Curiosity Nano Curiosity Nano is an evaluation platform of small

6 Hardware Revision History and Known IssuesThis user guide is written to provide information about the latest available revision of the board The followingsections contain information about known issues a revision history of older revisions and how older revisions differfrom the latest revision

61 Identifying Product ID and RevisionThe revision and product identifier of the AVR128DB48 Curiosity Nano Board can be found in two ways Either byutilizing the MPLABreg X IDE or Atmel Studio 7 Kit Window or by looking at the sticker on the bottom side of the PCB

By connecting AVR128DB48 Curiosity Nano to a computer with MPLABreg X IDE or Atmel Studio 7 running the KitWindow will pop up The first six digits of the serial number which is listed under kit information contain the productidentifier and revision

Tip  The Kit Window can be opened in MPLABreg X IDE through the menu bar Window gt Kit Window

The same information can be found on the sticker on the bottom side of the PCB Most boards will have the identifierand revision printed in plain text as A09-nnnnrr where ldquonnnnrdquo is the identifier and ldquorrrdquo is the revision Boards withlimited space have a sticker with only a data matrix code containing the product identifier revision and serialnumber

The serial number string has the following format

nnnnrrssssssssss

n = product identifier

r = revision

s = serial number

The product identifier for AVR128DB48 Curiosity Nano is A09‑3372

62 Revision 3AVR128DB48 silicon revision A5 or later is mounted on this revision of the board

63 Revision 2Revision 2 is the initially released board revision

AVR128DB48 silicon revision A4 is mounted on this revision of the board

AVR128DB48 Curiosity NanoHardware Revision History and Known Issues

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 32

7 Document Revision HistoryDoc Rev Date Comments

A 092020 Initial document release

AVR128DB48 Curiosity NanoDocument Revision History

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 33

8 Appendix

81 SchematicFigure 8-1 AVR128DB48 Curiosity Nano Schematic

11

22

33

44

55

66

77

88

DD

CC

BB

AA

2 of

4

AV

R12

8DB

48 C

uri

osit

y N

ano

240

820

20A

VR

128D

B48

_Cur

iosi

ty_N

ano_

Targ

et_M

CU

Sch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA

Rev

isio

n

File

P

CB

Num

ber

PC

B

Rev

isio

n

Des

ign

ed w

ith

Dra

wn

By

ML

Shee

t Titl

e

Targ

et M

CU

Eng

inee

rA

H

A08

-305

71

Size

A3

A09

-337

22

Page

D

ateA

ltium

com

GN

D

VD

DIO

2

100n

C20

1

GN

D

PA5_

SPI0

_MIS

OPA

6_SP

I0_S

CK

PA7_

SPI0

_SS

PB0_

USA

RT

3_T

XPB

1_U

SAR

T3_

RX

PB2_

SW0_

DB

G2

PB3_

LE

D0_

DB

G1

PB

4P

B5

PC

0P

C1

PC

2

PC3

PC4PC5PC6PC7PD0_AIN0_TCA0_WO0PD1_AIN1_OP0_INP_TCA0_WO1PD2_AIN2_OP0_OUT_TCA0_WO2PD3_AIN3_OP0_INNPD4_AIN4_OP1_INP

PA3_TWI0_SCL

PA1_XTALHF2

UPDI_DBG0

PF5_USART2_RX

PF3

PF

2PF

1_X

TA

L32

K2

PF0_

XT

AL

32K

1P

E3_

OP

2_IN

NP

E2_

OP

2_O

UT

PE

1_O

P2_

INP

PE

0

PD5_

AIN

5_O

P1_

OU

TPD

6_A

IN6

PD7_

AIN

7_O

P1_

INN

GN

D

VC

C_T

AR

GE

T

100n

C20

2

GN

DV

CC

_TA

RG

ET

100n

C20

0

PF1_XTAL32K2

PF0_XTAL32K1

PA2_TWI0_SDA

PA0_XTALHF1

PF4_USART2_TX

PA4_SPI0_MOSI

GN

D

PA7_

SPI0

_SS

PA6_

SPI0

_SC

KPA

5_SP

I0_M

ISO

PA4_

SPI0

_MO

SIPA

3_T

WI0

_SC

LPA

2_T

WI0

_SD

A

PC

0P

C1

PC

2P

C3

PB

4P

B5

PD7_

AIN

7_O

P1_

INN

PD6_

AIN

6

PD2_

AIN

2_O

P0_

OU

T_T

CA

0_W

O2

PD1_

AIN

1_O

P0_

INP_

TC

A0_

WO

1PD

0_A

IN0_

TC

A0_

WO

0

PD5_

AIN

5_O

P1_

OU

TPD

4_A

IN4_

OP

1_IN

P

PD3_

AIN

3_O

P0_

INN

32K

Hz

Cry

stal

PB0_

USA

RT

3_T

XPB

1_U

SAR

T3_

RX

1kR203

US

ER

LE

D

VC

C_T

AR

GE

T

PF6_DBG3

PB2_SW0_DBG2

PB3_LED0_DBG1

GN

D

USE

R B

UT

TO

N

PB3_

LE

D0_

DB

G1

PB2_

SW0_

DB

G2

PB1_

USA

RT

3_R

XPB

0_U

SAR

T3_

TX

PF4_

USA

RT

2_T

XPF

5_U

SAR

T2_

RX

PF

2P

F3

PC

4P

C5

PC

6P

C7

1kR202

YELLOWLEDSML-D12Y1WT86

2 1

D200

TS604VM1-035CR13

4 2

SW20

0

GN

DV

CC

_ED

GE

GN

DG

ND

GN

DG

ND

UPD

I_D

BG

0P

F6_

DB

G3

J209

PB3_

LE

D0_

DB

G1

PB2_

SW0_

DB

G2

AV

R12

8DB

48

22u

FC

205

VC

C_E

DG

E

GN

D

DBG0

CDC_TXCDC_RX

DBG2

DBG1

DBG3

DBG2

DE

BU

GG

ER

CO

NN

EC

TIO

NS

DBG1

DBG3DBG0

VOFF

ID_SYS

ID_SYS

VOFF

TA

RG

ET

BU

LK

VC

C_T

AR

GE

TR

ESE

T P

ull

VB

US

CD

C R

X3

CD

C T

X4

DB

G1

5

DB

G2

6

0 T

X7

1 R

X8

2 SD

A9

3 S

CL

10

4 M

OSI

11

5 M

ISO

12

6 S

CK

13

7 S

S14

GN

D15

0 (T

X)

16

1 (R

X)

17

218

319

020

GN

D24

DB

G3

54

DB

G0

53

GN

D52

VC

C51

PW

M 3

46

AD

C 2

45

AD

C 1

44

AD

C 0

43

GN

D42

438

434

GN

D33

AD

C 7

50

AD

C 6

49

AD

C 5

48

PW

M 4

47

DE

BU

GG

ER

TAR

GE

T

ID2

VO

FF

55

121

222

323

025

126

227

328

429

530

631

732

535

636

737

539

640

741

RE

SER

VE

D1

VB

US

56

CN

AN

O56

-pin

edg

e co

nnec

tor

J200

J201

J203

J205

J206

J202

J204

PF1_

XT

AL

32K

2PF

0_X

TA

L32

K1

NC

XOUT

XIN

47kR200

AV

R12

8DB

48

UPD

I

GPI

O1

GPI

O0

RE

SET

DB

G0

DB

G1

DB

G2

DB

G3

Deb

ugge

r

CD

C T

X

CD

C R

X

UA

RT

3 R

X

UA

RT

3 T

X

VT

G1

8V -

55

VPB

3

PB

2

PF

6

UP

DI

PB

0

PB

1

Nam

eP

in

PE

3_O

P2_

INN

PE

2_O

P2_

OU

TP

E1_

OP

2_IN

PP

E0

J207

J208

PF

0P

F1

PA5

1

PA6

2

PA7

3

PB0

4

PB1

5

PB2

6

PB3

7

PB4

8

PB5

9

PC0

10

PC1

11

PC2

12

PC313

VDDIO214

GND15

PC416

PC517

PC618

PC719

PD020

PD121

PD222

PD323

PD424

PD5

25

PD6

26

PD7

27

AVDD

28

GND

29

PE0

30

PE1

31

PE2

32

PE3

33

XTAL32K1PF0

34

XTAL32K2PF1

35

PF2

36

PF337

PF438

PF539

PF640

UPDI41

VDD42

GND43

XTALHF1PA044

XTALHF2PA145

PA246

PA347

PA448

AV

R12

8DB

48-I

PT

U20

0

0RR204

GN

D

VC

C_T

AR

GE

T

VDDIO2

GND

J210

J211

82p

C20

48

2pC

203

GN

DG

ND

16M

Hz

Cry

stal

J217

XHFOUT

XHFIN

J214

J213

GN

D

J215

J216

PA0_XTALHF1

PA1_XTALHF2

PA0_

XT

AL

HF

1PA

1_X

TA

LH

F2

PA0

PA1

1 2

J212 N

M

15pF

C20

615

pFC

207

13

24 16

000

MH

zV

XM

7-90

40-1

6M00

0000

0TR

XC

201

GN

D32

768

kHz

VM

K3-

9001

-32K

7680

000T

R

XC

200

CDC_TX

CDC_RX

CD

C_T

XC

DC

_RX

Cry

stal

dat

ashe

et

Ccr

ysta

l = 9

pFm

ax E

SR

= 7

0kO

hmA

ccur

acy

plusmn20p

pm

AV

R48

DB

128

data

shee

tC

xin

= 4

0pF

(ty

pica

l val

ue)

Cxo

ut =

40

pF (

typi

cal v

alue

)C

lasymp1

( (1

40

pF)+

(1

40p

F)

)asymp

20p

FM

axim

um L

oad

= 1

25p

FM

axim

um E

SR =

50k

Ohm

Est

imat

ed C

pcb

= 0

5pF

Est

imat

ed lo

adC

= 2

(C

crys

tal-

Cpa

ra -

Cpc

b)C

= 2

(9p

F -

20

pF -

05

pF)

C =

13

0pF

Sele

cted

in d

esig

n af

ter

veri

fica

tion

C=

82

pF8

2pF

NO

TE

on

UA

RT

CD

C

RX

TX

onth

ehe

ader

deno

tes

the

inpu

tout

put d

irec

tion

of th

e si

gnal

resp

ectiv

e to

its

sou

rce

CD

C T

X is

out

put f

rom

the

DE

BU

GG

ER

C

DC

RX

is in

put t

o th

e D

EB

UG

GE

R

TX

is o

utpu

t fro

m th

e T

AR

GE

T d

evic

eR

X is

inpu

t to

the

TA

RG

ET

dev

ice

NO

TE

on

I2C

No

pull

-ups

on

boar

d P

ull-

ups

shou

ld b

em

ount

ed c

lose

to s

lave

dev

ice(

s)

WA

RN

ING

M

ake

sure

tore

mov

e R

204

befo

reap

plyi

ng p

ower

to J

212

Cry

stal

dat

ashe

et

Ccr

ysta

l = 1

2pF

max

ES

R =

60O

hmA

ccur

acy

plusmn30p

pm

AV

R48

DB

128

data

shee

tC

xin

= 4

0pF

(ty

pica

l val

ue)

Cxo

ut =

40

pF (

typi

cal v

alue

)C

lasymp1

( (1

40

pF)+

(1

40p

F)

)asymp

20p

FM

axim

um L

oad

= 1

25p

FM

axim

um E

SR =

k

Ohm

Est

imat

ed C

pcb

= 0

5pF

Est

imat

ed lo

adC

= 2

(C

crys

tal-

Cpa

ra -

Cpc

b)C

= 2

(12

pF -

20

pF -

05

pF)

C =

19

0pF

Sele

cted

in d

esig

n af

ter

veri

fica

tion

C=

15p

F1

5pF

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 34

11

22

33

44

55

66

77

88

DD

CC

BB

AA

3 of

4

AV

R12

8DB

48 C

uri

osit

y N

ano

2020

-06-

26A

VR

128D

B48

_Cur

iosi

ty_N

ano_

Deb

ugge

rSch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA

Rev

isio

n

Fil

eP

CB

Num

ber

PC

B

Rev

isio

n

Des

ign

ed w

ith

Dra

wn

By

ML

Shee

t Tit

le

Deb

ugge

r

Eng

inee

rA

H

A08

-305

71

Size

A3

A09

-337

22

Page

D

ateA

ltium

com

DE

BU

GG

ER

USB

MIC

RO

-B C

ON

NE

CT

OR

GN

D

USB

D_P

USB

D_N

100n

C10

7

100n

C10

8

1kR

107

VC

C_P

3V3

SRST

STA

TU

S_L

ED

SHIE

LD

VB

US

VC

C_P

3V3

GN

D

TP

100

Test

poin

t Arr

ay

12

34

56

78

910

TC

KT

DO

TM

SV

sup

TD

IG

ND

TR

STSR

STV

Tre

fG

ND

J102

GN

D

47u

F

C10

0

DBG0

DB

G0

21

GR

EE

N L

ED

SML

-P12

MT

T86

R

D10

0

VBUS

1

D-

2

D+

3

GND

5

SHIELD1

6

SHIELD2

7

ID

4

SHIELD3

8

SHIELD4

9 MU

-MB

0142

AB

2-26

9

J105

PAD

33

PA00

1

PA01

2

PA02

3

PA03

4

GND 10VDDANA 9

PA04

5

PA05

6

PA06

7

PA07

8

PA08 11

PA09 12

PA10 13

PA11 14

PA14 15

PA15 16

PA16

17

PA17

18

PA18

19

PA19

20

PA22

21

USB_SOFPA23

22

USB_DMPA24

23

USB_DPPA25

24

PA2725 RESETN26 PA2827 GND28 VDDCORE29 VDDIN30 SWDCLKPA3031 SWDIOPA3132

SAM

D21

E18

A-M

UT

U10

0

VOUT

1

VOUT

2

GND 3

EN

4

VIN

6

NC

5

EP 7

MIC

5528

-33

YM

TU

101

VC

C_P

3V3

GN

D

USB

D_P

USB

D_N

GN

D

1uC

106

VC

C_M

CU

_CO

RE

VC

C_P

3V3

VC

C_P

3V3

22u

FC

101

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

3

VC

C_P

3V3

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

4

VC

C_P

3V3

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

5

VC

C_P

3V3

GN

D

GN

D GN

D

GN

D

VC

C_E

DG

E

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

7

VC

C_P

3V3

GN

DDBG2

DB

G3_

CT

RL

S1_0

_TX

S1_1

_RX

S0_2

_TX

DA

CV

TG

_AD

C

RE

SER

VE

D

S0_3

_CL

K

DBG0_CTRL

CD

C_T

X_C

TR

L

BO

OT

DE

BU

GG

ER

PO

WE

RS

TA

TU

S L

ED

EN

1

BYP

6

VOUT

4

GND

2

VIN

3

NCADJ

5

GND

7

MIC

5353

U10

2

100n

C10

2

GN

D

GN

D

47kR101

27kR104 G

ND

33k

R10

6

22u

F

C10

3 GN

D

1kR

108

J100

VC

C_L

EV

EL

VC

C_R

EG

UL

AT

OR

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

6

VC

C_P

3V3

GN

DDBG1

CD

C_R

X

CD

C_T

X

DBG3

DBG1_CTRL

DE

BU

GG

ER

RE

GU

LA

TO

R

REG_ENABLE

RE

G_E

NA

BL

E

47kR103

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

47kR102

47kR105

SWC

LK

GN

D

47kR100 G

ND

DB

G2

S0_0

_RX

DB

G1_

CT

RL

DB

G0_

CT

RL

DB

G3

OP

EN

DR

AIN

TA

RG

ET

AD

JUST

AB

LE

RE

GU

LA

TO

R

SRST

DE

BU

GG

ER

TE

ST

PO

INT DBG2_CTRL

VO

FF

CD

C_R

X_C

TR

L

47kR109

DB

G1

CD

C_T

X_C

TR

L

CD

C_R

X_C

TR

L

SWC

LK

REG_ADJUST

DBG2_GPIO

DB

G3_

CT

RL

DB

G2_

CT

RL

UP

DI

UPD

I

GPI

O

GPI

O

RE

SET

Sign

al

DB

G0

DB

G1

DB

G2

DB

G3

ICS

PIn

terf

ace

DA

T

CL

K

GPI

O

MC

LR

DB

G3

CD

C T

X

CD

C R

X

UA

RT

RX

UA

RT

TX

UA

RT

RX

UA

RT

TX

TA

RG

ET

TA

RG

ET

1kR

110

VBUS_ADC

1

23

DM

N65

D8L

FB

Q10

1

VC

C-

-

ID_SYS

VOFF

1kR112

VC

C_P

3V3

VT

G_A

DC

DA

C

MIC

9416

3

VIN

B2

VOUT

A1

VIN

A2

EN

C2

GND

C1

VOUT

B1

U10

8

GN

D

ID_S

YS

VT

G_E

N

VTG_EN

VBUS_ADC

SWD

IO

ID_S

YS

TP

101

GN

DSW

DIO

VO

FF

47kR111 G

ND

ID P

IN

MC

3621

3

F10

0

VC

C_V

BU

S

VC

C_V

BU

S

VC

C_V

BU

S

J101

VC

C_T

AR

GE

T

47k

R11

3

CDC_TX

CDC_RX

Prog

ram

min

g co

nnec

tor

for

fact

ory

prog

ram

min

g of

DE

BU

GG

ER

MIC

5528

V

in 2

5V

to 5

5V

Vou

t F

ixed

33

VIm

ax 5

00m

AD

ropo

ut 2

60m

V

500

mA

MIC

5353

V

in 2

6V

to 6

VV

out

12

5V to

51

VIm

ax 5

00m

AD

ropo

ut (

typi

cal)

50m

V

150m

A 1

60m

V

500

mA

Acc

urac

y 2

in

itia

lT

herm

al s

hutd

own

and

curr

ent l

imit

Max

imum

out

put v

olta

ge is

lim

ited

by

the

inpu

t vol

tage

and

the

drop

out v

olta

ge in

the

regu

lato

r(V

max

= V

in -

dro

pout

)

J100

-

Cut

-str

ap u

sed

for

full

sep

arat

ion

of ta

rget

pow

er f

rom

the

leve

l shi

fter

s an

don

-boa

rd r

egul

ator

s-

For

cur

rent

mea

sure

men

ts u

sing

the

on-b

oard

pow

er s

uppl

y th

isst

rap

mus

t be

cut a

nd a

nam

met

er c

onne

cted

acr

oss

- F

or c

urre

nt m

easu

rem

ents

usi

ng a

n ex

tern

al p

ower

sup

ply

this

str

ap c

ould

be

cut f

or m

ore

accu

rate

mea

sure

men

ts L

eaka

ge b

ack

thro

ugh

the

swit

ch is

in th

e m

icro

am

pere

ran

ge

PT

C R

eset

tabl

e fu

se

Hol

d cu

rren

t 5

00m

AT

rip

curr

ent

100

0mA

Adj

usta

ble

outp

ut a

nd li

mit

atio

ns

- T

he D

EB

UG

GE

R c

an a

djus

t the

out

put v

olta

ge o

f th

e re

gula

tor

betw

een

125

V a

nd 5

1V

to th

e ta

rget

-

The

vol

tage

out

put i

s li

mit

ed b

y th

e in

put (

US

B)

whi

ch c

an v

ary

betw

een

440

V to

52

5V-

The

leve

l shi

fter

s ha

ve a

min

imal

vol

tage

leve

l of

165

V a

nd w

ill l

imit

the

min

imum

ope

ratin

g vo

ltage

all

owed

for

the

targ

et to

sti

ll a

llow

com

mun

icat

ion

- T

he M

IC94

163

has

a m

inim

al v

olat

ege

leve

l of

170

V a

nd w

ill l

imit

the

min

imum

vol

tage

del

iver

ed to

the

targ

et

- F

irm

war

e co

nfig

urat

ion

wil

l lim

it th

e vo

ltage

ran

ge to

be

wit

hin

the

the

targ

et s

peci

fica

tion

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 35

82 Assembly DrawingFigure 8-2 AVR128DB48 Curiosity Nano Assembly Drawing Top

+

Cb

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20001 PAC20002 COC200

PAC20101 PAC20102 COC201

PAC20201 PAC20202 COC202 PAC20301

PAC20302 COC203

PAC20401

PAC20402 COC204

PAC20502

PAC20501 COC205

PAC20601

PAC20602 COC206 PAC20701

PAC20702 COC207 PAD10002 PAD10001 COD100

PAD20002

PAD20001 COD200

PAF10002

PAF10001 COF100

PAJ10002 PAJ10001 COJ100

PAJ10101 PAJ10102 COJ101

PAJ10201

PAJ10202

PAJ10203

PAJ10204

PAJ10205

PAJ10206 COJ102

PAJ10506

PAJ10507 PAJ10509

PAJ10508 PAJ105010

PAJ105011 PAJ10505

PAJ10504

PAJ10503

PAJ10502

PAJ10501

PAJ10500

COJ105

PAJ200056 PAJ200053

PAJ200028 PAJ20002 PAJ20001

PAJ200051 PAJ200050 PAJ200052 PAJ200049 PAJ200048 PAJ200047 PAJ200046 PAJ200045 PAJ200044 PAJ200043 PAJ200042 PAJ200041 PAJ200040 PAJ200039 PAJ200038 PAJ200037 PAJ200036 PAJ200035 PAJ200034 PAJ200033 PAJ200032 PAJ200031 PAJ200030 PAJ200029

PAJ20003 PAJ20004 PAJ20005 PAJ20006 PAJ20007 PAJ20008 PAJ20009 PAJ200010 PAJ200011 PAJ200012 PAJ200013 PAJ200014 PAJ200015 PAJ200016 PAJ200017 PAJ200018 PAJ200019 PAJ200020 PAJ200021 PAJ200022 PAJ200023 PAJ200026 PAJ200025 PAJ200024 PAJ200027

PAJ200054 PAJ200055 PAJ20000

COJ200

PAJ20102 PAJ20101 COJ201

PAJ20202 PAJ20201 COJ202

PAJ20302 PAJ20301 COJ203

PAJ20402 PAJ20401 COJ204

PAJ20502 PAJ20501 COJ205

PAJ20602 PAJ20601 COJ206 PAJ20702 PAJ20701 COJ207

PAJ20802 PAJ20801 COJ208

PAJ20902 PAJ20901 COJ209

PAJ21001 PAJ21002 PAJ21005 COJ210

PAJ21102 PAJ21101 PAJ21105 COJ211

PAJ21202 PAJ21201 COJ212

PAJ21301 PAJ21302 PAJ21305 COJ213

PAJ21401 PAJ21402 PAJ21405 COJ214

PAJ21502 PAJ21501 COJ215

PAJ21602 PAJ21601 COJ216 PAJ21702 PAJ21701 COJ217

COLABEL1

PAQ10101 PAQ10102 PAQ10103 PAQ10100

COQ101 PAR10002

PAR10001 COR100 PAR10101 PAR10102 COR101

PAR10202 PAR10201 COR102

PAR10302 PAR10301 COR103

PAR10401 PAR10402 COR104

PAR10502

PAR10501 COR105

PAR10601 PAR10602 COR106

PAR10702 PAR10701 COR107

PAR10801

PAR10802 COR108

PAR10901 PAR10902 COR109

PAR11001 PAR11002 COR110

PAR11101 PAR11102 COR111

PAR11201 PAR11202 COR112

PAR11302 PAR11301 COR113

PAR20001 PAR20002 COR200 PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203 PAR20401 PAR20402 COR204

PASW20003

PASW20004 PASW20002

PASW20001 COSW200

PATP10001 COTP100

PATP10101 COTP101 PAU100033

PAU100032 PAU100031 PAU100030 PAU100029 PAU100028 PAU100027 PAU100026 PAU100025 PAU100024

PAU100023

PAU100022

PAU100021

PAU100020

PAU100019

PAU100018

PAU100017 PAU100016 PAU100015 PAU100014 PAU100013 PAU100012 PAU100011 PAU100010

PAU10001

PAU10002

PAU10003

PAU10004

PAU10005

PAU10006

PAU10007

PAU10008 PAU10009

COU100

PAU10107

PAU10104 PAU10105 PAU10106

PAU10103 PAU10102 PAU10101 PAU10100 COU101 PAU10207

PAU10204 PAU10205

PAU10206

PAU10203 PAU10202

PAU10201

COU102

PAU10306

PAU10305 PAU10304 PAU10303

PAU10302 PAU10301 PAU10300

COU103

PAU10406

PAU10405 PAU10404 PAU10403

PAU10402 PAU10401 PAU10400

COU104

PAU10506

PAU10505 PAU10504 PAU10503

PAU10502 PAU10501 PAU10500

COU105

PAU10606

PAU10605 PAU10604 PAU10603

PAU10602 PAU10601 PAU10600

COU106

PAU10706

PAU10705 PAU10704 PAU10703

PAU10702 PAU10701 PAU10700

COU107

PAU1080A1 PAU1080A2

PAU1080B1 PAU1080B2

PAU1080C1 PAU1080C2 COU108

PAU20001 PAU20002 PAU20003 PAU20004 PAU20005 PAU20006 PAU20007 PAU20008 PAU20009 PAU200010 PAU200011 PAU200012 PAU200013 PAU200014 PAU200015 PAU200016 PAU200017 PAU200018 PAU200019 PAU200020 PAU200021 PAU200022 PAU200023 PAU200024 PAU200025 PAU200026 PAU200027 PAU200028 PAU200029 PAU200030 PAU200031 PAU200032 PAU200033 PAU200034 PAU200035 PAU200036

PAU200037 PAU200038 PAU200039 PAU200040 PAU200041 PAU200042 PAU200043 PAU200044 PAU200045 PAU200046 PAU200047 PAU200048

COU200

PAXC20001

PAXC20002 COXC200

PAXC20101 PAXC20102

PAXC20103 PAXC20104 COXC201

Figure 8-3 AVR128DB48 Curiosity Nano Assembly Drawing Bottom

tcR

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20001 PAC20002 COC200

PAC20101 PAC20102 COC201

PAC20201 PAC20202 COC202 PAC20301

PAC20302 COC203

PAC20401

PAC20402 COC204

PAC20502

PAC20501 COC205

PAC20601

PAC20602 COC206 PAC20701

PAC20702 COC207 PAD10002 PAD10001 COD100

PAD20002

PAD20001 COD200

PAF10002

PAF10001 COF100

PAJ10002 PAJ10001 COJ100

PAJ10101 PAJ10102 COJ101

PAJ10201

PAJ10202

PAJ10203

PAJ10204

PAJ10205

PAJ10206 COJ102

PAJ10506

PAJ10507 PAJ10509

PAJ10508 PAJ105010

PAJ105011 PAJ10505

PAJ10504

PAJ10503

PAJ10502

PAJ10501

PAJ10500

COJ105

PAJ200056 PAJ200053

PAJ200028 PAJ20002 PAJ20001

PAJ200051 PAJ200050 PAJ200052 PAJ200049 PAJ200048 PAJ200047 PAJ200046 PAJ200045 PAJ200044 PAJ200043 PAJ200042 PAJ200041 PAJ200040 PAJ200039 PAJ200038 PAJ200037 PAJ200036 PAJ200035 PAJ200034 PAJ200033 PAJ200032 PAJ200031 PAJ200030 PAJ200029

PAJ20003 PAJ20004 PAJ20005 PAJ20006 PAJ20007 PAJ20008 PAJ20009 PAJ200010 PAJ200011 PAJ200012 PAJ200013 PAJ200014 PAJ200015 PAJ200016 PAJ200017 PAJ200018 PAJ200019 PAJ200020 PAJ200021 PAJ200022 PAJ200023 PAJ200026 PAJ200025 PAJ200024 PAJ200027

PAJ200054 PAJ200055 PAJ20000

COJ200

PAJ20102 PAJ20101 COJ201

PAJ20202 PAJ20201 COJ202

PAJ20302 PAJ20301 COJ203

PAJ20402 PAJ20401 COJ204

PAJ20502 PAJ20501 COJ205

PAJ20602 PAJ20601 COJ206 PAJ20702 PAJ20701 COJ207

PAJ20802 PAJ20801 COJ208

PAJ20902 PAJ20901 COJ209

PAJ21001 PAJ21002 PAJ21005 COJ210

PAJ21102 PAJ21101 PAJ21105 COJ211

PAJ21202 PAJ21201 COJ212

PAJ21301 PAJ21302 PAJ21305 COJ213

PAJ21401 PAJ21402 PAJ21405 COJ214

PAJ21502 PAJ21501 COJ215

PAJ21602 PAJ21601 COJ216 PAJ21702 PAJ21701 COJ217

COLABEL1

PAQ10101 PAQ10102 PAQ10103 PAQ10100

COQ101 PAR10002

PAR10001 COR100 PAR10101 PAR10102 COR101

PAR10202 PAR10201 COR102

PAR10302 PAR10301 COR103

PAR10401 PAR10402 COR104

PAR10502

PAR10501 COR105

PAR10601 PAR10602 COR106

PAR10702 PAR10701 COR107

PAR10801

PAR10802 COR108

PAR10901 PAR10902 COR109

PAR11001 PAR11002 COR110

PAR11101 PAR11102 COR111

PAR11201 PAR11202 COR112

PAR11302 PAR11301 COR113

PAR20001 PAR20002 COR200 PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203 PAR20401 PAR20402 COR204

PASW20003

PASW20004 PASW20002

PASW20001 COSW200

PATP10001 COTP100

PATP10101 COTP101 PAU100033

PAU100032 PAU100031 PAU100030 PAU100029 PAU100028 PAU100027 PAU100026 PAU100025 PAU100024

PAU100023

PAU100022

PAU100021

PAU100020

PAU100019

PAU100018

PAU100017 PAU100016 PAU100015 PAU100014 PAU100013 PAU100012 PAU100011 PAU100010

PAU10001

PAU10002

PAU10003

PAU10004

PAU10005

PAU10006

PAU10007

PAU10008 PAU10009

COU100

PAU10107

PAU10104 PAU10105 PAU10106

PAU10103 PAU10102 PAU10101 PAU10100 COU101 PAU10207

PAU10204 PAU10205

PAU10206

PAU10203 PAU10202

PAU10201

COU102

PAU10306

PAU10305 PAU10304 PAU10303

PAU10302 PAU10301 PAU10300

COU103

PAU10406

PAU10405 PAU10404 PAU10403

PAU10402 PAU10401 PAU10400

COU104

PAU10506

PAU10505 PAU10504 PAU10503

PAU10502 PAU10501 PAU10500

COU105

PAU10606

PAU10605 PAU10604 PAU10603

PAU10602 PAU10601 PAU10600

COU106

PAU10706

PAU10705 PAU10704 PAU10703

PAU10702 PAU10701 PAU10700

COU107

PAU1080A1 PAU1080A2

PAU1080B1 PAU1080B2

PAU1080C1 PAU1080C2 COU108

PAU20001 PAU20002 PAU20003 PAU20004 PAU20005 PAU20006 PAU20007 PAU20008 PAU20009 PAU200010 PAU200011 PAU200012 PAU200013 PAU200014 PAU200015 PAU200016 PAU200017 PAU200018 PAU200019 PAU200020 PAU200021 PAU200022 PAU200023 PAU200024 PAU200025 PAU200026 PAU200027 PAU200028 PAU200029 PAU200030 PAU200031 PAU200032 PAU200033 PAU200034 PAU200035 PAU200036

PAU200037 PAU200038 PAU200039 PAU200040 PAU200041 PAU200042 PAU200043 PAU200044 PAU200045 PAU200046 PAU200047 PAU200048

COU200

PAXC20001

PAXC20002 COXC200

PAXC20101 PAXC20102

PAXC20103 PAXC20104 COXC201

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 36

83 Curiosity Nano Base for Click boardstrade

Figure 8-4 AVR128DB48 Curiosity Nano Pinout Mapping

US

B

DE

BU

GG

ER

AV

R1

28

DB

48

SW

0

LE

D0

PS

LE

DNC

NC

ID

ID

CDC RX

CDCRX

USART3 TX

PB0

CDC TX

CDCTX

USART3 RX

PB1

DBG1

DBG1

PB3

LED0

DBG2

DBG2

PB2

SW0

PF4

PF4

USART2 TX

PF5

PF5

USART2 RX

PA2

PA2

TWI0 SDA

PA3

PA3

TWI0 SCL

PA4

PA4

SPI0 MOSI

PA5

PA5

SPI0 MISO

PA6

PA6

SPI0 SCK

PA7

PA7

SPI0 SS

GND

GND

PB0

PB0

USART3 TX

CDC RX

PB1

PB1

USART3 RX

CDC TX

PF2

PF2

PF3

PF3

PC0

PC0

PC1

PC1

PC2

PC2

PC3

PC3

GND

GND

(PA0)

(PA0)

XTALHF1

(PA1)

(PA1)

XTALHF2

PB2

PB2

SW0

PB3

PB3

LED0

VBUS

VBUS

VOFF

VOFF

DBG3

DBG3

PF6

DBG0

DBG0

UPDI

GND

GND

VTG

VTG

PD6

PD6

AIN6

PD3

PD3

AIN3

OP0 INN

PD2

PD2

AIN2

OP0 OUT

TCA0 WO2

PD1

PD1

AIN1

OP0 INP

TCA0 WO1

PD0

PD0

AIN0

TCA0 WO0

PD7

PD7

AIN7

OP1 INN

PD5

PD5

AIN5

OP1 OUT

PD4

PD4

AIN4

OP1 INP

GND

GND

PE3

PE3

OP2 INN

PE2

PE2

OP2 OUT

PE1

PE1

OP2 INP

PE0

PE0

PC7

PC7

PC6

PC6

PC5

PC5

PC4

PC4

GND

GND

PB5

PB5

PB4

PB4

(PF1)

(PF1)

XTAL32K2

(PF0)

(PF0)

XTAL32K1

DE

BU

GG

ER

AV

R1

28

DB

48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

MVIO

OPAMP

Shared pin

AV

R1

28

DB

48

Cu

rio

sity

Na

no

1

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

2

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

3

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

Xp

lain

ed

Pro

Ext

en

sio

nE

XT

11

2

19

20

Cu

rio

sity

Na

no

Ba

sefo

r cl

ick

bo

ard

sT

M

PD4

PD0

PD6

PD3

PA7

PF5

PA6

PF4

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

PD5

PD1

PF3

PF2

PE2

PB1

PA6

PB0

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

PD7

PD2

PE1

PE0

PE3

PF5

PA6

PF4

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

ID

GND

PD5

PD7

PF3

PE1

PD1

PD2

PF2

PE3

PA2

PA3

PB1

PB0

PE2

PA4

PA5

PA6

GND

+33V

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 37

84 Disconnecting the On-board DebuggerThe on-board debugger and level shifters can be completely disconnected from the AVR128DB48

The block diagram below shows all connections between the debugger and the AVR128DB48 The rounded boxesrepresent connections to the board edge The signal names shown are also printed in silkscreen on the bottom sideof the board

To disconnect the debugger cut the straps shown in Figure 8-6

Attention  Cutting the GPIO straps to the on-board debugger will disable the virtual serial portprogramming debugging and data streaming Cutting the power supply strap will disconnect the on-boardpower supply

Tip  Any connection that is cut can be reconnected using solder Alternatively a 0Ω 0402 resistor can bemounted

Tip  When the debugger is disconnected an external debugger can be connected to holes shown in Figure 8-6 Details about connecting an external debugger are described in 46 Connecting ExternalDebuggers

Figure 8-5  On-Board Debugger Connections Block Diagram

DE

BU

GG

ER

TARGETLevel-Shift

PA04PA06PA07PA08PA16PA00PA01

USB

DIR x 5

VCC_P3V3

VBUS

VC

C_L

EV

EL

VC

C_T

AR

GE

TDBG0DBG1DBG2DBG3CDC TXCDC RX

CDC RX

CDC TX

DBG3

DBG2

DBG1

DBG0

GPIO straps

LDO

VOFF

LDO

VBUS VTG

VCC_EDGE

Power Supply strap Target Power strap

UART RXUART TX

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 38

Figure 8-6 On-Board Debugger Connection Cut Straps

GPIO straps (bottom side) Power Supply strap (top side)

85 Getting Started with IARIAR Embedded Workbenchreg for AVRreg is a proprietary high-efficiency compiler not based on GCC Programming anddebugging of AVR128DB48 Curiosity Nano is supported in IARtrade Embedded Workbench for AVR using the Atmel-ICEinterface Some initial settings must be set up in the project to get the programming and debugging to work

The following steps will explain how to get your project ready for programming and debugging

1 Make sure you have opened the project you want to configure Open the OPTIONS dialog for the project2 In the category General Options select the Target tab Select the device for the project or if not listed the

core of the device as shown in Figure 8-73 In the category Debugger select the Setup tab Select Atmel-ICE as the driver as shown in Figure 8-84 In the category Debugger gt Atmel-ICE select the Atmel-ICE 1 tab Select UPDI as the interface and

optionally select the UPDI frequency as shown in Figure 8-9

Info  If the selection of Debug Port (mentioned in step 4) is grayed out the interface is preselected andthe user can skip this configuration step

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 39

Figure 8-7 Select Target Device

Figure 8-8 Select Debugger

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 40

Figure 8-9 Configure Interface

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 41

The Microchip Website

Microchip provides online support via our website at wwwmicrochipcom This website is used to make files andinformation easily available to customers Some of the content available includes

bull Product Support ndash Data sheets and errata application notes and sample programs design resources userrsquosguides and hardware support documents latest software releases and archived software

bull General Technical Support ndash Frequently Asked Questions (FAQs) technical support requests onlinediscussion groups Microchip design partner program member listing

bull Business of Microchip ndash Product selector and ordering guides latest Microchip press releases listing ofseminars and events listings of Microchip sales offices distributors and factory representatives

Product Change Notification Service

Microchiprsquos product change notification service helps keep customers current on Microchip products Subscribers willreceive email notification whenever there are changes updates revisions or errata related to a specified productfamily or development tool of interest

To register go to wwwmicrochipcompcn and follow the registration instructions

Customer Support

Users of Microchip products can receive assistance through several channels

bull Distributor or Representativebull Local Sales Officebull Embedded Solutions Engineer (ESE)bull Technical Support

Customers should contact their distributor representative or ESE for support Local sales offices are also available tohelp customers A listing of sales offices and locations is included in this document

Technical support is available through the website at wwwmicrochipcomsupport

Microchip Devices Code Protection Feature

Note the following details of the code protection feature on Microchip devices

bull Microchip products meet the specifications contained in their particular Microchip Data Sheetbull Microchip believes that its family of products is secure when used in the intended manner and under normal

conditionsbull There are dishonest and possibly illegal methods being used in attempts to breach the code protection features

of the Microchip devices We believe that these methods require using the Microchip products in a manneroutside the operating specifications contained in Microchiprsquos Data Sheets Attempts to breach these codeprotection features most likely cannot be accomplished without violating Microchiprsquos intellectual property rights

bull Microchip is willing to work with any customer who is concerned about the integrity of its codebull Neither Microchip nor any other semiconductor manufacturer can guarantee the security of its code Code

protection does not mean that we are guaranteeing the product is ldquounbreakablerdquo Code protection is constantlyevolving We at Microchip are committed to continuously improving the code protection features of our productsAttempts to break Microchiprsquos code protection feature may be a violation of the Digital Millennium Copyright ActIf such acts allow unauthorized access to your software or other copyrighted work you may have a right to suefor relief under that Act

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 42

Legal Notice

Information contained in this publication is provided for the sole purpose of designing with and using Microchipproducts Information regarding device applications and the like is provided only for your convenience and may besuperseded by updates It is your responsibility to ensure that your application meets with your specifications

THIS INFORMATION IS PROVIDED BY MICROCHIP ldquoAS ISrdquo MICROCHIP MAKES NO REPRESENTATIONS ORWARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED WRITTEN OR ORAL STATUTORY OROTHERWISE RELATED TO THE INFORMATION INCLUDING BUT NOT LIMITED TO ANY IMPLIEDWARRANTIES OF NON-INFRINGEMENT MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSEOR WARRANTIES RELATED TO ITS CONDITION QUALITY OR PERFORMANCE

IN NO EVENT WILL MICROCHIP BE LIABLE FOR ANY INDIRECT SPECIAL PUNITIVE INCIDENTAL ORCONSEQUENTIAL LOSS DAMAGE COST OR EXPENSE OF ANY KIND WHATSOEVER RELATED TO THEINFORMATION OR ITS USE HOWEVER CAUSED EVEN IF MICROCHIP HAS BEEN ADVISED OF THEPOSSIBILITY OR THE DAMAGES ARE FORESEEABLE TO THE FULLEST EXTENT ALLOWED BY LAWMICROCHIPS TOTAL LIABILITY ON ALL CLAIMS IN ANY WAY RELATED TO THE INFORMATION OR ITS USEWILL NOT EXCEED THE AMOUNT OF FEES IF ANY THAT YOU HAVE PAID DIRECTLY TO MICROCHIP FORTHE INFORMATION Use of Microchip devices in life support andor safety applications is entirely at the buyerrsquos riskand the buyer agrees to defend indemnify and hold harmless Microchip from any and all damages claims suits orexpenses resulting from such use No licenses are conveyed implicitly or otherwise under any Microchip intellectualproperty rights unless otherwise stated

Trademarks

The Microchip name and logo the Microchip logo Adaptec AnyRate AVR AVR logo AVR Freaks BesTimeBitCloud chipKIT chipKIT logo CryptoMemory CryptoRF dsPIC FlashFlex flexPWR HELDO IGLOO JukeBloxKeeLoq Kleer LANCheck LinkMD maXStylus maXTouch MediaLB megaAVR Microsemi Microsemi logo MOSTMOST logo MPLAB OptoLyzer PackeTime PIC picoPower PICSTART PIC32 logo PolarFire Prochip DesignerQTouch SAM-BA SenGenuity SpyNIC SST SST Logo SuperFlash Symmetricom SyncServer TachyonTempTrackr TimeSource tinyAVR UNIO Vectron and XMEGA are registered trademarks of Microchip TechnologyIncorporated in the USA and other countries

APT ClockWorks The Embedded Control Solutions Company EtherSynch FlashTec Hyper Speed ControlHyperLight Load IntelliMOS Libero motorBench mTouch Powermite 3 Precision Edge ProASIC ProASIC PlusProASIC Plus logo Quiet-Wire SmartFusion SyncWorld Temux TimeCesium TimeHub TimePictra TimeProviderVite WinPath and ZL are registered trademarks of Microchip Technology Incorporated in the USA

Adjacent Key Suppression AKS Analog-for-the-Digital Age Any Capacitor AnyIn AnyOut BlueSky BodyComCodeGuard CryptoAuthentication CryptoAutomotive CryptoCompanion CryptoController dsPICDEMdsPICDEMnet Dynamic Average Matching DAM ECAN EtherGREEN In-Circuit Serial Programming ICSPINICnet Inter-Chip Connectivity JitterBlocker KleerNet KleerNet logo memBrain Mindi MiWi MPASM MPFMPLAB Certified logo MPLIB MPLINK MultiTRAK NetDetach Omniscient Code Generation PICDEMPICDEMnet PICkit PICtail PowerSmart PureSilicon QMatrix REAL ICE Ripple Blocker SAM-ICE Serial QuadIO SMART-IS SQI SuperSwitcher SuperSwitcher II Total Endurance TSHARC USBCheck VariSenseViewSpan WiperLock Wireless DNA and ZENA are trademarks of Microchip Technology Incorporated in the USAand other countries

SQTP is a service mark of Microchip Technology Incorporated in the USA

The Adaptec logo Frequency on Demand Silicon Storage Technology and Symmcom are registered trademarks ofMicrochip Technology Inc in other countries

GestIC is a registered trademark of Microchip Technology Germany II GmbH amp Co KG a subsidiary of MicrochipTechnology Inc in other countries

All other trademarks mentioned herein are property of their respective companiescopy 2020 Microchip Technology Incorporated Printed in the USA All Rights Reserved

ISBN 978-1-5224-6667-3

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 43

Quality Management SystemFor information regarding Microchiprsquos Quality Management Systems please visit wwwmicrochipcomquality

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 44

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupportwwwmicrochipcomsupportWeb AddresswwwmicrochipcomAtlantaDuluth GATel 678-957-9614Fax 678-957-1455Austin TXTel 512-257-3370BostonWestborough MATel 774-760-0087Fax 774-760-0088ChicagoItasca ILTel 630-285-0071Fax 630-285-0075DallasAddison TXTel 972-818-7423Fax 972-818-2924DetroitNovi MITel 248-848-4000Houston TXTel 281-894-5983IndianapolisNoblesville INTel 317-773-8323Fax 317-773-5453Tel 317-536-2380Los AngelesMission Viejo CATel 949-462-9523Fax 949-462-9608Tel 951-273-7800Raleigh NCTel 919-844-7510New York NYTel 631-435-6000San Jose CATel 408-735-9110Tel 408-436-4270Canada - TorontoTel 905-695-1980Fax 905-695-2078

Australia - SydneyTel 61-2-9868-6733China - BeijingTel 86-10-8569-7000China - ChengduTel 86-28-8665-5511China - ChongqingTel 86-23-8980-9588China - DongguanTel 86-769-8702-9880China - GuangzhouTel 86-20-8755-8029China - HangzhouTel 86-571-8792-8115China - Hong Kong SARTel 852-2943-5100China - NanjingTel 86-25-8473-2460China - QingdaoTel 86-532-8502-7355China - ShanghaiTel 86-21-3326-8000China - ShenyangTel 86-24-2334-2829China - ShenzhenTel 86-755-8864-2200China - SuzhouTel 86-186-6233-1526China - WuhanTel 86-27-5980-5300China - XianTel 86-29-8833-7252China - XiamenTel 86-592-2388138China - ZhuhaiTel 86-756-3210040

India - BangaloreTel 91-80-3090-4444India - New DelhiTel 91-11-4160-8631India - PuneTel 91-20-4121-0141Japan - OsakaTel 81-6-6152-7160Japan - TokyoTel 81-3-6880- 3770Korea - DaeguTel 82-53-744-4301Korea - SeoulTel 82-2-554-7200Malaysia - Kuala LumpurTel 60-3-7651-7906Malaysia - PenangTel 60-4-227-8870Philippines - ManilaTel 63-2-634-9065SingaporeTel 65-6334-8870Taiwan - Hsin ChuTel 886-3-577-8366Taiwan - KaohsiungTel 886-7-213-7830Taiwan - TaipeiTel 886-2-2508-8600Thailand - BangkokTel 66-2-694-1351Vietnam - Ho Chi MinhTel 84-28-5448-2100

Austria - WelsTel 43-7242-2244-39Fax 43-7242-2244-393Denmark - CopenhagenTel 45-4485-5910Fax 45-4485-2829Finland - EspooTel 358-9-4520-820France - ParisTel 33-1-69-53-63-20Fax 33-1-69-30-90-79Germany - GarchingTel 49-8931-9700Germany - HaanTel 49-2129-3766400Germany - HeilbronnTel 49-7131-72400Germany - KarlsruheTel 49-721-625370Germany - MunichTel 49-89-627-144-0Fax 49-89-627-144-44Germany - RosenheimTel 49-8031-354-560Israel - RarsquoananaTel 972-9-744-7705Italy - MilanTel 39-0331-742611Fax 39-0331-466781Italy - PadovaTel 39-049-7625286Netherlands - DrunenTel 31-416-690399Fax 31-416-690340Norway - TrondheimTel 47-72884388Poland - WarsawTel 48-22-3325737Romania - BucharestTel 40-21-407-87-50Spain - MadridTel 34-91-708-08-90Fax 34-91-708-08-91Sweden - GothenbergTel 46-31-704-60-40Sweden - StockholmTel 46-8-5090-4654UK - WokinghamTel 44-118-921-5800Fax 44-118-921-5820

Worldwide Sales and Service

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 45

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Board Overview
      • 2 Getting Started
        • 21 Quick Start
          • 211 Driver Installation
          • 212 Kit Window
          • 213 MPLABreg X IDE Device Family Packs
          • 214 Atmel Studio 7 Device Family Pack
            • 22 Design Documentation and Relevant Links
              • 3 Preprogrammed Application
              • 4 Curiosity Nano
                • 41 On-Board Debugger Overview
                  • 411 Debugger
                  • 412 Virtual Serial Port (CDC)
                    • 4121 Overview
                    • 4122 Operating System Support
                    • 4123 Limitations
                    • 4124 Signaling
                    • 4125 Advanced Use
                      • 413 Mass Storage Device
                        • 4131 Mass Storage Device Implementation
                        • 4132 Limitations of Drag-and-Drop Programming
                        • 4133 Special Commands
                          • 414 Data Gateway Interface (DGI)
                            • 4141 Debug GPIO
                            • 4142 Timestamping
                                • 42 Curiosity Nano Standard Pinout
                                • 43 Power Supply
                                  • 431 Target Regulator
                                  • 432 External Supply
                                  • 433 VBUS Output Pin
                                  • 434 Power Supply Exceptions
                                    • 44 Low-Power Measurement
                                    • 45 Programming External Microcontrollers
                                      • 451 Supported Devices
                                      • 452 Software Configuration
                                      • 453 Hardware Modifications
                                      • 454 Connecting to External Microcontrollers
                                        • 46 Connecting External Debuggers
                                          • 5 Hardware User Guide
                                            • 51 Connectors
                                              • 511 AVR128DB48 Curiosity Nano Pinout
                                              • 512 Using Pin Headers
                                              • 513 Multi-Voltage IO
                                              • 514 Operational Amplifiers
                                                • 52 Peripherals
                                                  • 521 LED
                                                  • 522 Mechanical Switch
                                                  • 523 32768 kHz Crystal
                                                  • 524 1600 MHz Crystal
                                                  • 525 On-Board Debugger Implementation
                                                    • 5251 On-Board Debugger Connections
                                                      • 6 Hardware Revision History and Known Issues
                                                        • 61 Identifying Product ID and Revision
                                                        • 62 Revision 3
                                                        • 63 Revision 2
                                                          • 7 Document Revision History
                                                          • 8 Appendix
                                                            • 81 Schematic
                                                            • 82 Assembly Drawing
                                                            • 83 Curiosity Nano Base for Click boardstrade
                                                            • 84 Disconnecting the On-board Debugger
                                                            • 85 Getting Started with IAR
                                                              • The Microchip Website
                                                              • Product Change Notification Service
                                                              • Customer Support
                                                              • Microchip Devices Code Protection Feature
                                                              • Legal Notice
                                                              • Trademarks
                                                              • Quality Management System
                                                              • Worldwide Sales and Service
Page 33: AVR128DB48 Curiosity Nano Hardware User Guideww1.microchip.com/downloads/en/DeviceDoc/AVR128DB48-Curiosit… · 4. Curiosity Nano Curiosity Nano is an evaluation platform of small

7 Document Revision HistoryDoc Rev Date Comments

A 092020 Initial document release

AVR128DB48 Curiosity NanoDocument Revision History

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 33

8 Appendix

81 SchematicFigure 8-1 AVR128DB48 Curiosity Nano Schematic

11

22

33

44

55

66

77

88

DD

CC

BB

AA

2 of

4

AV

R12

8DB

48 C

uri

osit

y N

ano

240

820

20A

VR

128D

B48

_Cur

iosi

ty_N

ano_

Targ

et_M

CU

Sch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA

Rev

isio

n

File

P

CB

Num

ber

PC

B

Rev

isio

n

Des

ign

ed w

ith

Dra

wn

By

ML

Shee

t Titl

e

Targ

et M

CU

Eng

inee

rA

H

A08

-305

71

Size

A3

A09

-337

22

Page

D

ateA

ltium

com

GN

D

VD

DIO

2

100n

C20

1

GN

D

PA5_

SPI0

_MIS

OPA

6_SP

I0_S

CK

PA7_

SPI0

_SS

PB0_

USA

RT

3_T

XPB

1_U

SAR

T3_

RX

PB2_

SW0_

DB

G2

PB3_

LE

D0_

DB

G1

PB

4P

B5

PC

0P

C1

PC

2

PC3

PC4PC5PC6PC7PD0_AIN0_TCA0_WO0PD1_AIN1_OP0_INP_TCA0_WO1PD2_AIN2_OP0_OUT_TCA0_WO2PD3_AIN3_OP0_INNPD4_AIN4_OP1_INP

PA3_TWI0_SCL

PA1_XTALHF2

UPDI_DBG0

PF5_USART2_RX

PF3

PF

2PF

1_X

TA

L32

K2

PF0_

XT

AL

32K

1P

E3_

OP

2_IN

NP

E2_

OP

2_O

UT

PE

1_O

P2_

INP

PE

0

PD5_

AIN

5_O

P1_

OU

TPD

6_A

IN6

PD7_

AIN

7_O

P1_

INN

GN

D

VC

C_T

AR

GE

T

100n

C20

2

GN

DV

CC

_TA

RG

ET

100n

C20

0

PF1_XTAL32K2

PF0_XTAL32K1

PA2_TWI0_SDA

PA0_XTALHF1

PF4_USART2_TX

PA4_SPI0_MOSI

GN

D

PA7_

SPI0

_SS

PA6_

SPI0

_SC

KPA

5_SP

I0_M

ISO

PA4_

SPI0

_MO

SIPA

3_T

WI0

_SC

LPA

2_T

WI0

_SD

A

PC

0P

C1

PC

2P

C3

PB

4P

B5

PD7_

AIN

7_O

P1_

INN

PD6_

AIN

6

PD2_

AIN

2_O

P0_

OU

T_T

CA

0_W

O2

PD1_

AIN

1_O

P0_

INP_

TC

A0_

WO

1PD

0_A

IN0_

TC

A0_

WO

0

PD5_

AIN

5_O

P1_

OU

TPD

4_A

IN4_

OP

1_IN

P

PD3_

AIN

3_O

P0_

INN

32K

Hz

Cry

stal

PB0_

USA

RT

3_T

XPB

1_U

SAR

T3_

RX

1kR203

US

ER

LE

D

VC

C_T

AR

GE

T

PF6_DBG3

PB2_SW0_DBG2

PB3_LED0_DBG1

GN

D

USE

R B

UT

TO

N

PB3_

LE

D0_

DB

G1

PB2_

SW0_

DB

G2

PB1_

USA

RT

3_R

XPB

0_U

SAR

T3_

TX

PF4_

USA

RT

2_T

XPF

5_U

SAR

T2_

RX

PF

2P

F3

PC

4P

C5

PC

6P

C7

1kR202

YELLOWLEDSML-D12Y1WT86

2 1

D200

TS604VM1-035CR13

4 2

SW20

0

GN

DV

CC

_ED

GE

GN

DG

ND

GN

DG

ND

UPD

I_D

BG

0P

F6_

DB

G3

J209

PB3_

LE

D0_

DB

G1

PB2_

SW0_

DB

G2

AV

R12

8DB

48

22u

FC

205

VC

C_E

DG

E

GN

D

DBG0

CDC_TXCDC_RX

DBG2

DBG1

DBG3

DBG2

DE

BU

GG

ER

CO

NN

EC

TIO

NS

DBG1

DBG3DBG0

VOFF

ID_SYS

ID_SYS

VOFF

TA

RG

ET

BU

LK

VC

C_T

AR

GE

TR

ESE

T P

ull

VB

US

CD

C R

X3

CD

C T

X4

DB

G1

5

DB

G2

6

0 T

X7

1 R

X8

2 SD

A9

3 S

CL

10

4 M

OSI

11

5 M

ISO

12

6 S

CK

13

7 S

S14

GN

D15

0 (T

X)

16

1 (R

X)

17

218

319

020

GN

D24

DB

G3

54

DB

G0

53

GN

D52

VC

C51

PW

M 3

46

AD

C 2

45

AD

C 1

44

AD

C 0

43

GN

D42

438

434

GN

D33

AD

C 7

50

AD

C 6

49

AD

C 5

48

PW

M 4

47

DE

BU

GG

ER

TAR

GE

T

ID2

VO

FF

55

121

222

323

025

126

227

328

429

530

631

732

535

636

737

539

640

741

RE

SER

VE

D1

VB

US

56

CN

AN

O56

-pin

edg

e co

nnec

tor

J200

J201

J203

J205

J206

J202

J204

PF1_

XT

AL

32K

2PF

0_X

TA

L32

K1

NC

XOUT

XIN

47kR200

AV

R12

8DB

48

UPD

I

GPI

O1

GPI

O0

RE

SET

DB

G0

DB

G1

DB

G2

DB

G3

Deb

ugge

r

CD

C T

X

CD

C R

X

UA

RT

3 R

X

UA

RT

3 T

X

VT

G1

8V -

55

VPB

3

PB

2

PF

6

UP

DI

PB

0

PB

1

Nam

eP

in

PE

3_O

P2_

INN

PE

2_O

P2_

OU

TP

E1_

OP

2_IN

PP

E0

J207

J208

PF

0P

F1

PA5

1

PA6

2

PA7

3

PB0

4

PB1

5

PB2

6

PB3

7

PB4

8

PB5

9

PC0

10

PC1

11

PC2

12

PC313

VDDIO214

GND15

PC416

PC517

PC618

PC719

PD020

PD121

PD222

PD323

PD424

PD5

25

PD6

26

PD7

27

AVDD

28

GND

29

PE0

30

PE1

31

PE2

32

PE3

33

XTAL32K1PF0

34

XTAL32K2PF1

35

PF2

36

PF337

PF438

PF539

PF640

UPDI41

VDD42

GND43

XTALHF1PA044

XTALHF2PA145

PA246

PA347

PA448

AV

R12

8DB

48-I

PT

U20

0

0RR204

GN

D

VC

C_T

AR

GE

T

VDDIO2

GND

J210

J211

82p

C20

48

2pC

203

GN

DG

ND

16M

Hz

Cry

stal

J217

XHFOUT

XHFIN

J214

J213

GN

D

J215

J216

PA0_XTALHF1

PA1_XTALHF2

PA0_

XT

AL

HF

1PA

1_X

TA

LH

F2

PA0

PA1

1 2

J212 N

M

15pF

C20

615

pFC

207

13

24 16

000

MH

zV

XM

7-90

40-1

6M00

0000

0TR

XC

201

GN

D32

768

kHz

VM

K3-

9001

-32K

7680

000T

R

XC

200

CDC_TX

CDC_RX

CD

C_T

XC

DC

_RX

Cry

stal

dat

ashe

et

Ccr

ysta

l = 9

pFm

ax E

SR

= 7

0kO

hmA

ccur

acy

plusmn20p

pm

AV

R48

DB

128

data

shee

tC

xin

= 4

0pF

(ty

pica

l val

ue)

Cxo

ut =

40

pF (

typi

cal v

alue

)C

lasymp1

( (1

40

pF)+

(1

40p

F)

)asymp

20p

FM

axim

um L

oad

= 1

25p

FM

axim

um E

SR =

50k

Ohm

Est

imat

ed C

pcb

= 0

5pF

Est

imat

ed lo

adC

= 2

(C

crys

tal-

Cpa

ra -

Cpc

b)C

= 2

(9p

F -

20

pF -

05

pF)

C =

13

0pF

Sele

cted

in d

esig

n af

ter

veri

fica

tion

C=

82

pF8

2pF

NO

TE

on

UA

RT

CD

C

RX

TX

onth

ehe

ader

deno

tes

the

inpu

tout

put d

irec

tion

of th

e si

gnal

resp

ectiv

e to

its

sou

rce

CD

C T

X is

out

put f

rom

the

DE

BU

GG

ER

C

DC

RX

is in

put t

o th

e D

EB

UG

GE

R

TX

is o

utpu

t fro

m th

e T

AR

GE

T d

evic

eR

X is

inpu

t to

the

TA

RG

ET

dev

ice

NO

TE

on

I2C

No

pull

-ups

on

boar

d P

ull-

ups

shou

ld b

em

ount

ed c

lose

to s

lave

dev

ice(

s)

WA

RN

ING

M

ake

sure

tore

mov

e R

204

befo

reap

plyi

ng p

ower

to J

212

Cry

stal

dat

ashe

et

Ccr

ysta

l = 1

2pF

max

ES

R =

60O

hmA

ccur

acy

plusmn30p

pm

AV

R48

DB

128

data

shee

tC

xin

= 4

0pF

(ty

pica

l val

ue)

Cxo

ut =

40

pF (

typi

cal v

alue

)C

lasymp1

( (1

40

pF)+

(1

40p

F)

)asymp

20p

FM

axim

um L

oad

= 1

25p

FM

axim

um E

SR =

k

Ohm

Est

imat

ed C

pcb

= 0

5pF

Est

imat

ed lo

adC

= 2

(C

crys

tal-

Cpa

ra -

Cpc

b)C

= 2

(12

pF -

20

pF -

05

pF)

C =

19

0pF

Sele

cted

in d

esig

n af

ter

veri

fica

tion

C=

15p

F1

5pF

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 34

11

22

33

44

55

66

77

88

DD

CC

BB

AA

3 of

4

AV

R12

8DB

48 C

uri

osit

y N

ano

2020

-06-

26A

VR

128D

B48

_Cur

iosi

ty_N

ano_

Deb

ugge

rSch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA

Rev

isio

n

Fil

eP

CB

Num

ber

PC

B

Rev

isio

n

Des

ign

ed w

ith

Dra

wn

By

ML

Shee

t Tit

le

Deb

ugge

r

Eng

inee

rA

H

A08

-305

71

Size

A3

A09

-337

22

Page

D

ateA

ltium

com

DE

BU

GG

ER

USB

MIC

RO

-B C

ON

NE

CT

OR

GN

D

USB

D_P

USB

D_N

100n

C10

7

100n

C10

8

1kR

107

VC

C_P

3V3

SRST

STA

TU

S_L

ED

SHIE

LD

VB

US

VC

C_P

3V3

GN

D

TP

100

Test

poin

t Arr

ay

12

34

56

78

910

TC

KT

DO

TM

SV

sup

TD

IG

ND

TR

STSR

STV

Tre

fG

ND

J102

GN

D

47u

F

C10

0

DBG0

DB

G0

21

GR

EE

N L

ED

SML

-P12

MT

T86

R

D10

0

VBUS

1

D-

2

D+

3

GND

5

SHIELD1

6

SHIELD2

7

ID

4

SHIELD3

8

SHIELD4

9 MU

-MB

0142

AB

2-26

9

J105

PAD

33

PA00

1

PA01

2

PA02

3

PA03

4

GND 10VDDANA 9

PA04

5

PA05

6

PA06

7

PA07

8

PA08 11

PA09 12

PA10 13

PA11 14

PA14 15

PA15 16

PA16

17

PA17

18

PA18

19

PA19

20

PA22

21

USB_SOFPA23

22

USB_DMPA24

23

USB_DPPA25

24

PA2725 RESETN26 PA2827 GND28 VDDCORE29 VDDIN30 SWDCLKPA3031 SWDIOPA3132

SAM

D21

E18

A-M

UT

U10

0

VOUT

1

VOUT

2

GND 3

EN

4

VIN

6

NC

5

EP 7

MIC

5528

-33

YM

TU

101

VC

C_P

3V3

GN

D

USB

D_P

USB

D_N

GN

D

1uC

106

VC

C_M

CU

_CO

RE

VC

C_P

3V3

VC

C_P

3V3

22u

FC

101

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

3

VC

C_P

3V3

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

4

VC

C_P

3V3

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

5

VC

C_P

3V3

GN

D

GN

D GN

D

GN

D

VC

C_E

DG

E

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

7

VC

C_P

3V3

GN

DDBG2

DB

G3_

CT

RL

S1_0

_TX

S1_1

_RX

S0_2

_TX

DA

CV

TG

_AD

C

RE

SER

VE

D

S0_3

_CL

K

DBG0_CTRL

CD

C_T

X_C

TR

L

BO

OT

DE

BU

GG

ER

PO

WE

RS

TA

TU

S L

ED

EN

1

BYP

6

VOUT

4

GND

2

VIN

3

NCADJ

5

GND

7

MIC

5353

U10

2

100n

C10

2

GN

D

GN

D

47kR101

27kR104 G

ND

33k

R10

6

22u

F

C10

3 GN

D

1kR

108

J100

VC

C_L

EV

EL

VC

C_R

EG

UL

AT

OR

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

6

VC

C_P

3V3

GN

DDBG1

CD

C_R

X

CD

C_T

X

DBG3

DBG1_CTRL

DE

BU

GG

ER

RE

GU

LA

TO

R

REG_ENABLE

RE

G_E

NA

BL

E

47kR103

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

47kR102

47kR105

SWC

LK

GN

D

47kR100 G

ND

DB

G2

S0_0

_RX

DB

G1_

CT

RL

DB

G0_

CT

RL

DB

G3

OP

EN

DR

AIN

TA

RG

ET

AD

JUST

AB

LE

RE

GU

LA

TO

R

SRST

DE

BU

GG

ER

TE

ST

PO

INT DBG2_CTRL

VO

FF

CD

C_R

X_C

TR

L

47kR109

DB

G1

CD

C_T

X_C

TR

L

CD

C_R

X_C

TR

L

SWC

LK

REG_ADJUST

DBG2_GPIO

DB

G3_

CT

RL

DB

G2_

CT

RL

UP

DI

UPD

I

GPI

O

GPI

O

RE

SET

Sign

al

DB

G0

DB

G1

DB

G2

DB

G3

ICS

PIn

terf

ace

DA

T

CL

K

GPI

O

MC

LR

DB

G3

CD

C T

X

CD

C R

X

UA

RT

RX

UA

RT

TX

UA

RT

RX

UA

RT

TX

TA

RG

ET

TA

RG

ET

1kR

110

VBUS_ADC

1

23

DM

N65

D8L

FB

Q10

1

VC

C-

-

ID_SYS

VOFF

1kR112

VC

C_P

3V3

VT

G_A

DC

DA

C

MIC

9416

3

VIN

B2

VOUT

A1

VIN

A2

EN

C2

GND

C1

VOUT

B1

U10

8

GN

D

ID_S

YS

VT

G_E

N

VTG_EN

VBUS_ADC

SWD

IO

ID_S

YS

TP

101

GN

DSW

DIO

VO

FF

47kR111 G

ND

ID P

IN

MC

3621

3

F10

0

VC

C_V

BU

S

VC

C_V

BU

S

VC

C_V

BU

S

J101

VC

C_T

AR

GE

T

47k

R11

3

CDC_TX

CDC_RX

Prog

ram

min

g co

nnec

tor

for

fact

ory

prog

ram

min

g of

DE

BU

GG

ER

MIC

5528

V

in 2

5V

to 5

5V

Vou

t F

ixed

33

VIm

ax 5

00m

AD

ropo

ut 2

60m

V

500

mA

MIC

5353

V

in 2

6V

to 6

VV

out

12

5V to

51

VIm

ax 5

00m

AD

ropo

ut (

typi

cal)

50m

V

150m

A 1

60m

V

500

mA

Acc

urac

y 2

in

itia

lT

herm

al s

hutd

own

and

curr

ent l

imit

Max

imum

out

put v

olta

ge is

lim

ited

by

the

inpu

t vol

tage

and

the

drop

out v

olta

ge in

the

regu

lato

r(V

max

= V

in -

dro

pout

)

J100

-

Cut

-str

ap u

sed

for

full

sep

arat

ion

of ta

rget

pow

er f

rom

the

leve

l shi

fter

s an

don

-boa

rd r

egul

ator

s-

For

cur

rent

mea

sure

men

ts u

sing

the

on-b

oard

pow

er s

uppl

y th

isst

rap

mus

t be

cut a

nd a

nam

met

er c

onne

cted

acr

oss

- F

or c

urre

nt m

easu

rem

ents

usi

ng a

n ex

tern

al p

ower

sup

ply

this

str

ap c

ould

be

cut f

or m

ore

accu

rate

mea

sure

men

ts L

eaka

ge b

ack

thro

ugh

the

swit

ch is

in th

e m

icro

am

pere

ran

ge

PT

C R

eset

tabl

e fu

se

Hol

d cu

rren

t 5

00m

AT

rip

curr

ent

100

0mA

Adj

usta

ble

outp

ut a

nd li

mit

atio

ns

- T

he D

EB

UG

GE

R c

an a

djus

t the

out

put v

olta

ge o

f th

e re

gula

tor

betw

een

125

V a

nd 5

1V

to th

e ta

rget

-

The

vol

tage

out

put i

s li

mit

ed b

y th

e in

put (

US

B)

whi

ch c

an v

ary

betw

een

440

V to

52

5V-

The

leve

l shi

fter

s ha

ve a

min

imal

vol

tage

leve

l of

165

V a

nd w

ill l

imit

the

min

imum

ope

ratin

g vo

ltage

all

owed

for

the

targ

et to

sti

ll a

llow

com

mun

icat

ion

- T

he M

IC94

163

has

a m

inim

al v

olat

ege

leve

l of

170

V a

nd w

ill l

imit

the

min

imum

vol

tage

del

iver

ed to

the

targ

et

- F

irm

war

e co

nfig

urat

ion

wil

l lim

it th

e vo

ltage

ran

ge to

be

wit

hin

the

the

targ

et s

peci

fica

tion

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 35

82 Assembly DrawingFigure 8-2 AVR128DB48 Curiosity Nano Assembly Drawing Top

+

Cb

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20001 PAC20002 COC200

PAC20101 PAC20102 COC201

PAC20201 PAC20202 COC202 PAC20301

PAC20302 COC203

PAC20401

PAC20402 COC204

PAC20502

PAC20501 COC205

PAC20601

PAC20602 COC206 PAC20701

PAC20702 COC207 PAD10002 PAD10001 COD100

PAD20002

PAD20001 COD200

PAF10002

PAF10001 COF100

PAJ10002 PAJ10001 COJ100

PAJ10101 PAJ10102 COJ101

PAJ10201

PAJ10202

PAJ10203

PAJ10204

PAJ10205

PAJ10206 COJ102

PAJ10506

PAJ10507 PAJ10509

PAJ10508 PAJ105010

PAJ105011 PAJ10505

PAJ10504

PAJ10503

PAJ10502

PAJ10501

PAJ10500

COJ105

PAJ200056 PAJ200053

PAJ200028 PAJ20002 PAJ20001

PAJ200051 PAJ200050 PAJ200052 PAJ200049 PAJ200048 PAJ200047 PAJ200046 PAJ200045 PAJ200044 PAJ200043 PAJ200042 PAJ200041 PAJ200040 PAJ200039 PAJ200038 PAJ200037 PAJ200036 PAJ200035 PAJ200034 PAJ200033 PAJ200032 PAJ200031 PAJ200030 PAJ200029

PAJ20003 PAJ20004 PAJ20005 PAJ20006 PAJ20007 PAJ20008 PAJ20009 PAJ200010 PAJ200011 PAJ200012 PAJ200013 PAJ200014 PAJ200015 PAJ200016 PAJ200017 PAJ200018 PAJ200019 PAJ200020 PAJ200021 PAJ200022 PAJ200023 PAJ200026 PAJ200025 PAJ200024 PAJ200027

PAJ200054 PAJ200055 PAJ20000

COJ200

PAJ20102 PAJ20101 COJ201

PAJ20202 PAJ20201 COJ202

PAJ20302 PAJ20301 COJ203

PAJ20402 PAJ20401 COJ204

PAJ20502 PAJ20501 COJ205

PAJ20602 PAJ20601 COJ206 PAJ20702 PAJ20701 COJ207

PAJ20802 PAJ20801 COJ208

PAJ20902 PAJ20901 COJ209

PAJ21001 PAJ21002 PAJ21005 COJ210

PAJ21102 PAJ21101 PAJ21105 COJ211

PAJ21202 PAJ21201 COJ212

PAJ21301 PAJ21302 PAJ21305 COJ213

PAJ21401 PAJ21402 PAJ21405 COJ214

PAJ21502 PAJ21501 COJ215

PAJ21602 PAJ21601 COJ216 PAJ21702 PAJ21701 COJ217

COLABEL1

PAQ10101 PAQ10102 PAQ10103 PAQ10100

COQ101 PAR10002

PAR10001 COR100 PAR10101 PAR10102 COR101

PAR10202 PAR10201 COR102

PAR10302 PAR10301 COR103

PAR10401 PAR10402 COR104

PAR10502

PAR10501 COR105

PAR10601 PAR10602 COR106

PAR10702 PAR10701 COR107

PAR10801

PAR10802 COR108

PAR10901 PAR10902 COR109

PAR11001 PAR11002 COR110

PAR11101 PAR11102 COR111

PAR11201 PAR11202 COR112

PAR11302 PAR11301 COR113

PAR20001 PAR20002 COR200 PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203 PAR20401 PAR20402 COR204

PASW20003

PASW20004 PASW20002

PASW20001 COSW200

PATP10001 COTP100

PATP10101 COTP101 PAU100033

PAU100032 PAU100031 PAU100030 PAU100029 PAU100028 PAU100027 PAU100026 PAU100025 PAU100024

PAU100023

PAU100022

PAU100021

PAU100020

PAU100019

PAU100018

PAU100017 PAU100016 PAU100015 PAU100014 PAU100013 PAU100012 PAU100011 PAU100010

PAU10001

PAU10002

PAU10003

PAU10004

PAU10005

PAU10006

PAU10007

PAU10008 PAU10009

COU100

PAU10107

PAU10104 PAU10105 PAU10106

PAU10103 PAU10102 PAU10101 PAU10100 COU101 PAU10207

PAU10204 PAU10205

PAU10206

PAU10203 PAU10202

PAU10201

COU102

PAU10306

PAU10305 PAU10304 PAU10303

PAU10302 PAU10301 PAU10300

COU103

PAU10406

PAU10405 PAU10404 PAU10403

PAU10402 PAU10401 PAU10400

COU104

PAU10506

PAU10505 PAU10504 PAU10503

PAU10502 PAU10501 PAU10500

COU105

PAU10606

PAU10605 PAU10604 PAU10603

PAU10602 PAU10601 PAU10600

COU106

PAU10706

PAU10705 PAU10704 PAU10703

PAU10702 PAU10701 PAU10700

COU107

PAU1080A1 PAU1080A2

PAU1080B1 PAU1080B2

PAU1080C1 PAU1080C2 COU108

PAU20001 PAU20002 PAU20003 PAU20004 PAU20005 PAU20006 PAU20007 PAU20008 PAU20009 PAU200010 PAU200011 PAU200012 PAU200013 PAU200014 PAU200015 PAU200016 PAU200017 PAU200018 PAU200019 PAU200020 PAU200021 PAU200022 PAU200023 PAU200024 PAU200025 PAU200026 PAU200027 PAU200028 PAU200029 PAU200030 PAU200031 PAU200032 PAU200033 PAU200034 PAU200035 PAU200036

PAU200037 PAU200038 PAU200039 PAU200040 PAU200041 PAU200042 PAU200043 PAU200044 PAU200045 PAU200046 PAU200047 PAU200048

COU200

PAXC20001

PAXC20002 COXC200

PAXC20101 PAXC20102

PAXC20103 PAXC20104 COXC201

Figure 8-3 AVR128DB48 Curiosity Nano Assembly Drawing Bottom

tcR

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20001 PAC20002 COC200

PAC20101 PAC20102 COC201

PAC20201 PAC20202 COC202 PAC20301

PAC20302 COC203

PAC20401

PAC20402 COC204

PAC20502

PAC20501 COC205

PAC20601

PAC20602 COC206 PAC20701

PAC20702 COC207 PAD10002 PAD10001 COD100

PAD20002

PAD20001 COD200

PAF10002

PAF10001 COF100

PAJ10002 PAJ10001 COJ100

PAJ10101 PAJ10102 COJ101

PAJ10201

PAJ10202

PAJ10203

PAJ10204

PAJ10205

PAJ10206 COJ102

PAJ10506

PAJ10507 PAJ10509

PAJ10508 PAJ105010

PAJ105011 PAJ10505

PAJ10504

PAJ10503

PAJ10502

PAJ10501

PAJ10500

COJ105

PAJ200056 PAJ200053

PAJ200028 PAJ20002 PAJ20001

PAJ200051 PAJ200050 PAJ200052 PAJ200049 PAJ200048 PAJ200047 PAJ200046 PAJ200045 PAJ200044 PAJ200043 PAJ200042 PAJ200041 PAJ200040 PAJ200039 PAJ200038 PAJ200037 PAJ200036 PAJ200035 PAJ200034 PAJ200033 PAJ200032 PAJ200031 PAJ200030 PAJ200029

PAJ20003 PAJ20004 PAJ20005 PAJ20006 PAJ20007 PAJ20008 PAJ20009 PAJ200010 PAJ200011 PAJ200012 PAJ200013 PAJ200014 PAJ200015 PAJ200016 PAJ200017 PAJ200018 PAJ200019 PAJ200020 PAJ200021 PAJ200022 PAJ200023 PAJ200026 PAJ200025 PAJ200024 PAJ200027

PAJ200054 PAJ200055 PAJ20000

COJ200

PAJ20102 PAJ20101 COJ201

PAJ20202 PAJ20201 COJ202

PAJ20302 PAJ20301 COJ203

PAJ20402 PAJ20401 COJ204

PAJ20502 PAJ20501 COJ205

PAJ20602 PAJ20601 COJ206 PAJ20702 PAJ20701 COJ207

PAJ20802 PAJ20801 COJ208

PAJ20902 PAJ20901 COJ209

PAJ21001 PAJ21002 PAJ21005 COJ210

PAJ21102 PAJ21101 PAJ21105 COJ211

PAJ21202 PAJ21201 COJ212

PAJ21301 PAJ21302 PAJ21305 COJ213

PAJ21401 PAJ21402 PAJ21405 COJ214

PAJ21502 PAJ21501 COJ215

PAJ21602 PAJ21601 COJ216 PAJ21702 PAJ21701 COJ217

COLABEL1

PAQ10101 PAQ10102 PAQ10103 PAQ10100

COQ101 PAR10002

PAR10001 COR100 PAR10101 PAR10102 COR101

PAR10202 PAR10201 COR102

PAR10302 PAR10301 COR103

PAR10401 PAR10402 COR104

PAR10502

PAR10501 COR105

PAR10601 PAR10602 COR106

PAR10702 PAR10701 COR107

PAR10801

PAR10802 COR108

PAR10901 PAR10902 COR109

PAR11001 PAR11002 COR110

PAR11101 PAR11102 COR111

PAR11201 PAR11202 COR112

PAR11302 PAR11301 COR113

PAR20001 PAR20002 COR200 PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203 PAR20401 PAR20402 COR204

PASW20003

PASW20004 PASW20002

PASW20001 COSW200

PATP10001 COTP100

PATP10101 COTP101 PAU100033

PAU100032 PAU100031 PAU100030 PAU100029 PAU100028 PAU100027 PAU100026 PAU100025 PAU100024

PAU100023

PAU100022

PAU100021

PAU100020

PAU100019

PAU100018

PAU100017 PAU100016 PAU100015 PAU100014 PAU100013 PAU100012 PAU100011 PAU100010

PAU10001

PAU10002

PAU10003

PAU10004

PAU10005

PAU10006

PAU10007

PAU10008 PAU10009

COU100

PAU10107

PAU10104 PAU10105 PAU10106

PAU10103 PAU10102 PAU10101 PAU10100 COU101 PAU10207

PAU10204 PAU10205

PAU10206

PAU10203 PAU10202

PAU10201

COU102

PAU10306

PAU10305 PAU10304 PAU10303

PAU10302 PAU10301 PAU10300

COU103

PAU10406

PAU10405 PAU10404 PAU10403

PAU10402 PAU10401 PAU10400

COU104

PAU10506

PAU10505 PAU10504 PAU10503

PAU10502 PAU10501 PAU10500

COU105

PAU10606

PAU10605 PAU10604 PAU10603

PAU10602 PAU10601 PAU10600

COU106

PAU10706

PAU10705 PAU10704 PAU10703

PAU10702 PAU10701 PAU10700

COU107

PAU1080A1 PAU1080A2

PAU1080B1 PAU1080B2

PAU1080C1 PAU1080C2 COU108

PAU20001 PAU20002 PAU20003 PAU20004 PAU20005 PAU20006 PAU20007 PAU20008 PAU20009 PAU200010 PAU200011 PAU200012 PAU200013 PAU200014 PAU200015 PAU200016 PAU200017 PAU200018 PAU200019 PAU200020 PAU200021 PAU200022 PAU200023 PAU200024 PAU200025 PAU200026 PAU200027 PAU200028 PAU200029 PAU200030 PAU200031 PAU200032 PAU200033 PAU200034 PAU200035 PAU200036

PAU200037 PAU200038 PAU200039 PAU200040 PAU200041 PAU200042 PAU200043 PAU200044 PAU200045 PAU200046 PAU200047 PAU200048

COU200

PAXC20001

PAXC20002 COXC200

PAXC20101 PAXC20102

PAXC20103 PAXC20104 COXC201

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 36

83 Curiosity Nano Base for Click boardstrade

Figure 8-4 AVR128DB48 Curiosity Nano Pinout Mapping

US

B

DE

BU

GG

ER

AV

R1

28

DB

48

SW

0

LE

D0

PS

LE

DNC

NC

ID

ID

CDC RX

CDCRX

USART3 TX

PB0

CDC TX

CDCTX

USART3 RX

PB1

DBG1

DBG1

PB3

LED0

DBG2

DBG2

PB2

SW0

PF4

PF4

USART2 TX

PF5

PF5

USART2 RX

PA2

PA2

TWI0 SDA

PA3

PA3

TWI0 SCL

PA4

PA4

SPI0 MOSI

PA5

PA5

SPI0 MISO

PA6

PA6

SPI0 SCK

PA7

PA7

SPI0 SS

GND

GND

PB0

PB0

USART3 TX

CDC RX

PB1

PB1

USART3 RX

CDC TX

PF2

PF2

PF3

PF3

PC0

PC0

PC1

PC1

PC2

PC2

PC3

PC3

GND

GND

(PA0)

(PA0)

XTALHF1

(PA1)

(PA1)

XTALHF2

PB2

PB2

SW0

PB3

PB3

LED0

VBUS

VBUS

VOFF

VOFF

DBG3

DBG3

PF6

DBG0

DBG0

UPDI

GND

GND

VTG

VTG

PD6

PD6

AIN6

PD3

PD3

AIN3

OP0 INN

PD2

PD2

AIN2

OP0 OUT

TCA0 WO2

PD1

PD1

AIN1

OP0 INP

TCA0 WO1

PD0

PD0

AIN0

TCA0 WO0

PD7

PD7

AIN7

OP1 INN

PD5

PD5

AIN5

OP1 OUT

PD4

PD4

AIN4

OP1 INP

GND

GND

PE3

PE3

OP2 INN

PE2

PE2

OP2 OUT

PE1

PE1

OP2 INP

PE0

PE0

PC7

PC7

PC6

PC6

PC5

PC5

PC4

PC4

GND

GND

PB5

PB5

PB4

PB4

(PF1)

(PF1)

XTAL32K2

(PF0)

(PF0)

XTAL32K1

DE

BU

GG

ER

AV

R1

28

DB

48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

MVIO

OPAMP

Shared pin

AV

R1

28

DB

48

Cu

rio

sity

Na

no

1

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

2

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

3

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

Xp

lain

ed

Pro

Ext

en

sio

nE

XT

11

2

19

20

Cu

rio

sity

Na

no

Ba

sefo

r cl

ick

bo

ard

sT

M

PD4

PD0

PD6

PD3

PA7

PF5

PA6

PF4

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

PD5

PD1

PF3

PF2

PE2

PB1

PA6

PB0

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

PD7

PD2

PE1

PE0

PE3

PF5

PA6

PF4

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

ID

GND

PD5

PD7

PF3

PE1

PD1

PD2

PF2

PE3

PA2

PA3

PB1

PB0

PE2

PA4

PA5

PA6

GND

+33V

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 37

84 Disconnecting the On-board DebuggerThe on-board debugger and level shifters can be completely disconnected from the AVR128DB48

The block diagram below shows all connections between the debugger and the AVR128DB48 The rounded boxesrepresent connections to the board edge The signal names shown are also printed in silkscreen on the bottom sideof the board

To disconnect the debugger cut the straps shown in Figure 8-6

Attention  Cutting the GPIO straps to the on-board debugger will disable the virtual serial portprogramming debugging and data streaming Cutting the power supply strap will disconnect the on-boardpower supply

Tip  Any connection that is cut can be reconnected using solder Alternatively a 0Ω 0402 resistor can bemounted

Tip  When the debugger is disconnected an external debugger can be connected to holes shown in Figure 8-6 Details about connecting an external debugger are described in 46 Connecting ExternalDebuggers

Figure 8-5  On-Board Debugger Connections Block Diagram

DE

BU

GG

ER

TARGETLevel-Shift

PA04PA06PA07PA08PA16PA00PA01

USB

DIR x 5

VCC_P3V3

VBUS

VC

C_L

EV

EL

VC

C_T

AR

GE

TDBG0DBG1DBG2DBG3CDC TXCDC RX

CDC RX

CDC TX

DBG3

DBG2

DBG1

DBG0

GPIO straps

LDO

VOFF

LDO

VBUS VTG

VCC_EDGE

Power Supply strap Target Power strap

UART RXUART TX

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 38

Figure 8-6 On-Board Debugger Connection Cut Straps

GPIO straps (bottom side) Power Supply strap (top side)

85 Getting Started with IARIAR Embedded Workbenchreg for AVRreg is a proprietary high-efficiency compiler not based on GCC Programming anddebugging of AVR128DB48 Curiosity Nano is supported in IARtrade Embedded Workbench for AVR using the Atmel-ICEinterface Some initial settings must be set up in the project to get the programming and debugging to work

The following steps will explain how to get your project ready for programming and debugging

1 Make sure you have opened the project you want to configure Open the OPTIONS dialog for the project2 In the category General Options select the Target tab Select the device for the project or if not listed the

core of the device as shown in Figure 8-73 In the category Debugger select the Setup tab Select Atmel-ICE as the driver as shown in Figure 8-84 In the category Debugger gt Atmel-ICE select the Atmel-ICE 1 tab Select UPDI as the interface and

optionally select the UPDI frequency as shown in Figure 8-9

Info  If the selection of Debug Port (mentioned in step 4) is grayed out the interface is preselected andthe user can skip this configuration step

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 39

Figure 8-7 Select Target Device

Figure 8-8 Select Debugger

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 40

Figure 8-9 Configure Interface

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 41

The Microchip Website

Microchip provides online support via our website at wwwmicrochipcom This website is used to make files andinformation easily available to customers Some of the content available includes

bull Product Support ndash Data sheets and errata application notes and sample programs design resources userrsquosguides and hardware support documents latest software releases and archived software

bull General Technical Support ndash Frequently Asked Questions (FAQs) technical support requests onlinediscussion groups Microchip design partner program member listing

bull Business of Microchip ndash Product selector and ordering guides latest Microchip press releases listing ofseminars and events listings of Microchip sales offices distributors and factory representatives

Product Change Notification Service

Microchiprsquos product change notification service helps keep customers current on Microchip products Subscribers willreceive email notification whenever there are changes updates revisions or errata related to a specified productfamily or development tool of interest

To register go to wwwmicrochipcompcn and follow the registration instructions

Customer Support

Users of Microchip products can receive assistance through several channels

bull Distributor or Representativebull Local Sales Officebull Embedded Solutions Engineer (ESE)bull Technical Support

Customers should contact their distributor representative or ESE for support Local sales offices are also available tohelp customers A listing of sales offices and locations is included in this document

Technical support is available through the website at wwwmicrochipcomsupport

Microchip Devices Code Protection Feature

Note the following details of the code protection feature on Microchip devices

bull Microchip products meet the specifications contained in their particular Microchip Data Sheetbull Microchip believes that its family of products is secure when used in the intended manner and under normal

conditionsbull There are dishonest and possibly illegal methods being used in attempts to breach the code protection features

of the Microchip devices We believe that these methods require using the Microchip products in a manneroutside the operating specifications contained in Microchiprsquos Data Sheets Attempts to breach these codeprotection features most likely cannot be accomplished without violating Microchiprsquos intellectual property rights

bull Microchip is willing to work with any customer who is concerned about the integrity of its codebull Neither Microchip nor any other semiconductor manufacturer can guarantee the security of its code Code

protection does not mean that we are guaranteeing the product is ldquounbreakablerdquo Code protection is constantlyevolving We at Microchip are committed to continuously improving the code protection features of our productsAttempts to break Microchiprsquos code protection feature may be a violation of the Digital Millennium Copyright ActIf such acts allow unauthorized access to your software or other copyrighted work you may have a right to suefor relief under that Act

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 42

Legal Notice

Information contained in this publication is provided for the sole purpose of designing with and using Microchipproducts Information regarding device applications and the like is provided only for your convenience and may besuperseded by updates It is your responsibility to ensure that your application meets with your specifications

THIS INFORMATION IS PROVIDED BY MICROCHIP ldquoAS ISrdquo MICROCHIP MAKES NO REPRESENTATIONS ORWARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED WRITTEN OR ORAL STATUTORY OROTHERWISE RELATED TO THE INFORMATION INCLUDING BUT NOT LIMITED TO ANY IMPLIEDWARRANTIES OF NON-INFRINGEMENT MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSEOR WARRANTIES RELATED TO ITS CONDITION QUALITY OR PERFORMANCE

IN NO EVENT WILL MICROCHIP BE LIABLE FOR ANY INDIRECT SPECIAL PUNITIVE INCIDENTAL ORCONSEQUENTIAL LOSS DAMAGE COST OR EXPENSE OF ANY KIND WHATSOEVER RELATED TO THEINFORMATION OR ITS USE HOWEVER CAUSED EVEN IF MICROCHIP HAS BEEN ADVISED OF THEPOSSIBILITY OR THE DAMAGES ARE FORESEEABLE TO THE FULLEST EXTENT ALLOWED BY LAWMICROCHIPS TOTAL LIABILITY ON ALL CLAIMS IN ANY WAY RELATED TO THE INFORMATION OR ITS USEWILL NOT EXCEED THE AMOUNT OF FEES IF ANY THAT YOU HAVE PAID DIRECTLY TO MICROCHIP FORTHE INFORMATION Use of Microchip devices in life support andor safety applications is entirely at the buyerrsquos riskand the buyer agrees to defend indemnify and hold harmless Microchip from any and all damages claims suits orexpenses resulting from such use No licenses are conveyed implicitly or otherwise under any Microchip intellectualproperty rights unless otherwise stated

Trademarks

The Microchip name and logo the Microchip logo Adaptec AnyRate AVR AVR logo AVR Freaks BesTimeBitCloud chipKIT chipKIT logo CryptoMemory CryptoRF dsPIC FlashFlex flexPWR HELDO IGLOO JukeBloxKeeLoq Kleer LANCheck LinkMD maXStylus maXTouch MediaLB megaAVR Microsemi Microsemi logo MOSTMOST logo MPLAB OptoLyzer PackeTime PIC picoPower PICSTART PIC32 logo PolarFire Prochip DesignerQTouch SAM-BA SenGenuity SpyNIC SST SST Logo SuperFlash Symmetricom SyncServer TachyonTempTrackr TimeSource tinyAVR UNIO Vectron and XMEGA are registered trademarks of Microchip TechnologyIncorporated in the USA and other countries

APT ClockWorks The Embedded Control Solutions Company EtherSynch FlashTec Hyper Speed ControlHyperLight Load IntelliMOS Libero motorBench mTouch Powermite 3 Precision Edge ProASIC ProASIC PlusProASIC Plus logo Quiet-Wire SmartFusion SyncWorld Temux TimeCesium TimeHub TimePictra TimeProviderVite WinPath and ZL are registered trademarks of Microchip Technology Incorporated in the USA

Adjacent Key Suppression AKS Analog-for-the-Digital Age Any Capacitor AnyIn AnyOut BlueSky BodyComCodeGuard CryptoAuthentication CryptoAutomotive CryptoCompanion CryptoController dsPICDEMdsPICDEMnet Dynamic Average Matching DAM ECAN EtherGREEN In-Circuit Serial Programming ICSPINICnet Inter-Chip Connectivity JitterBlocker KleerNet KleerNet logo memBrain Mindi MiWi MPASM MPFMPLAB Certified logo MPLIB MPLINK MultiTRAK NetDetach Omniscient Code Generation PICDEMPICDEMnet PICkit PICtail PowerSmart PureSilicon QMatrix REAL ICE Ripple Blocker SAM-ICE Serial QuadIO SMART-IS SQI SuperSwitcher SuperSwitcher II Total Endurance TSHARC USBCheck VariSenseViewSpan WiperLock Wireless DNA and ZENA are trademarks of Microchip Technology Incorporated in the USAand other countries

SQTP is a service mark of Microchip Technology Incorporated in the USA

The Adaptec logo Frequency on Demand Silicon Storage Technology and Symmcom are registered trademarks ofMicrochip Technology Inc in other countries

GestIC is a registered trademark of Microchip Technology Germany II GmbH amp Co KG a subsidiary of MicrochipTechnology Inc in other countries

All other trademarks mentioned herein are property of their respective companiescopy 2020 Microchip Technology Incorporated Printed in the USA All Rights Reserved

ISBN 978-1-5224-6667-3

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 43

Quality Management SystemFor information regarding Microchiprsquos Quality Management Systems please visit wwwmicrochipcomquality

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 44

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupportwwwmicrochipcomsupportWeb AddresswwwmicrochipcomAtlantaDuluth GATel 678-957-9614Fax 678-957-1455Austin TXTel 512-257-3370BostonWestborough MATel 774-760-0087Fax 774-760-0088ChicagoItasca ILTel 630-285-0071Fax 630-285-0075DallasAddison TXTel 972-818-7423Fax 972-818-2924DetroitNovi MITel 248-848-4000Houston TXTel 281-894-5983IndianapolisNoblesville INTel 317-773-8323Fax 317-773-5453Tel 317-536-2380Los AngelesMission Viejo CATel 949-462-9523Fax 949-462-9608Tel 951-273-7800Raleigh NCTel 919-844-7510New York NYTel 631-435-6000San Jose CATel 408-735-9110Tel 408-436-4270Canada - TorontoTel 905-695-1980Fax 905-695-2078

Australia - SydneyTel 61-2-9868-6733China - BeijingTel 86-10-8569-7000China - ChengduTel 86-28-8665-5511China - ChongqingTel 86-23-8980-9588China - DongguanTel 86-769-8702-9880China - GuangzhouTel 86-20-8755-8029China - HangzhouTel 86-571-8792-8115China - Hong Kong SARTel 852-2943-5100China - NanjingTel 86-25-8473-2460China - QingdaoTel 86-532-8502-7355China - ShanghaiTel 86-21-3326-8000China - ShenyangTel 86-24-2334-2829China - ShenzhenTel 86-755-8864-2200China - SuzhouTel 86-186-6233-1526China - WuhanTel 86-27-5980-5300China - XianTel 86-29-8833-7252China - XiamenTel 86-592-2388138China - ZhuhaiTel 86-756-3210040

India - BangaloreTel 91-80-3090-4444India - New DelhiTel 91-11-4160-8631India - PuneTel 91-20-4121-0141Japan - OsakaTel 81-6-6152-7160Japan - TokyoTel 81-3-6880- 3770Korea - DaeguTel 82-53-744-4301Korea - SeoulTel 82-2-554-7200Malaysia - Kuala LumpurTel 60-3-7651-7906Malaysia - PenangTel 60-4-227-8870Philippines - ManilaTel 63-2-634-9065SingaporeTel 65-6334-8870Taiwan - Hsin ChuTel 886-3-577-8366Taiwan - KaohsiungTel 886-7-213-7830Taiwan - TaipeiTel 886-2-2508-8600Thailand - BangkokTel 66-2-694-1351Vietnam - Ho Chi MinhTel 84-28-5448-2100

Austria - WelsTel 43-7242-2244-39Fax 43-7242-2244-393Denmark - CopenhagenTel 45-4485-5910Fax 45-4485-2829Finland - EspooTel 358-9-4520-820France - ParisTel 33-1-69-53-63-20Fax 33-1-69-30-90-79Germany - GarchingTel 49-8931-9700Germany - HaanTel 49-2129-3766400Germany - HeilbronnTel 49-7131-72400Germany - KarlsruheTel 49-721-625370Germany - MunichTel 49-89-627-144-0Fax 49-89-627-144-44Germany - RosenheimTel 49-8031-354-560Israel - RarsquoananaTel 972-9-744-7705Italy - MilanTel 39-0331-742611Fax 39-0331-466781Italy - PadovaTel 39-049-7625286Netherlands - DrunenTel 31-416-690399Fax 31-416-690340Norway - TrondheimTel 47-72884388Poland - WarsawTel 48-22-3325737Romania - BucharestTel 40-21-407-87-50Spain - MadridTel 34-91-708-08-90Fax 34-91-708-08-91Sweden - GothenbergTel 46-31-704-60-40Sweden - StockholmTel 46-8-5090-4654UK - WokinghamTel 44-118-921-5800Fax 44-118-921-5820

Worldwide Sales and Service

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 45

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Board Overview
      • 2 Getting Started
        • 21 Quick Start
          • 211 Driver Installation
          • 212 Kit Window
          • 213 MPLABreg X IDE Device Family Packs
          • 214 Atmel Studio 7 Device Family Pack
            • 22 Design Documentation and Relevant Links
              • 3 Preprogrammed Application
              • 4 Curiosity Nano
                • 41 On-Board Debugger Overview
                  • 411 Debugger
                  • 412 Virtual Serial Port (CDC)
                    • 4121 Overview
                    • 4122 Operating System Support
                    • 4123 Limitations
                    • 4124 Signaling
                    • 4125 Advanced Use
                      • 413 Mass Storage Device
                        • 4131 Mass Storage Device Implementation
                        • 4132 Limitations of Drag-and-Drop Programming
                        • 4133 Special Commands
                          • 414 Data Gateway Interface (DGI)
                            • 4141 Debug GPIO
                            • 4142 Timestamping
                                • 42 Curiosity Nano Standard Pinout
                                • 43 Power Supply
                                  • 431 Target Regulator
                                  • 432 External Supply
                                  • 433 VBUS Output Pin
                                  • 434 Power Supply Exceptions
                                    • 44 Low-Power Measurement
                                    • 45 Programming External Microcontrollers
                                      • 451 Supported Devices
                                      • 452 Software Configuration
                                      • 453 Hardware Modifications
                                      • 454 Connecting to External Microcontrollers
                                        • 46 Connecting External Debuggers
                                          • 5 Hardware User Guide
                                            • 51 Connectors
                                              • 511 AVR128DB48 Curiosity Nano Pinout
                                              • 512 Using Pin Headers
                                              • 513 Multi-Voltage IO
                                              • 514 Operational Amplifiers
                                                • 52 Peripherals
                                                  • 521 LED
                                                  • 522 Mechanical Switch
                                                  • 523 32768 kHz Crystal
                                                  • 524 1600 MHz Crystal
                                                  • 525 On-Board Debugger Implementation
                                                    • 5251 On-Board Debugger Connections
                                                      • 6 Hardware Revision History and Known Issues
                                                        • 61 Identifying Product ID and Revision
                                                        • 62 Revision 3
                                                        • 63 Revision 2
                                                          • 7 Document Revision History
                                                          • 8 Appendix
                                                            • 81 Schematic
                                                            • 82 Assembly Drawing
                                                            • 83 Curiosity Nano Base for Click boardstrade
                                                            • 84 Disconnecting the On-board Debugger
                                                            • 85 Getting Started with IAR
                                                              • The Microchip Website
                                                              • Product Change Notification Service
                                                              • Customer Support
                                                              • Microchip Devices Code Protection Feature
                                                              • Legal Notice
                                                              • Trademarks
                                                              • Quality Management System
                                                              • Worldwide Sales and Service
Page 34: AVR128DB48 Curiosity Nano Hardware User Guideww1.microchip.com/downloads/en/DeviceDoc/AVR128DB48-Curiosit… · 4. Curiosity Nano Curiosity Nano is an evaluation platform of small

8 Appendix

81 SchematicFigure 8-1 AVR128DB48 Curiosity Nano Schematic

11

22

33

44

55

66

77

88

DD

CC

BB

AA

2 of

4

AV

R12

8DB

48 C

uri

osit

y N

ano

240

820

20A

VR

128D

B48

_Cur

iosi

ty_N

ano_

Targ

et_M

CU

Sch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA

Rev

isio

n

File

P

CB

Num

ber

PC

B

Rev

isio

n

Des

ign

ed w

ith

Dra

wn

By

ML

Shee

t Titl

e

Targ

et M

CU

Eng

inee

rA

H

A08

-305

71

Size

A3

A09

-337

22

Page

D

ateA

ltium

com

GN

D

VD

DIO

2

100n

C20

1

GN

D

PA5_

SPI0

_MIS

OPA

6_SP

I0_S

CK

PA7_

SPI0

_SS

PB0_

USA

RT

3_T

XPB

1_U

SAR

T3_

RX

PB2_

SW0_

DB

G2

PB3_

LE

D0_

DB

G1

PB

4P

B5

PC

0P

C1

PC

2

PC3

PC4PC5PC6PC7PD0_AIN0_TCA0_WO0PD1_AIN1_OP0_INP_TCA0_WO1PD2_AIN2_OP0_OUT_TCA0_WO2PD3_AIN3_OP0_INNPD4_AIN4_OP1_INP

PA3_TWI0_SCL

PA1_XTALHF2

UPDI_DBG0

PF5_USART2_RX

PF3

PF

2PF

1_X

TA

L32

K2

PF0_

XT

AL

32K

1P

E3_

OP

2_IN

NP

E2_

OP

2_O

UT

PE

1_O

P2_

INP

PE

0

PD5_

AIN

5_O

P1_

OU

TPD

6_A

IN6

PD7_

AIN

7_O

P1_

INN

GN

D

VC

C_T

AR

GE

T

100n

C20

2

GN

DV

CC

_TA

RG

ET

100n

C20

0

PF1_XTAL32K2

PF0_XTAL32K1

PA2_TWI0_SDA

PA0_XTALHF1

PF4_USART2_TX

PA4_SPI0_MOSI

GN

D

PA7_

SPI0

_SS

PA6_

SPI0

_SC

KPA

5_SP

I0_M

ISO

PA4_

SPI0

_MO

SIPA

3_T

WI0

_SC

LPA

2_T

WI0

_SD

A

PC

0P

C1

PC

2P

C3

PB

4P

B5

PD7_

AIN

7_O

P1_

INN

PD6_

AIN

6

PD2_

AIN

2_O

P0_

OU

T_T

CA

0_W

O2

PD1_

AIN

1_O

P0_

INP_

TC

A0_

WO

1PD

0_A

IN0_

TC

A0_

WO

0

PD5_

AIN

5_O

P1_

OU

TPD

4_A

IN4_

OP

1_IN

P

PD3_

AIN

3_O

P0_

INN

32K

Hz

Cry

stal

PB0_

USA

RT

3_T

XPB

1_U

SAR

T3_

RX

1kR203

US

ER

LE

D

VC

C_T

AR

GE

T

PF6_DBG3

PB2_SW0_DBG2

PB3_LED0_DBG1

GN

D

USE

R B

UT

TO

N

PB3_

LE

D0_

DB

G1

PB2_

SW0_

DB

G2

PB1_

USA

RT

3_R

XPB

0_U

SAR

T3_

TX

PF4_

USA

RT

2_T

XPF

5_U

SAR

T2_

RX

PF

2P

F3

PC

4P

C5

PC

6P

C7

1kR202

YELLOWLEDSML-D12Y1WT86

2 1

D200

TS604VM1-035CR13

4 2

SW20

0

GN

DV

CC

_ED

GE

GN

DG

ND

GN

DG

ND

UPD

I_D

BG

0P

F6_

DB

G3

J209

PB3_

LE

D0_

DB

G1

PB2_

SW0_

DB

G2

AV

R12

8DB

48

22u

FC

205

VC

C_E

DG

E

GN

D

DBG0

CDC_TXCDC_RX

DBG2

DBG1

DBG3

DBG2

DE

BU

GG

ER

CO

NN

EC

TIO

NS

DBG1

DBG3DBG0

VOFF

ID_SYS

ID_SYS

VOFF

TA

RG

ET

BU

LK

VC

C_T

AR

GE

TR

ESE

T P

ull

VB

US

CD

C R

X3

CD

C T

X4

DB

G1

5

DB

G2

6

0 T

X7

1 R

X8

2 SD

A9

3 S

CL

10

4 M

OSI

11

5 M

ISO

12

6 S

CK

13

7 S

S14

GN

D15

0 (T

X)

16

1 (R

X)

17

218

319

020

GN

D24

DB

G3

54

DB

G0

53

GN

D52

VC

C51

PW

M 3

46

AD

C 2

45

AD

C 1

44

AD

C 0

43

GN

D42

438

434

GN

D33

AD

C 7

50

AD

C 6

49

AD

C 5

48

PW

M 4

47

DE

BU

GG

ER

TAR

GE

T

ID2

VO

FF

55

121

222

323

025

126

227

328

429

530

631

732

535

636

737

539

640

741

RE

SER

VE

D1

VB

US

56

CN

AN

O56

-pin

edg

e co

nnec

tor

J200

J201

J203

J205

J206

J202

J204

PF1_

XT

AL

32K

2PF

0_X

TA

L32

K1

NC

XOUT

XIN

47kR200

AV

R12

8DB

48

UPD

I

GPI

O1

GPI

O0

RE

SET

DB

G0

DB

G1

DB

G2

DB

G3

Deb

ugge

r

CD

C T

X

CD

C R

X

UA

RT

3 R

X

UA

RT

3 T

X

VT

G1

8V -

55

VPB

3

PB

2

PF

6

UP

DI

PB

0

PB

1

Nam

eP

in

PE

3_O

P2_

INN

PE

2_O

P2_

OU

TP

E1_

OP

2_IN

PP

E0

J207

J208

PF

0P

F1

PA5

1

PA6

2

PA7

3

PB0

4

PB1

5

PB2

6

PB3

7

PB4

8

PB5

9

PC0

10

PC1

11

PC2

12

PC313

VDDIO214

GND15

PC416

PC517

PC618

PC719

PD020

PD121

PD222

PD323

PD424

PD5

25

PD6

26

PD7

27

AVDD

28

GND

29

PE0

30

PE1

31

PE2

32

PE3

33

XTAL32K1PF0

34

XTAL32K2PF1

35

PF2

36

PF337

PF438

PF539

PF640

UPDI41

VDD42

GND43

XTALHF1PA044

XTALHF2PA145

PA246

PA347

PA448

AV

R12

8DB

48-I

PT

U20

0

0RR204

GN

D

VC

C_T

AR

GE

T

VDDIO2

GND

J210

J211

82p

C20

48

2pC

203

GN

DG

ND

16M

Hz

Cry

stal

J217

XHFOUT

XHFIN

J214

J213

GN

D

J215

J216

PA0_XTALHF1

PA1_XTALHF2

PA0_

XT

AL

HF

1PA

1_X

TA

LH

F2

PA0

PA1

1 2

J212 N

M

15pF

C20

615

pFC

207

13

24 16

000

MH

zV

XM

7-90

40-1

6M00

0000

0TR

XC

201

GN

D32

768

kHz

VM

K3-

9001

-32K

7680

000T

R

XC

200

CDC_TX

CDC_RX

CD

C_T

XC

DC

_RX

Cry

stal

dat

ashe

et

Ccr

ysta

l = 9

pFm

ax E

SR

= 7

0kO

hmA

ccur

acy

plusmn20p

pm

AV

R48

DB

128

data

shee

tC

xin

= 4

0pF

(ty

pica

l val

ue)

Cxo

ut =

40

pF (

typi

cal v

alue

)C

lasymp1

( (1

40

pF)+

(1

40p

F)

)asymp

20p

FM

axim

um L

oad

= 1

25p

FM

axim

um E

SR =

50k

Ohm

Est

imat

ed C

pcb

= 0

5pF

Est

imat

ed lo

adC

= 2

(C

crys

tal-

Cpa

ra -

Cpc

b)C

= 2

(9p

F -

20

pF -

05

pF)

C =

13

0pF

Sele

cted

in d

esig

n af

ter

veri

fica

tion

C=

82

pF8

2pF

NO

TE

on

UA

RT

CD

C

RX

TX

onth

ehe

ader

deno

tes

the

inpu

tout

put d

irec

tion

of th

e si

gnal

resp

ectiv

e to

its

sou

rce

CD

C T

X is

out

put f

rom

the

DE

BU

GG

ER

C

DC

RX

is in

put t

o th

e D

EB

UG

GE

R

TX

is o

utpu

t fro

m th

e T

AR

GE

T d

evic

eR

X is

inpu

t to

the

TA

RG

ET

dev

ice

NO

TE

on

I2C

No

pull

-ups

on

boar

d P

ull-

ups

shou

ld b

em

ount

ed c

lose

to s

lave

dev

ice(

s)

WA

RN

ING

M

ake

sure

tore

mov

e R

204

befo

reap

plyi

ng p

ower

to J

212

Cry

stal

dat

ashe

et

Ccr

ysta

l = 1

2pF

max

ES

R =

60O

hmA

ccur

acy

plusmn30p

pm

AV

R48

DB

128

data

shee

tC

xin

= 4

0pF

(ty

pica

l val

ue)

Cxo

ut =

40

pF (

typi

cal v

alue

)C

lasymp1

( (1

40

pF)+

(1

40p

F)

)asymp

20p

FM

axim

um L

oad

= 1

25p

FM

axim

um E

SR =

k

Ohm

Est

imat

ed C

pcb

= 0

5pF

Est

imat

ed lo

adC

= 2

(C

crys

tal-

Cpa

ra -

Cpc

b)C

= 2

(12

pF -

20

pF -

05

pF)

C =

19

0pF

Sele

cted

in d

esig

n af

ter

veri

fica

tion

C=

15p

F1

5pF

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 34

11

22

33

44

55

66

77

88

DD

CC

BB

AA

3 of

4

AV

R12

8DB

48 C

uri

osit

y N

ano

2020

-06-

26A

VR

128D

B48

_Cur

iosi

ty_N

ano_

Deb

ugge

rSch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA

Rev

isio

n

Fil

eP

CB

Num

ber

PC

B

Rev

isio

n

Des

ign

ed w

ith

Dra

wn

By

ML

Shee

t Tit

le

Deb

ugge

r

Eng

inee

rA

H

A08

-305

71

Size

A3

A09

-337

22

Page

D

ateA

ltium

com

DE

BU

GG

ER

USB

MIC

RO

-B C

ON

NE

CT

OR

GN

D

USB

D_P

USB

D_N

100n

C10

7

100n

C10

8

1kR

107

VC

C_P

3V3

SRST

STA

TU

S_L

ED

SHIE

LD

VB

US

VC

C_P

3V3

GN

D

TP

100

Test

poin

t Arr

ay

12

34

56

78

910

TC

KT

DO

TM

SV

sup

TD

IG

ND

TR

STSR

STV

Tre

fG

ND

J102

GN

D

47u

F

C10

0

DBG0

DB

G0

21

GR

EE

N L

ED

SML

-P12

MT

T86

R

D10

0

VBUS

1

D-

2

D+

3

GND

5

SHIELD1

6

SHIELD2

7

ID

4

SHIELD3

8

SHIELD4

9 MU

-MB

0142

AB

2-26

9

J105

PAD

33

PA00

1

PA01

2

PA02

3

PA03

4

GND 10VDDANA 9

PA04

5

PA05

6

PA06

7

PA07

8

PA08 11

PA09 12

PA10 13

PA11 14

PA14 15

PA15 16

PA16

17

PA17

18

PA18

19

PA19

20

PA22

21

USB_SOFPA23

22

USB_DMPA24

23

USB_DPPA25

24

PA2725 RESETN26 PA2827 GND28 VDDCORE29 VDDIN30 SWDCLKPA3031 SWDIOPA3132

SAM

D21

E18

A-M

UT

U10

0

VOUT

1

VOUT

2

GND 3

EN

4

VIN

6

NC

5

EP 7

MIC

5528

-33

YM

TU

101

VC

C_P

3V3

GN

D

USB

D_P

USB

D_N

GN

D

1uC

106

VC

C_M

CU

_CO

RE

VC

C_P

3V3

VC

C_P

3V3

22u

FC

101

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

3

VC

C_P

3V3

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

4

VC

C_P

3V3

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

5

VC

C_P

3V3

GN

D

GN

D GN

D

GN

D

VC

C_E

DG

E

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

7

VC

C_P

3V3

GN

DDBG2

DB

G3_

CT

RL

S1_0

_TX

S1_1

_RX

S0_2

_TX

DA

CV

TG

_AD

C

RE

SER

VE

D

S0_3

_CL

K

DBG0_CTRL

CD

C_T

X_C

TR

L

BO

OT

DE

BU

GG

ER

PO

WE

RS

TA

TU

S L

ED

EN

1

BYP

6

VOUT

4

GND

2

VIN

3

NCADJ

5

GND

7

MIC

5353

U10

2

100n

C10

2

GN

D

GN

D

47kR101

27kR104 G

ND

33k

R10

6

22u

F

C10

3 GN

D

1kR

108

J100

VC

C_L

EV

EL

VC

C_R

EG

UL

AT

OR

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

6

VC

C_P

3V3

GN

DDBG1

CD

C_R

X

CD

C_T

X

DBG3

DBG1_CTRL

DE

BU

GG

ER

RE

GU

LA

TO

R

REG_ENABLE

RE

G_E

NA

BL

E

47kR103

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

47kR102

47kR105

SWC

LK

GN

D

47kR100 G

ND

DB

G2

S0_0

_RX

DB

G1_

CT

RL

DB

G0_

CT

RL

DB

G3

OP

EN

DR

AIN

TA

RG

ET

AD

JUST

AB

LE

RE

GU

LA

TO

R

SRST

DE

BU

GG

ER

TE

ST

PO

INT DBG2_CTRL

VO

FF

CD

C_R

X_C

TR

L

47kR109

DB

G1

CD

C_T

X_C

TR

L

CD

C_R

X_C

TR

L

SWC

LK

REG_ADJUST

DBG2_GPIO

DB

G3_

CT

RL

DB

G2_

CT

RL

UP

DI

UPD

I

GPI

O

GPI

O

RE

SET

Sign

al

DB

G0

DB

G1

DB

G2

DB

G3

ICS

PIn

terf

ace

DA

T

CL

K

GPI

O

MC

LR

DB

G3

CD

C T

X

CD

C R

X

UA

RT

RX

UA

RT

TX

UA

RT

RX

UA

RT

TX

TA

RG

ET

TA

RG

ET

1kR

110

VBUS_ADC

1

23

DM

N65

D8L

FB

Q10

1

VC

C-

-

ID_SYS

VOFF

1kR112

VC

C_P

3V3

VT

G_A

DC

DA

C

MIC

9416

3

VIN

B2

VOUT

A1

VIN

A2

EN

C2

GND

C1

VOUT

B1

U10

8

GN

D

ID_S

YS

VT

G_E

N

VTG_EN

VBUS_ADC

SWD

IO

ID_S

YS

TP

101

GN

DSW

DIO

VO

FF

47kR111 G

ND

ID P

IN

MC

3621

3

F10

0

VC

C_V

BU

S

VC

C_V

BU

S

VC

C_V

BU

S

J101

VC

C_T

AR

GE

T

47k

R11

3

CDC_TX

CDC_RX

Prog

ram

min

g co

nnec

tor

for

fact

ory

prog

ram

min

g of

DE

BU

GG

ER

MIC

5528

V

in 2

5V

to 5

5V

Vou

t F

ixed

33

VIm

ax 5

00m

AD

ropo

ut 2

60m

V

500

mA

MIC

5353

V

in 2

6V

to 6

VV

out

12

5V to

51

VIm

ax 5

00m

AD

ropo

ut (

typi

cal)

50m

V

150m

A 1

60m

V

500

mA

Acc

urac

y 2

in

itia

lT

herm

al s

hutd

own

and

curr

ent l

imit

Max

imum

out

put v

olta

ge is

lim

ited

by

the

inpu

t vol

tage

and

the

drop

out v

olta

ge in

the

regu

lato

r(V

max

= V

in -

dro

pout

)

J100

-

Cut

-str

ap u

sed

for

full

sep

arat

ion

of ta

rget

pow

er f

rom

the

leve

l shi

fter

s an

don

-boa

rd r

egul

ator

s-

For

cur

rent

mea

sure

men

ts u

sing

the

on-b

oard

pow

er s

uppl

y th

isst

rap

mus

t be

cut a

nd a

nam

met

er c

onne

cted

acr

oss

- F

or c

urre

nt m

easu

rem

ents

usi

ng a

n ex

tern

al p

ower

sup

ply

this

str

ap c

ould

be

cut f

or m

ore

accu

rate

mea

sure

men

ts L

eaka

ge b

ack

thro

ugh

the

swit

ch is

in th

e m

icro

am

pere

ran

ge

PT

C R

eset

tabl

e fu

se

Hol

d cu

rren

t 5

00m

AT

rip

curr

ent

100

0mA

Adj

usta

ble

outp

ut a

nd li

mit

atio

ns

- T

he D

EB

UG

GE

R c

an a

djus

t the

out

put v

olta

ge o

f th

e re

gula

tor

betw

een

125

V a

nd 5

1V

to th

e ta

rget

-

The

vol

tage

out

put i

s li

mit

ed b

y th

e in

put (

US

B)

whi

ch c

an v

ary

betw

een

440

V to

52

5V-

The

leve

l shi

fter

s ha

ve a

min

imal

vol

tage

leve

l of

165

V a

nd w

ill l

imit

the

min

imum

ope

ratin

g vo

ltage

all

owed

for

the

targ

et to

sti

ll a

llow

com

mun

icat

ion

- T

he M

IC94

163

has

a m

inim

al v

olat

ege

leve

l of

170

V a

nd w

ill l

imit

the

min

imum

vol

tage

del

iver

ed to

the

targ

et

- F

irm

war

e co

nfig

urat

ion

wil

l lim

it th

e vo

ltage

ran

ge to

be

wit

hin

the

the

targ

et s

peci

fica

tion

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 35

82 Assembly DrawingFigure 8-2 AVR128DB48 Curiosity Nano Assembly Drawing Top

+

Cb

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20001 PAC20002 COC200

PAC20101 PAC20102 COC201

PAC20201 PAC20202 COC202 PAC20301

PAC20302 COC203

PAC20401

PAC20402 COC204

PAC20502

PAC20501 COC205

PAC20601

PAC20602 COC206 PAC20701

PAC20702 COC207 PAD10002 PAD10001 COD100

PAD20002

PAD20001 COD200

PAF10002

PAF10001 COF100

PAJ10002 PAJ10001 COJ100

PAJ10101 PAJ10102 COJ101

PAJ10201

PAJ10202

PAJ10203

PAJ10204

PAJ10205

PAJ10206 COJ102

PAJ10506

PAJ10507 PAJ10509

PAJ10508 PAJ105010

PAJ105011 PAJ10505

PAJ10504

PAJ10503

PAJ10502

PAJ10501

PAJ10500

COJ105

PAJ200056 PAJ200053

PAJ200028 PAJ20002 PAJ20001

PAJ200051 PAJ200050 PAJ200052 PAJ200049 PAJ200048 PAJ200047 PAJ200046 PAJ200045 PAJ200044 PAJ200043 PAJ200042 PAJ200041 PAJ200040 PAJ200039 PAJ200038 PAJ200037 PAJ200036 PAJ200035 PAJ200034 PAJ200033 PAJ200032 PAJ200031 PAJ200030 PAJ200029

PAJ20003 PAJ20004 PAJ20005 PAJ20006 PAJ20007 PAJ20008 PAJ20009 PAJ200010 PAJ200011 PAJ200012 PAJ200013 PAJ200014 PAJ200015 PAJ200016 PAJ200017 PAJ200018 PAJ200019 PAJ200020 PAJ200021 PAJ200022 PAJ200023 PAJ200026 PAJ200025 PAJ200024 PAJ200027

PAJ200054 PAJ200055 PAJ20000

COJ200

PAJ20102 PAJ20101 COJ201

PAJ20202 PAJ20201 COJ202

PAJ20302 PAJ20301 COJ203

PAJ20402 PAJ20401 COJ204

PAJ20502 PAJ20501 COJ205

PAJ20602 PAJ20601 COJ206 PAJ20702 PAJ20701 COJ207

PAJ20802 PAJ20801 COJ208

PAJ20902 PAJ20901 COJ209

PAJ21001 PAJ21002 PAJ21005 COJ210

PAJ21102 PAJ21101 PAJ21105 COJ211

PAJ21202 PAJ21201 COJ212

PAJ21301 PAJ21302 PAJ21305 COJ213

PAJ21401 PAJ21402 PAJ21405 COJ214

PAJ21502 PAJ21501 COJ215

PAJ21602 PAJ21601 COJ216 PAJ21702 PAJ21701 COJ217

COLABEL1

PAQ10101 PAQ10102 PAQ10103 PAQ10100

COQ101 PAR10002

PAR10001 COR100 PAR10101 PAR10102 COR101

PAR10202 PAR10201 COR102

PAR10302 PAR10301 COR103

PAR10401 PAR10402 COR104

PAR10502

PAR10501 COR105

PAR10601 PAR10602 COR106

PAR10702 PAR10701 COR107

PAR10801

PAR10802 COR108

PAR10901 PAR10902 COR109

PAR11001 PAR11002 COR110

PAR11101 PAR11102 COR111

PAR11201 PAR11202 COR112

PAR11302 PAR11301 COR113

PAR20001 PAR20002 COR200 PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203 PAR20401 PAR20402 COR204

PASW20003

PASW20004 PASW20002

PASW20001 COSW200

PATP10001 COTP100

PATP10101 COTP101 PAU100033

PAU100032 PAU100031 PAU100030 PAU100029 PAU100028 PAU100027 PAU100026 PAU100025 PAU100024

PAU100023

PAU100022

PAU100021

PAU100020

PAU100019

PAU100018

PAU100017 PAU100016 PAU100015 PAU100014 PAU100013 PAU100012 PAU100011 PAU100010

PAU10001

PAU10002

PAU10003

PAU10004

PAU10005

PAU10006

PAU10007

PAU10008 PAU10009

COU100

PAU10107

PAU10104 PAU10105 PAU10106

PAU10103 PAU10102 PAU10101 PAU10100 COU101 PAU10207

PAU10204 PAU10205

PAU10206

PAU10203 PAU10202

PAU10201

COU102

PAU10306

PAU10305 PAU10304 PAU10303

PAU10302 PAU10301 PAU10300

COU103

PAU10406

PAU10405 PAU10404 PAU10403

PAU10402 PAU10401 PAU10400

COU104

PAU10506

PAU10505 PAU10504 PAU10503

PAU10502 PAU10501 PAU10500

COU105

PAU10606

PAU10605 PAU10604 PAU10603

PAU10602 PAU10601 PAU10600

COU106

PAU10706

PAU10705 PAU10704 PAU10703

PAU10702 PAU10701 PAU10700

COU107

PAU1080A1 PAU1080A2

PAU1080B1 PAU1080B2

PAU1080C1 PAU1080C2 COU108

PAU20001 PAU20002 PAU20003 PAU20004 PAU20005 PAU20006 PAU20007 PAU20008 PAU20009 PAU200010 PAU200011 PAU200012 PAU200013 PAU200014 PAU200015 PAU200016 PAU200017 PAU200018 PAU200019 PAU200020 PAU200021 PAU200022 PAU200023 PAU200024 PAU200025 PAU200026 PAU200027 PAU200028 PAU200029 PAU200030 PAU200031 PAU200032 PAU200033 PAU200034 PAU200035 PAU200036

PAU200037 PAU200038 PAU200039 PAU200040 PAU200041 PAU200042 PAU200043 PAU200044 PAU200045 PAU200046 PAU200047 PAU200048

COU200

PAXC20001

PAXC20002 COXC200

PAXC20101 PAXC20102

PAXC20103 PAXC20104 COXC201

Figure 8-3 AVR128DB48 Curiosity Nano Assembly Drawing Bottom

tcR

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20001 PAC20002 COC200

PAC20101 PAC20102 COC201

PAC20201 PAC20202 COC202 PAC20301

PAC20302 COC203

PAC20401

PAC20402 COC204

PAC20502

PAC20501 COC205

PAC20601

PAC20602 COC206 PAC20701

PAC20702 COC207 PAD10002 PAD10001 COD100

PAD20002

PAD20001 COD200

PAF10002

PAF10001 COF100

PAJ10002 PAJ10001 COJ100

PAJ10101 PAJ10102 COJ101

PAJ10201

PAJ10202

PAJ10203

PAJ10204

PAJ10205

PAJ10206 COJ102

PAJ10506

PAJ10507 PAJ10509

PAJ10508 PAJ105010

PAJ105011 PAJ10505

PAJ10504

PAJ10503

PAJ10502

PAJ10501

PAJ10500

COJ105

PAJ200056 PAJ200053

PAJ200028 PAJ20002 PAJ20001

PAJ200051 PAJ200050 PAJ200052 PAJ200049 PAJ200048 PAJ200047 PAJ200046 PAJ200045 PAJ200044 PAJ200043 PAJ200042 PAJ200041 PAJ200040 PAJ200039 PAJ200038 PAJ200037 PAJ200036 PAJ200035 PAJ200034 PAJ200033 PAJ200032 PAJ200031 PAJ200030 PAJ200029

PAJ20003 PAJ20004 PAJ20005 PAJ20006 PAJ20007 PAJ20008 PAJ20009 PAJ200010 PAJ200011 PAJ200012 PAJ200013 PAJ200014 PAJ200015 PAJ200016 PAJ200017 PAJ200018 PAJ200019 PAJ200020 PAJ200021 PAJ200022 PAJ200023 PAJ200026 PAJ200025 PAJ200024 PAJ200027

PAJ200054 PAJ200055 PAJ20000

COJ200

PAJ20102 PAJ20101 COJ201

PAJ20202 PAJ20201 COJ202

PAJ20302 PAJ20301 COJ203

PAJ20402 PAJ20401 COJ204

PAJ20502 PAJ20501 COJ205

PAJ20602 PAJ20601 COJ206 PAJ20702 PAJ20701 COJ207

PAJ20802 PAJ20801 COJ208

PAJ20902 PAJ20901 COJ209

PAJ21001 PAJ21002 PAJ21005 COJ210

PAJ21102 PAJ21101 PAJ21105 COJ211

PAJ21202 PAJ21201 COJ212

PAJ21301 PAJ21302 PAJ21305 COJ213

PAJ21401 PAJ21402 PAJ21405 COJ214

PAJ21502 PAJ21501 COJ215

PAJ21602 PAJ21601 COJ216 PAJ21702 PAJ21701 COJ217

COLABEL1

PAQ10101 PAQ10102 PAQ10103 PAQ10100

COQ101 PAR10002

PAR10001 COR100 PAR10101 PAR10102 COR101

PAR10202 PAR10201 COR102

PAR10302 PAR10301 COR103

PAR10401 PAR10402 COR104

PAR10502

PAR10501 COR105

PAR10601 PAR10602 COR106

PAR10702 PAR10701 COR107

PAR10801

PAR10802 COR108

PAR10901 PAR10902 COR109

PAR11001 PAR11002 COR110

PAR11101 PAR11102 COR111

PAR11201 PAR11202 COR112

PAR11302 PAR11301 COR113

PAR20001 PAR20002 COR200 PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203 PAR20401 PAR20402 COR204

PASW20003

PASW20004 PASW20002

PASW20001 COSW200

PATP10001 COTP100

PATP10101 COTP101 PAU100033

PAU100032 PAU100031 PAU100030 PAU100029 PAU100028 PAU100027 PAU100026 PAU100025 PAU100024

PAU100023

PAU100022

PAU100021

PAU100020

PAU100019

PAU100018

PAU100017 PAU100016 PAU100015 PAU100014 PAU100013 PAU100012 PAU100011 PAU100010

PAU10001

PAU10002

PAU10003

PAU10004

PAU10005

PAU10006

PAU10007

PAU10008 PAU10009

COU100

PAU10107

PAU10104 PAU10105 PAU10106

PAU10103 PAU10102 PAU10101 PAU10100 COU101 PAU10207

PAU10204 PAU10205

PAU10206

PAU10203 PAU10202

PAU10201

COU102

PAU10306

PAU10305 PAU10304 PAU10303

PAU10302 PAU10301 PAU10300

COU103

PAU10406

PAU10405 PAU10404 PAU10403

PAU10402 PAU10401 PAU10400

COU104

PAU10506

PAU10505 PAU10504 PAU10503

PAU10502 PAU10501 PAU10500

COU105

PAU10606

PAU10605 PAU10604 PAU10603

PAU10602 PAU10601 PAU10600

COU106

PAU10706

PAU10705 PAU10704 PAU10703

PAU10702 PAU10701 PAU10700

COU107

PAU1080A1 PAU1080A2

PAU1080B1 PAU1080B2

PAU1080C1 PAU1080C2 COU108

PAU20001 PAU20002 PAU20003 PAU20004 PAU20005 PAU20006 PAU20007 PAU20008 PAU20009 PAU200010 PAU200011 PAU200012 PAU200013 PAU200014 PAU200015 PAU200016 PAU200017 PAU200018 PAU200019 PAU200020 PAU200021 PAU200022 PAU200023 PAU200024 PAU200025 PAU200026 PAU200027 PAU200028 PAU200029 PAU200030 PAU200031 PAU200032 PAU200033 PAU200034 PAU200035 PAU200036

PAU200037 PAU200038 PAU200039 PAU200040 PAU200041 PAU200042 PAU200043 PAU200044 PAU200045 PAU200046 PAU200047 PAU200048

COU200

PAXC20001

PAXC20002 COXC200

PAXC20101 PAXC20102

PAXC20103 PAXC20104 COXC201

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 36

83 Curiosity Nano Base for Click boardstrade

Figure 8-4 AVR128DB48 Curiosity Nano Pinout Mapping

US

B

DE

BU

GG

ER

AV

R1

28

DB

48

SW

0

LE

D0

PS

LE

DNC

NC

ID

ID

CDC RX

CDCRX

USART3 TX

PB0

CDC TX

CDCTX

USART3 RX

PB1

DBG1

DBG1

PB3

LED0

DBG2

DBG2

PB2

SW0

PF4

PF4

USART2 TX

PF5

PF5

USART2 RX

PA2

PA2

TWI0 SDA

PA3

PA3

TWI0 SCL

PA4

PA4

SPI0 MOSI

PA5

PA5

SPI0 MISO

PA6

PA6

SPI0 SCK

PA7

PA7

SPI0 SS

GND

GND

PB0

PB0

USART3 TX

CDC RX

PB1

PB1

USART3 RX

CDC TX

PF2

PF2

PF3

PF3

PC0

PC0

PC1

PC1

PC2

PC2

PC3

PC3

GND

GND

(PA0)

(PA0)

XTALHF1

(PA1)

(PA1)

XTALHF2

PB2

PB2

SW0

PB3

PB3

LED0

VBUS

VBUS

VOFF

VOFF

DBG3

DBG3

PF6

DBG0

DBG0

UPDI

GND

GND

VTG

VTG

PD6

PD6

AIN6

PD3

PD3

AIN3

OP0 INN

PD2

PD2

AIN2

OP0 OUT

TCA0 WO2

PD1

PD1

AIN1

OP0 INP

TCA0 WO1

PD0

PD0

AIN0

TCA0 WO0

PD7

PD7

AIN7

OP1 INN

PD5

PD5

AIN5

OP1 OUT

PD4

PD4

AIN4

OP1 INP

GND

GND

PE3

PE3

OP2 INN

PE2

PE2

OP2 OUT

PE1

PE1

OP2 INP

PE0

PE0

PC7

PC7

PC6

PC6

PC5

PC5

PC4

PC4

GND

GND

PB5

PB5

PB4

PB4

(PF1)

(PF1)

XTAL32K2

(PF0)

(PF0)

XTAL32K1

DE

BU

GG

ER

AV

R1

28

DB

48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

MVIO

OPAMP

Shared pin

AV

R1

28

DB

48

Cu

rio

sity

Na

no

1

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

2

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

3

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

Xp

lain

ed

Pro

Ext

en

sio

nE

XT

11

2

19

20

Cu

rio

sity

Na

no

Ba

sefo

r cl

ick

bo

ard

sT

M

PD4

PD0

PD6

PD3

PA7

PF5

PA6

PF4

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

PD5

PD1

PF3

PF2

PE2

PB1

PA6

PB0

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

PD7

PD2

PE1

PE0

PE3

PF5

PA6

PF4

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

ID

GND

PD5

PD7

PF3

PE1

PD1

PD2

PF2

PE3

PA2

PA3

PB1

PB0

PE2

PA4

PA5

PA6

GND

+33V

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 37

84 Disconnecting the On-board DebuggerThe on-board debugger and level shifters can be completely disconnected from the AVR128DB48

The block diagram below shows all connections between the debugger and the AVR128DB48 The rounded boxesrepresent connections to the board edge The signal names shown are also printed in silkscreen on the bottom sideof the board

To disconnect the debugger cut the straps shown in Figure 8-6

Attention  Cutting the GPIO straps to the on-board debugger will disable the virtual serial portprogramming debugging and data streaming Cutting the power supply strap will disconnect the on-boardpower supply

Tip  Any connection that is cut can be reconnected using solder Alternatively a 0Ω 0402 resistor can bemounted

Tip  When the debugger is disconnected an external debugger can be connected to holes shown in Figure 8-6 Details about connecting an external debugger are described in 46 Connecting ExternalDebuggers

Figure 8-5  On-Board Debugger Connections Block Diagram

DE

BU

GG

ER

TARGETLevel-Shift

PA04PA06PA07PA08PA16PA00PA01

USB

DIR x 5

VCC_P3V3

VBUS

VC

C_L

EV

EL

VC

C_T

AR

GE

TDBG0DBG1DBG2DBG3CDC TXCDC RX

CDC RX

CDC TX

DBG3

DBG2

DBG1

DBG0

GPIO straps

LDO

VOFF

LDO

VBUS VTG

VCC_EDGE

Power Supply strap Target Power strap

UART RXUART TX

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 38

Figure 8-6 On-Board Debugger Connection Cut Straps

GPIO straps (bottom side) Power Supply strap (top side)

85 Getting Started with IARIAR Embedded Workbenchreg for AVRreg is a proprietary high-efficiency compiler not based on GCC Programming anddebugging of AVR128DB48 Curiosity Nano is supported in IARtrade Embedded Workbench for AVR using the Atmel-ICEinterface Some initial settings must be set up in the project to get the programming and debugging to work

The following steps will explain how to get your project ready for programming and debugging

1 Make sure you have opened the project you want to configure Open the OPTIONS dialog for the project2 In the category General Options select the Target tab Select the device for the project or if not listed the

core of the device as shown in Figure 8-73 In the category Debugger select the Setup tab Select Atmel-ICE as the driver as shown in Figure 8-84 In the category Debugger gt Atmel-ICE select the Atmel-ICE 1 tab Select UPDI as the interface and

optionally select the UPDI frequency as shown in Figure 8-9

Info  If the selection of Debug Port (mentioned in step 4) is grayed out the interface is preselected andthe user can skip this configuration step

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 39

Figure 8-7 Select Target Device

Figure 8-8 Select Debugger

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 40

Figure 8-9 Configure Interface

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 41

The Microchip Website

Microchip provides online support via our website at wwwmicrochipcom This website is used to make files andinformation easily available to customers Some of the content available includes

bull Product Support ndash Data sheets and errata application notes and sample programs design resources userrsquosguides and hardware support documents latest software releases and archived software

bull General Technical Support ndash Frequently Asked Questions (FAQs) technical support requests onlinediscussion groups Microchip design partner program member listing

bull Business of Microchip ndash Product selector and ordering guides latest Microchip press releases listing ofseminars and events listings of Microchip sales offices distributors and factory representatives

Product Change Notification Service

Microchiprsquos product change notification service helps keep customers current on Microchip products Subscribers willreceive email notification whenever there are changes updates revisions or errata related to a specified productfamily or development tool of interest

To register go to wwwmicrochipcompcn and follow the registration instructions

Customer Support

Users of Microchip products can receive assistance through several channels

bull Distributor or Representativebull Local Sales Officebull Embedded Solutions Engineer (ESE)bull Technical Support

Customers should contact their distributor representative or ESE for support Local sales offices are also available tohelp customers A listing of sales offices and locations is included in this document

Technical support is available through the website at wwwmicrochipcomsupport

Microchip Devices Code Protection Feature

Note the following details of the code protection feature on Microchip devices

bull Microchip products meet the specifications contained in their particular Microchip Data Sheetbull Microchip believes that its family of products is secure when used in the intended manner and under normal

conditionsbull There are dishonest and possibly illegal methods being used in attempts to breach the code protection features

of the Microchip devices We believe that these methods require using the Microchip products in a manneroutside the operating specifications contained in Microchiprsquos Data Sheets Attempts to breach these codeprotection features most likely cannot be accomplished without violating Microchiprsquos intellectual property rights

bull Microchip is willing to work with any customer who is concerned about the integrity of its codebull Neither Microchip nor any other semiconductor manufacturer can guarantee the security of its code Code

protection does not mean that we are guaranteeing the product is ldquounbreakablerdquo Code protection is constantlyevolving We at Microchip are committed to continuously improving the code protection features of our productsAttempts to break Microchiprsquos code protection feature may be a violation of the Digital Millennium Copyright ActIf such acts allow unauthorized access to your software or other copyrighted work you may have a right to suefor relief under that Act

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 42

Legal Notice

Information contained in this publication is provided for the sole purpose of designing with and using Microchipproducts Information regarding device applications and the like is provided only for your convenience and may besuperseded by updates It is your responsibility to ensure that your application meets with your specifications

THIS INFORMATION IS PROVIDED BY MICROCHIP ldquoAS ISrdquo MICROCHIP MAKES NO REPRESENTATIONS ORWARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED WRITTEN OR ORAL STATUTORY OROTHERWISE RELATED TO THE INFORMATION INCLUDING BUT NOT LIMITED TO ANY IMPLIEDWARRANTIES OF NON-INFRINGEMENT MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSEOR WARRANTIES RELATED TO ITS CONDITION QUALITY OR PERFORMANCE

IN NO EVENT WILL MICROCHIP BE LIABLE FOR ANY INDIRECT SPECIAL PUNITIVE INCIDENTAL ORCONSEQUENTIAL LOSS DAMAGE COST OR EXPENSE OF ANY KIND WHATSOEVER RELATED TO THEINFORMATION OR ITS USE HOWEVER CAUSED EVEN IF MICROCHIP HAS BEEN ADVISED OF THEPOSSIBILITY OR THE DAMAGES ARE FORESEEABLE TO THE FULLEST EXTENT ALLOWED BY LAWMICROCHIPS TOTAL LIABILITY ON ALL CLAIMS IN ANY WAY RELATED TO THE INFORMATION OR ITS USEWILL NOT EXCEED THE AMOUNT OF FEES IF ANY THAT YOU HAVE PAID DIRECTLY TO MICROCHIP FORTHE INFORMATION Use of Microchip devices in life support andor safety applications is entirely at the buyerrsquos riskand the buyer agrees to defend indemnify and hold harmless Microchip from any and all damages claims suits orexpenses resulting from such use No licenses are conveyed implicitly or otherwise under any Microchip intellectualproperty rights unless otherwise stated

Trademarks

The Microchip name and logo the Microchip logo Adaptec AnyRate AVR AVR logo AVR Freaks BesTimeBitCloud chipKIT chipKIT logo CryptoMemory CryptoRF dsPIC FlashFlex flexPWR HELDO IGLOO JukeBloxKeeLoq Kleer LANCheck LinkMD maXStylus maXTouch MediaLB megaAVR Microsemi Microsemi logo MOSTMOST logo MPLAB OptoLyzer PackeTime PIC picoPower PICSTART PIC32 logo PolarFire Prochip DesignerQTouch SAM-BA SenGenuity SpyNIC SST SST Logo SuperFlash Symmetricom SyncServer TachyonTempTrackr TimeSource tinyAVR UNIO Vectron and XMEGA are registered trademarks of Microchip TechnologyIncorporated in the USA and other countries

APT ClockWorks The Embedded Control Solutions Company EtherSynch FlashTec Hyper Speed ControlHyperLight Load IntelliMOS Libero motorBench mTouch Powermite 3 Precision Edge ProASIC ProASIC PlusProASIC Plus logo Quiet-Wire SmartFusion SyncWorld Temux TimeCesium TimeHub TimePictra TimeProviderVite WinPath and ZL are registered trademarks of Microchip Technology Incorporated in the USA

Adjacent Key Suppression AKS Analog-for-the-Digital Age Any Capacitor AnyIn AnyOut BlueSky BodyComCodeGuard CryptoAuthentication CryptoAutomotive CryptoCompanion CryptoController dsPICDEMdsPICDEMnet Dynamic Average Matching DAM ECAN EtherGREEN In-Circuit Serial Programming ICSPINICnet Inter-Chip Connectivity JitterBlocker KleerNet KleerNet logo memBrain Mindi MiWi MPASM MPFMPLAB Certified logo MPLIB MPLINK MultiTRAK NetDetach Omniscient Code Generation PICDEMPICDEMnet PICkit PICtail PowerSmart PureSilicon QMatrix REAL ICE Ripple Blocker SAM-ICE Serial QuadIO SMART-IS SQI SuperSwitcher SuperSwitcher II Total Endurance TSHARC USBCheck VariSenseViewSpan WiperLock Wireless DNA and ZENA are trademarks of Microchip Technology Incorporated in the USAand other countries

SQTP is a service mark of Microchip Technology Incorporated in the USA

The Adaptec logo Frequency on Demand Silicon Storage Technology and Symmcom are registered trademarks ofMicrochip Technology Inc in other countries

GestIC is a registered trademark of Microchip Technology Germany II GmbH amp Co KG a subsidiary of MicrochipTechnology Inc in other countries

All other trademarks mentioned herein are property of their respective companiescopy 2020 Microchip Technology Incorporated Printed in the USA All Rights Reserved

ISBN 978-1-5224-6667-3

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 43

Quality Management SystemFor information regarding Microchiprsquos Quality Management Systems please visit wwwmicrochipcomquality

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 44

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupportwwwmicrochipcomsupportWeb AddresswwwmicrochipcomAtlantaDuluth GATel 678-957-9614Fax 678-957-1455Austin TXTel 512-257-3370BostonWestborough MATel 774-760-0087Fax 774-760-0088ChicagoItasca ILTel 630-285-0071Fax 630-285-0075DallasAddison TXTel 972-818-7423Fax 972-818-2924DetroitNovi MITel 248-848-4000Houston TXTel 281-894-5983IndianapolisNoblesville INTel 317-773-8323Fax 317-773-5453Tel 317-536-2380Los AngelesMission Viejo CATel 949-462-9523Fax 949-462-9608Tel 951-273-7800Raleigh NCTel 919-844-7510New York NYTel 631-435-6000San Jose CATel 408-735-9110Tel 408-436-4270Canada - TorontoTel 905-695-1980Fax 905-695-2078

Australia - SydneyTel 61-2-9868-6733China - BeijingTel 86-10-8569-7000China - ChengduTel 86-28-8665-5511China - ChongqingTel 86-23-8980-9588China - DongguanTel 86-769-8702-9880China - GuangzhouTel 86-20-8755-8029China - HangzhouTel 86-571-8792-8115China - Hong Kong SARTel 852-2943-5100China - NanjingTel 86-25-8473-2460China - QingdaoTel 86-532-8502-7355China - ShanghaiTel 86-21-3326-8000China - ShenyangTel 86-24-2334-2829China - ShenzhenTel 86-755-8864-2200China - SuzhouTel 86-186-6233-1526China - WuhanTel 86-27-5980-5300China - XianTel 86-29-8833-7252China - XiamenTel 86-592-2388138China - ZhuhaiTel 86-756-3210040

India - BangaloreTel 91-80-3090-4444India - New DelhiTel 91-11-4160-8631India - PuneTel 91-20-4121-0141Japan - OsakaTel 81-6-6152-7160Japan - TokyoTel 81-3-6880- 3770Korea - DaeguTel 82-53-744-4301Korea - SeoulTel 82-2-554-7200Malaysia - Kuala LumpurTel 60-3-7651-7906Malaysia - PenangTel 60-4-227-8870Philippines - ManilaTel 63-2-634-9065SingaporeTel 65-6334-8870Taiwan - Hsin ChuTel 886-3-577-8366Taiwan - KaohsiungTel 886-7-213-7830Taiwan - TaipeiTel 886-2-2508-8600Thailand - BangkokTel 66-2-694-1351Vietnam - Ho Chi MinhTel 84-28-5448-2100

Austria - WelsTel 43-7242-2244-39Fax 43-7242-2244-393Denmark - CopenhagenTel 45-4485-5910Fax 45-4485-2829Finland - EspooTel 358-9-4520-820France - ParisTel 33-1-69-53-63-20Fax 33-1-69-30-90-79Germany - GarchingTel 49-8931-9700Germany - HaanTel 49-2129-3766400Germany - HeilbronnTel 49-7131-72400Germany - KarlsruheTel 49-721-625370Germany - MunichTel 49-89-627-144-0Fax 49-89-627-144-44Germany - RosenheimTel 49-8031-354-560Israel - RarsquoananaTel 972-9-744-7705Italy - MilanTel 39-0331-742611Fax 39-0331-466781Italy - PadovaTel 39-049-7625286Netherlands - DrunenTel 31-416-690399Fax 31-416-690340Norway - TrondheimTel 47-72884388Poland - WarsawTel 48-22-3325737Romania - BucharestTel 40-21-407-87-50Spain - MadridTel 34-91-708-08-90Fax 34-91-708-08-91Sweden - GothenbergTel 46-31-704-60-40Sweden - StockholmTel 46-8-5090-4654UK - WokinghamTel 44-118-921-5800Fax 44-118-921-5820

Worldwide Sales and Service

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 45

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Board Overview
      • 2 Getting Started
        • 21 Quick Start
          • 211 Driver Installation
          • 212 Kit Window
          • 213 MPLABreg X IDE Device Family Packs
          • 214 Atmel Studio 7 Device Family Pack
            • 22 Design Documentation and Relevant Links
              • 3 Preprogrammed Application
              • 4 Curiosity Nano
                • 41 On-Board Debugger Overview
                  • 411 Debugger
                  • 412 Virtual Serial Port (CDC)
                    • 4121 Overview
                    • 4122 Operating System Support
                    • 4123 Limitations
                    • 4124 Signaling
                    • 4125 Advanced Use
                      • 413 Mass Storage Device
                        • 4131 Mass Storage Device Implementation
                        • 4132 Limitations of Drag-and-Drop Programming
                        • 4133 Special Commands
                          • 414 Data Gateway Interface (DGI)
                            • 4141 Debug GPIO
                            • 4142 Timestamping
                                • 42 Curiosity Nano Standard Pinout
                                • 43 Power Supply
                                  • 431 Target Regulator
                                  • 432 External Supply
                                  • 433 VBUS Output Pin
                                  • 434 Power Supply Exceptions
                                    • 44 Low-Power Measurement
                                    • 45 Programming External Microcontrollers
                                      • 451 Supported Devices
                                      • 452 Software Configuration
                                      • 453 Hardware Modifications
                                      • 454 Connecting to External Microcontrollers
                                        • 46 Connecting External Debuggers
                                          • 5 Hardware User Guide
                                            • 51 Connectors
                                              • 511 AVR128DB48 Curiosity Nano Pinout
                                              • 512 Using Pin Headers
                                              • 513 Multi-Voltage IO
                                              • 514 Operational Amplifiers
                                                • 52 Peripherals
                                                  • 521 LED
                                                  • 522 Mechanical Switch
                                                  • 523 32768 kHz Crystal
                                                  • 524 1600 MHz Crystal
                                                  • 525 On-Board Debugger Implementation
                                                    • 5251 On-Board Debugger Connections
                                                      • 6 Hardware Revision History and Known Issues
                                                        • 61 Identifying Product ID and Revision
                                                        • 62 Revision 3
                                                        • 63 Revision 2
                                                          • 7 Document Revision History
                                                          • 8 Appendix
                                                            • 81 Schematic
                                                            • 82 Assembly Drawing
                                                            • 83 Curiosity Nano Base for Click boardstrade
                                                            • 84 Disconnecting the On-board Debugger
                                                            • 85 Getting Started with IAR
                                                              • The Microchip Website
                                                              • Product Change Notification Service
                                                              • Customer Support
                                                              • Microchip Devices Code Protection Feature
                                                              • Legal Notice
                                                              • Trademarks
                                                              • Quality Management System
                                                              • Worldwide Sales and Service
Page 35: AVR128DB48 Curiosity Nano Hardware User Guideww1.microchip.com/downloads/en/DeviceDoc/AVR128DB48-Curiosit… · 4. Curiosity Nano Curiosity Nano is an evaluation platform of small

11

22

33

44

55

66

77

88

DD

CC

BB

AA

3 of

4

AV

R12

8DB

48 C

uri

osit

y N

ano

2020

-06-

26A

VR

128D

B48

_Cur

iosi

ty_N

ano_

Deb

ugge

rSch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA

Rev

isio

n

Fil

eP

CB

Num

ber

PC

B

Rev

isio

n

Des

ign

ed w

ith

Dra

wn

By

ML

Shee

t Tit

le

Deb

ugge

r

Eng

inee

rA

H

A08

-305

71

Size

A3

A09

-337

22

Page

D

ateA

ltium

com

DE

BU

GG

ER

USB

MIC

RO

-B C

ON

NE

CT

OR

GN

D

USB

D_P

USB

D_N

100n

C10

7

100n

C10

8

1kR

107

VC

C_P

3V3

SRST

STA

TU

S_L

ED

SHIE

LD

VB

US

VC

C_P

3V3

GN

D

TP

100

Test

poin

t Arr

ay

12

34

56

78

910

TC

KT

DO

TM

SV

sup

TD

IG

ND

TR

STSR

STV

Tre

fG

ND

J102

GN

D

47u

F

C10

0

DBG0

DB

G0

21

GR

EE

N L

ED

SML

-P12

MT

T86

R

D10

0

VBUS

1

D-

2

D+

3

GND

5

SHIELD1

6

SHIELD2

7

ID

4

SHIELD3

8

SHIELD4

9 MU

-MB

0142

AB

2-26

9

J105

PAD

33

PA00

1

PA01

2

PA02

3

PA03

4

GND 10VDDANA 9

PA04

5

PA05

6

PA06

7

PA07

8

PA08 11

PA09 12

PA10 13

PA11 14

PA14 15

PA15 16

PA16

17

PA17

18

PA18

19

PA19

20

PA22

21

USB_SOFPA23

22

USB_DMPA24

23

USB_DPPA25

24

PA2725 RESETN26 PA2827 GND28 VDDCORE29 VDDIN30 SWDCLKPA3031 SWDIOPA3132

SAM

D21

E18

A-M

UT

U10

0

VOUT

1

VOUT

2

GND 3

EN

4

VIN

6

NC

5

EP 7

MIC

5528

-33

YM

TU

101

VC

C_P

3V3

GN

D

USB

D_P

USB

D_N

GN

D

1uC

106

VC

C_M

CU

_CO

RE

VC

C_P

3V3

VC

C_P

3V3

22u

FC

101

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

3

VC

C_P

3V3

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

4

VC

C_P

3V3

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

5

VC

C_P

3V3

GN

D

GN

D GN

D

GN

D

VC

C_E

DG

E

GN

D

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

7

VC

C_P

3V3

GN

DDBG2

DB

G3_

CT

RL

S1_0

_TX

S1_1

_RX

S0_2

_TX

DA

CV

TG

_AD

C

RE

SER

VE

D

S0_3

_CL

K

DBG0_CTRL

CD

C_T

X_C

TR

L

BO

OT

DE

BU

GG

ER

PO

WE

RS

TA

TU

S L

ED

EN

1

BYP

6

VOUT

4

GND

2

VIN

3

NCADJ

5

GND

7

MIC

5353

U10

2

100n

C10

2

GN

D

GN

D

47kR101

27kR104 G

ND

33k

R10

6

22u

F

C10

3 GN

D

1kR

108

J100

VC

C_L

EV

EL

VC

C_R

EG

UL

AT

OR

74L

VC

1T45

FW

4-7

VCCA

1VCCB

6

A3

GND

2DIR

5

B4

U10

6

VC

C_P

3V3

GN

DDBG1

CD

C_R

X

CD

C_T

X

DBG3

DBG1_CTRL

DE

BU

GG

ER

RE

GU

LA

TO

R

REG_ENABLE

RE

G_E

NA

BL

E

47kR103

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

VC

C_L

EV

EL

47kR102

47kR105

SWC

LK

GN

D

47kR100 G

ND

DB

G2

S0_0

_RX

DB

G1_

CT

RL

DB

G0_

CT

RL

DB

G3

OP

EN

DR

AIN

TA

RG

ET

AD

JUST

AB

LE

RE

GU

LA

TO

R

SRST

DE

BU

GG

ER

TE

ST

PO

INT DBG2_CTRL

VO

FF

CD

C_R

X_C

TR

L

47kR109

DB

G1

CD

C_T

X_C

TR

L

CD

C_R

X_C

TR

L

SWC

LK

REG_ADJUST

DBG2_GPIO

DB

G3_

CT

RL

DB

G2_

CT

RL

UP

DI

UPD

I

GPI

O

GPI

O

RE

SET

Sign

al

DB

G0

DB

G1

DB

G2

DB

G3

ICS

PIn

terf

ace

DA

T

CL

K

GPI

O

MC

LR

DB

G3

CD

C T

X

CD

C R

X

UA

RT

RX

UA

RT

TX

UA

RT

RX

UA

RT

TX

TA

RG

ET

TA

RG

ET

1kR

110

VBUS_ADC

1

23

DM

N65

D8L

FB

Q10

1

VC

C-

-

ID_SYS

VOFF

1kR112

VC

C_P

3V3

VT

G_A

DC

DA

C

MIC

9416

3

VIN

B2

VOUT

A1

VIN

A2

EN

C2

GND

C1

VOUT

B1

U10

8

GN

D

ID_S

YS

VT

G_E

N

VTG_EN

VBUS_ADC

SWD

IO

ID_S

YS

TP

101

GN

DSW

DIO

VO

FF

47kR111 G

ND

ID P

IN

MC

3621

3

F10

0

VC

C_V

BU

S

VC

C_V

BU

S

VC

C_V

BU

S

J101

VC

C_T

AR

GE

T

47k

R11

3

CDC_TX

CDC_RX

Prog

ram

min

g co

nnec

tor

for

fact

ory

prog

ram

min

g of

DE

BU

GG

ER

MIC

5528

V

in 2

5V

to 5

5V

Vou

t F

ixed

33

VIm

ax 5

00m

AD

ropo

ut 2

60m

V

500

mA

MIC

5353

V

in 2

6V

to 6

VV

out

12

5V to

51

VIm

ax 5

00m

AD

ropo

ut (

typi

cal)

50m

V

150m

A 1

60m

V

500

mA

Acc

urac

y 2

in

itia

lT

herm

al s

hutd

own

and

curr

ent l

imit

Max

imum

out

put v

olta

ge is

lim

ited

by

the

inpu

t vol

tage

and

the

drop

out v

olta

ge in

the

regu

lato

r(V

max

= V

in -

dro

pout

)

J100

-

Cut

-str

ap u

sed

for

full

sep

arat

ion

of ta

rget

pow

er f

rom

the

leve

l shi

fter

s an

don

-boa

rd r

egul

ator

s-

For

cur

rent

mea

sure

men

ts u

sing

the

on-b

oard

pow

er s

uppl

y th

isst

rap

mus

t be

cut a

nd a

nam

met

er c

onne

cted

acr

oss

- F

or c

urre

nt m

easu

rem

ents

usi

ng a

n ex

tern

al p

ower

sup

ply

this

str

ap c

ould

be

cut f

or m

ore

accu

rate

mea

sure

men

ts L

eaka

ge b

ack

thro

ugh

the

swit

ch is

in th

e m

icro

am

pere

ran

ge

PT

C R

eset

tabl

e fu

se

Hol

d cu

rren

t 5

00m

AT

rip

curr

ent

100

0mA

Adj

usta

ble

outp

ut a

nd li

mit

atio

ns

- T

he D

EB

UG

GE

R c

an a

djus

t the

out

put v

olta

ge o

f th

e re

gula

tor

betw

een

125

V a

nd 5

1V

to th

e ta

rget

-

The

vol

tage

out

put i

s li

mit

ed b

y th

e in

put (

US

B)

whi

ch c

an v

ary

betw

een

440

V to

52

5V-

The

leve

l shi

fter

s ha

ve a

min

imal

vol

tage

leve

l of

165

V a

nd w

ill l

imit

the

min

imum

ope

ratin

g vo

ltage

all

owed

for

the

targ

et to

sti

ll a

llow

com

mun

icat

ion

- T

he M

IC94

163

has

a m

inim

al v

olat

ege

leve

l of

170

V a

nd w

ill l

imit

the

min

imum

vol

tage

del

iver

ed to

the

targ

et

- F

irm

war

e co

nfig

urat

ion

wil

l lim

it th

e vo

ltage

ran

ge to

be

wit

hin

the

the

targ

et s

peci

fica

tion

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 35

82 Assembly DrawingFigure 8-2 AVR128DB48 Curiosity Nano Assembly Drawing Top

+

Cb

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20001 PAC20002 COC200

PAC20101 PAC20102 COC201

PAC20201 PAC20202 COC202 PAC20301

PAC20302 COC203

PAC20401

PAC20402 COC204

PAC20502

PAC20501 COC205

PAC20601

PAC20602 COC206 PAC20701

PAC20702 COC207 PAD10002 PAD10001 COD100

PAD20002

PAD20001 COD200

PAF10002

PAF10001 COF100

PAJ10002 PAJ10001 COJ100

PAJ10101 PAJ10102 COJ101

PAJ10201

PAJ10202

PAJ10203

PAJ10204

PAJ10205

PAJ10206 COJ102

PAJ10506

PAJ10507 PAJ10509

PAJ10508 PAJ105010

PAJ105011 PAJ10505

PAJ10504

PAJ10503

PAJ10502

PAJ10501

PAJ10500

COJ105

PAJ200056 PAJ200053

PAJ200028 PAJ20002 PAJ20001

PAJ200051 PAJ200050 PAJ200052 PAJ200049 PAJ200048 PAJ200047 PAJ200046 PAJ200045 PAJ200044 PAJ200043 PAJ200042 PAJ200041 PAJ200040 PAJ200039 PAJ200038 PAJ200037 PAJ200036 PAJ200035 PAJ200034 PAJ200033 PAJ200032 PAJ200031 PAJ200030 PAJ200029

PAJ20003 PAJ20004 PAJ20005 PAJ20006 PAJ20007 PAJ20008 PAJ20009 PAJ200010 PAJ200011 PAJ200012 PAJ200013 PAJ200014 PAJ200015 PAJ200016 PAJ200017 PAJ200018 PAJ200019 PAJ200020 PAJ200021 PAJ200022 PAJ200023 PAJ200026 PAJ200025 PAJ200024 PAJ200027

PAJ200054 PAJ200055 PAJ20000

COJ200

PAJ20102 PAJ20101 COJ201

PAJ20202 PAJ20201 COJ202

PAJ20302 PAJ20301 COJ203

PAJ20402 PAJ20401 COJ204

PAJ20502 PAJ20501 COJ205

PAJ20602 PAJ20601 COJ206 PAJ20702 PAJ20701 COJ207

PAJ20802 PAJ20801 COJ208

PAJ20902 PAJ20901 COJ209

PAJ21001 PAJ21002 PAJ21005 COJ210

PAJ21102 PAJ21101 PAJ21105 COJ211

PAJ21202 PAJ21201 COJ212

PAJ21301 PAJ21302 PAJ21305 COJ213

PAJ21401 PAJ21402 PAJ21405 COJ214

PAJ21502 PAJ21501 COJ215

PAJ21602 PAJ21601 COJ216 PAJ21702 PAJ21701 COJ217

COLABEL1

PAQ10101 PAQ10102 PAQ10103 PAQ10100

COQ101 PAR10002

PAR10001 COR100 PAR10101 PAR10102 COR101

PAR10202 PAR10201 COR102

PAR10302 PAR10301 COR103

PAR10401 PAR10402 COR104

PAR10502

PAR10501 COR105

PAR10601 PAR10602 COR106

PAR10702 PAR10701 COR107

PAR10801

PAR10802 COR108

PAR10901 PAR10902 COR109

PAR11001 PAR11002 COR110

PAR11101 PAR11102 COR111

PAR11201 PAR11202 COR112

PAR11302 PAR11301 COR113

PAR20001 PAR20002 COR200 PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203 PAR20401 PAR20402 COR204

PASW20003

PASW20004 PASW20002

PASW20001 COSW200

PATP10001 COTP100

PATP10101 COTP101 PAU100033

PAU100032 PAU100031 PAU100030 PAU100029 PAU100028 PAU100027 PAU100026 PAU100025 PAU100024

PAU100023

PAU100022

PAU100021

PAU100020

PAU100019

PAU100018

PAU100017 PAU100016 PAU100015 PAU100014 PAU100013 PAU100012 PAU100011 PAU100010

PAU10001

PAU10002

PAU10003

PAU10004

PAU10005

PAU10006

PAU10007

PAU10008 PAU10009

COU100

PAU10107

PAU10104 PAU10105 PAU10106

PAU10103 PAU10102 PAU10101 PAU10100 COU101 PAU10207

PAU10204 PAU10205

PAU10206

PAU10203 PAU10202

PAU10201

COU102

PAU10306

PAU10305 PAU10304 PAU10303

PAU10302 PAU10301 PAU10300

COU103

PAU10406

PAU10405 PAU10404 PAU10403

PAU10402 PAU10401 PAU10400

COU104

PAU10506

PAU10505 PAU10504 PAU10503

PAU10502 PAU10501 PAU10500

COU105

PAU10606

PAU10605 PAU10604 PAU10603

PAU10602 PAU10601 PAU10600

COU106

PAU10706

PAU10705 PAU10704 PAU10703

PAU10702 PAU10701 PAU10700

COU107

PAU1080A1 PAU1080A2

PAU1080B1 PAU1080B2

PAU1080C1 PAU1080C2 COU108

PAU20001 PAU20002 PAU20003 PAU20004 PAU20005 PAU20006 PAU20007 PAU20008 PAU20009 PAU200010 PAU200011 PAU200012 PAU200013 PAU200014 PAU200015 PAU200016 PAU200017 PAU200018 PAU200019 PAU200020 PAU200021 PAU200022 PAU200023 PAU200024 PAU200025 PAU200026 PAU200027 PAU200028 PAU200029 PAU200030 PAU200031 PAU200032 PAU200033 PAU200034 PAU200035 PAU200036

PAU200037 PAU200038 PAU200039 PAU200040 PAU200041 PAU200042 PAU200043 PAU200044 PAU200045 PAU200046 PAU200047 PAU200048

COU200

PAXC20001

PAXC20002 COXC200

PAXC20101 PAXC20102

PAXC20103 PAXC20104 COXC201

Figure 8-3 AVR128DB48 Curiosity Nano Assembly Drawing Bottom

tcR

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20001 PAC20002 COC200

PAC20101 PAC20102 COC201

PAC20201 PAC20202 COC202 PAC20301

PAC20302 COC203

PAC20401

PAC20402 COC204

PAC20502

PAC20501 COC205

PAC20601

PAC20602 COC206 PAC20701

PAC20702 COC207 PAD10002 PAD10001 COD100

PAD20002

PAD20001 COD200

PAF10002

PAF10001 COF100

PAJ10002 PAJ10001 COJ100

PAJ10101 PAJ10102 COJ101

PAJ10201

PAJ10202

PAJ10203

PAJ10204

PAJ10205

PAJ10206 COJ102

PAJ10506

PAJ10507 PAJ10509

PAJ10508 PAJ105010

PAJ105011 PAJ10505

PAJ10504

PAJ10503

PAJ10502

PAJ10501

PAJ10500

COJ105

PAJ200056 PAJ200053

PAJ200028 PAJ20002 PAJ20001

PAJ200051 PAJ200050 PAJ200052 PAJ200049 PAJ200048 PAJ200047 PAJ200046 PAJ200045 PAJ200044 PAJ200043 PAJ200042 PAJ200041 PAJ200040 PAJ200039 PAJ200038 PAJ200037 PAJ200036 PAJ200035 PAJ200034 PAJ200033 PAJ200032 PAJ200031 PAJ200030 PAJ200029

PAJ20003 PAJ20004 PAJ20005 PAJ20006 PAJ20007 PAJ20008 PAJ20009 PAJ200010 PAJ200011 PAJ200012 PAJ200013 PAJ200014 PAJ200015 PAJ200016 PAJ200017 PAJ200018 PAJ200019 PAJ200020 PAJ200021 PAJ200022 PAJ200023 PAJ200026 PAJ200025 PAJ200024 PAJ200027

PAJ200054 PAJ200055 PAJ20000

COJ200

PAJ20102 PAJ20101 COJ201

PAJ20202 PAJ20201 COJ202

PAJ20302 PAJ20301 COJ203

PAJ20402 PAJ20401 COJ204

PAJ20502 PAJ20501 COJ205

PAJ20602 PAJ20601 COJ206 PAJ20702 PAJ20701 COJ207

PAJ20802 PAJ20801 COJ208

PAJ20902 PAJ20901 COJ209

PAJ21001 PAJ21002 PAJ21005 COJ210

PAJ21102 PAJ21101 PAJ21105 COJ211

PAJ21202 PAJ21201 COJ212

PAJ21301 PAJ21302 PAJ21305 COJ213

PAJ21401 PAJ21402 PAJ21405 COJ214

PAJ21502 PAJ21501 COJ215

PAJ21602 PAJ21601 COJ216 PAJ21702 PAJ21701 COJ217

COLABEL1

PAQ10101 PAQ10102 PAQ10103 PAQ10100

COQ101 PAR10002

PAR10001 COR100 PAR10101 PAR10102 COR101

PAR10202 PAR10201 COR102

PAR10302 PAR10301 COR103

PAR10401 PAR10402 COR104

PAR10502

PAR10501 COR105

PAR10601 PAR10602 COR106

PAR10702 PAR10701 COR107

PAR10801

PAR10802 COR108

PAR10901 PAR10902 COR109

PAR11001 PAR11002 COR110

PAR11101 PAR11102 COR111

PAR11201 PAR11202 COR112

PAR11302 PAR11301 COR113

PAR20001 PAR20002 COR200 PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203 PAR20401 PAR20402 COR204

PASW20003

PASW20004 PASW20002

PASW20001 COSW200

PATP10001 COTP100

PATP10101 COTP101 PAU100033

PAU100032 PAU100031 PAU100030 PAU100029 PAU100028 PAU100027 PAU100026 PAU100025 PAU100024

PAU100023

PAU100022

PAU100021

PAU100020

PAU100019

PAU100018

PAU100017 PAU100016 PAU100015 PAU100014 PAU100013 PAU100012 PAU100011 PAU100010

PAU10001

PAU10002

PAU10003

PAU10004

PAU10005

PAU10006

PAU10007

PAU10008 PAU10009

COU100

PAU10107

PAU10104 PAU10105 PAU10106

PAU10103 PAU10102 PAU10101 PAU10100 COU101 PAU10207

PAU10204 PAU10205

PAU10206

PAU10203 PAU10202

PAU10201

COU102

PAU10306

PAU10305 PAU10304 PAU10303

PAU10302 PAU10301 PAU10300

COU103

PAU10406

PAU10405 PAU10404 PAU10403

PAU10402 PAU10401 PAU10400

COU104

PAU10506

PAU10505 PAU10504 PAU10503

PAU10502 PAU10501 PAU10500

COU105

PAU10606

PAU10605 PAU10604 PAU10603

PAU10602 PAU10601 PAU10600

COU106

PAU10706

PAU10705 PAU10704 PAU10703

PAU10702 PAU10701 PAU10700

COU107

PAU1080A1 PAU1080A2

PAU1080B1 PAU1080B2

PAU1080C1 PAU1080C2 COU108

PAU20001 PAU20002 PAU20003 PAU20004 PAU20005 PAU20006 PAU20007 PAU20008 PAU20009 PAU200010 PAU200011 PAU200012 PAU200013 PAU200014 PAU200015 PAU200016 PAU200017 PAU200018 PAU200019 PAU200020 PAU200021 PAU200022 PAU200023 PAU200024 PAU200025 PAU200026 PAU200027 PAU200028 PAU200029 PAU200030 PAU200031 PAU200032 PAU200033 PAU200034 PAU200035 PAU200036

PAU200037 PAU200038 PAU200039 PAU200040 PAU200041 PAU200042 PAU200043 PAU200044 PAU200045 PAU200046 PAU200047 PAU200048

COU200

PAXC20001

PAXC20002 COXC200

PAXC20101 PAXC20102

PAXC20103 PAXC20104 COXC201

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 36

83 Curiosity Nano Base for Click boardstrade

Figure 8-4 AVR128DB48 Curiosity Nano Pinout Mapping

US

B

DE

BU

GG

ER

AV

R1

28

DB

48

SW

0

LE

D0

PS

LE

DNC

NC

ID

ID

CDC RX

CDCRX

USART3 TX

PB0

CDC TX

CDCTX

USART3 RX

PB1

DBG1

DBG1

PB3

LED0

DBG2

DBG2

PB2

SW0

PF4

PF4

USART2 TX

PF5

PF5

USART2 RX

PA2

PA2

TWI0 SDA

PA3

PA3

TWI0 SCL

PA4

PA4

SPI0 MOSI

PA5

PA5

SPI0 MISO

PA6

PA6

SPI0 SCK

PA7

PA7

SPI0 SS

GND

GND

PB0

PB0

USART3 TX

CDC RX

PB1

PB1

USART3 RX

CDC TX

PF2

PF2

PF3

PF3

PC0

PC0

PC1

PC1

PC2

PC2

PC3

PC3

GND

GND

(PA0)

(PA0)

XTALHF1

(PA1)

(PA1)

XTALHF2

PB2

PB2

SW0

PB3

PB3

LED0

VBUS

VBUS

VOFF

VOFF

DBG3

DBG3

PF6

DBG0

DBG0

UPDI

GND

GND

VTG

VTG

PD6

PD6

AIN6

PD3

PD3

AIN3

OP0 INN

PD2

PD2

AIN2

OP0 OUT

TCA0 WO2

PD1

PD1

AIN1

OP0 INP

TCA0 WO1

PD0

PD0

AIN0

TCA0 WO0

PD7

PD7

AIN7

OP1 INN

PD5

PD5

AIN5

OP1 OUT

PD4

PD4

AIN4

OP1 INP

GND

GND

PE3

PE3

OP2 INN

PE2

PE2

OP2 OUT

PE1

PE1

OP2 INP

PE0

PE0

PC7

PC7

PC6

PC6

PC5

PC5

PC4

PC4

GND

GND

PB5

PB5

PB4

PB4

(PF1)

(PF1)

XTAL32K2

(PF0)

(PF0)

XTAL32K1

DE

BU

GG

ER

AV

R1

28

DB

48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

MVIO

OPAMP

Shared pin

AV

R1

28

DB

48

Cu

rio

sity

Na

no

1

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

2

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

3

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

Xp

lain

ed

Pro

Ext

en

sio

nE

XT

11

2

19

20

Cu

rio

sity

Na

no

Ba

sefo

r cl

ick

bo

ard

sT

M

PD4

PD0

PD6

PD3

PA7

PF5

PA6

PF4

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

PD5

PD1

PF3

PF2

PE2

PB1

PA6

PB0

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

PD7

PD2

PE1

PE0

PE3

PF5

PA6

PF4

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

ID

GND

PD5

PD7

PF3

PE1

PD1

PD2

PF2

PE3

PA2

PA3

PB1

PB0

PE2

PA4

PA5

PA6

GND

+33V

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 37

84 Disconnecting the On-board DebuggerThe on-board debugger and level shifters can be completely disconnected from the AVR128DB48

The block diagram below shows all connections between the debugger and the AVR128DB48 The rounded boxesrepresent connections to the board edge The signal names shown are also printed in silkscreen on the bottom sideof the board

To disconnect the debugger cut the straps shown in Figure 8-6

Attention  Cutting the GPIO straps to the on-board debugger will disable the virtual serial portprogramming debugging and data streaming Cutting the power supply strap will disconnect the on-boardpower supply

Tip  Any connection that is cut can be reconnected using solder Alternatively a 0Ω 0402 resistor can bemounted

Tip  When the debugger is disconnected an external debugger can be connected to holes shown in Figure 8-6 Details about connecting an external debugger are described in 46 Connecting ExternalDebuggers

Figure 8-5  On-Board Debugger Connections Block Diagram

DE

BU

GG

ER

TARGETLevel-Shift

PA04PA06PA07PA08PA16PA00PA01

USB

DIR x 5

VCC_P3V3

VBUS

VC

C_L

EV

EL

VC

C_T

AR

GE

TDBG0DBG1DBG2DBG3CDC TXCDC RX

CDC RX

CDC TX

DBG3

DBG2

DBG1

DBG0

GPIO straps

LDO

VOFF

LDO

VBUS VTG

VCC_EDGE

Power Supply strap Target Power strap

UART RXUART TX

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 38

Figure 8-6 On-Board Debugger Connection Cut Straps

GPIO straps (bottom side) Power Supply strap (top side)

85 Getting Started with IARIAR Embedded Workbenchreg for AVRreg is a proprietary high-efficiency compiler not based on GCC Programming anddebugging of AVR128DB48 Curiosity Nano is supported in IARtrade Embedded Workbench for AVR using the Atmel-ICEinterface Some initial settings must be set up in the project to get the programming and debugging to work

The following steps will explain how to get your project ready for programming and debugging

1 Make sure you have opened the project you want to configure Open the OPTIONS dialog for the project2 In the category General Options select the Target tab Select the device for the project or if not listed the

core of the device as shown in Figure 8-73 In the category Debugger select the Setup tab Select Atmel-ICE as the driver as shown in Figure 8-84 In the category Debugger gt Atmel-ICE select the Atmel-ICE 1 tab Select UPDI as the interface and

optionally select the UPDI frequency as shown in Figure 8-9

Info  If the selection of Debug Port (mentioned in step 4) is grayed out the interface is preselected andthe user can skip this configuration step

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 39

Figure 8-7 Select Target Device

Figure 8-8 Select Debugger

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 40

Figure 8-9 Configure Interface

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 41

The Microchip Website

Microchip provides online support via our website at wwwmicrochipcom This website is used to make files andinformation easily available to customers Some of the content available includes

bull Product Support ndash Data sheets and errata application notes and sample programs design resources userrsquosguides and hardware support documents latest software releases and archived software

bull General Technical Support ndash Frequently Asked Questions (FAQs) technical support requests onlinediscussion groups Microchip design partner program member listing

bull Business of Microchip ndash Product selector and ordering guides latest Microchip press releases listing ofseminars and events listings of Microchip sales offices distributors and factory representatives

Product Change Notification Service

Microchiprsquos product change notification service helps keep customers current on Microchip products Subscribers willreceive email notification whenever there are changes updates revisions or errata related to a specified productfamily or development tool of interest

To register go to wwwmicrochipcompcn and follow the registration instructions

Customer Support

Users of Microchip products can receive assistance through several channels

bull Distributor or Representativebull Local Sales Officebull Embedded Solutions Engineer (ESE)bull Technical Support

Customers should contact their distributor representative or ESE for support Local sales offices are also available tohelp customers A listing of sales offices and locations is included in this document

Technical support is available through the website at wwwmicrochipcomsupport

Microchip Devices Code Protection Feature

Note the following details of the code protection feature on Microchip devices

bull Microchip products meet the specifications contained in their particular Microchip Data Sheetbull Microchip believes that its family of products is secure when used in the intended manner and under normal

conditionsbull There are dishonest and possibly illegal methods being used in attempts to breach the code protection features

of the Microchip devices We believe that these methods require using the Microchip products in a manneroutside the operating specifications contained in Microchiprsquos Data Sheets Attempts to breach these codeprotection features most likely cannot be accomplished without violating Microchiprsquos intellectual property rights

bull Microchip is willing to work with any customer who is concerned about the integrity of its codebull Neither Microchip nor any other semiconductor manufacturer can guarantee the security of its code Code

protection does not mean that we are guaranteeing the product is ldquounbreakablerdquo Code protection is constantlyevolving We at Microchip are committed to continuously improving the code protection features of our productsAttempts to break Microchiprsquos code protection feature may be a violation of the Digital Millennium Copyright ActIf such acts allow unauthorized access to your software or other copyrighted work you may have a right to suefor relief under that Act

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 42

Legal Notice

Information contained in this publication is provided for the sole purpose of designing with and using Microchipproducts Information regarding device applications and the like is provided only for your convenience and may besuperseded by updates It is your responsibility to ensure that your application meets with your specifications

THIS INFORMATION IS PROVIDED BY MICROCHIP ldquoAS ISrdquo MICROCHIP MAKES NO REPRESENTATIONS ORWARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED WRITTEN OR ORAL STATUTORY OROTHERWISE RELATED TO THE INFORMATION INCLUDING BUT NOT LIMITED TO ANY IMPLIEDWARRANTIES OF NON-INFRINGEMENT MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSEOR WARRANTIES RELATED TO ITS CONDITION QUALITY OR PERFORMANCE

IN NO EVENT WILL MICROCHIP BE LIABLE FOR ANY INDIRECT SPECIAL PUNITIVE INCIDENTAL ORCONSEQUENTIAL LOSS DAMAGE COST OR EXPENSE OF ANY KIND WHATSOEVER RELATED TO THEINFORMATION OR ITS USE HOWEVER CAUSED EVEN IF MICROCHIP HAS BEEN ADVISED OF THEPOSSIBILITY OR THE DAMAGES ARE FORESEEABLE TO THE FULLEST EXTENT ALLOWED BY LAWMICROCHIPS TOTAL LIABILITY ON ALL CLAIMS IN ANY WAY RELATED TO THE INFORMATION OR ITS USEWILL NOT EXCEED THE AMOUNT OF FEES IF ANY THAT YOU HAVE PAID DIRECTLY TO MICROCHIP FORTHE INFORMATION Use of Microchip devices in life support andor safety applications is entirely at the buyerrsquos riskand the buyer agrees to defend indemnify and hold harmless Microchip from any and all damages claims suits orexpenses resulting from such use No licenses are conveyed implicitly or otherwise under any Microchip intellectualproperty rights unless otherwise stated

Trademarks

The Microchip name and logo the Microchip logo Adaptec AnyRate AVR AVR logo AVR Freaks BesTimeBitCloud chipKIT chipKIT logo CryptoMemory CryptoRF dsPIC FlashFlex flexPWR HELDO IGLOO JukeBloxKeeLoq Kleer LANCheck LinkMD maXStylus maXTouch MediaLB megaAVR Microsemi Microsemi logo MOSTMOST logo MPLAB OptoLyzer PackeTime PIC picoPower PICSTART PIC32 logo PolarFire Prochip DesignerQTouch SAM-BA SenGenuity SpyNIC SST SST Logo SuperFlash Symmetricom SyncServer TachyonTempTrackr TimeSource tinyAVR UNIO Vectron and XMEGA are registered trademarks of Microchip TechnologyIncorporated in the USA and other countries

APT ClockWorks The Embedded Control Solutions Company EtherSynch FlashTec Hyper Speed ControlHyperLight Load IntelliMOS Libero motorBench mTouch Powermite 3 Precision Edge ProASIC ProASIC PlusProASIC Plus logo Quiet-Wire SmartFusion SyncWorld Temux TimeCesium TimeHub TimePictra TimeProviderVite WinPath and ZL are registered trademarks of Microchip Technology Incorporated in the USA

Adjacent Key Suppression AKS Analog-for-the-Digital Age Any Capacitor AnyIn AnyOut BlueSky BodyComCodeGuard CryptoAuthentication CryptoAutomotive CryptoCompanion CryptoController dsPICDEMdsPICDEMnet Dynamic Average Matching DAM ECAN EtherGREEN In-Circuit Serial Programming ICSPINICnet Inter-Chip Connectivity JitterBlocker KleerNet KleerNet logo memBrain Mindi MiWi MPASM MPFMPLAB Certified logo MPLIB MPLINK MultiTRAK NetDetach Omniscient Code Generation PICDEMPICDEMnet PICkit PICtail PowerSmart PureSilicon QMatrix REAL ICE Ripple Blocker SAM-ICE Serial QuadIO SMART-IS SQI SuperSwitcher SuperSwitcher II Total Endurance TSHARC USBCheck VariSenseViewSpan WiperLock Wireless DNA and ZENA are trademarks of Microchip Technology Incorporated in the USAand other countries

SQTP is a service mark of Microchip Technology Incorporated in the USA

The Adaptec logo Frequency on Demand Silicon Storage Technology and Symmcom are registered trademarks ofMicrochip Technology Inc in other countries

GestIC is a registered trademark of Microchip Technology Germany II GmbH amp Co KG a subsidiary of MicrochipTechnology Inc in other countries

All other trademarks mentioned herein are property of their respective companiescopy 2020 Microchip Technology Incorporated Printed in the USA All Rights Reserved

ISBN 978-1-5224-6667-3

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 43

Quality Management SystemFor information regarding Microchiprsquos Quality Management Systems please visit wwwmicrochipcomquality

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 44

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupportwwwmicrochipcomsupportWeb AddresswwwmicrochipcomAtlantaDuluth GATel 678-957-9614Fax 678-957-1455Austin TXTel 512-257-3370BostonWestborough MATel 774-760-0087Fax 774-760-0088ChicagoItasca ILTel 630-285-0071Fax 630-285-0075DallasAddison TXTel 972-818-7423Fax 972-818-2924DetroitNovi MITel 248-848-4000Houston TXTel 281-894-5983IndianapolisNoblesville INTel 317-773-8323Fax 317-773-5453Tel 317-536-2380Los AngelesMission Viejo CATel 949-462-9523Fax 949-462-9608Tel 951-273-7800Raleigh NCTel 919-844-7510New York NYTel 631-435-6000San Jose CATel 408-735-9110Tel 408-436-4270Canada - TorontoTel 905-695-1980Fax 905-695-2078

Australia - SydneyTel 61-2-9868-6733China - BeijingTel 86-10-8569-7000China - ChengduTel 86-28-8665-5511China - ChongqingTel 86-23-8980-9588China - DongguanTel 86-769-8702-9880China - GuangzhouTel 86-20-8755-8029China - HangzhouTel 86-571-8792-8115China - Hong Kong SARTel 852-2943-5100China - NanjingTel 86-25-8473-2460China - QingdaoTel 86-532-8502-7355China - ShanghaiTel 86-21-3326-8000China - ShenyangTel 86-24-2334-2829China - ShenzhenTel 86-755-8864-2200China - SuzhouTel 86-186-6233-1526China - WuhanTel 86-27-5980-5300China - XianTel 86-29-8833-7252China - XiamenTel 86-592-2388138China - ZhuhaiTel 86-756-3210040

India - BangaloreTel 91-80-3090-4444India - New DelhiTel 91-11-4160-8631India - PuneTel 91-20-4121-0141Japan - OsakaTel 81-6-6152-7160Japan - TokyoTel 81-3-6880- 3770Korea - DaeguTel 82-53-744-4301Korea - SeoulTel 82-2-554-7200Malaysia - Kuala LumpurTel 60-3-7651-7906Malaysia - PenangTel 60-4-227-8870Philippines - ManilaTel 63-2-634-9065SingaporeTel 65-6334-8870Taiwan - Hsin ChuTel 886-3-577-8366Taiwan - KaohsiungTel 886-7-213-7830Taiwan - TaipeiTel 886-2-2508-8600Thailand - BangkokTel 66-2-694-1351Vietnam - Ho Chi MinhTel 84-28-5448-2100

Austria - WelsTel 43-7242-2244-39Fax 43-7242-2244-393Denmark - CopenhagenTel 45-4485-5910Fax 45-4485-2829Finland - EspooTel 358-9-4520-820France - ParisTel 33-1-69-53-63-20Fax 33-1-69-30-90-79Germany - GarchingTel 49-8931-9700Germany - HaanTel 49-2129-3766400Germany - HeilbronnTel 49-7131-72400Germany - KarlsruheTel 49-721-625370Germany - MunichTel 49-89-627-144-0Fax 49-89-627-144-44Germany - RosenheimTel 49-8031-354-560Israel - RarsquoananaTel 972-9-744-7705Italy - MilanTel 39-0331-742611Fax 39-0331-466781Italy - PadovaTel 39-049-7625286Netherlands - DrunenTel 31-416-690399Fax 31-416-690340Norway - TrondheimTel 47-72884388Poland - WarsawTel 48-22-3325737Romania - BucharestTel 40-21-407-87-50Spain - MadridTel 34-91-708-08-90Fax 34-91-708-08-91Sweden - GothenbergTel 46-31-704-60-40Sweden - StockholmTel 46-8-5090-4654UK - WokinghamTel 44-118-921-5800Fax 44-118-921-5820

Worldwide Sales and Service

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 45

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Board Overview
      • 2 Getting Started
        • 21 Quick Start
          • 211 Driver Installation
          • 212 Kit Window
          • 213 MPLABreg X IDE Device Family Packs
          • 214 Atmel Studio 7 Device Family Pack
            • 22 Design Documentation and Relevant Links
              • 3 Preprogrammed Application
              • 4 Curiosity Nano
                • 41 On-Board Debugger Overview
                  • 411 Debugger
                  • 412 Virtual Serial Port (CDC)
                    • 4121 Overview
                    • 4122 Operating System Support
                    • 4123 Limitations
                    • 4124 Signaling
                    • 4125 Advanced Use
                      • 413 Mass Storage Device
                        • 4131 Mass Storage Device Implementation
                        • 4132 Limitations of Drag-and-Drop Programming
                        • 4133 Special Commands
                          • 414 Data Gateway Interface (DGI)
                            • 4141 Debug GPIO
                            • 4142 Timestamping
                                • 42 Curiosity Nano Standard Pinout
                                • 43 Power Supply
                                  • 431 Target Regulator
                                  • 432 External Supply
                                  • 433 VBUS Output Pin
                                  • 434 Power Supply Exceptions
                                    • 44 Low-Power Measurement
                                    • 45 Programming External Microcontrollers
                                      • 451 Supported Devices
                                      • 452 Software Configuration
                                      • 453 Hardware Modifications
                                      • 454 Connecting to External Microcontrollers
                                        • 46 Connecting External Debuggers
                                          • 5 Hardware User Guide
                                            • 51 Connectors
                                              • 511 AVR128DB48 Curiosity Nano Pinout
                                              • 512 Using Pin Headers
                                              • 513 Multi-Voltage IO
                                              • 514 Operational Amplifiers
                                                • 52 Peripherals
                                                  • 521 LED
                                                  • 522 Mechanical Switch
                                                  • 523 32768 kHz Crystal
                                                  • 524 1600 MHz Crystal
                                                  • 525 On-Board Debugger Implementation
                                                    • 5251 On-Board Debugger Connections
                                                      • 6 Hardware Revision History and Known Issues
                                                        • 61 Identifying Product ID and Revision
                                                        • 62 Revision 3
                                                        • 63 Revision 2
                                                          • 7 Document Revision History
                                                          • 8 Appendix
                                                            • 81 Schematic
                                                            • 82 Assembly Drawing
                                                            • 83 Curiosity Nano Base for Click boardstrade
                                                            • 84 Disconnecting the On-board Debugger
                                                            • 85 Getting Started with IAR
                                                              • The Microchip Website
                                                              • Product Change Notification Service
                                                              • Customer Support
                                                              • Microchip Devices Code Protection Feature
                                                              • Legal Notice
                                                              • Trademarks
                                                              • Quality Management System
                                                              • Worldwide Sales and Service
Page 36: AVR128DB48 Curiosity Nano Hardware User Guideww1.microchip.com/downloads/en/DeviceDoc/AVR128DB48-Curiosit… · 4. Curiosity Nano Curiosity Nano is an evaluation platform of small

82 Assembly DrawingFigure 8-2 AVR128DB48 Curiosity Nano Assembly Drawing Top

+

Cb

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20001 PAC20002 COC200

PAC20101 PAC20102 COC201

PAC20201 PAC20202 COC202 PAC20301

PAC20302 COC203

PAC20401

PAC20402 COC204

PAC20502

PAC20501 COC205

PAC20601

PAC20602 COC206 PAC20701

PAC20702 COC207 PAD10002 PAD10001 COD100

PAD20002

PAD20001 COD200

PAF10002

PAF10001 COF100

PAJ10002 PAJ10001 COJ100

PAJ10101 PAJ10102 COJ101

PAJ10201

PAJ10202

PAJ10203

PAJ10204

PAJ10205

PAJ10206 COJ102

PAJ10506

PAJ10507 PAJ10509

PAJ10508 PAJ105010

PAJ105011 PAJ10505

PAJ10504

PAJ10503

PAJ10502

PAJ10501

PAJ10500

COJ105

PAJ200056 PAJ200053

PAJ200028 PAJ20002 PAJ20001

PAJ200051 PAJ200050 PAJ200052 PAJ200049 PAJ200048 PAJ200047 PAJ200046 PAJ200045 PAJ200044 PAJ200043 PAJ200042 PAJ200041 PAJ200040 PAJ200039 PAJ200038 PAJ200037 PAJ200036 PAJ200035 PAJ200034 PAJ200033 PAJ200032 PAJ200031 PAJ200030 PAJ200029

PAJ20003 PAJ20004 PAJ20005 PAJ20006 PAJ20007 PAJ20008 PAJ20009 PAJ200010 PAJ200011 PAJ200012 PAJ200013 PAJ200014 PAJ200015 PAJ200016 PAJ200017 PAJ200018 PAJ200019 PAJ200020 PAJ200021 PAJ200022 PAJ200023 PAJ200026 PAJ200025 PAJ200024 PAJ200027

PAJ200054 PAJ200055 PAJ20000

COJ200

PAJ20102 PAJ20101 COJ201

PAJ20202 PAJ20201 COJ202

PAJ20302 PAJ20301 COJ203

PAJ20402 PAJ20401 COJ204

PAJ20502 PAJ20501 COJ205

PAJ20602 PAJ20601 COJ206 PAJ20702 PAJ20701 COJ207

PAJ20802 PAJ20801 COJ208

PAJ20902 PAJ20901 COJ209

PAJ21001 PAJ21002 PAJ21005 COJ210

PAJ21102 PAJ21101 PAJ21105 COJ211

PAJ21202 PAJ21201 COJ212

PAJ21301 PAJ21302 PAJ21305 COJ213

PAJ21401 PAJ21402 PAJ21405 COJ214

PAJ21502 PAJ21501 COJ215

PAJ21602 PAJ21601 COJ216 PAJ21702 PAJ21701 COJ217

COLABEL1

PAQ10101 PAQ10102 PAQ10103 PAQ10100

COQ101 PAR10002

PAR10001 COR100 PAR10101 PAR10102 COR101

PAR10202 PAR10201 COR102

PAR10302 PAR10301 COR103

PAR10401 PAR10402 COR104

PAR10502

PAR10501 COR105

PAR10601 PAR10602 COR106

PAR10702 PAR10701 COR107

PAR10801

PAR10802 COR108

PAR10901 PAR10902 COR109

PAR11001 PAR11002 COR110

PAR11101 PAR11102 COR111

PAR11201 PAR11202 COR112

PAR11302 PAR11301 COR113

PAR20001 PAR20002 COR200 PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203 PAR20401 PAR20402 COR204

PASW20003

PASW20004 PASW20002

PASW20001 COSW200

PATP10001 COTP100

PATP10101 COTP101 PAU100033

PAU100032 PAU100031 PAU100030 PAU100029 PAU100028 PAU100027 PAU100026 PAU100025 PAU100024

PAU100023

PAU100022

PAU100021

PAU100020

PAU100019

PAU100018

PAU100017 PAU100016 PAU100015 PAU100014 PAU100013 PAU100012 PAU100011 PAU100010

PAU10001

PAU10002

PAU10003

PAU10004

PAU10005

PAU10006

PAU10007

PAU10008 PAU10009

COU100

PAU10107

PAU10104 PAU10105 PAU10106

PAU10103 PAU10102 PAU10101 PAU10100 COU101 PAU10207

PAU10204 PAU10205

PAU10206

PAU10203 PAU10202

PAU10201

COU102

PAU10306

PAU10305 PAU10304 PAU10303

PAU10302 PAU10301 PAU10300

COU103

PAU10406

PAU10405 PAU10404 PAU10403

PAU10402 PAU10401 PAU10400

COU104

PAU10506

PAU10505 PAU10504 PAU10503

PAU10502 PAU10501 PAU10500

COU105

PAU10606

PAU10605 PAU10604 PAU10603

PAU10602 PAU10601 PAU10600

COU106

PAU10706

PAU10705 PAU10704 PAU10703

PAU10702 PAU10701 PAU10700

COU107

PAU1080A1 PAU1080A2

PAU1080B1 PAU1080B2

PAU1080C1 PAU1080C2 COU108

PAU20001 PAU20002 PAU20003 PAU20004 PAU20005 PAU20006 PAU20007 PAU20008 PAU20009 PAU200010 PAU200011 PAU200012 PAU200013 PAU200014 PAU200015 PAU200016 PAU200017 PAU200018 PAU200019 PAU200020 PAU200021 PAU200022 PAU200023 PAU200024 PAU200025 PAU200026 PAU200027 PAU200028 PAU200029 PAU200030 PAU200031 PAU200032 PAU200033 PAU200034 PAU200035 PAU200036

PAU200037 PAU200038 PAU200039 PAU200040 PAU200041 PAU200042 PAU200043 PAU200044 PAU200045 PAU200046 PAU200047 PAU200048

COU200

PAXC20001

PAXC20002 COXC200

PAXC20101 PAXC20102

PAXC20103 PAXC20104 COXC201

Figure 8-3 AVR128DB48 Curiosity Nano Assembly Drawing Bottom

tcR

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20001 PAC20002 COC200

PAC20101 PAC20102 COC201

PAC20201 PAC20202 COC202 PAC20301

PAC20302 COC203

PAC20401

PAC20402 COC204

PAC20502

PAC20501 COC205

PAC20601

PAC20602 COC206 PAC20701

PAC20702 COC207 PAD10002 PAD10001 COD100

PAD20002

PAD20001 COD200

PAF10002

PAF10001 COF100

PAJ10002 PAJ10001 COJ100

PAJ10101 PAJ10102 COJ101

PAJ10201

PAJ10202

PAJ10203

PAJ10204

PAJ10205

PAJ10206 COJ102

PAJ10506

PAJ10507 PAJ10509

PAJ10508 PAJ105010

PAJ105011 PAJ10505

PAJ10504

PAJ10503

PAJ10502

PAJ10501

PAJ10500

COJ105

PAJ200056 PAJ200053

PAJ200028 PAJ20002 PAJ20001

PAJ200051 PAJ200050 PAJ200052 PAJ200049 PAJ200048 PAJ200047 PAJ200046 PAJ200045 PAJ200044 PAJ200043 PAJ200042 PAJ200041 PAJ200040 PAJ200039 PAJ200038 PAJ200037 PAJ200036 PAJ200035 PAJ200034 PAJ200033 PAJ200032 PAJ200031 PAJ200030 PAJ200029

PAJ20003 PAJ20004 PAJ20005 PAJ20006 PAJ20007 PAJ20008 PAJ20009 PAJ200010 PAJ200011 PAJ200012 PAJ200013 PAJ200014 PAJ200015 PAJ200016 PAJ200017 PAJ200018 PAJ200019 PAJ200020 PAJ200021 PAJ200022 PAJ200023 PAJ200026 PAJ200025 PAJ200024 PAJ200027

PAJ200054 PAJ200055 PAJ20000

COJ200

PAJ20102 PAJ20101 COJ201

PAJ20202 PAJ20201 COJ202

PAJ20302 PAJ20301 COJ203

PAJ20402 PAJ20401 COJ204

PAJ20502 PAJ20501 COJ205

PAJ20602 PAJ20601 COJ206 PAJ20702 PAJ20701 COJ207

PAJ20802 PAJ20801 COJ208

PAJ20902 PAJ20901 COJ209

PAJ21001 PAJ21002 PAJ21005 COJ210

PAJ21102 PAJ21101 PAJ21105 COJ211

PAJ21202 PAJ21201 COJ212

PAJ21301 PAJ21302 PAJ21305 COJ213

PAJ21401 PAJ21402 PAJ21405 COJ214

PAJ21502 PAJ21501 COJ215

PAJ21602 PAJ21601 COJ216 PAJ21702 PAJ21701 COJ217

COLABEL1

PAQ10101 PAQ10102 PAQ10103 PAQ10100

COQ101 PAR10002

PAR10001 COR100 PAR10101 PAR10102 COR101

PAR10202 PAR10201 COR102

PAR10302 PAR10301 COR103

PAR10401 PAR10402 COR104

PAR10502

PAR10501 COR105

PAR10601 PAR10602 COR106

PAR10702 PAR10701 COR107

PAR10801

PAR10802 COR108

PAR10901 PAR10902 COR109

PAR11001 PAR11002 COR110

PAR11101 PAR11102 COR111

PAR11201 PAR11202 COR112

PAR11302 PAR11301 COR113

PAR20001 PAR20002 COR200 PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203 PAR20401 PAR20402 COR204

PASW20003

PASW20004 PASW20002

PASW20001 COSW200

PATP10001 COTP100

PATP10101 COTP101 PAU100033

PAU100032 PAU100031 PAU100030 PAU100029 PAU100028 PAU100027 PAU100026 PAU100025 PAU100024

PAU100023

PAU100022

PAU100021

PAU100020

PAU100019

PAU100018

PAU100017 PAU100016 PAU100015 PAU100014 PAU100013 PAU100012 PAU100011 PAU100010

PAU10001

PAU10002

PAU10003

PAU10004

PAU10005

PAU10006

PAU10007

PAU10008 PAU10009

COU100

PAU10107

PAU10104 PAU10105 PAU10106

PAU10103 PAU10102 PAU10101 PAU10100 COU101 PAU10207

PAU10204 PAU10205

PAU10206

PAU10203 PAU10202

PAU10201

COU102

PAU10306

PAU10305 PAU10304 PAU10303

PAU10302 PAU10301 PAU10300

COU103

PAU10406

PAU10405 PAU10404 PAU10403

PAU10402 PAU10401 PAU10400

COU104

PAU10506

PAU10505 PAU10504 PAU10503

PAU10502 PAU10501 PAU10500

COU105

PAU10606

PAU10605 PAU10604 PAU10603

PAU10602 PAU10601 PAU10600

COU106

PAU10706

PAU10705 PAU10704 PAU10703

PAU10702 PAU10701 PAU10700

COU107

PAU1080A1 PAU1080A2

PAU1080B1 PAU1080B2

PAU1080C1 PAU1080C2 COU108

PAU20001 PAU20002 PAU20003 PAU20004 PAU20005 PAU20006 PAU20007 PAU20008 PAU20009 PAU200010 PAU200011 PAU200012 PAU200013 PAU200014 PAU200015 PAU200016 PAU200017 PAU200018 PAU200019 PAU200020 PAU200021 PAU200022 PAU200023 PAU200024 PAU200025 PAU200026 PAU200027 PAU200028 PAU200029 PAU200030 PAU200031 PAU200032 PAU200033 PAU200034 PAU200035 PAU200036

PAU200037 PAU200038 PAU200039 PAU200040 PAU200041 PAU200042 PAU200043 PAU200044 PAU200045 PAU200046 PAU200047 PAU200048

COU200

PAXC20001

PAXC20002 COXC200

PAXC20101 PAXC20102

PAXC20103 PAXC20104 COXC201

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 36

83 Curiosity Nano Base for Click boardstrade

Figure 8-4 AVR128DB48 Curiosity Nano Pinout Mapping

US

B

DE

BU

GG

ER

AV

R1

28

DB

48

SW

0

LE

D0

PS

LE

DNC

NC

ID

ID

CDC RX

CDCRX

USART3 TX

PB0

CDC TX

CDCTX

USART3 RX

PB1

DBG1

DBG1

PB3

LED0

DBG2

DBG2

PB2

SW0

PF4

PF4

USART2 TX

PF5

PF5

USART2 RX

PA2

PA2

TWI0 SDA

PA3

PA3

TWI0 SCL

PA4

PA4

SPI0 MOSI

PA5

PA5

SPI0 MISO

PA6

PA6

SPI0 SCK

PA7

PA7

SPI0 SS

GND

GND

PB0

PB0

USART3 TX

CDC RX

PB1

PB1

USART3 RX

CDC TX

PF2

PF2

PF3

PF3

PC0

PC0

PC1

PC1

PC2

PC2

PC3

PC3

GND

GND

(PA0)

(PA0)

XTALHF1

(PA1)

(PA1)

XTALHF2

PB2

PB2

SW0

PB3

PB3

LED0

VBUS

VBUS

VOFF

VOFF

DBG3

DBG3

PF6

DBG0

DBG0

UPDI

GND

GND

VTG

VTG

PD6

PD6

AIN6

PD3

PD3

AIN3

OP0 INN

PD2

PD2

AIN2

OP0 OUT

TCA0 WO2

PD1

PD1

AIN1

OP0 INP

TCA0 WO1

PD0

PD0

AIN0

TCA0 WO0

PD7

PD7

AIN7

OP1 INN

PD5

PD5

AIN5

OP1 OUT

PD4

PD4

AIN4

OP1 INP

GND

GND

PE3

PE3

OP2 INN

PE2

PE2

OP2 OUT

PE1

PE1

OP2 INP

PE0

PE0

PC7

PC7

PC6

PC6

PC5

PC5

PC4

PC4

GND

GND

PB5

PB5

PB4

PB4

(PF1)

(PF1)

XTAL32K2

(PF0)

(PF0)

XTAL32K1

DE

BU

GG

ER

AV

R1

28

DB

48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

MVIO

OPAMP

Shared pin

AV

R1

28

DB

48

Cu

rio

sity

Na

no

1

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

2

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

3

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

Xp

lain

ed

Pro

Ext

en

sio

nE

XT

11

2

19

20

Cu

rio

sity

Na

no

Ba

sefo

r cl

ick

bo

ard

sT

M

PD4

PD0

PD6

PD3

PA7

PF5

PA6

PF4

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

PD5

PD1

PF3

PF2

PE2

PB1

PA6

PB0

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

PD7

PD2

PE1

PE0

PE3

PF5

PA6

PF4

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

ID

GND

PD5

PD7

PF3

PE1

PD1

PD2

PF2

PE3

PA2

PA3

PB1

PB0

PE2

PA4

PA5

PA6

GND

+33V

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 37

84 Disconnecting the On-board DebuggerThe on-board debugger and level shifters can be completely disconnected from the AVR128DB48

The block diagram below shows all connections between the debugger and the AVR128DB48 The rounded boxesrepresent connections to the board edge The signal names shown are also printed in silkscreen on the bottom sideof the board

To disconnect the debugger cut the straps shown in Figure 8-6

Attention  Cutting the GPIO straps to the on-board debugger will disable the virtual serial portprogramming debugging and data streaming Cutting the power supply strap will disconnect the on-boardpower supply

Tip  Any connection that is cut can be reconnected using solder Alternatively a 0Ω 0402 resistor can bemounted

Tip  When the debugger is disconnected an external debugger can be connected to holes shown in Figure 8-6 Details about connecting an external debugger are described in 46 Connecting ExternalDebuggers

Figure 8-5  On-Board Debugger Connections Block Diagram

DE

BU

GG

ER

TARGETLevel-Shift

PA04PA06PA07PA08PA16PA00PA01

USB

DIR x 5

VCC_P3V3

VBUS

VC

C_L

EV

EL

VC

C_T

AR

GE

TDBG0DBG1DBG2DBG3CDC TXCDC RX

CDC RX

CDC TX

DBG3

DBG2

DBG1

DBG0

GPIO straps

LDO

VOFF

LDO

VBUS VTG

VCC_EDGE

Power Supply strap Target Power strap

UART RXUART TX

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 38

Figure 8-6 On-Board Debugger Connection Cut Straps

GPIO straps (bottom side) Power Supply strap (top side)

85 Getting Started with IARIAR Embedded Workbenchreg for AVRreg is a proprietary high-efficiency compiler not based on GCC Programming anddebugging of AVR128DB48 Curiosity Nano is supported in IARtrade Embedded Workbench for AVR using the Atmel-ICEinterface Some initial settings must be set up in the project to get the programming and debugging to work

The following steps will explain how to get your project ready for programming and debugging

1 Make sure you have opened the project you want to configure Open the OPTIONS dialog for the project2 In the category General Options select the Target tab Select the device for the project or if not listed the

core of the device as shown in Figure 8-73 In the category Debugger select the Setup tab Select Atmel-ICE as the driver as shown in Figure 8-84 In the category Debugger gt Atmel-ICE select the Atmel-ICE 1 tab Select UPDI as the interface and

optionally select the UPDI frequency as shown in Figure 8-9

Info  If the selection of Debug Port (mentioned in step 4) is grayed out the interface is preselected andthe user can skip this configuration step

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 39

Figure 8-7 Select Target Device

Figure 8-8 Select Debugger

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 40

Figure 8-9 Configure Interface

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 41

The Microchip Website

Microchip provides online support via our website at wwwmicrochipcom This website is used to make files andinformation easily available to customers Some of the content available includes

bull Product Support ndash Data sheets and errata application notes and sample programs design resources userrsquosguides and hardware support documents latest software releases and archived software

bull General Technical Support ndash Frequently Asked Questions (FAQs) technical support requests onlinediscussion groups Microchip design partner program member listing

bull Business of Microchip ndash Product selector and ordering guides latest Microchip press releases listing ofseminars and events listings of Microchip sales offices distributors and factory representatives

Product Change Notification Service

Microchiprsquos product change notification service helps keep customers current on Microchip products Subscribers willreceive email notification whenever there are changes updates revisions or errata related to a specified productfamily or development tool of interest

To register go to wwwmicrochipcompcn and follow the registration instructions

Customer Support

Users of Microchip products can receive assistance through several channels

bull Distributor or Representativebull Local Sales Officebull Embedded Solutions Engineer (ESE)bull Technical Support

Customers should contact their distributor representative or ESE for support Local sales offices are also available tohelp customers A listing of sales offices and locations is included in this document

Technical support is available through the website at wwwmicrochipcomsupport

Microchip Devices Code Protection Feature

Note the following details of the code protection feature on Microchip devices

bull Microchip products meet the specifications contained in their particular Microchip Data Sheetbull Microchip believes that its family of products is secure when used in the intended manner and under normal

conditionsbull There are dishonest and possibly illegal methods being used in attempts to breach the code protection features

of the Microchip devices We believe that these methods require using the Microchip products in a manneroutside the operating specifications contained in Microchiprsquos Data Sheets Attempts to breach these codeprotection features most likely cannot be accomplished without violating Microchiprsquos intellectual property rights

bull Microchip is willing to work with any customer who is concerned about the integrity of its codebull Neither Microchip nor any other semiconductor manufacturer can guarantee the security of its code Code

protection does not mean that we are guaranteeing the product is ldquounbreakablerdquo Code protection is constantlyevolving We at Microchip are committed to continuously improving the code protection features of our productsAttempts to break Microchiprsquos code protection feature may be a violation of the Digital Millennium Copyright ActIf such acts allow unauthorized access to your software or other copyrighted work you may have a right to suefor relief under that Act

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 42

Legal Notice

Information contained in this publication is provided for the sole purpose of designing with and using Microchipproducts Information regarding device applications and the like is provided only for your convenience and may besuperseded by updates It is your responsibility to ensure that your application meets with your specifications

THIS INFORMATION IS PROVIDED BY MICROCHIP ldquoAS ISrdquo MICROCHIP MAKES NO REPRESENTATIONS ORWARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED WRITTEN OR ORAL STATUTORY OROTHERWISE RELATED TO THE INFORMATION INCLUDING BUT NOT LIMITED TO ANY IMPLIEDWARRANTIES OF NON-INFRINGEMENT MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSEOR WARRANTIES RELATED TO ITS CONDITION QUALITY OR PERFORMANCE

IN NO EVENT WILL MICROCHIP BE LIABLE FOR ANY INDIRECT SPECIAL PUNITIVE INCIDENTAL ORCONSEQUENTIAL LOSS DAMAGE COST OR EXPENSE OF ANY KIND WHATSOEVER RELATED TO THEINFORMATION OR ITS USE HOWEVER CAUSED EVEN IF MICROCHIP HAS BEEN ADVISED OF THEPOSSIBILITY OR THE DAMAGES ARE FORESEEABLE TO THE FULLEST EXTENT ALLOWED BY LAWMICROCHIPS TOTAL LIABILITY ON ALL CLAIMS IN ANY WAY RELATED TO THE INFORMATION OR ITS USEWILL NOT EXCEED THE AMOUNT OF FEES IF ANY THAT YOU HAVE PAID DIRECTLY TO MICROCHIP FORTHE INFORMATION Use of Microchip devices in life support andor safety applications is entirely at the buyerrsquos riskand the buyer agrees to defend indemnify and hold harmless Microchip from any and all damages claims suits orexpenses resulting from such use No licenses are conveyed implicitly or otherwise under any Microchip intellectualproperty rights unless otherwise stated

Trademarks

The Microchip name and logo the Microchip logo Adaptec AnyRate AVR AVR logo AVR Freaks BesTimeBitCloud chipKIT chipKIT logo CryptoMemory CryptoRF dsPIC FlashFlex flexPWR HELDO IGLOO JukeBloxKeeLoq Kleer LANCheck LinkMD maXStylus maXTouch MediaLB megaAVR Microsemi Microsemi logo MOSTMOST logo MPLAB OptoLyzer PackeTime PIC picoPower PICSTART PIC32 logo PolarFire Prochip DesignerQTouch SAM-BA SenGenuity SpyNIC SST SST Logo SuperFlash Symmetricom SyncServer TachyonTempTrackr TimeSource tinyAVR UNIO Vectron and XMEGA are registered trademarks of Microchip TechnologyIncorporated in the USA and other countries

APT ClockWorks The Embedded Control Solutions Company EtherSynch FlashTec Hyper Speed ControlHyperLight Load IntelliMOS Libero motorBench mTouch Powermite 3 Precision Edge ProASIC ProASIC PlusProASIC Plus logo Quiet-Wire SmartFusion SyncWorld Temux TimeCesium TimeHub TimePictra TimeProviderVite WinPath and ZL are registered trademarks of Microchip Technology Incorporated in the USA

Adjacent Key Suppression AKS Analog-for-the-Digital Age Any Capacitor AnyIn AnyOut BlueSky BodyComCodeGuard CryptoAuthentication CryptoAutomotive CryptoCompanion CryptoController dsPICDEMdsPICDEMnet Dynamic Average Matching DAM ECAN EtherGREEN In-Circuit Serial Programming ICSPINICnet Inter-Chip Connectivity JitterBlocker KleerNet KleerNet logo memBrain Mindi MiWi MPASM MPFMPLAB Certified logo MPLIB MPLINK MultiTRAK NetDetach Omniscient Code Generation PICDEMPICDEMnet PICkit PICtail PowerSmart PureSilicon QMatrix REAL ICE Ripple Blocker SAM-ICE Serial QuadIO SMART-IS SQI SuperSwitcher SuperSwitcher II Total Endurance TSHARC USBCheck VariSenseViewSpan WiperLock Wireless DNA and ZENA are trademarks of Microchip Technology Incorporated in the USAand other countries

SQTP is a service mark of Microchip Technology Incorporated in the USA

The Adaptec logo Frequency on Demand Silicon Storage Technology and Symmcom are registered trademarks ofMicrochip Technology Inc in other countries

GestIC is a registered trademark of Microchip Technology Germany II GmbH amp Co KG a subsidiary of MicrochipTechnology Inc in other countries

All other trademarks mentioned herein are property of their respective companiescopy 2020 Microchip Technology Incorporated Printed in the USA All Rights Reserved

ISBN 978-1-5224-6667-3

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 43

Quality Management SystemFor information regarding Microchiprsquos Quality Management Systems please visit wwwmicrochipcomquality

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 44

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupportwwwmicrochipcomsupportWeb AddresswwwmicrochipcomAtlantaDuluth GATel 678-957-9614Fax 678-957-1455Austin TXTel 512-257-3370BostonWestborough MATel 774-760-0087Fax 774-760-0088ChicagoItasca ILTel 630-285-0071Fax 630-285-0075DallasAddison TXTel 972-818-7423Fax 972-818-2924DetroitNovi MITel 248-848-4000Houston TXTel 281-894-5983IndianapolisNoblesville INTel 317-773-8323Fax 317-773-5453Tel 317-536-2380Los AngelesMission Viejo CATel 949-462-9523Fax 949-462-9608Tel 951-273-7800Raleigh NCTel 919-844-7510New York NYTel 631-435-6000San Jose CATel 408-735-9110Tel 408-436-4270Canada - TorontoTel 905-695-1980Fax 905-695-2078

Australia - SydneyTel 61-2-9868-6733China - BeijingTel 86-10-8569-7000China - ChengduTel 86-28-8665-5511China - ChongqingTel 86-23-8980-9588China - DongguanTel 86-769-8702-9880China - GuangzhouTel 86-20-8755-8029China - HangzhouTel 86-571-8792-8115China - Hong Kong SARTel 852-2943-5100China - NanjingTel 86-25-8473-2460China - QingdaoTel 86-532-8502-7355China - ShanghaiTel 86-21-3326-8000China - ShenyangTel 86-24-2334-2829China - ShenzhenTel 86-755-8864-2200China - SuzhouTel 86-186-6233-1526China - WuhanTel 86-27-5980-5300China - XianTel 86-29-8833-7252China - XiamenTel 86-592-2388138China - ZhuhaiTel 86-756-3210040

India - BangaloreTel 91-80-3090-4444India - New DelhiTel 91-11-4160-8631India - PuneTel 91-20-4121-0141Japan - OsakaTel 81-6-6152-7160Japan - TokyoTel 81-3-6880- 3770Korea - DaeguTel 82-53-744-4301Korea - SeoulTel 82-2-554-7200Malaysia - Kuala LumpurTel 60-3-7651-7906Malaysia - PenangTel 60-4-227-8870Philippines - ManilaTel 63-2-634-9065SingaporeTel 65-6334-8870Taiwan - Hsin ChuTel 886-3-577-8366Taiwan - KaohsiungTel 886-7-213-7830Taiwan - TaipeiTel 886-2-2508-8600Thailand - BangkokTel 66-2-694-1351Vietnam - Ho Chi MinhTel 84-28-5448-2100

Austria - WelsTel 43-7242-2244-39Fax 43-7242-2244-393Denmark - CopenhagenTel 45-4485-5910Fax 45-4485-2829Finland - EspooTel 358-9-4520-820France - ParisTel 33-1-69-53-63-20Fax 33-1-69-30-90-79Germany - GarchingTel 49-8931-9700Germany - HaanTel 49-2129-3766400Germany - HeilbronnTel 49-7131-72400Germany - KarlsruheTel 49-721-625370Germany - MunichTel 49-89-627-144-0Fax 49-89-627-144-44Germany - RosenheimTel 49-8031-354-560Israel - RarsquoananaTel 972-9-744-7705Italy - MilanTel 39-0331-742611Fax 39-0331-466781Italy - PadovaTel 39-049-7625286Netherlands - DrunenTel 31-416-690399Fax 31-416-690340Norway - TrondheimTel 47-72884388Poland - WarsawTel 48-22-3325737Romania - BucharestTel 40-21-407-87-50Spain - MadridTel 34-91-708-08-90Fax 34-91-708-08-91Sweden - GothenbergTel 46-31-704-60-40Sweden - StockholmTel 46-8-5090-4654UK - WokinghamTel 44-118-921-5800Fax 44-118-921-5820

Worldwide Sales and Service

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 45

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Board Overview
      • 2 Getting Started
        • 21 Quick Start
          • 211 Driver Installation
          • 212 Kit Window
          • 213 MPLABreg X IDE Device Family Packs
          • 214 Atmel Studio 7 Device Family Pack
            • 22 Design Documentation and Relevant Links
              • 3 Preprogrammed Application
              • 4 Curiosity Nano
                • 41 On-Board Debugger Overview
                  • 411 Debugger
                  • 412 Virtual Serial Port (CDC)
                    • 4121 Overview
                    • 4122 Operating System Support
                    • 4123 Limitations
                    • 4124 Signaling
                    • 4125 Advanced Use
                      • 413 Mass Storage Device
                        • 4131 Mass Storage Device Implementation
                        • 4132 Limitations of Drag-and-Drop Programming
                        • 4133 Special Commands
                          • 414 Data Gateway Interface (DGI)
                            • 4141 Debug GPIO
                            • 4142 Timestamping
                                • 42 Curiosity Nano Standard Pinout
                                • 43 Power Supply
                                  • 431 Target Regulator
                                  • 432 External Supply
                                  • 433 VBUS Output Pin
                                  • 434 Power Supply Exceptions
                                    • 44 Low-Power Measurement
                                    • 45 Programming External Microcontrollers
                                      • 451 Supported Devices
                                      • 452 Software Configuration
                                      • 453 Hardware Modifications
                                      • 454 Connecting to External Microcontrollers
                                        • 46 Connecting External Debuggers
                                          • 5 Hardware User Guide
                                            • 51 Connectors
                                              • 511 AVR128DB48 Curiosity Nano Pinout
                                              • 512 Using Pin Headers
                                              • 513 Multi-Voltage IO
                                              • 514 Operational Amplifiers
                                                • 52 Peripherals
                                                  • 521 LED
                                                  • 522 Mechanical Switch
                                                  • 523 32768 kHz Crystal
                                                  • 524 1600 MHz Crystal
                                                  • 525 On-Board Debugger Implementation
                                                    • 5251 On-Board Debugger Connections
                                                      • 6 Hardware Revision History and Known Issues
                                                        • 61 Identifying Product ID and Revision
                                                        • 62 Revision 3
                                                        • 63 Revision 2
                                                          • 7 Document Revision History
                                                          • 8 Appendix
                                                            • 81 Schematic
                                                            • 82 Assembly Drawing
                                                            • 83 Curiosity Nano Base for Click boardstrade
                                                            • 84 Disconnecting the On-board Debugger
                                                            • 85 Getting Started with IAR
                                                              • The Microchip Website
                                                              • Product Change Notification Service
                                                              • Customer Support
                                                              • Microchip Devices Code Protection Feature
                                                              • Legal Notice
                                                              • Trademarks
                                                              • Quality Management System
                                                              • Worldwide Sales and Service
Page 37: AVR128DB48 Curiosity Nano Hardware User Guideww1.microchip.com/downloads/en/DeviceDoc/AVR128DB48-Curiosit… · 4. Curiosity Nano Curiosity Nano is an evaluation platform of small

83 Curiosity Nano Base for Click boardstrade

Figure 8-4 AVR128DB48 Curiosity Nano Pinout Mapping

US

B

DE

BU

GG

ER

AV

R1

28

DB

48

SW

0

LE

D0

PS

LE

DNC

NC

ID

ID

CDC RX

CDCRX

USART3 TX

PB0

CDC TX

CDCTX

USART3 RX

PB1

DBG1

DBG1

PB3

LED0

DBG2

DBG2

PB2

SW0

PF4

PF4

USART2 TX

PF5

PF5

USART2 RX

PA2

PA2

TWI0 SDA

PA3

PA3

TWI0 SCL

PA4

PA4

SPI0 MOSI

PA5

PA5

SPI0 MISO

PA6

PA6

SPI0 SCK

PA7

PA7

SPI0 SS

GND

GND

PB0

PB0

USART3 TX

CDC RX

PB1

PB1

USART3 RX

CDC TX

PF2

PF2

PF3

PF3

PC0

PC0

PC1

PC1

PC2

PC2

PC3

PC3

GND

GND

(PA0)

(PA0)

XTALHF1

(PA1)

(PA1)

XTALHF2

PB2

PB2

SW0

PB3

PB3

LED0

VBUS

VBUS

VOFF

VOFF

DBG3

DBG3

PF6

DBG0

DBG0

UPDI

GND

GND

VTG

VTG

PD6

PD6

AIN6

PD3

PD3

AIN3

OP0 INN

PD2

PD2

AIN2

OP0 OUT

TCA0 WO2

PD1

PD1

AIN1

OP0 INP

TCA0 WO1

PD0

PD0

AIN0

TCA0 WO0

PD7

PD7

AIN7

OP1 INN

PD5

PD5

AIN5

OP1 OUT

PD4

PD4

AIN4

OP1 INP

GND

GND

PE3

PE3

OP2 INN

PE2

PE2

OP2 OUT

PE1

PE1

OP2 INP

PE0

PE0

PC7

PC7

PC6

PC6

PC5

PC5

PC4

PC4

GND

GND

PB5

PB5

PB4

PB4

(PF1)

(PF1)

XTAL32K2

(PF0)

(PF0)

XTAL32K1

DE

BU

GG

ER

AV

R1

28

DB

48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

MVIO

OPAMP

Shared pin

AV

R1

28

DB

48

Cu

rio

sity

Na

no

1

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

2

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

3

AN

PW

M

RS

TIN

T

CS

RX

SC

KT

X

MIS

OS

CL

MO

SI

SD

A

+3

3V

+5

V

GN

DG

ND

Xp

lain

ed

Pro

Ext

en

sio

nE

XT

11

2

19

20

Cu

rio

sity

Na

no

Ba

sefo

r cl

ick

bo

ard

sT

M

PD4

PD0

PD6

PD3

PA7

PF5

PA6

PF4

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

PD5

PD1

PF3

PF2

PE2

PB1

PA6

PB0

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

PD7

PD2

PE1

PE0

PE3

PF5

PA6

PF4

PA5

PA3

PA4

PA2

+33V

+5V

GND

GND

ID

GND

PD5

PD7

PF3

PE1

PD1

PD2

PF2

PE3

PA2

PA3

PB1

PB0

PE2

PA4

PA5

PA6

GND

+33V

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 37

84 Disconnecting the On-board DebuggerThe on-board debugger and level shifters can be completely disconnected from the AVR128DB48

The block diagram below shows all connections between the debugger and the AVR128DB48 The rounded boxesrepresent connections to the board edge The signal names shown are also printed in silkscreen on the bottom sideof the board

To disconnect the debugger cut the straps shown in Figure 8-6

Attention  Cutting the GPIO straps to the on-board debugger will disable the virtual serial portprogramming debugging and data streaming Cutting the power supply strap will disconnect the on-boardpower supply

Tip  Any connection that is cut can be reconnected using solder Alternatively a 0Ω 0402 resistor can bemounted

Tip  When the debugger is disconnected an external debugger can be connected to holes shown in Figure 8-6 Details about connecting an external debugger are described in 46 Connecting ExternalDebuggers

Figure 8-5  On-Board Debugger Connections Block Diagram

DE

BU

GG

ER

TARGETLevel-Shift

PA04PA06PA07PA08PA16PA00PA01

USB

DIR x 5

VCC_P3V3

VBUS

VC

C_L

EV

EL

VC

C_T

AR

GE

TDBG0DBG1DBG2DBG3CDC TXCDC RX

CDC RX

CDC TX

DBG3

DBG2

DBG1

DBG0

GPIO straps

LDO

VOFF

LDO

VBUS VTG

VCC_EDGE

Power Supply strap Target Power strap

UART RXUART TX

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 38

Figure 8-6 On-Board Debugger Connection Cut Straps

GPIO straps (bottom side) Power Supply strap (top side)

85 Getting Started with IARIAR Embedded Workbenchreg for AVRreg is a proprietary high-efficiency compiler not based on GCC Programming anddebugging of AVR128DB48 Curiosity Nano is supported in IARtrade Embedded Workbench for AVR using the Atmel-ICEinterface Some initial settings must be set up in the project to get the programming and debugging to work

The following steps will explain how to get your project ready for programming and debugging

1 Make sure you have opened the project you want to configure Open the OPTIONS dialog for the project2 In the category General Options select the Target tab Select the device for the project or if not listed the

core of the device as shown in Figure 8-73 In the category Debugger select the Setup tab Select Atmel-ICE as the driver as shown in Figure 8-84 In the category Debugger gt Atmel-ICE select the Atmel-ICE 1 tab Select UPDI as the interface and

optionally select the UPDI frequency as shown in Figure 8-9

Info  If the selection of Debug Port (mentioned in step 4) is grayed out the interface is preselected andthe user can skip this configuration step

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 39

Figure 8-7 Select Target Device

Figure 8-8 Select Debugger

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 40

Figure 8-9 Configure Interface

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 41

The Microchip Website

Microchip provides online support via our website at wwwmicrochipcom This website is used to make files andinformation easily available to customers Some of the content available includes

bull Product Support ndash Data sheets and errata application notes and sample programs design resources userrsquosguides and hardware support documents latest software releases and archived software

bull General Technical Support ndash Frequently Asked Questions (FAQs) technical support requests onlinediscussion groups Microchip design partner program member listing

bull Business of Microchip ndash Product selector and ordering guides latest Microchip press releases listing ofseminars and events listings of Microchip sales offices distributors and factory representatives

Product Change Notification Service

Microchiprsquos product change notification service helps keep customers current on Microchip products Subscribers willreceive email notification whenever there are changes updates revisions or errata related to a specified productfamily or development tool of interest

To register go to wwwmicrochipcompcn and follow the registration instructions

Customer Support

Users of Microchip products can receive assistance through several channels

bull Distributor or Representativebull Local Sales Officebull Embedded Solutions Engineer (ESE)bull Technical Support

Customers should contact their distributor representative or ESE for support Local sales offices are also available tohelp customers A listing of sales offices and locations is included in this document

Technical support is available through the website at wwwmicrochipcomsupport

Microchip Devices Code Protection Feature

Note the following details of the code protection feature on Microchip devices

bull Microchip products meet the specifications contained in their particular Microchip Data Sheetbull Microchip believes that its family of products is secure when used in the intended manner and under normal

conditionsbull There are dishonest and possibly illegal methods being used in attempts to breach the code protection features

of the Microchip devices We believe that these methods require using the Microchip products in a manneroutside the operating specifications contained in Microchiprsquos Data Sheets Attempts to breach these codeprotection features most likely cannot be accomplished without violating Microchiprsquos intellectual property rights

bull Microchip is willing to work with any customer who is concerned about the integrity of its codebull Neither Microchip nor any other semiconductor manufacturer can guarantee the security of its code Code

protection does not mean that we are guaranteeing the product is ldquounbreakablerdquo Code protection is constantlyevolving We at Microchip are committed to continuously improving the code protection features of our productsAttempts to break Microchiprsquos code protection feature may be a violation of the Digital Millennium Copyright ActIf such acts allow unauthorized access to your software or other copyrighted work you may have a right to suefor relief under that Act

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 42

Legal Notice

Information contained in this publication is provided for the sole purpose of designing with and using Microchipproducts Information regarding device applications and the like is provided only for your convenience and may besuperseded by updates It is your responsibility to ensure that your application meets with your specifications

THIS INFORMATION IS PROVIDED BY MICROCHIP ldquoAS ISrdquo MICROCHIP MAKES NO REPRESENTATIONS ORWARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED WRITTEN OR ORAL STATUTORY OROTHERWISE RELATED TO THE INFORMATION INCLUDING BUT NOT LIMITED TO ANY IMPLIEDWARRANTIES OF NON-INFRINGEMENT MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSEOR WARRANTIES RELATED TO ITS CONDITION QUALITY OR PERFORMANCE

IN NO EVENT WILL MICROCHIP BE LIABLE FOR ANY INDIRECT SPECIAL PUNITIVE INCIDENTAL ORCONSEQUENTIAL LOSS DAMAGE COST OR EXPENSE OF ANY KIND WHATSOEVER RELATED TO THEINFORMATION OR ITS USE HOWEVER CAUSED EVEN IF MICROCHIP HAS BEEN ADVISED OF THEPOSSIBILITY OR THE DAMAGES ARE FORESEEABLE TO THE FULLEST EXTENT ALLOWED BY LAWMICROCHIPS TOTAL LIABILITY ON ALL CLAIMS IN ANY WAY RELATED TO THE INFORMATION OR ITS USEWILL NOT EXCEED THE AMOUNT OF FEES IF ANY THAT YOU HAVE PAID DIRECTLY TO MICROCHIP FORTHE INFORMATION Use of Microchip devices in life support andor safety applications is entirely at the buyerrsquos riskand the buyer agrees to defend indemnify and hold harmless Microchip from any and all damages claims suits orexpenses resulting from such use No licenses are conveyed implicitly or otherwise under any Microchip intellectualproperty rights unless otherwise stated

Trademarks

The Microchip name and logo the Microchip logo Adaptec AnyRate AVR AVR logo AVR Freaks BesTimeBitCloud chipKIT chipKIT logo CryptoMemory CryptoRF dsPIC FlashFlex flexPWR HELDO IGLOO JukeBloxKeeLoq Kleer LANCheck LinkMD maXStylus maXTouch MediaLB megaAVR Microsemi Microsemi logo MOSTMOST logo MPLAB OptoLyzer PackeTime PIC picoPower PICSTART PIC32 logo PolarFire Prochip DesignerQTouch SAM-BA SenGenuity SpyNIC SST SST Logo SuperFlash Symmetricom SyncServer TachyonTempTrackr TimeSource tinyAVR UNIO Vectron and XMEGA are registered trademarks of Microchip TechnologyIncorporated in the USA and other countries

APT ClockWorks The Embedded Control Solutions Company EtherSynch FlashTec Hyper Speed ControlHyperLight Load IntelliMOS Libero motorBench mTouch Powermite 3 Precision Edge ProASIC ProASIC PlusProASIC Plus logo Quiet-Wire SmartFusion SyncWorld Temux TimeCesium TimeHub TimePictra TimeProviderVite WinPath and ZL are registered trademarks of Microchip Technology Incorporated in the USA

Adjacent Key Suppression AKS Analog-for-the-Digital Age Any Capacitor AnyIn AnyOut BlueSky BodyComCodeGuard CryptoAuthentication CryptoAutomotive CryptoCompanion CryptoController dsPICDEMdsPICDEMnet Dynamic Average Matching DAM ECAN EtherGREEN In-Circuit Serial Programming ICSPINICnet Inter-Chip Connectivity JitterBlocker KleerNet KleerNet logo memBrain Mindi MiWi MPASM MPFMPLAB Certified logo MPLIB MPLINK MultiTRAK NetDetach Omniscient Code Generation PICDEMPICDEMnet PICkit PICtail PowerSmart PureSilicon QMatrix REAL ICE Ripple Blocker SAM-ICE Serial QuadIO SMART-IS SQI SuperSwitcher SuperSwitcher II Total Endurance TSHARC USBCheck VariSenseViewSpan WiperLock Wireless DNA and ZENA are trademarks of Microchip Technology Incorporated in the USAand other countries

SQTP is a service mark of Microchip Technology Incorporated in the USA

The Adaptec logo Frequency on Demand Silicon Storage Technology and Symmcom are registered trademarks ofMicrochip Technology Inc in other countries

GestIC is a registered trademark of Microchip Technology Germany II GmbH amp Co KG a subsidiary of MicrochipTechnology Inc in other countries

All other trademarks mentioned herein are property of their respective companiescopy 2020 Microchip Technology Incorporated Printed in the USA All Rights Reserved

ISBN 978-1-5224-6667-3

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 43

Quality Management SystemFor information regarding Microchiprsquos Quality Management Systems please visit wwwmicrochipcomquality

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 44

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupportwwwmicrochipcomsupportWeb AddresswwwmicrochipcomAtlantaDuluth GATel 678-957-9614Fax 678-957-1455Austin TXTel 512-257-3370BostonWestborough MATel 774-760-0087Fax 774-760-0088ChicagoItasca ILTel 630-285-0071Fax 630-285-0075DallasAddison TXTel 972-818-7423Fax 972-818-2924DetroitNovi MITel 248-848-4000Houston TXTel 281-894-5983IndianapolisNoblesville INTel 317-773-8323Fax 317-773-5453Tel 317-536-2380Los AngelesMission Viejo CATel 949-462-9523Fax 949-462-9608Tel 951-273-7800Raleigh NCTel 919-844-7510New York NYTel 631-435-6000San Jose CATel 408-735-9110Tel 408-436-4270Canada - TorontoTel 905-695-1980Fax 905-695-2078

Australia - SydneyTel 61-2-9868-6733China - BeijingTel 86-10-8569-7000China - ChengduTel 86-28-8665-5511China - ChongqingTel 86-23-8980-9588China - DongguanTel 86-769-8702-9880China - GuangzhouTel 86-20-8755-8029China - HangzhouTel 86-571-8792-8115China - Hong Kong SARTel 852-2943-5100China - NanjingTel 86-25-8473-2460China - QingdaoTel 86-532-8502-7355China - ShanghaiTel 86-21-3326-8000China - ShenyangTel 86-24-2334-2829China - ShenzhenTel 86-755-8864-2200China - SuzhouTel 86-186-6233-1526China - WuhanTel 86-27-5980-5300China - XianTel 86-29-8833-7252China - XiamenTel 86-592-2388138China - ZhuhaiTel 86-756-3210040

India - BangaloreTel 91-80-3090-4444India - New DelhiTel 91-11-4160-8631India - PuneTel 91-20-4121-0141Japan - OsakaTel 81-6-6152-7160Japan - TokyoTel 81-3-6880- 3770Korea - DaeguTel 82-53-744-4301Korea - SeoulTel 82-2-554-7200Malaysia - Kuala LumpurTel 60-3-7651-7906Malaysia - PenangTel 60-4-227-8870Philippines - ManilaTel 63-2-634-9065SingaporeTel 65-6334-8870Taiwan - Hsin ChuTel 886-3-577-8366Taiwan - KaohsiungTel 886-7-213-7830Taiwan - TaipeiTel 886-2-2508-8600Thailand - BangkokTel 66-2-694-1351Vietnam - Ho Chi MinhTel 84-28-5448-2100

Austria - WelsTel 43-7242-2244-39Fax 43-7242-2244-393Denmark - CopenhagenTel 45-4485-5910Fax 45-4485-2829Finland - EspooTel 358-9-4520-820France - ParisTel 33-1-69-53-63-20Fax 33-1-69-30-90-79Germany - GarchingTel 49-8931-9700Germany - HaanTel 49-2129-3766400Germany - HeilbronnTel 49-7131-72400Germany - KarlsruheTel 49-721-625370Germany - MunichTel 49-89-627-144-0Fax 49-89-627-144-44Germany - RosenheimTel 49-8031-354-560Israel - RarsquoananaTel 972-9-744-7705Italy - MilanTel 39-0331-742611Fax 39-0331-466781Italy - PadovaTel 39-049-7625286Netherlands - DrunenTel 31-416-690399Fax 31-416-690340Norway - TrondheimTel 47-72884388Poland - WarsawTel 48-22-3325737Romania - BucharestTel 40-21-407-87-50Spain - MadridTel 34-91-708-08-90Fax 34-91-708-08-91Sweden - GothenbergTel 46-31-704-60-40Sweden - StockholmTel 46-8-5090-4654UK - WokinghamTel 44-118-921-5800Fax 44-118-921-5820

Worldwide Sales and Service

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 45

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Board Overview
      • 2 Getting Started
        • 21 Quick Start
          • 211 Driver Installation
          • 212 Kit Window
          • 213 MPLABreg X IDE Device Family Packs
          • 214 Atmel Studio 7 Device Family Pack
            • 22 Design Documentation and Relevant Links
              • 3 Preprogrammed Application
              • 4 Curiosity Nano
                • 41 On-Board Debugger Overview
                  • 411 Debugger
                  • 412 Virtual Serial Port (CDC)
                    • 4121 Overview
                    • 4122 Operating System Support
                    • 4123 Limitations
                    • 4124 Signaling
                    • 4125 Advanced Use
                      • 413 Mass Storage Device
                        • 4131 Mass Storage Device Implementation
                        • 4132 Limitations of Drag-and-Drop Programming
                        • 4133 Special Commands
                          • 414 Data Gateway Interface (DGI)
                            • 4141 Debug GPIO
                            • 4142 Timestamping
                                • 42 Curiosity Nano Standard Pinout
                                • 43 Power Supply
                                  • 431 Target Regulator
                                  • 432 External Supply
                                  • 433 VBUS Output Pin
                                  • 434 Power Supply Exceptions
                                    • 44 Low-Power Measurement
                                    • 45 Programming External Microcontrollers
                                      • 451 Supported Devices
                                      • 452 Software Configuration
                                      • 453 Hardware Modifications
                                      • 454 Connecting to External Microcontrollers
                                        • 46 Connecting External Debuggers
                                          • 5 Hardware User Guide
                                            • 51 Connectors
                                              • 511 AVR128DB48 Curiosity Nano Pinout
                                              • 512 Using Pin Headers
                                              • 513 Multi-Voltage IO
                                              • 514 Operational Amplifiers
                                                • 52 Peripherals
                                                  • 521 LED
                                                  • 522 Mechanical Switch
                                                  • 523 32768 kHz Crystal
                                                  • 524 1600 MHz Crystal
                                                  • 525 On-Board Debugger Implementation
                                                    • 5251 On-Board Debugger Connections
                                                      • 6 Hardware Revision History and Known Issues
                                                        • 61 Identifying Product ID and Revision
                                                        • 62 Revision 3
                                                        • 63 Revision 2
                                                          • 7 Document Revision History
                                                          • 8 Appendix
                                                            • 81 Schematic
                                                            • 82 Assembly Drawing
                                                            • 83 Curiosity Nano Base for Click boardstrade
                                                            • 84 Disconnecting the On-board Debugger
                                                            • 85 Getting Started with IAR
                                                              • The Microchip Website
                                                              • Product Change Notification Service
                                                              • Customer Support
                                                              • Microchip Devices Code Protection Feature
                                                              • Legal Notice
                                                              • Trademarks
                                                              • Quality Management System
                                                              • Worldwide Sales and Service
Page 38: AVR128DB48 Curiosity Nano Hardware User Guideww1.microchip.com/downloads/en/DeviceDoc/AVR128DB48-Curiosit… · 4. Curiosity Nano Curiosity Nano is an evaluation platform of small

84 Disconnecting the On-board DebuggerThe on-board debugger and level shifters can be completely disconnected from the AVR128DB48

The block diagram below shows all connections between the debugger and the AVR128DB48 The rounded boxesrepresent connections to the board edge The signal names shown are also printed in silkscreen on the bottom sideof the board

To disconnect the debugger cut the straps shown in Figure 8-6

Attention  Cutting the GPIO straps to the on-board debugger will disable the virtual serial portprogramming debugging and data streaming Cutting the power supply strap will disconnect the on-boardpower supply

Tip  Any connection that is cut can be reconnected using solder Alternatively a 0Ω 0402 resistor can bemounted

Tip  When the debugger is disconnected an external debugger can be connected to holes shown in Figure 8-6 Details about connecting an external debugger are described in 46 Connecting ExternalDebuggers

Figure 8-5  On-Board Debugger Connections Block Diagram

DE

BU

GG

ER

TARGETLevel-Shift

PA04PA06PA07PA08PA16PA00PA01

USB

DIR x 5

VCC_P3V3

VBUS

VC

C_L

EV

EL

VC

C_T

AR

GE

TDBG0DBG1DBG2DBG3CDC TXCDC RX

CDC RX

CDC TX

DBG3

DBG2

DBG1

DBG0

GPIO straps

LDO

VOFF

LDO

VBUS VTG

VCC_EDGE

Power Supply strap Target Power strap

UART RXUART TX

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 38

Figure 8-6 On-Board Debugger Connection Cut Straps

GPIO straps (bottom side) Power Supply strap (top side)

85 Getting Started with IARIAR Embedded Workbenchreg for AVRreg is a proprietary high-efficiency compiler not based on GCC Programming anddebugging of AVR128DB48 Curiosity Nano is supported in IARtrade Embedded Workbench for AVR using the Atmel-ICEinterface Some initial settings must be set up in the project to get the programming and debugging to work

The following steps will explain how to get your project ready for programming and debugging

1 Make sure you have opened the project you want to configure Open the OPTIONS dialog for the project2 In the category General Options select the Target tab Select the device for the project or if not listed the

core of the device as shown in Figure 8-73 In the category Debugger select the Setup tab Select Atmel-ICE as the driver as shown in Figure 8-84 In the category Debugger gt Atmel-ICE select the Atmel-ICE 1 tab Select UPDI as the interface and

optionally select the UPDI frequency as shown in Figure 8-9

Info  If the selection of Debug Port (mentioned in step 4) is grayed out the interface is preselected andthe user can skip this configuration step

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 39

Figure 8-7 Select Target Device

Figure 8-8 Select Debugger

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 40

Figure 8-9 Configure Interface

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 41

The Microchip Website

Microchip provides online support via our website at wwwmicrochipcom This website is used to make files andinformation easily available to customers Some of the content available includes

bull Product Support ndash Data sheets and errata application notes and sample programs design resources userrsquosguides and hardware support documents latest software releases and archived software

bull General Technical Support ndash Frequently Asked Questions (FAQs) technical support requests onlinediscussion groups Microchip design partner program member listing

bull Business of Microchip ndash Product selector and ordering guides latest Microchip press releases listing ofseminars and events listings of Microchip sales offices distributors and factory representatives

Product Change Notification Service

Microchiprsquos product change notification service helps keep customers current on Microchip products Subscribers willreceive email notification whenever there are changes updates revisions or errata related to a specified productfamily or development tool of interest

To register go to wwwmicrochipcompcn and follow the registration instructions

Customer Support

Users of Microchip products can receive assistance through several channels

bull Distributor or Representativebull Local Sales Officebull Embedded Solutions Engineer (ESE)bull Technical Support

Customers should contact their distributor representative or ESE for support Local sales offices are also available tohelp customers A listing of sales offices and locations is included in this document

Technical support is available through the website at wwwmicrochipcomsupport

Microchip Devices Code Protection Feature

Note the following details of the code protection feature on Microchip devices

bull Microchip products meet the specifications contained in their particular Microchip Data Sheetbull Microchip believes that its family of products is secure when used in the intended manner and under normal

conditionsbull There are dishonest and possibly illegal methods being used in attempts to breach the code protection features

of the Microchip devices We believe that these methods require using the Microchip products in a manneroutside the operating specifications contained in Microchiprsquos Data Sheets Attempts to breach these codeprotection features most likely cannot be accomplished without violating Microchiprsquos intellectual property rights

bull Microchip is willing to work with any customer who is concerned about the integrity of its codebull Neither Microchip nor any other semiconductor manufacturer can guarantee the security of its code Code

protection does not mean that we are guaranteeing the product is ldquounbreakablerdquo Code protection is constantlyevolving We at Microchip are committed to continuously improving the code protection features of our productsAttempts to break Microchiprsquos code protection feature may be a violation of the Digital Millennium Copyright ActIf such acts allow unauthorized access to your software or other copyrighted work you may have a right to suefor relief under that Act

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 42

Legal Notice

Information contained in this publication is provided for the sole purpose of designing with and using Microchipproducts Information regarding device applications and the like is provided only for your convenience and may besuperseded by updates It is your responsibility to ensure that your application meets with your specifications

THIS INFORMATION IS PROVIDED BY MICROCHIP ldquoAS ISrdquo MICROCHIP MAKES NO REPRESENTATIONS ORWARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED WRITTEN OR ORAL STATUTORY OROTHERWISE RELATED TO THE INFORMATION INCLUDING BUT NOT LIMITED TO ANY IMPLIEDWARRANTIES OF NON-INFRINGEMENT MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSEOR WARRANTIES RELATED TO ITS CONDITION QUALITY OR PERFORMANCE

IN NO EVENT WILL MICROCHIP BE LIABLE FOR ANY INDIRECT SPECIAL PUNITIVE INCIDENTAL ORCONSEQUENTIAL LOSS DAMAGE COST OR EXPENSE OF ANY KIND WHATSOEVER RELATED TO THEINFORMATION OR ITS USE HOWEVER CAUSED EVEN IF MICROCHIP HAS BEEN ADVISED OF THEPOSSIBILITY OR THE DAMAGES ARE FORESEEABLE TO THE FULLEST EXTENT ALLOWED BY LAWMICROCHIPS TOTAL LIABILITY ON ALL CLAIMS IN ANY WAY RELATED TO THE INFORMATION OR ITS USEWILL NOT EXCEED THE AMOUNT OF FEES IF ANY THAT YOU HAVE PAID DIRECTLY TO MICROCHIP FORTHE INFORMATION Use of Microchip devices in life support andor safety applications is entirely at the buyerrsquos riskand the buyer agrees to defend indemnify and hold harmless Microchip from any and all damages claims suits orexpenses resulting from such use No licenses are conveyed implicitly or otherwise under any Microchip intellectualproperty rights unless otherwise stated

Trademarks

The Microchip name and logo the Microchip logo Adaptec AnyRate AVR AVR logo AVR Freaks BesTimeBitCloud chipKIT chipKIT logo CryptoMemory CryptoRF dsPIC FlashFlex flexPWR HELDO IGLOO JukeBloxKeeLoq Kleer LANCheck LinkMD maXStylus maXTouch MediaLB megaAVR Microsemi Microsemi logo MOSTMOST logo MPLAB OptoLyzer PackeTime PIC picoPower PICSTART PIC32 logo PolarFire Prochip DesignerQTouch SAM-BA SenGenuity SpyNIC SST SST Logo SuperFlash Symmetricom SyncServer TachyonTempTrackr TimeSource tinyAVR UNIO Vectron and XMEGA are registered trademarks of Microchip TechnologyIncorporated in the USA and other countries

APT ClockWorks The Embedded Control Solutions Company EtherSynch FlashTec Hyper Speed ControlHyperLight Load IntelliMOS Libero motorBench mTouch Powermite 3 Precision Edge ProASIC ProASIC PlusProASIC Plus logo Quiet-Wire SmartFusion SyncWorld Temux TimeCesium TimeHub TimePictra TimeProviderVite WinPath and ZL are registered trademarks of Microchip Technology Incorporated in the USA

Adjacent Key Suppression AKS Analog-for-the-Digital Age Any Capacitor AnyIn AnyOut BlueSky BodyComCodeGuard CryptoAuthentication CryptoAutomotive CryptoCompanion CryptoController dsPICDEMdsPICDEMnet Dynamic Average Matching DAM ECAN EtherGREEN In-Circuit Serial Programming ICSPINICnet Inter-Chip Connectivity JitterBlocker KleerNet KleerNet logo memBrain Mindi MiWi MPASM MPFMPLAB Certified logo MPLIB MPLINK MultiTRAK NetDetach Omniscient Code Generation PICDEMPICDEMnet PICkit PICtail PowerSmart PureSilicon QMatrix REAL ICE Ripple Blocker SAM-ICE Serial QuadIO SMART-IS SQI SuperSwitcher SuperSwitcher II Total Endurance TSHARC USBCheck VariSenseViewSpan WiperLock Wireless DNA and ZENA are trademarks of Microchip Technology Incorporated in the USAand other countries

SQTP is a service mark of Microchip Technology Incorporated in the USA

The Adaptec logo Frequency on Demand Silicon Storage Technology and Symmcom are registered trademarks ofMicrochip Technology Inc in other countries

GestIC is a registered trademark of Microchip Technology Germany II GmbH amp Co KG a subsidiary of MicrochipTechnology Inc in other countries

All other trademarks mentioned herein are property of their respective companiescopy 2020 Microchip Technology Incorporated Printed in the USA All Rights Reserved

ISBN 978-1-5224-6667-3

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 43

Quality Management SystemFor information regarding Microchiprsquos Quality Management Systems please visit wwwmicrochipcomquality

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 44

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupportwwwmicrochipcomsupportWeb AddresswwwmicrochipcomAtlantaDuluth GATel 678-957-9614Fax 678-957-1455Austin TXTel 512-257-3370BostonWestborough MATel 774-760-0087Fax 774-760-0088ChicagoItasca ILTel 630-285-0071Fax 630-285-0075DallasAddison TXTel 972-818-7423Fax 972-818-2924DetroitNovi MITel 248-848-4000Houston TXTel 281-894-5983IndianapolisNoblesville INTel 317-773-8323Fax 317-773-5453Tel 317-536-2380Los AngelesMission Viejo CATel 949-462-9523Fax 949-462-9608Tel 951-273-7800Raleigh NCTel 919-844-7510New York NYTel 631-435-6000San Jose CATel 408-735-9110Tel 408-436-4270Canada - TorontoTel 905-695-1980Fax 905-695-2078

Australia - SydneyTel 61-2-9868-6733China - BeijingTel 86-10-8569-7000China - ChengduTel 86-28-8665-5511China - ChongqingTel 86-23-8980-9588China - DongguanTel 86-769-8702-9880China - GuangzhouTel 86-20-8755-8029China - HangzhouTel 86-571-8792-8115China - Hong Kong SARTel 852-2943-5100China - NanjingTel 86-25-8473-2460China - QingdaoTel 86-532-8502-7355China - ShanghaiTel 86-21-3326-8000China - ShenyangTel 86-24-2334-2829China - ShenzhenTel 86-755-8864-2200China - SuzhouTel 86-186-6233-1526China - WuhanTel 86-27-5980-5300China - XianTel 86-29-8833-7252China - XiamenTel 86-592-2388138China - ZhuhaiTel 86-756-3210040

India - BangaloreTel 91-80-3090-4444India - New DelhiTel 91-11-4160-8631India - PuneTel 91-20-4121-0141Japan - OsakaTel 81-6-6152-7160Japan - TokyoTel 81-3-6880- 3770Korea - DaeguTel 82-53-744-4301Korea - SeoulTel 82-2-554-7200Malaysia - Kuala LumpurTel 60-3-7651-7906Malaysia - PenangTel 60-4-227-8870Philippines - ManilaTel 63-2-634-9065SingaporeTel 65-6334-8870Taiwan - Hsin ChuTel 886-3-577-8366Taiwan - KaohsiungTel 886-7-213-7830Taiwan - TaipeiTel 886-2-2508-8600Thailand - BangkokTel 66-2-694-1351Vietnam - Ho Chi MinhTel 84-28-5448-2100

Austria - WelsTel 43-7242-2244-39Fax 43-7242-2244-393Denmark - CopenhagenTel 45-4485-5910Fax 45-4485-2829Finland - EspooTel 358-9-4520-820France - ParisTel 33-1-69-53-63-20Fax 33-1-69-30-90-79Germany - GarchingTel 49-8931-9700Germany - HaanTel 49-2129-3766400Germany - HeilbronnTel 49-7131-72400Germany - KarlsruheTel 49-721-625370Germany - MunichTel 49-89-627-144-0Fax 49-89-627-144-44Germany - RosenheimTel 49-8031-354-560Israel - RarsquoananaTel 972-9-744-7705Italy - MilanTel 39-0331-742611Fax 39-0331-466781Italy - PadovaTel 39-049-7625286Netherlands - DrunenTel 31-416-690399Fax 31-416-690340Norway - TrondheimTel 47-72884388Poland - WarsawTel 48-22-3325737Romania - BucharestTel 40-21-407-87-50Spain - MadridTel 34-91-708-08-90Fax 34-91-708-08-91Sweden - GothenbergTel 46-31-704-60-40Sweden - StockholmTel 46-8-5090-4654UK - WokinghamTel 44-118-921-5800Fax 44-118-921-5820

Worldwide Sales and Service

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 45

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Board Overview
      • 2 Getting Started
        • 21 Quick Start
          • 211 Driver Installation
          • 212 Kit Window
          • 213 MPLABreg X IDE Device Family Packs
          • 214 Atmel Studio 7 Device Family Pack
            • 22 Design Documentation and Relevant Links
              • 3 Preprogrammed Application
              • 4 Curiosity Nano
                • 41 On-Board Debugger Overview
                  • 411 Debugger
                  • 412 Virtual Serial Port (CDC)
                    • 4121 Overview
                    • 4122 Operating System Support
                    • 4123 Limitations
                    • 4124 Signaling
                    • 4125 Advanced Use
                      • 413 Mass Storage Device
                        • 4131 Mass Storage Device Implementation
                        • 4132 Limitations of Drag-and-Drop Programming
                        • 4133 Special Commands
                          • 414 Data Gateway Interface (DGI)
                            • 4141 Debug GPIO
                            • 4142 Timestamping
                                • 42 Curiosity Nano Standard Pinout
                                • 43 Power Supply
                                  • 431 Target Regulator
                                  • 432 External Supply
                                  • 433 VBUS Output Pin
                                  • 434 Power Supply Exceptions
                                    • 44 Low-Power Measurement
                                    • 45 Programming External Microcontrollers
                                      • 451 Supported Devices
                                      • 452 Software Configuration
                                      • 453 Hardware Modifications
                                      • 454 Connecting to External Microcontrollers
                                        • 46 Connecting External Debuggers
                                          • 5 Hardware User Guide
                                            • 51 Connectors
                                              • 511 AVR128DB48 Curiosity Nano Pinout
                                              • 512 Using Pin Headers
                                              • 513 Multi-Voltage IO
                                              • 514 Operational Amplifiers
                                                • 52 Peripherals
                                                  • 521 LED
                                                  • 522 Mechanical Switch
                                                  • 523 32768 kHz Crystal
                                                  • 524 1600 MHz Crystal
                                                  • 525 On-Board Debugger Implementation
                                                    • 5251 On-Board Debugger Connections
                                                      • 6 Hardware Revision History and Known Issues
                                                        • 61 Identifying Product ID and Revision
                                                        • 62 Revision 3
                                                        • 63 Revision 2
                                                          • 7 Document Revision History
                                                          • 8 Appendix
                                                            • 81 Schematic
                                                            • 82 Assembly Drawing
                                                            • 83 Curiosity Nano Base for Click boardstrade
                                                            • 84 Disconnecting the On-board Debugger
                                                            • 85 Getting Started with IAR
                                                              • The Microchip Website
                                                              • Product Change Notification Service
                                                              • Customer Support
                                                              • Microchip Devices Code Protection Feature
                                                              • Legal Notice
                                                              • Trademarks
                                                              • Quality Management System
                                                              • Worldwide Sales and Service
Page 39: AVR128DB48 Curiosity Nano Hardware User Guideww1.microchip.com/downloads/en/DeviceDoc/AVR128DB48-Curiosit… · 4. Curiosity Nano Curiosity Nano is an evaluation platform of small

Figure 8-6 On-Board Debugger Connection Cut Straps

GPIO straps (bottom side) Power Supply strap (top side)

85 Getting Started with IARIAR Embedded Workbenchreg for AVRreg is a proprietary high-efficiency compiler not based on GCC Programming anddebugging of AVR128DB48 Curiosity Nano is supported in IARtrade Embedded Workbench for AVR using the Atmel-ICEinterface Some initial settings must be set up in the project to get the programming and debugging to work

The following steps will explain how to get your project ready for programming and debugging

1 Make sure you have opened the project you want to configure Open the OPTIONS dialog for the project2 In the category General Options select the Target tab Select the device for the project or if not listed the

core of the device as shown in Figure 8-73 In the category Debugger select the Setup tab Select Atmel-ICE as the driver as shown in Figure 8-84 In the category Debugger gt Atmel-ICE select the Atmel-ICE 1 tab Select UPDI as the interface and

optionally select the UPDI frequency as shown in Figure 8-9

Info  If the selection of Debug Port (mentioned in step 4) is grayed out the interface is preselected andthe user can skip this configuration step

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 39

Figure 8-7 Select Target Device

Figure 8-8 Select Debugger

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 40

Figure 8-9 Configure Interface

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 41

The Microchip Website

Microchip provides online support via our website at wwwmicrochipcom This website is used to make files andinformation easily available to customers Some of the content available includes

bull Product Support ndash Data sheets and errata application notes and sample programs design resources userrsquosguides and hardware support documents latest software releases and archived software

bull General Technical Support ndash Frequently Asked Questions (FAQs) technical support requests onlinediscussion groups Microchip design partner program member listing

bull Business of Microchip ndash Product selector and ordering guides latest Microchip press releases listing ofseminars and events listings of Microchip sales offices distributors and factory representatives

Product Change Notification Service

Microchiprsquos product change notification service helps keep customers current on Microchip products Subscribers willreceive email notification whenever there are changes updates revisions or errata related to a specified productfamily or development tool of interest

To register go to wwwmicrochipcompcn and follow the registration instructions

Customer Support

Users of Microchip products can receive assistance through several channels

bull Distributor or Representativebull Local Sales Officebull Embedded Solutions Engineer (ESE)bull Technical Support

Customers should contact their distributor representative or ESE for support Local sales offices are also available tohelp customers A listing of sales offices and locations is included in this document

Technical support is available through the website at wwwmicrochipcomsupport

Microchip Devices Code Protection Feature

Note the following details of the code protection feature on Microchip devices

bull Microchip products meet the specifications contained in their particular Microchip Data Sheetbull Microchip believes that its family of products is secure when used in the intended manner and under normal

conditionsbull There are dishonest and possibly illegal methods being used in attempts to breach the code protection features

of the Microchip devices We believe that these methods require using the Microchip products in a manneroutside the operating specifications contained in Microchiprsquos Data Sheets Attempts to breach these codeprotection features most likely cannot be accomplished without violating Microchiprsquos intellectual property rights

bull Microchip is willing to work with any customer who is concerned about the integrity of its codebull Neither Microchip nor any other semiconductor manufacturer can guarantee the security of its code Code

protection does not mean that we are guaranteeing the product is ldquounbreakablerdquo Code protection is constantlyevolving We at Microchip are committed to continuously improving the code protection features of our productsAttempts to break Microchiprsquos code protection feature may be a violation of the Digital Millennium Copyright ActIf such acts allow unauthorized access to your software or other copyrighted work you may have a right to suefor relief under that Act

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 42

Legal Notice

Information contained in this publication is provided for the sole purpose of designing with and using Microchipproducts Information regarding device applications and the like is provided only for your convenience and may besuperseded by updates It is your responsibility to ensure that your application meets with your specifications

THIS INFORMATION IS PROVIDED BY MICROCHIP ldquoAS ISrdquo MICROCHIP MAKES NO REPRESENTATIONS ORWARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED WRITTEN OR ORAL STATUTORY OROTHERWISE RELATED TO THE INFORMATION INCLUDING BUT NOT LIMITED TO ANY IMPLIEDWARRANTIES OF NON-INFRINGEMENT MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSEOR WARRANTIES RELATED TO ITS CONDITION QUALITY OR PERFORMANCE

IN NO EVENT WILL MICROCHIP BE LIABLE FOR ANY INDIRECT SPECIAL PUNITIVE INCIDENTAL ORCONSEQUENTIAL LOSS DAMAGE COST OR EXPENSE OF ANY KIND WHATSOEVER RELATED TO THEINFORMATION OR ITS USE HOWEVER CAUSED EVEN IF MICROCHIP HAS BEEN ADVISED OF THEPOSSIBILITY OR THE DAMAGES ARE FORESEEABLE TO THE FULLEST EXTENT ALLOWED BY LAWMICROCHIPS TOTAL LIABILITY ON ALL CLAIMS IN ANY WAY RELATED TO THE INFORMATION OR ITS USEWILL NOT EXCEED THE AMOUNT OF FEES IF ANY THAT YOU HAVE PAID DIRECTLY TO MICROCHIP FORTHE INFORMATION Use of Microchip devices in life support andor safety applications is entirely at the buyerrsquos riskand the buyer agrees to defend indemnify and hold harmless Microchip from any and all damages claims suits orexpenses resulting from such use No licenses are conveyed implicitly or otherwise under any Microchip intellectualproperty rights unless otherwise stated

Trademarks

The Microchip name and logo the Microchip logo Adaptec AnyRate AVR AVR logo AVR Freaks BesTimeBitCloud chipKIT chipKIT logo CryptoMemory CryptoRF dsPIC FlashFlex flexPWR HELDO IGLOO JukeBloxKeeLoq Kleer LANCheck LinkMD maXStylus maXTouch MediaLB megaAVR Microsemi Microsemi logo MOSTMOST logo MPLAB OptoLyzer PackeTime PIC picoPower PICSTART PIC32 logo PolarFire Prochip DesignerQTouch SAM-BA SenGenuity SpyNIC SST SST Logo SuperFlash Symmetricom SyncServer TachyonTempTrackr TimeSource tinyAVR UNIO Vectron and XMEGA are registered trademarks of Microchip TechnologyIncorporated in the USA and other countries

APT ClockWorks The Embedded Control Solutions Company EtherSynch FlashTec Hyper Speed ControlHyperLight Load IntelliMOS Libero motorBench mTouch Powermite 3 Precision Edge ProASIC ProASIC PlusProASIC Plus logo Quiet-Wire SmartFusion SyncWorld Temux TimeCesium TimeHub TimePictra TimeProviderVite WinPath and ZL are registered trademarks of Microchip Technology Incorporated in the USA

Adjacent Key Suppression AKS Analog-for-the-Digital Age Any Capacitor AnyIn AnyOut BlueSky BodyComCodeGuard CryptoAuthentication CryptoAutomotive CryptoCompanion CryptoController dsPICDEMdsPICDEMnet Dynamic Average Matching DAM ECAN EtherGREEN In-Circuit Serial Programming ICSPINICnet Inter-Chip Connectivity JitterBlocker KleerNet KleerNet logo memBrain Mindi MiWi MPASM MPFMPLAB Certified logo MPLIB MPLINK MultiTRAK NetDetach Omniscient Code Generation PICDEMPICDEMnet PICkit PICtail PowerSmart PureSilicon QMatrix REAL ICE Ripple Blocker SAM-ICE Serial QuadIO SMART-IS SQI SuperSwitcher SuperSwitcher II Total Endurance TSHARC USBCheck VariSenseViewSpan WiperLock Wireless DNA and ZENA are trademarks of Microchip Technology Incorporated in the USAand other countries

SQTP is a service mark of Microchip Technology Incorporated in the USA

The Adaptec logo Frequency on Demand Silicon Storage Technology and Symmcom are registered trademarks ofMicrochip Technology Inc in other countries

GestIC is a registered trademark of Microchip Technology Germany II GmbH amp Co KG a subsidiary of MicrochipTechnology Inc in other countries

All other trademarks mentioned herein are property of their respective companiescopy 2020 Microchip Technology Incorporated Printed in the USA All Rights Reserved

ISBN 978-1-5224-6667-3

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 43

Quality Management SystemFor information regarding Microchiprsquos Quality Management Systems please visit wwwmicrochipcomquality

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 44

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupportwwwmicrochipcomsupportWeb AddresswwwmicrochipcomAtlantaDuluth GATel 678-957-9614Fax 678-957-1455Austin TXTel 512-257-3370BostonWestborough MATel 774-760-0087Fax 774-760-0088ChicagoItasca ILTel 630-285-0071Fax 630-285-0075DallasAddison TXTel 972-818-7423Fax 972-818-2924DetroitNovi MITel 248-848-4000Houston TXTel 281-894-5983IndianapolisNoblesville INTel 317-773-8323Fax 317-773-5453Tel 317-536-2380Los AngelesMission Viejo CATel 949-462-9523Fax 949-462-9608Tel 951-273-7800Raleigh NCTel 919-844-7510New York NYTel 631-435-6000San Jose CATel 408-735-9110Tel 408-436-4270Canada - TorontoTel 905-695-1980Fax 905-695-2078

Australia - SydneyTel 61-2-9868-6733China - BeijingTel 86-10-8569-7000China - ChengduTel 86-28-8665-5511China - ChongqingTel 86-23-8980-9588China - DongguanTel 86-769-8702-9880China - GuangzhouTel 86-20-8755-8029China - HangzhouTel 86-571-8792-8115China - Hong Kong SARTel 852-2943-5100China - NanjingTel 86-25-8473-2460China - QingdaoTel 86-532-8502-7355China - ShanghaiTel 86-21-3326-8000China - ShenyangTel 86-24-2334-2829China - ShenzhenTel 86-755-8864-2200China - SuzhouTel 86-186-6233-1526China - WuhanTel 86-27-5980-5300China - XianTel 86-29-8833-7252China - XiamenTel 86-592-2388138China - ZhuhaiTel 86-756-3210040

India - BangaloreTel 91-80-3090-4444India - New DelhiTel 91-11-4160-8631India - PuneTel 91-20-4121-0141Japan - OsakaTel 81-6-6152-7160Japan - TokyoTel 81-3-6880- 3770Korea - DaeguTel 82-53-744-4301Korea - SeoulTel 82-2-554-7200Malaysia - Kuala LumpurTel 60-3-7651-7906Malaysia - PenangTel 60-4-227-8870Philippines - ManilaTel 63-2-634-9065SingaporeTel 65-6334-8870Taiwan - Hsin ChuTel 886-3-577-8366Taiwan - KaohsiungTel 886-7-213-7830Taiwan - TaipeiTel 886-2-2508-8600Thailand - BangkokTel 66-2-694-1351Vietnam - Ho Chi MinhTel 84-28-5448-2100

Austria - WelsTel 43-7242-2244-39Fax 43-7242-2244-393Denmark - CopenhagenTel 45-4485-5910Fax 45-4485-2829Finland - EspooTel 358-9-4520-820France - ParisTel 33-1-69-53-63-20Fax 33-1-69-30-90-79Germany - GarchingTel 49-8931-9700Germany - HaanTel 49-2129-3766400Germany - HeilbronnTel 49-7131-72400Germany - KarlsruheTel 49-721-625370Germany - MunichTel 49-89-627-144-0Fax 49-89-627-144-44Germany - RosenheimTel 49-8031-354-560Israel - RarsquoananaTel 972-9-744-7705Italy - MilanTel 39-0331-742611Fax 39-0331-466781Italy - PadovaTel 39-049-7625286Netherlands - DrunenTel 31-416-690399Fax 31-416-690340Norway - TrondheimTel 47-72884388Poland - WarsawTel 48-22-3325737Romania - BucharestTel 40-21-407-87-50Spain - MadridTel 34-91-708-08-90Fax 34-91-708-08-91Sweden - GothenbergTel 46-31-704-60-40Sweden - StockholmTel 46-8-5090-4654UK - WokinghamTel 44-118-921-5800Fax 44-118-921-5820

Worldwide Sales and Service

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 45

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Board Overview
      • 2 Getting Started
        • 21 Quick Start
          • 211 Driver Installation
          • 212 Kit Window
          • 213 MPLABreg X IDE Device Family Packs
          • 214 Atmel Studio 7 Device Family Pack
            • 22 Design Documentation and Relevant Links
              • 3 Preprogrammed Application
              • 4 Curiosity Nano
                • 41 On-Board Debugger Overview
                  • 411 Debugger
                  • 412 Virtual Serial Port (CDC)
                    • 4121 Overview
                    • 4122 Operating System Support
                    • 4123 Limitations
                    • 4124 Signaling
                    • 4125 Advanced Use
                      • 413 Mass Storage Device
                        • 4131 Mass Storage Device Implementation
                        • 4132 Limitations of Drag-and-Drop Programming
                        • 4133 Special Commands
                          • 414 Data Gateway Interface (DGI)
                            • 4141 Debug GPIO
                            • 4142 Timestamping
                                • 42 Curiosity Nano Standard Pinout
                                • 43 Power Supply
                                  • 431 Target Regulator
                                  • 432 External Supply
                                  • 433 VBUS Output Pin
                                  • 434 Power Supply Exceptions
                                    • 44 Low-Power Measurement
                                    • 45 Programming External Microcontrollers
                                      • 451 Supported Devices
                                      • 452 Software Configuration
                                      • 453 Hardware Modifications
                                      • 454 Connecting to External Microcontrollers
                                        • 46 Connecting External Debuggers
                                          • 5 Hardware User Guide
                                            • 51 Connectors
                                              • 511 AVR128DB48 Curiosity Nano Pinout
                                              • 512 Using Pin Headers
                                              • 513 Multi-Voltage IO
                                              • 514 Operational Amplifiers
                                                • 52 Peripherals
                                                  • 521 LED
                                                  • 522 Mechanical Switch
                                                  • 523 32768 kHz Crystal
                                                  • 524 1600 MHz Crystal
                                                  • 525 On-Board Debugger Implementation
                                                    • 5251 On-Board Debugger Connections
                                                      • 6 Hardware Revision History and Known Issues
                                                        • 61 Identifying Product ID and Revision
                                                        • 62 Revision 3
                                                        • 63 Revision 2
                                                          • 7 Document Revision History
                                                          • 8 Appendix
                                                            • 81 Schematic
                                                            • 82 Assembly Drawing
                                                            • 83 Curiosity Nano Base for Click boardstrade
                                                            • 84 Disconnecting the On-board Debugger
                                                            • 85 Getting Started with IAR
                                                              • The Microchip Website
                                                              • Product Change Notification Service
                                                              • Customer Support
                                                              • Microchip Devices Code Protection Feature
                                                              • Legal Notice
                                                              • Trademarks
                                                              • Quality Management System
                                                              • Worldwide Sales and Service
Page 40: AVR128DB48 Curiosity Nano Hardware User Guideww1.microchip.com/downloads/en/DeviceDoc/AVR128DB48-Curiosit… · 4. Curiosity Nano Curiosity Nano is an evaluation platform of small

Figure 8-7 Select Target Device

Figure 8-8 Select Debugger

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 40

Figure 8-9 Configure Interface

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 41

The Microchip Website

Microchip provides online support via our website at wwwmicrochipcom This website is used to make files andinformation easily available to customers Some of the content available includes

bull Product Support ndash Data sheets and errata application notes and sample programs design resources userrsquosguides and hardware support documents latest software releases and archived software

bull General Technical Support ndash Frequently Asked Questions (FAQs) technical support requests onlinediscussion groups Microchip design partner program member listing

bull Business of Microchip ndash Product selector and ordering guides latest Microchip press releases listing ofseminars and events listings of Microchip sales offices distributors and factory representatives

Product Change Notification Service

Microchiprsquos product change notification service helps keep customers current on Microchip products Subscribers willreceive email notification whenever there are changes updates revisions or errata related to a specified productfamily or development tool of interest

To register go to wwwmicrochipcompcn and follow the registration instructions

Customer Support

Users of Microchip products can receive assistance through several channels

bull Distributor or Representativebull Local Sales Officebull Embedded Solutions Engineer (ESE)bull Technical Support

Customers should contact their distributor representative or ESE for support Local sales offices are also available tohelp customers A listing of sales offices and locations is included in this document

Technical support is available through the website at wwwmicrochipcomsupport

Microchip Devices Code Protection Feature

Note the following details of the code protection feature on Microchip devices

bull Microchip products meet the specifications contained in their particular Microchip Data Sheetbull Microchip believes that its family of products is secure when used in the intended manner and under normal

conditionsbull There are dishonest and possibly illegal methods being used in attempts to breach the code protection features

of the Microchip devices We believe that these methods require using the Microchip products in a manneroutside the operating specifications contained in Microchiprsquos Data Sheets Attempts to breach these codeprotection features most likely cannot be accomplished without violating Microchiprsquos intellectual property rights

bull Microchip is willing to work with any customer who is concerned about the integrity of its codebull Neither Microchip nor any other semiconductor manufacturer can guarantee the security of its code Code

protection does not mean that we are guaranteeing the product is ldquounbreakablerdquo Code protection is constantlyevolving We at Microchip are committed to continuously improving the code protection features of our productsAttempts to break Microchiprsquos code protection feature may be a violation of the Digital Millennium Copyright ActIf such acts allow unauthorized access to your software or other copyrighted work you may have a right to suefor relief under that Act

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 42

Legal Notice

Information contained in this publication is provided for the sole purpose of designing with and using Microchipproducts Information regarding device applications and the like is provided only for your convenience and may besuperseded by updates It is your responsibility to ensure that your application meets with your specifications

THIS INFORMATION IS PROVIDED BY MICROCHIP ldquoAS ISrdquo MICROCHIP MAKES NO REPRESENTATIONS ORWARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED WRITTEN OR ORAL STATUTORY OROTHERWISE RELATED TO THE INFORMATION INCLUDING BUT NOT LIMITED TO ANY IMPLIEDWARRANTIES OF NON-INFRINGEMENT MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSEOR WARRANTIES RELATED TO ITS CONDITION QUALITY OR PERFORMANCE

IN NO EVENT WILL MICROCHIP BE LIABLE FOR ANY INDIRECT SPECIAL PUNITIVE INCIDENTAL ORCONSEQUENTIAL LOSS DAMAGE COST OR EXPENSE OF ANY KIND WHATSOEVER RELATED TO THEINFORMATION OR ITS USE HOWEVER CAUSED EVEN IF MICROCHIP HAS BEEN ADVISED OF THEPOSSIBILITY OR THE DAMAGES ARE FORESEEABLE TO THE FULLEST EXTENT ALLOWED BY LAWMICROCHIPS TOTAL LIABILITY ON ALL CLAIMS IN ANY WAY RELATED TO THE INFORMATION OR ITS USEWILL NOT EXCEED THE AMOUNT OF FEES IF ANY THAT YOU HAVE PAID DIRECTLY TO MICROCHIP FORTHE INFORMATION Use of Microchip devices in life support andor safety applications is entirely at the buyerrsquos riskand the buyer agrees to defend indemnify and hold harmless Microchip from any and all damages claims suits orexpenses resulting from such use No licenses are conveyed implicitly or otherwise under any Microchip intellectualproperty rights unless otherwise stated

Trademarks

The Microchip name and logo the Microchip logo Adaptec AnyRate AVR AVR logo AVR Freaks BesTimeBitCloud chipKIT chipKIT logo CryptoMemory CryptoRF dsPIC FlashFlex flexPWR HELDO IGLOO JukeBloxKeeLoq Kleer LANCheck LinkMD maXStylus maXTouch MediaLB megaAVR Microsemi Microsemi logo MOSTMOST logo MPLAB OptoLyzer PackeTime PIC picoPower PICSTART PIC32 logo PolarFire Prochip DesignerQTouch SAM-BA SenGenuity SpyNIC SST SST Logo SuperFlash Symmetricom SyncServer TachyonTempTrackr TimeSource tinyAVR UNIO Vectron and XMEGA are registered trademarks of Microchip TechnologyIncorporated in the USA and other countries

APT ClockWorks The Embedded Control Solutions Company EtherSynch FlashTec Hyper Speed ControlHyperLight Load IntelliMOS Libero motorBench mTouch Powermite 3 Precision Edge ProASIC ProASIC PlusProASIC Plus logo Quiet-Wire SmartFusion SyncWorld Temux TimeCesium TimeHub TimePictra TimeProviderVite WinPath and ZL are registered trademarks of Microchip Technology Incorporated in the USA

Adjacent Key Suppression AKS Analog-for-the-Digital Age Any Capacitor AnyIn AnyOut BlueSky BodyComCodeGuard CryptoAuthentication CryptoAutomotive CryptoCompanion CryptoController dsPICDEMdsPICDEMnet Dynamic Average Matching DAM ECAN EtherGREEN In-Circuit Serial Programming ICSPINICnet Inter-Chip Connectivity JitterBlocker KleerNet KleerNet logo memBrain Mindi MiWi MPASM MPFMPLAB Certified logo MPLIB MPLINK MultiTRAK NetDetach Omniscient Code Generation PICDEMPICDEMnet PICkit PICtail PowerSmart PureSilicon QMatrix REAL ICE Ripple Blocker SAM-ICE Serial QuadIO SMART-IS SQI SuperSwitcher SuperSwitcher II Total Endurance TSHARC USBCheck VariSenseViewSpan WiperLock Wireless DNA and ZENA are trademarks of Microchip Technology Incorporated in the USAand other countries

SQTP is a service mark of Microchip Technology Incorporated in the USA

The Adaptec logo Frequency on Demand Silicon Storage Technology and Symmcom are registered trademarks ofMicrochip Technology Inc in other countries

GestIC is a registered trademark of Microchip Technology Germany II GmbH amp Co KG a subsidiary of MicrochipTechnology Inc in other countries

All other trademarks mentioned herein are property of their respective companiescopy 2020 Microchip Technology Incorporated Printed in the USA All Rights Reserved

ISBN 978-1-5224-6667-3

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 43

Quality Management SystemFor information regarding Microchiprsquos Quality Management Systems please visit wwwmicrochipcomquality

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 44

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupportwwwmicrochipcomsupportWeb AddresswwwmicrochipcomAtlantaDuluth GATel 678-957-9614Fax 678-957-1455Austin TXTel 512-257-3370BostonWestborough MATel 774-760-0087Fax 774-760-0088ChicagoItasca ILTel 630-285-0071Fax 630-285-0075DallasAddison TXTel 972-818-7423Fax 972-818-2924DetroitNovi MITel 248-848-4000Houston TXTel 281-894-5983IndianapolisNoblesville INTel 317-773-8323Fax 317-773-5453Tel 317-536-2380Los AngelesMission Viejo CATel 949-462-9523Fax 949-462-9608Tel 951-273-7800Raleigh NCTel 919-844-7510New York NYTel 631-435-6000San Jose CATel 408-735-9110Tel 408-436-4270Canada - TorontoTel 905-695-1980Fax 905-695-2078

Australia - SydneyTel 61-2-9868-6733China - BeijingTel 86-10-8569-7000China - ChengduTel 86-28-8665-5511China - ChongqingTel 86-23-8980-9588China - DongguanTel 86-769-8702-9880China - GuangzhouTel 86-20-8755-8029China - HangzhouTel 86-571-8792-8115China - Hong Kong SARTel 852-2943-5100China - NanjingTel 86-25-8473-2460China - QingdaoTel 86-532-8502-7355China - ShanghaiTel 86-21-3326-8000China - ShenyangTel 86-24-2334-2829China - ShenzhenTel 86-755-8864-2200China - SuzhouTel 86-186-6233-1526China - WuhanTel 86-27-5980-5300China - XianTel 86-29-8833-7252China - XiamenTel 86-592-2388138China - ZhuhaiTel 86-756-3210040

India - BangaloreTel 91-80-3090-4444India - New DelhiTel 91-11-4160-8631India - PuneTel 91-20-4121-0141Japan - OsakaTel 81-6-6152-7160Japan - TokyoTel 81-3-6880- 3770Korea - DaeguTel 82-53-744-4301Korea - SeoulTel 82-2-554-7200Malaysia - Kuala LumpurTel 60-3-7651-7906Malaysia - PenangTel 60-4-227-8870Philippines - ManilaTel 63-2-634-9065SingaporeTel 65-6334-8870Taiwan - Hsin ChuTel 886-3-577-8366Taiwan - KaohsiungTel 886-7-213-7830Taiwan - TaipeiTel 886-2-2508-8600Thailand - BangkokTel 66-2-694-1351Vietnam - Ho Chi MinhTel 84-28-5448-2100

Austria - WelsTel 43-7242-2244-39Fax 43-7242-2244-393Denmark - CopenhagenTel 45-4485-5910Fax 45-4485-2829Finland - EspooTel 358-9-4520-820France - ParisTel 33-1-69-53-63-20Fax 33-1-69-30-90-79Germany - GarchingTel 49-8931-9700Germany - HaanTel 49-2129-3766400Germany - HeilbronnTel 49-7131-72400Germany - KarlsruheTel 49-721-625370Germany - MunichTel 49-89-627-144-0Fax 49-89-627-144-44Germany - RosenheimTel 49-8031-354-560Israel - RarsquoananaTel 972-9-744-7705Italy - MilanTel 39-0331-742611Fax 39-0331-466781Italy - PadovaTel 39-049-7625286Netherlands - DrunenTel 31-416-690399Fax 31-416-690340Norway - TrondheimTel 47-72884388Poland - WarsawTel 48-22-3325737Romania - BucharestTel 40-21-407-87-50Spain - MadridTel 34-91-708-08-90Fax 34-91-708-08-91Sweden - GothenbergTel 46-31-704-60-40Sweden - StockholmTel 46-8-5090-4654UK - WokinghamTel 44-118-921-5800Fax 44-118-921-5820

Worldwide Sales and Service

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 45

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Board Overview
      • 2 Getting Started
        • 21 Quick Start
          • 211 Driver Installation
          • 212 Kit Window
          • 213 MPLABreg X IDE Device Family Packs
          • 214 Atmel Studio 7 Device Family Pack
            • 22 Design Documentation and Relevant Links
              • 3 Preprogrammed Application
              • 4 Curiosity Nano
                • 41 On-Board Debugger Overview
                  • 411 Debugger
                  • 412 Virtual Serial Port (CDC)
                    • 4121 Overview
                    • 4122 Operating System Support
                    • 4123 Limitations
                    • 4124 Signaling
                    • 4125 Advanced Use
                      • 413 Mass Storage Device
                        • 4131 Mass Storage Device Implementation
                        • 4132 Limitations of Drag-and-Drop Programming
                        • 4133 Special Commands
                          • 414 Data Gateway Interface (DGI)
                            • 4141 Debug GPIO
                            • 4142 Timestamping
                                • 42 Curiosity Nano Standard Pinout
                                • 43 Power Supply
                                  • 431 Target Regulator
                                  • 432 External Supply
                                  • 433 VBUS Output Pin
                                  • 434 Power Supply Exceptions
                                    • 44 Low-Power Measurement
                                    • 45 Programming External Microcontrollers
                                      • 451 Supported Devices
                                      • 452 Software Configuration
                                      • 453 Hardware Modifications
                                      • 454 Connecting to External Microcontrollers
                                        • 46 Connecting External Debuggers
                                          • 5 Hardware User Guide
                                            • 51 Connectors
                                              • 511 AVR128DB48 Curiosity Nano Pinout
                                              • 512 Using Pin Headers
                                              • 513 Multi-Voltage IO
                                              • 514 Operational Amplifiers
                                                • 52 Peripherals
                                                  • 521 LED
                                                  • 522 Mechanical Switch
                                                  • 523 32768 kHz Crystal
                                                  • 524 1600 MHz Crystal
                                                  • 525 On-Board Debugger Implementation
                                                    • 5251 On-Board Debugger Connections
                                                      • 6 Hardware Revision History and Known Issues
                                                        • 61 Identifying Product ID and Revision
                                                        • 62 Revision 3
                                                        • 63 Revision 2
                                                          • 7 Document Revision History
                                                          • 8 Appendix
                                                            • 81 Schematic
                                                            • 82 Assembly Drawing
                                                            • 83 Curiosity Nano Base for Click boardstrade
                                                            • 84 Disconnecting the On-board Debugger
                                                            • 85 Getting Started with IAR
                                                              • The Microchip Website
                                                              • Product Change Notification Service
                                                              • Customer Support
                                                              • Microchip Devices Code Protection Feature
                                                              • Legal Notice
                                                              • Trademarks
                                                              • Quality Management System
                                                              • Worldwide Sales and Service
Page 41: AVR128DB48 Curiosity Nano Hardware User Guideww1.microchip.com/downloads/en/DeviceDoc/AVR128DB48-Curiosit… · 4. Curiosity Nano Curiosity Nano is an evaluation platform of small

Figure 8-9 Configure Interface

AVR128DB48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 41

The Microchip Website

Microchip provides online support via our website at wwwmicrochipcom This website is used to make files andinformation easily available to customers Some of the content available includes

bull Product Support ndash Data sheets and errata application notes and sample programs design resources userrsquosguides and hardware support documents latest software releases and archived software

bull General Technical Support ndash Frequently Asked Questions (FAQs) technical support requests onlinediscussion groups Microchip design partner program member listing

bull Business of Microchip ndash Product selector and ordering guides latest Microchip press releases listing ofseminars and events listings of Microchip sales offices distributors and factory representatives

Product Change Notification Service

Microchiprsquos product change notification service helps keep customers current on Microchip products Subscribers willreceive email notification whenever there are changes updates revisions or errata related to a specified productfamily or development tool of interest

To register go to wwwmicrochipcompcn and follow the registration instructions

Customer Support

Users of Microchip products can receive assistance through several channels

bull Distributor or Representativebull Local Sales Officebull Embedded Solutions Engineer (ESE)bull Technical Support

Customers should contact their distributor representative or ESE for support Local sales offices are also available tohelp customers A listing of sales offices and locations is included in this document

Technical support is available through the website at wwwmicrochipcomsupport

Microchip Devices Code Protection Feature

Note the following details of the code protection feature on Microchip devices

bull Microchip products meet the specifications contained in their particular Microchip Data Sheetbull Microchip believes that its family of products is secure when used in the intended manner and under normal

conditionsbull There are dishonest and possibly illegal methods being used in attempts to breach the code protection features

of the Microchip devices We believe that these methods require using the Microchip products in a manneroutside the operating specifications contained in Microchiprsquos Data Sheets Attempts to breach these codeprotection features most likely cannot be accomplished without violating Microchiprsquos intellectual property rights

bull Microchip is willing to work with any customer who is concerned about the integrity of its codebull Neither Microchip nor any other semiconductor manufacturer can guarantee the security of its code Code

protection does not mean that we are guaranteeing the product is ldquounbreakablerdquo Code protection is constantlyevolving We at Microchip are committed to continuously improving the code protection features of our productsAttempts to break Microchiprsquos code protection feature may be a violation of the Digital Millennium Copyright ActIf such acts allow unauthorized access to your software or other copyrighted work you may have a right to suefor relief under that Act

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 42

Legal Notice

Information contained in this publication is provided for the sole purpose of designing with and using Microchipproducts Information regarding device applications and the like is provided only for your convenience and may besuperseded by updates It is your responsibility to ensure that your application meets with your specifications

THIS INFORMATION IS PROVIDED BY MICROCHIP ldquoAS ISrdquo MICROCHIP MAKES NO REPRESENTATIONS ORWARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED WRITTEN OR ORAL STATUTORY OROTHERWISE RELATED TO THE INFORMATION INCLUDING BUT NOT LIMITED TO ANY IMPLIEDWARRANTIES OF NON-INFRINGEMENT MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSEOR WARRANTIES RELATED TO ITS CONDITION QUALITY OR PERFORMANCE

IN NO EVENT WILL MICROCHIP BE LIABLE FOR ANY INDIRECT SPECIAL PUNITIVE INCIDENTAL ORCONSEQUENTIAL LOSS DAMAGE COST OR EXPENSE OF ANY KIND WHATSOEVER RELATED TO THEINFORMATION OR ITS USE HOWEVER CAUSED EVEN IF MICROCHIP HAS BEEN ADVISED OF THEPOSSIBILITY OR THE DAMAGES ARE FORESEEABLE TO THE FULLEST EXTENT ALLOWED BY LAWMICROCHIPS TOTAL LIABILITY ON ALL CLAIMS IN ANY WAY RELATED TO THE INFORMATION OR ITS USEWILL NOT EXCEED THE AMOUNT OF FEES IF ANY THAT YOU HAVE PAID DIRECTLY TO MICROCHIP FORTHE INFORMATION Use of Microchip devices in life support andor safety applications is entirely at the buyerrsquos riskand the buyer agrees to defend indemnify and hold harmless Microchip from any and all damages claims suits orexpenses resulting from such use No licenses are conveyed implicitly or otherwise under any Microchip intellectualproperty rights unless otherwise stated

Trademarks

The Microchip name and logo the Microchip logo Adaptec AnyRate AVR AVR logo AVR Freaks BesTimeBitCloud chipKIT chipKIT logo CryptoMemory CryptoRF dsPIC FlashFlex flexPWR HELDO IGLOO JukeBloxKeeLoq Kleer LANCheck LinkMD maXStylus maXTouch MediaLB megaAVR Microsemi Microsemi logo MOSTMOST logo MPLAB OptoLyzer PackeTime PIC picoPower PICSTART PIC32 logo PolarFire Prochip DesignerQTouch SAM-BA SenGenuity SpyNIC SST SST Logo SuperFlash Symmetricom SyncServer TachyonTempTrackr TimeSource tinyAVR UNIO Vectron and XMEGA are registered trademarks of Microchip TechnologyIncorporated in the USA and other countries

APT ClockWorks The Embedded Control Solutions Company EtherSynch FlashTec Hyper Speed ControlHyperLight Load IntelliMOS Libero motorBench mTouch Powermite 3 Precision Edge ProASIC ProASIC PlusProASIC Plus logo Quiet-Wire SmartFusion SyncWorld Temux TimeCesium TimeHub TimePictra TimeProviderVite WinPath and ZL are registered trademarks of Microchip Technology Incorporated in the USA

Adjacent Key Suppression AKS Analog-for-the-Digital Age Any Capacitor AnyIn AnyOut BlueSky BodyComCodeGuard CryptoAuthentication CryptoAutomotive CryptoCompanion CryptoController dsPICDEMdsPICDEMnet Dynamic Average Matching DAM ECAN EtherGREEN In-Circuit Serial Programming ICSPINICnet Inter-Chip Connectivity JitterBlocker KleerNet KleerNet logo memBrain Mindi MiWi MPASM MPFMPLAB Certified logo MPLIB MPLINK MultiTRAK NetDetach Omniscient Code Generation PICDEMPICDEMnet PICkit PICtail PowerSmart PureSilicon QMatrix REAL ICE Ripple Blocker SAM-ICE Serial QuadIO SMART-IS SQI SuperSwitcher SuperSwitcher II Total Endurance TSHARC USBCheck VariSenseViewSpan WiperLock Wireless DNA and ZENA are trademarks of Microchip Technology Incorporated in the USAand other countries

SQTP is a service mark of Microchip Technology Incorporated in the USA

The Adaptec logo Frequency on Demand Silicon Storage Technology and Symmcom are registered trademarks ofMicrochip Technology Inc in other countries

GestIC is a registered trademark of Microchip Technology Germany II GmbH amp Co KG a subsidiary of MicrochipTechnology Inc in other countries

All other trademarks mentioned herein are property of their respective companiescopy 2020 Microchip Technology Incorporated Printed in the USA All Rights Reserved

ISBN 978-1-5224-6667-3

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 43

Quality Management SystemFor information regarding Microchiprsquos Quality Management Systems please visit wwwmicrochipcomquality

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 44

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupportwwwmicrochipcomsupportWeb AddresswwwmicrochipcomAtlantaDuluth GATel 678-957-9614Fax 678-957-1455Austin TXTel 512-257-3370BostonWestborough MATel 774-760-0087Fax 774-760-0088ChicagoItasca ILTel 630-285-0071Fax 630-285-0075DallasAddison TXTel 972-818-7423Fax 972-818-2924DetroitNovi MITel 248-848-4000Houston TXTel 281-894-5983IndianapolisNoblesville INTel 317-773-8323Fax 317-773-5453Tel 317-536-2380Los AngelesMission Viejo CATel 949-462-9523Fax 949-462-9608Tel 951-273-7800Raleigh NCTel 919-844-7510New York NYTel 631-435-6000San Jose CATel 408-735-9110Tel 408-436-4270Canada - TorontoTel 905-695-1980Fax 905-695-2078

Australia - SydneyTel 61-2-9868-6733China - BeijingTel 86-10-8569-7000China - ChengduTel 86-28-8665-5511China - ChongqingTel 86-23-8980-9588China - DongguanTel 86-769-8702-9880China - GuangzhouTel 86-20-8755-8029China - HangzhouTel 86-571-8792-8115China - Hong Kong SARTel 852-2943-5100China - NanjingTel 86-25-8473-2460China - QingdaoTel 86-532-8502-7355China - ShanghaiTel 86-21-3326-8000China - ShenyangTel 86-24-2334-2829China - ShenzhenTel 86-755-8864-2200China - SuzhouTel 86-186-6233-1526China - WuhanTel 86-27-5980-5300China - XianTel 86-29-8833-7252China - XiamenTel 86-592-2388138China - ZhuhaiTel 86-756-3210040

India - BangaloreTel 91-80-3090-4444India - New DelhiTel 91-11-4160-8631India - PuneTel 91-20-4121-0141Japan - OsakaTel 81-6-6152-7160Japan - TokyoTel 81-3-6880- 3770Korea - DaeguTel 82-53-744-4301Korea - SeoulTel 82-2-554-7200Malaysia - Kuala LumpurTel 60-3-7651-7906Malaysia - PenangTel 60-4-227-8870Philippines - ManilaTel 63-2-634-9065SingaporeTel 65-6334-8870Taiwan - Hsin ChuTel 886-3-577-8366Taiwan - KaohsiungTel 886-7-213-7830Taiwan - TaipeiTel 886-2-2508-8600Thailand - BangkokTel 66-2-694-1351Vietnam - Ho Chi MinhTel 84-28-5448-2100

Austria - WelsTel 43-7242-2244-39Fax 43-7242-2244-393Denmark - CopenhagenTel 45-4485-5910Fax 45-4485-2829Finland - EspooTel 358-9-4520-820France - ParisTel 33-1-69-53-63-20Fax 33-1-69-30-90-79Germany - GarchingTel 49-8931-9700Germany - HaanTel 49-2129-3766400Germany - HeilbronnTel 49-7131-72400Germany - KarlsruheTel 49-721-625370Germany - MunichTel 49-89-627-144-0Fax 49-89-627-144-44Germany - RosenheimTel 49-8031-354-560Israel - RarsquoananaTel 972-9-744-7705Italy - MilanTel 39-0331-742611Fax 39-0331-466781Italy - PadovaTel 39-049-7625286Netherlands - DrunenTel 31-416-690399Fax 31-416-690340Norway - TrondheimTel 47-72884388Poland - WarsawTel 48-22-3325737Romania - BucharestTel 40-21-407-87-50Spain - MadridTel 34-91-708-08-90Fax 34-91-708-08-91Sweden - GothenbergTel 46-31-704-60-40Sweden - StockholmTel 46-8-5090-4654UK - WokinghamTel 44-118-921-5800Fax 44-118-921-5820

Worldwide Sales and Service

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 45

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Board Overview
      • 2 Getting Started
        • 21 Quick Start
          • 211 Driver Installation
          • 212 Kit Window
          • 213 MPLABreg X IDE Device Family Packs
          • 214 Atmel Studio 7 Device Family Pack
            • 22 Design Documentation and Relevant Links
              • 3 Preprogrammed Application
              • 4 Curiosity Nano
                • 41 On-Board Debugger Overview
                  • 411 Debugger
                  • 412 Virtual Serial Port (CDC)
                    • 4121 Overview
                    • 4122 Operating System Support
                    • 4123 Limitations
                    • 4124 Signaling
                    • 4125 Advanced Use
                      • 413 Mass Storage Device
                        • 4131 Mass Storage Device Implementation
                        • 4132 Limitations of Drag-and-Drop Programming
                        • 4133 Special Commands
                          • 414 Data Gateway Interface (DGI)
                            • 4141 Debug GPIO
                            • 4142 Timestamping
                                • 42 Curiosity Nano Standard Pinout
                                • 43 Power Supply
                                  • 431 Target Regulator
                                  • 432 External Supply
                                  • 433 VBUS Output Pin
                                  • 434 Power Supply Exceptions
                                    • 44 Low-Power Measurement
                                    • 45 Programming External Microcontrollers
                                      • 451 Supported Devices
                                      • 452 Software Configuration
                                      • 453 Hardware Modifications
                                      • 454 Connecting to External Microcontrollers
                                        • 46 Connecting External Debuggers
                                          • 5 Hardware User Guide
                                            • 51 Connectors
                                              • 511 AVR128DB48 Curiosity Nano Pinout
                                              • 512 Using Pin Headers
                                              • 513 Multi-Voltage IO
                                              • 514 Operational Amplifiers
                                                • 52 Peripherals
                                                  • 521 LED
                                                  • 522 Mechanical Switch
                                                  • 523 32768 kHz Crystal
                                                  • 524 1600 MHz Crystal
                                                  • 525 On-Board Debugger Implementation
                                                    • 5251 On-Board Debugger Connections
                                                      • 6 Hardware Revision History and Known Issues
                                                        • 61 Identifying Product ID and Revision
                                                        • 62 Revision 3
                                                        • 63 Revision 2
                                                          • 7 Document Revision History
                                                          • 8 Appendix
                                                            • 81 Schematic
                                                            • 82 Assembly Drawing
                                                            • 83 Curiosity Nano Base for Click boardstrade
                                                            • 84 Disconnecting the On-board Debugger
                                                            • 85 Getting Started with IAR
                                                              • The Microchip Website
                                                              • Product Change Notification Service
                                                              • Customer Support
                                                              • Microchip Devices Code Protection Feature
                                                              • Legal Notice
                                                              • Trademarks
                                                              • Quality Management System
                                                              • Worldwide Sales and Service
Page 42: AVR128DB48 Curiosity Nano Hardware User Guideww1.microchip.com/downloads/en/DeviceDoc/AVR128DB48-Curiosit… · 4. Curiosity Nano Curiosity Nano is an evaluation platform of small

The Microchip Website

Microchip provides online support via our website at wwwmicrochipcom This website is used to make files andinformation easily available to customers Some of the content available includes

bull Product Support ndash Data sheets and errata application notes and sample programs design resources userrsquosguides and hardware support documents latest software releases and archived software

bull General Technical Support ndash Frequently Asked Questions (FAQs) technical support requests onlinediscussion groups Microchip design partner program member listing

bull Business of Microchip ndash Product selector and ordering guides latest Microchip press releases listing ofseminars and events listings of Microchip sales offices distributors and factory representatives

Product Change Notification Service

Microchiprsquos product change notification service helps keep customers current on Microchip products Subscribers willreceive email notification whenever there are changes updates revisions or errata related to a specified productfamily or development tool of interest

To register go to wwwmicrochipcompcn and follow the registration instructions

Customer Support

Users of Microchip products can receive assistance through several channels

bull Distributor or Representativebull Local Sales Officebull Embedded Solutions Engineer (ESE)bull Technical Support

Customers should contact their distributor representative or ESE for support Local sales offices are also available tohelp customers A listing of sales offices and locations is included in this document

Technical support is available through the website at wwwmicrochipcomsupport

Microchip Devices Code Protection Feature

Note the following details of the code protection feature on Microchip devices

bull Microchip products meet the specifications contained in their particular Microchip Data Sheetbull Microchip believes that its family of products is secure when used in the intended manner and under normal

conditionsbull There are dishonest and possibly illegal methods being used in attempts to breach the code protection features

of the Microchip devices We believe that these methods require using the Microchip products in a manneroutside the operating specifications contained in Microchiprsquos Data Sheets Attempts to breach these codeprotection features most likely cannot be accomplished without violating Microchiprsquos intellectual property rights

bull Microchip is willing to work with any customer who is concerned about the integrity of its codebull Neither Microchip nor any other semiconductor manufacturer can guarantee the security of its code Code

protection does not mean that we are guaranteeing the product is ldquounbreakablerdquo Code protection is constantlyevolving We at Microchip are committed to continuously improving the code protection features of our productsAttempts to break Microchiprsquos code protection feature may be a violation of the Digital Millennium Copyright ActIf such acts allow unauthorized access to your software or other copyrighted work you may have a right to suefor relief under that Act

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 42

Legal Notice

Information contained in this publication is provided for the sole purpose of designing with and using Microchipproducts Information regarding device applications and the like is provided only for your convenience and may besuperseded by updates It is your responsibility to ensure that your application meets with your specifications

THIS INFORMATION IS PROVIDED BY MICROCHIP ldquoAS ISrdquo MICROCHIP MAKES NO REPRESENTATIONS ORWARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED WRITTEN OR ORAL STATUTORY OROTHERWISE RELATED TO THE INFORMATION INCLUDING BUT NOT LIMITED TO ANY IMPLIEDWARRANTIES OF NON-INFRINGEMENT MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSEOR WARRANTIES RELATED TO ITS CONDITION QUALITY OR PERFORMANCE

IN NO EVENT WILL MICROCHIP BE LIABLE FOR ANY INDIRECT SPECIAL PUNITIVE INCIDENTAL ORCONSEQUENTIAL LOSS DAMAGE COST OR EXPENSE OF ANY KIND WHATSOEVER RELATED TO THEINFORMATION OR ITS USE HOWEVER CAUSED EVEN IF MICROCHIP HAS BEEN ADVISED OF THEPOSSIBILITY OR THE DAMAGES ARE FORESEEABLE TO THE FULLEST EXTENT ALLOWED BY LAWMICROCHIPS TOTAL LIABILITY ON ALL CLAIMS IN ANY WAY RELATED TO THE INFORMATION OR ITS USEWILL NOT EXCEED THE AMOUNT OF FEES IF ANY THAT YOU HAVE PAID DIRECTLY TO MICROCHIP FORTHE INFORMATION Use of Microchip devices in life support andor safety applications is entirely at the buyerrsquos riskand the buyer agrees to defend indemnify and hold harmless Microchip from any and all damages claims suits orexpenses resulting from such use No licenses are conveyed implicitly or otherwise under any Microchip intellectualproperty rights unless otherwise stated

Trademarks

The Microchip name and logo the Microchip logo Adaptec AnyRate AVR AVR logo AVR Freaks BesTimeBitCloud chipKIT chipKIT logo CryptoMemory CryptoRF dsPIC FlashFlex flexPWR HELDO IGLOO JukeBloxKeeLoq Kleer LANCheck LinkMD maXStylus maXTouch MediaLB megaAVR Microsemi Microsemi logo MOSTMOST logo MPLAB OptoLyzer PackeTime PIC picoPower PICSTART PIC32 logo PolarFire Prochip DesignerQTouch SAM-BA SenGenuity SpyNIC SST SST Logo SuperFlash Symmetricom SyncServer TachyonTempTrackr TimeSource tinyAVR UNIO Vectron and XMEGA are registered trademarks of Microchip TechnologyIncorporated in the USA and other countries

APT ClockWorks The Embedded Control Solutions Company EtherSynch FlashTec Hyper Speed ControlHyperLight Load IntelliMOS Libero motorBench mTouch Powermite 3 Precision Edge ProASIC ProASIC PlusProASIC Plus logo Quiet-Wire SmartFusion SyncWorld Temux TimeCesium TimeHub TimePictra TimeProviderVite WinPath and ZL are registered trademarks of Microchip Technology Incorporated in the USA

Adjacent Key Suppression AKS Analog-for-the-Digital Age Any Capacitor AnyIn AnyOut BlueSky BodyComCodeGuard CryptoAuthentication CryptoAutomotive CryptoCompanion CryptoController dsPICDEMdsPICDEMnet Dynamic Average Matching DAM ECAN EtherGREEN In-Circuit Serial Programming ICSPINICnet Inter-Chip Connectivity JitterBlocker KleerNet KleerNet logo memBrain Mindi MiWi MPASM MPFMPLAB Certified logo MPLIB MPLINK MultiTRAK NetDetach Omniscient Code Generation PICDEMPICDEMnet PICkit PICtail PowerSmart PureSilicon QMatrix REAL ICE Ripple Blocker SAM-ICE Serial QuadIO SMART-IS SQI SuperSwitcher SuperSwitcher II Total Endurance TSHARC USBCheck VariSenseViewSpan WiperLock Wireless DNA and ZENA are trademarks of Microchip Technology Incorporated in the USAand other countries

SQTP is a service mark of Microchip Technology Incorporated in the USA

The Adaptec logo Frequency on Demand Silicon Storage Technology and Symmcom are registered trademarks ofMicrochip Technology Inc in other countries

GestIC is a registered trademark of Microchip Technology Germany II GmbH amp Co KG a subsidiary of MicrochipTechnology Inc in other countries

All other trademarks mentioned herein are property of their respective companiescopy 2020 Microchip Technology Incorporated Printed in the USA All Rights Reserved

ISBN 978-1-5224-6667-3

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 43

Quality Management SystemFor information regarding Microchiprsquos Quality Management Systems please visit wwwmicrochipcomquality

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 44

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupportwwwmicrochipcomsupportWeb AddresswwwmicrochipcomAtlantaDuluth GATel 678-957-9614Fax 678-957-1455Austin TXTel 512-257-3370BostonWestborough MATel 774-760-0087Fax 774-760-0088ChicagoItasca ILTel 630-285-0071Fax 630-285-0075DallasAddison TXTel 972-818-7423Fax 972-818-2924DetroitNovi MITel 248-848-4000Houston TXTel 281-894-5983IndianapolisNoblesville INTel 317-773-8323Fax 317-773-5453Tel 317-536-2380Los AngelesMission Viejo CATel 949-462-9523Fax 949-462-9608Tel 951-273-7800Raleigh NCTel 919-844-7510New York NYTel 631-435-6000San Jose CATel 408-735-9110Tel 408-436-4270Canada - TorontoTel 905-695-1980Fax 905-695-2078

Australia - SydneyTel 61-2-9868-6733China - BeijingTel 86-10-8569-7000China - ChengduTel 86-28-8665-5511China - ChongqingTel 86-23-8980-9588China - DongguanTel 86-769-8702-9880China - GuangzhouTel 86-20-8755-8029China - HangzhouTel 86-571-8792-8115China - Hong Kong SARTel 852-2943-5100China - NanjingTel 86-25-8473-2460China - QingdaoTel 86-532-8502-7355China - ShanghaiTel 86-21-3326-8000China - ShenyangTel 86-24-2334-2829China - ShenzhenTel 86-755-8864-2200China - SuzhouTel 86-186-6233-1526China - WuhanTel 86-27-5980-5300China - XianTel 86-29-8833-7252China - XiamenTel 86-592-2388138China - ZhuhaiTel 86-756-3210040

India - BangaloreTel 91-80-3090-4444India - New DelhiTel 91-11-4160-8631India - PuneTel 91-20-4121-0141Japan - OsakaTel 81-6-6152-7160Japan - TokyoTel 81-3-6880- 3770Korea - DaeguTel 82-53-744-4301Korea - SeoulTel 82-2-554-7200Malaysia - Kuala LumpurTel 60-3-7651-7906Malaysia - PenangTel 60-4-227-8870Philippines - ManilaTel 63-2-634-9065SingaporeTel 65-6334-8870Taiwan - Hsin ChuTel 886-3-577-8366Taiwan - KaohsiungTel 886-7-213-7830Taiwan - TaipeiTel 886-2-2508-8600Thailand - BangkokTel 66-2-694-1351Vietnam - Ho Chi MinhTel 84-28-5448-2100

Austria - WelsTel 43-7242-2244-39Fax 43-7242-2244-393Denmark - CopenhagenTel 45-4485-5910Fax 45-4485-2829Finland - EspooTel 358-9-4520-820France - ParisTel 33-1-69-53-63-20Fax 33-1-69-30-90-79Germany - GarchingTel 49-8931-9700Germany - HaanTel 49-2129-3766400Germany - HeilbronnTel 49-7131-72400Germany - KarlsruheTel 49-721-625370Germany - MunichTel 49-89-627-144-0Fax 49-89-627-144-44Germany - RosenheimTel 49-8031-354-560Israel - RarsquoananaTel 972-9-744-7705Italy - MilanTel 39-0331-742611Fax 39-0331-466781Italy - PadovaTel 39-049-7625286Netherlands - DrunenTel 31-416-690399Fax 31-416-690340Norway - TrondheimTel 47-72884388Poland - WarsawTel 48-22-3325737Romania - BucharestTel 40-21-407-87-50Spain - MadridTel 34-91-708-08-90Fax 34-91-708-08-91Sweden - GothenbergTel 46-31-704-60-40Sweden - StockholmTel 46-8-5090-4654UK - WokinghamTel 44-118-921-5800Fax 44-118-921-5820

Worldwide Sales and Service

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 45

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Board Overview
      • 2 Getting Started
        • 21 Quick Start
          • 211 Driver Installation
          • 212 Kit Window
          • 213 MPLABreg X IDE Device Family Packs
          • 214 Atmel Studio 7 Device Family Pack
            • 22 Design Documentation and Relevant Links
              • 3 Preprogrammed Application
              • 4 Curiosity Nano
                • 41 On-Board Debugger Overview
                  • 411 Debugger
                  • 412 Virtual Serial Port (CDC)
                    • 4121 Overview
                    • 4122 Operating System Support
                    • 4123 Limitations
                    • 4124 Signaling
                    • 4125 Advanced Use
                      • 413 Mass Storage Device
                        • 4131 Mass Storage Device Implementation
                        • 4132 Limitations of Drag-and-Drop Programming
                        • 4133 Special Commands
                          • 414 Data Gateway Interface (DGI)
                            • 4141 Debug GPIO
                            • 4142 Timestamping
                                • 42 Curiosity Nano Standard Pinout
                                • 43 Power Supply
                                  • 431 Target Regulator
                                  • 432 External Supply
                                  • 433 VBUS Output Pin
                                  • 434 Power Supply Exceptions
                                    • 44 Low-Power Measurement
                                    • 45 Programming External Microcontrollers
                                      • 451 Supported Devices
                                      • 452 Software Configuration
                                      • 453 Hardware Modifications
                                      • 454 Connecting to External Microcontrollers
                                        • 46 Connecting External Debuggers
                                          • 5 Hardware User Guide
                                            • 51 Connectors
                                              • 511 AVR128DB48 Curiosity Nano Pinout
                                              • 512 Using Pin Headers
                                              • 513 Multi-Voltage IO
                                              • 514 Operational Amplifiers
                                                • 52 Peripherals
                                                  • 521 LED
                                                  • 522 Mechanical Switch
                                                  • 523 32768 kHz Crystal
                                                  • 524 1600 MHz Crystal
                                                  • 525 On-Board Debugger Implementation
                                                    • 5251 On-Board Debugger Connections
                                                      • 6 Hardware Revision History and Known Issues
                                                        • 61 Identifying Product ID and Revision
                                                        • 62 Revision 3
                                                        • 63 Revision 2
                                                          • 7 Document Revision History
                                                          • 8 Appendix
                                                            • 81 Schematic
                                                            • 82 Assembly Drawing
                                                            • 83 Curiosity Nano Base for Click boardstrade
                                                            • 84 Disconnecting the On-board Debugger
                                                            • 85 Getting Started with IAR
                                                              • The Microchip Website
                                                              • Product Change Notification Service
                                                              • Customer Support
                                                              • Microchip Devices Code Protection Feature
                                                              • Legal Notice
                                                              • Trademarks
                                                              • Quality Management System
                                                              • Worldwide Sales and Service
Page 43: AVR128DB48 Curiosity Nano Hardware User Guideww1.microchip.com/downloads/en/DeviceDoc/AVR128DB48-Curiosit… · 4. Curiosity Nano Curiosity Nano is an evaluation platform of small

Legal Notice

Information contained in this publication is provided for the sole purpose of designing with and using Microchipproducts Information regarding device applications and the like is provided only for your convenience and may besuperseded by updates It is your responsibility to ensure that your application meets with your specifications

THIS INFORMATION IS PROVIDED BY MICROCHIP ldquoAS ISrdquo MICROCHIP MAKES NO REPRESENTATIONS ORWARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED WRITTEN OR ORAL STATUTORY OROTHERWISE RELATED TO THE INFORMATION INCLUDING BUT NOT LIMITED TO ANY IMPLIEDWARRANTIES OF NON-INFRINGEMENT MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSEOR WARRANTIES RELATED TO ITS CONDITION QUALITY OR PERFORMANCE

IN NO EVENT WILL MICROCHIP BE LIABLE FOR ANY INDIRECT SPECIAL PUNITIVE INCIDENTAL ORCONSEQUENTIAL LOSS DAMAGE COST OR EXPENSE OF ANY KIND WHATSOEVER RELATED TO THEINFORMATION OR ITS USE HOWEVER CAUSED EVEN IF MICROCHIP HAS BEEN ADVISED OF THEPOSSIBILITY OR THE DAMAGES ARE FORESEEABLE TO THE FULLEST EXTENT ALLOWED BY LAWMICROCHIPS TOTAL LIABILITY ON ALL CLAIMS IN ANY WAY RELATED TO THE INFORMATION OR ITS USEWILL NOT EXCEED THE AMOUNT OF FEES IF ANY THAT YOU HAVE PAID DIRECTLY TO MICROCHIP FORTHE INFORMATION Use of Microchip devices in life support andor safety applications is entirely at the buyerrsquos riskand the buyer agrees to defend indemnify and hold harmless Microchip from any and all damages claims suits orexpenses resulting from such use No licenses are conveyed implicitly or otherwise under any Microchip intellectualproperty rights unless otherwise stated

Trademarks

The Microchip name and logo the Microchip logo Adaptec AnyRate AVR AVR logo AVR Freaks BesTimeBitCloud chipKIT chipKIT logo CryptoMemory CryptoRF dsPIC FlashFlex flexPWR HELDO IGLOO JukeBloxKeeLoq Kleer LANCheck LinkMD maXStylus maXTouch MediaLB megaAVR Microsemi Microsemi logo MOSTMOST logo MPLAB OptoLyzer PackeTime PIC picoPower PICSTART PIC32 logo PolarFire Prochip DesignerQTouch SAM-BA SenGenuity SpyNIC SST SST Logo SuperFlash Symmetricom SyncServer TachyonTempTrackr TimeSource tinyAVR UNIO Vectron and XMEGA are registered trademarks of Microchip TechnologyIncorporated in the USA and other countries

APT ClockWorks The Embedded Control Solutions Company EtherSynch FlashTec Hyper Speed ControlHyperLight Load IntelliMOS Libero motorBench mTouch Powermite 3 Precision Edge ProASIC ProASIC PlusProASIC Plus logo Quiet-Wire SmartFusion SyncWorld Temux TimeCesium TimeHub TimePictra TimeProviderVite WinPath and ZL are registered trademarks of Microchip Technology Incorporated in the USA

Adjacent Key Suppression AKS Analog-for-the-Digital Age Any Capacitor AnyIn AnyOut BlueSky BodyComCodeGuard CryptoAuthentication CryptoAutomotive CryptoCompanion CryptoController dsPICDEMdsPICDEMnet Dynamic Average Matching DAM ECAN EtherGREEN In-Circuit Serial Programming ICSPINICnet Inter-Chip Connectivity JitterBlocker KleerNet KleerNet logo memBrain Mindi MiWi MPASM MPFMPLAB Certified logo MPLIB MPLINK MultiTRAK NetDetach Omniscient Code Generation PICDEMPICDEMnet PICkit PICtail PowerSmart PureSilicon QMatrix REAL ICE Ripple Blocker SAM-ICE Serial QuadIO SMART-IS SQI SuperSwitcher SuperSwitcher II Total Endurance TSHARC USBCheck VariSenseViewSpan WiperLock Wireless DNA and ZENA are trademarks of Microchip Technology Incorporated in the USAand other countries

SQTP is a service mark of Microchip Technology Incorporated in the USA

The Adaptec logo Frequency on Demand Silicon Storage Technology and Symmcom are registered trademarks ofMicrochip Technology Inc in other countries

GestIC is a registered trademark of Microchip Technology Germany II GmbH amp Co KG a subsidiary of MicrochipTechnology Inc in other countries

All other trademarks mentioned herein are property of their respective companiescopy 2020 Microchip Technology Incorporated Printed in the USA All Rights Reserved

ISBN 978-1-5224-6667-3

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 43

Quality Management SystemFor information regarding Microchiprsquos Quality Management Systems please visit wwwmicrochipcomquality

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 44

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupportwwwmicrochipcomsupportWeb AddresswwwmicrochipcomAtlantaDuluth GATel 678-957-9614Fax 678-957-1455Austin TXTel 512-257-3370BostonWestborough MATel 774-760-0087Fax 774-760-0088ChicagoItasca ILTel 630-285-0071Fax 630-285-0075DallasAddison TXTel 972-818-7423Fax 972-818-2924DetroitNovi MITel 248-848-4000Houston TXTel 281-894-5983IndianapolisNoblesville INTel 317-773-8323Fax 317-773-5453Tel 317-536-2380Los AngelesMission Viejo CATel 949-462-9523Fax 949-462-9608Tel 951-273-7800Raleigh NCTel 919-844-7510New York NYTel 631-435-6000San Jose CATel 408-735-9110Tel 408-436-4270Canada - TorontoTel 905-695-1980Fax 905-695-2078

Australia - SydneyTel 61-2-9868-6733China - BeijingTel 86-10-8569-7000China - ChengduTel 86-28-8665-5511China - ChongqingTel 86-23-8980-9588China - DongguanTel 86-769-8702-9880China - GuangzhouTel 86-20-8755-8029China - HangzhouTel 86-571-8792-8115China - Hong Kong SARTel 852-2943-5100China - NanjingTel 86-25-8473-2460China - QingdaoTel 86-532-8502-7355China - ShanghaiTel 86-21-3326-8000China - ShenyangTel 86-24-2334-2829China - ShenzhenTel 86-755-8864-2200China - SuzhouTel 86-186-6233-1526China - WuhanTel 86-27-5980-5300China - XianTel 86-29-8833-7252China - XiamenTel 86-592-2388138China - ZhuhaiTel 86-756-3210040

India - BangaloreTel 91-80-3090-4444India - New DelhiTel 91-11-4160-8631India - PuneTel 91-20-4121-0141Japan - OsakaTel 81-6-6152-7160Japan - TokyoTel 81-3-6880- 3770Korea - DaeguTel 82-53-744-4301Korea - SeoulTel 82-2-554-7200Malaysia - Kuala LumpurTel 60-3-7651-7906Malaysia - PenangTel 60-4-227-8870Philippines - ManilaTel 63-2-634-9065SingaporeTel 65-6334-8870Taiwan - Hsin ChuTel 886-3-577-8366Taiwan - KaohsiungTel 886-7-213-7830Taiwan - TaipeiTel 886-2-2508-8600Thailand - BangkokTel 66-2-694-1351Vietnam - Ho Chi MinhTel 84-28-5448-2100

Austria - WelsTel 43-7242-2244-39Fax 43-7242-2244-393Denmark - CopenhagenTel 45-4485-5910Fax 45-4485-2829Finland - EspooTel 358-9-4520-820France - ParisTel 33-1-69-53-63-20Fax 33-1-69-30-90-79Germany - GarchingTel 49-8931-9700Germany - HaanTel 49-2129-3766400Germany - HeilbronnTel 49-7131-72400Germany - KarlsruheTel 49-721-625370Germany - MunichTel 49-89-627-144-0Fax 49-89-627-144-44Germany - RosenheimTel 49-8031-354-560Israel - RarsquoananaTel 972-9-744-7705Italy - MilanTel 39-0331-742611Fax 39-0331-466781Italy - PadovaTel 39-049-7625286Netherlands - DrunenTel 31-416-690399Fax 31-416-690340Norway - TrondheimTel 47-72884388Poland - WarsawTel 48-22-3325737Romania - BucharestTel 40-21-407-87-50Spain - MadridTel 34-91-708-08-90Fax 34-91-708-08-91Sweden - GothenbergTel 46-31-704-60-40Sweden - StockholmTel 46-8-5090-4654UK - WokinghamTel 44-118-921-5800Fax 44-118-921-5820

Worldwide Sales and Service

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 45

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Board Overview
      • 2 Getting Started
        • 21 Quick Start
          • 211 Driver Installation
          • 212 Kit Window
          • 213 MPLABreg X IDE Device Family Packs
          • 214 Atmel Studio 7 Device Family Pack
            • 22 Design Documentation and Relevant Links
              • 3 Preprogrammed Application
              • 4 Curiosity Nano
                • 41 On-Board Debugger Overview
                  • 411 Debugger
                  • 412 Virtual Serial Port (CDC)
                    • 4121 Overview
                    • 4122 Operating System Support
                    • 4123 Limitations
                    • 4124 Signaling
                    • 4125 Advanced Use
                      • 413 Mass Storage Device
                        • 4131 Mass Storage Device Implementation
                        • 4132 Limitations of Drag-and-Drop Programming
                        • 4133 Special Commands
                          • 414 Data Gateway Interface (DGI)
                            • 4141 Debug GPIO
                            • 4142 Timestamping
                                • 42 Curiosity Nano Standard Pinout
                                • 43 Power Supply
                                  • 431 Target Regulator
                                  • 432 External Supply
                                  • 433 VBUS Output Pin
                                  • 434 Power Supply Exceptions
                                    • 44 Low-Power Measurement
                                    • 45 Programming External Microcontrollers
                                      • 451 Supported Devices
                                      • 452 Software Configuration
                                      • 453 Hardware Modifications
                                      • 454 Connecting to External Microcontrollers
                                        • 46 Connecting External Debuggers
                                          • 5 Hardware User Guide
                                            • 51 Connectors
                                              • 511 AVR128DB48 Curiosity Nano Pinout
                                              • 512 Using Pin Headers
                                              • 513 Multi-Voltage IO
                                              • 514 Operational Amplifiers
                                                • 52 Peripherals
                                                  • 521 LED
                                                  • 522 Mechanical Switch
                                                  • 523 32768 kHz Crystal
                                                  • 524 1600 MHz Crystal
                                                  • 525 On-Board Debugger Implementation
                                                    • 5251 On-Board Debugger Connections
                                                      • 6 Hardware Revision History and Known Issues
                                                        • 61 Identifying Product ID and Revision
                                                        • 62 Revision 3
                                                        • 63 Revision 2
                                                          • 7 Document Revision History
                                                          • 8 Appendix
                                                            • 81 Schematic
                                                            • 82 Assembly Drawing
                                                            • 83 Curiosity Nano Base for Click boardstrade
                                                            • 84 Disconnecting the On-board Debugger
                                                            • 85 Getting Started with IAR
                                                              • The Microchip Website
                                                              • Product Change Notification Service
                                                              • Customer Support
                                                              • Microchip Devices Code Protection Feature
                                                              • Legal Notice
                                                              • Trademarks
                                                              • Quality Management System
                                                              • Worldwide Sales and Service
Page 44: AVR128DB48 Curiosity Nano Hardware User Guideww1.microchip.com/downloads/en/DeviceDoc/AVR128DB48-Curiosit… · 4. Curiosity Nano Curiosity Nano is an evaluation platform of small

Quality Management SystemFor information regarding Microchiprsquos Quality Management Systems please visit wwwmicrochipcomquality

AVR128DB48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 44

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupportwwwmicrochipcomsupportWeb AddresswwwmicrochipcomAtlantaDuluth GATel 678-957-9614Fax 678-957-1455Austin TXTel 512-257-3370BostonWestborough MATel 774-760-0087Fax 774-760-0088ChicagoItasca ILTel 630-285-0071Fax 630-285-0075DallasAddison TXTel 972-818-7423Fax 972-818-2924DetroitNovi MITel 248-848-4000Houston TXTel 281-894-5983IndianapolisNoblesville INTel 317-773-8323Fax 317-773-5453Tel 317-536-2380Los AngelesMission Viejo CATel 949-462-9523Fax 949-462-9608Tel 951-273-7800Raleigh NCTel 919-844-7510New York NYTel 631-435-6000San Jose CATel 408-735-9110Tel 408-436-4270Canada - TorontoTel 905-695-1980Fax 905-695-2078

Australia - SydneyTel 61-2-9868-6733China - BeijingTel 86-10-8569-7000China - ChengduTel 86-28-8665-5511China - ChongqingTel 86-23-8980-9588China - DongguanTel 86-769-8702-9880China - GuangzhouTel 86-20-8755-8029China - HangzhouTel 86-571-8792-8115China - Hong Kong SARTel 852-2943-5100China - NanjingTel 86-25-8473-2460China - QingdaoTel 86-532-8502-7355China - ShanghaiTel 86-21-3326-8000China - ShenyangTel 86-24-2334-2829China - ShenzhenTel 86-755-8864-2200China - SuzhouTel 86-186-6233-1526China - WuhanTel 86-27-5980-5300China - XianTel 86-29-8833-7252China - XiamenTel 86-592-2388138China - ZhuhaiTel 86-756-3210040

India - BangaloreTel 91-80-3090-4444India - New DelhiTel 91-11-4160-8631India - PuneTel 91-20-4121-0141Japan - OsakaTel 81-6-6152-7160Japan - TokyoTel 81-3-6880- 3770Korea - DaeguTel 82-53-744-4301Korea - SeoulTel 82-2-554-7200Malaysia - Kuala LumpurTel 60-3-7651-7906Malaysia - PenangTel 60-4-227-8870Philippines - ManilaTel 63-2-634-9065SingaporeTel 65-6334-8870Taiwan - Hsin ChuTel 886-3-577-8366Taiwan - KaohsiungTel 886-7-213-7830Taiwan - TaipeiTel 886-2-2508-8600Thailand - BangkokTel 66-2-694-1351Vietnam - Ho Chi MinhTel 84-28-5448-2100

Austria - WelsTel 43-7242-2244-39Fax 43-7242-2244-393Denmark - CopenhagenTel 45-4485-5910Fax 45-4485-2829Finland - EspooTel 358-9-4520-820France - ParisTel 33-1-69-53-63-20Fax 33-1-69-30-90-79Germany - GarchingTel 49-8931-9700Germany - HaanTel 49-2129-3766400Germany - HeilbronnTel 49-7131-72400Germany - KarlsruheTel 49-721-625370Germany - MunichTel 49-89-627-144-0Fax 49-89-627-144-44Germany - RosenheimTel 49-8031-354-560Israel - RarsquoananaTel 972-9-744-7705Italy - MilanTel 39-0331-742611Fax 39-0331-466781Italy - PadovaTel 39-049-7625286Netherlands - DrunenTel 31-416-690399Fax 31-416-690340Norway - TrondheimTel 47-72884388Poland - WarsawTel 48-22-3325737Romania - BucharestTel 40-21-407-87-50Spain - MadridTel 34-91-708-08-90Fax 34-91-708-08-91Sweden - GothenbergTel 46-31-704-60-40Sweden - StockholmTel 46-8-5090-4654UK - WokinghamTel 44-118-921-5800Fax 44-118-921-5820

Worldwide Sales and Service

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 45

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Board Overview
      • 2 Getting Started
        • 21 Quick Start
          • 211 Driver Installation
          • 212 Kit Window
          • 213 MPLABreg X IDE Device Family Packs
          • 214 Atmel Studio 7 Device Family Pack
            • 22 Design Documentation and Relevant Links
              • 3 Preprogrammed Application
              • 4 Curiosity Nano
                • 41 On-Board Debugger Overview
                  • 411 Debugger
                  • 412 Virtual Serial Port (CDC)
                    • 4121 Overview
                    • 4122 Operating System Support
                    • 4123 Limitations
                    • 4124 Signaling
                    • 4125 Advanced Use
                      • 413 Mass Storage Device
                        • 4131 Mass Storage Device Implementation
                        • 4132 Limitations of Drag-and-Drop Programming
                        • 4133 Special Commands
                          • 414 Data Gateway Interface (DGI)
                            • 4141 Debug GPIO
                            • 4142 Timestamping
                                • 42 Curiosity Nano Standard Pinout
                                • 43 Power Supply
                                  • 431 Target Regulator
                                  • 432 External Supply
                                  • 433 VBUS Output Pin
                                  • 434 Power Supply Exceptions
                                    • 44 Low-Power Measurement
                                    • 45 Programming External Microcontrollers
                                      • 451 Supported Devices
                                      • 452 Software Configuration
                                      • 453 Hardware Modifications
                                      • 454 Connecting to External Microcontrollers
                                        • 46 Connecting External Debuggers
                                          • 5 Hardware User Guide
                                            • 51 Connectors
                                              • 511 AVR128DB48 Curiosity Nano Pinout
                                              • 512 Using Pin Headers
                                              • 513 Multi-Voltage IO
                                              • 514 Operational Amplifiers
                                                • 52 Peripherals
                                                  • 521 LED
                                                  • 522 Mechanical Switch
                                                  • 523 32768 kHz Crystal
                                                  • 524 1600 MHz Crystal
                                                  • 525 On-Board Debugger Implementation
                                                    • 5251 On-Board Debugger Connections
                                                      • 6 Hardware Revision History and Known Issues
                                                        • 61 Identifying Product ID and Revision
                                                        • 62 Revision 3
                                                        • 63 Revision 2
                                                          • 7 Document Revision History
                                                          • 8 Appendix
                                                            • 81 Schematic
                                                            • 82 Assembly Drawing
                                                            • 83 Curiosity Nano Base for Click boardstrade
                                                            • 84 Disconnecting the On-board Debugger
                                                            • 85 Getting Started with IAR
                                                              • The Microchip Website
                                                              • Product Change Notification Service
                                                              • Customer Support
                                                              • Microchip Devices Code Protection Feature
                                                              • Legal Notice
                                                              • Trademarks
                                                              • Quality Management System
                                                              • Worldwide Sales and Service
Page 45: AVR128DB48 Curiosity Nano Hardware User Guideww1.microchip.com/downloads/en/DeviceDoc/AVR128DB48-Curiosit… · 4. Curiosity Nano Curiosity Nano is an evaluation platform of small

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupportwwwmicrochipcomsupportWeb AddresswwwmicrochipcomAtlantaDuluth GATel 678-957-9614Fax 678-957-1455Austin TXTel 512-257-3370BostonWestborough MATel 774-760-0087Fax 774-760-0088ChicagoItasca ILTel 630-285-0071Fax 630-285-0075DallasAddison TXTel 972-818-7423Fax 972-818-2924DetroitNovi MITel 248-848-4000Houston TXTel 281-894-5983IndianapolisNoblesville INTel 317-773-8323Fax 317-773-5453Tel 317-536-2380Los AngelesMission Viejo CATel 949-462-9523Fax 949-462-9608Tel 951-273-7800Raleigh NCTel 919-844-7510New York NYTel 631-435-6000San Jose CATel 408-735-9110Tel 408-436-4270Canada - TorontoTel 905-695-1980Fax 905-695-2078

Australia - SydneyTel 61-2-9868-6733China - BeijingTel 86-10-8569-7000China - ChengduTel 86-28-8665-5511China - ChongqingTel 86-23-8980-9588China - DongguanTel 86-769-8702-9880China - GuangzhouTel 86-20-8755-8029China - HangzhouTel 86-571-8792-8115China - Hong Kong SARTel 852-2943-5100China - NanjingTel 86-25-8473-2460China - QingdaoTel 86-532-8502-7355China - ShanghaiTel 86-21-3326-8000China - ShenyangTel 86-24-2334-2829China - ShenzhenTel 86-755-8864-2200China - SuzhouTel 86-186-6233-1526China - WuhanTel 86-27-5980-5300China - XianTel 86-29-8833-7252China - XiamenTel 86-592-2388138China - ZhuhaiTel 86-756-3210040

India - BangaloreTel 91-80-3090-4444India - New DelhiTel 91-11-4160-8631India - PuneTel 91-20-4121-0141Japan - OsakaTel 81-6-6152-7160Japan - TokyoTel 81-3-6880- 3770Korea - DaeguTel 82-53-744-4301Korea - SeoulTel 82-2-554-7200Malaysia - Kuala LumpurTel 60-3-7651-7906Malaysia - PenangTel 60-4-227-8870Philippines - ManilaTel 63-2-634-9065SingaporeTel 65-6334-8870Taiwan - Hsin ChuTel 886-3-577-8366Taiwan - KaohsiungTel 886-7-213-7830Taiwan - TaipeiTel 886-2-2508-8600Thailand - BangkokTel 66-2-694-1351Vietnam - Ho Chi MinhTel 84-28-5448-2100

Austria - WelsTel 43-7242-2244-39Fax 43-7242-2244-393Denmark - CopenhagenTel 45-4485-5910Fax 45-4485-2829Finland - EspooTel 358-9-4520-820France - ParisTel 33-1-69-53-63-20Fax 33-1-69-30-90-79Germany - GarchingTel 49-8931-9700Germany - HaanTel 49-2129-3766400Germany - HeilbronnTel 49-7131-72400Germany - KarlsruheTel 49-721-625370Germany - MunichTel 49-89-627-144-0Fax 49-89-627-144-44Germany - RosenheimTel 49-8031-354-560Israel - RarsquoananaTel 972-9-744-7705Italy - MilanTel 39-0331-742611Fax 39-0331-466781Italy - PadovaTel 39-049-7625286Netherlands - DrunenTel 31-416-690399Fax 31-416-690340Norway - TrondheimTel 47-72884388Poland - WarsawTel 48-22-3325737Romania - BucharestTel 40-21-407-87-50Spain - MadridTel 34-91-708-08-90Fax 34-91-708-08-91Sweden - GothenbergTel 46-31-704-60-40Sweden - StockholmTel 46-8-5090-4654UK - WokinghamTel 44-118-921-5800Fax 44-118-921-5820

Worldwide Sales and Service

copy 2020 Microchip Technology Inc User Guide DS50003037A-page 45

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Board Overview
      • 2 Getting Started
        • 21 Quick Start
          • 211 Driver Installation
          • 212 Kit Window
          • 213 MPLABreg X IDE Device Family Packs
          • 214 Atmel Studio 7 Device Family Pack
            • 22 Design Documentation and Relevant Links
              • 3 Preprogrammed Application
              • 4 Curiosity Nano
                • 41 On-Board Debugger Overview
                  • 411 Debugger
                  • 412 Virtual Serial Port (CDC)
                    • 4121 Overview
                    • 4122 Operating System Support
                    • 4123 Limitations
                    • 4124 Signaling
                    • 4125 Advanced Use
                      • 413 Mass Storage Device
                        • 4131 Mass Storage Device Implementation
                        • 4132 Limitations of Drag-and-Drop Programming
                        • 4133 Special Commands
                          • 414 Data Gateway Interface (DGI)
                            • 4141 Debug GPIO
                            • 4142 Timestamping
                                • 42 Curiosity Nano Standard Pinout
                                • 43 Power Supply
                                  • 431 Target Regulator
                                  • 432 External Supply
                                  • 433 VBUS Output Pin
                                  • 434 Power Supply Exceptions
                                    • 44 Low-Power Measurement
                                    • 45 Programming External Microcontrollers
                                      • 451 Supported Devices
                                      • 452 Software Configuration
                                      • 453 Hardware Modifications
                                      • 454 Connecting to External Microcontrollers
                                        • 46 Connecting External Debuggers
                                          • 5 Hardware User Guide
                                            • 51 Connectors
                                              • 511 AVR128DB48 Curiosity Nano Pinout
                                              • 512 Using Pin Headers
                                              • 513 Multi-Voltage IO
                                              • 514 Operational Amplifiers
                                                • 52 Peripherals
                                                  • 521 LED
                                                  • 522 Mechanical Switch
                                                  • 523 32768 kHz Crystal
                                                  • 524 1600 MHz Crystal
                                                  • 525 On-Board Debugger Implementation
                                                    • 5251 On-Board Debugger Connections
                                                      • 6 Hardware Revision History and Known Issues
                                                        • 61 Identifying Product ID and Revision
                                                        • 62 Revision 3
                                                        • 63 Revision 2
                                                          • 7 Document Revision History
                                                          • 8 Appendix
                                                            • 81 Schematic
                                                            • 82 Assembly Drawing
                                                            • 83 Curiosity Nano Base for Click boardstrade
                                                            • 84 Disconnecting the On-board Debugger
                                                            • 85 Getting Started with IAR
                                                              • The Microchip Website
                                                              • Product Change Notification Service
                                                              • Customer Support
                                                              • Microchip Devices Code Protection Feature
                                                              • Legal Notice
                                                              • Trademarks
                                                              • Quality Management System
                                                              • Worldwide Sales and Service