avr128da48 curiosity nano user guide - microchip...

39
AVR128DA48 Curiosity Nano AVR128DA48 Curiosity Nano User Guide Preface The AVR128DA48 Curiosity Nano Evaluation Kit is a hardware platform to evaluate microcontrollers in the AVR-DA family. This board has the AVR128DA48 microcontroller (MCU) mounted. Supported by Atmel Studio and Microchip MPLAB ® X Integrated Development Environments (IDEs), the board provides easy access to the features of the AVR128DA48 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 AVR128DA48. MPLAB ® X IDE and Atmel Studio - Software to discover, configure, develop, program, and debug Microchip microcontrollers. Code examples in Atmel START - Get started with code examples or generate drivers for a custom application. Code examples on GitHub - Get started with code examples. AVR128DA48 website - Find documentation, datasheets, sample, and purchase microcontrollers. AVR128DA48 Curiosity Nano website - Kit information, latest user guide and design documentation. © 2020 Microchip Technology Inc. User Guide DS50002971A-page 1

Upload: others

Post on 12-Jul-2020

24 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: AVR128DA48 Curiosity Nano User Guide - Microchip Technologyww1.microchip.com/downloads/en/DeviceDoc/AVR128DA48... · 2020-03-19 · AVR128DA48 Curiosity Nano AVR128DA48 Curiosity

AVR128DA48 Curiosity Nano AVR128DA48 Curiosity Nano User Guide

PrefaceThe AVR128DA48 Curiosity Nano Evaluation Kit is a hardware platform to evaluate microcontrollers in the AVR-DAfamily This board has the AVR128DA48 microcontroller (MCU) mounted

Supported by Atmel Studio and Microchip MPLABreg X Integrated Development Environments (IDEs) the boardprovides easy access to the features of the AVR128DA48 to explore how to integrate the device into a customdesign

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

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

bull Code examples in Atmel START - Get started with code examples or generate drivers for a customapplication

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

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 1

Table of Contents

Preface1

1 Introduction 4

11 Features 412 Kit Overview 4

2 Getting Started 5

21 Quick Start522 Design Documentation and Relevant Links 5

3 Curiosity Nano7

31 On-Board Debugger Overview7311 Debugger7312 Virtual Serial Port (CDC)8

3121 Overview 83122 Operating System Support 83123 Limitations 93124 Signaling93125 Advanced Use 9

313 Mass Storage Device103131 Mass Storage Device Implementation103132 Fuse Bytes113133 Limitations of Drag-and-Drop Programming113134 Special Commands 11

314 Data Gateway Interface (DGI) 123141 Debug GPIO123142 Timestamping12

32 Curiosity Nano Standard Pinout1333 Power Supply 13

331 Target Regulator 14332 External Supply15333 VBUS Output Pin16334 Power Supply Exceptions16

34 Low Power Measurement1735 Programming External Microcontrollers 18

351 Supported Devices 18352 Software Configuration 18353 Hardware Modifications 19354 Connecting to External Microcontrollers20

36 Connecting External Debuggers 21

4 Hardware User Guide 24

41 Connectors24411 AVR128DA48 Curiosity Nano Pinout24412 Using Pin Headers24

42 Peripherals 25

AVR128DA48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 2

421 LED25422 Mechanical Switch25423 Crystal25424 On-Board Debugger Implementation26

4241 On-Board Debugger Connections 26

5 Hardware Revision History and Known Issues 27

51 Identifying Product ID and Revision 2752 Revision 327

6 Document Revision History28

7 Appendix 29

71 Schematic2972 Assembly Drawing3173 Curiosity Nano Base for Click boardstrade 3274 Disconnecting the On-board Debugger3375 Getting Started with IAR34

The Microchip Website37

Product Change Notification Service37

Customer Support 37

Microchip Devices Code Protection Feature 37

Legal Notice 37

Trademarks 38

Quality Management System 38

Worldwide Sales and Service39

AVR128DA48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 3

1 Introduction

11 Featuresbull AVR128DA48-IPT Microcontrollerbull One Yellow User LEDbull One Mechanical User Switchbull One 32768 kHz Crystalbull On-Board Debugger

ndash Board identification in Atmel StudioMicrochip MPLABreg X IDEndash 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 18-51V output voltage (limited by USB input voltage)ndash 500 mA maximum output current (limited by ambient temperature and output voltage)

12 Kit OverviewThe Microchip AVR128DA48 Curiosity Nano Evaluation Kit is a hardware platform to evaluate the AVR128DA48microcontroller

Figure 1-1 AVR128DA48 Curiosity Nano Evaluation Kit Overview

Micro USB Connector

DebuggerPowerStatus

LED32768 kHz

CrystalUser LED

(LED0)User Switch

(SW0)AVR128DA48

MCU

AVR128DA48 Curiosity NanoIntroduction

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 4

2 Getting Started

21 Quick StartSteps to start exploring the AVR128DA48 Curiosity Nano Board

1 Download Atmel StudioMicrochip MPLABreg X IDE2 Launch Atmel StudioMicrochip MPLABreg X IDE3 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

Driver InstallationWhen 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 Atmel StudioMicrochipMPLABreg X IDE

Kit WindowOnce the board is powered the green status LED will be lit and Atmel StudioMicrochip MPLABreg X IDE will auto-detect which boards are connected Atmel StudioMicrochip MPLABreg X IDE will present relevant information like datasheets and board documentation The AVR128DA48 device on the AVR128DA48 Curiosity Nano Board isprogrammed and debugged by the on-board debugger and therefore no external programmer or debugger tool isrequired

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

22 Design Documentation and Relevant LinksThe following list contains links to the most relevant documents and software for the AVR128DA48 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 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

AVR128DA48 Curiosity NanoGetting Started

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 5

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 AVR 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 AVR Solutions - Microchip PIC and AVR Device Solutions contains complete applicationsfor use with Microchip development boards ready to be adapted and extended

bull AVR128DA48 Curiosity Nano website - Kit information latest user guide and design documentationbull AVR128DA48 Curiosity Nano on microchipDIRECT - Purchase this kit on microchipDIRECT

AVR128DA48 Curiosity NanoGetting Started

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 6

3 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 Atmel StudioMicrochip MPLABreg X IDE 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)

31 On-Board Debugger OverviewAVR128DA48 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 AVR128DA48 in Atmel StudioMicrochip MPLABreg X IDEbull A mass storage device that allows drag-and-drop programming of the AVR128DA48bull A virtual serial port (CDC) that is connected to a Universal Asynchronous ReceiverTransmitter (UART) on the

AVR128DA48 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 AVR128DA48 Curiosity Nano BoardThe table below shows how the LED is controlled in different operation modes

Table 3-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

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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 7

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

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

3121 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 3-1 CDC Connection

Target MCU

UART TX

UART RX

Debugger

USBCDC RX

CDC TX

PCTerminalSoftware

TargetReceive

TargetSend

TerminalReceive

TerminalSend

Info  As shown in Figure 3-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

3122 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 Atmel StudioMicrochip MPLABreg X IDE

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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 8

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

3123 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

3124 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 the DTR signal will not disable the level shifters but disable the receiver so no further data will bestreamed to the host Data packets that are already queued up for sending to the target will continue to be sent outbut no further data will be accepted

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

3125 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=

The maximum message length is 50 characters ndash all remaining data in the frame are ignored

The default baud rate used in this mode is 9600 bps but if the CDC is already active or has been configured thepreviously used baud rate still applies

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 9

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 because the on-board debugger buffers framesand not bytes A maximum of four 64-byte frames can be active at any time The on-board debugger will throttle theincoming frames 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

313 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 supportbull Write access for programming Intelreg HEX formatted files into the target devicersquos memorybull Write access for simple text files for utility purposes

3131 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 wayfulfill the 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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 10

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

3132 Fuse Bytes

Fuse Bytes (AVRreg MCU Targets)When doing drag-and-drop programming the debugger masks out fuse bits that attempt to disable Unified Programand Debug Interface (UPDI) This means that the UPDI pin cannot be used in its reset or GPIO modes selecting oneof the alternative functions on the UPDI pin would render the device inaccessible without using an external debuggercapable of high-voltage UPDI activation

3133 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 useAtmel StudioMicrochip MPLABreg X IDE

Enabling CRC Check in FusesIt is not advisable to enable the CRC check in the target devicersquos fuses when using drag-and-drop programming Thisbecause 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 Atmel StudioMicrochip MPLABreg

X IDE which will automatically clear the CRC fuses after erasing

3134 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

Table 3-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 ldquoCDC Override Moderdquo

CMDRESET Resets the target device by entering Programming mode and then exitingProgramming mode immediately thereafter Exact timing can vary according tothe programming interface of the target device (Debugger firmware v116 ornewer)

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

CMD0V Powers down the target device by disabling the target supply regulator Ifexternal power is provided this has no effect (Debugger firmware v116 ornewer)

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

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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 11

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

314 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 Atmel StudioMicrochip MPLABreg X IDE

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

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

3141 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 VisualizerFigure 3-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

3142 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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 12

32 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 3-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

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 3-3 Curiosity Nano Standard Pinout

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

33 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 AVR128DA48 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 AVR128DA48Curiosity Nano

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 13

Figure 3-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

331 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 implementationis 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 AVR128DA48microcontroller The voltage limits configured in the on-board debugger on AVR128DA48 Curiosity Nano are18-51V

Info  The target voltage is set to 33V when the board is manufactured It can be changed throughMPLAB X IDE project properties and in the Atmel Studio device programming dialog Any change to thetarget voltage is persistent even through 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 Atmel StudioMicrochip MPLABreg X IDE are not immediatelyapplied to the board The new voltage setting is applied to the board when the debugger is accessed inany way like pushing the Refresh 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 only supports settings of 00V 33V and 50V See section 3134 Special Commands forfurther details

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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 14

Figure 3-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

Info  If the external voltage is lower than the monitoring window lower limit (target voltage setting - 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

332 External SupplyAVR128DA48 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 AVR128DA48 is 18-55V Applying a higher voltage may cause permanent damage to theboard

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 15

Info  If an external voltage is applied without pulling the VOFF pin low and an external supply pulls thevoltage lower than the monitoring window 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 AVR128DA48 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

333 VBUS Output PinAVR128DA48 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

Figure 3-6 VBUS Output Voltage vs Current

334 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 between 44V to 525V) and thevoltage drop over the MIC5353 regulator at a given voltage setting and current consumption If a higher outputvoltage is needed use a USB power source that can provide a higher input voltage or use an external voltage supplyon the VTG pin

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 16

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 differ more than 100 mV overunder the voltage setting it will be detected by the on-board debugger and theinternal voltage regulator will be shut down To fix this issue remove the applied voltage from the VTG pin and theon-board debugger will enable the on-board voltage regulator when the new condition is detected Note that the PSLED will be blinking rapidly if the target voltage is below 100 mV of the setting but will be lit normally when it is higherthan 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 really a special case of the issue mentioned above Removethe short-circuit and the on-board debugger will re-enable the on-board target voltage regulator

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

34 Low Power MeasurementPower to the AVR128DA48 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 AVR128DA48 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 AVR128DA48

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 17

Figure 3-7 Target Power Strap

Target Power strap (top side)

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 are tri-state to prevent leakage All IOs connected to the on-boarddebugger are listed in 4241 On-Board Debugger Connections To prevent any leakage to the on-boardlevel shifters they can be disconnected completely as described in 74 Disconnecting the On-boardDebugger

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

351 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

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

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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 18

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

Figure 3-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

353 Hardware ModificationsThe on-board debugger is connected to the AVR128DA48 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 AVR128DA48 from the on-board debugger

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 19

Figure 3-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 AVR128DA48 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 AVR128DA48

354 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 33 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

AVR128DA48 Curiosity Nano has a pull-up resistor R200 connected to its RESET signal (DBG3) The location ofthe pull-up resistor is shown in the 72 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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 20

Figure 3-10 Curiosity Nano Standard Pinout

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

Table 3-4 Programming and Debugging Interfaces

Curiosity Nano Pin UPDI ICSPtrade SWD

DBG0 UPDI DATA SWDIO

DBG1 - CLK SWCLK

DBG2 - - -

DBG3 - MCLR RESET

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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 21

Figure 3-11 Connecting the MPLABreg PICkittrade 4 In-Circuit DebuggerProgrammer to AVR128DA48 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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 22

Figure 3-12 Connecting the Atmel-ICE to AVR128DA48 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 Atmel StudioMicrochip MPLABreg XIDE or mass storage programming while the external tool is active

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 23

4 Hardware User Guide

41 Connectors

411 AVR128DA48 Curiosity Nano PinoutAll the AVR128DA48 IO pins are accessible at the edge connectors on the board The image below shows the boardpinout

Figure 4-1 AVR128DA48 Curiosity Nano Pinout

USB

DEBUGGER

AVR128DA48

SW0

LED0

PS LEDNC

NC

ID

ID

CDC RX

CDCRXUSART1 TXPC0

CDC TX

CDCTXUSART1 RXPC1

DBG1

DBG

1PC6LED0

DBG2

DBG

2PC7SW0

PA0

PA0USART0 TXPTC XY0

PA1PA

1USART0 RXPTC XY1

PC2PC2TWI0 SDA

PC3

PC3TWI0 SCL

PA4

PA4SPI0 MOSIPTC XY4

PA5

PA5SPI0 MISOPTC XY5

PA6

PA6SPI0 SCKPTC XY6

PA7

PA7SPI0 SSPTC XY7

GND

GN

D

PF4

PF4USART2 TXPTC XY36

PF5

PF5USART2 RXPTC XY37

PF2

PF2PTC XY34

PF3

PF3PTC XY35

PB0

PB0PTC XY8

PB1

PB1PTC XY9

PB2

PB2PTC XY10

PB3

PB3PTC XY11

GND

GN

D

PC0

PC0USART1 TXCDC RX

PC1

PC1USART1 RXCDC TX

PC6

PC6LED0

PC7

PC7SW0

VBUS

VBU

S

VOFF

VO

FFDBG3

DBG

3 PF6

DBG0D

BG0 UPDI

GND

GN

D

VTG

VTG

PD7

PD7 AIN7 PTC XY23

PD6

PD6 AIN6 PTC XY22

PD2

PD2 AIN2 PTC XY18 TCA0 WO2

PD1

PD1 AIN1 PTC XY17 TCA0 WO1

PD0

PD0 AIN0 PTC XY16 TCA0 WO0

PD5

PD5 AIN5 PTC XY21

PD4

PD4 AIN4 PTC XY20

PD3

PD3 AIN3 PTC XY19

GND

GN

D

PE3

PE3 PTC XY27

PE2

PE2 PTC XY26

PE1

PE1 PTC XY25

PE0

PE0 PTC XY24

PA3

PA3 PTC XY3

PA2

PA2 PTC XY2

PB5

PB5 PTC XY13

PB4

PB4 PTC XY12

GND

GN

D

PC5

PC5

PC4

PC4

(PF1)

(PF1) (PTC XY33) XTAL32K2

(PF0)

(PF0) (PTC XY32) XTAL32K1

DEBUGGERAVR128DA48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

Touch

Shared pin

AVR128DA48Curiosity Nano

412 Using Pin HeadersThe edge connector footprint on AVR128DA48 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

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

AVR128DA48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 24

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

42 Peripherals

421 LEDThere is one yellow user LED available on the AVR128DA48 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 4-1 LED Connection

AVR128DA48 Pin Function Shared Functionality

PC6 Yellow LED0 Edge connector On-board debugger

422 Mechanical SwitchThe AVR128DA48 Curiosity Nano has one mechanical switch This is a generic user-configurable switch When theswitch 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 PC7

Table 4-2 Mechanical Switch

AVR128DA48 Pin Description Shared Functionality

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

423 Crystal

The AVR128DA48 Curiosity Nano board has a 32768 kHz crystal mounted

The AVR128DA48 is connected to the crystal by default but the GPIOs are also routed to the edge connectorthrough two solder points The two IO lines routed to the edge connector are disconnected by default to reduce thechance of an external signal causing contention with the crystal and to remove excessive capacitance on the linesTo use PF0 and PF1 as GPIO some hardware modifications are required

bull Disconnect the crystal by cutting the two straps on the top side of the board next to the crystal (J210 J211) Thecrystal 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 (J207 J208)

The cut straps and solder points can be seen in Figure 4-2

Table 4-3 Crystal Connections

AVR128DA48 Pin Function Shared Functionality

PF0 TOSC1 (Crystal input) Edge connector

PF1 TOSC2 (Crystal output) Edge connector

AVR128DA48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 25

Figure 4-2 Crystal Connection and Cut Straps

424 On-Board Debugger ImplementationAVR128DA48 Curiosity Nano features an on-board debugger that can be used to program and debug theAVR128DA48 using UPDI The on-board debugger also includes a virtual serial port (CDC) interface over UART anddebug GPIO Atmel StudioMicrochip MPLABreg X IDE 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

4241 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 31 On-Board DebuggerOverview

Table 4-4 On-Board Debugger Connections

AVR128DA48Pin

Debugger Pin Function Shared Functionality

RF1 CDC TX UART RX (AVR128DA48 RX line) Edge connector

RF0 CDC RX UART TX (AVR128DA48 TX line) Edge connector

UPDI DBG0 UPDI Edge connector

PC6 DBG1 GPIO1 Edge connector LED

PC7 DBG2 GPIO0 Edge connector Mechanical Switch

PF6 DBG3 RESET Edge connector

AVR128DA48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 26

5 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

51 Identifying Product ID and RevisionThe revision and product identifier of the AVR128DA48 Curiosity Nano Board can be found in two ways Either byutilizing the Atmel StudioMicrochip MPLABreg X IDE Kit Window or by looking at the sticker on the bottom side of thePCB

By connecting AVR128DA48 Curiosity Nano to a computer with Atmel StudioMicrochip MPLABreg X IDE running theKit Window will pop up The first six digits of the serial number which is listed under kit information contain theproduct identifier 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 AVR128DA48 Curiosity Nano is A09-3280

52 Revision 3Revision 3 is the initially released revision There are no known issues with this revision

AVR128DA48 Curiosity NanoHardware Revision History and Known Issues

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 27

6 Document Revision HistoryDoc rev Date Comment

A 032020 Initial document release

AVR128DA48 Curiosity NanoDocument Revision History

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 28

7 Appendix

71 SchematicFigure 7-1 AVR128DA48 Curiosity Nano Schematic

11

22

33

44

55

66

77

88

DD

CC

BB

AA

2 of

4

AVR1

28D

A48

Curio

sity

Nan

o

102

320

19AV

R128

DA

48_C

urio

sity

_Nan

o_Ta

rget

_MCU

Sch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA R

evisi

on

File

PC

B N

umbe

rPC

B Re

visio

n

Des

igne

d wi

th

Dra

wn

By

PB Shee

t Titl

eTa

rget

MCU

Engi

neer

A

H T

F

A08

-300

23

Size

A3

A09

-328

03

Page

D

ateA

ltium

com

GN

DV

CC_T

ARG

ET

100n

C201

GN

D

PA5_

SPI0

_MIS

OPA

6_SP

I0_S

CKPA

7_SP

I0_S

SPB

0_U

ART

3_TX

PB1_

UA

RT3_

RXPB

2PB

3PB

4PB

5PC

0_U

ART

1_TX

PC1_

UA

RT1_

RXPC

2_I2

C0_S

DA

PC3_I2C0_SCL

PC4PC5PC6_LED0_GPIO1PC7_SW0_GPIO0PD0_AIN0_WO0PD1_AIN1_WO1PD2_AIN2_WO2PD3_AIN3PD4_AIN4

PA3

PA1_UART0_RX

UPDI

PF5_UART2_RX

PF3

PF2

PF1_

TOSC

2PF

0_TO

SC1

PE3

PE2

PE1

PE0

PD5_

AIN

5PD

6_A

IN6

PD7_

AIN

7

GN

D

VCC

_TA

RGET

100n

C202

GN

DV

CC_T

ARG

ET10

0n

C200

PF1_TOSC2

PF0_TOSC1

PA2

PA0_UART0_TX

PF4_UART2_TX

PA4_SPI0_MOSI

GN

D

PA7_

SPI0

_SS

PA6_

SPI0

_SCK

PA5_

SPI0

_MIS

OPA

4_SP

I0_M

OSI

PA3

PA2

PA1_

UA

RT0_

RXPA

0_U

ART

0_TX

PB0_

UA

RT3_

TXPB

1_U

ART

3_RX

PB2

PB3

PB4

PB5

PD7_

AIN

7PD

6_A

IN6

PF5_

UA

RT2_

RXPF

4_U

ART

2_TX

PF3

PF2

32kH

z C

ryst

al

1kR203

USE

R L

ED

VCC

_TA

RGET

PF6_RESET

PC7_SW0_GPIO0

PC6_LED0_GPIO1

GN

D

USE

R B

UTT

ON

PE3

PE2

PE1

PE0

PC0_

UA

RT1_

TXPC

1_U

ART

1_RX

PC2_

I2C0

_SD

APC

3_I2

C0_S

CL

PC4

PC5

PC6_

LED

0_G

PIO

1PC

7_SW

0_G

PIO

0

1kR202

YELLOWLEDSML-D12Y1WT86

2 1D200

TS604VM1-035CR13

4 2

SW20

0

GN

DV

CC_E

DG

E

GN

DG

ND

GN

DG

ND

UPD

IPF

6_RE

SET

J207

J208

J209

BLM

18PG

471S

N1

L200

AVR1

28D

A48

22u

FC2

05

VCC

_ED

GE

GN

D

DBG0

CDC_

UART

TXRXU

ART

CDC_TXCDC_RX

DBG2

DBG1

DBG3

DBG2

DEB

UG

GER

CO

NN

ECTI

ON

S

DBG1

DBG3DBG0

VOFF

ID_S

YS

ID_SYS

VOFF

TAR

GET

BU

LK

VCC

_TA

RGET

RES

ET P

ull

VBU

S

CDC

RX3

CDC

TX4

DBG

15

DBG

26

0 TX

71

RX8

2 SD

A9

3 SC

L10

4 M

OSI

115

MIS

O12

6 SC

K13

7 SS

14G

ND

150

(TX

)16

1 (R

X)

172

183

190

20

GN

D24

DBG

354

DBG

053

GN

D52

VCC

51

PWM

346

AD

C 2

45A

DC

144

AD

C 0

43G

ND

42

438

434

GN

D33

AD

C 7

50A

DC

649

AD

C 5

48PW

M 4

47

DEB

UG

GER

TARG

ET

ID2

VO

FF55

121

222

323

025

126

227

328

429

530

631

732

535

636

737

539

640

741

RESE

RVED

1V

BUS

56

CNA

NO

56-p

in e

dge

conn

ecto

r

J200

J201

J203

J205

J206

J202

J204

PF1

PF0

PF1_

TOSC

2PF

0_TO

SC1

NC

J211

J210

XOUT

XIN

47kR200

AVR

128D

A48

UPD

I

GPI

O1

GPI

O0

RESE

T

DBG

0

DBG

1

DBG

2

DBG

3

Deb

ugge

r

CD

C T

X

CD

C R

X

UA

RT1

RX

UA

RT1

TX

VTG

18V

- 5

5VPC6

PC7

PF6

UPD

I

PC0

PC1

Nam

ePi

n

PA5

1PA

62

PA7

3PB

04

PB1

5PB

26

PB3

7PB

48

PB5

9PC

010

PC1

11PC

212

PC3 13VDD 14GND 15PC4 16PC5 17PC6 18PC7 19PD0 20PD1 21PD2 22PD3 23PD4 24

PD5

25PD

626

PD7

27AV

DD28

GND

29PE

030

PE1

31PE

232

PE3

33XT

AL32

K1P

F034

XTAL

32K2

PF1

35PF

236

PF337 PF438 PF539 PF640 UPDI41 VDD42 GND43 EXTCLKPA044 PA145 PA246 PA347 PA448

AVR1

28D

A48

TQ

FPU

200

PC0_

UA

RT1_

TXPC

1_U

ART

1_RX

PC6_

LED

0_G

PIO

1PC

7_SW

0_G

PIO

0

AVD

D

PD2_

AIN

2_W

O2

PD1_

AIN

1_W

O1

PD0_

AIN

0_W

O0

PD5_

AIN

5PD

4_A

IN4

PD3_

AIN

3

XC2

00

12p

C203

12p

C204

327

68 k

Hz

Crys

tal d

atas

heet

Cc

rysta

l = 9

pFm

ax E

SR =

70k

Ohm

Acc

urac

y plusmn2

0ppm

AVR1

28D

A48

dat

ashe

et

Cxin

= 4

1pF

Cxou

t = 6

0pF

Cl asymp

1( (

14

1pF)

+ (1

60

pF) )

asymp2

44pF

Max

imum

Loa

d =

125

pFM

axim

um E

SR =

80k

Ohm

Estim

ated

Cpc

b =

05p

F

Estim

ated

load

C =

2 (C

crys

tal-

Cpar

a - C

pcb)

C

= 2

(9pF

- 2

44pF

- 0

5pF)

C =

121

2pF

Sele

cted

in d

esig

n af

ter v

erifi

catio

nC=

12p

F12

pF

NO

TE o

n U

ART

CD

C

RXT

X o

n th

e he

ader

den

otes

the

inpu

tout

put d

irect

ion

of th

e sig

nal

resp

ectiv

e to

its

sour

ce

CDC

TX is

out

put f

rom

the

DEB

UG

GER

CD

C RX

is in

put t

o th

e D

EBU

GG

ER

TX is

out

put f

rom

the

TARG

ET d

evic

eRX

is in

put t

o th

e TA

RGET

dev

ice

NO

TE o

n I2

C

No

pull-

ups o

n bo

ard

Pul

l-ups

shou

ld b

e m

ount

ed c

lose

to sl

ave

devi

ce(s

)

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 29

11

22

33

44

55

66

77

88

DD

CC

BB

AA

3 of

4

AVR1

28D

A48

Curio

sity

Nan

o

102

320

19AV

R128

DA

48_C

urio

sity

_Nan

o_D

ebug

gerS

chD

oc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA R

evisi

on

File

PC

B N

umbe

rPC

B Re

visio

n

Des

igne

d wi

th

Dra

wn

By

PB Shee

t Titl

eD

ebug

ger

Engi

neer

A

H T

F

A08

-300

23

Size

A3

A09

-328

03

Page

D

ateA

ltium

com

DEB

UG

GER

USB

MIC

RO

-B C

ON

NEC

TOR

GN

D

USB

D_P

USB

D_N

100n

C107

100n

C108

RXTXU

ART

CDC_

UART

1kR1

07V

CC_P

3V3

SRST

STAT

US_

LED

SHIE

LD

VBU

S

VCC

_P3V

3G

ND

TP10

0

Testp

oint

Arra

y

12

34

56

78

910

TCK

TDO

TMS

Vsu

pTD

IG

ND

TRST

SRST

VTr

efG

ND

J102

GN

D

47u

F

C100

DBG0

DBG

0

21

GRE

EN L

EDSM

L-P1

2MTT

86R

D10

0

VBUS

1D-

2D+

3

GND

5SH

IELD

16

SHIE

LD2

7

ID4

SHIE

LD3

8SH

IELD

49 M

U-M

B014

2AB2

-269

J105

PAD

33

PA00

1PA

012

PA02

3PA

034

GND 10VDDANA 9

PA04

5PA

056

PA06

7PA

078

PA08 11PA09 12PA10 13PA11 14PA14 15PA15 16

PA16

17PA

1718

PA18

19PA

1920

PA22

21US

B_SO

FPA

2322

USB_

DMP

A24

23US

B_DP

PA2

524

PA2725 RESETN26 PA2827 GND28 VDDCORE29 VDDIN30 SWDCLKPA3031 SWDIOPA3132

SAM

D21

E18A

-MU

TU

100

VOUT

1

VOUT

2

GND 3

EN4

VIN

6

NC5

EP 7

MIC

5528

-33

YM

TU

101

VCC

_P3V

3

GN

D

USB

D_P

USB

D_N

GN

D

1uC106

VCC

_MCU

_CO

RE

VCC

_P3V

3

VCC

_P3V

3

22u

FC1

01

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

3V

CC_P

3V3

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

4V

CC_P

3V3

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

5V

CC_P

3V3

GN

D

GN

D GN

D

GN

D

VCC

_ED

GE

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

7V

CC_P

3V3

GN

DDB

G2

DBG

3_CT

RL

S1_0

_TX

S1_1

_RX

S0_2

_TX

DA

CV

TG_A

DC

RESE

RVED

S0_3

_CLK

DBG0_CTRL

CDC_

TX_C

TRL

BOO

T

DEB

UG

GER

PO

WER

STA

TUS

LED

EN1

BYP

6

VOUT

4

GND

2

VIN

3

NCA

DJ5

GND 7

MIC

5353

U10

2

100n

C102

GN

D

GN

D

47kR101

27kR104 G

ND

33k

R106

22u

F

C103 G

ND

1kR1

08

J100

VCC

_LEV

ELV

CC_R

EGU

LATO

R

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

6V

CC_P

3V3

GN

DDB

G1

CDC_

RXCD

C_TX

DBG3

DBG1_CTRL

DEB

UG

GER

REG

ULA

TOR

REG_ENABLE

REG

_EN

ABL

E

47kR103

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

47kR102

47kR105

SWCL

K

GN

D

47kR100 G

ND

DBG

2

S0_0

_RX

DBG

1_CT

RL

DBG

0_CT

RL

DBG

3 O

PEN

DR

AIN

TAR

GET

AD

JUST

ABL

E R

EGU

LATO

R

SRST

DEB

UG

GER

TES

TPO

INT DBG2_CTRL

VO

FFCD

C_RX

_CTR

L

47kR109

DBG

1

CDC_

TX_C

TRL

CDC_

RX_C

TRL

SWCL

K

REG_ADJUST

DBG2_GPIO

DBG

3_CT

RL

DBG

2_CT

RL

UPD

I

UPD

I

GPI

O

GPI

O

RESE

T

Sign

al

DBG

0

DBG

1

DBG

2

DBG

3

ICSP

Inte

rface

DAT

CLK

GPI

O

MCL

R

DBG

3

CD

C T

X

CD

C R

X

UA

RT R

X

UA

RT T

X

UA

RT R

X

UA

RT T

X

TAR

GET

TAR

GET

1kR1

10

VBUS_ADC

1

23

DM

N65

D8L

FBQ

101

VC

C-

-

ID_S

YS

VOFF

1kR112

VCC

_P3V

3

VTG

_AD

CD

AC

MIC

9416

3

VIN

B2VO

UTA1

VIN

A2

ENC2

GND

C1VO

UTB1

U10

8

GN

D

ID_S

YS

VTG

_EN

VTG_EN

VBUS_ADC

SWD

IO

ID_S

YS

TP10

1G

ND

SWD

IO

VO

FF

47kR111 G

ND

ID P

IN

MC3

6213

F100

VCC

_VBU

S

VCC

_VBU

S

VCC

_VBU

S

J101

VCC

_TA

RGET

47k

R113

Prog

ram

min

g co

nnec

tor f

or

fact

ory

prog

ram

min

g of

D

EBU

GG

ER

MIC

5528

Vi

n 2

5V

to 5

5V

Vout

Fix

ed 3

3V

Imax

500

mA

Dro

pout

260

mV

5

00m

A

PTC

Rese

ttabl

e fu

se

Hol

d cu

rrent

500

mA

Trip

cur

rent

100

0mA

Adj

usta

ble

outp

ut a

nd li

mita

tions

- T

he D

EBU

GG

ER c

an a

djus

t the

out

put v

olta

ge o

f the

regu

lato

r bet

wee

n 1

25V

and

51

V to

the

targ

et

- The

vol

tage

out

put i

s lim

ited

by th

e in

put (

USB

) w

hich

can

var

y be

twee

n 4

40V

to 5

25V

- The

leve

l shi

fters

hav

e a

min

imal

vol

tage

leve

l of 1

65V

and

will

lim

it th

e m

inim

um o

pera

ting

volta

ge a

llow

ed fo

r the

ta

rget

to st

ill a

llow

com

mun

icat

ion

- The

MIC

9416

3 ha

s a m

inim

al v

olta

ge le

vel o

f 17

0V a

nd w

ill li

mit

the

min

imum

vol

tage

del

iver

ed to

the

targ

et

- Firm

war

e co

nfig

urat

ion

will

lim

it th

e vo

ltage

rang

e to

be

with

in th

e th

e ta

rget

spec

ifica

tion

R113

is re

quire

d to

pul

l the

Q

101

gate

to a

def

ined

va

lue

whe

n th

e U

100

is no

t po

wer

ed

J100

Cu

t-stra

p us

ed fo

r ful

l sep

arat

ion

of ta

rget

pow

er fr

om th

e le

vel s

hifte

rs a

nd o

n-bo

ard

regu

lato

rs

- For

cur

rent

mea

sure

men

ts us

ing

an e

xter

nal p

ower

supp

ly t

his s

trap

coul

d be

cut

for m

ore

accu

rate

mea

sure

men

ts L

eaka

ge b

ack

thro

ugh

the

switc

h is

in th

e m

icro

am

pere

rang

e

J101

Th

is is

foot

prin

t for

a 1

x2 1

00m

il pi

tch

pin-

head

er th

at c

an b

e us

ed fo

r eas

y cu

rrent

mea

sure

men

t to

the

targ

et m

icro

cont

rolle

r and

the

LED

Bu

tton

To

use

the

foot

prin

t- C

ut th

e tra

ck b

etw

een

the

hole

s an

d m

ount

a p

in-h

eade

r

MIC

5353

Vi

n 2

6V

to 6

VVo

ut 1

25V

to 5

1V

Imax

500

mA

Dro

pout

(typ

ical

) 50

mV

15

0mA

160

mV

5

00m

AA

ccur

acy

2

initi

alTh

erm

al sh

utdo

wn

and

curre

nt li

mit

Max

imum

out

put v

olta

ge is

lim

ited

by th

e in

put v

olta

ge a

nd th

e dr

opou

t vol

tage

in th

e re

gula

tor

(Vm

ax =

Vin

- dr

opou

t)

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 30

72 Assembly DrawingFigure 7-2 AVR128DA48 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

PAC20002 PAC20001 COC200

PAC20102 PAC20101 COC201

PAC20202 PAC20201 COC202

PAC20301 PAC20302 COC203

PAC20401 PAC20402 COC204

PAC20502

PAC20501 COC205

PAD10002 PAD10001 COD100

PAD20001

PAD20002 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

PAJ20701 PAJ20702 PAJ20705 COJ207

PAJ20801 PAJ20802 PAJ20805 COJ208

PAJ20901 PAJ20902 COJ209

PAJ21002 PAJ21001 COJ210

PAJ21102 PAJ21101 COJ211

PAL20002 PAL20001 COL200

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

PAR20002 PAR20001 COR200

PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203

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

PAU200048 PAU200047 PAU200046 PAU200045 PAU200044 PAU200043 PAU200042 PAU200041 PAU200040 PAU200039 PAU200038 PAU200037 PAU200036 PAU200035 PAU200034 PAU200033 PAU200032 PAU200031 PAU200030 PAU200029 PAU200028 PAU200027 PAU200026 PAU200025 PAU200024 PAU200023 PAU200022 PAU200021 PAU200020 PAU200019 PAU200018 PAU200017 PAU200016 PAU200015 PAU200014 PAU200013

PAU200012 PAU200011 PAU200010 PAU20009 PAU20008 PAU20007 PAU20006 PAU20005 PAU20004 PAU20003 PAU20002 PAU20001

COU200

PAXC20001

PAXC20002

COXC200

Figure 7-3 AVR128DA48 Curiosity Nano Assembly Drawing Bottom

ctR

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20002 PAC20001 COC200

PAC20102 PAC20101 COC201

PAC20202 PAC20201 COC202

PAC20301 PAC20302 COC203

PAC20401 PAC20402 COC204

PAC20502

PAC20501 COC205

PAD10002 PAD10001 COD100

PAD20001

PAD20002 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

PAJ20701 PAJ20702 PAJ20705 COJ207

PAJ20801 PAJ20802 PAJ20805 COJ208

PAJ20901 PAJ20902 COJ209

PAJ21002 PAJ21001 COJ210

PAJ21102 PAJ21101 COJ211

PAL20002 PAL20001 COL200

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

PAR20002 PAR20001 COR200

PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203

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

PAU200048 PAU200047 PAU200046 PAU200045 PAU200044 PAU200043 PAU200042 PAU200041 PAU200040 PAU200039 PAU200038 PAU200037 PAU200036 PAU200035 PAU200034 PAU200033 PAU200032 PAU200031 PAU200030 PAU200029 PAU200028 PAU200027 PAU200026 PAU200025 PAU200024 PAU200023 PAU200022 PAU200021 PAU200020 PAU200019 PAU200018 PAU200017 PAU200016 PAU200015 PAU200014 PAU200013

PAU200012 PAU200011 PAU200010 PAU20009 PAU20008 PAU20007 PAU20006 PAU20005 PAU20004 PAU20003 PAU20002 PAU20001

COU200

PAXC20001

PAXC20002

COXC200

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 31

73 Curiosity Nano Base for Click boardstrade

Figure 7-4 AVR128DA48 Curiosity Nano Pinout Mapping

USB

DEB

UG

GER

AVR1

28D

A48

SW0

LED

0

PS L

EDNC

NC

ID

ID

CDC RX

CDCRX

USART1 TX

PC0

CDC TX

CDCTX

USART1 RX

PC1

DBG1

DBG1

PC6

LED0

DBG2

DBG2

PC7

SW0

PA0

PA0

USART0 TX

PTC XY0

PA1

PA1

USART0 RX

PTC XY1

PC2

PC2

TWI0 SDA

PC3

PC3

TWI0 SCL

PA4

PA4

SPI0 MOSI

PTC XY4

PA5

PA5

SPI0 MISO

PTC XY5

PA6

PA6

SPI0 SCK

PTC XY6

PA7

PA7

SPI0 SS

PTC XY7

GND

GND

PF4

PF4

USART2 TX

PTC XY36

PF5

PF5

USART2 RX

PTC XY37

PF2

PF2

PTC XY34

PF3

PF3

PTC XY35

PB0

PB0

PTC XY8

PB1

PB1

PTC XY9

PB2

PB2

PTC XY10

PB3

PB3

PTC XY11

GND

GND

PC0

PC0

USART1 TX

CDC RX

PC1

PC1

USART1 RX

CDC TX

PC6

PC6

LED0

PC7

PC7

SW0

VBUS

VBUS

VOFF

VOFF

DBG3

DBG3

PF6

DBG0

DBG0

UPDI

GND

GND

VTG

VTG

PD7

PD7

AIN7

PTC XY23

PD6

PD6

AIN6

PTC XY22

PD2

PD2

AIN2

PTC XY18

TCA0 WO2

PD1

PD1

AIN1

PTC XY17

TCA0 WO1

PD0

PD0

AIN0

PTC XY16

TCA0 WO0

PD5

PD5

AIN5

PTC XY21

PD4

PD4

AIN4

PTC XY20

PD3

PD3

AIN3

PTC XY19

GND

GND

PE3

PE3

PTC XY27

PE2

PE2

PTC XY26

PE1

PE1

PTC XY25

PE0

PE0

PTC XY24

PA3

PA3

PTC XY3

PA2

PA2

PTC XY2

PB5

PB5

PTC XY13

PB4

PB4

PTC XY12

GND

GND

PC5

PC5

PC4

PC4

(PF1)

(PF1)

(PTC XY33)

XTAL32K2

(PF0)

(PF0)

(PTC XY32)

XTAL32K1

DEB

UG

GER

AVR1

28D

A48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

Touch

Shared pin

AVR1

28D

A48

Curio

sity

Nan

o

1

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

2

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

3

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

Xpl

aine

d Pr

o Ex

tens

ion

EXT1

12

1920

Curio

sity

Nan

o Ba

sefo

r clic

k bo

ards

TM

PD3

PD0

PD7

PD6

PA7

PA1

PA6

PA0

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

PD4

PD1

PF3

PF2

PE2

PF5

PA6

PF4

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

PD5

PD2

PE1

PE0

PE3

PA1

PA6

PA0

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

ID

GND

PD4

PD5

PF3

PE1

PD1

PD2

PF2

PE3

PC2

PC3

PF5

PF4

PE2

PA4

PA5

PA6

GND

+33V

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 32

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

The block diagram below shows all connections between the debugger and the AVR128DA48 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 7-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 7-6 Details about connecting an external debugger are described in 36 Connecting ExternalDebuggers

Figure 7-5  On-Board Debugger Connections Block Diagram

DEB

UG

GER

TARGETLevel-Shift

PA04PA06PA07PA08PA16PA00PA01

USB

DIR x 5

VCC_P3V3

VBUS

VCC

_LEV

EL

VCC

_TA

RGET

DBG0DBG1DBG2DBG3CDC 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

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 33

Figure 7-6 On-Board Debugger Connection Cut Straps

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

75 Getting Started with IARIAR Embedded Workbenchreg for AVRreg is a proprietary high-efficiency compiler not based on GCC Programming anddebugging of AVR128DA48 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 7-73 In the category Debugger select the Setup tab Select Atmel-ICE as the driver as shown in Figure 7-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 7-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

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 34

Figure 7-7 Select Target Device

Figure 7-8 Select Debugger

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 35

Figure 7-9 Configure Interface

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 36

The Microchip WebsiteMicrochip provides online support via our website at httpwwwmicrochipcom This website is used to make filesand information 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 ServiceMicrochiprsquos 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 httpwwwmicrochipcompcn and follow the registration instructions

Customer SupportUsers 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 httpwwwmicrochipcomsupport

Microchip Devices Code Protection FeatureNote the following details of the code protection feature on Microchip devices

bull Microchip products meet the specification contained in their particular Microchip Data Sheetbull Microchip believes that its family of products is one of the most secure families of its kind on the market today

when used in the intended manner and under normal conditionsbull There are dishonest and possibly illegal methods used to breach the code protection feature All of these

methods to our knowledge require using the Microchip products in a manner outside the operatingspecifications contained in Microchiprsquos Data Sheets Most likely the person doing so is engaged in theft ofintellectual property

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

protection does not mean that we are guaranteeing the product as ldquounbreakablerdquo

Code protection is constantly evolving We at Microchip are committed to continuously improving the code protectionfeatures of our products Attempts to break Microchiprsquos code protection feature may be a violation of the DigitalMillennium Copyright Act If such acts allow unauthorized access to your software or other copyrighted work youmay have a right to sue for relief under that Act

Legal NoticeInformation contained in this publication regarding device applications and the like is provided only for yourconvenience and may be superseded by updates It is your responsibility to ensure that your application meets with

AVR128DA48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 37

your specifications MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHEREXPRESS OR IMPLIED WRITTEN OR ORAL STATUTORY OR OTHERWISE RELATED TO THE INFORMATIONINCLUDING BUT NOT LIMITED TO ITS CONDITION QUALITY PERFORMANCE MERCHANTABILITY ORFITNESS FOR PURPOSE Microchip disclaims all liability arising from this information and its use Use of Microchipdevices in life support andor safety applications is entirely at the buyerrsquos risk and the buyer agrees to defendindemnify and hold harmless Microchip from any and all damages claims suits or expenses resulting from suchuse No licenses are conveyed implicitly or otherwise under any Microchip intellectual property rights unlessotherwise stated

TrademarksThe 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-5760-2

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

AVR128DA48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 38

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupporthttpwwwmicrochipcomsupportWeb AddresshttpwwwmicrochipcomAtlantaDuluth 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 DS50002971A-page 39

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Kit Overview
      • 2 Getting Started
        • 21 Quick Start
        • 22 Design Documentation and Relevant Links
          • 3 Curiosity Nano
            • 31 On-Board Debugger Overview
              • 311 Debugger
              • 312 Virtual Serial Port (CDC)
                • 3121 Overview
                • 3122 Operating System Support
                • 3123 Limitations
                • 3124 Signaling
                • 3125 Advanced Use
                  • 313 Mass Storage Device
                    • 3131 Mass Storage Device Implementation
                    • 3132 Fuse Bytes
                    • 3133 Limitations of Drag-and-Drop Programming
                    • 3134 Special Commands
                      • 314 Data Gateway Interface (DGI)
                        • 3141 Debug GPIO
                        • 3142 Timestamping
                            • 32 Curiosity Nano Standard Pinout
                            • 33 Power Supply
                              • 331 Target Regulator
                              • 332 External Supply
                              • 333 VBUS Output Pin
                              • 334 Power Supply Exceptions
                                • 34 Low Power Measurement
                                • 35 Programming External Microcontrollers
                                  • 351 Supported Devices
                                  • 352 Software Configuration
                                  • 353 Hardware Modifications
                                  • 354 Connecting to External Microcontrollers
                                    • 36 Connecting External Debuggers
                                      • 4 Hardware User Guide
                                        • 41 Connectors
                                          • 411 AVR128DA48 Curiosity Nano Pinout
                                          • 412 Using Pin Headers
                                            • 42 Peripherals
                                              • 421 LED
                                              • 422 Mechanical Switch
                                              • 423 Crystal
                                              • 424 On-Board Debugger Implementation
                                                • 4241 On-Board Debugger Connections
                                                  • 5 Hardware Revision History and Known Issues
                                                    • 51 Identifying Product ID and Revision
                                                    • 52 Revision 3
                                                      • 6 Document Revision History
                                                      • 7 Appendix
                                                        • 71 Schematic
                                                        • 72 Assembly Drawing
                                                        • 73 Curiosity Nano Base for Click boardstrade
                                                        • 74 Disconnecting the On-board Debugger
                                                        • 75 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: AVR128DA48 Curiosity Nano User Guide - Microchip Technologyww1.microchip.com/downloads/en/DeviceDoc/AVR128DA48... · 2020-03-19 · AVR128DA48 Curiosity Nano AVR128DA48 Curiosity

Table of Contents

Preface1

1 Introduction 4

11 Features 412 Kit Overview 4

2 Getting Started 5

21 Quick Start522 Design Documentation and Relevant Links 5

3 Curiosity Nano7

31 On-Board Debugger Overview7311 Debugger7312 Virtual Serial Port (CDC)8

3121 Overview 83122 Operating System Support 83123 Limitations 93124 Signaling93125 Advanced Use 9

313 Mass Storage Device103131 Mass Storage Device Implementation103132 Fuse Bytes113133 Limitations of Drag-and-Drop Programming113134 Special Commands 11

314 Data Gateway Interface (DGI) 123141 Debug GPIO123142 Timestamping12

32 Curiosity Nano Standard Pinout1333 Power Supply 13

331 Target Regulator 14332 External Supply15333 VBUS Output Pin16334 Power Supply Exceptions16

34 Low Power Measurement1735 Programming External Microcontrollers 18

351 Supported Devices 18352 Software Configuration 18353 Hardware Modifications 19354 Connecting to External Microcontrollers20

36 Connecting External Debuggers 21

4 Hardware User Guide 24

41 Connectors24411 AVR128DA48 Curiosity Nano Pinout24412 Using Pin Headers24

42 Peripherals 25

AVR128DA48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 2

421 LED25422 Mechanical Switch25423 Crystal25424 On-Board Debugger Implementation26

4241 On-Board Debugger Connections 26

5 Hardware Revision History and Known Issues 27

51 Identifying Product ID and Revision 2752 Revision 327

6 Document Revision History28

7 Appendix 29

71 Schematic2972 Assembly Drawing3173 Curiosity Nano Base for Click boardstrade 3274 Disconnecting the On-board Debugger3375 Getting Started with IAR34

The Microchip Website37

Product Change Notification Service37

Customer Support 37

Microchip Devices Code Protection Feature 37

Legal Notice 37

Trademarks 38

Quality Management System 38

Worldwide Sales and Service39

AVR128DA48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 3

1 Introduction

11 Featuresbull AVR128DA48-IPT Microcontrollerbull One Yellow User LEDbull One Mechanical User Switchbull One 32768 kHz Crystalbull On-Board Debugger

ndash Board identification in Atmel StudioMicrochip MPLABreg X IDEndash 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 18-51V output voltage (limited by USB input voltage)ndash 500 mA maximum output current (limited by ambient temperature and output voltage)

12 Kit OverviewThe Microchip AVR128DA48 Curiosity Nano Evaluation Kit is a hardware platform to evaluate the AVR128DA48microcontroller

Figure 1-1 AVR128DA48 Curiosity Nano Evaluation Kit Overview

Micro USB Connector

DebuggerPowerStatus

LED32768 kHz

CrystalUser LED

(LED0)User Switch

(SW0)AVR128DA48

MCU

AVR128DA48 Curiosity NanoIntroduction

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 4

2 Getting Started

21 Quick StartSteps to start exploring the AVR128DA48 Curiosity Nano Board

1 Download Atmel StudioMicrochip MPLABreg X IDE2 Launch Atmel StudioMicrochip MPLABreg X IDE3 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

Driver InstallationWhen 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 Atmel StudioMicrochipMPLABreg X IDE

Kit WindowOnce the board is powered the green status LED will be lit and Atmel StudioMicrochip MPLABreg X IDE will auto-detect which boards are connected Atmel StudioMicrochip MPLABreg X IDE will present relevant information like datasheets and board documentation The AVR128DA48 device on the AVR128DA48 Curiosity Nano Board isprogrammed and debugged by the on-board debugger and therefore no external programmer or debugger tool isrequired

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

22 Design Documentation and Relevant LinksThe following list contains links to the most relevant documents and software for the AVR128DA48 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 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

AVR128DA48 Curiosity NanoGetting Started

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 5

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 AVR 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 AVR Solutions - Microchip PIC and AVR Device Solutions contains complete applicationsfor use with Microchip development boards ready to be adapted and extended

bull AVR128DA48 Curiosity Nano website - Kit information latest user guide and design documentationbull AVR128DA48 Curiosity Nano on microchipDIRECT - Purchase this kit on microchipDIRECT

AVR128DA48 Curiosity NanoGetting Started

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 6

3 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 Atmel StudioMicrochip MPLABreg X IDE 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)

31 On-Board Debugger OverviewAVR128DA48 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 AVR128DA48 in Atmel StudioMicrochip MPLABreg X IDEbull A mass storage device that allows drag-and-drop programming of the AVR128DA48bull A virtual serial port (CDC) that is connected to a Universal Asynchronous ReceiverTransmitter (UART) on the

AVR128DA48 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 AVR128DA48 Curiosity Nano BoardThe table below shows how the LED is controlled in different operation modes

Table 3-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

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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 7

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

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

3121 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 3-1 CDC Connection

Target MCU

UART TX

UART RX

Debugger

USBCDC RX

CDC TX

PCTerminalSoftware

TargetReceive

TargetSend

TerminalReceive

TerminalSend

Info  As shown in Figure 3-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

3122 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 Atmel StudioMicrochip MPLABreg X IDE

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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 8

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

3123 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

3124 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 the DTR signal will not disable the level shifters but disable the receiver so no further data will bestreamed to the host Data packets that are already queued up for sending to the target will continue to be sent outbut no further data will be accepted

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

3125 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=

The maximum message length is 50 characters ndash all remaining data in the frame are ignored

The default baud rate used in this mode is 9600 bps but if the CDC is already active or has been configured thepreviously used baud rate still applies

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 9

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 because the on-board debugger buffers framesand not bytes A maximum of four 64-byte frames can be active at any time The on-board debugger will throttle theincoming frames 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

313 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 supportbull Write access for programming Intelreg HEX formatted files into the target devicersquos memorybull Write access for simple text files for utility purposes

3131 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 wayfulfill the 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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 10

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

3132 Fuse Bytes

Fuse Bytes (AVRreg MCU Targets)When doing drag-and-drop programming the debugger masks out fuse bits that attempt to disable Unified Programand Debug Interface (UPDI) This means that the UPDI pin cannot be used in its reset or GPIO modes selecting oneof the alternative functions on the UPDI pin would render the device inaccessible without using an external debuggercapable of high-voltage UPDI activation

3133 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 useAtmel StudioMicrochip MPLABreg X IDE

Enabling CRC Check in FusesIt is not advisable to enable the CRC check in the target devicersquos fuses when using drag-and-drop programming Thisbecause 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 Atmel StudioMicrochip MPLABreg

X IDE which will automatically clear the CRC fuses after erasing

3134 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

Table 3-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 ldquoCDC Override Moderdquo

CMDRESET Resets the target device by entering Programming mode and then exitingProgramming mode immediately thereafter Exact timing can vary according tothe programming interface of the target device (Debugger firmware v116 ornewer)

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

CMD0V Powers down the target device by disabling the target supply regulator Ifexternal power is provided this has no effect (Debugger firmware v116 ornewer)

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

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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 11

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

314 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 Atmel StudioMicrochip MPLABreg X IDE

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

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

3141 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 VisualizerFigure 3-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

3142 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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 12

32 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 3-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

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 3-3 Curiosity Nano Standard Pinout

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

33 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 AVR128DA48 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 AVR128DA48Curiosity Nano

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 13

Figure 3-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

331 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 implementationis 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 AVR128DA48microcontroller The voltage limits configured in the on-board debugger on AVR128DA48 Curiosity Nano are18-51V

Info  The target voltage is set to 33V when the board is manufactured It can be changed throughMPLAB X IDE project properties and in the Atmel Studio device programming dialog Any change to thetarget voltage is persistent even through 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 Atmel StudioMicrochip MPLABreg X IDE are not immediatelyapplied to the board The new voltage setting is applied to the board when the debugger is accessed inany way like pushing the Refresh 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 only supports settings of 00V 33V and 50V See section 3134 Special Commands forfurther details

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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 14

Figure 3-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

Info  If the external voltage is lower than the monitoring window lower limit (target voltage setting - 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

332 External SupplyAVR128DA48 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 AVR128DA48 is 18-55V Applying a higher voltage may cause permanent damage to theboard

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 15

Info  If an external voltage is applied without pulling the VOFF pin low and an external supply pulls thevoltage lower than the monitoring window 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 AVR128DA48 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

333 VBUS Output PinAVR128DA48 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

Figure 3-6 VBUS Output Voltage vs Current

334 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 between 44V to 525V) and thevoltage drop over the MIC5353 regulator at a given voltage setting and current consumption If a higher outputvoltage is needed use a USB power source that can provide a higher input voltage or use an external voltage supplyon the VTG pin

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 16

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 differ more than 100 mV overunder the voltage setting it will be detected by the on-board debugger and theinternal voltage regulator will be shut down To fix this issue remove the applied voltage from the VTG pin and theon-board debugger will enable the on-board voltage regulator when the new condition is detected Note that the PSLED will be blinking rapidly if the target voltage is below 100 mV of the setting but will be lit normally when it is higherthan 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 really a special case of the issue mentioned above Removethe short-circuit and the on-board debugger will re-enable the on-board target voltage regulator

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

34 Low Power MeasurementPower to the AVR128DA48 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 AVR128DA48 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 AVR128DA48

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 17

Figure 3-7 Target Power Strap

Target Power strap (top side)

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 are tri-state to prevent leakage All IOs connected to the on-boarddebugger are listed in 4241 On-Board Debugger Connections To prevent any leakage to the on-boardlevel shifters they can be disconnected completely as described in 74 Disconnecting the On-boardDebugger

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

351 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

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

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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 18

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

Figure 3-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

353 Hardware ModificationsThe on-board debugger is connected to the AVR128DA48 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 AVR128DA48 from the on-board debugger

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 19

Figure 3-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 AVR128DA48 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 AVR128DA48

354 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 33 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

AVR128DA48 Curiosity Nano has a pull-up resistor R200 connected to its RESET signal (DBG3) The location ofthe pull-up resistor is shown in the 72 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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 20

Figure 3-10 Curiosity Nano Standard Pinout

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

Table 3-4 Programming and Debugging Interfaces

Curiosity Nano Pin UPDI ICSPtrade SWD

DBG0 UPDI DATA SWDIO

DBG1 - CLK SWCLK

DBG2 - - -

DBG3 - MCLR RESET

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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 21

Figure 3-11 Connecting the MPLABreg PICkittrade 4 In-Circuit DebuggerProgrammer to AVR128DA48 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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 22

Figure 3-12 Connecting the Atmel-ICE to AVR128DA48 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 Atmel StudioMicrochip MPLABreg XIDE or mass storage programming while the external tool is active

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 23

4 Hardware User Guide

41 Connectors

411 AVR128DA48 Curiosity Nano PinoutAll the AVR128DA48 IO pins are accessible at the edge connectors on the board The image below shows the boardpinout

Figure 4-1 AVR128DA48 Curiosity Nano Pinout

USB

DEBUGGER

AVR128DA48

SW0

LED0

PS LEDNC

NC

ID

ID

CDC RX

CDCRXUSART1 TXPC0

CDC TX

CDCTXUSART1 RXPC1

DBG1

DBG

1PC6LED0

DBG2

DBG

2PC7SW0

PA0

PA0USART0 TXPTC XY0

PA1PA

1USART0 RXPTC XY1

PC2PC2TWI0 SDA

PC3

PC3TWI0 SCL

PA4

PA4SPI0 MOSIPTC XY4

PA5

PA5SPI0 MISOPTC XY5

PA6

PA6SPI0 SCKPTC XY6

PA7

PA7SPI0 SSPTC XY7

GND

GN

D

PF4

PF4USART2 TXPTC XY36

PF5

PF5USART2 RXPTC XY37

PF2

PF2PTC XY34

PF3

PF3PTC XY35

PB0

PB0PTC XY8

PB1

PB1PTC XY9

PB2

PB2PTC XY10

PB3

PB3PTC XY11

GND

GN

D

PC0

PC0USART1 TXCDC RX

PC1

PC1USART1 RXCDC TX

PC6

PC6LED0

PC7

PC7SW0

VBUS

VBU

S

VOFF

VO

FFDBG3

DBG

3 PF6

DBG0D

BG0 UPDI

GND

GN

D

VTG

VTG

PD7

PD7 AIN7 PTC XY23

PD6

PD6 AIN6 PTC XY22

PD2

PD2 AIN2 PTC XY18 TCA0 WO2

PD1

PD1 AIN1 PTC XY17 TCA0 WO1

PD0

PD0 AIN0 PTC XY16 TCA0 WO0

PD5

PD5 AIN5 PTC XY21

PD4

PD4 AIN4 PTC XY20

PD3

PD3 AIN3 PTC XY19

GND

GN

D

PE3

PE3 PTC XY27

PE2

PE2 PTC XY26

PE1

PE1 PTC XY25

PE0

PE0 PTC XY24

PA3

PA3 PTC XY3

PA2

PA2 PTC XY2

PB5

PB5 PTC XY13

PB4

PB4 PTC XY12

GND

GN

D

PC5

PC5

PC4

PC4

(PF1)

(PF1) (PTC XY33) XTAL32K2

(PF0)

(PF0) (PTC XY32) XTAL32K1

DEBUGGERAVR128DA48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

Touch

Shared pin

AVR128DA48Curiosity Nano

412 Using Pin HeadersThe edge connector footprint on AVR128DA48 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

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

AVR128DA48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 24

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

42 Peripherals

421 LEDThere is one yellow user LED available on the AVR128DA48 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 4-1 LED Connection

AVR128DA48 Pin Function Shared Functionality

PC6 Yellow LED0 Edge connector On-board debugger

422 Mechanical SwitchThe AVR128DA48 Curiosity Nano has one mechanical switch This is a generic user-configurable switch When theswitch 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 PC7

Table 4-2 Mechanical Switch

AVR128DA48 Pin Description Shared Functionality

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

423 Crystal

The AVR128DA48 Curiosity Nano board has a 32768 kHz crystal mounted

The AVR128DA48 is connected to the crystal by default but the GPIOs are also routed to the edge connectorthrough two solder points The two IO lines routed to the edge connector are disconnected by default to reduce thechance of an external signal causing contention with the crystal and to remove excessive capacitance on the linesTo use PF0 and PF1 as GPIO some hardware modifications are required

bull Disconnect the crystal by cutting the two straps on the top side of the board next to the crystal (J210 J211) Thecrystal 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 (J207 J208)

The cut straps and solder points can be seen in Figure 4-2

Table 4-3 Crystal Connections

AVR128DA48 Pin Function Shared Functionality

PF0 TOSC1 (Crystal input) Edge connector

PF1 TOSC2 (Crystal output) Edge connector

AVR128DA48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 25

Figure 4-2 Crystal Connection and Cut Straps

424 On-Board Debugger ImplementationAVR128DA48 Curiosity Nano features an on-board debugger that can be used to program and debug theAVR128DA48 using UPDI The on-board debugger also includes a virtual serial port (CDC) interface over UART anddebug GPIO Atmel StudioMicrochip MPLABreg X IDE 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

4241 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 31 On-Board DebuggerOverview

Table 4-4 On-Board Debugger Connections

AVR128DA48Pin

Debugger Pin Function Shared Functionality

RF1 CDC TX UART RX (AVR128DA48 RX line) Edge connector

RF0 CDC RX UART TX (AVR128DA48 TX line) Edge connector

UPDI DBG0 UPDI Edge connector

PC6 DBG1 GPIO1 Edge connector LED

PC7 DBG2 GPIO0 Edge connector Mechanical Switch

PF6 DBG3 RESET Edge connector

AVR128DA48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 26

5 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

51 Identifying Product ID and RevisionThe revision and product identifier of the AVR128DA48 Curiosity Nano Board can be found in two ways Either byutilizing the Atmel StudioMicrochip MPLABreg X IDE Kit Window or by looking at the sticker on the bottom side of thePCB

By connecting AVR128DA48 Curiosity Nano to a computer with Atmel StudioMicrochip MPLABreg X IDE running theKit Window will pop up The first six digits of the serial number which is listed under kit information contain theproduct identifier 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 AVR128DA48 Curiosity Nano is A09-3280

52 Revision 3Revision 3 is the initially released revision There are no known issues with this revision

AVR128DA48 Curiosity NanoHardware Revision History and Known Issues

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 27

6 Document Revision HistoryDoc rev Date Comment

A 032020 Initial document release

AVR128DA48 Curiosity NanoDocument Revision History

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 28

7 Appendix

71 SchematicFigure 7-1 AVR128DA48 Curiosity Nano Schematic

11

22

33

44

55

66

77

88

DD

CC

BB

AA

2 of

4

AVR1

28D

A48

Curio

sity

Nan

o

102

320

19AV

R128

DA

48_C

urio

sity

_Nan

o_Ta

rget

_MCU

Sch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA R

evisi

on

File

PC

B N

umbe

rPC

B Re

visio

n

Des

igne

d wi

th

Dra

wn

By

PB Shee

t Titl

eTa

rget

MCU

Engi

neer

A

H T

F

A08

-300

23

Size

A3

A09

-328

03

Page

D

ateA

ltium

com

GN

DV

CC_T

ARG

ET

100n

C201

GN

D

PA5_

SPI0

_MIS

OPA

6_SP

I0_S

CKPA

7_SP

I0_S

SPB

0_U

ART

3_TX

PB1_

UA

RT3_

RXPB

2PB

3PB

4PB

5PC

0_U

ART

1_TX

PC1_

UA

RT1_

RXPC

2_I2

C0_S

DA

PC3_I2C0_SCL

PC4PC5PC6_LED0_GPIO1PC7_SW0_GPIO0PD0_AIN0_WO0PD1_AIN1_WO1PD2_AIN2_WO2PD3_AIN3PD4_AIN4

PA3

PA1_UART0_RX

UPDI

PF5_UART2_RX

PF3

PF2

PF1_

TOSC

2PF

0_TO

SC1

PE3

PE2

PE1

PE0

PD5_

AIN

5PD

6_A

IN6

PD7_

AIN

7

GN

D

VCC

_TA

RGET

100n

C202

GN

DV

CC_T

ARG

ET10

0n

C200

PF1_TOSC2

PF0_TOSC1

PA2

PA0_UART0_TX

PF4_UART2_TX

PA4_SPI0_MOSI

GN

D

PA7_

SPI0

_SS

PA6_

SPI0

_SCK

PA5_

SPI0

_MIS

OPA

4_SP

I0_M

OSI

PA3

PA2

PA1_

UA

RT0_

RXPA

0_U

ART

0_TX

PB0_

UA

RT3_

TXPB

1_U

ART

3_RX

PB2

PB3

PB4

PB5

PD7_

AIN

7PD

6_A

IN6

PF5_

UA

RT2_

RXPF

4_U

ART

2_TX

PF3

PF2

32kH

z C

ryst

al

1kR203

USE

R L

ED

VCC

_TA

RGET

PF6_RESET

PC7_SW0_GPIO0

PC6_LED0_GPIO1

GN

D

USE

R B

UTT

ON

PE3

PE2

PE1

PE0

PC0_

UA

RT1_

TXPC

1_U

ART

1_RX

PC2_

I2C0

_SD

APC

3_I2

C0_S

CL

PC4

PC5

PC6_

LED

0_G

PIO

1PC

7_SW

0_G

PIO

0

1kR202

YELLOWLEDSML-D12Y1WT86

2 1D200

TS604VM1-035CR13

4 2

SW20

0

GN

DV

CC_E

DG

E

GN

DG

ND

GN

DG

ND

UPD

IPF

6_RE

SET

J207

J208

J209

BLM

18PG

471S

N1

L200

AVR1

28D

A48

22u

FC2

05

VCC

_ED

GE

GN

D

DBG0

CDC_

UART

TXRXU

ART

CDC_TXCDC_RX

DBG2

DBG1

DBG3

DBG2

DEB

UG

GER

CO

NN

ECTI

ON

S

DBG1

DBG3DBG0

VOFF

ID_S

YS

ID_SYS

VOFF

TAR

GET

BU

LK

VCC

_TA

RGET

RES

ET P

ull

VBU

S

CDC

RX3

CDC

TX4

DBG

15

DBG

26

0 TX

71

RX8

2 SD

A9

3 SC

L10

4 M

OSI

115

MIS

O12

6 SC

K13

7 SS

14G

ND

150

(TX

)16

1 (R

X)

172

183

190

20

GN

D24

DBG

354

DBG

053

GN

D52

VCC

51

PWM

346

AD

C 2

45A

DC

144

AD

C 0

43G

ND

42

438

434

GN

D33

AD

C 7

50A

DC

649

AD

C 5

48PW

M 4

47

DEB

UG

GER

TARG

ET

ID2

VO

FF55

121

222

323

025

126

227

328

429

530

631

732

535

636

737

539

640

741

RESE

RVED

1V

BUS

56

CNA

NO

56-p

in e

dge

conn

ecto

r

J200

J201

J203

J205

J206

J202

J204

PF1

PF0

PF1_

TOSC

2PF

0_TO

SC1

NC

J211

J210

XOUT

XIN

47kR200

AVR

128D

A48

UPD

I

GPI

O1

GPI

O0

RESE

T

DBG

0

DBG

1

DBG

2

DBG

3

Deb

ugge

r

CD

C T

X

CD

C R

X

UA

RT1

RX

UA

RT1

TX

VTG

18V

- 5

5VPC6

PC7

PF6

UPD

I

PC0

PC1

Nam

ePi

n

PA5

1PA

62

PA7

3PB

04

PB1

5PB

26

PB3

7PB

48

PB5

9PC

010

PC1

11PC

212

PC3 13VDD 14GND 15PC4 16PC5 17PC6 18PC7 19PD0 20PD1 21PD2 22PD3 23PD4 24

PD5

25PD

626

PD7

27AV

DD28

GND

29PE

030

PE1

31PE

232

PE3

33XT

AL32

K1P

F034

XTAL

32K2

PF1

35PF

236

PF337 PF438 PF539 PF640 UPDI41 VDD42 GND43 EXTCLKPA044 PA145 PA246 PA347 PA448

AVR1

28D

A48

TQ

FPU

200

PC0_

UA

RT1_

TXPC

1_U

ART

1_RX

PC6_

LED

0_G

PIO

1PC

7_SW

0_G

PIO

0

AVD

D

PD2_

AIN

2_W

O2

PD1_

AIN

1_W

O1

PD0_

AIN

0_W

O0

PD5_

AIN

5PD

4_A

IN4

PD3_

AIN

3

XC2

00

12p

C203

12p

C204

327

68 k

Hz

Crys

tal d

atas

heet

Cc

rysta

l = 9

pFm

ax E

SR =

70k

Ohm

Acc

urac

y plusmn2

0ppm

AVR1

28D

A48

dat

ashe

et

Cxin

= 4

1pF

Cxou

t = 6

0pF

Cl asymp

1( (

14

1pF)

+ (1

60

pF) )

asymp2

44pF

Max

imum

Loa

d =

125

pFM

axim

um E

SR =

80k

Ohm

Estim

ated

Cpc

b =

05p

F

Estim

ated

load

C =

2 (C

crys

tal-

Cpar

a - C

pcb)

C

= 2

(9pF

- 2

44pF

- 0

5pF)

C =

121

2pF

Sele

cted

in d

esig

n af

ter v

erifi

catio

nC=

12p

F12

pF

NO

TE o

n U

ART

CD

C

RXT

X o

n th

e he

ader

den

otes

the

inpu

tout

put d

irect

ion

of th

e sig

nal

resp

ectiv

e to

its

sour

ce

CDC

TX is

out

put f

rom

the

DEB

UG

GER

CD

C RX

is in

put t

o th

e D

EBU

GG

ER

TX is

out

put f

rom

the

TARG

ET d

evic

eRX

is in

put t

o th

e TA

RGET

dev

ice

NO

TE o

n I2

C

No

pull-

ups o

n bo

ard

Pul

l-ups

shou

ld b

e m

ount

ed c

lose

to sl

ave

devi

ce(s

)

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 29

11

22

33

44

55

66

77

88

DD

CC

BB

AA

3 of

4

AVR1

28D

A48

Curio

sity

Nan

o

102

320

19AV

R128

DA

48_C

urio

sity

_Nan

o_D

ebug

gerS

chD

oc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA R

evisi

on

File

PC

B N

umbe

rPC

B Re

visio

n

Des

igne

d wi

th

Dra

wn

By

PB Shee

t Titl

eD

ebug

ger

Engi

neer

A

H T

F

A08

-300

23

Size

A3

A09

-328

03

Page

D

ateA

ltium

com

DEB

UG

GER

USB

MIC

RO

-B C

ON

NEC

TOR

GN

D

USB

D_P

USB

D_N

100n

C107

100n

C108

RXTXU

ART

CDC_

UART

1kR1

07V

CC_P

3V3

SRST

STAT

US_

LED

SHIE

LD

VBU

S

VCC

_P3V

3G

ND

TP10

0

Testp

oint

Arra

y

12

34

56

78

910

TCK

TDO

TMS

Vsu

pTD

IG

ND

TRST

SRST

VTr

efG

ND

J102

GN

D

47u

F

C100

DBG0

DBG

0

21

GRE

EN L

EDSM

L-P1

2MTT

86R

D10

0

VBUS

1D-

2D+

3

GND

5SH

IELD

16

SHIE

LD2

7

ID4

SHIE

LD3

8SH

IELD

49 M

U-M

B014

2AB2

-269

J105

PAD

33

PA00

1PA

012

PA02

3PA

034

GND 10VDDANA 9

PA04

5PA

056

PA06

7PA

078

PA08 11PA09 12PA10 13PA11 14PA14 15PA15 16

PA16

17PA

1718

PA18

19PA

1920

PA22

21US

B_SO

FPA

2322

USB_

DMP

A24

23US

B_DP

PA2

524

PA2725 RESETN26 PA2827 GND28 VDDCORE29 VDDIN30 SWDCLKPA3031 SWDIOPA3132

SAM

D21

E18A

-MU

TU

100

VOUT

1

VOUT

2

GND 3

EN4

VIN

6

NC5

EP 7

MIC

5528

-33

YM

TU

101

VCC

_P3V

3

GN

D

USB

D_P

USB

D_N

GN

D

1uC106

VCC

_MCU

_CO

RE

VCC

_P3V

3

VCC

_P3V

3

22u

FC1

01

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

3V

CC_P

3V3

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

4V

CC_P

3V3

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

5V

CC_P

3V3

GN

D

GN

D GN

D

GN

D

VCC

_ED

GE

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

7V

CC_P

3V3

GN

DDB

G2

DBG

3_CT

RL

S1_0

_TX

S1_1

_RX

S0_2

_TX

DA

CV

TG_A

DC

RESE

RVED

S0_3

_CLK

DBG0_CTRL

CDC_

TX_C

TRL

BOO

T

DEB

UG

GER

PO

WER

STA

TUS

LED

EN1

BYP

6

VOUT

4

GND

2

VIN

3

NCA

DJ5

GND 7

MIC

5353

U10

2

100n

C102

GN

D

GN

D

47kR101

27kR104 G

ND

33k

R106

22u

F

C103 G

ND

1kR1

08

J100

VCC

_LEV

ELV

CC_R

EGU

LATO

R

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

6V

CC_P

3V3

GN

DDB

G1

CDC_

RXCD

C_TX

DBG3

DBG1_CTRL

DEB

UG

GER

REG

ULA

TOR

REG_ENABLE

REG

_EN

ABL

E

47kR103

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

47kR102

47kR105

SWCL

K

GN

D

47kR100 G

ND

DBG

2

S0_0

_RX

DBG

1_CT

RL

DBG

0_CT

RL

DBG

3 O

PEN

DR

AIN

TAR

GET

AD

JUST

ABL

E R

EGU

LATO

R

SRST

DEB

UG

GER

TES

TPO

INT DBG2_CTRL

VO

FFCD

C_RX

_CTR

L

47kR109

DBG

1

CDC_

TX_C

TRL

CDC_

RX_C

TRL

SWCL

K

REG_ADJUST

DBG2_GPIO

DBG

3_CT

RL

DBG

2_CT

RL

UPD

I

UPD

I

GPI

O

GPI

O

RESE

T

Sign

al

DBG

0

DBG

1

DBG

2

DBG

3

ICSP

Inte

rface

DAT

CLK

GPI

O

MCL

R

DBG

3

CD

C T

X

CD

C R

X

UA

RT R

X

UA

RT T

X

UA

RT R

X

UA

RT T

X

TAR

GET

TAR

GET

1kR1

10

VBUS_ADC

1

23

DM

N65

D8L

FBQ

101

VC

C-

-

ID_S

YS

VOFF

1kR112

VCC

_P3V

3

VTG

_AD

CD

AC

MIC

9416

3

VIN

B2VO

UTA1

VIN

A2

ENC2

GND

C1VO

UTB1

U10

8

GN

D

ID_S

YS

VTG

_EN

VTG_EN

VBUS_ADC

SWD

IO

ID_S

YS

TP10

1G

ND

SWD

IO

VO

FF

47kR111 G

ND

ID P

IN

MC3

6213

F100

VCC

_VBU

S

VCC

_VBU

S

VCC

_VBU

S

J101

VCC

_TA

RGET

47k

R113

Prog

ram

min

g co

nnec

tor f

or

fact

ory

prog

ram

min

g of

D

EBU

GG

ER

MIC

5528

Vi

n 2

5V

to 5

5V

Vout

Fix

ed 3

3V

Imax

500

mA

Dro

pout

260

mV

5

00m

A

PTC

Rese

ttabl

e fu

se

Hol

d cu

rrent

500

mA

Trip

cur

rent

100

0mA

Adj

usta

ble

outp

ut a

nd li

mita

tions

- T

he D

EBU

GG

ER c

an a

djus

t the

out

put v

olta

ge o

f the

regu

lato

r bet

wee

n 1

25V

and

51

V to

the

targ

et

- The

vol

tage

out

put i

s lim

ited

by th

e in

put (

USB

) w

hich

can

var

y be

twee

n 4

40V

to 5

25V

- The

leve

l shi

fters

hav

e a

min

imal

vol

tage

leve

l of 1

65V

and

will

lim

it th

e m

inim

um o

pera

ting

volta

ge a

llow

ed fo

r the

ta

rget

to st

ill a

llow

com

mun

icat

ion

- The

MIC

9416

3 ha

s a m

inim

al v

olta

ge le

vel o

f 17

0V a

nd w

ill li

mit

the

min

imum

vol

tage

del

iver

ed to

the

targ

et

- Firm

war

e co

nfig

urat

ion

will

lim

it th

e vo

ltage

rang

e to

be

with

in th

e th

e ta

rget

spec

ifica

tion

R113

is re

quire

d to

pul

l the

Q

101

gate

to a

def

ined

va

lue

whe

n th

e U

100

is no

t po

wer

ed

J100

Cu

t-stra

p us

ed fo

r ful

l sep

arat

ion

of ta

rget

pow

er fr

om th

e le

vel s

hifte

rs a

nd o

n-bo

ard

regu

lato

rs

- For

cur

rent

mea

sure

men

ts us

ing

an e

xter

nal p

ower

supp

ly t

his s

trap

coul

d be

cut

for m

ore

accu

rate

mea

sure

men

ts L

eaka

ge b

ack

thro

ugh

the

switc

h is

in th

e m

icro

am

pere

rang

e

J101

Th

is is

foot

prin

t for

a 1

x2 1

00m

il pi

tch

pin-

head

er th

at c

an b

e us

ed fo

r eas

y cu

rrent

mea

sure

men

t to

the

targ

et m

icro

cont

rolle

r and

the

LED

Bu

tton

To

use

the

foot

prin

t- C

ut th

e tra

ck b

etw

een

the

hole

s an

d m

ount

a p

in-h

eade

r

MIC

5353

Vi

n 2

6V

to 6

VVo

ut 1

25V

to 5

1V

Imax

500

mA

Dro

pout

(typ

ical

) 50

mV

15

0mA

160

mV

5

00m

AA

ccur

acy

2

initi

alTh

erm

al sh

utdo

wn

and

curre

nt li

mit

Max

imum

out

put v

olta

ge is

lim

ited

by th

e in

put v

olta

ge a

nd th

e dr

opou

t vol

tage

in th

e re

gula

tor

(Vm

ax =

Vin

- dr

opou

t)

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 30

72 Assembly DrawingFigure 7-2 AVR128DA48 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

PAC20002 PAC20001 COC200

PAC20102 PAC20101 COC201

PAC20202 PAC20201 COC202

PAC20301 PAC20302 COC203

PAC20401 PAC20402 COC204

PAC20502

PAC20501 COC205

PAD10002 PAD10001 COD100

PAD20001

PAD20002 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

PAJ20701 PAJ20702 PAJ20705 COJ207

PAJ20801 PAJ20802 PAJ20805 COJ208

PAJ20901 PAJ20902 COJ209

PAJ21002 PAJ21001 COJ210

PAJ21102 PAJ21101 COJ211

PAL20002 PAL20001 COL200

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

PAR20002 PAR20001 COR200

PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203

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

PAU200048 PAU200047 PAU200046 PAU200045 PAU200044 PAU200043 PAU200042 PAU200041 PAU200040 PAU200039 PAU200038 PAU200037 PAU200036 PAU200035 PAU200034 PAU200033 PAU200032 PAU200031 PAU200030 PAU200029 PAU200028 PAU200027 PAU200026 PAU200025 PAU200024 PAU200023 PAU200022 PAU200021 PAU200020 PAU200019 PAU200018 PAU200017 PAU200016 PAU200015 PAU200014 PAU200013

PAU200012 PAU200011 PAU200010 PAU20009 PAU20008 PAU20007 PAU20006 PAU20005 PAU20004 PAU20003 PAU20002 PAU20001

COU200

PAXC20001

PAXC20002

COXC200

Figure 7-3 AVR128DA48 Curiosity Nano Assembly Drawing Bottom

ctR

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20002 PAC20001 COC200

PAC20102 PAC20101 COC201

PAC20202 PAC20201 COC202

PAC20301 PAC20302 COC203

PAC20401 PAC20402 COC204

PAC20502

PAC20501 COC205

PAD10002 PAD10001 COD100

PAD20001

PAD20002 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

PAJ20701 PAJ20702 PAJ20705 COJ207

PAJ20801 PAJ20802 PAJ20805 COJ208

PAJ20901 PAJ20902 COJ209

PAJ21002 PAJ21001 COJ210

PAJ21102 PAJ21101 COJ211

PAL20002 PAL20001 COL200

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

PAR20002 PAR20001 COR200

PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203

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

PAU200048 PAU200047 PAU200046 PAU200045 PAU200044 PAU200043 PAU200042 PAU200041 PAU200040 PAU200039 PAU200038 PAU200037 PAU200036 PAU200035 PAU200034 PAU200033 PAU200032 PAU200031 PAU200030 PAU200029 PAU200028 PAU200027 PAU200026 PAU200025 PAU200024 PAU200023 PAU200022 PAU200021 PAU200020 PAU200019 PAU200018 PAU200017 PAU200016 PAU200015 PAU200014 PAU200013

PAU200012 PAU200011 PAU200010 PAU20009 PAU20008 PAU20007 PAU20006 PAU20005 PAU20004 PAU20003 PAU20002 PAU20001

COU200

PAXC20001

PAXC20002

COXC200

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 31

73 Curiosity Nano Base for Click boardstrade

Figure 7-4 AVR128DA48 Curiosity Nano Pinout Mapping

USB

DEB

UG

GER

AVR1

28D

A48

SW0

LED

0

PS L

EDNC

NC

ID

ID

CDC RX

CDCRX

USART1 TX

PC0

CDC TX

CDCTX

USART1 RX

PC1

DBG1

DBG1

PC6

LED0

DBG2

DBG2

PC7

SW0

PA0

PA0

USART0 TX

PTC XY0

PA1

PA1

USART0 RX

PTC XY1

PC2

PC2

TWI0 SDA

PC3

PC3

TWI0 SCL

PA4

PA4

SPI0 MOSI

PTC XY4

PA5

PA5

SPI0 MISO

PTC XY5

PA6

PA6

SPI0 SCK

PTC XY6

PA7

PA7

SPI0 SS

PTC XY7

GND

GND

PF4

PF4

USART2 TX

PTC XY36

PF5

PF5

USART2 RX

PTC XY37

PF2

PF2

PTC XY34

PF3

PF3

PTC XY35

PB0

PB0

PTC XY8

PB1

PB1

PTC XY9

PB2

PB2

PTC XY10

PB3

PB3

PTC XY11

GND

GND

PC0

PC0

USART1 TX

CDC RX

PC1

PC1

USART1 RX

CDC TX

PC6

PC6

LED0

PC7

PC7

SW0

VBUS

VBUS

VOFF

VOFF

DBG3

DBG3

PF6

DBG0

DBG0

UPDI

GND

GND

VTG

VTG

PD7

PD7

AIN7

PTC XY23

PD6

PD6

AIN6

PTC XY22

PD2

PD2

AIN2

PTC XY18

TCA0 WO2

PD1

PD1

AIN1

PTC XY17

TCA0 WO1

PD0

PD0

AIN0

PTC XY16

TCA0 WO0

PD5

PD5

AIN5

PTC XY21

PD4

PD4

AIN4

PTC XY20

PD3

PD3

AIN3

PTC XY19

GND

GND

PE3

PE3

PTC XY27

PE2

PE2

PTC XY26

PE1

PE1

PTC XY25

PE0

PE0

PTC XY24

PA3

PA3

PTC XY3

PA2

PA2

PTC XY2

PB5

PB5

PTC XY13

PB4

PB4

PTC XY12

GND

GND

PC5

PC5

PC4

PC4

(PF1)

(PF1)

(PTC XY33)

XTAL32K2

(PF0)

(PF0)

(PTC XY32)

XTAL32K1

DEB

UG

GER

AVR1

28D

A48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

Touch

Shared pin

AVR1

28D

A48

Curio

sity

Nan

o

1

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

2

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

3

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

Xpl

aine

d Pr

o Ex

tens

ion

EXT1

12

1920

Curio

sity

Nan

o Ba

sefo

r clic

k bo

ards

TM

PD3

PD0

PD7

PD6

PA7

PA1

PA6

PA0

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

PD4

PD1

PF3

PF2

PE2

PF5

PA6

PF4

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

PD5

PD2

PE1

PE0

PE3

PA1

PA6

PA0

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

ID

GND

PD4

PD5

PF3

PE1

PD1

PD2

PF2

PE3

PC2

PC3

PF5

PF4

PE2

PA4

PA5

PA6

GND

+33V

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 32

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

The block diagram below shows all connections between the debugger and the AVR128DA48 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 7-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 7-6 Details about connecting an external debugger are described in 36 Connecting ExternalDebuggers

Figure 7-5  On-Board Debugger Connections Block Diagram

DEB

UG

GER

TARGETLevel-Shift

PA04PA06PA07PA08PA16PA00PA01

USB

DIR x 5

VCC_P3V3

VBUS

VCC

_LEV

EL

VCC

_TA

RGET

DBG0DBG1DBG2DBG3CDC 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

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 33

Figure 7-6 On-Board Debugger Connection Cut Straps

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

75 Getting Started with IARIAR Embedded Workbenchreg for AVRreg is a proprietary high-efficiency compiler not based on GCC Programming anddebugging of AVR128DA48 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 7-73 In the category Debugger select the Setup tab Select Atmel-ICE as the driver as shown in Figure 7-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 7-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

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 34

Figure 7-7 Select Target Device

Figure 7-8 Select Debugger

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 35

Figure 7-9 Configure Interface

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 36

The Microchip WebsiteMicrochip provides online support via our website at httpwwwmicrochipcom This website is used to make filesand information 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 ServiceMicrochiprsquos 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 httpwwwmicrochipcompcn and follow the registration instructions

Customer SupportUsers 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 httpwwwmicrochipcomsupport

Microchip Devices Code Protection FeatureNote the following details of the code protection feature on Microchip devices

bull Microchip products meet the specification contained in their particular Microchip Data Sheetbull Microchip believes that its family of products is one of the most secure families of its kind on the market today

when used in the intended manner and under normal conditionsbull There are dishonest and possibly illegal methods used to breach the code protection feature All of these

methods to our knowledge require using the Microchip products in a manner outside the operatingspecifications contained in Microchiprsquos Data Sheets Most likely the person doing so is engaged in theft ofintellectual property

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

protection does not mean that we are guaranteeing the product as ldquounbreakablerdquo

Code protection is constantly evolving We at Microchip are committed to continuously improving the code protectionfeatures of our products Attempts to break Microchiprsquos code protection feature may be a violation of the DigitalMillennium Copyright Act If such acts allow unauthorized access to your software or other copyrighted work youmay have a right to sue for relief under that Act

Legal NoticeInformation contained in this publication regarding device applications and the like is provided only for yourconvenience and may be superseded by updates It is your responsibility to ensure that your application meets with

AVR128DA48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 37

your specifications MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHEREXPRESS OR IMPLIED WRITTEN OR ORAL STATUTORY OR OTHERWISE RELATED TO THE INFORMATIONINCLUDING BUT NOT LIMITED TO ITS CONDITION QUALITY PERFORMANCE MERCHANTABILITY ORFITNESS FOR PURPOSE Microchip disclaims all liability arising from this information and its use Use of Microchipdevices in life support andor safety applications is entirely at the buyerrsquos risk and the buyer agrees to defendindemnify and hold harmless Microchip from any and all damages claims suits or expenses resulting from suchuse No licenses are conveyed implicitly or otherwise under any Microchip intellectual property rights unlessotherwise stated

TrademarksThe 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-5760-2

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

AVR128DA48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 38

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupporthttpwwwmicrochipcomsupportWeb AddresshttpwwwmicrochipcomAtlantaDuluth 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 DS50002971A-page 39

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Kit Overview
      • 2 Getting Started
        • 21 Quick Start
        • 22 Design Documentation and Relevant Links
          • 3 Curiosity Nano
            • 31 On-Board Debugger Overview
              • 311 Debugger
              • 312 Virtual Serial Port (CDC)
                • 3121 Overview
                • 3122 Operating System Support
                • 3123 Limitations
                • 3124 Signaling
                • 3125 Advanced Use
                  • 313 Mass Storage Device
                    • 3131 Mass Storage Device Implementation
                    • 3132 Fuse Bytes
                    • 3133 Limitations of Drag-and-Drop Programming
                    • 3134 Special Commands
                      • 314 Data Gateway Interface (DGI)
                        • 3141 Debug GPIO
                        • 3142 Timestamping
                            • 32 Curiosity Nano Standard Pinout
                            • 33 Power Supply
                              • 331 Target Regulator
                              • 332 External Supply
                              • 333 VBUS Output Pin
                              • 334 Power Supply Exceptions
                                • 34 Low Power Measurement
                                • 35 Programming External Microcontrollers
                                  • 351 Supported Devices
                                  • 352 Software Configuration
                                  • 353 Hardware Modifications
                                  • 354 Connecting to External Microcontrollers
                                    • 36 Connecting External Debuggers
                                      • 4 Hardware User Guide
                                        • 41 Connectors
                                          • 411 AVR128DA48 Curiosity Nano Pinout
                                          • 412 Using Pin Headers
                                            • 42 Peripherals
                                              • 421 LED
                                              • 422 Mechanical Switch
                                              • 423 Crystal
                                              • 424 On-Board Debugger Implementation
                                                • 4241 On-Board Debugger Connections
                                                  • 5 Hardware Revision History and Known Issues
                                                    • 51 Identifying Product ID and Revision
                                                    • 52 Revision 3
                                                      • 6 Document Revision History
                                                      • 7 Appendix
                                                        • 71 Schematic
                                                        • 72 Assembly Drawing
                                                        • 73 Curiosity Nano Base for Click boardstrade
                                                        • 74 Disconnecting the On-board Debugger
                                                        • 75 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: AVR128DA48 Curiosity Nano User Guide - Microchip Technologyww1.microchip.com/downloads/en/DeviceDoc/AVR128DA48... · 2020-03-19 · AVR128DA48 Curiosity Nano AVR128DA48 Curiosity

421 LED25422 Mechanical Switch25423 Crystal25424 On-Board Debugger Implementation26

4241 On-Board Debugger Connections 26

5 Hardware Revision History and Known Issues 27

51 Identifying Product ID and Revision 2752 Revision 327

6 Document Revision History28

7 Appendix 29

71 Schematic2972 Assembly Drawing3173 Curiosity Nano Base for Click boardstrade 3274 Disconnecting the On-board Debugger3375 Getting Started with IAR34

The Microchip Website37

Product Change Notification Service37

Customer Support 37

Microchip Devices Code Protection Feature 37

Legal Notice 37

Trademarks 38

Quality Management System 38

Worldwide Sales and Service39

AVR128DA48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 3

1 Introduction

11 Featuresbull AVR128DA48-IPT Microcontrollerbull One Yellow User LEDbull One Mechanical User Switchbull One 32768 kHz Crystalbull On-Board Debugger

ndash Board identification in Atmel StudioMicrochip MPLABreg X IDEndash 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 18-51V output voltage (limited by USB input voltage)ndash 500 mA maximum output current (limited by ambient temperature and output voltage)

12 Kit OverviewThe Microchip AVR128DA48 Curiosity Nano Evaluation Kit is a hardware platform to evaluate the AVR128DA48microcontroller

Figure 1-1 AVR128DA48 Curiosity Nano Evaluation Kit Overview

Micro USB Connector

DebuggerPowerStatus

LED32768 kHz

CrystalUser LED

(LED0)User Switch

(SW0)AVR128DA48

MCU

AVR128DA48 Curiosity NanoIntroduction

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 4

2 Getting Started

21 Quick StartSteps to start exploring the AVR128DA48 Curiosity Nano Board

1 Download Atmel StudioMicrochip MPLABreg X IDE2 Launch Atmel StudioMicrochip MPLABreg X IDE3 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

Driver InstallationWhen 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 Atmel StudioMicrochipMPLABreg X IDE

Kit WindowOnce the board is powered the green status LED will be lit and Atmel StudioMicrochip MPLABreg X IDE will auto-detect which boards are connected Atmel StudioMicrochip MPLABreg X IDE will present relevant information like datasheets and board documentation The AVR128DA48 device on the AVR128DA48 Curiosity Nano Board isprogrammed and debugged by the on-board debugger and therefore no external programmer or debugger tool isrequired

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

22 Design Documentation and Relevant LinksThe following list contains links to the most relevant documents and software for the AVR128DA48 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 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

AVR128DA48 Curiosity NanoGetting Started

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 5

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 AVR 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 AVR Solutions - Microchip PIC and AVR Device Solutions contains complete applicationsfor use with Microchip development boards ready to be adapted and extended

bull AVR128DA48 Curiosity Nano website - Kit information latest user guide and design documentationbull AVR128DA48 Curiosity Nano on microchipDIRECT - Purchase this kit on microchipDIRECT

AVR128DA48 Curiosity NanoGetting Started

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 6

3 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 Atmel StudioMicrochip MPLABreg X IDE 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)

31 On-Board Debugger OverviewAVR128DA48 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 AVR128DA48 in Atmel StudioMicrochip MPLABreg X IDEbull A mass storage device that allows drag-and-drop programming of the AVR128DA48bull A virtual serial port (CDC) that is connected to a Universal Asynchronous ReceiverTransmitter (UART) on the

AVR128DA48 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 AVR128DA48 Curiosity Nano BoardThe table below shows how the LED is controlled in different operation modes

Table 3-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

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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 7

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

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

3121 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 3-1 CDC Connection

Target MCU

UART TX

UART RX

Debugger

USBCDC RX

CDC TX

PCTerminalSoftware

TargetReceive

TargetSend

TerminalReceive

TerminalSend

Info  As shown in Figure 3-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

3122 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 Atmel StudioMicrochip MPLABreg X IDE

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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 8

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

3123 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

3124 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 the DTR signal will not disable the level shifters but disable the receiver so no further data will bestreamed to the host Data packets that are already queued up for sending to the target will continue to be sent outbut no further data will be accepted

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

3125 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=

The maximum message length is 50 characters ndash all remaining data in the frame are ignored

The default baud rate used in this mode is 9600 bps but if the CDC is already active or has been configured thepreviously used baud rate still applies

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 9

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 because the on-board debugger buffers framesand not bytes A maximum of four 64-byte frames can be active at any time The on-board debugger will throttle theincoming frames 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

313 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 supportbull Write access for programming Intelreg HEX formatted files into the target devicersquos memorybull Write access for simple text files for utility purposes

3131 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 wayfulfill the 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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 10

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

3132 Fuse Bytes

Fuse Bytes (AVRreg MCU Targets)When doing drag-and-drop programming the debugger masks out fuse bits that attempt to disable Unified Programand Debug Interface (UPDI) This means that the UPDI pin cannot be used in its reset or GPIO modes selecting oneof the alternative functions on the UPDI pin would render the device inaccessible without using an external debuggercapable of high-voltage UPDI activation

3133 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 useAtmel StudioMicrochip MPLABreg X IDE

Enabling CRC Check in FusesIt is not advisable to enable the CRC check in the target devicersquos fuses when using drag-and-drop programming Thisbecause 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 Atmel StudioMicrochip MPLABreg

X IDE which will automatically clear the CRC fuses after erasing

3134 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

Table 3-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 ldquoCDC Override Moderdquo

CMDRESET Resets the target device by entering Programming mode and then exitingProgramming mode immediately thereafter Exact timing can vary according tothe programming interface of the target device (Debugger firmware v116 ornewer)

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

CMD0V Powers down the target device by disabling the target supply regulator Ifexternal power is provided this has no effect (Debugger firmware v116 ornewer)

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

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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 11

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

314 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 Atmel StudioMicrochip MPLABreg X IDE

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

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

3141 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 VisualizerFigure 3-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

3142 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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 12

32 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 3-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

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 3-3 Curiosity Nano Standard Pinout

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

33 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 AVR128DA48 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 AVR128DA48Curiosity Nano

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 13

Figure 3-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

331 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 implementationis 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 AVR128DA48microcontroller The voltage limits configured in the on-board debugger on AVR128DA48 Curiosity Nano are18-51V

Info  The target voltage is set to 33V when the board is manufactured It can be changed throughMPLAB X IDE project properties and in the Atmel Studio device programming dialog Any change to thetarget voltage is persistent even through 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 Atmel StudioMicrochip MPLABreg X IDE are not immediatelyapplied to the board The new voltage setting is applied to the board when the debugger is accessed inany way like pushing the Refresh 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 only supports settings of 00V 33V and 50V See section 3134 Special Commands forfurther details

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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 14

Figure 3-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

Info  If the external voltage is lower than the monitoring window lower limit (target voltage setting - 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

332 External SupplyAVR128DA48 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 AVR128DA48 is 18-55V Applying a higher voltage may cause permanent damage to theboard

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 15

Info  If an external voltage is applied without pulling the VOFF pin low and an external supply pulls thevoltage lower than the monitoring window 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 AVR128DA48 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

333 VBUS Output PinAVR128DA48 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

Figure 3-6 VBUS Output Voltage vs Current

334 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 between 44V to 525V) and thevoltage drop over the MIC5353 regulator at a given voltage setting and current consumption If a higher outputvoltage is needed use a USB power source that can provide a higher input voltage or use an external voltage supplyon the VTG pin

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 16

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 differ more than 100 mV overunder the voltage setting it will be detected by the on-board debugger and theinternal voltage regulator will be shut down To fix this issue remove the applied voltage from the VTG pin and theon-board debugger will enable the on-board voltage regulator when the new condition is detected Note that the PSLED will be blinking rapidly if the target voltage is below 100 mV of the setting but will be lit normally when it is higherthan 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 really a special case of the issue mentioned above Removethe short-circuit and the on-board debugger will re-enable the on-board target voltage regulator

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

34 Low Power MeasurementPower to the AVR128DA48 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 AVR128DA48 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 AVR128DA48

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 17

Figure 3-7 Target Power Strap

Target Power strap (top side)

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 are tri-state to prevent leakage All IOs connected to the on-boarddebugger are listed in 4241 On-Board Debugger Connections To prevent any leakage to the on-boardlevel shifters they can be disconnected completely as described in 74 Disconnecting the On-boardDebugger

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

351 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

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

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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 18

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

Figure 3-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

353 Hardware ModificationsThe on-board debugger is connected to the AVR128DA48 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 AVR128DA48 from the on-board debugger

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 19

Figure 3-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 AVR128DA48 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 AVR128DA48

354 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 33 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

AVR128DA48 Curiosity Nano has a pull-up resistor R200 connected to its RESET signal (DBG3) The location ofthe pull-up resistor is shown in the 72 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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 20

Figure 3-10 Curiosity Nano Standard Pinout

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

Table 3-4 Programming and Debugging Interfaces

Curiosity Nano Pin UPDI ICSPtrade SWD

DBG0 UPDI DATA SWDIO

DBG1 - CLK SWCLK

DBG2 - - -

DBG3 - MCLR RESET

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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 21

Figure 3-11 Connecting the MPLABreg PICkittrade 4 In-Circuit DebuggerProgrammer to AVR128DA48 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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 22

Figure 3-12 Connecting the Atmel-ICE to AVR128DA48 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 Atmel StudioMicrochip MPLABreg XIDE or mass storage programming while the external tool is active

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 23

4 Hardware User Guide

41 Connectors

411 AVR128DA48 Curiosity Nano PinoutAll the AVR128DA48 IO pins are accessible at the edge connectors on the board The image below shows the boardpinout

Figure 4-1 AVR128DA48 Curiosity Nano Pinout

USB

DEBUGGER

AVR128DA48

SW0

LED0

PS LEDNC

NC

ID

ID

CDC RX

CDCRXUSART1 TXPC0

CDC TX

CDCTXUSART1 RXPC1

DBG1

DBG

1PC6LED0

DBG2

DBG

2PC7SW0

PA0

PA0USART0 TXPTC XY0

PA1PA

1USART0 RXPTC XY1

PC2PC2TWI0 SDA

PC3

PC3TWI0 SCL

PA4

PA4SPI0 MOSIPTC XY4

PA5

PA5SPI0 MISOPTC XY5

PA6

PA6SPI0 SCKPTC XY6

PA7

PA7SPI0 SSPTC XY7

GND

GN

D

PF4

PF4USART2 TXPTC XY36

PF5

PF5USART2 RXPTC XY37

PF2

PF2PTC XY34

PF3

PF3PTC XY35

PB0

PB0PTC XY8

PB1

PB1PTC XY9

PB2

PB2PTC XY10

PB3

PB3PTC XY11

GND

GN

D

PC0

PC0USART1 TXCDC RX

PC1

PC1USART1 RXCDC TX

PC6

PC6LED0

PC7

PC7SW0

VBUS

VBU

S

VOFF

VO

FFDBG3

DBG

3 PF6

DBG0D

BG0 UPDI

GND

GN

D

VTG

VTG

PD7

PD7 AIN7 PTC XY23

PD6

PD6 AIN6 PTC XY22

PD2

PD2 AIN2 PTC XY18 TCA0 WO2

PD1

PD1 AIN1 PTC XY17 TCA0 WO1

PD0

PD0 AIN0 PTC XY16 TCA0 WO0

PD5

PD5 AIN5 PTC XY21

PD4

PD4 AIN4 PTC XY20

PD3

PD3 AIN3 PTC XY19

GND

GN

D

PE3

PE3 PTC XY27

PE2

PE2 PTC XY26

PE1

PE1 PTC XY25

PE0

PE0 PTC XY24

PA3

PA3 PTC XY3

PA2

PA2 PTC XY2

PB5

PB5 PTC XY13

PB4

PB4 PTC XY12

GND

GN

D

PC5

PC5

PC4

PC4

(PF1)

(PF1) (PTC XY33) XTAL32K2

(PF0)

(PF0) (PTC XY32) XTAL32K1

DEBUGGERAVR128DA48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

Touch

Shared pin

AVR128DA48Curiosity Nano

412 Using Pin HeadersThe edge connector footprint on AVR128DA48 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

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

AVR128DA48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 24

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

42 Peripherals

421 LEDThere is one yellow user LED available on the AVR128DA48 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 4-1 LED Connection

AVR128DA48 Pin Function Shared Functionality

PC6 Yellow LED0 Edge connector On-board debugger

422 Mechanical SwitchThe AVR128DA48 Curiosity Nano has one mechanical switch This is a generic user-configurable switch When theswitch 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 PC7

Table 4-2 Mechanical Switch

AVR128DA48 Pin Description Shared Functionality

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

423 Crystal

The AVR128DA48 Curiosity Nano board has a 32768 kHz crystal mounted

The AVR128DA48 is connected to the crystal by default but the GPIOs are also routed to the edge connectorthrough two solder points The two IO lines routed to the edge connector are disconnected by default to reduce thechance of an external signal causing contention with the crystal and to remove excessive capacitance on the linesTo use PF0 and PF1 as GPIO some hardware modifications are required

bull Disconnect the crystal by cutting the two straps on the top side of the board next to the crystal (J210 J211) Thecrystal 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 (J207 J208)

The cut straps and solder points can be seen in Figure 4-2

Table 4-3 Crystal Connections

AVR128DA48 Pin Function Shared Functionality

PF0 TOSC1 (Crystal input) Edge connector

PF1 TOSC2 (Crystal output) Edge connector

AVR128DA48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 25

Figure 4-2 Crystal Connection and Cut Straps

424 On-Board Debugger ImplementationAVR128DA48 Curiosity Nano features an on-board debugger that can be used to program and debug theAVR128DA48 using UPDI The on-board debugger also includes a virtual serial port (CDC) interface over UART anddebug GPIO Atmel StudioMicrochip MPLABreg X IDE 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

4241 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 31 On-Board DebuggerOverview

Table 4-4 On-Board Debugger Connections

AVR128DA48Pin

Debugger Pin Function Shared Functionality

RF1 CDC TX UART RX (AVR128DA48 RX line) Edge connector

RF0 CDC RX UART TX (AVR128DA48 TX line) Edge connector

UPDI DBG0 UPDI Edge connector

PC6 DBG1 GPIO1 Edge connector LED

PC7 DBG2 GPIO0 Edge connector Mechanical Switch

PF6 DBG3 RESET Edge connector

AVR128DA48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 26

5 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

51 Identifying Product ID and RevisionThe revision and product identifier of the AVR128DA48 Curiosity Nano Board can be found in two ways Either byutilizing the Atmel StudioMicrochip MPLABreg X IDE Kit Window or by looking at the sticker on the bottom side of thePCB

By connecting AVR128DA48 Curiosity Nano to a computer with Atmel StudioMicrochip MPLABreg X IDE running theKit Window will pop up The first six digits of the serial number which is listed under kit information contain theproduct identifier 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 AVR128DA48 Curiosity Nano is A09-3280

52 Revision 3Revision 3 is the initially released revision There are no known issues with this revision

AVR128DA48 Curiosity NanoHardware Revision History and Known Issues

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 27

6 Document Revision HistoryDoc rev Date Comment

A 032020 Initial document release

AVR128DA48 Curiosity NanoDocument Revision History

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 28

7 Appendix

71 SchematicFigure 7-1 AVR128DA48 Curiosity Nano Schematic

11

22

33

44

55

66

77

88

DD

CC

BB

AA

2 of

4

AVR1

28D

A48

Curio

sity

Nan

o

102

320

19AV

R128

DA

48_C

urio

sity

_Nan

o_Ta

rget

_MCU

Sch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA R

evisi

on

File

PC

B N

umbe

rPC

B Re

visio

n

Des

igne

d wi

th

Dra

wn

By

PB Shee

t Titl

eTa

rget

MCU

Engi

neer

A

H T

F

A08

-300

23

Size

A3

A09

-328

03

Page

D

ateA

ltium

com

GN

DV

CC_T

ARG

ET

100n

C201

GN

D

PA5_

SPI0

_MIS

OPA

6_SP

I0_S

CKPA

7_SP

I0_S

SPB

0_U

ART

3_TX

PB1_

UA

RT3_

RXPB

2PB

3PB

4PB

5PC

0_U

ART

1_TX

PC1_

UA

RT1_

RXPC

2_I2

C0_S

DA

PC3_I2C0_SCL

PC4PC5PC6_LED0_GPIO1PC7_SW0_GPIO0PD0_AIN0_WO0PD1_AIN1_WO1PD2_AIN2_WO2PD3_AIN3PD4_AIN4

PA3

PA1_UART0_RX

UPDI

PF5_UART2_RX

PF3

PF2

PF1_

TOSC

2PF

0_TO

SC1

PE3

PE2

PE1

PE0

PD5_

AIN

5PD

6_A

IN6

PD7_

AIN

7

GN

D

VCC

_TA

RGET

100n

C202

GN

DV

CC_T

ARG

ET10

0n

C200

PF1_TOSC2

PF0_TOSC1

PA2

PA0_UART0_TX

PF4_UART2_TX

PA4_SPI0_MOSI

GN

D

PA7_

SPI0

_SS

PA6_

SPI0

_SCK

PA5_

SPI0

_MIS

OPA

4_SP

I0_M

OSI

PA3

PA2

PA1_

UA

RT0_

RXPA

0_U

ART

0_TX

PB0_

UA

RT3_

TXPB

1_U

ART

3_RX

PB2

PB3

PB4

PB5

PD7_

AIN

7PD

6_A

IN6

PF5_

UA

RT2_

RXPF

4_U

ART

2_TX

PF3

PF2

32kH

z C

ryst

al

1kR203

USE

R L

ED

VCC

_TA

RGET

PF6_RESET

PC7_SW0_GPIO0

PC6_LED0_GPIO1

GN

D

USE

R B

UTT

ON

PE3

PE2

PE1

PE0

PC0_

UA

RT1_

TXPC

1_U

ART

1_RX

PC2_

I2C0

_SD

APC

3_I2

C0_S

CL

PC4

PC5

PC6_

LED

0_G

PIO

1PC

7_SW

0_G

PIO

0

1kR202

YELLOWLEDSML-D12Y1WT86

2 1D200

TS604VM1-035CR13

4 2

SW20

0

GN

DV

CC_E

DG

E

GN

DG

ND

GN

DG

ND

UPD

IPF

6_RE

SET

J207

J208

J209

BLM

18PG

471S

N1

L200

AVR1

28D

A48

22u

FC2

05

VCC

_ED

GE

GN

D

DBG0

CDC_

UART

TXRXU

ART

CDC_TXCDC_RX

DBG2

DBG1

DBG3

DBG2

DEB

UG

GER

CO

NN

ECTI

ON

S

DBG1

DBG3DBG0

VOFF

ID_S

YS

ID_SYS

VOFF

TAR

GET

BU

LK

VCC

_TA

RGET

RES

ET P

ull

VBU

S

CDC

RX3

CDC

TX4

DBG

15

DBG

26

0 TX

71

RX8

2 SD

A9

3 SC

L10

4 M

OSI

115

MIS

O12

6 SC

K13

7 SS

14G

ND

150

(TX

)16

1 (R

X)

172

183

190

20

GN

D24

DBG

354

DBG

053

GN

D52

VCC

51

PWM

346

AD

C 2

45A

DC

144

AD

C 0

43G

ND

42

438

434

GN

D33

AD

C 7

50A

DC

649

AD

C 5

48PW

M 4

47

DEB

UG

GER

TARG

ET

ID2

VO

FF55

121

222

323

025

126

227

328

429

530

631

732

535

636

737

539

640

741

RESE

RVED

1V

BUS

56

CNA

NO

56-p

in e

dge

conn

ecto

r

J200

J201

J203

J205

J206

J202

J204

PF1

PF0

PF1_

TOSC

2PF

0_TO

SC1

NC

J211

J210

XOUT

XIN

47kR200

AVR

128D

A48

UPD

I

GPI

O1

GPI

O0

RESE

T

DBG

0

DBG

1

DBG

2

DBG

3

Deb

ugge

r

CD

C T

X

CD

C R

X

UA

RT1

RX

UA

RT1

TX

VTG

18V

- 5

5VPC6

PC7

PF6

UPD

I

PC0

PC1

Nam

ePi

n

PA5

1PA

62

PA7

3PB

04

PB1

5PB

26

PB3

7PB

48

PB5

9PC

010

PC1

11PC

212

PC3 13VDD 14GND 15PC4 16PC5 17PC6 18PC7 19PD0 20PD1 21PD2 22PD3 23PD4 24

PD5

25PD

626

PD7

27AV

DD28

GND

29PE

030

PE1

31PE

232

PE3

33XT

AL32

K1P

F034

XTAL

32K2

PF1

35PF

236

PF337 PF438 PF539 PF640 UPDI41 VDD42 GND43 EXTCLKPA044 PA145 PA246 PA347 PA448

AVR1

28D

A48

TQ

FPU

200

PC0_

UA

RT1_

TXPC

1_U

ART

1_RX

PC6_

LED

0_G

PIO

1PC

7_SW

0_G

PIO

0

AVD

D

PD2_

AIN

2_W

O2

PD1_

AIN

1_W

O1

PD0_

AIN

0_W

O0

PD5_

AIN

5PD

4_A

IN4

PD3_

AIN

3

XC2

00

12p

C203

12p

C204

327

68 k

Hz

Crys

tal d

atas

heet

Cc

rysta

l = 9

pFm

ax E

SR =

70k

Ohm

Acc

urac

y plusmn2

0ppm

AVR1

28D

A48

dat

ashe

et

Cxin

= 4

1pF

Cxou

t = 6

0pF

Cl asymp

1( (

14

1pF)

+ (1

60

pF) )

asymp2

44pF

Max

imum

Loa

d =

125

pFM

axim

um E

SR =

80k

Ohm

Estim

ated

Cpc

b =

05p

F

Estim

ated

load

C =

2 (C

crys

tal-

Cpar

a - C

pcb)

C

= 2

(9pF

- 2

44pF

- 0

5pF)

C =

121

2pF

Sele

cted

in d

esig

n af

ter v

erifi

catio

nC=

12p

F12

pF

NO

TE o

n U

ART

CD

C

RXT

X o

n th

e he

ader

den

otes

the

inpu

tout

put d

irect

ion

of th

e sig

nal

resp

ectiv

e to

its

sour

ce

CDC

TX is

out

put f

rom

the

DEB

UG

GER

CD

C RX

is in

put t

o th

e D

EBU

GG

ER

TX is

out

put f

rom

the

TARG

ET d

evic

eRX

is in

put t

o th

e TA

RGET

dev

ice

NO

TE o

n I2

C

No

pull-

ups o

n bo

ard

Pul

l-ups

shou

ld b

e m

ount

ed c

lose

to sl

ave

devi

ce(s

)

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 29

11

22

33

44

55

66

77

88

DD

CC

BB

AA

3 of

4

AVR1

28D

A48

Curio

sity

Nan

o

102

320

19AV

R128

DA

48_C

urio

sity

_Nan

o_D

ebug

gerS

chD

oc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA R

evisi

on

File

PC

B N

umbe

rPC

B Re

visio

n

Des

igne

d wi

th

Dra

wn

By

PB Shee

t Titl

eD

ebug

ger

Engi

neer

A

H T

F

A08

-300

23

Size

A3

A09

-328

03

Page

D

ateA

ltium

com

DEB

UG

GER

USB

MIC

RO

-B C

ON

NEC

TOR

GN

D

USB

D_P

USB

D_N

100n

C107

100n

C108

RXTXU

ART

CDC_

UART

1kR1

07V

CC_P

3V3

SRST

STAT

US_

LED

SHIE

LD

VBU

S

VCC

_P3V

3G

ND

TP10

0

Testp

oint

Arra

y

12

34

56

78

910

TCK

TDO

TMS

Vsu

pTD

IG

ND

TRST

SRST

VTr

efG

ND

J102

GN

D

47u

F

C100

DBG0

DBG

0

21

GRE

EN L

EDSM

L-P1

2MTT

86R

D10

0

VBUS

1D-

2D+

3

GND

5SH

IELD

16

SHIE

LD2

7

ID4

SHIE

LD3

8SH

IELD

49 M

U-M

B014

2AB2

-269

J105

PAD

33

PA00

1PA

012

PA02

3PA

034

GND 10VDDANA 9

PA04

5PA

056

PA06

7PA

078

PA08 11PA09 12PA10 13PA11 14PA14 15PA15 16

PA16

17PA

1718

PA18

19PA

1920

PA22

21US

B_SO

FPA

2322

USB_

DMP

A24

23US

B_DP

PA2

524

PA2725 RESETN26 PA2827 GND28 VDDCORE29 VDDIN30 SWDCLKPA3031 SWDIOPA3132

SAM

D21

E18A

-MU

TU

100

VOUT

1

VOUT

2

GND 3

EN4

VIN

6

NC5

EP 7

MIC

5528

-33

YM

TU

101

VCC

_P3V

3

GN

D

USB

D_P

USB

D_N

GN

D

1uC106

VCC

_MCU

_CO

RE

VCC

_P3V

3

VCC

_P3V

3

22u

FC1

01

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

3V

CC_P

3V3

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

4V

CC_P

3V3

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

5V

CC_P

3V3

GN

D

GN

D GN

D

GN

D

VCC

_ED

GE

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

7V

CC_P

3V3

GN

DDB

G2

DBG

3_CT

RL

S1_0

_TX

S1_1

_RX

S0_2

_TX

DA

CV

TG_A

DC

RESE

RVED

S0_3

_CLK

DBG0_CTRL

CDC_

TX_C

TRL

BOO

T

DEB

UG

GER

PO

WER

STA

TUS

LED

EN1

BYP

6

VOUT

4

GND

2

VIN

3

NCA

DJ5

GND 7

MIC

5353

U10

2

100n

C102

GN

D

GN

D

47kR101

27kR104 G

ND

33k

R106

22u

F

C103 G

ND

1kR1

08

J100

VCC

_LEV

ELV

CC_R

EGU

LATO

R

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

6V

CC_P

3V3

GN

DDB

G1

CDC_

RXCD

C_TX

DBG3

DBG1_CTRL

DEB

UG

GER

REG

ULA

TOR

REG_ENABLE

REG

_EN

ABL

E

47kR103

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

47kR102

47kR105

SWCL

K

GN

D

47kR100 G

ND

DBG

2

S0_0

_RX

DBG

1_CT

RL

DBG

0_CT

RL

DBG

3 O

PEN

DR

AIN

TAR

GET

AD

JUST

ABL

E R

EGU

LATO

R

SRST

DEB

UG

GER

TES

TPO

INT DBG2_CTRL

VO

FFCD

C_RX

_CTR

L

47kR109

DBG

1

CDC_

TX_C

TRL

CDC_

RX_C

TRL

SWCL

K

REG_ADJUST

DBG2_GPIO

DBG

3_CT

RL

DBG

2_CT

RL

UPD

I

UPD

I

GPI

O

GPI

O

RESE

T

Sign

al

DBG

0

DBG

1

DBG

2

DBG

3

ICSP

Inte

rface

DAT

CLK

GPI

O

MCL

R

DBG

3

CD

C T

X

CD

C R

X

UA

RT R

X

UA

RT T

X

UA

RT R

X

UA

RT T

X

TAR

GET

TAR

GET

1kR1

10

VBUS_ADC

1

23

DM

N65

D8L

FBQ

101

VC

C-

-

ID_S

YS

VOFF

1kR112

VCC

_P3V

3

VTG

_AD

CD

AC

MIC

9416

3

VIN

B2VO

UTA1

VIN

A2

ENC2

GND

C1VO

UTB1

U10

8

GN

D

ID_S

YS

VTG

_EN

VTG_EN

VBUS_ADC

SWD

IO

ID_S

YS

TP10

1G

ND

SWD

IO

VO

FF

47kR111 G

ND

ID P

IN

MC3

6213

F100

VCC

_VBU

S

VCC

_VBU

S

VCC

_VBU

S

J101

VCC

_TA

RGET

47k

R113

Prog

ram

min

g co

nnec

tor f

or

fact

ory

prog

ram

min

g of

D

EBU

GG

ER

MIC

5528

Vi

n 2

5V

to 5

5V

Vout

Fix

ed 3

3V

Imax

500

mA

Dro

pout

260

mV

5

00m

A

PTC

Rese

ttabl

e fu

se

Hol

d cu

rrent

500

mA

Trip

cur

rent

100

0mA

Adj

usta

ble

outp

ut a

nd li

mita

tions

- T

he D

EBU

GG

ER c

an a

djus

t the

out

put v

olta

ge o

f the

regu

lato

r bet

wee

n 1

25V

and

51

V to

the

targ

et

- The

vol

tage

out

put i

s lim

ited

by th

e in

put (

USB

) w

hich

can

var

y be

twee

n 4

40V

to 5

25V

- The

leve

l shi

fters

hav

e a

min

imal

vol

tage

leve

l of 1

65V

and

will

lim

it th

e m

inim

um o

pera

ting

volta

ge a

llow

ed fo

r the

ta

rget

to st

ill a

llow

com

mun

icat

ion

- The

MIC

9416

3 ha

s a m

inim

al v

olta

ge le

vel o

f 17

0V a

nd w

ill li

mit

the

min

imum

vol

tage

del

iver

ed to

the

targ

et

- Firm

war

e co

nfig

urat

ion

will

lim

it th

e vo

ltage

rang

e to

be

with

in th

e th

e ta

rget

spec

ifica

tion

R113

is re

quire

d to

pul

l the

Q

101

gate

to a

def

ined

va

lue

whe

n th

e U

100

is no

t po

wer

ed

J100

Cu

t-stra

p us

ed fo

r ful

l sep

arat

ion

of ta

rget

pow

er fr

om th

e le

vel s

hifte

rs a

nd o

n-bo

ard

regu

lato

rs

- For

cur

rent

mea

sure

men

ts us

ing

an e

xter

nal p

ower

supp

ly t

his s

trap

coul

d be

cut

for m

ore

accu

rate

mea

sure

men

ts L

eaka

ge b

ack

thro

ugh

the

switc

h is

in th

e m

icro

am

pere

rang

e

J101

Th

is is

foot

prin

t for

a 1

x2 1

00m

il pi

tch

pin-

head

er th

at c

an b

e us

ed fo

r eas

y cu

rrent

mea

sure

men

t to

the

targ

et m

icro

cont

rolle

r and

the

LED

Bu

tton

To

use

the

foot

prin

t- C

ut th

e tra

ck b

etw

een

the

hole

s an

d m

ount

a p

in-h

eade

r

MIC

5353

Vi

n 2

6V

to 6

VVo

ut 1

25V

to 5

1V

Imax

500

mA

Dro

pout

(typ

ical

) 50

mV

15

0mA

160

mV

5

00m

AA

ccur

acy

2

initi

alTh

erm

al sh

utdo

wn

and

curre

nt li

mit

Max

imum

out

put v

olta

ge is

lim

ited

by th

e in

put v

olta

ge a

nd th

e dr

opou

t vol

tage

in th

e re

gula

tor

(Vm

ax =

Vin

- dr

opou

t)

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 30

72 Assembly DrawingFigure 7-2 AVR128DA48 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

PAC20002 PAC20001 COC200

PAC20102 PAC20101 COC201

PAC20202 PAC20201 COC202

PAC20301 PAC20302 COC203

PAC20401 PAC20402 COC204

PAC20502

PAC20501 COC205

PAD10002 PAD10001 COD100

PAD20001

PAD20002 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

PAJ20701 PAJ20702 PAJ20705 COJ207

PAJ20801 PAJ20802 PAJ20805 COJ208

PAJ20901 PAJ20902 COJ209

PAJ21002 PAJ21001 COJ210

PAJ21102 PAJ21101 COJ211

PAL20002 PAL20001 COL200

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

PAR20002 PAR20001 COR200

PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203

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

PAU200048 PAU200047 PAU200046 PAU200045 PAU200044 PAU200043 PAU200042 PAU200041 PAU200040 PAU200039 PAU200038 PAU200037 PAU200036 PAU200035 PAU200034 PAU200033 PAU200032 PAU200031 PAU200030 PAU200029 PAU200028 PAU200027 PAU200026 PAU200025 PAU200024 PAU200023 PAU200022 PAU200021 PAU200020 PAU200019 PAU200018 PAU200017 PAU200016 PAU200015 PAU200014 PAU200013

PAU200012 PAU200011 PAU200010 PAU20009 PAU20008 PAU20007 PAU20006 PAU20005 PAU20004 PAU20003 PAU20002 PAU20001

COU200

PAXC20001

PAXC20002

COXC200

Figure 7-3 AVR128DA48 Curiosity Nano Assembly Drawing Bottom

ctR

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20002 PAC20001 COC200

PAC20102 PAC20101 COC201

PAC20202 PAC20201 COC202

PAC20301 PAC20302 COC203

PAC20401 PAC20402 COC204

PAC20502

PAC20501 COC205

PAD10002 PAD10001 COD100

PAD20001

PAD20002 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

PAJ20701 PAJ20702 PAJ20705 COJ207

PAJ20801 PAJ20802 PAJ20805 COJ208

PAJ20901 PAJ20902 COJ209

PAJ21002 PAJ21001 COJ210

PAJ21102 PAJ21101 COJ211

PAL20002 PAL20001 COL200

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

PAR20002 PAR20001 COR200

PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203

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

PAU200048 PAU200047 PAU200046 PAU200045 PAU200044 PAU200043 PAU200042 PAU200041 PAU200040 PAU200039 PAU200038 PAU200037 PAU200036 PAU200035 PAU200034 PAU200033 PAU200032 PAU200031 PAU200030 PAU200029 PAU200028 PAU200027 PAU200026 PAU200025 PAU200024 PAU200023 PAU200022 PAU200021 PAU200020 PAU200019 PAU200018 PAU200017 PAU200016 PAU200015 PAU200014 PAU200013

PAU200012 PAU200011 PAU200010 PAU20009 PAU20008 PAU20007 PAU20006 PAU20005 PAU20004 PAU20003 PAU20002 PAU20001

COU200

PAXC20001

PAXC20002

COXC200

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 31

73 Curiosity Nano Base for Click boardstrade

Figure 7-4 AVR128DA48 Curiosity Nano Pinout Mapping

USB

DEB

UG

GER

AVR1

28D

A48

SW0

LED

0

PS L

EDNC

NC

ID

ID

CDC RX

CDCRX

USART1 TX

PC0

CDC TX

CDCTX

USART1 RX

PC1

DBG1

DBG1

PC6

LED0

DBG2

DBG2

PC7

SW0

PA0

PA0

USART0 TX

PTC XY0

PA1

PA1

USART0 RX

PTC XY1

PC2

PC2

TWI0 SDA

PC3

PC3

TWI0 SCL

PA4

PA4

SPI0 MOSI

PTC XY4

PA5

PA5

SPI0 MISO

PTC XY5

PA6

PA6

SPI0 SCK

PTC XY6

PA7

PA7

SPI0 SS

PTC XY7

GND

GND

PF4

PF4

USART2 TX

PTC XY36

PF5

PF5

USART2 RX

PTC XY37

PF2

PF2

PTC XY34

PF3

PF3

PTC XY35

PB0

PB0

PTC XY8

PB1

PB1

PTC XY9

PB2

PB2

PTC XY10

PB3

PB3

PTC XY11

GND

GND

PC0

PC0

USART1 TX

CDC RX

PC1

PC1

USART1 RX

CDC TX

PC6

PC6

LED0

PC7

PC7

SW0

VBUS

VBUS

VOFF

VOFF

DBG3

DBG3

PF6

DBG0

DBG0

UPDI

GND

GND

VTG

VTG

PD7

PD7

AIN7

PTC XY23

PD6

PD6

AIN6

PTC XY22

PD2

PD2

AIN2

PTC XY18

TCA0 WO2

PD1

PD1

AIN1

PTC XY17

TCA0 WO1

PD0

PD0

AIN0

PTC XY16

TCA0 WO0

PD5

PD5

AIN5

PTC XY21

PD4

PD4

AIN4

PTC XY20

PD3

PD3

AIN3

PTC XY19

GND

GND

PE3

PE3

PTC XY27

PE2

PE2

PTC XY26

PE1

PE1

PTC XY25

PE0

PE0

PTC XY24

PA3

PA3

PTC XY3

PA2

PA2

PTC XY2

PB5

PB5

PTC XY13

PB4

PB4

PTC XY12

GND

GND

PC5

PC5

PC4

PC4

(PF1)

(PF1)

(PTC XY33)

XTAL32K2

(PF0)

(PF0)

(PTC XY32)

XTAL32K1

DEB

UG

GER

AVR1

28D

A48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

Touch

Shared pin

AVR1

28D

A48

Curio

sity

Nan

o

1

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

2

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

3

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

Xpl

aine

d Pr

o Ex

tens

ion

EXT1

12

1920

Curio

sity

Nan

o Ba

sefo

r clic

k bo

ards

TM

PD3

PD0

PD7

PD6

PA7

PA1

PA6

PA0

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

PD4

PD1

PF3

PF2

PE2

PF5

PA6

PF4

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

PD5

PD2

PE1

PE0

PE3

PA1

PA6

PA0

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

ID

GND

PD4

PD5

PF3

PE1

PD1

PD2

PF2

PE3

PC2

PC3

PF5

PF4

PE2

PA4

PA5

PA6

GND

+33V

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 32

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

The block diagram below shows all connections between the debugger and the AVR128DA48 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 7-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 7-6 Details about connecting an external debugger are described in 36 Connecting ExternalDebuggers

Figure 7-5  On-Board Debugger Connections Block Diagram

DEB

UG

GER

TARGETLevel-Shift

PA04PA06PA07PA08PA16PA00PA01

USB

DIR x 5

VCC_P3V3

VBUS

VCC

_LEV

EL

VCC

_TA

RGET

DBG0DBG1DBG2DBG3CDC 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

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 33

Figure 7-6 On-Board Debugger Connection Cut Straps

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

75 Getting Started with IARIAR Embedded Workbenchreg for AVRreg is a proprietary high-efficiency compiler not based on GCC Programming anddebugging of AVR128DA48 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 7-73 In the category Debugger select the Setup tab Select Atmel-ICE as the driver as shown in Figure 7-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 7-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

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 34

Figure 7-7 Select Target Device

Figure 7-8 Select Debugger

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 35

Figure 7-9 Configure Interface

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 36

The Microchip WebsiteMicrochip provides online support via our website at httpwwwmicrochipcom This website is used to make filesand information 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 ServiceMicrochiprsquos 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 httpwwwmicrochipcompcn and follow the registration instructions

Customer SupportUsers 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 httpwwwmicrochipcomsupport

Microchip Devices Code Protection FeatureNote the following details of the code protection feature on Microchip devices

bull Microchip products meet the specification contained in their particular Microchip Data Sheetbull Microchip believes that its family of products is one of the most secure families of its kind on the market today

when used in the intended manner and under normal conditionsbull There are dishonest and possibly illegal methods used to breach the code protection feature All of these

methods to our knowledge require using the Microchip products in a manner outside the operatingspecifications contained in Microchiprsquos Data Sheets Most likely the person doing so is engaged in theft ofintellectual property

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

protection does not mean that we are guaranteeing the product as ldquounbreakablerdquo

Code protection is constantly evolving We at Microchip are committed to continuously improving the code protectionfeatures of our products Attempts to break Microchiprsquos code protection feature may be a violation of the DigitalMillennium Copyright Act If such acts allow unauthorized access to your software or other copyrighted work youmay have a right to sue for relief under that Act

Legal NoticeInformation contained in this publication regarding device applications and the like is provided only for yourconvenience and may be superseded by updates It is your responsibility to ensure that your application meets with

AVR128DA48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 37

your specifications MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHEREXPRESS OR IMPLIED WRITTEN OR ORAL STATUTORY OR OTHERWISE RELATED TO THE INFORMATIONINCLUDING BUT NOT LIMITED TO ITS CONDITION QUALITY PERFORMANCE MERCHANTABILITY ORFITNESS FOR PURPOSE Microchip disclaims all liability arising from this information and its use Use of Microchipdevices in life support andor safety applications is entirely at the buyerrsquos risk and the buyer agrees to defendindemnify and hold harmless Microchip from any and all damages claims suits or expenses resulting from suchuse No licenses are conveyed implicitly or otherwise under any Microchip intellectual property rights unlessotherwise stated

TrademarksThe 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-5760-2

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

AVR128DA48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 38

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupporthttpwwwmicrochipcomsupportWeb AddresshttpwwwmicrochipcomAtlantaDuluth 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 DS50002971A-page 39

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Kit Overview
      • 2 Getting Started
        • 21 Quick Start
        • 22 Design Documentation and Relevant Links
          • 3 Curiosity Nano
            • 31 On-Board Debugger Overview
              • 311 Debugger
              • 312 Virtual Serial Port (CDC)
                • 3121 Overview
                • 3122 Operating System Support
                • 3123 Limitations
                • 3124 Signaling
                • 3125 Advanced Use
                  • 313 Mass Storage Device
                    • 3131 Mass Storage Device Implementation
                    • 3132 Fuse Bytes
                    • 3133 Limitations of Drag-and-Drop Programming
                    • 3134 Special Commands
                      • 314 Data Gateway Interface (DGI)
                        • 3141 Debug GPIO
                        • 3142 Timestamping
                            • 32 Curiosity Nano Standard Pinout
                            • 33 Power Supply
                              • 331 Target Regulator
                              • 332 External Supply
                              • 333 VBUS Output Pin
                              • 334 Power Supply Exceptions
                                • 34 Low Power Measurement
                                • 35 Programming External Microcontrollers
                                  • 351 Supported Devices
                                  • 352 Software Configuration
                                  • 353 Hardware Modifications
                                  • 354 Connecting to External Microcontrollers
                                    • 36 Connecting External Debuggers
                                      • 4 Hardware User Guide
                                        • 41 Connectors
                                          • 411 AVR128DA48 Curiosity Nano Pinout
                                          • 412 Using Pin Headers
                                            • 42 Peripherals
                                              • 421 LED
                                              • 422 Mechanical Switch
                                              • 423 Crystal
                                              • 424 On-Board Debugger Implementation
                                                • 4241 On-Board Debugger Connections
                                                  • 5 Hardware Revision History and Known Issues
                                                    • 51 Identifying Product ID and Revision
                                                    • 52 Revision 3
                                                      • 6 Document Revision History
                                                      • 7 Appendix
                                                        • 71 Schematic
                                                        • 72 Assembly Drawing
                                                        • 73 Curiosity Nano Base for Click boardstrade
                                                        • 74 Disconnecting the On-board Debugger
                                                        • 75 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: AVR128DA48 Curiosity Nano User Guide - Microchip Technologyww1.microchip.com/downloads/en/DeviceDoc/AVR128DA48... · 2020-03-19 · AVR128DA48 Curiosity Nano AVR128DA48 Curiosity

1 Introduction

11 Featuresbull AVR128DA48-IPT Microcontrollerbull One Yellow User LEDbull One Mechanical User Switchbull One 32768 kHz Crystalbull On-Board Debugger

ndash Board identification in Atmel StudioMicrochip MPLABreg X IDEndash 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 18-51V output voltage (limited by USB input voltage)ndash 500 mA maximum output current (limited by ambient temperature and output voltage)

12 Kit OverviewThe Microchip AVR128DA48 Curiosity Nano Evaluation Kit is a hardware platform to evaluate the AVR128DA48microcontroller

Figure 1-1 AVR128DA48 Curiosity Nano Evaluation Kit Overview

Micro USB Connector

DebuggerPowerStatus

LED32768 kHz

CrystalUser LED

(LED0)User Switch

(SW0)AVR128DA48

MCU

AVR128DA48 Curiosity NanoIntroduction

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 4

2 Getting Started

21 Quick StartSteps to start exploring the AVR128DA48 Curiosity Nano Board

1 Download Atmel StudioMicrochip MPLABreg X IDE2 Launch Atmel StudioMicrochip MPLABreg X IDE3 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

Driver InstallationWhen 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 Atmel StudioMicrochipMPLABreg X IDE

Kit WindowOnce the board is powered the green status LED will be lit and Atmel StudioMicrochip MPLABreg X IDE will auto-detect which boards are connected Atmel StudioMicrochip MPLABreg X IDE will present relevant information like datasheets and board documentation The AVR128DA48 device on the AVR128DA48 Curiosity Nano Board isprogrammed and debugged by the on-board debugger and therefore no external programmer or debugger tool isrequired

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

22 Design Documentation and Relevant LinksThe following list contains links to the most relevant documents and software for the AVR128DA48 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 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

AVR128DA48 Curiosity NanoGetting Started

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 5

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 AVR 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 AVR Solutions - Microchip PIC and AVR Device Solutions contains complete applicationsfor use with Microchip development boards ready to be adapted and extended

bull AVR128DA48 Curiosity Nano website - Kit information latest user guide and design documentationbull AVR128DA48 Curiosity Nano on microchipDIRECT - Purchase this kit on microchipDIRECT

AVR128DA48 Curiosity NanoGetting Started

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 6

3 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 Atmel StudioMicrochip MPLABreg X IDE 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)

31 On-Board Debugger OverviewAVR128DA48 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 AVR128DA48 in Atmel StudioMicrochip MPLABreg X IDEbull A mass storage device that allows drag-and-drop programming of the AVR128DA48bull A virtual serial port (CDC) that is connected to a Universal Asynchronous ReceiverTransmitter (UART) on the

AVR128DA48 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 AVR128DA48 Curiosity Nano BoardThe table below shows how the LED is controlled in different operation modes

Table 3-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

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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 7

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

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

3121 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 3-1 CDC Connection

Target MCU

UART TX

UART RX

Debugger

USBCDC RX

CDC TX

PCTerminalSoftware

TargetReceive

TargetSend

TerminalReceive

TerminalSend

Info  As shown in Figure 3-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

3122 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 Atmel StudioMicrochip MPLABreg X IDE

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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 8

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

3123 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

3124 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 the DTR signal will not disable the level shifters but disable the receiver so no further data will bestreamed to the host Data packets that are already queued up for sending to the target will continue to be sent outbut no further data will be accepted

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

3125 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=

The maximum message length is 50 characters ndash all remaining data in the frame are ignored

The default baud rate used in this mode is 9600 bps but if the CDC is already active or has been configured thepreviously used baud rate still applies

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 9

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 because the on-board debugger buffers framesand not bytes A maximum of four 64-byte frames can be active at any time The on-board debugger will throttle theincoming frames 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

313 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 supportbull Write access for programming Intelreg HEX formatted files into the target devicersquos memorybull Write access for simple text files for utility purposes

3131 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 wayfulfill the 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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 10

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

3132 Fuse Bytes

Fuse Bytes (AVRreg MCU Targets)When doing drag-and-drop programming the debugger masks out fuse bits that attempt to disable Unified Programand Debug Interface (UPDI) This means that the UPDI pin cannot be used in its reset or GPIO modes selecting oneof the alternative functions on the UPDI pin would render the device inaccessible without using an external debuggercapable of high-voltage UPDI activation

3133 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 useAtmel StudioMicrochip MPLABreg X IDE

Enabling CRC Check in FusesIt is not advisable to enable the CRC check in the target devicersquos fuses when using drag-and-drop programming Thisbecause 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 Atmel StudioMicrochip MPLABreg

X IDE which will automatically clear the CRC fuses after erasing

3134 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

Table 3-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 ldquoCDC Override Moderdquo

CMDRESET Resets the target device by entering Programming mode and then exitingProgramming mode immediately thereafter Exact timing can vary according tothe programming interface of the target device (Debugger firmware v116 ornewer)

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

CMD0V Powers down the target device by disabling the target supply regulator Ifexternal power is provided this has no effect (Debugger firmware v116 ornewer)

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

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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 11

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

314 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 Atmel StudioMicrochip MPLABreg X IDE

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

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

3141 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 VisualizerFigure 3-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

3142 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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 12

32 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 3-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

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 3-3 Curiosity Nano Standard Pinout

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

33 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 AVR128DA48 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 AVR128DA48Curiosity Nano

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 13

Figure 3-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

331 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 implementationis 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 AVR128DA48microcontroller The voltage limits configured in the on-board debugger on AVR128DA48 Curiosity Nano are18-51V

Info  The target voltage is set to 33V when the board is manufactured It can be changed throughMPLAB X IDE project properties and in the Atmel Studio device programming dialog Any change to thetarget voltage is persistent even through 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 Atmel StudioMicrochip MPLABreg X IDE are not immediatelyapplied to the board The new voltage setting is applied to the board when the debugger is accessed inany way like pushing the Refresh 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 only supports settings of 00V 33V and 50V See section 3134 Special Commands forfurther details

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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 14

Figure 3-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

Info  If the external voltage is lower than the monitoring window lower limit (target voltage setting - 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

332 External SupplyAVR128DA48 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 AVR128DA48 is 18-55V Applying a higher voltage may cause permanent damage to theboard

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 15

Info  If an external voltage is applied without pulling the VOFF pin low and an external supply pulls thevoltage lower than the monitoring window 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 AVR128DA48 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

333 VBUS Output PinAVR128DA48 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

Figure 3-6 VBUS Output Voltage vs Current

334 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 between 44V to 525V) and thevoltage drop over the MIC5353 regulator at a given voltage setting and current consumption If a higher outputvoltage is needed use a USB power source that can provide a higher input voltage or use an external voltage supplyon the VTG pin

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 16

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 differ more than 100 mV overunder the voltage setting it will be detected by the on-board debugger and theinternal voltage regulator will be shut down To fix this issue remove the applied voltage from the VTG pin and theon-board debugger will enable the on-board voltage regulator when the new condition is detected Note that the PSLED will be blinking rapidly if the target voltage is below 100 mV of the setting but will be lit normally when it is higherthan 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 really a special case of the issue mentioned above Removethe short-circuit and the on-board debugger will re-enable the on-board target voltage regulator

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

34 Low Power MeasurementPower to the AVR128DA48 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 AVR128DA48 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 AVR128DA48

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 17

Figure 3-7 Target Power Strap

Target Power strap (top side)

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 are tri-state to prevent leakage All IOs connected to the on-boarddebugger are listed in 4241 On-Board Debugger Connections To prevent any leakage to the on-boardlevel shifters they can be disconnected completely as described in 74 Disconnecting the On-boardDebugger

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

351 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

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

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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 18

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

Figure 3-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

353 Hardware ModificationsThe on-board debugger is connected to the AVR128DA48 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 AVR128DA48 from the on-board debugger

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 19

Figure 3-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 AVR128DA48 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 AVR128DA48

354 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 33 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

AVR128DA48 Curiosity Nano has a pull-up resistor R200 connected to its RESET signal (DBG3) The location ofthe pull-up resistor is shown in the 72 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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 20

Figure 3-10 Curiosity Nano Standard Pinout

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

Table 3-4 Programming and Debugging Interfaces

Curiosity Nano Pin UPDI ICSPtrade SWD

DBG0 UPDI DATA SWDIO

DBG1 - CLK SWCLK

DBG2 - - -

DBG3 - MCLR RESET

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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 21

Figure 3-11 Connecting the MPLABreg PICkittrade 4 In-Circuit DebuggerProgrammer to AVR128DA48 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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 22

Figure 3-12 Connecting the Atmel-ICE to AVR128DA48 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 Atmel StudioMicrochip MPLABreg XIDE or mass storage programming while the external tool is active

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 23

4 Hardware User Guide

41 Connectors

411 AVR128DA48 Curiosity Nano PinoutAll the AVR128DA48 IO pins are accessible at the edge connectors on the board The image below shows the boardpinout

Figure 4-1 AVR128DA48 Curiosity Nano Pinout

USB

DEBUGGER

AVR128DA48

SW0

LED0

PS LEDNC

NC

ID

ID

CDC RX

CDCRXUSART1 TXPC0

CDC TX

CDCTXUSART1 RXPC1

DBG1

DBG

1PC6LED0

DBG2

DBG

2PC7SW0

PA0

PA0USART0 TXPTC XY0

PA1PA

1USART0 RXPTC XY1

PC2PC2TWI0 SDA

PC3

PC3TWI0 SCL

PA4

PA4SPI0 MOSIPTC XY4

PA5

PA5SPI0 MISOPTC XY5

PA6

PA6SPI0 SCKPTC XY6

PA7

PA7SPI0 SSPTC XY7

GND

GN

D

PF4

PF4USART2 TXPTC XY36

PF5

PF5USART2 RXPTC XY37

PF2

PF2PTC XY34

PF3

PF3PTC XY35

PB0

PB0PTC XY8

PB1

PB1PTC XY9

PB2

PB2PTC XY10

PB3

PB3PTC XY11

GND

GN

D

PC0

PC0USART1 TXCDC RX

PC1

PC1USART1 RXCDC TX

PC6

PC6LED0

PC7

PC7SW0

VBUS

VBU

S

VOFF

VO

FFDBG3

DBG

3 PF6

DBG0D

BG0 UPDI

GND

GN

D

VTG

VTG

PD7

PD7 AIN7 PTC XY23

PD6

PD6 AIN6 PTC XY22

PD2

PD2 AIN2 PTC XY18 TCA0 WO2

PD1

PD1 AIN1 PTC XY17 TCA0 WO1

PD0

PD0 AIN0 PTC XY16 TCA0 WO0

PD5

PD5 AIN5 PTC XY21

PD4

PD4 AIN4 PTC XY20

PD3

PD3 AIN3 PTC XY19

GND

GN

D

PE3

PE3 PTC XY27

PE2

PE2 PTC XY26

PE1

PE1 PTC XY25

PE0

PE0 PTC XY24

PA3

PA3 PTC XY3

PA2

PA2 PTC XY2

PB5

PB5 PTC XY13

PB4

PB4 PTC XY12

GND

GN

D

PC5

PC5

PC4

PC4

(PF1)

(PF1) (PTC XY33) XTAL32K2

(PF0)

(PF0) (PTC XY32) XTAL32K1

DEBUGGERAVR128DA48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

Touch

Shared pin

AVR128DA48Curiosity Nano

412 Using Pin HeadersThe edge connector footprint on AVR128DA48 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

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

AVR128DA48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 24

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

42 Peripherals

421 LEDThere is one yellow user LED available on the AVR128DA48 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 4-1 LED Connection

AVR128DA48 Pin Function Shared Functionality

PC6 Yellow LED0 Edge connector On-board debugger

422 Mechanical SwitchThe AVR128DA48 Curiosity Nano has one mechanical switch This is a generic user-configurable switch When theswitch 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 PC7

Table 4-2 Mechanical Switch

AVR128DA48 Pin Description Shared Functionality

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

423 Crystal

The AVR128DA48 Curiosity Nano board has a 32768 kHz crystal mounted

The AVR128DA48 is connected to the crystal by default but the GPIOs are also routed to the edge connectorthrough two solder points The two IO lines routed to the edge connector are disconnected by default to reduce thechance of an external signal causing contention with the crystal and to remove excessive capacitance on the linesTo use PF0 and PF1 as GPIO some hardware modifications are required

bull Disconnect the crystal by cutting the two straps on the top side of the board next to the crystal (J210 J211) Thecrystal 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 (J207 J208)

The cut straps and solder points can be seen in Figure 4-2

Table 4-3 Crystal Connections

AVR128DA48 Pin Function Shared Functionality

PF0 TOSC1 (Crystal input) Edge connector

PF1 TOSC2 (Crystal output) Edge connector

AVR128DA48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 25

Figure 4-2 Crystal Connection and Cut Straps

424 On-Board Debugger ImplementationAVR128DA48 Curiosity Nano features an on-board debugger that can be used to program and debug theAVR128DA48 using UPDI The on-board debugger also includes a virtual serial port (CDC) interface over UART anddebug GPIO Atmel StudioMicrochip MPLABreg X IDE 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

4241 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 31 On-Board DebuggerOverview

Table 4-4 On-Board Debugger Connections

AVR128DA48Pin

Debugger Pin Function Shared Functionality

RF1 CDC TX UART RX (AVR128DA48 RX line) Edge connector

RF0 CDC RX UART TX (AVR128DA48 TX line) Edge connector

UPDI DBG0 UPDI Edge connector

PC6 DBG1 GPIO1 Edge connector LED

PC7 DBG2 GPIO0 Edge connector Mechanical Switch

PF6 DBG3 RESET Edge connector

AVR128DA48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 26

5 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

51 Identifying Product ID and RevisionThe revision and product identifier of the AVR128DA48 Curiosity Nano Board can be found in two ways Either byutilizing the Atmel StudioMicrochip MPLABreg X IDE Kit Window or by looking at the sticker on the bottom side of thePCB

By connecting AVR128DA48 Curiosity Nano to a computer with Atmel StudioMicrochip MPLABreg X IDE running theKit Window will pop up The first six digits of the serial number which is listed under kit information contain theproduct identifier 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 AVR128DA48 Curiosity Nano is A09-3280

52 Revision 3Revision 3 is the initially released revision There are no known issues with this revision

AVR128DA48 Curiosity NanoHardware Revision History and Known Issues

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 27

6 Document Revision HistoryDoc rev Date Comment

A 032020 Initial document release

AVR128DA48 Curiosity NanoDocument Revision History

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 28

7 Appendix

71 SchematicFigure 7-1 AVR128DA48 Curiosity Nano Schematic

11

22

33

44

55

66

77

88

DD

CC

BB

AA

2 of

4

AVR1

28D

A48

Curio

sity

Nan

o

102

320

19AV

R128

DA

48_C

urio

sity

_Nan

o_Ta

rget

_MCU

Sch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA R

evisi

on

File

PC

B N

umbe

rPC

B Re

visio

n

Des

igne

d wi

th

Dra

wn

By

PB Shee

t Titl

eTa

rget

MCU

Engi

neer

A

H T

F

A08

-300

23

Size

A3

A09

-328

03

Page

D

ateA

ltium

com

GN

DV

CC_T

ARG

ET

100n

C201

GN

D

PA5_

SPI0

_MIS

OPA

6_SP

I0_S

CKPA

7_SP

I0_S

SPB

0_U

ART

3_TX

PB1_

UA

RT3_

RXPB

2PB

3PB

4PB

5PC

0_U

ART

1_TX

PC1_

UA

RT1_

RXPC

2_I2

C0_S

DA

PC3_I2C0_SCL

PC4PC5PC6_LED0_GPIO1PC7_SW0_GPIO0PD0_AIN0_WO0PD1_AIN1_WO1PD2_AIN2_WO2PD3_AIN3PD4_AIN4

PA3

PA1_UART0_RX

UPDI

PF5_UART2_RX

PF3

PF2

PF1_

TOSC

2PF

0_TO

SC1

PE3

PE2

PE1

PE0

PD5_

AIN

5PD

6_A

IN6

PD7_

AIN

7

GN

D

VCC

_TA

RGET

100n

C202

GN

DV

CC_T

ARG

ET10

0n

C200

PF1_TOSC2

PF0_TOSC1

PA2

PA0_UART0_TX

PF4_UART2_TX

PA4_SPI0_MOSI

GN

D

PA7_

SPI0

_SS

PA6_

SPI0

_SCK

PA5_

SPI0

_MIS

OPA

4_SP

I0_M

OSI

PA3

PA2

PA1_

UA

RT0_

RXPA

0_U

ART

0_TX

PB0_

UA

RT3_

TXPB

1_U

ART

3_RX

PB2

PB3

PB4

PB5

PD7_

AIN

7PD

6_A

IN6

PF5_

UA

RT2_

RXPF

4_U

ART

2_TX

PF3

PF2

32kH

z C

ryst

al

1kR203

USE

R L

ED

VCC

_TA

RGET

PF6_RESET

PC7_SW0_GPIO0

PC6_LED0_GPIO1

GN

D

USE

R B

UTT

ON

PE3

PE2

PE1

PE0

PC0_

UA

RT1_

TXPC

1_U

ART

1_RX

PC2_

I2C0

_SD

APC

3_I2

C0_S

CL

PC4

PC5

PC6_

LED

0_G

PIO

1PC

7_SW

0_G

PIO

0

1kR202

YELLOWLEDSML-D12Y1WT86

2 1D200

TS604VM1-035CR13

4 2

SW20

0

GN

DV

CC_E

DG

E

GN

DG

ND

GN

DG

ND

UPD

IPF

6_RE

SET

J207

J208

J209

BLM

18PG

471S

N1

L200

AVR1

28D

A48

22u

FC2

05

VCC

_ED

GE

GN

D

DBG0

CDC_

UART

TXRXU

ART

CDC_TXCDC_RX

DBG2

DBG1

DBG3

DBG2

DEB

UG

GER

CO

NN

ECTI

ON

S

DBG1

DBG3DBG0

VOFF

ID_S

YS

ID_SYS

VOFF

TAR

GET

BU

LK

VCC

_TA

RGET

RES

ET P

ull

VBU

S

CDC

RX3

CDC

TX4

DBG

15

DBG

26

0 TX

71

RX8

2 SD

A9

3 SC

L10

4 M

OSI

115

MIS

O12

6 SC

K13

7 SS

14G

ND

150

(TX

)16

1 (R

X)

172

183

190

20

GN

D24

DBG

354

DBG

053

GN

D52

VCC

51

PWM

346

AD

C 2

45A

DC

144

AD

C 0

43G

ND

42

438

434

GN

D33

AD

C 7

50A

DC

649

AD

C 5

48PW

M 4

47

DEB

UG

GER

TARG

ET

ID2

VO

FF55

121

222

323

025

126

227

328

429

530

631

732

535

636

737

539

640

741

RESE

RVED

1V

BUS

56

CNA

NO

56-p

in e

dge

conn

ecto

r

J200

J201

J203

J205

J206

J202

J204

PF1

PF0

PF1_

TOSC

2PF

0_TO

SC1

NC

J211

J210

XOUT

XIN

47kR200

AVR

128D

A48

UPD

I

GPI

O1

GPI

O0

RESE

T

DBG

0

DBG

1

DBG

2

DBG

3

Deb

ugge

r

CD

C T

X

CD

C R

X

UA

RT1

RX

UA

RT1

TX

VTG

18V

- 5

5VPC6

PC7

PF6

UPD

I

PC0

PC1

Nam

ePi

n

PA5

1PA

62

PA7

3PB

04

PB1

5PB

26

PB3

7PB

48

PB5

9PC

010

PC1

11PC

212

PC3 13VDD 14GND 15PC4 16PC5 17PC6 18PC7 19PD0 20PD1 21PD2 22PD3 23PD4 24

PD5

25PD

626

PD7

27AV

DD28

GND

29PE

030

PE1

31PE

232

PE3

33XT

AL32

K1P

F034

XTAL

32K2

PF1

35PF

236

PF337 PF438 PF539 PF640 UPDI41 VDD42 GND43 EXTCLKPA044 PA145 PA246 PA347 PA448

AVR1

28D

A48

TQ

FPU

200

PC0_

UA

RT1_

TXPC

1_U

ART

1_RX

PC6_

LED

0_G

PIO

1PC

7_SW

0_G

PIO

0

AVD

D

PD2_

AIN

2_W

O2

PD1_

AIN

1_W

O1

PD0_

AIN

0_W

O0

PD5_

AIN

5PD

4_A

IN4

PD3_

AIN

3

XC2

00

12p

C203

12p

C204

327

68 k

Hz

Crys

tal d

atas

heet

Cc

rysta

l = 9

pFm

ax E

SR =

70k

Ohm

Acc

urac

y plusmn2

0ppm

AVR1

28D

A48

dat

ashe

et

Cxin

= 4

1pF

Cxou

t = 6

0pF

Cl asymp

1( (

14

1pF)

+ (1

60

pF) )

asymp2

44pF

Max

imum

Loa

d =

125

pFM

axim

um E

SR =

80k

Ohm

Estim

ated

Cpc

b =

05p

F

Estim

ated

load

C =

2 (C

crys

tal-

Cpar

a - C

pcb)

C

= 2

(9pF

- 2

44pF

- 0

5pF)

C =

121

2pF

Sele

cted

in d

esig

n af

ter v

erifi

catio

nC=

12p

F12

pF

NO

TE o

n U

ART

CD

C

RXT

X o

n th

e he

ader

den

otes

the

inpu

tout

put d

irect

ion

of th

e sig

nal

resp

ectiv

e to

its

sour

ce

CDC

TX is

out

put f

rom

the

DEB

UG

GER

CD

C RX

is in

put t

o th

e D

EBU

GG

ER

TX is

out

put f

rom

the

TARG

ET d

evic

eRX

is in

put t

o th

e TA

RGET

dev

ice

NO

TE o

n I2

C

No

pull-

ups o

n bo

ard

Pul

l-ups

shou

ld b

e m

ount

ed c

lose

to sl

ave

devi

ce(s

)

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 29

11

22

33

44

55

66

77

88

DD

CC

BB

AA

3 of

4

AVR1

28D

A48

Curio

sity

Nan

o

102

320

19AV

R128

DA

48_C

urio

sity

_Nan

o_D

ebug

gerS

chD

oc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA R

evisi

on

File

PC

B N

umbe

rPC

B Re

visio

n

Des

igne

d wi

th

Dra

wn

By

PB Shee

t Titl

eD

ebug

ger

Engi

neer

A

H T

F

A08

-300

23

Size

A3

A09

-328

03

Page

D

ateA

ltium

com

DEB

UG

GER

USB

MIC

RO

-B C

ON

NEC

TOR

GN

D

USB

D_P

USB

D_N

100n

C107

100n

C108

RXTXU

ART

CDC_

UART

1kR1

07V

CC_P

3V3

SRST

STAT

US_

LED

SHIE

LD

VBU

S

VCC

_P3V

3G

ND

TP10

0

Testp

oint

Arra

y

12

34

56

78

910

TCK

TDO

TMS

Vsu

pTD

IG

ND

TRST

SRST

VTr

efG

ND

J102

GN

D

47u

F

C100

DBG0

DBG

0

21

GRE

EN L

EDSM

L-P1

2MTT

86R

D10

0

VBUS

1D-

2D+

3

GND

5SH

IELD

16

SHIE

LD2

7

ID4

SHIE

LD3

8SH

IELD

49 M

U-M

B014

2AB2

-269

J105

PAD

33

PA00

1PA

012

PA02

3PA

034

GND 10VDDANA 9

PA04

5PA

056

PA06

7PA

078

PA08 11PA09 12PA10 13PA11 14PA14 15PA15 16

PA16

17PA

1718

PA18

19PA

1920

PA22

21US

B_SO

FPA

2322

USB_

DMP

A24

23US

B_DP

PA2

524

PA2725 RESETN26 PA2827 GND28 VDDCORE29 VDDIN30 SWDCLKPA3031 SWDIOPA3132

SAM

D21

E18A

-MU

TU

100

VOUT

1

VOUT

2

GND 3

EN4

VIN

6

NC5

EP 7

MIC

5528

-33

YM

TU

101

VCC

_P3V

3

GN

D

USB

D_P

USB

D_N

GN

D

1uC106

VCC

_MCU

_CO

RE

VCC

_P3V

3

VCC

_P3V

3

22u

FC1

01

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

3V

CC_P

3V3

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

4V

CC_P

3V3

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

5V

CC_P

3V3

GN

D

GN

D GN

D

GN

D

VCC

_ED

GE

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

7V

CC_P

3V3

GN

DDB

G2

DBG

3_CT

RL

S1_0

_TX

S1_1

_RX

S0_2

_TX

DA

CV

TG_A

DC

RESE

RVED

S0_3

_CLK

DBG0_CTRL

CDC_

TX_C

TRL

BOO

T

DEB

UG

GER

PO

WER

STA

TUS

LED

EN1

BYP

6

VOUT

4

GND

2

VIN

3

NCA

DJ5

GND 7

MIC

5353

U10

2

100n

C102

GN

D

GN

D

47kR101

27kR104 G

ND

33k

R106

22u

F

C103 G

ND

1kR1

08

J100

VCC

_LEV

ELV

CC_R

EGU

LATO

R

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

6V

CC_P

3V3

GN

DDB

G1

CDC_

RXCD

C_TX

DBG3

DBG1_CTRL

DEB

UG

GER

REG

ULA

TOR

REG_ENABLE

REG

_EN

ABL

E

47kR103

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

47kR102

47kR105

SWCL

K

GN

D

47kR100 G

ND

DBG

2

S0_0

_RX

DBG

1_CT

RL

DBG

0_CT

RL

DBG

3 O

PEN

DR

AIN

TAR

GET

AD

JUST

ABL

E R

EGU

LATO

R

SRST

DEB

UG

GER

TES

TPO

INT DBG2_CTRL

VO

FFCD

C_RX

_CTR

L

47kR109

DBG

1

CDC_

TX_C

TRL

CDC_

RX_C

TRL

SWCL

K

REG_ADJUST

DBG2_GPIO

DBG

3_CT

RL

DBG

2_CT

RL

UPD

I

UPD

I

GPI

O

GPI

O

RESE

T

Sign

al

DBG

0

DBG

1

DBG

2

DBG

3

ICSP

Inte

rface

DAT

CLK

GPI

O

MCL

R

DBG

3

CD

C T

X

CD

C R

X

UA

RT R

X

UA

RT T

X

UA

RT R

X

UA

RT T

X

TAR

GET

TAR

GET

1kR1

10

VBUS_ADC

1

23

DM

N65

D8L

FBQ

101

VC

C-

-

ID_S

YS

VOFF

1kR112

VCC

_P3V

3

VTG

_AD

CD

AC

MIC

9416

3

VIN

B2VO

UTA1

VIN

A2

ENC2

GND

C1VO

UTB1

U10

8

GN

D

ID_S

YS

VTG

_EN

VTG_EN

VBUS_ADC

SWD

IO

ID_S

YS

TP10

1G

ND

SWD

IO

VO

FF

47kR111 G

ND

ID P

IN

MC3

6213

F100

VCC

_VBU

S

VCC

_VBU

S

VCC

_VBU

S

J101

VCC

_TA

RGET

47k

R113

Prog

ram

min

g co

nnec

tor f

or

fact

ory

prog

ram

min

g of

D

EBU

GG

ER

MIC

5528

Vi

n 2

5V

to 5

5V

Vout

Fix

ed 3

3V

Imax

500

mA

Dro

pout

260

mV

5

00m

A

PTC

Rese

ttabl

e fu

se

Hol

d cu

rrent

500

mA

Trip

cur

rent

100

0mA

Adj

usta

ble

outp

ut a

nd li

mita

tions

- T

he D

EBU

GG

ER c

an a

djus

t the

out

put v

olta

ge o

f the

regu

lato

r bet

wee

n 1

25V

and

51

V to

the

targ

et

- The

vol

tage

out

put i

s lim

ited

by th

e in

put (

USB

) w

hich

can

var

y be

twee

n 4

40V

to 5

25V

- The

leve

l shi

fters

hav

e a

min

imal

vol

tage

leve

l of 1

65V

and

will

lim

it th

e m

inim

um o

pera

ting

volta

ge a

llow

ed fo

r the

ta

rget

to st

ill a

llow

com

mun

icat

ion

- The

MIC

9416

3 ha

s a m

inim

al v

olta

ge le

vel o

f 17

0V a

nd w

ill li

mit

the

min

imum

vol

tage

del

iver

ed to

the

targ

et

- Firm

war

e co

nfig

urat

ion

will

lim

it th

e vo

ltage

rang

e to

be

with

in th

e th

e ta

rget

spec

ifica

tion

R113

is re

quire

d to

pul

l the

Q

101

gate

to a

def

ined

va

lue

whe

n th

e U

100

is no

t po

wer

ed

J100

Cu

t-stra

p us

ed fo

r ful

l sep

arat

ion

of ta

rget

pow

er fr

om th

e le

vel s

hifte

rs a

nd o

n-bo

ard

regu

lato

rs

- For

cur

rent

mea

sure

men

ts us

ing

an e

xter

nal p

ower

supp

ly t

his s

trap

coul

d be

cut

for m

ore

accu

rate

mea

sure

men

ts L

eaka

ge b

ack

thro

ugh

the

switc

h is

in th

e m

icro

am

pere

rang

e

J101

Th

is is

foot

prin

t for

a 1

x2 1

00m

il pi

tch

pin-

head

er th

at c

an b

e us

ed fo

r eas

y cu

rrent

mea

sure

men

t to

the

targ

et m

icro

cont

rolle

r and

the

LED

Bu

tton

To

use

the

foot

prin

t- C

ut th

e tra

ck b

etw

een

the

hole

s an

d m

ount

a p

in-h

eade

r

MIC

5353

Vi

n 2

6V

to 6

VVo

ut 1

25V

to 5

1V

Imax

500

mA

Dro

pout

(typ

ical

) 50

mV

15

0mA

160

mV

5

00m

AA

ccur

acy

2

initi

alTh

erm

al sh

utdo

wn

and

curre

nt li

mit

Max

imum

out

put v

olta

ge is

lim

ited

by th

e in

put v

olta

ge a

nd th

e dr

opou

t vol

tage

in th

e re

gula

tor

(Vm

ax =

Vin

- dr

opou

t)

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 30

72 Assembly DrawingFigure 7-2 AVR128DA48 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

PAC20002 PAC20001 COC200

PAC20102 PAC20101 COC201

PAC20202 PAC20201 COC202

PAC20301 PAC20302 COC203

PAC20401 PAC20402 COC204

PAC20502

PAC20501 COC205

PAD10002 PAD10001 COD100

PAD20001

PAD20002 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

PAJ20701 PAJ20702 PAJ20705 COJ207

PAJ20801 PAJ20802 PAJ20805 COJ208

PAJ20901 PAJ20902 COJ209

PAJ21002 PAJ21001 COJ210

PAJ21102 PAJ21101 COJ211

PAL20002 PAL20001 COL200

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

PAR20002 PAR20001 COR200

PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203

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

PAU200048 PAU200047 PAU200046 PAU200045 PAU200044 PAU200043 PAU200042 PAU200041 PAU200040 PAU200039 PAU200038 PAU200037 PAU200036 PAU200035 PAU200034 PAU200033 PAU200032 PAU200031 PAU200030 PAU200029 PAU200028 PAU200027 PAU200026 PAU200025 PAU200024 PAU200023 PAU200022 PAU200021 PAU200020 PAU200019 PAU200018 PAU200017 PAU200016 PAU200015 PAU200014 PAU200013

PAU200012 PAU200011 PAU200010 PAU20009 PAU20008 PAU20007 PAU20006 PAU20005 PAU20004 PAU20003 PAU20002 PAU20001

COU200

PAXC20001

PAXC20002

COXC200

Figure 7-3 AVR128DA48 Curiosity Nano Assembly Drawing Bottom

ctR

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20002 PAC20001 COC200

PAC20102 PAC20101 COC201

PAC20202 PAC20201 COC202

PAC20301 PAC20302 COC203

PAC20401 PAC20402 COC204

PAC20502

PAC20501 COC205

PAD10002 PAD10001 COD100

PAD20001

PAD20002 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

PAJ20701 PAJ20702 PAJ20705 COJ207

PAJ20801 PAJ20802 PAJ20805 COJ208

PAJ20901 PAJ20902 COJ209

PAJ21002 PAJ21001 COJ210

PAJ21102 PAJ21101 COJ211

PAL20002 PAL20001 COL200

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

PAR20002 PAR20001 COR200

PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203

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

PAU200048 PAU200047 PAU200046 PAU200045 PAU200044 PAU200043 PAU200042 PAU200041 PAU200040 PAU200039 PAU200038 PAU200037 PAU200036 PAU200035 PAU200034 PAU200033 PAU200032 PAU200031 PAU200030 PAU200029 PAU200028 PAU200027 PAU200026 PAU200025 PAU200024 PAU200023 PAU200022 PAU200021 PAU200020 PAU200019 PAU200018 PAU200017 PAU200016 PAU200015 PAU200014 PAU200013

PAU200012 PAU200011 PAU200010 PAU20009 PAU20008 PAU20007 PAU20006 PAU20005 PAU20004 PAU20003 PAU20002 PAU20001

COU200

PAXC20001

PAXC20002

COXC200

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 31

73 Curiosity Nano Base for Click boardstrade

Figure 7-4 AVR128DA48 Curiosity Nano Pinout Mapping

USB

DEB

UG

GER

AVR1

28D

A48

SW0

LED

0

PS L

EDNC

NC

ID

ID

CDC RX

CDCRX

USART1 TX

PC0

CDC TX

CDCTX

USART1 RX

PC1

DBG1

DBG1

PC6

LED0

DBG2

DBG2

PC7

SW0

PA0

PA0

USART0 TX

PTC XY0

PA1

PA1

USART0 RX

PTC XY1

PC2

PC2

TWI0 SDA

PC3

PC3

TWI0 SCL

PA4

PA4

SPI0 MOSI

PTC XY4

PA5

PA5

SPI0 MISO

PTC XY5

PA6

PA6

SPI0 SCK

PTC XY6

PA7

PA7

SPI0 SS

PTC XY7

GND

GND

PF4

PF4

USART2 TX

PTC XY36

PF5

PF5

USART2 RX

PTC XY37

PF2

PF2

PTC XY34

PF3

PF3

PTC XY35

PB0

PB0

PTC XY8

PB1

PB1

PTC XY9

PB2

PB2

PTC XY10

PB3

PB3

PTC XY11

GND

GND

PC0

PC0

USART1 TX

CDC RX

PC1

PC1

USART1 RX

CDC TX

PC6

PC6

LED0

PC7

PC7

SW0

VBUS

VBUS

VOFF

VOFF

DBG3

DBG3

PF6

DBG0

DBG0

UPDI

GND

GND

VTG

VTG

PD7

PD7

AIN7

PTC XY23

PD6

PD6

AIN6

PTC XY22

PD2

PD2

AIN2

PTC XY18

TCA0 WO2

PD1

PD1

AIN1

PTC XY17

TCA0 WO1

PD0

PD0

AIN0

PTC XY16

TCA0 WO0

PD5

PD5

AIN5

PTC XY21

PD4

PD4

AIN4

PTC XY20

PD3

PD3

AIN3

PTC XY19

GND

GND

PE3

PE3

PTC XY27

PE2

PE2

PTC XY26

PE1

PE1

PTC XY25

PE0

PE0

PTC XY24

PA3

PA3

PTC XY3

PA2

PA2

PTC XY2

PB5

PB5

PTC XY13

PB4

PB4

PTC XY12

GND

GND

PC5

PC5

PC4

PC4

(PF1)

(PF1)

(PTC XY33)

XTAL32K2

(PF0)

(PF0)

(PTC XY32)

XTAL32K1

DEB

UG

GER

AVR1

28D

A48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

Touch

Shared pin

AVR1

28D

A48

Curio

sity

Nan

o

1

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

2

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

3

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

Xpl

aine

d Pr

o Ex

tens

ion

EXT1

12

1920

Curio

sity

Nan

o Ba

sefo

r clic

k bo

ards

TM

PD3

PD0

PD7

PD6

PA7

PA1

PA6

PA0

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

PD4

PD1

PF3

PF2

PE2

PF5

PA6

PF4

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

PD5

PD2

PE1

PE0

PE3

PA1

PA6

PA0

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

ID

GND

PD4

PD5

PF3

PE1

PD1

PD2

PF2

PE3

PC2

PC3

PF5

PF4

PE2

PA4

PA5

PA6

GND

+33V

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 32

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

The block diagram below shows all connections between the debugger and the AVR128DA48 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 7-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 7-6 Details about connecting an external debugger are described in 36 Connecting ExternalDebuggers

Figure 7-5  On-Board Debugger Connections Block Diagram

DEB

UG

GER

TARGETLevel-Shift

PA04PA06PA07PA08PA16PA00PA01

USB

DIR x 5

VCC_P3V3

VBUS

VCC

_LEV

EL

VCC

_TA

RGET

DBG0DBG1DBG2DBG3CDC 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

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 33

Figure 7-6 On-Board Debugger Connection Cut Straps

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

75 Getting Started with IARIAR Embedded Workbenchreg for AVRreg is a proprietary high-efficiency compiler not based on GCC Programming anddebugging of AVR128DA48 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 7-73 In the category Debugger select the Setup tab Select Atmel-ICE as the driver as shown in Figure 7-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 7-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

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 34

Figure 7-7 Select Target Device

Figure 7-8 Select Debugger

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 35

Figure 7-9 Configure Interface

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 36

The Microchip WebsiteMicrochip provides online support via our website at httpwwwmicrochipcom This website is used to make filesand information 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 ServiceMicrochiprsquos 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 httpwwwmicrochipcompcn and follow the registration instructions

Customer SupportUsers 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 httpwwwmicrochipcomsupport

Microchip Devices Code Protection FeatureNote the following details of the code protection feature on Microchip devices

bull Microchip products meet the specification contained in their particular Microchip Data Sheetbull Microchip believes that its family of products is one of the most secure families of its kind on the market today

when used in the intended manner and under normal conditionsbull There are dishonest and possibly illegal methods used to breach the code protection feature All of these

methods to our knowledge require using the Microchip products in a manner outside the operatingspecifications contained in Microchiprsquos Data Sheets Most likely the person doing so is engaged in theft ofintellectual property

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

protection does not mean that we are guaranteeing the product as ldquounbreakablerdquo

Code protection is constantly evolving We at Microchip are committed to continuously improving the code protectionfeatures of our products Attempts to break Microchiprsquos code protection feature may be a violation of the DigitalMillennium Copyright Act If such acts allow unauthorized access to your software or other copyrighted work youmay have a right to sue for relief under that Act

Legal NoticeInformation contained in this publication regarding device applications and the like is provided only for yourconvenience and may be superseded by updates It is your responsibility to ensure that your application meets with

AVR128DA48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 37

your specifications MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHEREXPRESS OR IMPLIED WRITTEN OR ORAL STATUTORY OR OTHERWISE RELATED TO THE INFORMATIONINCLUDING BUT NOT LIMITED TO ITS CONDITION QUALITY PERFORMANCE MERCHANTABILITY ORFITNESS FOR PURPOSE Microchip disclaims all liability arising from this information and its use Use of Microchipdevices in life support andor safety applications is entirely at the buyerrsquos risk and the buyer agrees to defendindemnify and hold harmless Microchip from any and all damages claims suits or expenses resulting from suchuse No licenses are conveyed implicitly or otherwise under any Microchip intellectual property rights unlessotherwise stated

TrademarksThe 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-5760-2

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

AVR128DA48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 38

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupporthttpwwwmicrochipcomsupportWeb AddresshttpwwwmicrochipcomAtlantaDuluth 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 DS50002971A-page 39

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Kit Overview
      • 2 Getting Started
        • 21 Quick Start
        • 22 Design Documentation and Relevant Links
          • 3 Curiosity Nano
            • 31 On-Board Debugger Overview
              • 311 Debugger
              • 312 Virtual Serial Port (CDC)
                • 3121 Overview
                • 3122 Operating System Support
                • 3123 Limitations
                • 3124 Signaling
                • 3125 Advanced Use
                  • 313 Mass Storage Device
                    • 3131 Mass Storage Device Implementation
                    • 3132 Fuse Bytes
                    • 3133 Limitations of Drag-and-Drop Programming
                    • 3134 Special Commands
                      • 314 Data Gateway Interface (DGI)
                        • 3141 Debug GPIO
                        • 3142 Timestamping
                            • 32 Curiosity Nano Standard Pinout
                            • 33 Power Supply
                              • 331 Target Regulator
                              • 332 External Supply
                              • 333 VBUS Output Pin
                              • 334 Power Supply Exceptions
                                • 34 Low Power Measurement
                                • 35 Programming External Microcontrollers
                                  • 351 Supported Devices
                                  • 352 Software Configuration
                                  • 353 Hardware Modifications
                                  • 354 Connecting to External Microcontrollers
                                    • 36 Connecting External Debuggers
                                      • 4 Hardware User Guide
                                        • 41 Connectors
                                          • 411 AVR128DA48 Curiosity Nano Pinout
                                          • 412 Using Pin Headers
                                            • 42 Peripherals
                                              • 421 LED
                                              • 422 Mechanical Switch
                                              • 423 Crystal
                                              • 424 On-Board Debugger Implementation
                                                • 4241 On-Board Debugger Connections
                                                  • 5 Hardware Revision History and Known Issues
                                                    • 51 Identifying Product ID and Revision
                                                    • 52 Revision 3
                                                      • 6 Document Revision History
                                                      • 7 Appendix
                                                        • 71 Schematic
                                                        • 72 Assembly Drawing
                                                        • 73 Curiosity Nano Base for Click boardstrade
                                                        • 74 Disconnecting the On-board Debugger
                                                        • 75 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: AVR128DA48 Curiosity Nano User Guide - Microchip Technologyww1.microchip.com/downloads/en/DeviceDoc/AVR128DA48... · 2020-03-19 · AVR128DA48 Curiosity Nano AVR128DA48 Curiosity

2 Getting Started

21 Quick StartSteps to start exploring the AVR128DA48 Curiosity Nano Board

1 Download Atmel StudioMicrochip MPLABreg X IDE2 Launch Atmel StudioMicrochip MPLABreg X IDE3 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

Driver InstallationWhen 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 Atmel StudioMicrochipMPLABreg X IDE

Kit WindowOnce the board is powered the green status LED will be lit and Atmel StudioMicrochip MPLABreg X IDE will auto-detect which boards are connected Atmel StudioMicrochip MPLABreg X IDE will present relevant information like datasheets and board documentation The AVR128DA48 device on the AVR128DA48 Curiosity Nano Board isprogrammed and debugged by the on-board debugger and therefore no external programmer or debugger tool isrequired

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

22 Design Documentation and Relevant LinksThe following list contains links to the most relevant documents and software for the AVR128DA48 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 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

AVR128DA48 Curiosity NanoGetting Started

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 5

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 AVR 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 AVR Solutions - Microchip PIC and AVR Device Solutions contains complete applicationsfor use with Microchip development boards ready to be adapted and extended

bull AVR128DA48 Curiosity Nano website - Kit information latest user guide and design documentationbull AVR128DA48 Curiosity Nano on microchipDIRECT - Purchase this kit on microchipDIRECT

AVR128DA48 Curiosity NanoGetting Started

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 6

3 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 Atmel StudioMicrochip MPLABreg X IDE 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)

31 On-Board Debugger OverviewAVR128DA48 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 AVR128DA48 in Atmel StudioMicrochip MPLABreg X IDEbull A mass storage device that allows drag-and-drop programming of the AVR128DA48bull A virtual serial port (CDC) that is connected to a Universal Asynchronous ReceiverTransmitter (UART) on the

AVR128DA48 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 AVR128DA48 Curiosity Nano BoardThe table below shows how the LED is controlled in different operation modes

Table 3-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

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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 7

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

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

3121 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 3-1 CDC Connection

Target MCU

UART TX

UART RX

Debugger

USBCDC RX

CDC TX

PCTerminalSoftware

TargetReceive

TargetSend

TerminalReceive

TerminalSend

Info  As shown in Figure 3-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

3122 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 Atmel StudioMicrochip MPLABreg X IDE

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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 8

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

3123 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

3124 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 the DTR signal will not disable the level shifters but disable the receiver so no further data will bestreamed to the host Data packets that are already queued up for sending to the target will continue to be sent outbut no further data will be accepted

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

3125 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=

The maximum message length is 50 characters ndash all remaining data in the frame are ignored

The default baud rate used in this mode is 9600 bps but if the CDC is already active or has been configured thepreviously used baud rate still applies

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 9

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 because the on-board debugger buffers framesand not bytes A maximum of four 64-byte frames can be active at any time The on-board debugger will throttle theincoming frames 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

313 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 supportbull Write access for programming Intelreg HEX formatted files into the target devicersquos memorybull Write access for simple text files for utility purposes

3131 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 wayfulfill the 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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 10

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

3132 Fuse Bytes

Fuse Bytes (AVRreg MCU Targets)When doing drag-and-drop programming the debugger masks out fuse bits that attempt to disable Unified Programand Debug Interface (UPDI) This means that the UPDI pin cannot be used in its reset or GPIO modes selecting oneof the alternative functions on the UPDI pin would render the device inaccessible without using an external debuggercapable of high-voltage UPDI activation

3133 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 useAtmel StudioMicrochip MPLABreg X IDE

Enabling CRC Check in FusesIt is not advisable to enable the CRC check in the target devicersquos fuses when using drag-and-drop programming Thisbecause 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 Atmel StudioMicrochip MPLABreg

X IDE which will automatically clear the CRC fuses after erasing

3134 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

Table 3-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 ldquoCDC Override Moderdquo

CMDRESET Resets the target device by entering Programming mode and then exitingProgramming mode immediately thereafter Exact timing can vary according tothe programming interface of the target device (Debugger firmware v116 ornewer)

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

CMD0V Powers down the target device by disabling the target supply regulator Ifexternal power is provided this has no effect (Debugger firmware v116 ornewer)

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

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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 11

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

314 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 Atmel StudioMicrochip MPLABreg X IDE

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

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

3141 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 VisualizerFigure 3-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

3142 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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 12

32 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 3-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

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 3-3 Curiosity Nano Standard Pinout

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

33 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 AVR128DA48 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 AVR128DA48Curiosity Nano

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 13

Figure 3-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

331 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 implementationis 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 AVR128DA48microcontroller The voltage limits configured in the on-board debugger on AVR128DA48 Curiosity Nano are18-51V

Info  The target voltage is set to 33V when the board is manufactured It can be changed throughMPLAB X IDE project properties and in the Atmel Studio device programming dialog Any change to thetarget voltage is persistent even through 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 Atmel StudioMicrochip MPLABreg X IDE are not immediatelyapplied to the board The new voltage setting is applied to the board when the debugger is accessed inany way like pushing the Refresh 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 only supports settings of 00V 33V and 50V See section 3134 Special Commands forfurther details

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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 14

Figure 3-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

Info  If the external voltage is lower than the monitoring window lower limit (target voltage setting - 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

332 External SupplyAVR128DA48 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 AVR128DA48 is 18-55V Applying a higher voltage may cause permanent damage to theboard

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 15

Info  If an external voltage is applied without pulling the VOFF pin low and an external supply pulls thevoltage lower than the monitoring window 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 AVR128DA48 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

333 VBUS Output PinAVR128DA48 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

Figure 3-6 VBUS Output Voltage vs Current

334 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 between 44V to 525V) and thevoltage drop over the MIC5353 regulator at a given voltage setting and current consumption If a higher outputvoltage is needed use a USB power source that can provide a higher input voltage or use an external voltage supplyon the VTG pin

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 16

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 differ more than 100 mV overunder the voltage setting it will be detected by the on-board debugger and theinternal voltage regulator will be shut down To fix this issue remove the applied voltage from the VTG pin and theon-board debugger will enable the on-board voltage regulator when the new condition is detected Note that the PSLED will be blinking rapidly if the target voltage is below 100 mV of the setting but will be lit normally when it is higherthan 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 really a special case of the issue mentioned above Removethe short-circuit and the on-board debugger will re-enable the on-board target voltage regulator

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

34 Low Power MeasurementPower to the AVR128DA48 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 AVR128DA48 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 AVR128DA48

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 17

Figure 3-7 Target Power Strap

Target Power strap (top side)

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 are tri-state to prevent leakage All IOs connected to the on-boarddebugger are listed in 4241 On-Board Debugger Connections To prevent any leakage to the on-boardlevel shifters they can be disconnected completely as described in 74 Disconnecting the On-boardDebugger

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

351 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

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

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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 18

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

Figure 3-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

353 Hardware ModificationsThe on-board debugger is connected to the AVR128DA48 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 AVR128DA48 from the on-board debugger

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 19

Figure 3-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 AVR128DA48 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 AVR128DA48

354 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 33 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

AVR128DA48 Curiosity Nano has a pull-up resistor R200 connected to its RESET signal (DBG3) The location ofthe pull-up resistor is shown in the 72 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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 20

Figure 3-10 Curiosity Nano Standard Pinout

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

Table 3-4 Programming and Debugging Interfaces

Curiosity Nano Pin UPDI ICSPtrade SWD

DBG0 UPDI DATA SWDIO

DBG1 - CLK SWCLK

DBG2 - - -

DBG3 - MCLR RESET

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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 21

Figure 3-11 Connecting the MPLABreg PICkittrade 4 In-Circuit DebuggerProgrammer to AVR128DA48 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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 22

Figure 3-12 Connecting the Atmel-ICE to AVR128DA48 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 Atmel StudioMicrochip MPLABreg XIDE or mass storage programming while the external tool is active

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 23

4 Hardware User Guide

41 Connectors

411 AVR128DA48 Curiosity Nano PinoutAll the AVR128DA48 IO pins are accessible at the edge connectors on the board The image below shows the boardpinout

Figure 4-1 AVR128DA48 Curiosity Nano Pinout

USB

DEBUGGER

AVR128DA48

SW0

LED0

PS LEDNC

NC

ID

ID

CDC RX

CDCRXUSART1 TXPC0

CDC TX

CDCTXUSART1 RXPC1

DBG1

DBG

1PC6LED0

DBG2

DBG

2PC7SW0

PA0

PA0USART0 TXPTC XY0

PA1PA

1USART0 RXPTC XY1

PC2PC2TWI0 SDA

PC3

PC3TWI0 SCL

PA4

PA4SPI0 MOSIPTC XY4

PA5

PA5SPI0 MISOPTC XY5

PA6

PA6SPI0 SCKPTC XY6

PA7

PA7SPI0 SSPTC XY7

GND

GN

D

PF4

PF4USART2 TXPTC XY36

PF5

PF5USART2 RXPTC XY37

PF2

PF2PTC XY34

PF3

PF3PTC XY35

PB0

PB0PTC XY8

PB1

PB1PTC XY9

PB2

PB2PTC XY10

PB3

PB3PTC XY11

GND

GN

D

PC0

PC0USART1 TXCDC RX

PC1

PC1USART1 RXCDC TX

PC6

PC6LED0

PC7

PC7SW0

VBUS

VBU

S

VOFF

VO

FFDBG3

DBG

3 PF6

DBG0D

BG0 UPDI

GND

GN

D

VTG

VTG

PD7

PD7 AIN7 PTC XY23

PD6

PD6 AIN6 PTC XY22

PD2

PD2 AIN2 PTC XY18 TCA0 WO2

PD1

PD1 AIN1 PTC XY17 TCA0 WO1

PD0

PD0 AIN0 PTC XY16 TCA0 WO0

PD5

PD5 AIN5 PTC XY21

PD4

PD4 AIN4 PTC XY20

PD3

PD3 AIN3 PTC XY19

GND

GN

D

PE3

PE3 PTC XY27

PE2

PE2 PTC XY26

PE1

PE1 PTC XY25

PE0

PE0 PTC XY24

PA3

PA3 PTC XY3

PA2

PA2 PTC XY2

PB5

PB5 PTC XY13

PB4

PB4 PTC XY12

GND

GN

D

PC5

PC5

PC4

PC4

(PF1)

(PF1) (PTC XY33) XTAL32K2

(PF0)

(PF0) (PTC XY32) XTAL32K1

DEBUGGERAVR128DA48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

Touch

Shared pin

AVR128DA48Curiosity Nano

412 Using Pin HeadersThe edge connector footprint on AVR128DA48 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

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

AVR128DA48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 24

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

42 Peripherals

421 LEDThere is one yellow user LED available on the AVR128DA48 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 4-1 LED Connection

AVR128DA48 Pin Function Shared Functionality

PC6 Yellow LED0 Edge connector On-board debugger

422 Mechanical SwitchThe AVR128DA48 Curiosity Nano has one mechanical switch This is a generic user-configurable switch When theswitch 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 PC7

Table 4-2 Mechanical Switch

AVR128DA48 Pin Description Shared Functionality

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

423 Crystal

The AVR128DA48 Curiosity Nano board has a 32768 kHz crystal mounted

The AVR128DA48 is connected to the crystal by default but the GPIOs are also routed to the edge connectorthrough two solder points The two IO lines routed to the edge connector are disconnected by default to reduce thechance of an external signal causing contention with the crystal and to remove excessive capacitance on the linesTo use PF0 and PF1 as GPIO some hardware modifications are required

bull Disconnect the crystal by cutting the two straps on the top side of the board next to the crystal (J210 J211) Thecrystal 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 (J207 J208)

The cut straps and solder points can be seen in Figure 4-2

Table 4-3 Crystal Connections

AVR128DA48 Pin Function Shared Functionality

PF0 TOSC1 (Crystal input) Edge connector

PF1 TOSC2 (Crystal output) Edge connector

AVR128DA48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 25

Figure 4-2 Crystal Connection and Cut Straps

424 On-Board Debugger ImplementationAVR128DA48 Curiosity Nano features an on-board debugger that can be used to program and debug theAVR128DA48 using UPDI The on-board debugger also includes a virtual serial port (CDC) interface over UART anddebug GPIO Atmel StudioMicrochip MPLABreg X IDE 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

4241 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 31 On-Board DebuggerOverview

Table 4-4 On-Board Debugger Connections

AVR128DA48Pin

Debugger Pin Function Shared Functionality

RF1 CDC TX UART RX (AVR128DA48 RX line) Edge connector

RF0 CDC RX UART TX (AVR128DA48 TX line) Edge connector

UPDI DBG0 UPDI Edge connector

PC6 DBG1 GPIO1 Edge connector LED

PC7 DBG2 GPIO0 Edge connector Mechanical Switch

PF6 DBG3 RESET Edge connector

AVR128DA48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 26

5 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

51 Identifying Product ID and RevisionThe revision and product identifier of the AVR128DA48 Curiosity Nano Board can be found in two ways Either byutilizing the Atmel StudioMicrochip MPLABreg X IDE Kit Window or by looking at the sticker on the bottom side of thePCB

By connecting AVR128DA48 Curiosity Nano to a computer with Atmel StudioMicrochip MPLABreg X IDE running theKit Window will pop up The first six digits of the serial number which is listed under kit information contain theproduct identifier 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 AVR128DA48 Curiosity Nano is A09-3280

52 Revision 3Revision 3 is the initially released revision There are no known issues with this revision

AVR128DA48 Curiosity NanoHardware Revision History and Known Issues

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 27

6 Document Revision HistoryDoc rev Date Comment

A 032020 Initial document release

AVR128DA48 Curiosity NanoDocument Revision History

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 28

7 Appendix

71 SchematicFigure 7-1 AVR128DA48 Curiosity Nano Schematic

11

22

33

44

55

66

77

88

DD

CC

BB

AA

2 of

4

AVR1

28D

A48

Curio

sity

Nan

o

102

320

19AV

R128

DA

48_C

urio

sity

_Nan

o_Ta

rget

_MCU

Sch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA R

evisi

on

File

PC

B N

umbe

rPC

B Re

visio

n

Des

igne

d wi

th

Dra

wn

By

PB Shee

t Titl

eTa

rget

MCU

Engi

neer

A

H T

F

A08

-300

23

Size

A3

A09

-328

03

Page

D

ateA

ltium

com

GN

DV

CC_T

ARG

ET

100n

C201

GN

D

PA5_

SPI0

_MIS

OPA

6_SP

I0_S

CKPA

7_SP

I0_S

SPB

0_U

ART

3_TX

PB1_

UA

RT3_

RXPB

2PB

3PB

4PB

5PC

0_U

ART

1_TX

PC1_

UA

RT1_

RXPC

2_I2

C0_S

DA

PC3_I2C0_SCL

PC4PC5PC6_LED0_GPIO1PC7_SW0_GPIO0PD0_AIN0_WO0PD1_AIN1_WO1PD2_AIN2_WO2PD3_AIN3PD4_AIN4

PA3

PA1_UART0_RX

UPDI

PF5_UART2_RX

PF3

PF2

PF1_

TOSC

2PF

0_TO

SC1

PE3

PE2

PE1

PE0

PD5_

AIN

5PD

6_A

IN6

PD7_

AIN

7

GN

D

VCC

_TA

RGET

100n

C202

GN

DV

CC_T

ARG

ET10

0n

C200

PF1_TOSC2

PF0_TOSC1

PA2

PA0_UART0_TX

PF4_UART2_TX

PA4_SPI0_MOSI

GN

D

PA7_

SPI0

_SS

PA6_

SPI0

_SCK

PA5_

SPI0

_MIS

OPA

4_SP

I0_M

OSI

PA3

PA2

PA1_

UA

RT0_

RXPA

0_U

ART

0_TX

PB0_

UA

RT3_

TXPB

1_U

ART

3_RX

PB2

PB3

PB4

PB5

PD7_

AIN

7PD

6_A

IN6

PF5_

UA

RT2_

RXPF

4_U

ART

2_TX

PF3

PF2

32kH

z C

ryst

al

1kR203

USE

R L

ED

VCC

_TA

RGET

PF6_RESET

PC7_SW0_GPIO0

PC6_LED0_GPIO1

GN

D

USE

R B

UTT

ON

PE3

PE2

PE1

PE0

PC0_

UA

RT1_

TXPC

1_U

ART

1_RX

PC2_

I2C0

_SD

APC

3_I2

C0_S

CL

PC4

PC5

PC6_

LED

0_G

PIO

1PC

7_SW

0_G

PIO

0

1kR202

YELLOWLEDSML-D12Y1WT86

2 1D200

TS604VM1-035CR13

4 2

SW20

0

GN

DV

CC_E

DG

E

GN

DG

ND

GN

DG

ND

UPD

IPF

6_RE

SET

J207

J208

J209

BLM

18PG

471S

N1

L200

AVR1

28D

A48

22u

FC2

05

VCC

_ED

GE

GN

D

DBG0

CDC_

UART

TXRXU

ART

CDC_TXCDC_RX

DBG2

DBG1

DBG3

DBG2

DEB

UG

GER

CO

NN

ECTI

ON

S

DBG1

DBG3DBG0

VOFF

ID_S

YS

ID_SYS

VOFF

TAR

GET

BU

LK

VCC

_TA

RGET

RES

ET P

ull

VBU

S

CDC

RX3

CDC

TX4

DBG

15

DBG

26

0 TX

71

RX8

2 SD

A9

3 SC

L10

4 M

OSI

115

MIS

O12

6 SC

K13

7 SS

14G

ND

150

(TX

)16

1 (R

X)

172

183

190

20

GN

D24

DBG

354

DBG

053

GN

D52

VCC

51

PWM

346

AD

C 2

45A

DC

144

AD

C 0

43G

ND

42

438

434

GN

D33

AD

C 7

50A

DC

649

AD

C 5

48PW

M 4

47

DEB

UG

GER

TARG

ET

ID2

VO

FF55

121

222

323

025

126

227

328

429

530

631

732

535

636

737

539

640

741

RESE

RVED

1V

BUS

56

CNA

NO

56-p

in e

dge

conn

ecto

r

J200

J201

J203

J205

J206

J202

J204

PF1

PF0

PF1_

TOSC

2PF

0_TO

SC1

NC

J211

J210

XOUT

XIN

47kR200

AVR

128D

A48

UPD

I

GPI

O1

GPI

O0

RESE

T

DBG

0

DBG

1

DBG

2

DBG

3

Deb

ugge

r

CD

C T

X

CD

C R

X

UA

RT1

RX

UA

RT1

TX

VTG

18V

- 5

5VPC6

PC7

PF6

UPD

I

PC0

PC1

Nam

ePi

n

PA5

1PA

62

PA7

3PB

04

PB1

5PB

26

PB3

7PB

48

PB5

9PC

010

PC1

11PC

212

PC3 13VDD 14GND 15PC4 16PC5 17PC6 18PC7 19PD0 20PD1 21PD2 22PD3 23PD4 24

PD5

25PD

626

PD7

27AV

DD28

GND

29PE

030

PE1

31PE

232

PE3

33XT

AL32

K1P

F034

XTAL

32K2

PF1

35PF

236

PF337 PF438 PF539 PF640 UPDI41 VDD42 GND43 EXTCLKPA044 PA145 PA246 PA347 PA448

AVR1

28D

A48

TQ

FPU

200

PC0_

UA

RT1_

TXPC

1_U

ART

1_RX

PC6_

LED

0_G

PIO

1PC

7_SW

0_G

PIO

0

AVD

D

PD2_

AIN

2_W

O2

PD1_

AIN

1_W

O1

PD0_

AIN

0_W

O0

PD5_

AIN

5PD

4_A

IN4

PD3_

AIN

3

XC2

00

12p

C203

12p

C204

327

68 k

Hz

Crys

tal d

atas

heet

Cc

rysta

l = 9

pFm

ax E

SR =

70k

Ohm

Acc

urac

y plusmn2

0ppm

AVR1

28D

A48

dat

ashe

et

Cxin

= 4

1pF

Cxou

t = 6

0pF

Cl asymp

1( (

14

1pF)

+ (1

60

pF) )

asymp2

44pF

Max

imum

Loa

d =

125

pFM

axim

um E

SR =

80k

Ohm

Estim

ated

Cpc

b =

05p

F

Estim

ated

load

C =

2 (C

crys

tal-

Cpar

a - C

pcb)

C

= 2

(9pF

- 2

44pF

- 0

5pF)

C =

121

2pF

Sele

cted

in d

esig

n af

ter v

erifi

catio

nC=

12p

F12

pF

NO

TE o

n U

ART

CD

C

RXT

X o

n th

e he

ader

den

otes

the

inpu

tout

put d

irect

ion

of th

e sig

nal

resp

ectiv

e to

its

sour

ce

CDC

TX is

out

put f

rom

the

DEB

UG

GER

CD

C RX

is in

put t

o th

e D

EBU

GG

ER

TX is

out

put f

rom

the

TARG

ET d

evic

eRX

is in

put t

o th

e TA

RGET

dev

ice

NO

TE o

n I2

C

No

pull-

ups o

n bo

ard

Pul

l-ups

shou

ld b

e m

ount

ed c

lose

to sl

ave

devi

ce(s

)

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 29

11

22

33

44

55

66

77

88

DD

CC

BB

AA

3 of

4

AVR1

28D

A48

Curio

sity

Nan

o

102

320

19AV

R128

DA

48_C

urio

sity

_Nan

o_D

ebug

gerS

chD

oc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA R

evisi

on

File

PC

B N

umbe

rPC

B Re

visio

n

Des

igne

d wi

th

Dra

wn

By

PB Shee

t Titl

eD

ebug

ger

Engi

neer

A

H T

F

A08

-300

23

Size

A3

A09

-328

03

Page

D

ateA

ltium

com

DEB

UG

GER

USB

MIC

RO

-B C

ON

NEC

TOR

GN

D

USB

D_P

USB

D_N

100n

C107

100n

C108

RXTXU

ART

CDC_

UART

1kR1

07V

CC_P

3V3

SRST

STAT

US_

LED

SHIE

LD

VBU

S

VCC

_P3V

3G

ND

TP10

0

Testp

oint

Arra

y

12

34

56

78

910

TCK

TDO

TMS

Vsu

pTD

IG

ND

TRST

SRST

VTr

efG

ND

J102

GN

D

47u

F

C100

DBG0

DBG

0

21

GRE

EN L

EDSM

L-P1

2MTT

86R

D10

0

VBUS

1D-

2D+

3

GND

5SH

IELD

16

SHIE

LD2

7

ID4

SHIE

LD3

8SH

IELD

49 M

U-M

B014

2AB2

-269

J105

PAD

33

PA00

1PA

012

PA02

3PA

034

GND 10VDDANA 9

PA04

5PA

056

PA06

7PA

078

PA08 11PA09 12PA10 13PA11 14PA14 15PA15 16

PA16

17PA

1718

PA18

19PA

1920

PA22

21US

B_SO

FPA

2322

USB_

DMP

A24

23US

B_DP

PA2

524

PA2725 RESETN26 PA2827 GND28 VDDCORE29 VDDIN30 SWDCLKPA3031 SWDIOPA3132

SAM

D21

E18A

-MU

TU

100

VOUT

1

VOUT

2

GND 3

EN4

VIN

6

NC5

EP 7

MIC

5528

-33

YM

TU

101

VCC

_P3V

3

GN

D

USB

D_P

USB

D_N

GN

D

1uC106

VCC

_MCU

_CO

RE

VCC

_P3V

3

VCC

_P3V

3

22u

FC1

01

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

3V

CC_P

3V3

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

4V

CC_P

3V3

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

5V

CC_P

3V3

GN

D

GN

D GN

D

GN

D

VCC

_ED

GE

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

7V

CC_P

3V3

GN

DDB

G2

DBG

3_CT

RL

S1_0

_TX

S1_1

_RX

S0_2

_TX

DA

CV

TG_A

DC

RESE

RVED

S0_3

_CLK

DBG0_CTRL

CDC_

TX_C

TRL

BOO

T

DEB

UG

GER

PO

WER

STA

TUS

LED

EN1

BYP

6

VOUT

4

GND

2

VIN

3

NCA

DJ5

GND 7

MIC

5353

U10

2

100n

C102

GN

D

GN

D

47kR101

27kR104 G

ND

33k

R106

22u

F

C103 G

ND

1kR1

08

J100

VCC

_LEV

ELV

CC_R

EGU

LATO

R

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

6V

CC_P

3V3

GN

DDB

G1

CDC_

RXCD

C_TX

DBG3

DBG1_CTRL

DEB

UG

GER

REG

ULA

TOR

REG_ENABLE

REG

_EN

ABL

E

47kR103

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

47kR102

47kR105

SWCL

K

GN

D

47kR100 G

ND

DBG

2

S0_0

_RX

DBG

1_CT

RL

DBG

0_CT

RL

DBG

3 O

PEN

DR

AIN

TAR

GET

AD

JUST

ABL

E R

EGU

LATO

R

SRST

DEB

UG

GER

TES

TPO

INT DBG2_CTRL

VO

FFCD

C_RX

_CTR

L

47kR109

DBG

1

CDC_

TX_C

TRL

CDC_

RX_C

TRL

SWCL

K

REG_ADJUST

DBG2_GPIO

DBG

3_CT

RL

DBG

2_CT

RL

UPD

I

UPD

I

GPI

O

GPI

O

RESE

T

Sign

al

DBG

0

DBG

1

DBG

2

DBG

3

ICSP

Inte

rface

DAT

CLK

GPI

O

MCL

R

DBG

3

CD

C T

X

CD

C R

X

UA

RT R

X

UA

RT T

X

UA

RT R

X

UA

RT T

X

TAR

GET

TAR

GET

1kR1

10

VBUS_ADC

1

23

DM

N65

D8L

FBQ

101

VC

C-

-

ID_S

YS

VOFF

1kR112

VCC

_P3V

3

VTG

_AD

CD

AC

MIC

9416

3

VIN

B2VO

UTA1

VIN

A2

ENC2

GND

C1VO

UTB1

U10

8

GN

D

ID_S

YS

VTG

_EN

VTG_EN

VBUS_ADC

SWD

IO

ID_S

YS

TP10

1G

ND

SWD

IO

VO

FF

47kR111 G

ND

ID P

IN

MC3

6213

F100

VCC

_VBU

S

VCC

_VBU

S

VCC

_VBU

S

J101

VCC

_TA

RGET

47k

R113

Prog

ram

min

g co

nnec

tor f

or

fact

ory

prog

ram

min

g of

D

EBU

GG

ER

MIC

5528

Vi

n 2

5V

to 5

5V

Vout

Fix

ed 3

3V

Imax

500

mA

Dro

pout

260

mV

5

00m

A

PTC

Rese

ttabl

e fu

se

Hol

d cu

rrent

500

mA

Trip

cur

rent

100

0mA

Adj

usta

ble

outp

ut a

nd li

mita

tions

- T

he D

EBU

GG

ER c

an a

djus

t the

out

put v

olta

ge o

f the

regu

lato

r bet

wee

n 1

25V

and

51

V to

the

targ

et

- The

vol

tage

out

put i

s lim

ited

by th

e in

put (

USB

) w

hich

can

var

y be

twee

n 4

40V

to 5

25V

- The

leve

l shi

fters

hav

e a

min

imal

vol

tage

leve

l of 1

65V

and

will

lim

it th

e m

inim

um o

pera

ting

volta

ge a

llow

ed fo

r the

ta

rget

to st

ill a

llow

com

mun

icat

ion

- The

MIC

9416

3 ha

s a m

inim

al v

olta

ge le

vel o

f 17

0V a

nd w

ill li

mit

the

min

imum

vol

tage

del

iver

ed to

the

targ

et

- Firm

war

e co

nfig

urat

ion

will

lim

it th

e vo

ltage

rang

e to

be

with

in th

e th

e ta

rget

spec

ifica

tion

R113

is re

quire

d to

pul

l the

Q

101

gate

to a

def

ined

va

lue

whe

n th

e U

100

is no

t po

wer

ed

J100

Cu

t-stra

p us

ed fo

r ful

l sep

arat

ion

of ta

rget

pow

er fr

om th

e le

vel s

hifte

rs a

nd o

n-bo

ard

regu

lato

rs

- For

cur

rent

mea

sure

men

ts us

ing

an e

xter

nal p

ower

supp

ly t

his s

trap

coul

d be

cut

for m

ore

accu

rate

mea

sure

men

ts L

eaka

ge b

ack

thro

ugh

the

switc

h is

in th

e m

icro

am

pere

rang

e

J101

Th

is is

foot

prin

t for

a 1

x2 1

00m

il pi

tch

pin-

head

er th

at c

an b

e us

ed fo

r eas

y cu

rrent

mea

sure

men

t to

the

targ

et m

icro

cont

rolle

r and

the

LED

Bu

tton

To

use

the

foot

prin

t- C

ut th

e tra

ck b

etw

een

the

hole

s an

d m

ount

a p

in-h

eade

r

MIC

5353

Vi

n 2

6V

to 6

VVo

ut 1

25V

to 5

1V

Imax

500

mA

Dro

pout

(typ

ical

) 50

mV

15

0mA

160

mV

5

00m

AA

ccur

acy

2

initi

alTh

erm

al sh

utdo

wn

and

curre

nt li

mit

Max

imum

out

put v

olta

ge is

lim

ited

by th

e in

put v

olta

ge a

nd th

e dr

opou

t vol

tage

in th

e re

gula

tor

(Vm

ax =

Vin

- dr

opou

t)

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 30

72 Assembly DrawingFigure 7-2 AVR128DA48 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

PAC20002 PAC20001 COC200

PAC20102 PAC20101 COC201

PAC20202 PAC20201 COC202

PAC20301 PAC20302 COC203

PAC20401 PAC20402 COC204

PAC20502

PAC20501 COC205

PAD10002 PAD10001 COD100

PAD20001

PAD20002 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

PAJ20701 PAJ20702 PAJ20705 COJ207

PAJ20801 PAJ20802 PAJ20805 COJ208

PAJ20901 PAJ20902 COJ209

PAJ21002 PAJ21001 COJ210

PAJ21102 PAJ21101 COJ211

PAL20002 PAL20001 COL200

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

PAR20002 PAR20001 COR200

PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203

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

PAU200048 PAU200047 PAU200046 PAU200045 PAU200044 PAU200043 PAU200042 PAU200041 PAU200040 PAU200039 PAU200038 PAU200037 PAU200036 PAU200035 PAU200034 PAU200033 PAU200032 PAU200031 PAU200030 PAU200029 PAU200028 PAU200027 PAU200026 PAU200025 PAU200024 PAU200023 PAU200022 PAU200021 PAU200020 PAU200019 PAU200018 PAU200017 PAU200016 PAU200015 PAU200014 PAU200013

PAU200012 PAU200011 PAU200010 PAU20009 PAU20008 PAU20007 PAU20006 PAU20005 PAU20004 PAU20003 PAU20002 PAU20001

COU200

PAXC20001

PAXC20002

COXC200

Figure 7-3 AVR128DA48 Curiosity Nano Assembly Drawing Bottom

ctR

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20002 PAC20001 COC200

PAC20102 PAC20101 COC201

PAC20202 PAC20201 COC202

PAC20301 PAC20302 COC203

PAC20401 PAC20402 COC204

PAC20502

PAC20501 COC205

PAD10002 PAD10001 COD100

PAD20001

PAD20002 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

PAJ20701 PAJ20702 PAJ20705 COJ207

PAJ20801 PAJ20802 PAJ20805 COJ208

PAJ20901 PAJ20902 COJ209

PAJ21002 PAJ21001 COJ210

PAJ21102 PAJ21101 COJ211

PAL20002 PAL20001 COL200

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

PAR20002 PAR20001 COR200

PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203

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

PAU200048 PAU200047 PAU200046 PAU200045 PAU200044 PAU200043 PAU200042 PAU200041 PAU200040 PAU200039 PAU200038 PAU200037 PAU200036 PAU200035 PAU200034 PAU200033 PAU200032 PAU200031 PAU200030 PAU200029 PAU200028 PAU200027 PAU200026 PAU200025 PAU200024 PAU200023 PAU200022 PAU200021 PAU200020 PAU200019 PAU200018 PAU200017 PAU200016 PAU200015 PAU200014 PAU200013

PAU200012 PAU200011 PAU200010 PAU20009 PAU20008 PAU20007 PAU20006 PAU20005 PAU20004 PAU20003 PAU20002 PAU20001

COU200

PAXC20001

PAXC20002

COXC200

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 31

73 Curiosity Nano Base for Click boardstrade

Figure 7-4 AVR128DA48 Curiosity Nano Pinout Mapping

USB

DEB

UG

GER

AVR1

28D

A48

SW0

LED

0

PS L

EDNC

NC

ID

ID

CDC RX

CDCRX

USART1 TX

PC0

CDC TX

CDCTX

USART1 RX

PC1

DBG1

DBG1

PC6

LED0

DBG2

DBG2

PC7

SW0

PA0

PA0

USART0 TX

PTC XY0

PA1

PA1

USART0 RX

PTC XY1

PC2

PC2

TWI0 SDA

PC3

PC3

TWI0 SCL

PA4

PA4

SPI0 MOSI

PTC XY4

PA5

PA5

SPI0 MISO

PTC XY5

PA6

PA6

SPI0 SCK

PTC XY6

PA7

PA7

SPI0 SS

PTC XY7

GND

GND

PF4

PF4

USART2 TX

PTC XY36

PF5

PF5

USART2 RX

PTC XY37

PF2

PF2

PTC XY34

PF3

PF3

PTC XY35

PB0

PB0

PTC XY8

PB1

PB1

PTC XY9

PB2

PB2

PTC XY10

PB3

PB3

PTC XY11

GND

GND

PC0

PC0

USART1 TX

CDC RX

PC1

PC1

USART1 RX

CDC TX

PC6

PC6

LED0

PC7

PC7

SW0

VBUS

VBUS

VOFF

VOFF

DBG3

DBG3

PF6

DBG0

DBG0

UPDI

GND

GND

VTG

VTG

PD7

PD7

AIN7

PTC XY23

PD6

PD6

AIN6

PTC XY22

PD2

PD2

AIN2

PTC XY18

TCA0 WO2

PD1

PD1

AIN1

PTC XY17

TCA0 WO1

PD0

PD0

AIN0

PTC XY16

TCA0 WO0

PD5

PD5

AIN5

PTC XY21

PD4

PD4

AIN4

PTC XY20

PD3

PD3

AIN3

PTC XY19

GND

GND

PE3

PE3

PTC XY27

PE2

PE2

PTC XY26

PE1

PE1

PTC XY25

PE0

PE0

PTC XY24

PA3

PA3

PTC XY3

PA2

PA2

PTC XY2

PB5

PB5

PTC XY13

PB4

PB4

PTC XY12

GND

GND

PC5

PC5

PC4

PC4

(PF1)

(PF1)

(PTC XY33)

XTAL32K2

(PF0)

(PF0)

(PTC XY32)

XTAL32K1

DEB

UG

GER

AVR1

28D

A48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

Touch

Shared pin

AVR1

28D

A48

Curio

sity

Nan

o

1

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

2

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

3

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

Xpl

aine

d Pr

o Ex

tens

ion

EXT1

12

1920

Curio

sity

Nan

o Ba

sefo

r clic

k bo

ards

TM

PD3

PD0

PD7

PD6

PA7

PA1

PA6

PA0

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

PD4

PD1

PF3

PF2

PE2

PF5

PA6

PF4

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

PD5

PD2

PE1

PE0

PE3

PA1

PA6

PA0

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

ID

GND

PD4

PD5

PF3

PE1

PD1

PD2

PF2

PE3

PC2

PC3

PF5

PF4

PE2

PA4

PA5

PA6

GND

+33V

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 32

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

The block diagram below shows all connections between the debugger and the AVR128DA48 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 7-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 7-6 Details about connecting an external debugger are described in 36 Connecting ExternalDebuggers

Figure 7-5  On-Board Debugger Connections Block Diagram

DEB

UG

GER

TARGETLevel-Shift

PA04PA06PA07PA08PA16PA00PA01

USB

DIR x 5

VCC_P3V3

VBUS

VCC

_LEV

EL

VCC

_TA

RGET

DBG0DBG1DBG2DBG3CDC 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

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 33

Figure 7-6 On-Board Debugger Connection Cut Straps

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

75 Getting Started with IARIAR Embedded Workbenchreg for AVRreg is a proprietary high-efficiency compiler not based on GCC Programming anddebugging of AVR128DA48 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 7-73 In the category Debugger select the Setup tab Select Atmel-ICE as the driver as shown in Figure 7-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 7-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

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 34

Figure 7-7 Select Target Device

Figure 7-8 Select Debugger

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 35

Figure 7-9 Configure Interface

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 36

The Microchip WebsiteMicrochip provides online support via our website at httpwwwmicrochipcom This website is used to make filesand information 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 ServiceMicrochiprsquos 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 httpwwwmicrochipcompcn and follow the registration instructions

Customer SupportUsers 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 httpwwwmicrochipcomsupport

Microchip Devices Code Protection FeatureNote the following details of the code protection feature on Microchip devices

bull Microchip products meet the specification contained in their particular Microchip Data Sheetbull Microchip believes that its family of products is one of the most secure families of its kind on the market today

when used in the intended manner and under normal conditionsbull There are dishonest and possibly illegal methods used to breach the code protection feature All of these

methods to our knowledge require using the Microchip products in a manner outside the operatingspecifications contained in Microchiprsquos Data Sheets Most likely the person doing so is engaged in theft ofintellectual property

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

protection does not mean that we are guaranteeing the product as ldquounbreakablerdquo

Code protection is constantly evolving We at Microchip are committed to continuously improving the code protectionfeatures of our products Attempts to break Microchiprsquos code protection feature may be a violation of the DigitalMillennium Copyright Act If such acts allow unauthorized access to your software or other copyrighted work youmay have a right to sue for relief under that Act

Legal NoticeInformation contained in this publication regarding device applications and the like is provided only for yourconvenience and may be superseded by updates It is your responsibility to ensure that your application meets with

AVR128DA48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 37

your specifications MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHEREXPRESS OR IMPLIED WRITTEN OR ORAL STATUTORY OR OTHERWISE RELATED TO THE INFORMATIONINCLUDING BUT NOT LIMITED TO ITS CONDITION QUALITY PERFORMANCE MERCHANTABILITY ORFITNESS FOR PURPOSE Microchip disclaims all liability arising from this information and its use Use of Microchipdevices in life support andor safety applications is entirely at the buyerrsquos risk and the buyer agrees to defendindemnify and hold harmless Microchip from any and all damages claims suits or expenses resulting from suchuse No licenses are conveyed implicitly or otherwise under any Microchip intellectual property rights unlessotherwise stated

TrademarksThe 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-5760-2

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

AVR128DA48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 38

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupporthttpwwwmicrochipcomsupportWeb AddresshttpwwwmicrochipcomAtlantaDuluth 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 DS50002971A-page 39

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Kit Overview
      • 2 Getting Started
        • 21 Quick Start
        • 22 Design Documentation and Relevant Links
          • 3 Curiosity Nano
            • 31 On-Board Debugger Overview
              • 311 Debugger
              • 312 Virtual Serial Port (CDC)
                • 3121 Overview
                • 3122 Operating System Support
                • 3123 Limitations
                • 3124 Signaling
                • 3125 Advanced Use
                  • 313 Mass Storage Device
                    • 3131 Mass Storage Device Implementation
                    • 3132 Fuse Bytes
                    • 3133 Limitations of Drag-and-Drop Programming
                    • 3134 Special Commands
                      • 314 Data Gateway Interface (DGI)
                        • 3141 Debug GPIO
                        • 3142 Timestamping
                            • 32 Curiosity Nano Standard Pinout
                            • 33 Power Supply
                              • 331 Target Regulator
                              • 332 External Supply
                              • 333 VBUS Output Pin
                              • 334 Power Supply Exceptions
                                • 34 Low Power Measurement
                                • 35 Programming External Microcontrollers
                                  • 351 Supported Devices
                                  • 352 Software Configuration
                                  • 353 Hardware Modifications
                                  • 354 Connecting to External Microcontrollers
                                    • 36 Connecting External Debuggers
                                      • 4 Hardware User Guide
                                        • 41 Connectors
                                          • 411 AVR128DA48 Curiosity Nano Pinout
                                          • 412 Using Pin Headers
                                            • 42 Peripherals
                                              • 421 LED
                                              • 422 Mechanical Switch
                                              • 423 Crystal
                                              • 424 On-Board Debugger Implementation
                                                • 4241 On-Board Debugger Connections
                                                  • 5 Hardware Revision History and Known Issues
                                                    • 51 Identifying Product ID and Revision
                                                    • 52 Revision 3
                                                      • 6 Document Revision History
                                                      • 7 Appendix
                                                        • 71 Schematic
                                                        • 72 Assembly Drawing
                                                        • 73 Curiosity Nano Base for Click boardstrade
                                                        • 74 Disconnecting the On-board Debugger
                                                        • 75 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: AVR128DA48 Curiosity Nano User Guide - Microchip Technologyww1.microchip.com/downloads/en/DeviceDoc/AVR128DA48... · 2020-03-19 · AVR128DA48 Curiosity Nano AVR128DA48 Curiosity

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 AVR 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 AVR Solutions - Microchip PIC and AVR Device Solutions contains complete applicationsfor use with Microchip development boards ready to be adapted and extended

bull AVR128DA48 Curiosity Nano website - Kit information latest user guide and design documentationbull AVR128DA48 Curiosity Nano on microchipDIRECT - Purchase this kit on microchipDIRECT

AVR128DA48 Curiosity NanoGetting Started

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 6

3 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 Atmel StudioMicrochip MPLABreg X IDE 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)

31 On-Board Debugger OverviewAVR128DA48 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 AVR128DA48 in Atmel StudioMicrochip MPLABreg X IDEbull A mass storage device that allows drag-and-drop programming of the AVR128DA48bull A virtual serial port (CDC) that is connected to a Universal Asynchronous ReceiverTransmitter (UART) on the

AVR128DA48 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 AVR128DA48 Curiosity Nano BoardThe table below shows how the LED is controlled in different operation modes

Table 3-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

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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 7

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

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

3121 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 3-1 CDC Connection

Target MCU

UART TX

UART RX

Debugger

USBCDC RX

CDC TX

PCTerminalSoftware

TargetReceive

TargetSend

TerminalReceive

TerminalSend

Info  As shown in Figure 3-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

3122 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 Atmel StudioMicrochip MPLABreg X IDE

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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 8

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

3123 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

3124 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 the DTR signal will not disable the level shifters but disable the receiver so no further data will bestreamed to the host Data packets that are already queued up for sending to the target will continue to be sent outbut no further data will be accepted

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

3125 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=

The maximum message length is 50 characters ndash all remaining data in the frame are ignored

The default baud rate used in this mode is 9600 bps but if the CDC is already active or has been configured thepreviously used baud rate still applies

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 9

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 because the on-board debugger buffers framesand not bytes A maximum of four 64-byte frames can be active at any time The on-board debugger will throttle theincoming frames 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

313 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 supportbull Write access for programming Intelreg HEX formatted files into the target devicersquos memorybull Write access for simple text files for utility purposes

3131 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 wayfulfill the 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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 10

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

3132 Fuse Bytes

Fuse Bytes (AVRreg MCU Targets)When doing drag-and-drop programming the debugger masks out fuse bits that attempt to disable Unified Programand Debug Interface (UPDI) This means that the UPDI pin cannot be used in its reset or GPIO modes selecting oneof the alternative functions on the UPDI pin would render the device inaccessible without using an external debuggercapable of high-voltage UPDI activation

3133 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 useAtmel StudioMicrochip MPLABreg X IDE

Enabling CRC Check in FusesIt is not advisable to enable the CRC check in the target devicersquos fuses when using drag-and-drop programming Thisbecause 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 Atmel StudioMicrochip MPLABreg

X IDE which will automatically clear the CRC fuses after erasing

3134 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

Table 3-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 ldquoCDC Override Moderdquo

CMDRESET Resets the target device by entering Programming mode and then exitingProgramming mode immediately thereafter Exact timing can vary according tothe programming interface of the target device (Debugger firmware v116 ornewer)

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

CMD0V Powers down the target device by disabling the target supply regulator Ifexternal power is provided this has no effect (Debugger firmware v116 ornewer)

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

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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 11

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

314 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 Atmel StudioMicrochip MPLABreg X IDE

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

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

3141 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 VisualizerFigure 3-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

3142 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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 12

32 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 3-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

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 3-3 Curiosity Nano Standard Pinout

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

33 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 AVR128DA48 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 AVR128DA48Curiosity Nano

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 13

Figure 3-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

331 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 implementationis 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 AVR128DA48microcontroller The voltage limits configured in the on-board debugger on AVR128DA48 Curiosity Nano are18-51V

Info  The target voltage is set to 33V when the board is manufactured It can be changed throughMPLAB X IDE project properties and in the Atmel Studio device programming dialog Any change to thetarget voltage is persistent even through 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 Atmel StudioMicrochip MPLABreg X IDE are not immediatelyapplied to the board The new voltage setting is applied to the board when the debugger is accessed inany way like pushing the Refresh 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 only supports settings of 00V 33V and 50V See section 3134 Special Commands forfurther details

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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 14

Figure 3-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

Info  If the external voltage is lower than the monitoring window lower limit (target voltage setting - 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

332 External SupplyAVR128DA48 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 AVR128DA48 is 18-55V Applying a higher voltage may cause permanent damage to theboard

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 15

Info  If an external voltage is applied without pulling the VOFF pin low and an external supply pulls thevoltage lower than the monitoring window 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 AVR128DA48 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

333 VBUS Output PinAVR128DA48 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

Figure 3-6 VBUS Output Voltage vs Current

334 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 between 44V to 525V) and thevoltage drop over the MIC5353 regulator at a given voltage setting and current consumption If a higher outputvoltage is needed use a USB power source that can provide a higher input voltage or use an external voltage supplyon the VTG pin

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 16

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 differ more than 100 mV overunder the voltage setting it will be detected by the on-board debugger and theinternal voltage regulator will be shut down To fix this issue remove the applied voltage from the VTG pin and theon-board debugger will enable the on-board voltage regulator when the new condition is detected Note that the PSLED will be blinking rapidly if the target voltage is below 100 mV of the setting but will be lit normally when it is higherthan 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 really a special case of the issue mentioned above Removethe short-circuit and the on-board debugger will re-enable the on-board target voltage regulator

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

34 Low Power MeasurementPower to the AVR128DA48 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 AVR128DA48 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 AVR128DA48

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 17

Figure 3-7 Target Power Strap

Target Power strap (top side)

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 are tri-state to prevent leakage All IOs connected to the on-boarddebugger are listed in 4241 On-Board Debugger Connections To prevent any leakage to the on-boardlevel shifters they can be disconnected completely as described in 74 Disconnecting the On-boardDebugger

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

351 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

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

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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 18

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

Figure 3-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

353 Hardware ModificationsThe on-board debugger is connected to the AVR128DA48 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 AVR128DA48 from the on-board debugger

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 19

Figure 3-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 AVR128DA48 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 AVR128DA48

354 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 33 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

AVR128DA48 Curiosity Nano has a pull-up resistor R200 connected to its RESET signal (DBG3) The location ofthe pull-up resistor is shown in the 72 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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 20

Figure 3-10 Curiosity Nano Standard Pinout

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

Table 3-4 Programming and Debugging Interfaces

Curiosity Nano Pin UPDI ICSPtrade SWD

DBG0 UPDI DATA SWDIO

DBG1 - CLK SWCLK

DBG2 - - -

DBG3 - MCLR RESET

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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 21

Figure 3-11 Connecting the MPLABreg PICkittrade 4 In-Circuit DebuggerProgrammer to AVR128DA48 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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 22

Figure 3-12 Connecting the Atmel-ICE to AVR128DA48 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 Atmel StudioMicrochip MPLABreg XIDE or mass storage programming while the external tool is active

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 23

4 Hardware User Guide

41 Connectors

411 AVR128DA48 Curiosity Nano PinoutAll the AVR128DA48 IO pins are accessible at the edge connectors on the board The image below shows the boardpinout

Figure 4-1 AVR128DA48 Curiosity Nano Pinout

USB

DEBUGGER

AVR128DA48

SW0

LED0

PS LEDNC

NC

ID

ID

CDC RX

CDCRXUSART1 TXPC0

CDC TX

CDCTXUSART1 RXPC1

DBG1

DBG

1PC6LED0

DBG2

DBG

2PC7SW0

PA0

PA0USART0 TXPTC XY0

PA1PA

1USART0 RXPTC XY1

PC2PC2TWI0 SDA

PC3

PC3TWI0 SCL

PA4

PA4SPI0 MOSIPTC XY4

PA5

PA5SPI0 MISOPTC XY5

PA6

PA6SPI0 SCKPTC XY6

PA7

PA7SPI0 SSPTC XY7

GND

GN

D

PF4

PF4USART2 TXPTC XY36

PF5

PF5USART2 RXPTC XY37

PF2

PF2PTC XY34

PF3

PF3PTC XY35

PB0

PB0PTC XY8

PB1

PB1PTC XY9

PB2

PB2PTC XY10

PB3

PB3PTC XY11

GND

GN

D

PC0

PC0USART1 TXCDC RX

PC1

PC1USART1 RXCDC TX

PC6

PC6LED0

PC7

PC7SW0

VBUS

VBU

S

VOFF

VO

FFDBG3

DBG

3 PF6

DBG0D

BG0 UPDI

GND

GN

D

VTG

VTG

PD7

PD7 AIN7 PTC XY23

PD6

PD6 AIN6 PTC XY22

PD2

PD2 AIN2 PTC XY18 TCA0 WO2

PD1

PD1 AIN1 PTC XY17 TCA0 WO1

PD0

PD0 AIN0 PTC XY16 TCA0 WO0

PD5

PD5 AIN5 PTC XY21

PD4

PD4 AIN4 PTC XY20

PD3

PD3 AIN3 PTC XY19

GND

GN

D

PE3

PE3 PTC XY27

PE2

PE2 PTC XY26

PE1

PE1 PTC XY25

PE0

PE0 PTC XY24

PA3

PA3 PTC XY3

PA2

PA2 PTC XY2

PB5

PB5 PTC XY13

PB4

PB4 PTC XY12

GND

GN

D

PC5

PC5

PC4

PC4

(PF1)

(PF1) (PTC XY33) XTAL32K2

(PF0)

(PF0) (PTC XY32) XTAL32K1

DEBUGGERAVR128DA48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

Touch

Shared pin

AVR128DA48Curiosity Nano

412 Using Pin HeadersThe edge connector footprint on AVR128DA48 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

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

AVR128DA48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 24

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

42 Peripherals

421 LEDThere is one yellow user LED available on the AVR128DA48 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 4-1 LED Connection

AVR128DA48 Pin Function Shared Functionality

PC6 Yellow LED0 Edge connector On-board debugger

422 Mechanical SwitchThe AVR128DA48 Curiosity Nano has one mechanical switch This is a generic user-configurable switch When theswitch 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 PC7

Table 4-2 Mechanical Switch

AVR128DA48 Pin Description Shared Functionality

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

423 Crystal

The AVR128DA48 Curiosity Nano board has a 32768 kHz crystal mounted

The AVR128DA48 is connected to the crystal by default but the GPIOs are also routed to the edge connectorthrough two solder points The two IO lines routed to the edge connector are disconnected by default to reduce thechance of an external signal causing contention with the crystal and to remove excessive capacitance on the linesTo use PF0 and PF1 as GPIO some hardware modifications are required

bull Disconnect the crystal by cutting the two straps on the top side of the board next to the crystal (J210 J211) Thecrystal 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 (J207 J208)

The cut straps and solder points can be seen in Figure 4-2

Table 4-3 Crystal Connections

AVR128DA48 Pin Function Shared Functionality

PF0 TOSC1 (Crystal input) Edge connector

PF1 TOSC2 (Crystal output) Edge connector

AVR128DA48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 25

Figure 4-2 Crystal Connection and Cut Straps

424 On-Board Debugger ImplementationAVR128DA48 Curiosity Nano features an on-board debugger that can be used to program and debug theAVR128DA48 using UPDI The on-board debugger also includes a virtual serial port (CDC) interface over UART anddebug GPIO Atmel StudioMicrochip MPLABreg X IDE 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

4241 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 31 On-Board DebuggerOverview

Table 4-4 On-Board Debugger Connections

AVR128DA48Pin

Debugger Pin Function Shared Functionality

RF1 CDC TX UART RX (AVR128DA48 RX line) Edge connector

RF0 CDC RX UART TX (AVR128DA48 TX line) Edge connector

UPDI DBG0 UPDI Edge connector

PC6 DBG1 GPIO1 Edge connector LED

PC7 DBG2 GPIO0 Edge connector Mechanical Switch

PF6 DBG3 RESET Edge connector

AVR128DA48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 26

5 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

51 Identifying Product ID and RevisionThe revision and product identifier of the AVR128DA48 Curiosity Nano Board can be found in two ways Either byutilizing the Atmel StudioMicrochip MPLABreg X IDE Kit Window or by looking at the sticker on the bottom side of thePCB

By connecting AVR128DA48 Curiosity Nano to a computer with Atmel StudioMicrochip MPLABreg X IDE running theKit Window will pop up The first six digits of the serial number which is listed under kit information contain theproduct identifier 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 AVR128DA48 Curiosity Nano is A09-3280

52 Revision 3Revision 3 is the initially released revision There are no known issues with this revision

AVR128DA48 Curiosity NanoHardware Revision History and Known Issues

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 27

6 Document Revision HistoryDoc rev Date Comment

A 032020 Initial document release

AVR128DA48 Curiosity NanoDocument Revision History

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 28

7 Appendix

71 SchematicFigure 7-1 AVR128DA48 Curiosity Nano Schematic

11

22

33

44

55

66

77

88

DD

CC

BB

AA

2 of

4

AVR1

28D

A48

Curio

sity

Nan

o

102

320

19AV

R128

DA

48_C

urio

sity

_Nan

o_Ta

rget

_MCU

Sch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA R

evisi

on

File

PC

B N

umbe

rPC

B Re

visio

n

Des

igne

d wi

th

Dra

wn

By

PB Shee

t Titl

eTa

rget

MCU

Engi

neer

A

H T

F

A08

-300

23

Size

A3

A09

-328

03

Page

D

ateA

ltium

com

GN

DV

CC_T

ARG

ET

100n

C201

GN

D

PA5_

SPI0

_MIS

OPA

6_SP

I0_S

CKPA

7_SP

I0_S

SPB

0_U

ART

3_TX

PB1_

UA

RT3_

RXPB

2PB

3PB

4PB

5PC

0_U

ART

1_TX

PC1_

UA

RT1_

RXPC

2_I2

C0_S

DA

PC3_I2C0_SCL

PC4PC5PC6_LED0_GPIO1PC7_SW0_GPIO0PD0_AIN0_WO0PD1_AIN1_WO1PD2_AIN2_WO2PD3_AIN3PD4_AIN4

PA3

PA1_UART0_RX

UPDI

PF5_UART2_RX

PF3

PF2

PF1_

TOSC

2PF

0_TO

SC1

PE3

PE2

PE1

PE0

PD5_

AIN

5PD

6_A

IN6

PD7_

AIN

7

GN

D

VCC

_TA

RGET

100n

C202

GN

DV

CC_T

ARG

ET10

0n

C200

PF1_TOSC2

PF0_TOSC1

PA2

PA0_UART0_TX

PF4_UART2_TX

PA4_SPI0_MOSI

GN

D

PA7_

SPI0

_SS

PA6_

SPI0

_SCK

PA5_

SPI0

_MIS

OPA

4_SP

I0_M

OSI

PA3

PA2

PA1_

UA

RT0_

RXPA

0_U

ART

0_TX

PB0_

UA

RT3_

TXPB

1_U

ART

3_RX

PB2

PB3

PB4

PB5

PD7_

AIN

7PD

6_A

IN6

PF5_

UA

RT2_

RXPF

4_U

ART

2_TX

PF3

PF2

32kH

z C

ryst

al

1kR203

USE

R L

ED

VCC

_TA

RGET

PF6_RESET

PC7_SW0_GPIO0

PC6_LED0_GPIO1

GN

D

USE

R B

UTT

ON

PE3

PE2

PE1

PE0

PC0_

UA

RT1_

TXPC

1_U

ART

1_RX

PC2_

I2C0

_SD

APC

3_I2

C0_S

CL

PC4

PC5

PC6_

LED

0_G

PIO

1PC

7_SW

0_G

PIO

0

1kR202

YELLOWLEDSML-D12Y1WT86

2 1D200

TS604VM1-035CR13

4 2

SW20

0

GN

DV

CC_E

DG

E

GN

DG

ND

GN

DG

ND

UPD

IPF

6_RE

SET

J207

J208

J209

BLM

18PG

471S

N1

L200

AVR1

28D

A48

22u

FC2

05

VCC

_ED

GE

GN

D

DBG0

CDC_

UART

TXRXU

ART

CDC_TXCDC_RX

DBG2

DBG1

DBG3

DBG2

DEB

UG

GER

CO

NN

ECTI

ON

S

DBG1

DBG3DBG0

VOFF

ID_S

YS

ID_SYS

VOFF

TAR

GET

BU

LK

VCC

_TA

RGET

RES

ET P

ull

VBU

S

CDC

RX3

CDC

TX4

DBG

15

DBG

26

0 TX

71

RX8

2 SD

A9

3 SC

L10

4 M

OSI

115

MIS

O12

6 SC

K13

7 SS

14G

ND

150

(TX

)16

1 (R

X)

172

183

190

20

GN

D24

DBG

354

DBG

053

GN

D52

VCC

51

PWM

346

AD

C 2

45A

DC

144

AD

C 0

43G

ND

42

438

434

GN

D33

AD

C 7

50A

DC

649

AD

C 5

48PW

M 4

47

DEB

UG

GER

TARG

ET

ID2

VO

FF55

121

222

323

025

126

227

328

429

530

631

732

535

636

737

539

640

741

RESE

RVED

1V

BUS

56

CNA

NO

56-p

in e

dge

conn

ecto

r

J200

J201

J203

J205

J206

J202

J204

PF1

PF0

PF1_

TOSC

2PF

0_TO

SC1

NC

J211

J210

XOUT

XIN

47kR200

AVR

128D

A48

UPD

I

GPI

O1

GPI

O0

RESE

T

DBG

0

DBG

1

DBG

2

DBG

3

Deb

ugge

r

CD

C T

X

CD

C R

X

UA

RT1

RX

UA

RT1

TX

VTG

18V

- 5

5VPC6

PC7

PF6

UPD

I

PC0

PC1

Nam

ePi

n

PA5

1PA

62

PA7

3PB

04

PB1

5PB

26

PB3

7PB

48

PB5

9PC

010

PC1

11PC

212

PC3 13VDD 14GND 15PC4 16PC5 17PC6 18PC7 19PD0 20PD1 21PD2 22PD3 23PD4 24

PD5

25PD

626

PD7

27AV

DD28

GND

29PE

030

PE1

31PE

232

PE3

33XT

AL32

K1P

F034

XTAL

32K2

PF1

35PF

236

PF337 PF438 PF539 PF640 UPDI41 VDD42 GND43 EXTCLKPA044 PA145 PA246 PA347 PA448

AVR1

28D

A48

TQ

FPU

200

PC0_

UA

RT1_

TXPC

1_U

ART

1_RX

PC6_

LED

0_G

PIO

1PC

7_SW

0_G

PIO

0

AVD

D

PD2_

AIN

2_W

O2

PD1_

AIN

1_W

O1

PD0_

AIN

0_W

O0

PD5_

AIN

5PD

4_A

IN4

PD3_

AIN

3

XC2

00

12p

C203

12p

C204

327

68 k

Hz

Crys

tal d

atas

heet

Cc

rysta

l = 9

pFm

ax E

SR =

70k

Ohm

Acc

urac

y plusmn2

0ppm

AVR1

28D

A48

dat

ashe

et

Cxin

= 4

1pF

Cxou

t = 6

0pF

Cl asymp

1( (

14

1pF)

+ (1

60

pF) )

asymp2

44pF

Max

imum

Loa

d =

125

pFM

axim

um E

SR =

80k

Ohm

Estim

ated

Cpc

b =

05p

F

Estim

ated

load

C =

2 (C

crys

tal-

Cpar

a - C

pcb)

C

= 2

(9pF

- 2

44pF

- 0

5pF)

C =

121

2pF

Sele

cted

in d

esig

n af

ter v

erifi

catio

nC=

12p

F12

pF

NO

TE o

n U

ART

CD

C

RXT

X o

n th

e he

ader

den

otes

the

inpu

tout

put d

irect

ion

of th

e sig

nal

resp

ectiv

e to

its

sour

ce

CDC

TX is

out

put f

rom

the

DEB

UG

GER

CD

C RX

is in

put t

o th

e D

EBU

GG

ER

TX is

out

put f

rom

the

TARG

ET d

evic

eRX

is in

put t

o th

e TA

RGET

dev

ice

NO

TE o

n I2

C

No

pull-

ups o

n bo

ard

Pul

l-ups

shou

ld b

e m

ount

ed c

lose

to sl

ave

devi

ce(s

)

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 29

11

22

33

44

55

66

77

88

DD

CC

BB

AA

3 of

4

AVR1

28D

A48

Curio

sity

Nan

o

102

320

19AV

R128

DA

48_C

urio

sity

_Nan

o_D

ebug

gerS

chD

oc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA R

evisi

on

File

PC

B N

umbe

rPC

B Re

visio

n

Des

igne

d wi

th

Dra

wn

By

PB Shee

t Titl

eD

ebug

ger

Engi

neer

A

H T

F

A08

-300

23

Size

A3

A09

-328

03

Page

D

ateA

ltium

com

DEB

UG

GER

USB

MIC

RO

-B C

ON

NEC

TOR

GN

D

USB

D_P

USB

D_N

100n

C107

100n

C108

RXTXU

ART

CDC_

UART

1kR1

07V

CC_P

3V3

SRST

STAT

US_

LED

SHIE

LD

VBU

S

VCC

_P3V

3G

ND

TP10

0

Testp

oint

Arra

y

12

34

56

78

910

TCK

TDO

TMS

Vsu

pTD

IG

ND

TRST

SRST

VTr

efG

ND

J102

GN

D

47u

F

C100

DBG0

DBG

0

21

GRE

EN L

EDSM

L-P1

2MTT

86R

D10

0

VBUS

1D-

2D+

3

GND

5SH

IELD

16

SHIE

LD2

7

ID4

SHIE

LD3

8SH

IELD

49 M

U-M

B014

2AB2

-269

J105

PAD

33

PA00

1PA

012

PA02

3PA

034

GND 10VDDANA 9

PA04

5PA

056

PA06

7PA

078

PA08 11PA09 12PA10 13PA11 14PA14 15PA15 16

PA16

17PA

1718

PA18

19PA

1920

PA22

21US

B_SO

FPA

2322

USB_

DMP

A24

23US

B_DP

PA2

524

PA2725 RESETN26 PA2827 GND28 VDDCORE29 VDDIN30 SWDCLKPA3031 SWDIOPA3132

SAM

D21

E18A

-MU

TU

100

VOUT

1

VOUT

2

GND 3

EN4

VIN

6

NC5

EP 7

MIC

5528

-33

YM

TU

101

VCC

_P3V

3

GN

D

USB

D_P

USB

D_N

GN

D

1uC106

VCC

_MCU

_CO

RE

VCC

_P3V

3

VCC

_P3V

3

22u

FC1

01

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

3V

CC_P

3V3

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

4V

CC_P

3V3

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

5V

CC_P

3V3

GN

D

GN

D GN

D

GN

D

VCC

_ED

GE

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

7V

CC_P

3V3

GN

DDB

G2

DBG

3_CT

RL

S1_0

_TX

S1_1

_RX

S0_2

_TX

DA

CV

TG_A

DC

RESE

RVED

S0_3

_CLK

DBG0_CTRL

CDC_

TX_C

TRL

BOO

T

DEB

UG

GER

PO

WER

STA

TUS

LED

EN1

BYP

6

VOUT

4

GND

2

VIN

3

NCA

DJ5

GND 7

MIC

5353

U10

2

100n

C102

GN

D

GN

D

47kR101

27kR104 G

ND

33k

R106

22u

F

C103 G

ND

1kR1

08

J100

VCC

_LEV

ELV

CC_R

EGU

LATO

R

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

6V

CC_P

3V3

GN

DDB

G1

CDC_

RXCD

C_TX

DBG3

DBG1_CTRL

DEB

UG

GER

REG

ULA

TOR

REG_ENABLE

REG

_EN

ABL

E

47kR103

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

47kR102

47kR105

SWCL

K

GN

D

47kR100 G

ND

DBG

2

S0_0

_RX

DBG

1_CT

RL

DBG

0_CT

RL

DBG

3 O

PEN

DR

AIN

TAR

GET

AD

JUST

ABL

E R

EGU

LATO

R

SRST

DEB

UG

GER

TES

TPO

INT DBG2_CTRL

VO

FFCD

C_RX

_CTR

L

47kR109

DBG

1

CDC_

TX_C

TRL

CDC_

RX_C

TRL

SWCL

K

REG_ADJUST

DBG2_GPIO

DBG

3_CT

RL

DBG

2_CT

RL

UPD

I

UPD

I

GPI

O

GPI

O

RESE

T

Sign

al

DBG

0

DBG

1

DBG

2

DBG

3

ICSP

Inte

rface

DAT

CLK

GPI

O

MCL

R

DBG

3

CD

C T

X

CD

C R

X

UA

RT R

X

UA

RT T

X

UA

RT R

X

UA

RT T

X

TAR

GET

TAR

GET

1kR1

10

VBUS_ADC

1

23

DM

N65

D8L

FBQ

101

VC

C-

-

ID_S

YS

VOFF

1kR112

VCC

_P3V

3

VTG

_AD

CD

AC

MIC

9416

3

VIN

B2VO

UTA1

VIN

A2

ENC2

GND

C1VO

UTB1

U10

8

GN

D

ID_S

YS

VTG

_EN

VTG_EN

VBUS_ADC

SWD

IO

ID_S

YS

TP10

1G

ND

SWD

IO

VO

FF

47kR111 G

ND

ID P

IN

MC3

6213

F100

VCC

_VBU

S

VCC

_VBU

S

VCC

_VBU

S

J101

VCC

_TA

RGET

47k

R113

Prog

ram

min

g co

nnec

tor f

or

fact

ory

prog

ram

min

g of

D

EBU

GG

ER

MIC

5528

Vi

n 2

5V

to 5

5V

Vout

Fix

ed 3

3V

Imax

500

mA

Dro

pout

260

mV

5

00m

A

PTC

Rese

ttabl

e fu

se

Hol

d cu

rrent

500

mA

Trip

cur

rent

100

0mA

Adj

usta

ble

outp

ut a

nd li

mita

tions

- T

he D

EBU

GG

ER c

an a

djus

t the

out

put v

olta

ge o

f the

regu

lato

r bet

wee

n 1

25V

and

51

V to

the

targ

et

- The

vol

tage

out

put i

s lim

ited

by th

e in

put (

USB

) w

hich

can

var

y be

twee

n 4

40V

to 5

25V

- The

leve

l shi

fters

hav

e a

min

imal

vol

tage

leve

l of 1

65V

and

will

lim

it th

e m

inim

um o

pera

ting

volta

ge a

llow

ed fo

r the

ta

rget

to st

ill a

llow

com

mun

icat

ion

- The

MIC

9416

3 ha

s a m

inim

al v

olta

ge le

vel o

f 17

0V a

nd w

ill li

mit

the

min

imum

vol

tage

del

iver

ed to

the

targ

et

- Firm

war

e co

nfig

urat

ion

will

lim

it th

e vo

ltage

rang

e to

be

with

in th

e th

e ta

rget

spec

ifica

tion

R113

is re

quire

d to

pul

l the

Q

101

gate

to a

def

ined

va

lue

whe

n th

e U

100

is no

t po

wer

ed

J100

Cu

t-stra

p us

ed fo

r ful

l sep

arat

ion

of ta

rget

pow

er fr

om th

e le

vel s

hifte

rs a

nd o

n-bo

ard

regu

lato

rs

- For

cur

rent

mea

sure

men

ts us

ing

an e

xter

nal p

ower

supp

ly t

his s

trap

coul

d be

cut

for m

ore

accu

rate

mea

sure

men

ts L

eaka

ge b

ack

thro

ugh

the

switc

h is

in th

e m

icro

am

pere

rang

e

J101

Th

is is

foot

prin

t for

a 1

x2 1

00m

il pi

tch

pin-

head

er th

at c

an b

e us

ed fo

r eas

y cu

rrent

mea

sure

men

t to

the

targ

et m

icro

cont

rolle

r and

the

LED

Bu

tton

To

use

the

foot

prin

t- C

ut th

e tra

ck b

etw

een

the

hole

s an

d m

ount

a p

in-h

eade

r

MIC

5353

Vi

n 2

6V

to 6

VVo

ut 1

25V

to 5

1V

Imax

500

mA

Dro

pout

(typ

ical

) 50

mV

15

0mA

160

mV

5

00m

AA

ccur

acy

2

initi

alTh

erm

al sh

utdo

wn

and

curre

nt li

mit

Max

imum

out

put v

olta

ge is

lim

ited

by th

e in

put v

olta

ge a

nd th

e dr

opou

t vol

tage

in th

e re

gula

tor

(Vm

ax =

Vin

- dr

opou

t)

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 30

72 Assembly DrawingFigure 7-2 AVR128DA48 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

PAC20002 PAC20001 COC200

PAC20102 PAC20101 COC201

PAC20202 PAC20201 COC202

PAC20301 PAC20302 COC203

PAC20401 PAC20402 COC204

PAC20502

PAC20501 COC205

PAD10002 PAD10001 COD100

PAD20001

PAD20002 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

PAJ20701 PAJ20702 PAJ20705 COJ207

PAJ20801 PAJ20802 PAJ20805 COJ208

PAJ20901 PAJ20902 COJ209

PAJ21002 PAJ21001 COJ210

PAJ21102 PAJ21101 COJ211

PAL20002 PAL20001 COL200

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

PAR20002 PAR20001 COR200

PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203

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

PAU200048 PAU200047 PAU200046 PAU200045 PAU200044 PAU200043 PAU200042 PAU200041 PAU200040 PAU200039 PAU200038 PAU200037 PAU200036 PAU200035 PAU200034 PAU200033 PAU200032 PAU200031 PAU200030 PAU200029 PAU200028 PAU200027 PAU200026 PAU200025 PAU200024 PAU200023 PAU200022 PAU200021 PAU200020 PAU200019 PAU200018 PAU200017 PAU200016 PAU200015 PAU200014 PAU200013

PAU200012 PAU200011 PAU200010 PAU20009 PAU20008 PAU20007 PAU20006 PAU20005 PAU20004 PAU20003 PAU20002 PAU20001

COU200

PAXC20001

PAXC20002

COXC200

Figure 7-3 AVR128DA48 Curiosity Nano Assembly Drawing Bottom

ctR

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20002 PAC20001 COC200

PAC20102 PAC20101 COC201

PAC20202 PAC20201 COC202

PAC20301 PAC20302 COC203

PAC20401 PAC20402 COC204

PAC20502

PAC20501 COC205

PAD10002 PAD10001 COD100

PAD20001

PAD20002 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

PAJ20701 PAJ20702 PAJ20705 COJ207

PAJ20801 PAJ20802 PAJ20805 COJ208

PAJ20901 PAJ20902 COJ209

PAJ21002 PAJ21001 COJ210

PAJ21102 PAJ21101 COJ211

PAL20002 PAL20001 COL200

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

PAR20002 PAR20001 COR200

PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203

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

PAU200048 PAU200047 PAU200046 PAU200045 PAU200044 PAU200043 PAU200042 PAU200041 PAU200040 PAU200039 PAU200038 PAU200037 PAU200036 PAU200035 PAU200034 PAU200033 PAU200032 PAU200031 PAU200030 PAU200029 PAU200028 PAU200027 PAU200026 PAU200025 PAU200024 PAU200023 PAU200022 PAU200021 PAU200020 PAU200019 PAU200018 PAU200017 PAU200016 PAU200015 PAU200014 PAU200013

PAU200012 PAU200011 PAU200010 PAU20009 PAU20008 PAU20007 PAU20006 PAU20005 PAU20004 PAU20003 PAU20002 PAU20001

COU200

PAXC20001

PAXC20002

COXC200

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 31

73 Curiosity Nano Base for Click boardstrade

Figure 7-4 AVR128DA48 Curiosity Nano Pinout Mapping

USB

DEB

UG

GER

AVR1

28D

A48

SW0

LED

0

PS L

EDNC

NC

ID

ID

CDC RX

CDCRX

USART1 TX

PC0

CDC TX

CDCTX

USART1 RX

PC1

DBG1

DBG1

PC6

LED0

DBG2

DBG2

PC7

SW0

PA0

PA0

USART0 TX

PTC XY0

PA1

PA1

USART0 RX

PTC XY1

PC2

PC2

TWI0 SDA

PC3

PC3

TWI0 SCL

PA4

PA4

SPI0 MOSI

PTC XY4

PA5

PA5

SPI0 MISO

PTC XY5

PA6

PA6

SPI0 SCK

PTC XY6

PA7

PA7

SPI0 SS

PTC XY7

GND

GND

PF4

PF4

USART2 TX

PTC XY36

PF5

PF5

USART2 RX

PTC XY37

PF2

PF2

PTC XY34

PF3

PF3

PTC XY35

PB0

PB0

PTC XY8

PB1

PB1

PTC XY9

PB2

PB2

PTC XY10

PB3

PB3

PTC XY11

GND

GND

PC0

PC0

USART1 TX

CDC RX

PC1

PC1

USART1 RX

CDC TX

PC6

PC6

LED0

PC7

PC7

SW0

VBUS

VBUS

VOFF

VOFF

DBG3

DBG3

PF6

DBG0

DBG0

UPDI

GND

GND

VTG

VTG

PD7

PD7

AIN7

PTC XY23

PD6

PD6

AIN6

PTC XY22

PD2

PD2

AIN2

PTC XY18

TCA0 WO2

PD1

PD1

AIN1

PTC XY17

TCA0 WO1

PD0

PD0

AIN0

PTC XY16

TCA0 WO0

PD5

PD5

AIN5

PTC XY21

PD4

PD4

AIN4

PTC XY20

PD3

PD3

AIN3

PTC XY19

GND

GND

PE3

PE3

PTC XY27

PE2

PE2

PTC XY26

PE1

PE1

PTC XY25

PE0

PE0

PTC XY24

PA3

PA3

PTC XY3

PA2

PA2

PTC XY2

PB5

PB5

PTC XY13

PB4

PB4

PTC XY12

GND

GND

PC5

PC5

PC4

PC4

(PF1)

(PF1)

(PTC XY33)

XTAL32K2

(PF0)

(PF0)

(PTC XY32)

XTAL32K1

DEB

UG

GER

AVR1

28D

A48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

Touch

Shared pin

AVR1

28D

A48

Curio

sity

Nan

o

1

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

2

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

3

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

Xpl

aine

d Pr

o Ex

tens

ion

EXT1

12

1920

Curio

sity

Nan

o Ba

sefo

r clic

k bo

ards

TM

PD3

PD0

PD7

PD6

PA7

PA1

PA6

PA0

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

PD4

PD1

PF3

PF2

PE2

PF5

PA6

PF4

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

PD5

PD2

PE1

PE0

PE3

PA1

PA6

PA0

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

ID

GND

PD4

PD5

PF3

PE1

PD1

PD2

PF2

PE3

PC2

PC3

PF5

PF4

PE2

PA4

PA5

PA6

GND

+33V

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 32

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

The block diagram below shows all connections between the debugger and the AVR128DA48 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 7-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 7-6 Details about connecting an external debugger are described in 36 Connecting ExternalDebuggers

Figure 7-5  On-Board Debugger Connections Block Diagram

DEB

UG

GER

TARGETLevel-Shift

PA04PA06PA07PA08PA16PA00PA01

USB

DIR x 5

VCC_P3V3

VBUS

VCC

_LEV

EL

VCC

_TA

RGET

DBG0DBG1DBG2DBG3CDC 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

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 33

Figure 7-6 On-Board Debugger Connection Cut Straps

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

75 Getting Started with IARIAR Embedded Workbenchreg for AVRreg is a proprietary high-efficiency compiler not based on GCC Programming anddebugging of AVR128DA48 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 7-73 In the category Debugger select the Setup tab Select Atmel-ICE as the driver as shown in Figure 7-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 7-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

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 34

Figure 7-7 Select Target Device

Figure 7-8 Select Debugger

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 35

Figure 7-9 Configure Interface

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 36

The Microchip WebsiteMicrochip provides online support via our website at httpwwwmicrochipcom This website is used to make filesand information 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 ServiceMicrochiprsquos 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 httpwwwmicrochipcompcn and follow the registration instructions

Customer SupportUsers 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 httpwwwmicrochipcomsupport

Microchip Devices Code Protection FeatureNote the following details of the code protection feature on Microchip devices

bull Microchip products meet the specification contained in their particular Microchip Data Sheetbull Microchip believes that its family of products is one of the most secure families of its kind on the market today

when used in the intended manner and under normal conditionsbull There are dishonest and possibly illegal methods used to breach the code protection feature All of these

methods to our knowledge require using the Microchip products in a manner outside the operatingspecifications contained in Microchiprsquos Data Sheets Most likely the person doing so is engaged in theft ofintellectual property

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

protection does not mean that we are guaranteeing the product as ldquounbreakablerdquo

Code protection is constantly evolving We at Microchip are committed to continuously improving the code protectionfeatures of our products Attempts to break Microchiprsquos code protection feature may be a violation of the DigitalMillennium Copyright Act If such acts allow unauthorized access to your software or other copyrighted work youmay have a right to sue for relief under that Act

Legal NoticeInformation contained in this publication regarding device applications and the like is provided only for yourconvenience and may be superseded by updates It is your responsibility to ensure that your application meets with

AVR128DA48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 37

your specifications MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHEREXPRESS OR IMPLIED WRITTEN OR ORAL STATUTORY OR OTHERWISE RELATED TO THE INFORMATIONINCLUDING BUT NOT LIMITED TO ITS CONDITION QUALITY PERFORMANCE MERCHANTABILITY ORFITNESS FOR PURPOSE Microchip disclaims all liability arising from this information and its use Use of Microchipdevices in life support andor safety applications is entirely at the buyerrsquos risk and the buyer agrees to defendindemnify and hold harmless Microchip from any and all damages claims suits or expenses resulting from suchuse No licenses are conveyed implicitly or otherwise under any Microchip intellectual property rights unlessotherwise stated

TrademarksThe 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-5760-2

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

AVR128DA48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 38

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupporthttpwwwmicrochipcomsupportWeb AddresshttpwwwmicrochipcomAtlantaDuluth 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 DS50002971A-page 39

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Kit Overview
      • 2 Getting Started
        • 21 Quick Start
        • 22 Design Documentation and Relevant Links
          • 3 Curiosity Nano
            • 31 On-Board Debugger Overview
              • 311 Debugger
              • 312 Virtual Serial Port (CDC)
                • 3121 Overview
                • 3122 Operating System Support
                • 3123 Limitations
                • 3124 Signaling
                • 3125 Advanced Use
                  • 313 Mass Storage Device
                    • 3131 Mass Storage Device Implementation
                    • 3132 Fuse Bytes
                    • 3133 Limitations of Drag-and-Drop Programming
                    • 3134 Special Commands
                      • 314 Data Gateway Interface (DGI)
                        • 3141 Debug GPIO
                        • 3142 Timestamping
                            • 32 Curiosity Nano Standard Pinout
                            • 33 Power Supply
                              • 331 Target Regulator
                              • 332 External Supply
                              • 333 VBUS Output Pin
                              • 334 Power Supply Exceptions
                                • 34 Low Power Measurement
                                • 35 Programming External Microcontrollers
                                  • 351 Supported Devices
                                  • 352 Software Configuration
                                  • 353 Hardware Modifications
                                  • 354 Connecting to External Microcontrollers
                                    • 36 Connecting External Debuggers
                                      • 4 Hardware User Guide
                                        • 41 Connectors
                                          • 411 AVR128DA48 Curiosity Nano Pinout
                                          • 412 Using Pin Headers
                                            • 42 Peripherals
                                              • 421 LED
                                              • 422 Mechanical Switch
                                              • 423 Crystal
                                              • 424 On-Board Debugger Implementation
                                                • 4241 On-Board Debugger Connections
                                                  • 5 Hardware Revision History and Known Issues
                                                    • 51 Identifying Product ID and Revision
                                                    • 52 Revision 3
                                                      • 6 Document Revision History
                                                      • 7 Appendix
                                                        • 71 Schematic
                                                        • 72 Assembly Drawing
                                                        • 73 Curiosity Nano Base for Click boardstrade
                                                        • 74 Disconnecting the On-board Debugger
                                                        • 75 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: AVR128DA48 Curiosity Nano User Guide - Microchip Technologyww1.microchip.com/downloads/en/DeviceDoc/AVR128DA48... · 2020-03-19 · AVR128DA48 Curiosity Nano AVR128DA48 Curiosity

3 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 Atmel StudioMicrochip MPLABreg X IDE 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)

31 On-Board Debugger OverviewAVR128DA48 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 AVR128DA48 in Atmel StudioMicrochip MPLABreg X IDEbull A mass storage device that allows drag-and-drop programming of the AVR128DA48bull A virtual serial port (CDC) that is connected to a Universal Asynchronous ReceiverTransmitter (UART) on the

AVR128DA48 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 AVR128DA48 Curiosity Nano BoardThe table below shows how the LED is controlled in different operation modes

Table 3-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

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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 7

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

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

3121 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 3-1 CDC Connection

Target MCU

UART TX

UART RX

Debugger

USBCDC RX

CDC TX

PCTerminalSoftware

TargetReceive

TargetSend

TerminalReceive

TerminalSend

Info  As shown in Figure 3-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

3122 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 Atmel StudioMicrochip MPLABreg X IDE

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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 8

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

3123 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

3124 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 the DTR signal will not disable the level shifters but disable the receiver so no further data will bestreamed to the host Data packets that are already queued up for sending to the target will continue to be sent outbut no further data will be accepted

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

3125 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=

The maximum message length is 50 characters ndash all remaining data in the frame are ignored

The default baud rate used in this mode is 9600 bps but if the CDC is already active or has been configured thepreviously used baud rate still applies

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 9

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 because the on-board debugger buffers framesand not bytes A maximum of four 64-byte frames can be active at any time The on-board debugger will throttle theincoming frames 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

313 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 supportbull Write access for programming Intelreg HEX formatted files into the target devicersquos memorybull Write access for simple text files for utility purposes

3131 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 wayfulfill the 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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 10

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

3132 Fuse Bytes

Fuse Bytes (AVRreg MCU Targets)When doing drag-and-drop programming the debugger masks out fuse bits that attempt to disable Unified Programand Debug Interface (UPDI) This means that the UPDI pin cannot be used in its reset or GPIO modes selecting oneof the alternative functions on the UPDI pin would render the device inaccessible without using an external debuggercapable of high-voltage UPDI activation

3133 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 useAtmel StudioMicrochip MPLABreg X IDE

Enabling CRC Check in FusesIt is not advisable to enable the CRC check in the target devicersquos fuses when using drag-and-drop programming Thisbecause 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 Atmel StudioMicrochip MPLABreg

X IDE which will automatically clear the CRC fuses after erasing

3134 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

Table 3-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 ldquoCDC Override Moderdquo

CMDRESET Resets the target device by entering Programming mode and then exitingProgramming mode immediately thereafter Exact timing can vary according tothe programming interface of the target device (Debugger firmware v116 ornewer)

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

CMD0V Powers down the target device by disabling the target supply regulator Ifexternal power is provided this has no effect (Debugger firmware v116 ornewer)

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

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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 11

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

314 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 Atmel StudioMicrochip MPLABreg X IDE

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

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

3141 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 VisualizerFigure 3-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

3142 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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 12

32 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 3-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

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 3-3 Curiosity Nano Standard Pinout

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

33 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 AVR128DA48 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 AVR128DA48Curiosity Nano

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 13

Figure 3-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

331 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 implementationis 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 AVR128DA48microcontroller The voltage limits configured in the on-board debugger on AVR128DA48 Curiosity Nano are18-51V

Info  The target voltage is set to 33V when the board is manufactured It can be changed throughMPLAB X IDE project properties and in the Atmel Studio device programming dialog Any change to thetarget voltage is persistent even through 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 Atmel StudioMicrochip MPLABreg X IDE are not immediatelyapplied to the board The new voltage setting is applied to the board when the debugger is accessed inany way like pushing the Refresh 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 only supports settings of 00V 33V and 50V See section 3134 Special Commands forfurther details

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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 14

Figure 3-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

Info  If the external voltage is lower than the monitoring window lower limit (target voltage setting - 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

332 External SupplyAVR128DA48 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 AVR128DA48 is 18-55V Applying a higher voltage may cause permanent damage to theboard

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 15

Info  If an external voltage is applied without pulling the VOFF pin low and an external supply pulls thevoltage lower than the monitoring window 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 AVR128DA48 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

333 VBUS Output PinAVR128DA48 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

Figure 3-6 VBUS Output Voltage vs Current

334 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 between 44V to 525V) and thevoltage drop over the MIC5353 regulator at a given voltage setting and current consumption If a higher outputvoltage is needed use a USB power source that can provide a higher input voltage or use an external voltage supplyon the VTG pin

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 16

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 differ more than 100 mV overunder the voltage setting it will be detected by the on-board debugger and theinternal voltage regulator will be shut down To fix this issue remove the applied voltage from the VTG pin and theon-board debugger will enable the on-board voltage regulator when the new condition is detected Note that the PSLED will be blinking rapidly if the target voltage is below 100 mV of the setting but will be lit normally when it is higherthan 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 really a special case of the issue mentioned above Removethe short-circuit and the on-board debugger will re-enable the on-board target voltage regulator

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

34 Low Power MeasurementPower to the AVR128DA48 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 AVR128DA48 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 AVR128DA48

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 17

Figure 3-7 Target Power Strap

Target Power strap (top side)

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 are tri-state to prevent leakage All IOs connected to the on-boarddebugger are listed in 4241 On-Board Debugger Connections To prevent any leakage to the on-boardlevel shifters they can be disconnected completely as described in 74 Disconnecting the On-boardDebugger

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

351 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

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

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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 18

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

Figure 3-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

353 Hardware ModificationsThe on-board debugger is connected to the AVR128DA48 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 AVR128DA48 from the on-board debugger

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 19

Figure 3-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 AVR128DA48 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 AVR128DA48

354 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 33 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

AVR128DA48 Curiosity Nano has a pull-up resistor R200 connected to its RESET signal (DBG3) The location ofthe pull-up resistor is shown in the 72 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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 20

Figure 3-10 Curiosity Nano Standard Pinout

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

Table 3-4 Programming and Debugging Interfaces

Curiosity Nano Pin UPDI ICSPtrade SWD

DBG0 UPDI DATA SWDIO

DBG1 - CLK SWCLK

DBG2 - - -

DBG3 - MCLR RESET

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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 21

Figure 3-11 Connecting the MPLABreg PICkittrade 4 In-Circuit DebuggerProgrammer to AVR128DA48 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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 22

Figure 3-12 Connecting the Atmel-ICE to AVR128DA48 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 Atmel StudioMicrochip MPLABreg XIDE or mass storage programming while the external tool is active

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 23

4 Hardware User Guide

41 Connectors

411 AVR128DA48 Curiosity Nano PinoutAll the AVR128DA48 IO pins are accessible at the edge connectors on the board The image below shows the boardpinout

Figure 4-1 AVR128DA48 Curiosity Nano Pinout

USB

DEBUGGER

AVR128DA48

SW0

LED0

PS LEDNC

NC

ID

ID

CDC RX

CDCRXUSART1 TXPC0

CDC TX

CDCTXUSART1 RXPC1

DBG1

DBG

1PC6LED0

DBG2

DBG

2PC7SW0

PA0

PA0USART0 TXPTC XY0

PA1PA

1USART0 RXPTC XY1

PC2PC2TWI0 SDA

PC3

PC3TWI0 SCL

PA4

PA4SPI0 MOSIPTC XY4

PA5

PA5SPI0 MISOPTC XY5

PA6

PA6SPI0 SCKPTC XY6

PA7

PA7SPI0 SSPTC XY7

GND

GN

D

PF4

PF4USART2 TXPTC XY36

PF5

PF5USART2 RXPTC XY37

PF2

PF2PTC XY34

PF3

PF3PTC XY35

PB0

PB0PTC XY8

PB1

PB1PTC XY9

PB2

PB2PTC XY10

PB3

PB3PTC XY11

GND

GN

D

PC0

PC0USART1 TXCDC RX

PC1

PC1USART1 RXCDC TX

PC6

PC6LED0

PC7

PC7SW0

VBUS

VBU

S

VOFF

VO

FFDBG3

DBG

3 PF6

DBG0D

BG0 UPDI

GND

GN

D

VTG

VTG

PD7

PD7 AIN7 PTC XY23

PD6

PD6 AIN6 PTC XY22

PD2

PD2 AIN2 PTC XY18 TCA0 WO2

PD1

PD1 AIN1 PTC XY17 TCA0 WO1

PD0

PD0 AIN0 PTC XY16 TCA0 WO0

PD5

PD5 AIN5 PTC XY21

PD4

PD4 AIN4 PTC XY20

PD3

PD3 AIN3 PTC XY19

GND

GN

D

PE3

PE3 PTC XY27

PE2

PE2 PTC XY26

PE1

PE1 PTC XY25

PE0

PE0 PTC XY24

PA3

PA3 PTC XY3

PA2

PA2 PTC XY2

PB5

PB5 PTC XY13

PB4

PB4 PTC XY12

GND

GN

D

PC5

PC5

PC4

PC4

(PF1)

(PF1) (PTC XY33) XTAL32K2

(PF0)

(PF0) (PTC XY32) XTAL32K1

DEBUGGERAVR128DA48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

Touch

Shared pin

AVR128DA48Curiosity Nano

412 Using Pin HeadersThe edge connector footprint on AVR128DA48 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

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

AVR128DA48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 24

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

42 Peripherals

421 LEDThere is one yellow user LED available on the AVR128DA48 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 4-1 LED Connection

AVR128DA48 Pin Function Shared Functionality

PC6 Yellow LED0 Edge connector On-board debugger

422 Mechanical SwitchThe AVR128DA48 Curiosity Nano has one mechanical switch This is a generic user-configurable switch When theswitch 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 PC7

Table 4-2 Mechanical Switch

AVR128DA48 Pin Description Shared Functionality

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

423 Crystal

The AVR128DA48 Curiosity Nano board has a 32768 kHz crystal mounted

The AVR128DA48 is connected to the crystal by default but the GPIOs are also routed to the edge connectorthrough two solder points The two IO lines routed to the edge connector are disconnected by default to reduce thechance of an external signal causing contention with the crystal and to remove excessive capacitance on the linesTo use PF0 and PF1 as GPIO some hardware modifications are required

bull Disconnect the crystal by cutting the two straps on the top side of the board next to the crystal (J210 J211) Thecrystal 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 (J207 J208)

The cut straps and solder points can be seen in Figure 4-2

Table 4-3 Crystal Connections

AVR128DA48 Pin Function Shared Functionality

PF0 TOSC1 (Crystal input) Edge connector

PF1 TOSC2 (Crystal output) Edge connector

AVR128DA48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 25

Figure 4-2 Crystal Connection and Cut Straps

424 On-Board Debugger ImplementationAVR128DA48 Curiosity Nano features an on-board debugger that can be used to program and debug theAVR128DA48 using UPDI The on-board debugger also includes a virtual serial port (CDC) interface over UART anddebug GPIO Atmel StudioMicrochip MPLABreg X IDE 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

4241 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 31 On-Board DebuggerOverview

Table 4-4 On-Board Debugger Connections

AVR128DA48Pin

Debugger Pin Function Shared Functionality

RF1 CDC TX UART RX (AVR128DA48 RX line) Edge connector

RF0 CDC RX UART TX (AVR128DA48 TX line) Edge connector

UPDI DBG0 UPDI Edge connector

PC6 DBG1 GPIO1 Edge connector LED

PC7 DBG2 GPIO0 Edge connector Mechanical Switch

PF6 DBG3 RESET Edge connector

AVR128DA48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 26

5 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

51 Identifying Product ID and RevisionThe revision and product identifier of the AVR128DA48 Curiosity Nano Board can be found in two ways Either byutilizing the Atmel StudioMicrochip MPLABreg X IDE Kit Window or by looking at the sticker on the bottom side of thePCB

By connecting AVR128DA48 Curiosity Nano to a computer with Atmel StudioMicrochip MPLABreg X IDE running theKit Window will pop up The first six digits of the serial number which is listed under kit information contain theproduct identifier 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 AVR128DA48 Curiosity Nano is A09-3280

52 Revision 3Revision 3 is the initially released revision There are no known issues with this revision

AVR128DA48 Curiosity NanoHardware Revision History and Known Issues

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 27

6 Document Revision HistoryDoc rev Date Comment

A 032020 Initial document release

AVR128DA48 Curiosity NanoDocument Revision History

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 28

7 Appendix

71 SchematicFigure 7-1 AVR128DA48 Curiosity Nano Schematic

11

22

33

44

55

66

77

88

DD

CC

BB

AA

2 of

4

AVR1

28D

A48

Curio

sity

Nan

o

102

320

19AV

R128

DA

48_C

urio

sity

_Nan

o_Ta

rget

_MCU

Sch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA R

evisi

on

File

PC

B N

umbe

rPC

B Re

visio

n

Des

igne

d wi

th

Dra

wn

By

PB Shee

t Titl

eTa

rget

MCU

Engi

neer

A

H T

F

A08

-300

23

Size

A3

A09

-328

03

Page

D

ateA

ltium

com

GN

DV

CC_T

ARG

ET

100n

C201

GN

D

PA5_

SPI0

_MIS

OPA

6_SP

I0_S

CKPA

7_SP

I0_S

SPB

0_U

ART

3_TX

PB1_

UA

RT3_

RXPB

2PB

3PB

4PB

5PC

0_U

ART

1_TX

PC1_

UA

RT1_

RXPC

2_I2

C0_S

DA

PC3_I2C0_SCL

PC4PC5PC6_LED0_GPIO1PC7_SW0_GPIO0PD0_AIN0_WO0PD1_AIN1_WO1PD2_AIN2_WO2PD3_AIN3PD4_AIN4

PA3

PA1_UART0_RX

UPDI

PF5_UART2_RX

PF3

PF2

PF1_

TOSC

2PF

0_TO

SC1

PE3

PE2

PE1

PE0

PD5_

AIN

5PD

6_A

IN6

PD7_

AIN

7

GN

D

VCC

_TA

RGET

100n

C202

GN

DV

CC_T

ARG

ET10

0n

C200

PF1_TOSC2

PF0_TOSC1

PA2

PA0_UART0_TX

PF4_UART2_TX

PA4_SPI0_MOSI

GN

D

PA7_

SPI0

_SS

PA6_

SPI0

_SCK

PA5_

SPI0

_MIS

OPA

4_SP

I0_M

OSI

PA3

PA2

PA1_

UA

RT0_

RXPA

0_U

ART

0_TX

PB0_

UA

RT3_

TXPB

1_U

ART

3_RX

PB2

PB3

PB4

PB5

PD7_

AIN

7PD

6_A

IN6

PF5_

UA

RT2_

RXPF

4_U

ART

2_TX

PF3

PF2

32kH

z C

ryst

al

1kR203

USE

R L

ED

VCC

_TA

RGET

PF6_RESET

PC7_SW0_GPIO0

PC6_LED0_GPIO1

GN

D

USE

R B

UTT

ON

PE3

PE2

PE1

PE0

PC0_

UA

RT1_

TXPC

1_U

ART

1_RX

PC2_

I2C0

_SD

APC

3_I2

C0_S

CL

PC4

PC5

PC6_

LED

0_G

PIO

1PC

7_SW

0_G

PIO

0

1kR202

YELLOWLEDSML-D12Y1WT86

2 1D200

TS604VM1-035CR13

4 2

SW20

0

GN

DV

CC_E

DG

E

GN

DG

ND

GN

DG

ND

UPD

IPF

6_RE

SET

J207

J208

J209

BLM

18PG

471S

N1

L200

AVR1

28D

A48

22u

FC2

05

VCC

_ED

GE

GN

D

DBG0

CDC_

UART

TXRXU

ART

CDC_TXCDC_RX

DBG2

DBG1

DBG3

DBG2

DEB

UG

GER

CO

NN

ECTI

ON

S

DBG1

DBG3DBG0

VOFF

ID_S

YS

ID_SYS

VOFF

TAR

GET

BU

LK

VCC

_TA

RGET

RES

ET P

ull

VBU

S

CDC

RX3

CDC

TX4

DBG

15

DBG

26

0 TX

71

RX8

2 SD

A9

3 SC

L10

4 M

OSI

115

MIS

O12

6 SC

K13

7 SS

14G

ND

150

(TX

)16

1 (R

X)

172

183

190

20

GN

D24

DBG

354

DBG

053

GN

D52

VCC

51

PWM

346

AD

C 2

45A

DC

144

AD

C 0

43G

ND

42

438

434

GN

D33

AD

C 7

50A

DC

649

AD

C 5

48PW

M 4

47

DEB

UG

GER

TARG

ET

ID2

VO

FF55

121

222

323

025

126

227

328

429

530

631

732

535

636

737

539

640

741

RESE

RVED

1V

BUS

56

CNA

NO

56-p

in e

dge

conn

ecto

r

J200

J201

J203

J205

J206

J202

J204

PF1

PF0

PF1_

TOSC

2PF

0_TO

SC1

NC

J211

J210

XOUT

XIN

47kR200

AVR

128D

A48

UPD

I

GPI

O1

GPI

O0

RESE

T

DBG

0

DBG

1

DBG

2

DBG

3

Deb

ugge

r

CD

C T

X

CD

C R

X

UA

RT1

RX

UA

RT1

TX

VTG

18V

- 5

5VPC6

PC7

PF6

UPD

I

PC0

PC1

Nam

ePi

n

PA5

1PA

62

PA7

3PB

04

PB1

5PB

26

PB3

7PB

48

PB5

9PC

010

PC1

11PC

212

PC3 13VDD 14GND 15PC4 16PC5 17PC6 18PC7 19PD0 20PD1 21PD2 22PD3 23PD4 24

PD5

25PD

626

PD7

27AV

DD28

GND

29PE

030

PE1

31PE

232

PE3

33XT

AL32

K1P

F034

XTAL

32K2

PF1

35PF

236

PF337 PF438 PF539 PF640 UPDI41 VDD42 GND43 EXTCLKPA044 PA145 PA246 PA347 PA448

AVR1

28D

A48

TQ

FPU

200

PC0_

UA

RT1_

TXPC

1_U

ART

1_RX

PC6_

LED

0_G

PIO

1PC

7_SW

0_G

PIO

0

AVD

D

PD2_

AIN

2_W

O2

PD1_

AIN

1_W

O1

PD0_

AIN

0_W

O0

PD5_

AIN

5PD

4_A

IN4

PD3_

AIN

3

XC2

00

12p

C203

12p

C204

327

68 k

Hz

Crys

tal d

atas

heet

Cc

rysta

l = 9

pFm

ax E

SR =

70k

Ohm

Acc

urac

y plusmn2

0ppm

AVR1

28D

A48

dat

ashe

et

Cxin

= 4

1pF

Cxou

t = 6

0pF

Cl asymp

1( (

14

1pF)

+ (1

60

pF) )

asymp2

44pF

Max

imum

Loa

d =

125

pFM

axim

um E

SR =

80k

Ohm

Estim

ated

Cpc

b =

05p

F

Estim

ated

load

C =

2 (C

crys

tal-

Cpar

a - C

pcb)

C

= 2

(9pF

- 2

44pF

- 0

5pF)

C =

121

2pF

Sele

cted

in d

esig

n af

ter v

erifi

catio

nC=

12p

F12

pF

NO

TE o

n U

ART

CD

C

RXT

X o

n th

e he

ader

den

otes

the

inpu

tout

put d

irect

ion

of th

e sig

nal

resp

ectiv

e to

its

sour

ce

CDC

TX is

out

put f

rom

the

DEB

UG

GER

CD

C RX

is in

put t

o th

e D

EBU

GG

ER

TX is

out

put f

rom

the

TARG

ET d

evic

eRX

is in

put t

o th

e TA

RGET

dev

ice

NO

TE o

n I2

C

No

pull-

ups o

n bo

ard

Pul

l-ups

shou

ld b

e m

ount

ed c

lose

to sl

ave

devi

ce(s

)

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 29

11

22

33

44

55

66

77

88

DD

CC

BB

AA

3 of

4

AVR1

28D

A48

Curio

sity

Nan

o

102

320

19AV

R128

DA

48_C

urio

sity

_Nan

o_D

ebug

gerS

chD

oc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA R

evisi

on

File

PC

B N

umbe

rPC

B Re

visio

n

Des

igne

d wi

th

Dra

wn

By

PB Shee

t Titl

eD

ebug

ger

Engi

neer

A

H T

F

A08

-300

23

Size

A3

A09

-328

03

Page

D

ateA

ltium

com

DEB

UG

GER

USB

MIC

RO

-B C

ON

NEC

TOR

GN

D

USB

D_P

USB

D_N

100n

C107

100n

C108

RXTXU

ART

CDC_

UART

1kR1

07V

CC_P

3V3

SRST

STAT

US_

LED

SHIE

LD

VBU

S

VCC

_P3V

3G

ND

TP10

0

Testp

oint

Arra

y

12

34

56

78

910

TCK

TDO

TMS

Vsu

pTD

IG

ND

TRST

SRST

VTr

efG

ND

J102

GN

D

47u

F

C100

DBG0

DBG

0

21

GRE

EN L

EDSM

L-P1

2MTT

86R

D10

0

VBUS

1D-

2D+

3

GND

5SH

IELD

16

SHIE

LD2

7

ID4

SHIE

LD3

8SH

IELD

49 M

U-M

B014

2AB2

-269

J105

PAD

33

PA00

1PA

012

PA02

3PA

034

GND 10VDDANA 9

PA04

5PA

056

PA06

7PA

078

PA08 11PA09 12PA10 13PA11 14PA14 15PA15 16

PA16

17PA

1718

PA18

19PA

1920

PA22

21US

B_SO

FPA

2322

USB_

DMP

A24

23US

B_DP

PA2

524

PA2725 RESETN26 PA2827 GND28 VDDCORE29 VDDIN30 SWDCLKPA3031 SWDIOPA3132

SAM

D21

E18A

-MU

TU

100

VOUT

1

VOUT

2

GND 3

EN4

VIN

6

NC5

EP 7

MIC

5528

-33

YM

TU

101

VCC

_P3V

3

GN

D

USB

D_P

USB

D_N

GN

D

1uC106

VCC

_MCU

_CO

RE

VCC

_P3V

3

VCC

_P3V

3

22u

FC1

01

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

3V

CC_P

3V3

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

4V

CC_P

3V3

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

5V

CC_P

3V3

GN

D

GN

D GN

D

GN

D

VCC

_ED

GE

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

7V

CC_P

3V3

GN

DDB

G2

DBG

3_CT

RL

S1_0

_TX

S1_1

_RX

S0_2

_TX

DA

CV

TG_A

DC

RESE

RVED

S0_3

_CLK

DBG0_CTRL

CDC_

TX_C

TRL

BOO

T

DEB

UG

GER

PO

WER

STA

TUS

LED

EN1

BYP

6

VOUT

4

GND

2

VIN

3

NCA

DJ5

GND 7

MIC

5353

U10

2

100n

C102

GN

D

GN

D

47kR101

27kR104 G

ND

33k

R106

22u

F

C103 G

ND

1kR1

08

J100

VCC

_LEV

ELV

CC_R

EGU

LATO

R

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

6V

CC_P

3V3

GN

DDB

G1

CDC_

RXCD

C_TX

DBG3

DBG1_CTRL

DEB

UG

GER

REG

ULA

TOR

REG_ENABLE

REG

_EN

ABL

E

47kR103

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

47kR102

47kR105

SWCL

K

GN

D

47kR100 G

ND

DBG

2

S0_0

_RX

DBG

1_CT

RL

DBG

0_CT

RL

DBG

3 O

PEN

DR

AIN

TAR

GET

AD

JUST

ABL

E R

EGU

LATO

R

SRST

DEB

UG

GER

TES

TPO

INT DBG2_CTRL

VO

FFCD

C_RX

_CTR

L

47kR109

DBG

1

CDC_

TX_C

TRL

CDC_

RX_C

TRL

SWCL

K

REG_ADJUST

DBG2_GPIO

DBG

3_CT

RL

DBG

2_CT

RL

UPD

I

UPD

I

GPI

O

GPI

O

RESE

T

Sign

al

DBG

0

DBG

1

DBG

2

DBG

3

ICSP

Inte

rface

DAT

CLK

GPI

O

MCL

R

DBG

3

CD

C T

X

CD

C R

X

UA

RT R

X

UA

RT T

X

UA

RT R

X

UA

RT T

X

TAR

GET

TAR

GET

1kR1

10

VBUS_ADC

1

23

DM

N65

D8L

FBQ

101

VC

C-

-

ID_S

YS

VOFF

1kR112

VCC

_P3V

3

VTG

_AD

CD

AC

MIC

9416

3

VIN

B2VO

UTA1

VIN

A2

ENC2

GND

C1VO

UTB1

U10

8

GN

D

ID_S

YS

VTG

_EN

VTG_EN

VBUS_ADC

SWD

IO

ID_S

YS

TP10

1G

ND

SWD

IO

VO

FF

47kR111 G

ND

ID P

IN

MC3

6213

F100

VCC

_VBU

S

VCC

_VBU

S

VCC

_VBU

S

J101

VCC

_TA

RGET

47k

R113

Prog

ram

min

g co

nnec

tor f

or

fact

ory

prog

ram

min

g of

D

EBU

GG

ER

MIC

5528

Vi

n 2

5V

to 5

5V

Vout

Fix

ed 3

3V

Imax

500

mA

Dro

pout

260

mV

5

00m

A

PTC

Rese

ttabl

e fu

se

Hol

d cu

rrent

500

mA

Trip

cur

rent

100

0mA

Adj

usta

ble

outp

ut a

nd li

mita

tions

- T

he D

EBU

GG

ER c

an a

djus

t the

out

put v

olta

ge o

f the

regu

lato

r bet

wee

n 1

25V

and

51

V to

the

targ

et

- The

vol

tage

out

put i

s lim

ited

by th

e in

put (

USB

) w

hich

can

var

y be

twee

n 4

40V

to 5

25V

- The

leve

l shi

fters

hav

e a

min

imal

vol

tage

leve

l of 1

65V

and

will

lim

it th

e m

inim

um o

pera

ting

volta

ge a

llow

ed fo

r the

ta

rget

to st

ill a

llow

com

mun

icat

ion

- The

MIC

9416

3 ha

s a m

inim

al v

olta

ge le

vel o

f 17

0V a

nd w

ill li

mit

the

min

imum

vol

tage

del

iver

ed to

the

targ

et

- Firm

war

e co

nfig

urat

ion

will

lim

it th

e vo

ltage

rang

e to

be

with

in th

e th

e ta

rget

spec

ifica

tion

R113

is re

quire

d to

pul

l the

Q

101

gate

to a

def

ined

va

lue

whe

n th

e U

100

is no

t po

wer

ed

J100

Cu

t-stra

p us

ed fo

r ful

l sep

arat

ion

of ta

rget

pow

er fr

om th

e le

vel s

hifte

rs a

nd o

n-bo

ard

regu

lato

rs

- For

cur

rent

mea

sure

men

ts us

ing

an e

xter

nal p

ower

supp

ly t

his s

trap

coul

d be

cut

for m

ore

accu

rate

mea

sure

men

ts L

eaka

ge b

ack

thro

ugh

the

switc

h is

in th

e m

icro

am

pere

rang

e

J101

Th

is is

foot

prin

t for

a 1

x2 1

00m

il pi

tch

pin-

head

er th

at c

an b

e us

ed fo

r eas

y cu

rrent

mea

sure

men

t to

the

targ

et m

icro

cont

rolle

r and

the

LED

Bu

tton

To

use

the

foot

prin

t- C

ut th

e tra

ck b

etw

een

the

hole

s an

d m

ount

a p

in-h

eade

r

MIC

5353

Vi

n 2

6V

to 6

VVo

ut 1

25V

to 5

1V

Imax

500

mA

Dro

pout

(typ

ical

) 50

mV

15

0mA

160

mV

5

00m

AA

ccur

acy

2

initi

alTh

erm

al sh

utdo

wn

and

curre

nt li

mit

Max

imum

out

put v

olta

ge is

lim

ited

by th

e in

put v

olta

ge a

nd th

e dr

opou

t vol

tage

in th

e re

gula

tor

(Vm

ax =

Vin

- dr

opou

t)

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 30

72 Assembly DrawingFigure 7-2 AVR128DA48 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

PAC20002 PAC20001 COC200

PAC20102 PAC20101 COC201

PAC20202 PAC20201 COC202

PAC20301 PAC20302 COC203

PAC20401 PAC20402 COC204

PAC20502

PAC20501 COC205

PAD10002 PAD10001 COD100

PAD20001

PAD20002 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

PAJ20701 PAJ20702 PAJ20705 COJ207

PAJ20801 PAJ20802 PAJ20805 COJ208

PAJ20901 PAJ20902 COJ209

PAJ21002 PAJ21001 COJ210

PAJ21102 PAJ21101 COJ211

PAL20002 PAL20001 COL200

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

PAR20002 PAR20001 COR200

PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203

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

PAU200048 PAU200047 PAU200046 PAU200045 PAU200044 PAU200043 PAU200042 PAU200041 PAU200040 PAU200039 PAU200038 PAU200037 PAU200036 PAU200035 PAU200034 PAU200033 PAU200032 PAU200031 PAU200030 PAU200029 PAU200028 PAU200027 PAU200026 PAU200025 PAU200024 PAU200023 PAU200022 PAU200021 PAU200020 PAU200019 PAU200018 PAU200017 PAU200016 PAU200015 PAU200014 PAU200013

PAU200012 PAU200011 PAU200010 PAU20009 PAU20008 PAU20007 PAU20006 PAU20005 PAU20004 PAU20003 PAU20002 PAU20001

COU200

PAXC20001

PAXC20002

COXC200

Figure 7-3 AVR128DA48 Curiosity Nano Assembly Drawing Bottom

ctR

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20002 PAC20001 COC200

PAC20102 PAC20101 COC201

PAC20202 PAC20201 COC202

PAC20301 PAC20302 COC203

PAC20401 PAC20402 COC204

PAC20502

PAC20501 COC205

PAD10002 PAD10001 COD100

PAD20001

PAD20002 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

PAJ20701 PAJ20702 PAJ20705 COJ207

PAJ20801 PAJ20802 PAJ20805 COJ208

PAJ20901 PAJ20902 COJ209

PAJ21002 PAJ21001 COJ210

PAJ21102 PAJ21101 COJ211

PAL20002 PAL20001 COL200

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

PAR20002 PAR20001 COR200

PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203

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

PAU200048 PAU200047 PAU200046 PAU200045 PAU200044 PAU200043 PAU200042 PAU200041 PAU200040 PAU200039 PAU200038 PAU200037 PAU200036 PAU200035 PAU200034 PAU200033 PAU200032 PAU200031 PAU200030 PAU200029 PAU200028 PAU200027 PAU200026 PAU200025 PAU200024 PAU200023 PAU200022 PAU200021 PAU200020 PAU200019 PAU200018 PAU200017 PAU200016 PAU200015 PAU200014 PAU200013

PAU200012 PAU200011 PAU200010 PAU20009 PAU20008 PAU20007 PAU20006 PAU20005 PAU20004 PAU20003 PAU20002 PAU20001

COU200

PAXC20001

PAXC20002

COXC200

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 31

73 Curiosity Nano Base for Click boardstrade

Figure 7-4 AVR128DA48 Curiosity Nano Pinout Mapping

USB

DEB

UG

GER

AVR1

28D

A48

SW0

LED

0

PS L

EDNC

NC

ID

ID

CDC RX

CDCRX

USART1 TX

PC0

CDC TX

CDCTX

USART1 RX

PC1

DBG1

DBG1

PC6

LED0

DBG2

DBG2

PC7

SW0

PA0

PA0

USART0 TX

PTC XY0

PA1

PA1

USART0 RX

PTC XY1

PC2

PC2

TWI0 SDA

PC3

PC3

TWI0 SCL

PA4

PA4

SPI0 MOSI

PTC XY4

PA5

PA5

SPI0 MISO

PTC XY5

PA6

PA6

SPI0 SCK

PTC XY6

PA7

PA7

SPI0 SS

PTC XY7

GND

GND

PF4

PF4

USART2 TX

PTC XY36

PF5

PF5

USART2 RX

PTC XY37

PF2

PF2

PTC XY34

PF3

PF3

PTC XY35

PB0

PB0

PTC XY8

PB1

PB1

PTC XY9

PB2

PB2

PTC XY10

PB3

PB3

PTC XY11

GND

GND

PC0

PC0

USART1 TX

CDC RX

PC1

PC1

USART1 RX

CDC TX

PC6

PC6

LED0

PC7

PC7

SW0

VBUS

VBUS

VOFF

VOFF

DBG3

DBG3

PF6

DBG0

DBG0

UPDI

GND

GND

VTG

VTG

PD7

PD7

AIN7

PTC XY23

PD6

PD6

AIN6

PTC XY22

PD2

PD2

AIN2

PTC XY18

TCA0 WO2

PD1

PD1

AIN1

PTC XY17

TCA0 WO1

PD0

PD0

AIN0

PTC XY16

TCA0 WO0

PD5

PD5

AIN5

PTC XY21

PD4

PD4

AIN4

PTC XY20

PD3

PD3

AIN3

PTC XY19

GND

GND

PE3

PE3

PTC XY27

PE2

PE2

PTC XY26

PE1

PE1

PTC XY25

PE0

PE0

PTC XY24

PA3

PA3

PTC XY3

PA2

PA2

PTC XY2

PB5

PB5

PTC XY13

PB4

PB4

PTC XY12

GND

GND

PC5

PC5

PC4

PC4

(PF1)

(PF1)

(PTC XY33)

XTAL32K2

(PF0)

(PF0)

(PTC XY32)

XTAL32K1

DEB

UG

GER

AVR1

28D

A48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

Touch

Shared pin

AVR1

28D

A48

Curio

sity

Nan

o

1

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

2

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

3

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

Xpl

aine

d Pr

o Ex

tens

ion

EXT1

12

1920

Curio

sity

Nan

o Ba

sefo

r clic

k bo

ards

TM

PD3

PD0

PD7

PD6

PA7

PA1

PA6

PA0

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

PD4

PD1

PF3

PF2

PE2

PF5

PA6

PF4

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

PD5

PD2

PE1

PE0

PE3

PA1

PA6

PA0

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

ID

GND

PD4

PD5

PF3

PE1

PD1

PD2

PF2

PE3

PC2

PC3

PF5

PF4

PE2

PA4

PA5

PA6

GND

+33V

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 32

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

The block diagram below shows all connections between the debugger and the AVR128DA48 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 7-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 7-6 Details about connecting an external debugger are described in 36 Connecting ExternalDebuggers

Figure 7-5  On-Board Debugger Connections Block Diagram

DEB

UG

GER

TARGETLevel-Shift

PA04PA06PA07PA08PA16PA00PA01

USB

DIR x 5

VCC_P3V3

VBUS

VCC

_LEV

EL

VCC

_TA

RGET

DBG0DBG1DBG2DBG3CDC 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

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 33

Figure 7-6 On-Board Debugger Connection Cut Straps

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

75 Getting Started with IARIAR Embedded Workbenchreg for AVRreg is a proprietary high-efficiency compiler not based on GCC Programming anddebugging of AVR128DA48 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 7-73 In the category Debugger select the Setup tab Select Atmel-ICE as the driver as shown in Figure 7-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 7-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

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 34

Figure 7-7 Select Target Device

Figure 7-8 Select Debugger

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 35

Figure 7-9 Configure Interface

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 36

The Microchip WebsiteMicrochip provides online support via our website at httpwwwmicrochipcom This website is used to make filesand information 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 ServiceMicrochiprsquos 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 httpwwwmicrochipcompcn and follow the registration instructions

Customer SupportUsers 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 httpwwwmicrochipcomsupport

Microchip Devices Code Protection FeatureNote the following details of the code protection feature on Microchip devices

bull Microchip products meet the specification contained in their particular Microchip Data Sheetbull Microchip believes that its family of products is one of the most secure families of its kind on the market today

when used in the intended manner and under normal conditionsbull There are dishonest and possibly illegal methods used to breach the code protection feature All of these

methods to our knowledge require using the Microchip products in a manner outside the operatingspecifications contained in Microchiprsquos Data Sheets Most likely the person doing so is engaged in theft ofintellectual property

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

protection does not mean that we are guaranteeing the product as ldquounbreakablerdquo

Code protection is constantly evolving We at Microchip are committed to continuously improving the code protectionfeatures of our products Attempts to break Microchiprsquos code protection feature may be a violation of the DigitalMillennium Copyright Act If such acts allow unauthorized access to your software or other copyrighted work youmay have a right to sue for relief under that Act

Legal NoticeInformation contained in this publication regarding device applications and the like is provided only for yourconvenience and may be superseded by updates It is your responsibility to ensure that your application meets with

AVR128DA48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 37

your specifications MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHEREXPRESS OR IMPLIED WRITTEN OR ORAL STATUTORY OR OTHERWISE RELATED TO THE INFORMATIONINCLUDING BUT NOT LIMITED TO ITS CONDITION QUALITY PERFORMANCE MERCHANTABILITY ORFITNESS FOR PURPOSE Microchip disclaims all liability arising from this information and its use Use of Microchipdevices in life support andor safety applications is entirely at the buyerrsquos risk and the buyer agrees to defendindemnify and hold harmless Microchip from any and all damages claims suits or expenses resulting from suchuse No licenses are conveyed implicitly or otherwise under any Microchip intellectual property rights unlessotherwise stated

TrademarksThe 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-5760-2

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

AVR128DA48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 38

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupporthttpwwwmicrochipcomsupportWeb AddresshttpwwwmicrochipcomAtlantaDuluth 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 DS50002971A-page 39

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Kit Overview
      • 2 Getting Started
        • 21 Quick Start
        • 22 Design Documentation and Relevant Links
          • 3 Curiosity Nano
            • 31 On-Board Debugger Overview
              • 311 Debugger
              • 312 Virtual Serial Port (CDC)
                • 3121 Overview
                • 3122 Operating System Support
                • 3123 Limitations
                • 3124 Signaling
                • 3125 Advanced Use
                  • 313 Mass Storage Device
                    • 3131 Mass Storage Device Implementation
                    • 3132 Fuse Bytes
                    • 3133 Limitations of Drag-and-Drop Programming
                    • 3134 Special Commands
                      • 314 Data Gateway Interface (DGI)
                        • 3141 Debug GPIO
                        • 3142 Timestamping
                            • 32 Curiosity Nano Standard Pinout
                            • 33 Power Supply
                              • 331 Target Regulator
                              • 332 External Supply
                              • 333 VBUS Output Pin
                              • 334 Power Supply Exceptions
                                • 34 Low Power Measurement
                                • 35 Programming External Microcontrollers
                                  • 351 Supported Devices
                                  • 352 Software Configuration
                                  • 353 Hardware Modifications
                                  • 354 Connecting to External Microcontrollers
                                    • 36 Connecting External Debuggers
                                      • 4 Hardware User Guide
                                        • 41 Connectors
                                          • 411 AVR128DA48 Curiosity Nano Pinout
                                          • 412 Using Pin Headers
                                            • 42 Peripherals
                                              • 421 LED
                                              • 422 Mechanical Switch
                                              • 423 Crystal
                                              • 424 On-Board Debugger Implementation
                                                • 4241 On-Board Debugger Connections
                                                  • 5 Hardware Revision History and Known Issues
                                                    • 51 Identifying Product ID and Revision
                                                    • 52 Revision 3
                                                      • 6 Document Revision History
                                                      • 7 Appendix
                                                        • 71 Schematic
                                                        • 72 Assembly Drawing
                                                        • 73 Curiosity Nano Base for Click boardstrade
                                                        • 74 Disconnecting the On-board Debugger
                                                        • 75 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: AVR128DA48 Curiosity Nano User Guide - Microchip Technologyww1.microchip.com/downloads/en/DeviceDoc/AVR128DA48... · 2020-03-19 · AVR128DA48 Curiosity Nano AVR128DA48 Curiosity

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

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

3121 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 3-1 CDC Connection

Target MCU

UART TX

UART RX

Debugger

USBCDC RX

CDC TX

PCTerminalSoftware

TargetReceive

TargetSend

TerminalReceive

TerminalSend

Info  As shown in Figure 3-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

3122 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 Atmel StudioMicrochip MPLABreg X IDE

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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 8

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

3123 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

3124 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 the DTR signal will not disable the level shifters but disable the receiver so no further data will bestreamed to the host Data packets that are already queued up for sending to the target will continue to be sent outbut no further data will be accepted

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

3125 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=

The maximum message length is 50 characters ndash all remaining data in the frame are ignored

The default baud rate used in this mode is 9600 bps but if the CDC is already active or has been configured thepreviously used baud rate still applies

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 9

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 because the on-board debugger buffers framesand not bytes A maximum of four 64-byte frames can be active at any time The on-board debugger will throttle theincoming frames 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

313 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 supportbull Write access for programming Intelreg HEX formatted files into the target devicersquos memorybull Write access for simple text files for utility purposes

3131 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 wayfulfill the 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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 10

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

3132 Fuse Bytes

Fuse Bytes (AVRreg MCU Targets)When doing drag-and-drop programming the debugger masks out fuse bits that attempt to disable Unified Programand Debug Interface (UPDI) This means that the UPDI pin cannot be used in its reset or GPIO modes selecting oneof the alternative functions on the UPDI pin would render the device inaccessible without using an external debuggercapable of high-voltage UPDI activation

3133 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 useAtmel StudioMicrochip MPLABreg X IDE

Enabling CRC Check in FusesIt is not advisable to enable the CRC check in the target devicersquos fuses when using drag-and-drop programming Thisbecause 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 Atmel StudioMicrochip MPLABreg

X IDE which will automatically clear the CRC fuses after erasing

3134 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

Table 3-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 ldquoCDC Override Moderdquo

CMDRESET Resets the target device by entering Programming mode and then exitingProgramming mode immediately thereafter Exact timing can vary according tothe programming interface of the target device (Debugger firmware v116 ornewer)

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

CMD0V Powers down the target device by disabling the target supply regulator Ifexternal power is provided this has no effect (Debugger firmware v116 ornewer)

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

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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 11

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

314 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 Atmel StudioMicrochip MPLABreg X IDE

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

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

3141 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 VisualizerFigure 3-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

3142 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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 12

32 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 3-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

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 3-3 Curiosity Nano Standard Pinout

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

33 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 AVR128DA48 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 AVR128DA48Curiosity Nano

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 13

Figure 3-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

331 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 implementationis 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 AVR128DA48microcontroller The voltage limits configured in the on-board debugger on AVR128DA48 Curiosity Nano are18-51V

Info  The target voltage is set to 33V when the board is manufactured It can be changed throughMPLAB X IDE project properties and in the Atmel Studio device programming dialog Any change to thetarget voltage is persistent even through 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 Atmel StudioMicrochip MPLABreg X IDE are not immediatelyapplied to the board The new voltage setting is applied to the board when the debugger is accessed inany way like pushing the Refresh 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 only supports settings of 00V 33V and 50V See section 3134 Special Commands forfurther details

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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 14

Figure 3-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

Info  If the external voltage is lower than the monitoring window lower limit (target voltage setting - 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

332 External SupplyAVR128DA48 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 AVR128DA48 is 18-55V Applying a higher voltage may cause permanent damage to theboard

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 15

Info  If an external voltage is applied without pulling the VOFF pin low and an external supply pulls thevoltage lower than the monitoring window 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 AVR128DA48 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

333 VBUS Output PinAVR128DA48 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

Figure 3-6 VBUS Output Voltage vs Current

334 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 between 44V to 525V) and thevoltage drop over the MIC5353 regulator at a given voltage setting and current consumption If a higher outputvoltage is needed use a USB power source that can provide a higher input voltage or use an external voltage supplyon the VTG pin

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 16

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 differ more than 100 mV overunder the voltage setting it will be detected by the on-board debugger and theinternal voltage regulator will be shut down To fix this issue remove the applied voltage from the VTG pin and theon-board debugger will enable the on-board voltage regulator when the new condition is detected Note that the PSLED will be blinking rapidly if the target voltage is below 100 mV of the setting but will be lit normally when it is higherthan 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 really a special case of the issue mentioned above Removethe short-circuit and the on-board debugger will re-enable the on-board target voltage regulator

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

34 Low Power MeasurementPower to the AVR128DA48 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 AVR128DA48 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 AVR128DA48

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 17

Figure 3-7 Target Power Strap

Target Power strap (top side)

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 are tri-state to prevent leakage All IOs connected to the on-boarddebugger are listed in 4241 On-Board Debugger Connections To prevent any leakage to the on-boardlevel shifters they can be disconnected completely as described in 74 Disconnecting the On-boardDebugger

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

351 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

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

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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 18

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

Figure 3-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

353 Hardware ModificationsThe on-board debugger is connected to the AVR128DA48 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 AVR128DA48 from the on-board debugger

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 19

Figure 3-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 AVR128DA48 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 AVR128DA48

354 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 33 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

AVR128DA48 Curiosity Nano has a pull-up resistor R200 connected to its RESET signal (DBG3) The location ofthe pull-up resistor is shown in the 72 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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 20

Figure 3-10 Curiosity Nano Standard Pinout

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

Table 3-4 Programming and Debugging Interfaces

Curiosity Nano Pin UPDI ICSPtrade SWD

DBG0 UPDI DATA SWDIO

DBG1 - CLK SWCLK

DBG2 - - -

DBG3 - MCLR RESET

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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 21

Figure 3-11 Connecting the MPLABreg PICkittrade 4 In-Circuit DebuggerProgrammer to AVR128DA48 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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 22

Figure 3-12 Connecting the Atmel-ICE to AVR128DA48 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 Atmel StudioMicrochip MPLABreg XIDE or mass storage programming while the external tool is active

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 23

4 Hardware User Guide

41 Connectors

411 AVR128DA48 Curiosity Nano PinoutAll the AVR128DA48 IO pins are accessible at the edge connectors on the board The image below shows the boardpinout

Figure 4-1 AVR128DA48 Curiosity Nano Pinout

USB

DEBUGGER

AVR128DA48

SW0

LED0

PS LEDNC

NC

ID

ID

CDC RX

CDCRXUSART1 TXPC0

CDC TX

CDCTXUSART1 RXPC1

DBG1

DBG

1PC6LED0

DBG2

DBG

2PC7SW0

PA0

PA0USART0 TXPTC XY0

PA1PA

1USART0 RXPTC XY1

PC2PC2TWI0 SDA

PC3

PC3TWI0 SCL

PA4

PA4SPI0 MOSIPTC XY4

PA5

PA5SPI0 MISOPTC XY5

PA6

PA6SPI0 SCKPTC XY6

PA7

PA7SPI0 SSPTC XY7

GND

GN

D

PF4

PF4USART2 TXPTC XY36

PF5

PF5USART2 RXPTC XY37

PF2

PF2PTC XY34

PF3

PF3PTC XY35

PB0

PB0PTC XY8

PB1

PB1PTC XY9

PB2

PB2PTC XY10

PB3

PB3PTC XY11

GND

GN

D

PC0

PC0USART1 TXCDC RX

PC1

PC1USART1 RXCDC TX

PC6

PC6LED0

PC7

PC7SW0

VBUS

VBU

S

VOFF

VO

FFDBG3

DBG

3 PF6

DBG0D

BG0 UPDI

GND

GN

D

VTG

VTG

PD7

PD7 AIN7 PTC XY23

PD6

PD6 AIN6 PTC XY22

PD2

PD2 AIN2 PTC XY18 TCA0 WO2

PD1

PD1 AIN1 PTC XY17 TCA0 WO1

PD0

PD0 AIN0 PTC XY16 TCA0 WO0

PD5

PD5 AIN5 PTC XY21

PD4

PD4 AIN4 PTC XY20

PD3

PD3 AIN3 PTC XY19

GND

GN

D

PE3

PE3 PTC XY27

PE2

PE2 PTC XY26

PE1

PE1 PTC XY25

PE0

PE0 PTC XY24

PA3

PA3 PTC XY3

PA2

PA2 PTC XY2

PB5

PB5 PTC XY13

PB4

PB4 PTC XY12

GND

GN

D

PC5

PC5

PC4

PC4

(PF1)

(PF1) (PTC XY33) XTAL32K2

(PF0)

(PF0) (PTC XY32) XTAL32K1

DEBUGGERAVR128DA48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

Touch

Shared pin

AVR128DA48Curiosity Nano

412 Using Pin HeadersThe edge connector footprint on AVR128DA48 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

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

AVR128DA48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 24

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

42 Peripherals

421 LEDThere is one yellow user LED available on the AVR128DA48 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 4-1 LED Connection

AVR128DA48 Pin Function Shared Functionality

PC6 Yellow LED0 Edge connector On-board debugger

422 Mechanical SwitchThe AVR128DA48 Curiosity Nano has one mechanical switch This is a generic user-configurable switch When theswitch 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 PC7

Table 4-2 Mechanical Switch

AVR128DA48 Pin Description Shared Functionality

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

423 Crystal

The AVR128DA48 Curiosity Nano board has a 32768 kHz crystal mounted

The AVR128DA48 is connected to the crystal by default but the GPIOs are also routed to the edge connectorthrough two solder points The two IO lines routed to the edge connector are disconnected by default to reduce thechance of an external signal causing contention with the crystal and to remove excessive capacitance on the linesTo use PF0 and PF1 as GPIO some hardware modifications are required

bull Disconnect the crystal by cutting the two straps on the top side of the board next to the crystal (J210 J211) Thecrystal 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 (J207 J208)

The cut straps and solder points can be seen in Figure 4-2

Table 4-3 Crystal Connections

AVR128DA48 Pin Function Shared Functionality

PF0 TOSC1 (Crystal input) Edge connector

PF1 TOSC2 (Crystal output) Edge connector

AVR128DA48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 25

Figure 4-2 Crystal Connection and Cut Straps

424 On-Board Debugger ImplementationAVR128DA48 Curiosity Nano features an on-board debugger that can be used to program and debug theAVR128DA48 using UPDI The on-board debugger also includes a virtual serial port (CDC) interface over UART anddebug GPIO Atmel StudioMicrochip MPLABreg X IDE 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

4241 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 31 On-Board DebuggerOverview

Table 4-4 On-Board Debugger Connections

AVR128DA48Pin

Debugger Pin Function Shared Functionality

RF1 CDC TX UART RX (AVR128DA48 RX line) Edge connector

RF0 CDC RX UART TX (AVR128DA48 TX line) Edge connector

UPDI DBG0 UPDI Edge connector

PC6 DBG1 GPIO1 Edge connector LED

PC7 DBG2 GPIO0 Edge connector Mechanical Switch

PF6 DBG3 RESET Edge connector

AVR128DA48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 26

5 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

51 Identifying Product ID and RevisionThe revision and product identifier of the AVR128DA48 Curiosity Nano Board can be found in two ways Either byutilizing the Atmel StudioMicrochip MPLABreg X IDE Kit Window or by looking at the sticker on the bottom side of thePCB

By connecting AVR128DA48 Curiosity Nano to a computer with Atmel StudioMicrochip MPLABreg X IDE running theKit Window will pop up The first six digits of the serial number which is listed under kit information contain theproduct identifier 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 AVR128DA48 Curiosity Nano is A09-3280

52 Revision 3Revision 3 is the initially released revision There are no known issues with this revision

AVR128DA48 Curiosity NanoHardware Revision History and Known Issues

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 27

6 Document Revision HistoryDoc rev Date Comment

A 032020 Initial document release

AVR128DA48 Curiosity NanoDocument Revision History

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 28

7 Appendix

71 SchematicFigure 7-1 AVR128DA48 Curiosity Nano Schematic

11

22

33

44

55

66

77

88

DD

CC

BB

AA

2 of

4

AVR1

28D

A48

Curio

sity

Nan

o

102

320

19AV

R128

DA

48_C

urio

sity

_Nan

o_Ta

rget

_MCU

Sch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA R

evisi

on

File

PC

B N

umbe

rPC

B Re

visio

n

Des

igne

d wi

th

Dra

wn

By

PB Shee

t Titl

eTa

rget

MCU

Engi

neer

A

H T

F

A08

-300

23

Size

A3

A09

-328

03

Page

D

ateA

ltium

com

GN

DV

CC_T

ARG

ET

100n

C201

GN

D

PA5_

SPI0

_MIS

OPA

6_SP

I0_S

CKPA

7_SP

I0_S

SPB

0_U

ART

3_TX

PB1_

UA

RT3_

RXPB

2PB

3PB

4PB

5PC

0_U

ART

1_TX

PC1_

UA

RT1_

RXPC

2_I2

C0_S

DA

PC3_I2C0_SCL

PC4PC5PC6_LED0_GPIO1PC7_SW0_GPIO0PD0_AIN0_WO0PD1_AIN1_WO1PD2_AIN2_WO2PD3_AIN3PD4_AIN4

PA3

PA1_UART0_RX

UPDI

PF5_UART2_RX

PF3

PF2

PF1_

TOSC

2PF

0_TO

SC1

PE3

PE2

PE1

PE0

PD5_

AIN

5PD

6_A

IN6

PD7_

AIN

7

GN

D

VCC

_TA

RGET

100n

C202

GN

DV

CC_T

ARG

ET10

0n

C200

PF1_TOSC2

PF0_TOSC1

PA2

PA0_UART0_TX

PF4_UART2_TX

PA4_SPI0_MOSI

GN

D

PA7_

SPI0

_SS

PA6_

SPI0

_SCK

PA5_

SPI0

_MIS

OPA

4_SP

I0_M

OSI

PA3

PA2

PA1_

UA

RT0_

RXPA

0_U

ART

0_TX

PB0_

UA

RT3_

TXPB

1_U

ART

3_RX

PB2

PB3

PB4

PB5

PD7_

AIN

7PD

6_A

IN6

PF5_

UA

RT2_

RXPF

4_U

ART

2_TX

PF3

PF2

32kH

z C

ryst

al

1kR203

USE

R L

ED

VCC

_TA

RGET

PF6_RESET

PC7_SW0_GPIO0

PC6_LED0_GPIO1

GN

D

USE

R B

UTT

ON

PE3

PE2

PE1

PE0

PC0_

UA

RT1_

TXPC

1_U

ART

1_RX

PC2_

I2C0

_SD

APC

3_I2

C0_S

CL

PC4

PC5

PC6_

LED

0_G

PIO

1PC

7_SW

0_G

PIO

0

1kR202

YELLOWLEDSML-D12Y1WT86

2 1D200

TS604VM1-035CR13

4 2

SW20

0

GN

DV

CC_E

DG

E

GN

DG

ND

GN

DG

ND

UPD

IPF

6_RE

SET

J207

J208

J209

BLM

18PG

471S

N1

L200

AVR1

28D

A48

22u

FC2

05

VCC

_ED

GE

GN

D

DBG0

CDC_

UART

TXRXU

ART

CDC_TXCDC_RX

DBG2

DBG1

DBG3

DBG2

DEB

UG

GER

CO

NN

ECTI

ON

S

DBG1

DBG3DBG0

VOFF

ID_S

YS

ID_SYS

VOFF

TAR

GET

BU

LK

VCC

_TA

RGET

RES

ET P

ull

VBU

S

CDC

RX3

CDC

TX4

DBG

15

DBG

26

0 TX

71

RX8

2 SD

A9

3 SC

L10

4 M

OSI

115

MIS

O12

6 SC

K13

7 SS

14G

ND

150

(TX

)16

1 (R

X)

172

183

190

20

GN

D24

DBG

354

DBG

053

GN

D52

VCC

51

PWM

346

AD

C 2

45A

DC

144

AD

C 0

43G

ND

42

438

434

GN

D33

AD

C 7

50A

DC

649

AD

C 5

48PW

M 4

47

DEB

UG

GER

TARG

ET

ID2

VO

FF55

121

222

323

025

126

227

328

429

530

631

732

535

636

737

539

640

741

RESE

RVED

1V

BUS

56

CNA

NO

56-p

in e

dge

conn

ecto

r

J200

J201

J203

J205

J206

J202

J204

PF1

PF0

PF1_

TOSC

2PF

0_TO

SC1

NC

J211

J210

XOUT

XIN

47kR200

AVR

128D

A48

UPD

I

GPI

O1

GPI

O0

RESE

T

DBG

0

DBG

1

DBG

2

DBG

3

Deb

ugge

r

CD

C T

X

CD

C R

X

UA

RT1

RX

UA

RT1

TX

VTG

18V

- 5

5VPC6

PC7

PF6

UPD

I

PC0

PC1

Nam

ePi

n

PA5

1PA

62

PA7

3PB

04

PB1

5PB

26

PB3

7PB

48

PB5

9PC

010

PC1

11PC

212

PC3 13VDD 14GND 15PC4 16PC5 17PC6 18PC7 19PD0 20PD1 21PD2 22PD3 23PD4 24

PD5

25PD

626

PD7

27AV

DD28

GND

29PE

030

PE1

31PE

232

PE3

33XT

AL32

K1P

F034

XTAL

32K2

PF1

35PF

236

PF337 PF438 PF539 PF640 UPDI41 VDD42 GND43 EXTCLKPA044 PA145 PA246 PA347 PA448

AVR1

28D

A48

TQ

FPU

200

PC0_

UA

RT1_

TXPC

1_U

ART

1_RX

PC6_

LED

0_G

PIO

1PC

7_SW

0_G

PIO

0

AVD

D

PD2_

AIN

2_W

O2

PD1_

AIN

1_W

O1

PD0_

AIN

0_W

O0

PD5_

AIN

5PD

4_A

IN4

PD3_

AIN

3

XC2

00

12p

C203

12p

C204

327

68 k

Hz

Crys

tal d

atas

heet

Cc

rysta

l = 9

pFm

ax E

SR =

70k

Ohm

Acc

urac

y plusmn2

0ppm

AVR1

28D

A48

dat

ashe

et

Cxin

= 4

1pF

Cxou

t = 6

0pF

Cl asymp

1( (

14

1pF)

+ (1

60

pF) )

asymp2

44pF

Max

imum

Loa

d =

125

pFM

axim

um E

SR =

80k

Ohm

Estim

ated

Cpc

b =

05p

F

Estim

ated

load

C =

2 (C

crys

tal-

Cpar

a - C

pcb)

C

= 2

(9pF

- 2

44pF

- 0

5pF)

C =

121

2pF

Sele

cted

in d

esig

n af

ter v

erifi

catio

nC=

12p

F12

pF

NO

TE o

n U

ART

CD

C

RXT

X o

n th

e he

ader

den

otes

the

inpu

tout

put d

irect

ion

of th

e sig

nal

resp

ectiv

e to

its

sour

ce

CDC

TX is

out

put f

rom

the

DEB

UG

GER

CD

C RX

is in

put t

o th

e D

EBU

GG

ER

TX is

out

put f

rom

the

TARG

ET d

evic

eRX

is in

put t

o th

e TA

RGET

dev

ice

NO

TE o

n I2

C

No

pull-

ups o

n bo

ard

Pul

l-ups

shou

ld b

e m

ount

ed c

lose

to sl

ave

devi

ce(s

)

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 29

11

22

33

44

55

66

77

88

DD

CC

BB

AA

3 of

4

AVR1

28D

A48

Curio

sity

Nan

o

102

320

19AV

R128

DA

48_C

urio

sity

_Nan

o_D

ebug

gerS

chD

oc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA R

evisi

on

File

PC

B N

umbe

rPC

B Re

visio

n

Des

igne

d wi

th

Dra

wn

By

PB Shee

t Titl

eD

ebug

ger

Engi

neer

A

H T

F

A08

-300

23

Size

A3

A09

-328

03

Page

D

ateA

ltium

com

DEB

UG

GER

USB

MIC

RO

-B C

ON

NEC

TOR

GN

D

USB

D_P

USB

D_N

100n

C107

100n

C108

RXTXU

ART

CDC_

UART

1kR1

07V

CC_P

3V3

SRST

STAT

US_

LED

SHIE

LD

VBU

S

VCC

_P3V

3G

ND

TP10

0

Testp

oint

Arra

y

12

34

56

78

910

TCK

TDO

TMS

Vsu

pTD

IG

ND

TRST

SRST

VTr

efG

ND

J102

GN

D

47u

F

C100

DBG0

DBG

0

21

GRE

EN L

EDSM

L-P1

2MTT

86R

D10

0

VBUS

1D-

2D+

3

GND

5SH

IELD

16

SHIE

LD2

7

ID4

SHIE

LD3

8SH

IELD

49 M

U-M

B014

2AB2

-269

J105

PAD

33

PA00

1PA

012

PA02

3PA

034

GND 10VDDANA 9

PA04

5PA

056

PA06

7PA

078

PA08 11PA09 12PA10 13PA11 14PA14 15PA15 16

PA16

17PA

1718

PA18

19PA

1920

PA22

21US

B_SO

FPA

2322

USB_

DMP

A24

23US

B_DP

PA2

524

PA2725 RESETN26 PA2827 GND28 VDDCORE29 VDDIN30 SWDCLKPA3031 SWDIOPA3132

SAM

D21

E18A

-MU

TU

100

VOUT

1

VOUT

2

GND 3

EN4

VIN

6

NC5

EP 7

MIC

5528

-33

YM

TU

101

VCC

_P3V

3

GN

D

USB

D_P

USB

D_N

GN

D

1uC106

VCC

_MCU

_CO

RE

VCC

_P3V

3

VCC

_P3V

3

22u

FC1

01

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

3V

CC_P

3V3

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

4V

CC_P

3V3

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

5V

CC_P

3V3

GN

D

GN

D GN

D

GN

D

VCC

_ED

GE

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

7V

CC_P

3V3

GN

DDB

G2

DBG

3_CT

RL

S1_0

_TX

S1_1

_RX

S0_2

_TX

DA

CV

TG_A

DC

RESE

RVED

S0_3

_CLK

DBG0_CTRL

CDC_

TX_C

TRL

BOO

T

DEB

UG

GER

PO

WER

STA

TUS

LED

EN1

BYP

6

VOUT

4

GND

2

VIN

3

NCA

DJ5

GND 7

MIC

5353

U10

2

100n

C102

GN

D

GN

D

47kR101

27kR104 G

ND

33k

R106

22u

F

C103 G

ND

1kR1

08

J100

VCC

_LEV

ELV

CC_R

EGU

LATO

R

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

6V

CC_P

3V3

GN

DDB

G1

CDC_

RXCD

C_TX

DBG3

DBG1_CTRL

DEB

UG

GER

REG

ULA

TOR

REG_ENABLE

REG

_EN

ABL

E

47kR103

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

47kR102

47kR105

SWCL

K

GN

D

47kR100 G

ND

DBG

2

S0_0

_RX

DBG

1_CT

RL

DBG

0_CT

RL

DBG

3 O

PEN

DR

AIN

TAR

GET

AD

JUST

ABL

E R

EGU

LATO

R

SRST

DEB

UG

GER

TES

TPO

INT DBG2_CTRL

VO

FFCD

C_RX

_CTR

L

47kR109

DBG

1

CDC_

TX_C

TRL

CDC_

RX_C

TRL

SWCL

K

REG_ADJUST

DBG2_GPIO

DBG

3_CT

RL

DBG

2_CT

RL

UPD

I

UPD

I

GPI

O

GPI

O

RESE

T

Sign

al

DBG

0

DBG

1

DBG

2

DBG

3

ICSP

Inte

rface

DAT

CLK

GPI

O

MCL

R

DBG

3

CD

C T

X

CD

C R

X

UA

RT R

X

UA

RT T

X

UA

RT R

X

UA

RT T

X

TAR

GET

TAR

GET

1kR1

10

VBUS_ADC

1

23

DM

N65

D8L

FBQ

101

VC

C-

-

ID_S

YS

VOFF

1kR112

VCC

_P3V

3

VTG

_AD

CD

AC

MIC

9416

3

VIN

B2VO

UTA1

VIN

A2

ENC2

GND

C1VO

UTB1

U10

8

GN

D

ID_S

YS

VTG

_EN

VTG_EN

VBUS_ADC

SWD

IO

ID_S

YS

TP10

1G

ND

SWD

IO

VO

FF

47kR111 G

ND

ID P

IN

MC3

6213

F100

VCC

_VBU

S

VCC

_VBU

S

VCC

_VBU

S

J101

VCC

_TA

RGET

47k

R113

Prog

ram

min

g co

nnec

tor f

or

fact

ory

prog

ram

min

g of

D

EBU

GG

ER

MIC

5528

Vi

n 2

5V

to 5

5V

Vout

Fix

ed 3

3V

Imax

500

mA

Dro

pout

260

mV

5

00m

A

PTC

Rese

ttabl

e fu

se

Hol

d cu

rrent

500

mA

Trip

cur

rent

100

0mA

Adj

usta

ble

outp

ut a

nd li

mita

tions

- T

he D

EBU

GG

ER c

an a

djus

t the

out

put v

olta

ge o

f the

regu

lato

r bet

wee

n 1

25V

and

51

V to

the

targ

et

- The

vol

tage

out

put i

s lim

ited

by th

e in

put (

USB

) w

hich

can

var

y be

twee

n 4

40V

to 5

25V

- The

leve

l shi

fters

hav

e a

min

imal

vol

tage

leve

l of 1

65V

and

will

lim

it th

e m

inim

um o

pera

ting

volta

ge a

llow

ed fo

r the

ta

rget

to st

ill a

llow

com

mun

icat

ion

- The

MIC

9416

3 ha

s a m

inim

al v

olta

ge le

vel o

f 17

0V a

nd w

ill li

mit

the

min

imum

vol

tage

del

iver

ed to

the

targ

et

- Firm

war

e co

nfig

urat

ion

will

lim

it th

e vo

ltage

rang

e to

be

with

in th

e th

e ta

rget

spec

ifica

tion

R113

is re

quire

d to

pul

l the

Q

101

gate

to a

def

ined

va

lue

whe

n th

e U

100

is no

t po

wer

ed

J100

Cu

t-stra

p us

ed fo

r ful

l sep

arat

ion

of ta

rget

pow

er fr

om th

e le

vel s

hifte

rs a

nd o

n-bo

ard

regu

lato

rs

- For

cur

rent

mea

sure

men

ts us

ing

an e

xter

nal p

ower

supp

ly t

his s

trap

coul

d be

cut

for m

ore

accu

rate

mea

sure

men

ts L

eaka

ge b

ack

thro

ugh

the

switc

h is

in th

e m

icro

am

pere

rang

e

J101

Th

is is

foot

prin

t for

a 1

x2 1

00m

il pi

tch

pin-

head

er th

at c

an b

e us

ed fo

r eas

y cu

rrent

mea

sure

men

t to

the

targ

et m

icro

cont

rolle

r and

the

LED

Bu

tton

To

use

the

foot

prin

t- C

ut th

e tra

ck b

etw

een

the

hole

s an

d m

ount

a p

in-h

eade

r

MIC

5353

Vi

n 2

6V

to 6

VVo

ut 1

25V

to 5

1V

Imax

500

mA

Dro

pout

(typ

ical

) 50

mV

15

0mA

160

mV

5

00m

AA

ccur

acy

2

initi

alTh

erm

al sh

utdo

wn

and

curre

nt li

mit

Max

imum

out

put v

olta

ge is

lim

ited

by th

e in

put v

olta

ge a

nd th

e dr

opou

t vol

tage

in th

e re

gula

tor

(Vm

ax =

Vin

- dr

opou

t)

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 30

72 Assembly DrawingFigure 7-2 AVR128DA48 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

PAC20002 PAC20001 COC200

PAC20102 PAC20101 COC201

PAC20202 PAC20201 COC202

PAC20301 PAC20302 COC203

PAC20401 PAC20402 COC204

PAC20502

PAC20501 COC205

PAD10002 PAD10001 COD100

PAD20001

PAD20002 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

PAJ20701 PAJ20702 PAJ20705 COJ207

PAJ20801 PAJ20802 PAJ20805 COJ208

PAJ20901 PAJ20902 COJ209

PAJ21002 PAJ21001 COJ210

PAJ21102 PAJ21101 COJ211

PAL20002 PAL20001 COL200

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

PAR20002 PAR20001 COR200

PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203

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

PAU200048 PAU200047 PAU200046 PAU200045 PAU200044 PAU200043 PAU200042 PAU200041 PAU200040 PAU200039 PAU200038 PAU200037 PAU200036 PAU200035 PAU200034 PAU200033 PAU200032 PAU200031 PAU200030 PAU200029 PAU200028 PAU200027 PAU200026 PAU200025 PAU200024 PAU200023 PAU200022 PAU200021 PAU200020 PAU200019 PAU200018 PAU200017 PAU200016 PAU200015 PAU200014 PAU200013

PAU200012 PAU200011 PAU200010 PAU20009 PAU20008 PAU20007 PAU20006 PAU20005 PAU20004 PAU20003 PAU20002 PAU20001

COU200

PAXC20001

PAXC20002

COXC200

Figure 7-3 AVR128DA48 Curiosity Nano Assembly Drawing Bottom

ctR

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20002 PAC20001 COC200

PAC20102 PAC20101 COC201

PAC20202 PAC20201 COC202

PAC20301 PAC20302 COC203

PAC20401 PAC20402 COC204

PAC20502

PAC20501 COC205

PAD10002 PAD10001 COD100

PAD20001

PAD20002 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

PAJ20701 PAJ20702 PAJ20705 COJ207

PAJ20801 PAJ20802 PAJ20805 COJ208

PAJ20901 PAJ20902 COJ209

PAJ21002 PAJ21001 COJ210

PAJ21102 PAJ21101 COJ211

PAL20002 PAL20001 COL200

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

PAR20002 PAR20001 COR200

PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203

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

PAU200048 PAU200047 PAU200046 PAU200045 PAU200044 PAU200043 PAU200042 PAU200041 PAU200040 PAU200039 PAU200038 PAU200037 PAU200036 PAU200035 PAU200034 PAU200033 PAU200032 PAU200031 PAU200030 PAU200029 PAU200028 PAU200027 PAU200026 PAU200025 PAU200024 PAU200023 PAU200022 PAU200021 PAU200020 PAU200019 PAU200018 PAU200017 PAU200016 PAU200015 PAU200014 PAU200013

PAU200012 PAU200011 PAU200010 PAU20009 PAU20008 PAU20007 PAU20006 PAU20005 PAU20004 PAU20003 PAU20002 PAU20001

COU200

PAXC20001

PAXC20002

COXC200

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 31

73 Curiosity Nano Base for Click boardstrade

Figure 7-4 AVR128DA48 Curiosity Nano Pinout Mapping

USB

DEB

UG

GER

AVR1

28D

A48

SW0

LED

0

PS L

EDNC

NC

ID

ID

CDC RX

CDCRX

USART1 TX

PC0

CDC TX

CDCTX

USART1 RX

PC1

DBG1

DBG1

PC6

LED0

DBG2

DBG2

PC7

SW0

PA0

PA0

USART0 TX

PTC XY0

PA1

PA1

USART0 RX

PTC XY1

PC2

PC2

TWI0 SDA

PC3

PC3

TWI0 SCL

PA4

PA4

SPI0 MOSI

PTC XY4

PA5

PA5

SPI0 MISO

PTC XY5

PA6

PA6

SPI0 SCK

PTC XY6

PA7

PA7

SPI0 SS

PTC XY7

GND

GND

PF4

PF4

USART2 TX

PTC XY36

PF5

PF5

USART2 RX

PTC XY37

PF2

PF2

PTC XY34

PF3

PF3

PTC XY35

PB0

PB0

PTC XY8

PB1

PB1

PTC XY9

PB2

PB2

PTC XY10

PB3

PB3

PTC XY11

GND

GND

PC0

PC0

USART1 TX

CDC RX

PC1

PC1

USART1 RX

CDC TX

PC6

PC6

LED0

PC7

PC7

SW0

VBUS

VBUS

VOFF

VOFF

DBG3

DBG3

PF6

DBG0

DBG0

UPDI

GND

GND

VTG

VTG

PD7

PD7

AIN7

PTC XY23

PD6

PD6

AIN6

PTC XY22

PD2

PD2

AIN2

PTC XY18

TCA0 WO2

PD1

PD1

AIN1

PTC XY17

TCA0 WO1

PD0

PD0

AIN0

PTC XY16

TCA0 WO0

PD5

PD5

AIN5

PTC XY21

PD4

PD4

AIN4

PTC XY20

PD3

PD3

AIN3

PTC XY19

GND

GND

PE3

PE3

PTC XY27

PE2

PE2

PTC XY26

PE1

PE1

PTC XY25

PE0

PE0

PTC XY24

PA3

PA3

PTC XY3

PA2

PA2

PTC XY2

PB5

PB5

PTC XY13

PB4

PB4

PTC XY12

GND

GND

PC5

PC5

PC4

PC4

(PF1)

(PF1)

(PTC XY33)

XTAL32K2

(PF0)

(PF0)

(PTC XY32)

XTAL32K1

DEB

UG

GER

AVR1

28D

A48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

Touch

Shared pin

AVR1

28D

A48

Curio

sity

Nan

o

1

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

2

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

3

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

Xpl

aine

d Pr

o Ex

tens

ion

EXT1

12

1920

Curio

sity

Nan

o Ba

sefo

r clic

k bo

ards

TM

PD3

PD0

PD7

PD6

PA7

PA1

PA6

PA0

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

PD4

PD1

PF3

PF2

PE2

PF5

PA6

PF4

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

PD5

PD2

PE1

PE0

PE3

PA1

PA6

PA0

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

ID

GND

PD4

PD5

PF3

PE1

PD1

PD2

PF2

PE3

PC2

PC3

PF5

PF4

PE2

PA4

PA5

PA6

GND

+33V

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 32

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

The block diagram below shows all connections between the debugger and the AVR128DA48 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 7-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 7-6 Details about connecting an external debugger are described in 36 Connecting ExternalDebuggers

Figure 7-5  On-Board Debugger Connections Block Diagram

DEB

UG

GER

TARGETLevel-Shift

PA04PA06PA07PA08PA16PA00PA01

USB

DIR x 5

VCC_P3V3

VBUS

VCC

_LEV

EL

VCC

_TA

RGET

DBG0DBG1DBG2DBG3CDC 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

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 33

Figure 7-6 On-Board Debugger Connection Cut Straps

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

75 Getting Started with IARIAR Embedded Workbenchreg for AVRreg is a proprietary high-efficiency compiler not based on GCC Programming anddebugging of AVR128DA48 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 7-73 In the category Debugger select the Setup tab Select Atmel-ICE as the driver as shown in Figure 7-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 7-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

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 34

Figure 7-7 Select Target Device

Figure 7-8 Select Debugger

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 35

Figure 7-9 Configure Interface

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 36

The Microchip WebsiteMicrochip provides online support via our website at httpwwwmicrochipcom This website is used to make filesand information 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 ServiceMicrochiprsquos 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 httpwwwmicrochipcompcn and follow the registration instructions

Customer SupportUsers 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 httpwwwmicrochipcomsupport

Microchip Devices Code Protection FeatureNote the following details of the code protection feature on Microchip devices

bull Microchip products meet the specification contained in their particular Microchip Data Sheetbull Microchip believes that its family of products is one of the most secure families of its kind on the market today

when used in the intended manner and under normal conditionsbull There are dishonest and possibly illegal methods used to breach the code protection feature All of these

methods to our knowledge require using the Microchip products in a manner outside the operatingspecifications contained in Microchiprsquos Data Sheets Most likely the person doing so is engaged in theft ofintellectual property

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

protection does not mean that we are guaranteeing the product as ldquounbreakablerdquo

Code protection is constantly evolving We at Microchip are committed to continuously improving the code protectionfeatures of our products Attempts to break Microchiprsquos code protection feature may be a violation of the DigitalMillennium Copyright Act If such acts allow unauthorized access to your software or other copyrighted work youmay have a right to sue for relief under that Act

Legal NoticeInformation contained in this publication regarding device applications and the like is provided only for yourconvenience and may be superseded by updates It is your responsibility to ensure that your application meets with

AVR128DA48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 37

your specifications MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHEREXPRESS OR IMPLIED WRITTEN OR ORAL STATUTORY OR OTHERWISE RELATED TO THE INFORMATIONINCLUDING BUT NOT LIMITED TO ITS CONDITION QUALITY PERFORMANCE MERCHANTABILITY ORFITNESS FOR PURPOSE Microchip disclaims all liability arising from this information and its use Use of Microchipdevices in life support andor safety applications is entirely at the buyerrsquos risk and the buyer agrees to defendindemnify and hold harmless Microchip from any and all damages claims suits or expenses resulting from suchuse No licenses are conveyed implicitly or otherwise under any Microchip intellectual property rights unlessotherwise stated

TrademarksThe 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-5760-2

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

AVR128DA48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 38

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupporthttpwwwmicrochipcomsupportWeb AddresshttpwwwmicrochipcomAtlantaDuluth 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 DS50002971A-page 39

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Kit Overview
      • 2 Getting Started
        • 21 Quick Start
        • 22 Design Documentation and Relevant Links
          • 3 Curiosity Nano
            • 31 On-Board Debugger Overview
              • 311 Debugger
              • 312 Virtual Serial Port (CDC)
                • 3121 Overview
                • 3122 Operating System Support
                • 3123 Limitations
                • 3124 Signaling
                • 3125 Advanced Use
                  • 313 Mass Storage Device
                    • 3131 Mass Storage Device Implementation
                    • 3132 Fuse Bytes
                    • 3133 Limitations of Drag-and-Drop Programming
                    • 3134 Special Commands
                      • 314 Data Gateway Interface (DGI)
                        • 3141 Debug GPIO
                        • 3142 Timestamping
                            • 32 Curiosity Nano Standard Pinout
                            • 33 Power Supply
                              • 331 Target Regulator
                              • 332 External Supply
                              • 333 VBUS Output Pin
                              • 334 Power Supply Exceptions
                                • 34 Low Power Measurement
                                • 35 Programming External Microcontrollers
                                  • 351 Supported Devices
                                  • 352 Software Configuration
                                  • 353 Hardware Modifications
                                  • 354 Connecting to External Microcontrollers
                                    • 36 Connecting External Debuggers
                                      • 4 Hardware User Guide
                                        • 41 Connectors
                                          • 411 AVR128DA48 Curiosity Nano Pinout
                                          • 412 Using Pin Headers
                                            • 42 Peripherals
                                              • 421 LED
                                              • 422 Mechanical Switch
                                              • 423 Crystal
                                              • 424 On-Board Debugger Implementation
                                                • 4241 On-Board Debugger Connections
                                                  • 5 Hardware Revision History and Known Issues
                                                    • 51 Identifying Product ID and Revision
                                                    • 52 Revision 3
                                                      • 6 Document Revision History
                                                      • 7 Appendix
                                                        • 71 Schematic
                                                        • 72 Assembly Drawing
                                                        • 73 Curiosity Nano Base for Click boardstrade
                                                        • 74 Disconnecting the On-board Debugger
                                                        • 75 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: AVR128DA48 Curiosity Nano User Guide - Microchip Technologyww1.microchip.com/downloads/en/DeviceDoc/AVR128DA48... · 2020-03-19 · AVR128DA48 Curiosity Nano AVR128DA48 Curiosity

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

3123 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

3124 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 the DTR signal will not disable the level shifters but disable the receiver so no further data will bestreamed to the host Data packets that are already queued up for sending to the target will continue to be sent outbut no further data will be accepted

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

3125 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=

The maximum message length is 50 characters ndash all remaining data in the frame are ignored

The default baud rate used in this mode is 9600 bps but if the CDC is already active or has been configured thepreviously used baud rate still applies

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 9

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 because the on-board debugger buffers framesand not bytes A maximum of four 64-byte frames can be active at any time The on-board debugger will throttle theincoming frames 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

313 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 supportbull Write access for programming Intelreg HEX formatted files into the target devicersquos memorybull Write access for simple text files for utility purposes

3131 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 wayfulfill the 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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 10

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

3132 Fuse Bytes

Fuse Bytes (AVRreg MCU Targets)When doing drag-and-drop programming the debugger masks out fuse bits that attempt to disable Unified Programand Debug Interface (UPDI) This means that the UPDI pin cannot be used in its reset or GPIO modes selecting oneof the alternative functions on the UPDI pin would render the device inaccessible without using an external debuggercapable of high-voltage UPDI activation

3133 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 useAtmel StudioMicrochip MPLABreg X IDE

Enabling CRC Check in FusesIt is not advisable to enable the CRC check in the target devicersquos fuses when using drag-and-drop programming Thisbecause 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 Atmel StudioMicrochip MPLABreg

X IDE which will automatically clear the CRC fuses after erasing

3134 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

Table 3-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 ldquoCDC Override Moderdquo

CMDRESET Resets the target device by entering Programming mode and then exitingProgramming mode immediately thereafter Exact timing can vary according tothe programming interface of the target device (Debugger firmware v116 ornewer)

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

CMD0V Powers down the target device by disabling the target supply regulator Ifexternal power is provided this has no effect (Debugger firmware v116 ornewer)

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

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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 11

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

314 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 Atmel StudioMicrochip MPLABreg X IDE

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

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

3141 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 VisualizerFigure 3-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

3142 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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 12

32 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 3-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

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 3-3 Curiosity Nano Standard Pinout

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

33 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 AVR128DA48 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 AVR128DA48Curiosity Nano

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 13

Figure 3-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

331 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 implementationis 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 AVR128DA48microcontroller The voltage limits configured in the on-board debugger on AVR128DA48 Curiosity Nano are18-51V

Info  The target voltage is set to 33V when the board is manufactured It can be changed throughMPLAB X IDE project properties and in the Atmel Studio device programming dialog Any change to thetarget voltage is persistent even through 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 Atmel StudioMicrochip MPLABreg X IDE are not immediatelyapplied to the board The new voltage setting is applied to the board when the debugger is accessed inany way like pushing the Refresh 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 only supports settings of 00V 33V and 50V See section 3134 Special Commands forfurther details

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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 14

Figure 3-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

Info  If the external voltage is lower than the monitoring window lower limit (target voltage setting - 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

332 External SupplyAVR128DA48 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 AVR128DA48 is 18-55V Applying a higher voltage may cause permanent damage to theboard

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 15

Info  If an external voltage is applied without pulling the VOFF pin low and an external supply pulls thevoltage lower than the monitoring window 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 AVR128DA48 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

333 VBUS Output PinAVR128DA48 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

Figure 3-6 VBUS Output Voltage vs Current

334 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 between 44V to 525V) and thevoltage drop over the MIC5353 regulator at a given voltage setting and current consumption If a higher outputvoltage is needed use a USB power source that can provide a higher input voltage or use an external voltage supplyon the VTG pin

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 16

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 differ more than 100 mV overunder the voltage setting it will be detected by the on-board debugger and theinternal voltage regulator will be shut down To fix this issue remove the applied voltage from the VTG pin and theon-board debugger will enable the on-board voltage regulator when the new condition is detected Note that the PSLED will be blinking rapidly if the target voltage is below 100 mV of the setting but will be lit normally when it is higherthan 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 really a special case of the issue mentioned above Removethe short-circuit and the on-board debugger will re-enable the on-board target voltage regulator

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

34 Low Power MeasurementPower to the AVR128DA48 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 AVR128DA48 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 AVR128DA48

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 17

Figure 3-7 Target Power Strap

Target Power strap (top side)

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 are tri-state to prevent leakage All IOs connected to the on-boarddebugger are listed in 4241 On-Board Debugger Connections To prevent any leakage to the on-boardlevel shifters they can be disconnected completely as described in 74 Disconnecting the On-boardDebugger

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

351 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

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

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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 18

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

Figure 3-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

353 Hardware ModificationsThe on-board debugger is connected to the AVR128DA48 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 AVR128DA48 from the on-board debugger

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 19

Figure 3-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 AVR128DA48 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 AVR128DA48

354 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 33 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

AVR128DA48 Curiosity Nano has a pull-up resistor R200 connected to its RESET signal (DBG3) The location ofthe pull-up resistor is shown in the 72 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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 20

Figure 3-10 Curiosity Nano Standard Pinout

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

Table 3-4 Programming and Debugging Interfaces

Curiosity Nano Pin UPDI ICSPtrade SWD

DBG0 UPDI DATA SWDIO

DBG1 - CLK SWCLK

DBG2 - - -

DBG3 - MCLR RESET

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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 21

Figure 3-11 Connecting the MPLABreg PICkittrade 4 In-Circuit DebuggerProgrammer to AVR128DA48 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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 22

Figure 3-12 Connecting the Atmel-ICE to AVR128DA48 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 Atmel StudioMicrochip MPLABreg XIDE or mass storage programming while the external tool is active

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 23

4 Hardware User Guide

41 Connectors

411 AVR128DA48 Curiosity Nano PinoutAll the AVR128DA48 IO pins are accessible at the edge connectors on the board The image below shows the boardpinout

Figure 4-1 AVR128DA48 Curiosity Nano Pinout

USB

DEBUGGER

AVR128DA48

SW0

LED0

PS LEDNC

NC

ID

ID

CDC RX

CDCRXUSART1 TXPC0

CDC TX

CDCTXUSART1 RXPC1

DBG1

DBG

1PC6LED0

DBG2

DBG

2PC7SW0

PA0

PA0USART0 TXPTC XY0

PA1PA

1USART0 RXPTC XY1

PC2PC2TWI0 SDA

PC3

PC3TWI0 SCL

PA4

PA4SPI0 MOSIPTC XY4

PA5

PA5SPI0 MISOPTC XY5

PA6

PA6SPI0 SCKPTC XY6

PA7

PA7SPI0 SSPTC XY7

GND

GN

D

PF4

PF4USART2 TXPTC XY36

PF5

PF5USART2 RXPTC XY37

PF2

PF2PTC XY34

PF3

PF3PTC XY35

PB0

PB0PTC XY8

PB1

PB1PTC XY9

PB2

PB2PTC XY10

PB3

PB3PTC XY11

GND

GN

D

PC0

PC0USART1 TXCDC RX

PC1

PC1USART1 RXCDC TX

PC6

PC6LED0

PC7

PC7SW0

VBUS

VBU

S

VOFF

VO

FFDBG3

DBG

3 PF6

DBG0D

BG0 UPDI

GND

GN

D

VTG

VTG

PD7

PD7 AIN7 PTC XY23

PD6

PD6 AIN6 PTC XY22

PD2

PD2 AIN2 PTC XY18 TCA0 WO2

PD1

PD1 AIN1 PTC XY17 TCA0 WO1

PD0

PD0 AIN0 PTC XY16 TCA0 WO0

PD5

PD5 AIN5 PTC XY21

PD4

PD4 AIN4 PTC XY20

PD3

PD3 AIN3 PTC XY19

GND

GN

D

PE3

PE3 PTC XY27

PE2

PE2 PTC XY26

PE1

PE1 PTC XY25

PE0

PE0 PTC XY24

PA3

PA3 PTC XY3

PA2

PA2 PTC XY2

PB5

PB5 PTC XY13

PB4

PB4 PTC XY12

GND

GN

D

PC5

PC5

PC4

PC4

(PF1)

(PF1) (PTC XY33) XTAL32K2

(PF0)

(PF0) (PTC XY32) XTAL32K1

DEBUGGERAVR128DA48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

Touch

Shared pin

AVR128DA48Curiosity Nano

412 Using Pin HeadersThe edge connector footprint on AVR128DA48 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

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

AVR128DA48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 24

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

42 Peripherals

421 LEDThere is one yellow user LED available on the AVR128DA48 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 4-1 LED Connection

AVR128DA48 Pin Function Shared Functionality

PC6 Yellow LED0 Edge connector On-board debugger

422 Mechanical SwitchThe AVR128DA48 Curiosity Nano has one mechanical switch This is a generic user-configurable switch When theswitch 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 PC7

Table 4-2 Mechanical Switch

AVR128DA48 Pin Description Shared Functionality

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

423 Crystal

The AVR128DA48 Curiosity Nano board has a 32768 kHz crystal mounted

The AVR128DA48 is connected to the crystal by default but the GPIOs are also routed to the edge connectorthrough two solder points The two IO lines routed to the edge connector are disconnected by default to reduce thechance of an external signal causing contention with the crystal and to remove excessive capacitance on the linesTo use PF0 and PF1 as GPIO some hardware modifications are required

bull Disconnect the crystal by cutting the two straps on the top side of the board next to the crystal (J210 J211) Thecrystal 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 (J207 J208)

The cut straps and solder points can be seen in Figure 4-2

Table 4-3 Crystal Connections

AVR128DA48 Pin Function Shared Functionality

PF0 TOSC1 (Crystal input) Edge connector

PF1 TOSC2 (Crystal output) Edge connector

AVR128DA48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 25

Figure 4-2 Crystal Connection and Cut Straps

424 On-Board Debugger ImplementationAVR128DA48 Curiosity Nano features an on-board debugger that can be used to program and debug theAVR128DA48 using UPDI The on-board debugger also includes a virtual serial port (CDC) interface over UART anddebug GPIO Atmel StudioMicrochip MPLABreg X IDE 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

4241 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 31 On-Board DebuggerOverview

Table 4-4 On-Board Debugger Connections

AVR128DA48Pin

Debugger Pin Function Shared Functionality

RF1 CDC TX UART RX (AVR128DA48 RX line) Edge connector

RF0 CDC RX UART TX (AVR128DA48 TX line) Edge connector

UPDI DBG0 UPDI Edge connector

PC6 DBG1 GPIO1 Edge connector LED

PC7 DBG2 GPIO0 Edge connector Mechanical Switch

PF6 DBG3 RESET Edge connector

AVR128DA48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 26

5 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

51 Identifying Product ID and RevisionThe revision and product identifier of the AVR128DA48 Curiosity Nano Board can be found in two ways Either byutilizing the Atmel StudioMicrochip MPLABreg X IDE Kit Window or by looking at the sticker on the bottom side of thePCB

By connecting AVR128DA48 Curiosity Nano to a computer with Atmel StudioMicrochip MPLABreg X IDE running theKit Window will pop up The first six digits of the serial number which is listed under kit information contain theproduct identifier 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 AVR128DA48 Curiosity Nano is A09-3280

52 Revision 3Revision 3 is the initially released revision There are no known issues with this revision

AVR128DA48 Curiosity NanoHardware Revision History and Known Issues

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 27

6 Document Revision HistoryDoc rev Date Comment

A 032020 Initial document release

AVR128DA48 Curiosity NanoDocument Revision History

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 28

7 Appendix

71 SchematicFigure 7-1 AVR128DA48 Curiosity Nano Schematic

11

22

33

44

55

66

77

88

DD

CC

BB

AA

2 of

4

AVR1

28D

A48

Curio

sity

Nan

o

102

320

19AV

R128

DA

48_C

urio

sity

_Nan

o_Ta

rget

_MCU

Sch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA R

evisi

on

File

PC

B N

umbe

rPC

B Re

visio

n

Des

igne

d wi

th

Dra

wn

By

PB Shee

t Titl

eTa

rget

MCU

Engi

neer

A

H T

F

A08

-300

23

Size

A3

A09

-328

03

Page

D

ateA

ltium

com

GN

DV

CC_T

ARG

ET

100n

C201

GN

D

PA5_

SPI0

_MIS

OPA

6_SP

I0_S

CKPA

7_SP

I0_S

SPB

0_U

ART

3_TX

PB1_

UA

RT3_

RXPB

2PB

3PB

4PB

5PC

0_U

ART

1_TX

PC1_

UA

RT1_

RXPC

2_I2

C0_S

DA

PC3_I2C0_SCL

PC4PC5PC6_LED0_GPIO1PC7_SW0_GPIO0PD0_AIN0_WO0PD1_AIN1_WO1PD2_AIN2_WO2PD3_AIN3PD4_AIN4

PA3

PA1_UART0_RX

UPDI

PF5_UART2_RX

PF3

PF2

PF1_

TOSC

2PF

0_TO

SC1

PE3

PE2

PE1

PE0

PD5_

AIN

5PD

6_A

IN6

PD7_

AIN

7

GN

D

VCC

_TA

RGET

100n

C202

GN

DV

CC_T

ARG

ET10

0n

C200

PF1_TOSC2

PF0_TOSC1

PA2

PA0_UART0_TX

PF4_UART2_TX

PA4_SPI0_MOSI

GN

D

PA7_

SPI0

_SS

PA6_

SPI0

_SCK

PA5_

SPI0

_MIS

OPA

4_SP

I0_M

OSI

PA3

PA2

PA1_

UA

RT0_

RXPA

0_U

ART

0_TX

PB0_

UA

RT3_

TXPB

1_U

ART

3_RX

PB2

PB3

PB4

PB5

PD7_

AIN

7PD

6_A

IN6

PF5_

UA

RT2_

RXPF

4_U

ART

2_TX

PF3

PF2

32kH

z C

ryst

al

1kR203

USE

R L

ED

VCC

_TA

RGET

PF6_RESET

PC7_SW0_GPIO0

PC6_LED0_GPIO1

GN

D

USE

R B

UTT

ON

PE3

PE2

PE1

PE0

PC0_

UA

RT1_

TXPC

1_U

ART

1_RX

PC2_

I2C0

_SD

APC

3_I2

C0_S

CL

PC4

PC5

PC6_

LED

0_G

PIO

1PC

7_SW

0_G

PIO

0

1kR202

YELLOWLEDSML-D12Y1WT86

2 1D200

TS604VM1-035CR13

4 2

SW20

0

GN

DV

CC_E

DG

E

GN

DG

ND

GN

DG

ND

UPD

IPF

6_RE

SET

J207

J208

J209

BLM

18PG

471S

N1

L200

AVR1

28D

A48

22u

FC2

05

VCC

_ED

GE

GN

D

DBG0

CDC_

UART

TXRXU

ART

CDC_TXCDC_RX

DBG2

DBG1

DBG3

DBG2

DEB

UG

GER

CO

NN

ECTI

ON

S

DBG1

DBG3DBG0

VOFF

ID_S

YS

ID_SYS

VOFF

TAR

GET

BU

LK

VCC

_TA

RGET

RES

ET P

ull

VBU

S

CDC

RX3

CDC

TX4

DBG

15

DBG

26

0 TX

71

RX8

2 SD

A9

3 SC

L10

4 M

OSI

115

MIS

O12

6 SC

K13

7 SS

14G

ND

150

(TX

)16

1 (R

X)

172

183

190

20

GN

D24

DBG

354

DBG

053

GN

D52

VCC

51

PWM

346

AD

C 2

45A

DC

144

AD

C 0

43G

ND

42

438

434

GN

D33

AD

C 7

50A

DC

649

AD

C 5

48PW

M 4

47

DEB

UG

GER

TARG

ET

ID2

VO

FF55

121

222

323

025

126

227

328

429

530

631

732

535

636

737

539

640

741

RESE

RVED

1V

BUS

56

CNA

NO

56-p

in e

dge

conn

ecto

r

J200

J201

J203

J205

J206

J202

J204

PF1

PF0

PF1_

TOSC

2PF

0_TO

SC1

NC

J211

J210

XOUT

XIN

47kR200

AVR

128D

A48

UPD

I

GPI

O1

GPI

O0

RESE

T

DBG

0

DBG

1

DBG

2

DBG

3

Deb

ugge

r

CD

C T

X

CD

C R

X

UA

RT1

RX

UA

RT1

TX

VTG

18V

- 5

5VPC6

PC7

PF6

UPD

I

PC0

PC1

Nam

ePi

n

PA5

1PA

62

PA7

3PB

04

PB1

5PB

26

PB3

7PB

48

PB5

9PC

010

PC1

11PC

212

PC3 13VDD 14GND 15PC4 16PC5 17PC6 18PC7 19PD0 20PD1 21PD2 22PD3 23PD4 24

PD5

25PD

626

PD7

27AV

DD28

GND

29PE

030

PE1

31PE

232

PE3

33XT

AL32

K1P

F034

XTAL

32K2

PF1

35PF

236

PF337 PF438 PF539 PF640 UPDI41 VDD42 GND43 EXTCLKPA044 PA145 PA246 PA347 PA448

AVR1

28D

A48

TQ

FPU

200

PC0_

UA

RT1_

TXPC

1_U

ART

1_RX

PC6_

LED

0_G

PIO

1PC

7_SW

0_G

PIO

0

AVD

D

PD2_

AIN

2_W

O2

PD1_

AIN

1_W

O1

PD0_

AIN

0_W

O0

PD5_

AIN

5PD

4_A

IN4

PD3_

AIN

3

XC2

00

12p

C203

12p

C204

327

68 k

Hz

Crys

tal d

atas

heet

Cc

rysta

l = 9

pFm

ax E

SR =

70k

Ohm

Acc

urac

y plusmn2

0ppm

AVR1

28D

A48

dat

ashe

et

Cxin

= 4

1pF

Cxou

t = 6

0pF

Cl asymp

1( (

14

1pF)

+ (1

60

pF) )

asymp2

44pF

Max

imum

Loa

d =

125

pFM

axim

um E

SR =

80k

Ohm

Estim

ated

Cpc

b =

05p

F

Estim

ated

load

C =

2 (C

crys

tal-

Cpar

a - C

pcb)

C

= 2

(9pF

- 2

44pF

- 0

5pF)

C =

121

2pF

Sele

cted

in d

esig

n af

ter v

erifi

catio

nC=

12p

F12

pF

NO

TE o

n U

ART

CD

C

RXT

X o

n th

e he

ader

den

otes

the

inpu

tout

put d

irect

ion

of th

e sig

nal

resp

ectiv

e to

its

sour

ce

CDC

TX is

out

put f

rom

the

DEB

UG

GER

CD

C RX

is in

put t

o th

e D

EBU

GG

ER

TX is

out

put f

rom

the

TARG

ET d

evic

eRX

is in

put t

o th

e TA

RGET

dev

ice

NO

TE o

n I2

C

No

pull-

ups o

n bo

ard

Pul

l-ups

shou

ld b

e m

ount

ed c

lose

to sl

ave

devi

ce(s

)

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 29

11

22

33

44

55

66

77

88

DD

CC

BB

AA

3 of

4

AVR1

28D

A48

Curio

sity

Nan

o

102

320

19AV

R128

DA

48_C

urio

sity

_Nan

o_D

ebug

gerS

chD

oc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA R

evisi

on

File

PC

B N

umbe

rPC

B Re

visio

n

Des

igne

d wi

th

Dra

wn

By

PB Shee

t Titl

eD

ebug

ger

Engi

neer

A

H T

F

A08

-300

23

Size

A3

A09

-328

03

Page

D

ateA

ltium

com

DEB

UG

GER

USB

MIC

RO

-B C

ON

NEC

TOR

GN

D

USB

D_P

USB

D_N

100n

C107

100n

C108

RXTXU

ART

CDC_

UART

1kR1

07V

CC_P

3V3

SRST

STAT

US_

LED

SHIE

LD

VBU

S

VCC

_P3V

3G

ND

TP10

0

Testp

oint

Arra

y

12

34

56

78

910

TCK

TDO

TMS

Vsu

pTD

IG

ND

TRST

SRST

VTr

efG

ND

J102

GN

D

47u

F

C100

DBG0

DBG

0

21

GRE

EN L

EDSM

L-P1

2MTT

86R

D10

0

VBUS

1D-

2D+

3

GND

5SH

IELD

16

SHIE

LD2

7

ID4

SHIE

LD3

8SH

IELD

49 M

U-M

B014

2AB2

-269

J105

PAD

33

PA00

1PA

012

PA02

3PA

034

GND 10VDDANA 9

PA04

5PA

056

PA06

7PA

078

PA08 11PA09 12PA10 13PA11 14PA14 15PA15 16

PA16

17PA

1718

PA18

19PA

1920

PA22

21US

B_SO

FPA

2322

USB_

DMP

A24

23US

B_DP

PA2

524

PA2725 RESETN26 PA2827 GND28 VDDCORE29 VDDIN30 SWDCLKPA3031 SWDIOPA3132

SAM

D21

E18A

-MU

TU

100

VOUT

1

VOUT

2

GND 3

EN4

VIN

6

NC5

EP 7

MIC

5528

-33

YM

TU

101

VCC

_P3V

3

GN

D

USB

D_P

USB

D_N

GN

D

1uC106

VCC

_MCU

_CO

RE

VCC

_P3V

3

VCC

_P3V

3

22u

FC1

01

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

3V

CC_P

3V3

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

4V

CC_P

3V3

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

5V

CC_P

3V3

GN

D

GN

D GN

D

GN

D

VCC

_ED

GE

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

7V

CC_P

3V3

GN

DDB

G2

DBG

3_CT

RL

S1_0

_TX

S1_1

_RX

S0_2

_TX

DA

CV

TG_A

DC

RESE

RVED

S0_3

_CLK

DBG0_CTRL

CDC_

TX_C

TRL

BOO

T

DEB

UG

GER

PO

WER

STA

TUS

LED

EN1

BYP

6

VOUT

4

GND

2

VIN

3

NCA

DJ5

GND 7

MIC

5353

U10

2

100n

C102

GN

D

GN

D

47kR101

27kR104 G

ND

33k

R106

22u

F

C103 G

ND

1kR1

08

J100

VCC

_LEV

ELV

CC_R

EGU

LATO

R

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

6V

CC_P

3V3

GN

DDB

G1

CDC_

RXCD

C_TX

DBG3

DBG1_CTRL

DEB

UG

GER

REG

ULA

TOR

REG_ENABLE

REG

_EN

ABL

E

47kR103

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

47kR102

47kR105

SWCL

K

GN

D

47kR100 G

ND

DBG

2

S0_0

_RX

DBG

1_CT

RL

DBG

0_CT

RL

DBG

3 O

PEN

DR

AIN

TAR

GET

AD

JUST

ABL

E R

EGU

LATO

R

SRST

DEB

UG

GER

TES

TPO

INT DBG2_CTRL

VO

FFCD

C_RX

_CTR

L

47kR109

DBG

1

CDC_

TX_C

TRL

CDC_

RX_C

TRL

SWCL

K

REG_ADJUST

DBG2_GPIO

DBG

3_CT

RL

DBG

2_CT

RL

UPD

I

UPD

I

GPI

O

GPI

O

RESE

T

Sign

al

DBG

0

DBG

1

DBG

2

DBG

3

ICSP

Inte

rface

DAT

CLK

GPI

O

MCL

R

DBG

3

CD

C T

X

CD

C R

X

UA

RT R

X

UA

RT T

X

UA

RT R

X

UA

RT T

X

TAR

GET

TAR

GET

1kR1

10

VBUS_ADC

1

23

DM

N65

D8L

FBQ

101

VC

C-

-

ID_S

YS

VOFF

1kR112

VCC

_P3V

3

VTG

_AD

CD

AC

MIC

9416

3

VIN

B2VO

UTA1

VIN

A2

ENC2

GND

C1VO

UTB1

U10

8

GN

D

ID_S

YS

VTG

_EN

VTG_EN

VBUS_ADC

SWD

IO

ID_S

YS

TP10

1G

ND

SWD

IO

VO

FF

47kR111 G

ND

ID P

IN

MC3

6213

F100

VCC

_VBU

S

VCC

_VBU

S

VCC

_VBU

S

J101

VCC

_TA

RGET

47k

R113

Prog

ram

min

g co

nnec

tor f

or

fact

ory

prog

ram

min

g of

D

EBU

GG

ER

MIC

5528

Vi

n 2

5V

to 5

5V

Vout

Fix

ed 3

3V

Imax

500

mA

Dro

pout

260

mV

5

00m

A

PTC

Rese

ttabl

e fu

se

Hol

d cu

rrent

500

mA

Trip

cur

rent

100

0mA

Adj

usta

ble

outp

ut a

nd li

mita

tions

- T

he D

EBU

GG

ER c

an a

djus

t the

out

put v

olta

ge o

f the

regu

lato

r bet

wee

n 1

25V

and

51

V to

the

targ

et

- The

vol

tage

out

put i

s lim

ited

by th

e in

put (

USB

) w

hich

can

var

y be

twee

n 4

40V

to 5

25V

- The

leve

l shi

fters

hav

e a

min

imal

vol

tage

leve

l of 1

65V

and

will

lim

it th

e m

inim

um o

pera

ting

volta

ge a

llow

ed fo

r the

ta

rget

to st

ill a

llow

com

mun

icat

ion

- The

MIC

9416

3 ha

s a m

inim

al v

olta

ge le

vel o

f 17

0V a

nd w

ill li

mit

the

min

imum

vol

tage

del

iver

ed to

the

targ

et

- Firm

war

e co

nfig

urat

ion

will

lim

it th

e vo

ltage

rang

e to

be

with

in th

e th

e ta

rget

spec

ifica

tion

R113

is re

quire

d to

pul

l the

Q

101

gate

to a

def

ined

va

lue

whe

n th

e U

100

is no

t po

wer

ed

J100

Cu

t-stra

p us

ed fo

r ful

l sep

arat

ion

of ta

rget

pow

er fr

om th

e le

vel s

hifte

rs a

nd o

n-bo

ard

regu

lato

rs

- For

cur

rent

mea

sure

men

ts us

ing

an e

xter

nal p

ower

supp

ly t

his s

trap

coul

d be

cut

for m

ore

accu

rate

mea

sure

men

ts L

eaka

ge b

ack

thro

ugh

the

switc

h is

in th

e m

icro

am

pere

rang

e

J101

Th

is is

foot

prin

t for

a 1

x2 1

00m

il pi

tch

pin-

head

er th

at c

an b

e us

ed fo

r eas

y cu

rrent

mea

sure

men

t to

the

targ

et m

icro

cont

rolle

r and

the

LED

Bu

tton

To

use

the

foot

prin

t- C

ut th

e tra

ck b

etw

een

the

hole

s an

d m

ount

a p

in-h

eade

r

MIC

5353

Vi

n 2

6V

to 6

VVo

ut 1

25V

to 5

1V

Imax

500

mA

Dro

pout

(typ

ical

) 50

mV

15

0mA

160

mV

5

00m

AA

ccur

acy

2

initi

alTh

erm

al sh

utdo

wn

and

curre

nt li

mit

Max

imum

out

put v

olta

ge is

lim

ited

by th

e in

put v

olta

ge a

nd th

e dr

opou

t vol

tage

in th

e re

gula

tor

(Vm

ax =

Vin

- dr

opou

t)

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 30

72 Assembly DrawingFigure 7-2 AVR128DA48 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

PAC20002 PAC20001 COC200

PAC20102 PAC20101 COC201

PAC20202 PAC20201 COC202

PAC20301 PAC20302 COC203

PAC20401 PAC20402 COC204

PAC20502

PAC20501 COC205

PAD10002 PAD10001 COD100

PAD20001

PAD20002 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

PAJ20701 PAJ20702 PAJ20705 COJ207

PAJ20801 PAJ20802 PAJ20805 COJ208

PAJ20901 PAJ20902 COJ209

PAJ21002 PAJ21001 COJ210

PAJ21102 PAJ21101 COJ211

PAL20002 PAL20001 COL200

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

PAR20002 PAR20001 COR200

PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203

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

PAU200048 PAU200047 PAU200046 PAU200045 PAU200044 PAU200043 PAU200042 PAU200041 PAU200040 PAU200039 PAU200038 PAU200037 PAU200036 PAU200035 PAU200034 PAU200033 PAU200032 PAU200031 PAU200030 PAU200029 PAU200028 PAU200027 PAU200026 PAU200025 PAU200024 PAU200023 PAU200022 PAU200021 PAU200020 PAU200019 PAU200018 PAU200017 PAU200016 PAU200015 PAU200014 PAU200013

PAU200012 PAU200011 PAU200010 PAU20009 PAU20008 PAU20007 PAU20006 PAU20005 PAU20004 PAU20003 PAU20002 PAU20001

COU200

PAXC20001

PAXC20002

COXC200

Figure 7-3 AVR128DA48 Curiosity Nano Assembly Drawing Bottom

ctR

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20002 PAC20001 COC200

PAC20102 PAC20101 COC201

PAC20202 PAC20201 COC202

PAC20301 PAC20302 COC203

PAC20401 PAC20402 COC204

PAC20502

PAC20501 COC205

PAD10002 PAD10001 COD100

PAD20001

PAD20002 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

PAJ20701 PAJ20702 PAJ20705 COJ207

PAJ20801 PAJ20802 PAJ20805 COJ208

PAJ20901 PAJ20902 COJ209

PAJ21002 PAJ21001 COJ210

PAJ21102 PAJ21101 COJ211

PAL20002 PAL20001 COL200

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

PAR20002 PAR20001 COR200

PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203

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

PAU200048 PAU200047 PAU200046 PAU200045 PAU200044 PAU200043 PAU200042 PAU200041 PAU200040 PAU200039 PAU200038 PAU200037 PAU200036 PAU200035 PAU200034 PAU200033 PAU200032 PAU200031 PAU200030 PAU200029 PAU200028 PAU200027 PAU200026 PAU200025 PAU200024 PAU200023 PAU200022 PAU200021 PAU200020 PAU200019 PAU200018 PAU200017 PAU200016 PAU200015 PAU200014 PAU200013

PAU200012 PAU200011 PAU200010 PAU20009 PAU20008 PAU20007 PAU20006 PAU20005 PAU20004 PAU20003 PAU20002 PAU20001

COU200

PAXC20001

PAXC20002

COXC200

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 31

73 Curiosity Nano Base for Click boardstrade

Figure 7-4 AVR128DA48 Curiosity Nano Pinout Mapping

USB

DEB

UG

GER

AVR1

28D

A48

SW0

LED

0

PS L

EDNC

NC

ID

ID

CDC RX

CDCRX

USART1 TX

PC0

CDC TX

CDCTX

USART1 RX

PC1

DBG1

DBG1

PC6

LED0

DBG2

DBG2

PC7

SW0

PA0

PA0

USART0 TX

PTC XY0

PA1

PA1

USART0 RX

PTC XY1

PC2

PC2

TWI0 SDA

PC3

PC3

TWI0 SCL

PA4

PA4

SPI0 MOSI

PTC XY4

PA5

PA5

SPI0 MISO

PTC XY5

PA6

PA6

SPI0 SCK

PTC XY6

PA7

PA7

SPI0 SS

PTC XY7

GND

GND

PF4

PF4

USART2 TX

PTC XY36

PF5

PF5

USART2 RX

PTC XY37

PF2

PF2

PTC XY34

PF3

PF3

PTC XY35

PB0

PB0

PTC XY8

PB1

PB1

PTC XY9

PB2

PB2

PTC XY10

PB3

PB3

PTC XY11

GND

GND

PC0

PC0

USART1 TX

CDC RX

PC1

PC1

USART1 RX

CDC TX

PC6

PC6

LED0

PC7

PC7

SW0

VBUS

VBUS

VOFF

VOFF

DBG3

DBG3

PF6

DBG0

DBG0

UPDI

GND

GND

VTG

VTG

PD7

PD7

AIN7

PTC XY23

PD6

PD6

AIN6

PTC XY22

PD2

PD2

AIN2

PTC XY18

TCA0 WO2

PD1

PD1

AIN1

PTC XY17

TCA0 WO1

PD0

PD0

AIN0

PTC XY16

TCA0 WO0

PD5

PD5

AIN5

PTC XY21

PD4

PD4

AIN4

PTC XY20

PD3

PD3

AIN3

PTC XY19

GND

GND

PE3

PE3

PTC XY27

PE2

PE2

PTC XY26

PE1

PE1

PTC XY25

PE0

PE0

PTC XY24

PA3

PA3

PTC XY3

PA2

PA2

PTC XY2

PB5

PB5

PTC XY13

PB4

PB4

PTC XY12

GND

GND

PC5

PC5

PC4

PC4

(PF1)

(PF1)

(PTC XY33)

XTAL32K2

(PF0)

(PF0)

(PTC XY32)

XTAL32K1

DEB

UG

GER

AVR1

28D

A48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

Touch

Shared pin

AVR1

28D

A48

Curio

sity

Nan

o

1

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

2

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

3

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

Xpl

aine

d Pr

o Ex

tens

ion

EXT1

12

1920

Curio

sity

Nan

o Ba

sefo

r clic

k bo

ards

TM

PD3

PD0

PD7

PD6

PA7

PA1

PA6

PA0

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

PD4

PD1

PF3

PF2

PE2

PF5

PA6

PF4

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

PD5

PD2

PE1

PE0

PE3

PA1

PA6

PA0

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

ID

GND

PD4

PD5

PF3

PE1

PD1

PD2

PF2

PE3

PC2

PC3

PF5

PF4

PE2

PA4

PA5

PA6

GND

+33V

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 32

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

The block diagram below shows all connections between the debugger and the AVR128DA48 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 7-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 7-6 Details about connecting an external debugger are described in 36 Connecting ExternalDebuggers

Figure 7-5  On-Board Debugger Connections Block Diagram

DEB

UG

GER

TARGETLevel-Shift

PA04PA06PA07PA08PA16PA00PA01

USB

DIR x 5

VCC_P3V3

VBUS

VCC

_LEV

EL

VCC

_TA

RGET

DBG0DBG1DBG2DBG3CDC 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

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 33

Figure 7-6 On-Board Debugger Connection Cut Straps

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

75 Getting Started with IARIAR Embedded Workbenchreg for AVRreg is a proprietary high-efficiency compiler not based on GCC Programming anddebugging of AVR128DA48 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 7-73 In the category Debugger select the Setup tab Select Atmel-ICE as the driver as shown in Figure 7-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 7-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

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 34

Figure 7-7 Select Target Device

Figure 7-8 Select Debugger

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 35

Figure 7-9 Configure Interface

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 36

The Microchip WebsiteMicrochip provides online support via our website at httpwwwmicrochipcom This website is used to make filesand information 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 ServiceMicrochiprsquos 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 httpwwwmicrochipcompcn and follow the registration instructions

Customer SupportUsers 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 httpwwwmicrochipcomsupport

Microchip Devices Code Protection FeatureNote the following details of the code protection feature on Microchip devices

bull Microchip products meet the specification contained in their particular Microchip Data Sheetbull Microchip believes that its family of products is one of the most secure families of its kind on the market today

when used in the intended manner and under normal conditionsbull There are dishonest and possibly illegal methods used to breach the code protection feature All of these

methods to our knowledge require using the Microchip products in a manner outside the operatingspecifications contained in Microchiprsquos Data Sheets Most likely the person doing so is engaged in theft ofintellectual property

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

protection does not mean that we are guaranteeing the product as ldquounbreakablerdquo

Code protection is constantly evolving We at Microchip are committed to continuously improving the code protectionfeatures of our products Attempts to break Microchiprsquos code protection feature may be a violation of the DigitalMillennium Copyright Act If such acts allow unauthorized access to your software or other copyrighted work youmay have a right to sue for relief under that Act

Legal NoticeInformation contained in this publication regarding device applications and the like is provided only for yourconvenience and may be superseded by updates It is your responsibility to ensure that your application meets with

AVR128DA48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 37

your specifications MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHEREXPRESS OR IMPLIED WRITTEN OR ORAL STATUTORY OR OTHERWISE RELATED TO THE INFORMATIONINCLUDING BUT NOT LIMITED TO ITS CONDITION QUALITY PERFORMANCE MERCHANTABILITY ORFITNESS FOR PURPOSE Microchip disclaims all liability arising from this information and its use Use of Microchipdevices in life support andor safety applications is entirely at the buyerrsquos risk and the buyer agrees to defendindemnify and hold harmless Microchip from any and all damages claims suits or expenses resulting from suchuse No licenses are conveyed implicitly or otherwise under any Microchip intellectual property rights unlessotherwise stated

TrademarksThe 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-5760-2

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

AVR128DA48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 38

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupporthttpwwwmicrochipcomsupportWeb AddresshttpwwwmicrochipcomAtlantaDuluth 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 DS50002971A-page 39

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Kit Overview
      • 2 Getting Started
        • 21 Quick Start
        • 22 Design Documentation and Relevant Links
          • 3 Curiosity Nano
            • 31 On-Board Debugger Overview
              • 311 Debugger
              • 312 Virtual Serial Port (CDC)
                • 3121 Overview
                • 3122 Operating System Support
                • 3123 Limitations
                • 3124 Signaling
                • 3125 Advanced Use
                  • 313 Mass Storage Device
                    • 3131 Mass Storage Device Implementation
                    • 3132 Fuse Bytes
                    • 3133 Limitations of Drag-and-Drop Programming
                    • 3134 Special Commands
                      • 314 Data Gateway Interface (DGI)
                        • 3141 Debug GPIO
                        • 3142 Timestamping
                            • 32 Curiosity Nano Standard Pinout
                            • 33 Power Supply
                              • 331 Target Regulator
                              • 332 External Supply
                              • 333 VBUS Output Pin
                              • 334 Power Supply Exceptions
                                • 34 Low Power Measurement
                                • 35 Programming External Microcontrollers
                                  • 351 Supported Devices
                                  • 352 Software Configuration
                                  • 353 Hardware Modifications
                                  • 354 Connecting to External Microcontrollers
                                    • 36 Connecting External Debuggers
                                      • 4 Hardware User Guide
                                        • 41 Connectors
                                          • 411 AVR128DA48 Curiosity Nano Pinout
                                          • 412 Using Pin Headers
                                            • 42 Peripherals
                                              • 421 LED
                                              • 422 Mechanical Switch
                                              • 423 Crystal
                                              • 424 On-Board Debugger Implementation
                                                • 4241 On-Board Debugger Connections
                                                  • 5 Hardware Revision History and Known Issues
                                                    • 51 Identifying Product ID and Revision
                                                    • 52 Revision 3
                                                      • 6 Document Revision History
                                                      • 7 Appendix
                                                        • 71 Schematic
                                                        • 72 Assembly Drawing
                                                        • 73 Curiosity Nano Base for Click boardstrade
                                                        • 74 Disconnecting the On-board Debugger
                                                        • 75 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: AVR128DA48 Curiosity Nano User Guide - Microchip Technologyww1.microchip.com/downloads/en/DeviceDoc/AVR128DA48... · 2020-03-19 · AVR128DA48 Curiosity Nano AVR128DA48 Curiosity

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 because the on-board debugger buffers framesand not bytes A maximum of four 64-byte frames can be active at any time The on-board debugger will throttle theincoming frames 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

313 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 supportbull Write access for programming Intelreg HEX formatted files into the target devicersquos memorybull Write access for simple text files for utility purposes

3131 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 wayfulfill the 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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 10

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

3132 Fuse Bytes

Fuse Bytes (AVRreg MCU Targets)When doing drag-and-drop programming the debugger masks out fuse bits that attempt to disable Unified Programand Debug Interface (UPDI) This means that the UPDI pin cannot be used in its reset or GPIO modes selecting oneof the alternative functions on the UPDI pin would render the device inaccessible without using an external debuggercapable of high-voltage UPDI activation

3133 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 useAtmel StudioMicrochip MPLABreg X IDE

Enabling CRC Check in FusesIt is not advisable to enable the CRC check in the target devicersquos fuses when using drag-and-drop programming Thisbecause 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 Atmel StudioMicrochip MPLABreg

X IDE which will automatically clear the CRC fuses after erasing

3134 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

Table 3-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 ldquoCDC Override Moderdquo

CMDRESET Resets the target device by entering Programming mode and then exitingProgramming mode immediately thereafter Exact timing can vary according tothe programming interface of the target device (Debugger firmware v116 ornewer)

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

CMD0V Powers down the target device by disabling the target supply regulator Ifexternal power is provided this has no effect (Debugger firmware v116 ornewer)

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

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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 11

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

314 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 Atmel StudioMicrochip MPLABreg X IDE

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

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

3141 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 VisualizerFigure 3-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

3142 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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 12

32 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 3-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

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 3-3 Curiosity Nano Standard Pinout

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

33 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 AVR128DA48 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 AVR128DA48Curiosity Nano

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 13

Figure 3-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

331 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 implementationis 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 AVR128DA48microcontroller The voltage limits configured in the on-board debugger on AVR128DA48 Curiosity Nano are18-51V

Info  The target voltage is set to 33V when the board is manufactured It can be changed throughMPLAB X IDE project properties and in the Atmel Studio device programming dialog Any change to thetarget voltage is persistent even through 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 Atmel StudioMicrochip MPLABreg X IDE are not immediatelyapplied to the board The new voltage setting is applied to the board when the debugger is accessed inany way like pushing the Refresh 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 only supports settings of 00V 33V and 50V See section 3134 Special Commands forfurther details

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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 14

Figure 3-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

Info  If the external voltage is lower than the monitoring window lower limit (target voltage setting - 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

332 External SupplyAVR128DA48 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 AVR128DA48 is 18-55V Applying a higher voltage may cause permanent damage to theboard

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 15

Info  If an external voltage is applied without pulling the VOFF pin low and an external supply pulls thevoltage lower than the monitoring window 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 AVR128DA48 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

333 VBUS Output PinAVR128DA48 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

Figure 3-6 VBUS Output Voltage vs Current

334 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 between 44V to 525V) and thevoltage drop over the MIC5353 regulator at a given voltage setting and current consumption If a higher outputvoltage is needed use a USB power source that can provide a higher input voltage or use an external voltage supplyon the VTG pin

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 16

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 differ more than 100 mV overunder the voltage setting it will be detected by the on-board debugger and theinternal voltage regulator will be shut down To fix this issue remove the applied voltage from the VTG pin and theon-board debugger will enable the on-board voltage regulator when the new condition is detected Note that the PSLED will be blinking rapidly if the target voltage is below 100 mV of the setting but will be lit normally when it is higherthan 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 really a special case of the issue mentioned above Removethe short-circuit and the on-board debugger will re-enable the on-board target voltage regulator

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

34 Low Power MeasurementPower to the AVR128DA48 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 AVR128DA48 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 AVR128DA48

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 17

Figure 3-7 Target Power Strap

Target Power strap (top side)

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 are tri-state to prevent leakage All IOs connected to the on-boarddebugger are listed in 4241 On-Board Debugger Connections To prevent any leakage to the on-boardlevel shifters they can be disconnected completely as described in 74 Disconnecting the On-boardDebugger

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

351 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

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

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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 18

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

Figure 3-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

353 Hardware ModificationsThe on-board debugger is connected to the AVR128DA48 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 AVR128DA48 from the on-board debugger

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 19

Figure 3-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 AVR128DA48 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 AVR128DA48

354 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 33 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

AVR128DA48 Curiosity Nano has a pull-up resistor R200 connected to its RESET signal (DBG3) The location ofthe pull-up resistor is shown in the 72 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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 20

Figure 3-10 Curiosity Nano Standard Pinout

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

Table 3-4 Programming and Debugging Interfaces

Curiosity Nano Pin UPDI ICSPtrade SWD

DBG0 UPDI DATA SWDIO

DBG1 - CLK SWCLK

DBG2 - - -

DBG3 - MCLR RESET

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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 21

Figure 3-11 Connecting the MPLABreg PICkittrade 4 In-Circuit DebuggerProgrammer to AVR128DA48 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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 22

Figure 3-12 Connecting the Atmel-ICE to AVR128DA48 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 Atmel StudioMicrochip MPLABreg XIDE or mass storage programming while the external tool is active

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 23

4 Hardware User Guide

41 Connectors

411 AVR128DA48 Curiosity Nano PinoutAll the AVR128DA48 IO pins are accessible at the edge connectors on the board The image below shows the boardpinout

Figure 4-1 AVR128DA48 Curiosity Nano Pinout

USB

DEBUGGER

AVR128DA48

SW0

LED0

PS LEDNC

NC

ID

ID

CDC RX

CDCRXUSART1 TXPC0

CDC TX

CDCTXUSART1 RXPC1

DBG1

DBG

1PC6LED0

DBG2

DBG

2PC7SW0

PA0

PA0USART0 TXPTC XY0

PA1PA

1USART0 RXPTC XY1

PC2PC2TWI0 SDA

PC3

PC3TWI0 SCL

PA4

PA4SPI0 MOSIPTC XY4

PA5

PA5SPI0 MISOPTC XY5

PA6

PA6SPI0 SCKPTC XY6

PA7

PA7SPI0 SSPTC XY7

GND

GN

D

PF4

PF4USART2 TXPTC XY36

PF5

PF5USART2 RXPTC XY37

PF2

PF2PTC XY34

PF3

PF3PTC XY35

PB0

PB0PTC XY8

PB1

PB1PTC XY9

PB2

PB2PTC XY10

PB3

PB3PTC XY11

GND

GN

D

PC0

PC0USART1 TXCDC RX

PC1

PC1USART1 RXCDC TX

PC6

PC6LED0

PC7

PC7SW0

VBUS

VBU

S

VOFF

VO

FFDBG3

DBG

3 PF6

DBG0D

BG0 UPDI

GND

GN

D

VTG

VTG

PD7

PD7 AIN7 PTC XY23

PD6

PD6 AIN6 PTC XY22

PD2

PD2 AIN2 PTC XY18 TCA0 WO2

PD1

PD1 AIN1 PTC XY17 TCA0 WO1

PD0

PD0 AIN0 PTC XY16 TCA0 WO0

PD5

PD5 AIN5 PTC XY21

PD4

PD4 AIN4 PTC XY20

PD3

PD3 AIN3 PTC XY19

GND

GN

D

PE3

PE3 PTC XY27

PE2

PE2 PTC XY26

PE1

PE1 PTC XY25

PE0

PE0 PTC XY24

PA3

PA3 PTC XY3

PA2

PA2 PTC XY2

PB5

PB5 PTC XY13

PB4

PB4 PTC XY12

GND

GN

D

PC5

PC5

PC4

PC4

(PF1)

(PF1) (PTC XY33) XTAL32K2

(PF0)

(PF0) (PTC XY32) XTAL32K1

DEBUGGERAVR128DA48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

Touch

Shared pin

AVR128DA48Curiosity Nano

412 Using Pin HeadersThe edge connector footprint on AVR128DA48 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

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

AVR128DA48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 24

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

42 Peripherals

421 LEDThere is one yellow user LED available on the AVR128DA48 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 4-1 LED Connection

AVR128DA48 Pin Function Shared Functionality

PC6 Yellow LED0 Edge connector On-board debugger

422 Mechanical SwitchThe AVR128DA48 Curiosity Nano has one mechanical switch This is a generic user-configurable switch When theswitch 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 PC7

Table 4-2 Mechanical Switch

AVR128DA48 Pin Description Shared Functionality

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

423 Crystal

The AVR128DA48 Curiosity Nano board has a 32768 kHz crystal mounted

The AVR128DA48 is connected to the crystal by default but the GPIOs are also routed to the edge connectorthrough two solder points The two IO lines routed to the edge connector are disconnected by default to reduce thechance of an external signal causing contention with the crystal and to remove excessive capacitance on the linesTo use PF0 and PF1 as GPIO some hardware modifications are required

bull Disconnect the crystal by cutting the two straps on the top side of the board next to the crystal (J210 J211) Thecrystal 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 (J207 J208)

The cut straps and solder points can be seen in Figure 4-2

Table 4-3 Crystal Connections

AVR128DA48 Pin Function Shared Functionality

PF0 TOSC1 (Crystal input) Edge connector

PF1 TOSC2 (Crystal output) Edge connector

AVR128DA48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 25

Figure 4-2 Crystal Connection and Cut Straps

424 On-Board Debugger ImplementationAVR128DA48 Curiosity Nano features an on-board debugger that can be used to program and debug theAVR128DA48 using UPDI The on-board debugger also includes a virtual serial port (CDC) interface over UART anddebug GPIO Atmel StudioMicrochip MPLABreg X IDE 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

4241 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 31 On-Board DebuggerOverview

Table 4-4 On-Board Debugger Connections

AVR128DA48Pin

Debugger Pin Function Shared Functionality

RF1 CDC TX UART RX (AVR128DA48 RX line) Edge connector

RF0 CDC RX UART TX (AVR128DA48 TX line) Edge connector

UPDI DBG0 UPDI Edge connector

PC6 DBG1 GPIO1 Edge connector LED

PC7 DBG2 GPIO0 Edge connector Mechanical Switch

PF6 DBG3 RESET Edge connector

AVR128DA48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 26

5 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

51 Identifying Product ID and RevisionThe revision and product identifier of the AVR128DA48 Curiosity Nano Board can be found in two ways Either byutilizing the Atmel StudioMicrochip MPLABreg X IDE Kit Window or by looking at the sticker on the bottom side of thePCB

By connecting AVR128DA48 Curiosity Nano to a computer with Atmel StudioMicrochip MPLABreg X IDE running theKit Window will pop up The first six digits of the serial number which is listed under kit information contain theproduct identifier 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 AVR128DA48 Curiosity Nano is A09-3280

52 Revision 3Revision 3 is the initially released revision There are no known issues with this revision

AVR128DA48 Curiosity NanoHardware Revision History and Known Issues

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 27

6 Document Revision HistoryDoc rev Date Comment

A 032020 Initial document release

AVR128DA48 Curiosity NanoDocument Revision History

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 28

7 Appendix

71 SchematicFigure 7-1 AVR128DA48 Curiosity Nano Schematic

11

22

33

44

55

66

77

88

DD

CC

BB

AA

2 of

4

AVR1

28D

A48

Curio

sity

Nan

o

102

320

19AV

R128

DA

48_C

urio

sity

_Nan

o_Ta

rget

_MCU

Sch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA R

evisi

on

File

PC

B N

umbe

rPC

B Re

visio

n

Des

igne

d wi

th

Dra

wn

By

PB Shee

t Titl

eTa

rget

MCU

Engi

neer

A

H T

F

A08

-300

23

Size

A3

A09

-328

03

Page

D

ateA

ltium

com

GN

DV

CC_T

ARG

ET

100n

C201

GN

D

PA5_

SPI0

_MIS

OPA

6_SP

I0_S

CKPA

7_SP

I0_S

SPB

0_U

ART

3_TX

PB1_

UA

RT3_

RXPB

2PB

3PB

4PB

5PC

0_U

ART

1_TX

PC1_

UA

RT1_

RXPC

2_I2

C0_S

DA

PC3_I2C0_SCL

PC4PC5PC6_LED0_GPIO1PC7_SW0_GPIO0PD0_AIN0_WO0PD1_AIN1_WO1PD2_AIN2_WO2PD3_AIN3PD4_AIN4

PA3

PA1_UART0_RX

UPDI

PF5_UART2_RX

PF3

PF2

PF1_

TOSC

2PF

0_TO

SC1

PE3

PE2

PE1

PE0

PD5_

AIN

5PD

6_A

IN6

PD7_

AIN

7

GN

D

VCC

_TA

RGET

100n

C202

GN

DV

CC_T

ARG

ET10

0n

C200

PF1_TOSC2

PF0_TOSC1

PA2

PA0_UART0_TX

PF4_UART2_TX

PA4_SPI0_MOSI

GN

D

PA7_

SPI0

_SS

PA6_

SPI0

_SCK

PA5_

SPI0

_MIS

OPA

4_SP

I0_M

OSI

PA3

PA2

PA1_

UA

RT0_

RXPA

0_U

ART

0_TX

PB0_

UA

RT3_

TXPB

1_U

ART

3_RX

PB2

PB3

PB4

PB5

PD7_

AIN

7PD

6_A

IN6

PF5_

UA

RT2_

RXPF

4_U

ART

2_TX

PF3

PF2

32kH

z C

ryst

al

1kR203

USE

R L

ED

VCC

_TA

RGET

PF6_RESET

PC7_SW0_GPIO0

PC6_LED0_GPIO1

GN

D

USE

R B

UTT

ON

PE3

PE2

PE1

PE0

PC0_

UA

RT1_

TXPC

1_U

ART

1_RX

PC2_

I2C0

_SD

APC

3_I2

C0_S

CL

PC4

PC5

PC6_

LED

0_G

PIO

1PC

7_SW

0_G

PIO

0

1kR202

YELLOWLEDSML-D12Y1WT86

2 1D200

TS604VM1-035CR13

4 2

SW20

0

GN

DV

CC_E

DG

E

GN

DG

ND

GN

DG

ND

UPD

IPF

6_RE

SET

J207

J208

J209

BLM

18PG

471S

N1

L200

AVR1

28D

A48

22u

FC2

05

VCC

_ED

GE

GN

D

DBG0

CDC_

UART

TXRXU

ART

CDC_TXCDC_RX

DBG2

DBG1

DBG3

DBG2

DEB

UG

GER

CO

NN

ECTI

ON

S

DBG1

DBG3DBG0

VOFF

ID_S

YS

ID_SYS

VOFF

TAR

GET

BU

LK

VCC

_TA

RGET

RES

ET P

ull

VBU

S

CDC

RX3

CDC

TX4

DBG

15

DBG

26

0 TX

71

RX8

2 SD

A9

3 SC

L10

4 M

OSI

115

MIS

O12

6 SC

K13

7 SS

14G

ND

150

(TX

)16

1 (R

X)

172

183

190

20

GN

D24

DBG

354

DBG

053

GN

D52

VCC

51

PWM

346

AD

C 2

45A

DC

144

AD

C 0

43G

ND

42

438

434

GN

D33

AD

C 7

50A

DC

649

AD

C 5

48PW

M 4

47

DEB

UG

GER

TARG

ET

ID2

VO

FF55

121

222

323

025

126

227

328

429

530

631

732

535

636

737

539

640

741

RESE

RVED

1V

BUS

56

CNA

NO

56-p

in e

dge

conn

ecto

r

J200

J201

J203

J205

J206

J202

J204

PF1

PF0

PF1_

TOSC

2PF

0_TO

SC1

NC

J211

J210

XOUT

XIN

47kR200

AVR

128D

A48

UPD

I

GPI

O1

GPI

O0

RESE

T

DBG

0

DBG

1

DBG

2

DBG

3

Deb

ugge

r

CD

C T

X

CD

C R

X

UA

RT1

RX

UA

RT1

TX

VTG

18V

- 5

5VPC6

PC7

PF6

UPD

I

PC0

PC1

Nam

ePi

n

PA5

1PA

62

PA7

3PB

04

PB1

5PB

26

PB3

7PB

48

PB5

9PC

010

PC1

11PC

212

PC3 13VDD 14GND 15PC4 16PC5 17PC6 18PC7 19PD0 20PD1 21PD2 22PD3 23PD4 24

PD5

25PD

626

PD7

27AV

DD28

GND

29PE

030

PE1

31PE

232

PE3

33XT

AL32

K1P

F034

XTAL

32K2

PF1

35PF

236

PF337 PF438 PF539 PF640 UPDI41 VDD42 GND43 EXTCLKPA044 PA145 PA246 PA347 PA448

AVR1

28D

A48

TQ

FPU

200

PC0_

UA

RT1_

TXPC

1_U

ART

1_RX

PC6_

LED

0_G

PIO

1PC

7_SW

0_G

PIO

0

AVD

D

PD2_

AIN

2_W

O2

PD1_

AIN

1_W

O1

PD0_

AIN

0_W

O0

PD5_

AIN

5PD

4_A

IN4

PD3_

AIN

3

XC2

00

12p

C203

12p

C204

327

68 k

Hz

Crys

tal d

atas

heet

Cc

rysta

l = 9

pFm

ax E

SR =

70k

Ohm

Acc

urac

y plusmn2

0ppm

AVR1

28D

A48

dat

ashe

et

Cxin

= 4

1pF

Cxou

t = 6

0pF

Cl asymp

1( (

14

1pF)

+ (1

60

pF) )

asymp2

44pF

Max

imum

Loa

d =

125

pFM

axim

um E

SR =

80k

Ohm

Estim

ated

Cpc

b =

05p

F

Estim

ated

load

C =

2 (C

crys

tal-

Cpar

a - C

pcb)

C

= 2

(9pF

- 2

44pF

- 0

5pF)

C =

121

2pF

Sele

cted

in d

esig

n af

ter v

erifi

catio

nC=

12p

F12

pF

NO

TE o

n U

ART

CD

C

RXT

X o

n th

e he

ader

den

otes

the

inpu

tout

put d

irect

ion

of th

e sig

nal

resp

ectiv

e to

its

sour

ce

CDC

TX is

out

put f

rom

the

DEB

UG

GER

CD

C RX

is in

put t

o th

e D

EBU

GG

ER

TX is

out

put f

rom

the

TARG

ET d

evic

eRX

is in

put t

o th

e TA

RGET

dev

ice

NO

TE o

n I2

C

No

pull-

ups o

n bo

ard

Pul

l-ups

shou

ld b

e m

ount

ed c

lose

to sl

ave

devi

ce(s

)

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 29

11

22

33

44

55

66

77

88

DD

CC

BB

AA

3 of

4

AVR1

28D

A48

Curio

sity

Nan

o

102

320

19AV

R128

DA

48_C

urio

sity

_Nan

o_D

ebug

gerS

chD

oc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA R

evisi

on

File

PC

B N

umbe

rPC

B Re

visio

n

Des

igne

d wi

th

Dra

wn

By

PB Shee

t Titl

eD

ebug

ger

Engi

neer

A

H T

F

A08

-300

23

Size

A3

A09

-328

03

Page

D

ateA

ltium

com

DEB

UG

GER

USB

MIC

RO

-B C

ON

NEC

TOR

GN

D

USB

D_P

USB

D_N

100n

C107

100n

C108

RXTXU

ART

CDC_

UART

1kR1

07V

CC_P

3V3

SRST

STAT

US_

LED

SHIE

LD

VBU

S

VCC

_P3V

3G

ND

TP10

0

Testp

oint

Arra

y

12

34

56

78

910

TCK

TDO

TMS

Vsu

pTD

IG

ND

TRST

SRST

VTr

efG

ND

J102

GN

D

47u

F

C100

DBG0

DBG

0

21

GRE

EN L

EDSM

L-P1

2MTT

86R

D10

0

VBUS

1D-

2D+

3

GND

5SH

IELD

16

SHIE

LD2

7

ID4

SHIE

LD3

8SH

IELD

49 M

U-M

B014

2AB2

-269

J105

PAD

33

PA00

1PA

012

PA02

3PA

034

GND 10VDDANA 9

PA04

5PA

056

PA06

7PA

078

PA08 11PA09 12PA10 13PA11 14PA14 15PA15 16

PA16

17PA

1718

PA18

19PA

1920

PA22

21US

B_SO

FPA

2322

USB_

DMP

A24

23US

B_DP

PA2

524

PA2725 RESETN26 PA2827 GND28 VDDCORE29 VDDIN30 SWDCLKPA3031 SWDIOPA3132

SAM

D21

E18A

-MU

TU

100

VOUT

1

VOUT

2

GND 3

EN4

VIN

6

NC5

EP 7

MIC

5528

-33

YM

TU

101

VCC

_P3V

3

GN

D

USB

D_P

USB

D_N

GN

D

1uC106

VCC

_MCU

_CO

RE

VCC

_P3V

3

VCC

_P3V

3

22u

FC1

01

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

3V

CC_P

3V3

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

4V

CC_P

3V3

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

5V

CC_P

3V3

GN

D

GN

D GN

D

GN

D

VCC

_ED

GE

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

7V

CC_P

3V3

GN

DDB

G2

DBG

3_CT

RL

S1_0

_TX

S1_1

_RX

S0_2

_TX

DA

CV

TG_A

DC

RESE

RVED

S0_3

_CLK

DBG0_CTRL

CDC_

TX_C

TRL

BOO

T

DEB

UG

GER

PO

WER

STA

TUS

LED

EN1

BYP

6

VOUT

4

GND

2

VIN

3

NCA

DJ5

GND 7

MIC

5353

U10

2

100n

C102

GN

D

GN

D

47kR101

27kR104 G

ND

33k

R106

22u

F

C103 G

ND

1kR1

08

J100

VCC

_LEV

ELV

CC_R

EGU

LATO

R

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

6V

CC_P

3V3

GN

DDB

G1

CDC_

RXCD

C_TX

DBG3

DBG1_CTRL

DEB

UG

GER

REG

ULA

TOR

REG_ENABLE

REG

_EN

ABL

E

47kR103

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

47kR102

47kR105

SWCL

K

GN

D

47kR100 G

ND

DBG

2

S0_0

_RX

DBG

1_CT

RL

DBG

0_CT

RL

DBG

3 O

PEN

DR

AIN

TAR

GET

AD

JUST

ABL

E R

EGU

LATO

R

SRST

DEB

UG

GER

TES

TPO

INT DBG2_CTRL

VO

FFCD

C_RX

_CTR

L

47kR109

DBG

1

CDC_

TX_C

TRL

CDC_

RX_C

TRL

SWCL

K

REG_ADJUST

DBG2_GPIO

DBG

3_CT

RL

DBG

2_CT

RL

UPD

I

UPD

I

GPI

O

GPI

O

RESE

T

Sign

al

DBG

0

DBG

1

DBG

2

DBG

3

ICSP

Inte

rface

DAT

CLK

GPI

O

MCL

R

DBG

3

CD

C T

X

CD

C R

X

UA

RT R

X

UA

RT T

X

UA

RT R

X

UA

RT T

X

TAR

GET

TAR

GET

1kR1

10

VBUS_ADC

1

23

DM

N65

D8L

FBQ

101

VC

C-

-

ID_S

YS

VOFF

1kR112

VCC

_P3V

3

VTG

_AD

CD

AC

MIC

9416

3

VIN

B2VO

UTA1

VIN

A2

ENC2

GND

C1VO

UTB1

U10

8

GN

D

ID_S

YS

VTG

_EN

VTG_EN

VBUS_ADC

SWD

IO

ID_S

YS

TP10

1G

ND

SWD

IO

VO

FF

47kR111 G

ND

ID P

IN

MC3

6213

F100

VCC

_VBU

S

VCC

_VBU

S

VCC

_VBU

S

J101

VCC

_TA

RGET

47k

R113

Prog

ram

min

g co

nnec

tor f

or

fact

ory

prog

ram

min

g of

D

EBU

GG

ER

MIC

5528

Vi

n 2

5V

to 5

5V

Vout

Fix

ed 3

3V

Imax

500

mA

Dro

pout

260

mV

5

00m

A

PTC

Rese

ttabl

e fu

se

Hol

d cu

rrent

500

mA

Trip

cur

rent

100

0mA

Adj

usta

ble

outp

ut a

nd li

mita

tions

- T

he D

EBU

GG

ER c

an a

djus

t the

out

put v

olta

ge o

f the

regu

lato

r bet

wee

n 1

25V

and

51

V to

the

targ

et

- The

vol

tage

out

put i

s lim

ited

by th

e in

put (

USB

) w

hich

can

var

y be

twee

n 4

40V

to 5

25V

- The

leve

l shi

fters

hav

e a

min

imal

vol

tage

leve

l of 1

65V

and

will

lim

it th

e m

inim

um o

pera

ting

volta

ge a

llow

ed fo

r the

ta

rget

to st

ill a

llow

com

mun

icat

ion

- The

MIC

9416

3 ha

s a m

inim

al v

olta

ge le

vel o

f 17

0V a

nd w

ill li

mit

the

min

imum

vol

tage

del

iver

ed to

the

targ

et

- Firm

war

e co

nfig

urat

ion

will

lim

it th

e vo

ltage

rang

e to

be

with

in th

e th

e ta

rget

spec

ifica

tion

R113

is re

quire

d to

pul

l the

Q

101

gate

to a

def

ined

va

lue

whe

n th

e U

100

is no

t po

wer

ed

J100

Cu

t-stra

p us

ed fo

r ful

l sep

arat

ion

of ta

rget

pow

er fr

om th

e le

vel s

hifte

rs a

nd o

n-bo

ard

regu

lato

rs

- For

cur

rent

mea

sure

men

ts us

ing

an e

xter

nal p

ower

supp

ly t

his s

trap

coul

d be

cut

for m

ore

accu

rate

mea

sure

men

ts L

eaka

ge b

ack

thro

ugh

the

switc

h is

in th

e m

icro

am

pere

rang

e

J101

Th

is is

foot

prin

t for

a 1

x2 1

00m

il pi

tch

pin-

head

er th

at c

an b

e us

ed fo

r eas

y cu

rrent

mea

sure

men

t to

the

targ

et m

icro

cont

rolle

r and

the

LED

Bu

tton

To

use

the

foot

prin

t- C

ut th

e tra

ck b

etw

een

the

hole

s an

d m

ount

a p

in-h

eade

r

MIC

5353

Vi

n 2

6V

to 6

VVo

ut 1

25V

to 5

1V

Imax

500

mA

Dro

pout

(typ

ical

) 50

mV

15

0mA

160

mV

5

00m

AA

ccur

acy

2

initi

alTh

erm

al sh

utdo

wn

and

curre

nt li

mit

Max

imum

out

put v

olta

ge is

lim

ited

by th

e in

put v

olta

ge a

nd th

e dr

opou

t vol

tage

in th

e re

gula

tor

(Vm

ax =

Vin

- dr

opou

t)

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 30

72 Assembly DrawingFigure 7-2 AVR128DA48 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

PAC20002 PAC20001 COC200

PAC20102 PAC20101 COC201

PAC20202 PAC20201 COC202

PAC20301 PAC20302 COC203

PAC20401 PAC20402 COC204

PAC20502

PAC20501 COC205

PAD10002 PAD10001 COD100

PAD20001

PAD20002 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

PAJ20701 PAJ20702 PAJ20705 COJ207

PAJ20801 PAJ20802 PAJ20805 COJ208

PAJ20901 PAJ20902 COJ209

PAJ21002 PAJ21001 COJ210

PAJ21102 PAJ21101 COJ211

PAL20002 PAL20001 COL200

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

PAR20002 PAR20001 COR200

PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203

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

PAU200048 PAU200047 PAU200046 PAU200045 PAU200044 PAU200043 PAU200042 PAU200041 PAU200040 PAU200039 PAU200038 PAU200037 PAU200036 PAU200035 PAU200034 PAU200033 PAU200032 PAU200031 PAU200030 PAU200029 PAU200028 PAU200027 PAU200026 PAU200025 PAU200024 PAU200023 PAU200022 PAU200021 PAU200020 PAU200019 PAU200018 PAU200017 PAU200016 PAU200015 PAU200014 PAU200013

PAU200012 PAU200011 PAU200010 PAU20009 PAU20008 PAU20007 PAU20006 PAU20005 PAU20004 PAU20003 PAU20002 PAU20001

COU200

PAXC20001

PAXC20002

COXC200

Figure 7-3 AVR128DA48 Curiosity Nano Assembly Drawing Bottom

ctR

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20002 PAC20001 COC200

PAC20102 PAC20101 COC201

PAC20202 PAC20201 COC202

PAC20301 PAC20302 COC203

PAC20401 PAC20402 COC204

PAC20502

PAC20501 COC205

PAD10002 PAD10001 COD100

PAD20001

PAD20002 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

PAJ20701 PAJ20702 PAJ20705 COJ207

PAJ20801 PAJ20802 PAJ20805 COJ208

PAJ20901 PAJ20902 COJ209

PAJ21002 PAJ21001 COJ210

PAJ21102 PAJ21101 COJ211

PAL20002 PAL20001 COL200

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

PAR20002 PAR20001 COR200

PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203

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

PAU200048 PAU200047 PAU200046 PAU200045 PAU200044 PAU200043 PAU200042 PAU200041 PAU200040 PAU200039 PAU200038 PAU200037 PAU200036 PAU200035 PAU200034 PAU200033 PAU200032 PAU200031 PAU200030 PAU200029 PAU200028 PAU200027 PAU200026 PAU200025 PAU200024 PAU200023 PAU200022 PAU200021 PAU200020 PAU200019 PAU200018 PAU200017 PAU200016 PAU200015 PAU200014 PAU200013

PAU200012 PAU200011 PAU200010 PAU20009 PAU20008 PAU20007 PAU20006 PAU20005 PAU20004 PAU20003 PAU20002 PAU20001

COU200

PAXC20001

PAXC20002

COXC200

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 31

73 Curiosity Nano Base for Click boardstrade

Figure 7-4 AVR128DA48 Curiosity Nano Pinout Mapping

USB

DEB

UG

GER

AVR1

28D

A48

SW0

LED

0

PS L

EDNC

NC

ID

ID

CDC RX

CDCRX

USART1 TX

PC0

CDC TX

CDCTX

USART1 RX

PC1

DBG1

DBG1

PC6

LED0

DBG2

DBG2

PC7

SW0

PA0

PA0

USART0 TX

PTC XY0

PA1

PA1

USART0 RX

PTC XY1

PC2

PC2

TWI0 SDA

PC3

PC3

TWI0 SCL

PA4

PA4

SPI0 MOSI

PTC XY4

PA5

PA5

SPI0 MISO

PTC XY5

PA6

PA6

SPI0 SCK

PTC XY6

PA7

PA7

SPI0 SS

PTC XY7

GND

GND

PF4

PF4

USART2 TX

PTC XY36

PF5

PF5

USART2 RX

PTC XY37

PF2

PF2

PTC XY34

PF3

PF3

PTC XY35

PB0

PB0

PTC XY8

PB1

PB1

PTC XY9

PB2

PB2

PTC XY10

PB3

PB3

PTC XY11

GND

GND

PC0

PC0

USART1 TX

CDC RX

PC1

PC1

USART1 RX

CDC TX

PC6

PC6

LED0

PC7

PC7

SW0

VBUS

VBUS

VOFF

VOFF

DBG3

DBG3

PF6

DBG0

DBG0

UPDI

GND

GND

VTG

VTG

PD7

PD7

AIN7

PTC XY23

PD6

PD6

AIN6

PTC XY22

PD2

PD2

AIN2

PTC XY18

TCA0 WO2

PD1

PD1

AIN1

PTC XY17

TCA0 WO1

PD0

PD0

AIN0

PTC XY16

TCA0 WO0

PD5

PD5

AIN5

PTC XY21

PD4

PD4

AIN4

PTC XY20

PD3

PD3

AIN3

PTC XY19

GND

GND

PE3

PE3

PTC XY27

PE2

PE2

PTC XY26

PE1

PE1

PTC XY25

PE0

PE0

PTC XY24

PA3

PA3

PTC XY3

PA2

PA2

PTC XY2

PB5

PB5

PTC XY13

PB4

PB4

PTC XY12

GND

GND

PC5

PC5

PC4

PC4

(PF1)

(PF1)

(PTC XY33)

XTAL32K2

(PF0)

(PF0)

(PTC XY32)

XTAL32K1

DEB

UG

GER

AVR1

28D

A48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

Touch

Shared pin

AVR1

28D

A48

Curio

sity

Nan

o

1

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

2

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

3

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

Xpl

aine

d Pr

o Ex

tens

ion

EXT1

12

1920

Curio

sity

Nan

o Ba

sefo

r clic

k bo

ards

TM

PD3

PD0

PD7

PD6

PA7

PA1

PA6

PA0

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

PD4

PD1

PF3

PF2

PE2

PF5

PA6

PF4

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

PD5

PD2

PE1

PE0

PE3

PA1

PA6

PA0

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

ID

GND

PD4

PD5

PF3

PE1

PD1

PD2

PF2

PE3

PC2

PC3

PF5

PF4

PE2

PA4

PA5

PA6

GND

+33V

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 32

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

The block diagram below shows all connections between the debugger and the AVR128DA48 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 7-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 7-6 Details about connecting an external debugger are described in 36 Connecting ExternalDebuggers

Figure 7-5  On-Board Debugger Connections Block Diagram

DEB

UG

GER

TARGETLevel-Shift

PA04PA06PA07PA08PA16PA00PA01

USB

DIR x 5

VCC_P3V3

VBUS

VCC

_LEV

EL

VCC

_TA

RGET

DBG0DBG1DBG2DBG3CDC 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

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 33

Figure 7-6 On-Board Debugger Connection Cut Straps

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

75 Getting Started with IARIAR Embedded Workbenchreg for AVRreg is a proprietary high-efficiency compiler not based on GCC Programming anddebugging of AVR128DA48 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 7-73 In the category Debugger select the Setup tab Select Atmel-ICE as the driver as shown in Figure 7-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 7-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

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 34

Figure 7-7 Select Target Device

Figure 7-8 Select Debugger

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 35

Figure 7-9 Configure Interface

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 36

The Microchip WebsiteMicrochip provides online support via our website at httpwwwmicrochipcom This website is used to make filesand information 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 ServiceMicrochiprsquos 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 httpwwwmicrochipcompcn and follow the registration instructions

Customer SupportUsers 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 httpwwwmicrochipcomsupport

Microchip Devices Code Protection FeatureNote the following details of the code protection feature on Microchip devices

bull Microchip products meet the specification contained in their particular Microchip Data Sheetbull Microchip believes that its family of products is one of the most secure families of its kind on the market today

when used in the intended manner and under normal conditionsbull There are dishonest and possibly illegal methods used to breach the code protection feature All of these

methods to our knowledge require using the Microchip products in a manner outside the operatingspecifications contained in Microchiprsquos Data Sheets Most likely the person doing so is engaged in theft ofintellectual property

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

protection does not mean that we are guaranteeing the product as ldquounbreakablerdquo

Code protection is constantly evolving We at Microchip are committed to continuously improving the code protectionfeatures of our products Attempts to break Microchiprsquos code protection feature may be a violation of the DigitalMillennium Copyright Act If such acts allow unauthorized access to your software or other copyrighted work youmay have a right to sue for relief under that Act

Legal NoticeInformation contained in this publication regarding device applications and the like is provided only for yourconvenience and may be superseded by updates It is your responsibility to ensure that your application meets with

AVR128DA48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 37

your specifications MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHEREXPRESS OR IMPLIED WRITTEN OR ORAL STATUTORY OR OTHERWISE RELATED TO THE INFORMATIONINCLUDING BUT NOT LIMITED TO ITS CONDITION QUALITY PERFORMANCE MERCHANTABILITY ORFITNESS FOR PURPOSE Microchip disclaims all liability arising from this information and its use Use of Microchipdevices in life support andor safety applications is entirely at the buyerrsquos risk and the buyer agrees to defendindemnify and hold harmless Microchip from any and all damages claims suits or expenses resulting from suchuse No licenses are conveyed implicitly or otherwise under any Microchip intellectual property rights unlessotherwise stated

TrademarksThe 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-5760-2

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

AVR128DA48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 38

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupporthttpwwwmicrochipcomsupportWeb AddresshttpwwwmicrochipcomAtlantaDuluth 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 DS50002971A-page 39

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Kit Overview
      • 2 Getting Started
        • 21 Quick Start
        • 22 Design Documentation and Relevant Links
          • 3 Curiosity Nano
            • 31 On-Board Debugger Overview
              • 311 Debugger
              • 312 Virtual Serial Port (CDC)
                • 3121 Overview
                • 3122 Operating System Support
                • 3123 Limitations
                • 3124 Signaling
                • 3125 Advanced Use
                  • 313 Mass Storage Device
                    • 3131 Mass Storage Device Implementation
                    • 3132 Fuse Bytes
                    • 3133 Limitations of Drag-and-Drop Programming
                    • 3134 Special Commands
                      • 314 Data Gateway Interface (DGI)
                        • 3141 Debug GPIO
                        • 3142 Timestamping
                            • 32 Curiosity Nano Standard Pinout
                            • 33 Power Supply
                              • 331 Target Regulator
                              • 332 External Supply
                              • 333 VBUS Output Pin
                              • 334 Power Supply Exceptions
                                • 34 Low Power Measurement
                                • 35 Programming External Microcontrollers
                                  • 351 Supported Devices
                                  • 352 Software Configuration
                                  • 353 Hardware Modifications
                                  • 354 Connecting to External Microcontrollers
                                    • 36 Connecting External Debuggers
                                      • 4 Hardware User Guide
                                        • 41 Connectors
                                          • 411 AVR128DA48 Curiosity Nano Pinout
                                          • 412 Using Pin Headers
                                            • 42 Peripherals
                                              • 421 LED
                                              • 422 Mechanical Switch
                                              • 423 Crystal
                                              • 424 On-Board Debugger Implementation
                                                • 4241 On-Board Debugger Connections
                                                  • 5 Hardware Revision History and Known Issues
                                                    • 51 Identifying Product ID and Revision
                                                    • 52 Revision 3
                                                      • 6 Document Revision History
                                                      • 7 Appendix
                                                        • 71 Schematic
                                                        • 72 Assembly Drawing
                                                        • 73 Curiosity Nano Base for Click boardstrade
                                                        • 74 Disconnecting the On-board Debugger
                                                        • 75 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: AVR128DA48 Curiosity Nano User Guide - Microchip Technologyww1.microchip.com/downloads/en/DeviceDoc/AVR128DA48... · 2020-03-19 · AVR128DA48 Curiosity Nano AVR128DA48 Curiosity

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

3132 Fuse Bytes

Fuse Bytes (AVRreg MCU Targets)When doing drag-and-drop programming the debugger masks out fuse bits that attempt to disable Unified Programand Debug Interface (UPDI) This means that the UPDI pin cannot be used in its reset or GPIO modes selecting oneof the alternative functions on the UPDI pin would render the device inaccessible without using an external debuggercapable of high-voltage UPDI activation

3133 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 useAtmel StudioMicrochip MPLABreg X IDE

Enabling CRC Check in FusesIt is not advisable to enable the CRC check in the target devicersquos fuses when using drag-and-drop programming Thisbecause 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 Atmel StudioMicrochip MPLABreg

X IDE which will automatically clear the CRC fuses after erasing

3134 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

Table 3-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 ldquoCDC Override Moderdquo

CMDRESET Resets the target device by entering Programming mode and then exitingProgramming mode immediately thereafter Exact timing can vary according tothe programming interface of the target device (Debugger firmware v116 ornewer)

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

CMD0V Powers down the target device by disabling the target supply regulator Ifexternal power is provided this has no effect (Debugger firmware v116 ornewer)

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

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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 11

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

314 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 Atmel StudioMicrochip MPLABreg X IDE

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

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

3141 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 VisualizerFigure 3-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

3142 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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 12

32 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 3-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

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 3-3 Curiosity Nano Standard Pinout

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

33 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 AVR128DA48 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 AVR128DA48Curiosity Nano

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 13

Figure 3-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

331 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 implementationis 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 AVR128DA48microcontroller The voltage limits configured in the on-board debugger on AVR128DA48 Curiosity Nano are18-51V

Info  The target voltage is set to 33V when the board is manufactured It can be changed throughMPLAB X IDE project properties and in the Atmel Studio device programming dialog Any change to thetarget voltage is persistent even through 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 Atmel StudioMicrochip MPLABreg X IDE are not immediatelyapplied to the board The new voltage setting is applied to the board when the debugger is accessed inany way like pushing the Refresh 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 only supports settings of 00V 33V and 50V See section 3134 Special Commands forfurther details

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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 14

Figure 3-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

Info  If the external voltage is lower than the monitoring window lower limit (target voltage setting - 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

332 External SupplyAVR128DA48 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 AVR128DA48 is 18-55V Applying a higher voltage may cause permanent damage to theboard

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 15

Info  If an external voltage is applied without pulling the VOFF pin low and an external supply pulls thevoltage lower than the monitoring window 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 AVR128DA48 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

333 VBUS Output PinAVR128DA48 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

Figure 3-6 VBUS Output Voltage vs Current

334 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 between 44V to 525V) and thevoltage drop over the MIC5353 regulator at a given voltage setting and current consumption If a higher outputvoltage is needed use a USB power source that can provide a higher input voltage or use an external voltage supplyon the VTG pin

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 16

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 differ more than 100 mV overunder the voltage setting it will be detected by the on-board debugger and theinternal voltage regulator will be shut down To fix this issue remove the applied voltage from the VTG pin and theon-board debugger will enable the on-board voltage regulator when the new condition is detected Note that the PSLED will be blinking rapidly if the target voltage is below 100 mV of the setting but will be lit normally when it is higherthan 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 really a special case of the issue mentioned above Removethe short-circuit and the on-board debugger will re-enable the on-board target voltage regulator

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

34 Low Power MeasurementPower to the AVR128DA48 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 AVR128DA48 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 AVR128DA48

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 17

Figure 3-7 Target Power Strap

Target Power strap (top side)

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 are tri-state to prevent leakage All IOs connected to the on-boarddebugger are listed in 4241 On-Board Debugger Connections To prevent any leakage to the on-boardlevel shifters they can be disconnected completely as described in 74 Disconnecting the On-boardDebugger

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

351 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

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

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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 18

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

Figure 3-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

353 Hardware ModificationsThe on-board debugger is connected to the AVR128DA48 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 AVR128DA48 from the on-board debugger

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 19

Figure 3-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 AVR128DA48 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 AVR128DA48

354 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 33 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

AVR128DA48 Curiosity Nano has a pull-up resistor R200 connected to its RESET signal (DBG3) The location ofthe pull-up resistor is shown in the 72 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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 20

Figure 3-10 Curiosity Nano Standard Pinout

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

Table 3-4 Programming and Debugging Interfaces

Curiosity Nano Pin UPDI ICSPtrade SWD

DBG0 UPDI DATA SWDIO

DBG1 - CLK SWCLK

DBG2 - - -

DBG3 - MCLR RESET

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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 21

Figure 3-11 Connecting the MPLABreg PICkittrade 4 In-Circuit DebuggerProgrammer to AVR128DA48 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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 22

Figure 3-12 Connecting the Atmel-ICE to AVR128DA48 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 Atmel StudioMicrochip MPLABreg XIDE or mass storage programming while the external tool is active

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 23

4 Hardware User Guide

41 Connectors

411 AVR128DA48 Curiosity Nano PinoutAll the AVR128DA48 IO pins are accessible at the edge connectors on the board The image below shows the boardpinout

Figure 4-1 AVR128DA48 Curiosity Nano Pinout

USB

DEBUGGER

AVR128DA48

SW0

LED0

PS LEDNC

NC

ID

ID

CDC RX

CDCRXUSART1 TXPC0

CDC TX

CDCTXUSART1 RXPC1

DBG1

DBG

1PC6LED0

DBG2

DBG

2PC7SW0

PA0

PA0USART0 TXPTC XY0

PA1PA

1USART0 RXPTC XY1

PC2PC2TWI0 SDA

PC3

PC3TWI0 SCL

PA4

PA4SPI0 MOSIPTC XY4

PA5

PA5SPI0 MISOPTC XY5

PA6

PA6SPI0 SCKPTC XY6

PA7

PA7SPI0 SSPTC XY7

GND

GN

D

PF4

PF4USART2 TXPTC XY36

PF5

PF5USART2 RXPTC XY37

PF2

PF2PTC XY34

PF3

PF3PTC XY35

PB0

PB0PTC XY8

PB1

PB1PTC XY9

PB2

PB2PTC XY10

PB3

PB3PTC XY11

GND

GN

D

PC0

PC0USART1 TXCDC RX

PC1

PC1USART1 RXCDC TX

PC6

PC6LED0

PC7

PC7SW0

VBUS

VBU

S

VOFF

VO

FFDBG3

DBG

3 PF6

DBG0D

BG0 UPDI

GND

GN

D

VTG

VTG

PD7

PD7 AIN7 PTC XY23

PD6

PD6 AIN6 PTC XY22

PD2

PD2 AIN2 PTC XY18 TCA0 WO2

PD1

PD1 AIN1 PTC XY17 TCA0 WO1

PD0

PD0 AIN0 PTC XY16 TCA0 WO0

PD5

PD5 AIN5 PTC XY21

PD4

PD4 AIN4 PTC XY20

PD3

PD3 AIN3 PTC XY19

GND

GN

D

PE3

PE3 PTC XY27

PE2

PE2 PTC XY26

PE1

PE1 PTC XY25

PE0

PE0 PTC XY24

PA3

PA3 PTC XY3

PA2

PA2 PTC XY2

PB5

PB5 PTC XY13

PB4

PB4 PTC XY12

GND

GN

D

PC5

PC5

PC4

PC4

(PF1)

(PF1) (PTC XY33) XTAL32K2

(PF0)

(PF0) (PTC XY32) XTAL32K1

DEBUGGERAVR128DA48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

Touch

Shared pin

AVR128DA48Curiosity Nano

412 Using Pin HeadersThe edge connector footprint on AVR128DA48 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

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

AVR128DA48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 24

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

42 Peripherals

421 LEDThere is one yellow user LED available on the AVR128DA48 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 4-1 LED Connection

AVR128DA48 Pin Function Shared Functionality

PC6 Yellow LED0 Edge connector On-board debugger

422 Mechanical SwitchThe AVR128DA48 Curiosity Nano has one mechanical switch This is a generic user-configurable switch When theswitch 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 PC7

Table 4-2 Mechanical Switch

AVR128DA48 Pin Description Shared Functionality

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

423 Crystal

The AVR128DA48 Curiosity Nano board has a 32768 kHz crystal mounted

The AVR128DA48 is connected to the crystal by default but the GPIOs are also routed to the edge connectorthrough two solder points The two IO lines routed to the edge connector are disconnected by default to reduce thechance of an external signal causing contention with the crystal and to remove excessive capacitance on the linesTo use PF0 and PF1 as GPIO some hardware modifications are required

bull Disconnect the crystal by cutting the two straps on the top side of the board next to the crystal (J210 J211) Thecrystal 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 (J207 J208)

The cut straps and solder points can be seen in Figure 4-2

Table 4-3 Crystal Connections

AVR128DA48 Pin Function Shared Functionality

PF0 TOSC1 (Crystal input) Edge connector

PF1 TOSC2 (Crystal output) Edge connector

AVR128DA48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 25

Figure 4-2 Crystal Connection and Cut Straps

424 On-Board Debugger ImplementationAVR128DA48 Curiosity Nano features an on-board debugger that can be used to program and debug theAVR128DA48 using UPDI The on-board debugger also includes a virtual serial port (CDC) interface over UART anddebug GPIO Atmel StudioMicrochip MPLABreg X IDE 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

4241 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 31 On-Board DebuggerOverview

Table 4-4 On-Board Debugger Connections

AVR128DA48Pin

Debugger Pin Function Shared Functionality

RF1 CDC TX UART RX (AVR128DA48 RX line) Edge connector

RF0 CDC RX UART TX (AVR128DA48 TX line) Edge connector

UPDI DBG0 UPDI Edge connector

PC6 DBG1 GPIO1 Edge connector LED

PC7 DBG2 GPIO0 Edge connector Mechanical Switch

PF6 DBG3 RESET Edge connector

AVR128DA48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 26

5 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

51 Identifying Product ID and RevisionThe revision and product identifier of the AVR128DA48 Curiosity Nano Board can be found in two ways Either byutilizing the Atmel StudioMicrochip MPLABreg X IDE Kit Window or by looking at the sticker on the bottom side of thePCB

By connecting AVR128DA48 Curiosity Nano to a computer with Atmel StudioMicrochip MPLABreg X IDE running theKit Window will pop up The first six digits of the serial number which is listed under kit information contain theproduct identifier 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 AVR128DA48 Curiosity Nano is A09-3280

52 Revision 3Revision 3 is the initially released revision There are no known issues with this revision

AVR128DA48 Curiosity NanoHardware Revision History and Known Issues

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 27

6 Document Revision HistoryDoc rev Date Comment

A 032020 Initial document release

AVR128DA48 Curiosity NanoDocument Revision History

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 28

7 Appendix

71 SchematicFigure 7-1 AVR128DA48 Curiosity Nano Schematic

11

22

33

44

55

66

77

88

DD

CC

BB

AA

2 of

4

AVR1

28D

A48

Curio

sity

Nan

o

102

320

19AV

R128

DA

48_C

urio

sity

_Nan

o_Ta

rget

_MCU

Sch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA R

evisi

on

File

PC

B N

umbe

rPC

B Re

visio

n

Des

igne

d wi

th

Dra

wn

By

PB Shee

t Titl

eTa

rget

MCU

Engi

neer

A

H T

F

A08

-300

23

Size

A3

A09

-328

03

Page

D

ateA

ltium

com

GN

DV

CC_T

ARG

ET

100n

C201

GN

D

PA5_

SPI0

_MIS

OPA

6_SP

I0_S

CKPA

7_SP

I0_S

SPB

0_U

ART

3_TX

PB1_

UA

RT3_

RXPB

2PB

3PB

4PB

5PC

0_U

ART

1_TX

PC1_

UA

RT1_

RXPC

2_I2

C0_S

DA

PC3_I2C0_SCL

PC4PC5PC6_LED0_GPIO1PC7_SW0_GPIO0PD0_AIN0_WO0PD1_AIN1_WO1PD2_AIN2_WO2PD3_AIN3PD4_AIN4

PA3

PA1_UART0_RX

UPDI

PF5_UART2_RX

PF3

PF2

PF1_

TOSC

2PF

0_TO

SC1

PE3

PE2

PE1

PE0

PD5_

AIN

5PD

6_A

IN6

PD7_

AIN

7

GN

D

VCC

_TA

RGET

100n

C202

GN

DV

CC_T

ARG

ET10

0n

C200

PF1_TOSC2

PF0_TOSC1

PA2

PA0_UART0_TX

PF4_UART2_TX

PA4_SPI0_MOSI

GN

D

PA7_

SPI0

_SS

PA6_

SPI0

_SCK

PA5_

SPI0

_MIS

OPA

4_SP

I0_M

OSI

PA3

PA2

PA1_

UA

RT0_

RXPA

0_U

ART

0_TX

PB0_

UA

RT3_

TXPB

1_U

ART

3_RX

PB2

PB3

PB4

PB5

PD7_

AIN

7PD

6_A

IN6

PF5_

UA

RT2_

RXPF

4_U

ART

2_TX

PF3

PF2

32kH

z C

ryst

al

1kR203

USE

R L

ED

VCC

_TA

RGET

PF6_RESET

PC7_SW0_GPIO0

PC6_LED0_GPIO1

GN

D

USE

R B

UTT

ON

PE3

PE2

PE1

PE0

PC0_

UA

RT1_

TXPC

1_U

ART

1_RX

PC2_

I2C0

_SD

APC

3_I2

C0_S

CL

PC4

PC5

PC6_

LED

0_G

PIO

1PC

7_SW

0_G

PIO

0

1kR202

YELLOWLEDSML-D12Y1WT86

2 1D200

TS604VM1-035CR13

4 2

SW20

0

GN

DV

CC_E

DG

E

GN

DG

ND

GN

DG

ND

UPD

IPF

6_RE

SET

J207

J208

J209

BLM

18PG

471S

N1

L200

AVR1

28D

A48

22u

FC2

05

VCC

_ED

GE

GN

D

DBG0

CDC_

UART

TXRXU

ART

CDC_TXCDC_RX

DBG2

DBG1

DBG3

DBG2

DEB

UG

GER

CO

NN

ECTI

ON

S

DBG1

DBG3DBG0

VOFF

ID_S

YS

ID_SYS

VOFF

TAR

GET

BU

LK

VCC

_TA

RGET

RES

ET P

ull

VBU

S

CDC

RX3

CDC

TX4

DBG

15

DBG

26

0 TX

71

RX8

2 SD

A9

3 SC

L10

4 M

OSI

115

MIS

O12

6 SC

K13

7 SS

14G

ND

150

(TX

)16

1 (R

X)

172

183

190

20

GN

D24

DBG

354

DBG

053

GN

D52

VCC

51

PWM

346

AD

C 2

45A

DC

144

AD

C 0

43G

ND

42

438

434

GN

D33

AD

C 7

50A

DC

649

AD

C 5

48PW

M 4

47

DEB

UG

GER

TARG

ET

ID2

VO

FF55

121

222

323

025

126

227

328

429

530

631

732

535

636

737

539

640

741

RESE

RVED

1V

BUS

56

CNA

NO

56-p

in e

dge

conn

ecto

r

J200

J201

J203

J205

J206

J202

J204

PF1

PF0

PF1_

TOSC

2PF

0_TO

SC1

NC

J211

J210

XOUT

XIN

47kR200

AVR

128D

A48

UPD

I

GPI

O1

GPI

O0

RESE

T

DBG

0

DBG

1

DBG

2

DBG

3

Deb

ugge

r

CD

C T

X

CD

C R

X

UA

RT1

RX

UA

RT1

TX

VTG

18V

- 5

5VPC6

PC7

PF6

UPD

I

PC0

PC1

Nam

ePi

n

PA5

1PA

62

PA7

3PB

04

PB1

5PB

26

PB3

7PB

48

PB5

9PC

010

PC1

11PC

212

PC3 13VDD 14GND 15PC4 16PC5 17PC6 18PC7 19PD0 20PD1 21PD2 22PD3 23PD4 24

PD5

25PD

626

PD7

27AV

DD28

GND

29PE

030

PE1

31PE

232

PE3

33XT

AL32

K1P

F034

XTAL

32K2

PF1

35PF

236

PF337 PF438 PF539 PF640 UPDI41 VDD42 GND43 EXTCLKPA044 PA145 PA246 PA347 PA448

AVR1

28D

A48

TQ

FPU

200

PC0_

UA

RT1_

TXPC

1_U

ART

1_RX

PC6_

LED

0_G

PIO

1PC

7_SW

0_G

PIO

0

AVD

D

PD2_

AIN

2_W

O2

PD1_

AIN

1_W

O1

PD0_

AIN

0_W

O0

PD5_

AIN

5PD

4_A

IN4

PD3_

AIN

3

XC2

00

12p

C203

12p

C204

327

68 k

Hz

Crys

tal d

atas

heet

Cc

rysta

l = 9

pFm

ax E

SR =

70k

Ohm

Acc

urac

y plusmn2

0ppm

AVR1

28D

A48

dat

ashe

et

Cxin

= 4

1pF

Cxou

t = 6

0pF

Cl asymp

1( (

14

1pF)

+ (1

60

pF) )

asymp2

44pF

Max

imum

Loa

d =

125

pFM

axim

um E

SR =

80k

Ohm

Estim

ated

Cpc

b =

05p

F

Estim

ated

load

C =

2 (C

crys

tal-

Cpar

a - C

pcb)

C

= 2

(9pF

- 2

44pF

- 0

5pF)

C =

121

2pF

Sele

cted

in d

esig

n af

ter v

erifi

catio

nC=

12p

F12

pF

NO

TE o

n U

ART

CD

C

RXT

X o

n th

e he

ader

den

otes

the

inpu

tout

put d

irect

ion

of th

e sig

nal

resp

ectiv

e to

its

sour

ce

CDC

TX is

out

put f

rom

the

DEB

UG

GER

CD

C RX

is in

put t

o th

e D

EBU

GG

ER

TX is

out

put f

rom

the

TARG

ET d

evic

eRX

is in

put t

o th

e TA

RGET

dev

ice

NO

TE o

n I2

C

No

pull-

ups o

n bo

ard

Pul

l-ups

shou

ld b

e m

ount

ed c

lose

to sl

ave

devi

ce(s

)

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 29

11

22

33

44

55

66

77

88

DD

CC

BB

AA

3 of

4

AVR1

28D

A48

Curio

sity

Nan

o

102

320

19AV

R128

DA

48_C

urio

sity

_Nan

o_D

ebug

gerS

chD

oc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA R

evisi

on

File

PC

B N

umbe

rPC

B Re

visio

n

Des

igne

d wi

th

Dra

wn

By

PB Shee

t Titl

eD

ebug

ger

Engi

neer

A

H T

F

A08

-300

23

Size

A3

A09

-328

03

Page

D

ateA

ltium

com

DEB

UG

GER

USB

MIC

RO

-B C

ON

NEC

TOR

GN

D

USB

D_P

USB

D_N

100n

C107

100n

C108

RXTXU

ART

CDC_

UART

1kR1

07V

CC_P

3V3

SRST

STAT

US_

LED

SHIE

LD

VBU

S

VCC

_P3V

3G

ND

TP10

0

Testp

oint

Arra

y

12

34

56

78

910

TCK

TDO

TMS

Vsu

pTD

IG

ND

TRST

SRST

VTr

efG

ND

J102

GN

D

47u

F

C100

DBG0

DBG

0

21

GRE

EN L

EDSM

L-P1

2MTT

86R

D10

0

VBUS

1D-

2D+

3

GND

5SH

IELD

16

SHIE

LD2

7

ID4

SHIE

LD3

8SH

IELD

49 M

U-M

B014

2AB2

-269

J105

PAD

33

PA00

1PA

012

PA02

3PA

034

GND 10VDDANA 9

PA04

5PA

056

PA06

7PA

078

PA08 11PA09 12PA10 13PA11 14PA14 15PA15 16

PA16

17PA

1718

PA18

19PA

1920

PA22

21US

B_SO

FPA

2322

USB_

DMP

A24

23US

B_DP

PA2

524

PA2725 RESETN26 PA2827 GND28 VDDCORE29 VDDIN30 SWDCLKPA3031 SWDIOPA3132

SAM

D21

E18A

-MU

TU

100

VOUT

1

VOUT

2

GND 3

EN4

VIN

6

NC5

EP 7

MIC

5528

-33

YM

TU

101

VCC

_P3V

3

GN

D

USB

D_P

USB

D_N

GN

D

1uC106

VCC

_MCU

_CO

RE

VCC

_P3V

3

VCC

_P3V

3

22u

FC1

01

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

3V

CC_P

3V3

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

4V

CC_P

3V3

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

5V

CC_P

3V3

GN

D

GN

D GN

D

GN

D

VCC

_ED

GE

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

7V

CC_P

3V3

GN

DDB

G2

DBG

3_CT

RL

S1_0

_TX

S1_1

_RX

S0_2

_TX

DA

CV

TG_A

DC

RESE

RVED

S0_3

_CLK

DBG0_CTRL

CDC_

TX_C

TRL

BOO

T

DEB

UG

GER

PO

WER

STA

TUS

LED

EN1

BYP

6

VOUT

4

GND

2

VIN

3

NCA

DJ5

GND 7

MIC

5353

U10

2

100n

C102

GN

D

GN

D

47kR101

27kR104 G

ND

33k

R106

22u

F

C103 G

ND

1kR1

08

J100

VCC

_LEV

ELV

CC_R

EGU

LATO

R

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

6V

CC_P

3V3

GN

DDB

G1

CDC_

RXCD

C_TX

DBG3

DBG1_CTRL

DEB

UG

GER

REG

ULA

TOR

REG_ENABLE

REG

_EN

ABL

E

47kR103

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

47kR102

47kR105

SWCL

K

GN

D

47kR100 G

ND

DBG

2

S0_0

_RX

DBG

1_CT

RL

DBG

0_CT

RL

DBG

3 O

PEN

DR

AIN

TAR

GET

AD

JUST

ABL

E R

EGU

LATO

R

SRST

DEB

UG

GER

TES

TPO

INT DBG2_CTRL

VO

FFCD

C_RX

_CTR

L

47kR109

DBG

1

CDC_

TX_C

TRL

CDC_

RX_C

TRL

SWCL

K

REG_ADJUST

DBG2_GPIO

DBG

3_CT

RL

DBG

2_CT

RL

UPD

I

UPD

I

GPI

O

GPI

O

RESE

T

Sign

al

DBG

0

DBG

1

DBG

2

DBG

3

ICSP

Inte

rface

DAT

CLK

GPI

O

MCL

R

DBG

3

CD

C T

X

CD

C R

X

UA

RT R

X

UA

RT T

X

UA

RT R

X

UA

RT T

X

TAR

GET

TAR

GET

1kR1

10

VBUS_ADC

1

23

DM

N65

D8L

FBQ

101

VC

C-

-

ID_S

YS

VOFF

1kR112

VCC

_P3V

3

VTG

_AD

CD

AC

MIC

9416

3

VIN

B2VO

UTA1

VIN

A2

ENC2

GND

C1VO

UTB1

U10

8

GN

D

ID_S

YS

VTG

_EN

VTG_EN

VBUS_ADC

SWD

IO

ID_S

YS

TP10

1G

ND

SWD

IO

VO

FF

47kR111 G

ND

ID P

IN

MC3

6213

F100

VCC

_VBU

S

VCC

_VBU

S

VCC

_VBU

S

J101

VCC

_TA

RGET

47k

R113

Prog

ram

min

g co

nnec

tor f

or

fact

ory

prog

ram

min

g of

D

EBU

GG

ER

MIC

5528

Vi

n 2

5V

to 5

5V

Vout

Fix

ed 3

3V

Imax

500

mA

Dro

pout

260

mV

5

00m

A

PTC

Rese

ttabl

e fu

se

Hol

d cu

rrent

500

mA

Trip

cur

rent

100

0mA

Adj

usta

ble

outp

ut a

nd li

mita

tions

- T

he D

EBU

GG

ER c

an a

djus

t the

out

put v

olta

ge o

f the

regu

lato

r bet

wee

n 1

25V

and

51

V to

the

targ

et

- The

vol

tage

out

put i

s lim

ited

by th

e in

put (

USB

) w

hich

can

var

y be

twee

n 4

40V

to 5

25V

- The

leve

l shi

fters

hav

e a

min

imal

vol

tage

leve

l of 1

65V

and

will

lim

it th

e m

inim

um o

pera

ting

volta

ge a

llow

ed fo

r the

ta

rget

to st

ill a

llow

com

mun

icat

ion

- The

MIC

9416

3 ha

s a m

inim

al v

olta

ge le

vel o

f 17

0V a

nd w

ill li

mit

the

min

imum

vol

tage

del

iver

ed to

the

targ

et

- Firm

war

e co

nfig

urat

ion

will

lim

it th

e vo

ltage

rang

e to

be

with

in th

e th

e ta

rget

spec

ifica

tion

R113

is re

quire

d to

pul

l the

Q

101

gate

to a

def

ined

va

lue

whe

n th

e U

100

is no

t po

wer

ed

J100

Cu

t-stra

p us

ed fo

r ful

l sep

arat

ion

of ta

rget

pow

er fr

om th

e le

vel s

hifte

rs a

nd o

n-bo

ard

regu

lato

rs

- For

cur

rent

mea

sure

men

ts us

ing

an e

xter

nal p

ower

supp

ly t

his s

trap

coul

d be

cut

for m

ore

accu

rate

mea

sure

men

ts L

eaka

ge b

ack

thro

ugh

the

switc

h is

in th

e m

icro

am

pere

rang

e

J101

Th

is is

foot

prin

t for

a 1

x2 1

00m

il pi

tch

pin-

head

er th

at c

an b

e us

ed fo

r eas

y cu

rrent

mea

sure

men

t to

the

targ

et m

icro

cont

rolle

r and

the

LED

Bu

tton

To

use

the

foot

prin

t- C

ut th

e tra

ck b

etw

een

the

hole

s an

d m

ount

a p

in-h

eade

r

MIC

5353

Vi

n 2

6V

to 6

VVo

ut 1

25V

to 5

1V

Imax

500

mA

Dro

pout

(typ

ical

) 50

mV

15

0mA

160

mV

5

00m

AA

ccur

acy

2

initi

alTh

erm

al sh

utdo

wn

and

curre

nt li

mit

Max

imum

out

put v

olta

ge is

lim

ited

by th

e in

put v

olta

ge a

nd th

e dr

opou

t vol

tage

in th

e re

gula

tor

(Vm

ax =

Vin

- dr

opou

t)

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 30

72 Assembly DrawingFigure 7-2 AVR128DA48 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

PAC20002 PAC20001 COC200

PAC20102 PAC20101 COC201

PAC20202 PAC20201 COC202

PAC20301 PAC20302 COC203

PAC20401 PAC20402 COC204

PAC20502

PAC20501 COC205

PAD10002 PAD10001 COD100

PAD20001

PAD20002 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

PAJ20701 PAJ20702 PAJ20705 COJ207

PAJ20801 PAJ20802 PAJ20805 COJ208

PAJ20901 PAJ20902 COJ209

PAJ21002 PAJ21001 COJ210

PAJ21102 PAJ21101 COJ211

PAL20002 PAL20001 COL200

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

PAR20002 PAR20001 COR200

PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203

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

PAU200048 PAU200047 PAU200046 PAU200045 PAU200044 PAU200043 PAU200042 PAU200041 PAU200040 PAU200039 PAU200038 PAU200037 PAU200036 PAU200035 PAU200034 PAU200033 PAU200032 PAU200031 PAU200030 PAU200029 PAU200028 PAU200027 PAU200026 PAU200025 PAU200024 PAU200023 PAU200022 PAU200021 PAU200020 PAU200019 PAU200018 PAU200017 PAU200016 PAU200015 PAU200014 PAU200013

PAU200012 PAU200011 PAU200010 PAU20009 PAU20008 PAU20007 PAU20006 PAU20005 PAU20004 PAU20003 PAU20002 PAU20001

COU200

PAXC20001

PAXC20002

COXC200

Figure 7-3 AVR128DA48 Curiosity Nano Assembly Drawing Bottom

ctR

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20002 PAC20001 COC200

PAC20102 PAC20101 COC201

PAC20202 PAC20201 COC202

PAC20301 PAC20302 COC203

PAC20401 PAC20402 COC204

PAC20502

PAC20501 COC205

PAD10002 PAD10001 COD100

PAD20001

PAD20002 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

PAJ20701 PAJ20702 PAJ20705 COJ207

PAJ20801 PAJ20802 PAJ20805 COJ208

PAJ20901 PAJ20902 COJ209

PAJ21002 PAJ21001 COJ210

PAJ21102 PAJ21101 COJ211

PAL20002 PAL20001 COL200

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

PAR20002 PAR20001 COR200

PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203

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

PAU200048 PAU200047 PAU200046 PAU200045 PAU200044 PAU200043 PAU200042 PAU200041 PAU200040 PAU200039 PAU200038 PAU200037 PAU200036 PAU200035 PAU200034 PAU200033 PAU200032 PAU200031 PAU200030 PAU200029 PAU200028 PAU200027 PAU200026 PAU200025 PAU200024 PAU200023 PAU200022 PAU200021 PAU200020 PAU200019 PAU200018 PAU200017 PAU200016 PAU200015 PAU200014 PAU200013

PAU200012 PAU200011 PAU200010 PAU20009 PAU20008 PAU20007 PAU20006 PAU20005 PAU20004 PAU20003 PAU20002 PAU20001

COU200

PAXC20001

PAXC20002

COXC200

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 31

73 Curiosity Nano Base for Click boardstrade

Figure 7-4 AVR128DA48 Curiosity Nano Pinout Mapping

USB

DEB

UG

GER

AVR1

28D

A48

SW0

LED

0

PS L

EDNC

NC

ID

ID

CDC RX

CDCRX

USART1 TX

PC0

CDC TX

CDCTX

USART1 RX

PC1

DBG1

DBG1

PC6

LED0

DBG2

DBG2

PC7

SW0

PA0

PA0

USART0 TX

PTC XY0

PA1

PA1

USART0 RX

PTC XY1

PC2

PC2

TWI0 SDA

PC3

PC3

TWI0 SCL

PA4

PA4

SPI0 MOSI

PTC XY4

PA5

PA5

SPI0 MISO

PTC XY5

PA6

PA6

SPI0 SCK

PTC XY6

PA7

PA7

SPI0 SS

PTC XY7

GND

GND

PF4

PF4

USART2 TX

PTC XY36

PF5

PF5

USART2 RX

PTC XY37

PF2

PF2

PTC XY34

PF3

PF3

PTC XY35

PB0

PB0

PTC XY8

PB1

PB1

PTC XY9

PB2

PB2

PTC XY10

PB3

PB3

PTC XY11

GND

GND

PC0

PC0

USART1 TX

CDC RX

PC1

PC1

USART1 RX

CDC TX

PC6

PC6

LED0

PC7

PC7

SW0

VBUS

VBUS

VOFF

VOFF

DBG3

DBG3

PF6

DBG0

DBG0

UPDI

GND

GND

VTG

VTG

PD7

PD7

AIN7

PTC XY23

PD6

PD6

AIN6

PTC XY22

PD2

PD2

AIN2

PTC XY18

TCA0 WO2

PD1

PD1

AIN1

PTC XY17

TCA0 WO1

PD0

PD0

AIN0

PTC XY16

TCA0 WO0

PD5

PD5

AIN5

PTC XY21

PD4

PD4

AIN4

PTC XY20

PD3

PD3

AIN3

PTC XY19

GND

GND

PE3

PE3

PTC XY27

PE2

PE2

PTC XY26

PE1

PE1

PTC XY25

PE0

PE0

PTC XY24

PA3

PA3

PTC XY3

PA2

PA2

PTC XY2

PB5

PB5

PTC XY13

PB4

PB4

PTC XY12

GND

GND

PC5

PC5

PC4

PC4

(PF1)

(PF1)

(PTC XY33)

XTAL32K2

(PF0)

(PF0)

(PTC XY32)

XTAL32K1

DEB

UG

GER

AVR1

28D

A48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

Touch

Shared pin

AVR1

28D

A48

Curio

sity

Nan

o

1

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

2

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

3

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

Xpl

aine

d Pr

o Ex

tens

ion

EXT1

12

1920

Curio

sity

Nan

o Ba

sefo

r clic

k bo

ards

TM

PD3

PD0

PD7

PD6

PA7

PA1

PA6

PA0

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

PD4

PD1

PF3

PF2

PE2

PF5

PA6

PF4

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

PD5

PD2

PE1

PE0

PE3

PA1

PA6

PA0

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

ID

GND

PD4

PD5

PF3

PE1

PD1

PD2

PF2

PE3

PC2

PC3

PF5

PF4

PE2

PA4

PA5

PA6

GND

+33V

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 32

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

The block diagram below shows all connections between the debugger and the AVR128DA48 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 7-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 7-6 Details about connecting an external debugger are described in 36 Connecting ExternalDebuggers

Figure 7-5  On-Board Debugger Connections Block Diagram

DEB

UG

GER

TARGETLevel-Shift

PA04PA06PA07PA08PA16PA00PA01

USB

DIR x 5

VCC_P3V3

VBUS

VCC

_LEV

EL

VCC

_TA

RGET

DBG0DBG1DBG2DBG3CDC 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

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 33

Figure 7-6 On-Board Debugger Connection Cut Straps

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

75 Getting Started with IARIAR Embedded Workbenchreg for AVRreg is a proprietary high-efficiency compiler not based on GCC Programming anddebugging of AVR128DA48 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 7-73 In the category Debugger select the Setup tab Select Atmel-ICE as the driver as shown in Figure 7-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 7-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

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 34

Figure 7-7 Select Target Device

Figure 7-8 Select Debugger

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 35

Figure 7-9 Configure Interface

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 36

The Microchip WebsiteMicrochip provides online support via our website at httpwwwmicrochipcom This website is used to make filesand information 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 ServiceMicrochiprsquos 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 httpwwwmicrochipcompcn and follow the registration instructions

Customer SupportUsers 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 httpwwwmicrochipcomsupport

Microchip Devices Code Protection FeatureNote the following details of the code protection feature on Microchip devices

bull Microchip products meet the specification contained in their particular Microchip Data Sheetbull Microchip believes that its family of products is one of the most secure families of its kind on the market today

when used in the intended manner and under normal conditionsbull There are dishonest and possibly illegal methods used to breach the code protection feature All of these

methods to our knowledge require using the Microchip products in a manner outside the operatingspecifications contained in Microchiprsquos Data Sheets Most likely the person doing so is engaged in theft ofintellectual property

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

protection does not mean that we are guaranteeing the product as ldquounbreakablerdquo

Code protection is constantly evolving We at Microchip are committed to continuously improving the code protectionfeatures of our products Attempts to break Microchiprsquos code protection feature may be a violation of the DigitalMillennium Copyright Act If such acts allow unauthorized access to your software or other copyrighted work youmay have a right to sue for relief under that Act

Legal NoticeInformation contained in this publication regarding device applications and the like is provided only for yourconvenience and may be superseded by updates It is your responsibility to ensure that your application meets with

AVR128DA48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 37

your specifications MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHEREXPRESS OR IMPLIED WRITTEN OR ORAL STATUTORY OR OTHERWISE RELATED TO THE INFORMATIONINCLUDING BUT NOT LIMITED TO ITS CONDITION QUALITY PERFORMANCE MERCHANTABILITY ORFITNESS FOR PURPOSE Microchip disclaims all liability arising from this information and its use Use of Microchipdevices in life support andor safety applications is entirely at the buyerrsquos risk and the buyer agrees to defendindemnify and hold harmless Microchip from any and all damages claims suits or expenses resulting from suchuse No licenses are conveyed implicitly or otherwise under any Microchip intellectual property rights unlessotherwise stated

TrademarksThe 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-5760-2

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

AVR128DA48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 38

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupporthttpwwwmicrochipcomsupportWeb AddresshttpwwwmicrochipcomAtlantaDuluth 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 DS50002971A-page 39

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Kit Overview
      • 2 Getting Started
        • 21 Quick Start
        • 22 Design Documentation and Relevant Links
          • 3 Curiosity Nano
            • 31 On-Board Debugger Overview
              • 311 Debugger
              • 312 Virtual Serial Port (CDC)
                • 3121 Overview
                • 3122 Operating System Support
                • 3123 Limitations
                • 3124 Signaling
                • 3125 Advanced Use
                  • 313 Mass Storage Device
                    • 3131 Mass Storage Device Implementation
                    • 3132 Fuse Bytes
                    • 3133 Limitations of Drag-and-Drop Programming
                    • 3134 Special Commands
                      • 314 Data Gateway Interface (DGI)
                        • 3141 Debug GPIO
                        • 3142 Timestamping
                            • 32 Curiosity Nano Standard Pinout
                            • 33 Power Supply
                              • 331 Target Regulator
                              • 332 External Supply
                              • 333 VBUS Output Pin
                              • 334 Power Supply Exceptions
                                • 34 Low Power Measurement
                                • 35 Programming External Microcontrollers
                                  • 351 Supported Devices
                                  • 352 Software Configuration
                                  • 353 Hardware Modifications
                                  • 354 Connecting to External Microcontrollers
                                    • 36 Connecting External Debuggers
                                      • 4 Hardware User Guide
                                        • 41 Connectors
                                          • 411 AVR128DA48 Curiosity Nano Pinout
                                          • 412 Using Pin Headers
                                            • 42 Peripherals
                                              • 421 LED
                                              • 422 Mechanical Switch
                                              • 423 Crystal
                                              • 424 On-Board Debugger Implementation
                                                • 4241 On-Board Debugger Connections
                                                  • 5 Hardware Revision History and Known Issues
                                                    • 51 Identifying Product ID and Revision
                                                    • 52 Revision 3
                                                      • 6 Document Revision History
                                                      • 7 Appendix
                                                        • 71 Schematic
                                                        • 72 Assembly Drawing
                                                        • 73 Curiosity Nano Base for Click boardstrade
                                                        • 74 Disconnecting the On-board Debugger
                                                        • 75 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: AVR128DA48 Curiosity Nano User Guide - Microchip Technologyww1.microchip.com/downloads/en/DeviceDoc/AVR128DA48... · 2020-03-19 · AVR128DA48 Curiosity Nano AVR128DA48 Curiosity

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

314 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 Atmel StudioMicrochip MPLABreg X IDE

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

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

3141 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 VisualizerFigure 3-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

3142 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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 12

32 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 3-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

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 3-3 Curiosity Nano Standard Pinout

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

33 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 AVR128DA48 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 AVR128DA48Curiosity Nano

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 13

Figure 3-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

331 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 implementationis 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 AVR128DA48microcontroller The voltage limits configured in the on-board debugger on AVR128DA48 Curiosity Nano are18-51V

Info  The target voltage is set to 33V when the board is manufactured It can be changed throughMPLAB X IDE project properties and in the Atmel Studio device programming dialog Any change to thetarget voltage is persistent even through 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 Atmel StudioMicrochip MPLABreg X IDE are not immediatelyapplied to the board The new voltage setting is applied to the board when the debugger is accessed inany way like pushing the Refresh 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 only supports settings of 00V 33V and 50V See section 3134 Special Commands forfurther details

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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 14

Figure 3-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

Info  If the external voltage is lower than the monitoring window lower limit (target voltage setting - 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

332 External SupplyAVR128DA48 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 AVR128DA48 is 18-55V Applying a higher voltage may cause permanent damage to theboard

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 15

Info  If an external voltage is applied without pulling the VOFF pin low and an external supply pulls thevoltage lower than the monitoring window 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 AVR128DA48 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

333 VBUS Output PinAVR128DA48 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

Figure 3-6 VBUS Output Voltage vs Current

334 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 between 44V to 525V) and thevoltage drop over the MIC5353 regulator at a given voltage setting and current consumption If a higher outputvoltage is needed use a USB power source that can provide a higher input voltage or use an external voltage supplyon the VTG pin

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 16

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 differ more than 100 mV overunder the voltage setting it will be detected by the on-board debugger and theinternal voltage regulator will be shut down To fix this issue remove the applied voltage from the VTG pin and theon-board debugger will enable the on-board voltage regulator when the new condition is detected Note that the PSLED will be blinking rapidly if the target voltage is below 100 mV of the setting but will be lit normally when it is higherthan 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 really a special case of the issue mentioned above Removethe short-circuit and the on-board debugger will re-enable the on-board target voltage regulator

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

34 Low Power MeasurementPower to the AVR128DA48 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 AVR128DA48 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 AVR128DA48

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 17

Figure 3-7 Target Power Strap

Target Power strap (top side)

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 are tri-state to prevent leakage All IOs connected to the on-boarddebugger are listed in 4241 On-Board Debugger Connections To prevent any leakage to the on-boardlevel shifters they can be disconnected completely as described in 74 Disconnecting the On-boardDebugger

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

351 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

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

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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 18

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

Figure 3-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

353 Hardware ModificationsThe on-board debugger is connected to the AVR128DA48 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 AVR128DA48 from the on-board debugger

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 19

Figure 3-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 AVR128DA48 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 AVR128DA48

354 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 33 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

AVR128DA48 Curiosity Nano has a pull-up resistor R200 connected to its RESET signal (DBG3) The location ofthe pull-up resistor is shown in the 72 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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 20

Figure 3-10 Curiosity Nano Standard Pinout

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

Table 3-4 Programming and Debugging Interfaces

Curiosity Nano Pin UPDI ICSPtrade SWD

DBG0 UPDI DATA SWDIO

DBG1 - CLK SWCLK

DBG2 - - -

DBG3 - MCLR RESET

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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 21

Figure 3-11 Connecting the MPLABreg PICkittrade 4 In-Circuit DebuggerProgrammer to AVR128DA48 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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 22

Figure 3-12 Connecting the Atmel-ICE to AVR128DA48 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 Atmel StudioMicrochip MPLABreg XIDE or mass storage programming while the external tool is active

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 23

4 Hardware User Guide

41 Connectors

411 AVR128DA48 Curiosity Nano PinoutAll the AVR128DA48 IO pins are accessible at the edge connectors on the board The image below shows the boardpinout

Figure 4-1 AVR128DA48 Curiosity Nano Pinout

USB

DEBUGGER

AVR128DA48

SW0

LED0

PS LEDNC

NC

ID

ID

CDC RX

CDCRXUSART1 TXPC0

CDC TX

CDCTXUSART1 RXPC1

DBG1

DBG

1PC6LED0

DBG2

DBG

2PC7SW0

PA0

PA0USART0 TXPTC XY0

PA1PA

1USART0 RXPTC XY1

PC2PC2TWI0 SDA

PC3

PC3TWI0 SCL

PA4

PA4SPI0 MOSIPTC XY4

PA5

PA5SPI0 MISOPTC XY5

PA6

PA6SPI0 SCKPTC XY6

PA7

PA7SPI0 SSPTC XY7

GND

GN

D

PF4

PF4USART2 TXPTC XY36

PF5

PF5USART2 RXPTC XY37

PF2

PF2PTC XY34

PF3

PF3PTC XY35

PB0

PB0PTC XY8

PB1

PB1PTC XY9

PB2

PB2PTC XY10

PB3

PB3PTC XY11

GND

GN

D

PC0

PC0USART1 TXCDC RX

PC1

PC1USART1 RXCDC TX

PC6

PC6LED0

PC7

PC7SW0

VBUS

VBU

S

VOFF

VO

FFDBG3

DBG

3 PF6

DBG0D

BG0 UPDI

GND

GN

D

VTG

VTG

PD7

PD7 AIN7 PTC XY23

PD6

PD6 AIN6 PTC XY22

PD2

PD2 AIN2 PTC XY18 TCA0 WO2

PD1

PD1 AIN1 PTC XY17 TCA0 WO1

PD0

PD0 AIN0 PTC XY16 TCA0 WO0

PD5

PD5 AIN5 PTC XY21

PD4

PD4 AIN4 PTC XY20

PD3

PD3 AIN3 PTC XY19

GND

GN

D

PE3

PE3 PTC XY27

PE2

PE2 PTC XY26

PE1

PE1 PTC XY25

PE0

PE0 PTC XY24

PA3

PA3 PTC XY3

PA2

PA2 PTC XY2

PB5

PB5 PTC XY13

PB4

PB4 PTC XY12

GND

GN

D

PC5

PC5

PC4

PC4

(PF1)

(PF1) (PTC XY33) XTAL32K2

(PF0)

(PF0) (PTC XY32) XTAL32K1

DEBUGGERAVR128DA48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

Touch

Shared pin

AVR128DA48Curiosity Nano

412 Using Pin HeadersThe edge connector footprint on AVR128DA48 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

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

AVR128DA48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 24

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

42 Peripherals

421 LEDThere is one yellow user LED available on the AVR128DA48 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 4-1 LED Connection

AVR128DA48 Pin Function Shared Functionality

PC6 Yellow LED0 Edge connector On-board debugger

422 Mechanical SwitchThe AVR128DA48 Curiosity Nano has one mechanical switch This is a generic user-configurable switch When theswitch 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 PC7

Table 4-2 Mechanical Switch

AVR128DA48 Pin Description Shared Functionality

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

423 Crystal

The AVR128DA48 Curiosity Nano board has a 32768 kHz crystal mounted

The AVR128DA48 is connected to the crystal by default but the GPIOs are also routed to the edge connectorthrough two solder points The two IO lines routed to the edge connector are disconnected by default to reduce thechance of an external signal causing contention with the crystal and to remove excessive capacitance on the linesTo use PF0 and PF1 as GPIO some hardware modifications are required

bull Disconnect the crystal by cutting the two straps on the top side of the board next to the crystal (J210 J211) Thecrystal 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 (J207 J208)

The cut straps and solder points can be seen in Figure 4-2

Table 4-3 Crystal Connections

AVR128DA48 Pin Function Shared Functionality

PF0 TOSC1 (Crystal input) Edge connector

PF1 TOSC2 (Crystal output) Edge connector

AVR128DA48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 25

Figure 4-2 Crystal Connection and Cut Straps

424 On-Board Debugger ImplementationAVR128DA48 Curiosity Nano features an on-board debugger that can be used to program and debug theAVR128DA48 using UPDI The on-board debugger also includes a virtual serial port (CDC) interface over UART anddebug GPIO Atmel StudioMicrochip MPLABreg X IDE 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

4241 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 31 On-Board DebuggerOverview

Table 4-4 On-Board Debugger Connections

AVR128DA48Pin

Debugger Pin Function Shared Functionality

RF1 CDC TX UART RX (AVR128DA48 RX line) Edge connector

RF0 CDC RX UART TX (AVR128DA48 TX line) Edge connector

UPDI DBG0 UPDI Edge connector

PC6 DBG1 GPIO1 Edge connector LED

PC7 DBG2 GPIO0 Edge connector Mechanical Switch

PF6 DBG3 RESET Edge connector

AVR128DA48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 26

5 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

51 Identifying Product ID and RevisionThe revision and product identifier of the AVR128DA48 Curiosity Nano Board can be found in two ways Either byutilizing the Atmel StudioMicrochip MPLABreg X IDE Kit Window or by looking at the sticker on the bottom side of thePCB

By connecting AVR128DA48 Curiosity Nano to a computer with Atmel StudioMicrochip MPLABreg X IDE running theKit Window will pop up The first six digits of the serial number which is listed under kit information contain theproduct identifier 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 AVR128DA48 Curiosity Nano is A09-3280

52 Revision 3Revision 3 is the initially released revision There are no known issues with this revision

AVR128DA48 Curiosity NanoHardware Revision History and Known Issues

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 27

6 Document Revision HistoryDoc rev Date Comment

A 032020 Initial document release

AVR128DA48 Curiosity NanoDocument Revision History

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 28

7 Appendix

71 SchematicFigure 7-1 AVR128DA48 Curiosity Nano Schematic

11

22

33

44

55

66

77

88

DD

CC

BB

AA

2 of

4

AVR1

28D

A48

Curio

sity

Nan

o

102

320

19AV

R128

DA

48_C

urio

sity

_Nan

o_Ta

rget

_MCU

Sch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA R

evisi

on

File

PC

B N

umbe

rPC

B Re

visio

n

Des

igne

d wi

th

Dra

wn

By

PB Shee

t Titl

eTa

rget

MCU

Engi

neer

A

H T

F

A08

-300

23

Size

A3

A09

-328

03

Page

D

ateA

ltium

com

GN

DV

CC_T

ARG

ET

100n

C201

GN

D

PA5_

SPI0

_MIS

OPA

6_SP

I0_S

CKPA

7_SP

I0_S

SPB

0_U

ART

3_TX

PB1_

UA

RT3_

RXPB

2PB

3PB

4PB

5PC

0_U

ART

1_TX

PC1_

UA

RT1_

RXPC

2_I2

C0_S

DA

PC3_I2C0_SCL

PC4PC5PC6_LED0_GPIO1PC7_SW0_GPIO0PD0_AIN0_WO0PD1_AIN1_WO1PD2_AIN2_WO2PD3_AIN3PD4_AIN4

PA3

PA1_UART0_RX

UPDI

PF5_UART2_RX

PF3

PF2

PF1_

TOSC

2PF

0_TO

SC1

PE3

PE2

PE1

PE0

PD5_

AIN

5PD

6_A

IN6

PD7_

AIN

7

GN

D

VCC

_TA

RGET

100n

C202

GN

DV

CC_T

ARG

ET10

0n

C200

PF1_TOSC2

PF0_TOSC1

PA2

PA0_UART0_TX

PF4_UART2_TX

PA4_SPI0_MOSI

GN

D

PA7_

SPI0

_SS

PA6_

SPI0

_SCK

PA5_

SPI0

_MIS

OPA

4_SP

I0_M

OSI

PA3

PA2

PA1_

UA

RT0_

RXPA

0_U

ART

0_TX

PB0_

UA

RT3_

TXPB

1_U

ART

3_RX

PB2

PB3

PB4

PB5

PD7_

AIN

7PD

6_A

IN6

PF5_

UA

RT2_

RXPF

4_U

ART

2_TX

PF3

PF2

32kH

z C

ryst

al

1kR203

USE

R L

ED

VCC

_TA

RGET

PF6_RESET

PC7_SW0_GPIO0

PC6_LED0_GPIO1

GN

D

USE

R B

UTT

ON

PE3

PE2

PE1

PE0

PC0_

UA

RT1_

TXPC

1_U

ART

1_RX

PC2_

I2C0

_SD

APC

3_I2

C0_S

CL

PC4

PC5

PC6_

LED

0_G

PIO

1PC

7_SW

0_G

PIO

0

1kR202

YELLOWLEDSML-D12Y1WT86

2 1D200

TS604VM1-035CR13

4 2

SW20

0

GN

DV

CC_E

DG

E

GN

DG

ND

GN

DG

ND

UPD

IPF

6_RE

SET

J207

J208

J209

BLM

18PG

471S

N1

L200

AVR1

28D

A48

22u

FC2

05

VCC

_ED

GE

GN

D

DBG0

CDC_

UART

TXRXU

ART

CDC_TXCDC_RX

DBG2

DBG1

DBG3

DBG2

DEB

UG

GER

CO

NN

ECTI

ON

S

DBG1

DBG3DBG0

VOFF

ID_S

YS

ID_SYS

VOFF

TAR

GET

BU

LK

VCC

_TA

RGET

RES

ET P

ull

VBU

S

CDC

RX3

CDC

TX4

DBG

15

DBG

26

0 TX

71

RX8

2 SD

A9

3 SC

L10

4 M

OSI

115

MIS

O12

6 SC

K13

7 SS

14G

ND

150

(TX

)16

1 (R

X)

172

183

190

20

GN

D24

DBG

354

DBG

053

GN

D52

VCC

51

PWM

346

AD

C 2

45A

DC

144

AD

C 0

43G

ND

42

438

434

GN

D33

AD

C 7

50A

DC

649

AD

C 5

48PW

M 4

47

DEB

UG

GER

TARG

ET

ID2

VO

FF55

121

222

323

025

126

227

328

429

530

631

732

535

636

737

539

640

741

RESE

RVED

1V

BUS

56

CNA

NO

56-p

in e

dge

conn

ecto

r

J200

J201

J203

J205

J206

J202

J204

PF1

PF0

PF1_

TOSC

2PF

0_TO

SC1

NC

J211

J210

XOUT

XIN

47kR200

AVR

128D

A48

UPD

I

GPI

O1

GPI

O0

RESE

T

DBG

0

DBG

1

DBG

2

DBG

3

Deb

ugge

r

CD

C T

X

CD

C R

X

UA

RT1

RX

UA

RT1

TX

VTG

18V

- 5

5VPC6

PC7

PF6

UPD

I

PC0

PC1

Nam

ePi

n

PA5

1PA

62

PA7

3PB

04

PB1

5PB

26

PB3

7PB

48

PB5

9PC

010

PC1

11PC

212

PC3 13VDD 14GND 15PC4 16PC5 17PC6 18PC7 19PD0 20PD1 21PD2 22PD3 23PD4 24

PD5

25PD

626

PD7

27AV

DD28

GND

29PE

030

PE1

31PE

232

PE3

33XT

AL32

K1P

F034

XTAL

32K2

PF1

35PF

236

PF337 PF438 PF539 PF640 UPDI41 VDD42 GND43 EXTCLKPA044 PA145 PA246 PA347 PA448

AVR1

28D

A48

TQ

FPU

200

PC0_

UA

RT1_

TXPC

1_U

ART

1_RX

PC6_

LED

0_G

PIO

1PC

7_SW

0_G

PIO

0

AVD

D

PD2_

AIN

2_W

O2

PD1_

AIN

1_W

O1

PD0_

AIN

0_W

O0

PD5_

AIN

5PD

4_A

IN4

PD3_

AIN

3

XC2

00

12p

C203

12p

C204

327

68 k

Hz

Crys

tal d

atas

heet

Cc

rysta

l = 9

pFm

ax E

SR =

70k

Ohm

Acc

urac

y plusmn2

0ppm

AVR1

28D

A48

dat

ashe

et

Cxin

= 4

1pF

Cxou

t = 6

0pF

Cl asymp

1( (

14

1pF)

+ (1

60

pF) )

asymp2

44pF

Max

imum

Loa

d =

125

pFM

axim

um E

SR =

80k

Ohm

Estim

ated

Cpc

b =

05p

F

Estim

ated

load

C =

2 (C

crys

tal-

Cpar

a - C

pcb)

C

= 2

(9pF

- 2

44pF

- 0

5pF)

C =

121

2pF

Sele

cted

in d

esig

n af

ter v

erifi

catio

nC=

12p

F12

pF

NO

TE o

n U

ART

CD

C

RXT

X o

n th

e he

ader

den

otes

the

inpu

tout

put d

irect

ion

of th

e sig

nal

resp

ectiv

e to

its

sour

ce

CDC

TX is

out

put f

rom

the

DEB

UG

GER

CD

C RX

is in

put t

o th

e D

EBU

GG

ER

TX is

out

put f

rom

the

TARG

ET d

evic

eRX

is in

put t

o th

e TA

RGET

dev

ice

NO

TE o

n I2

C

No

pull-

ups o

n bo

ard

Pul

l-ups

shou

ld b

e m

ount

ed c

lose

to sl

ave

devi

ce(s

)

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 29

11

22

33

44

55

66

77

88

DD

CC

BB

AA

3 of

4

AVR1

28D

A48

Curio

sity

Nan

o

102

320

19AV

R128

DA

48_C

urio

sity

_Nan

o_D

ebug

gerS

chD

oc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA R

evisi

on

File

PC

B N

umbe

rPC

B Re

visio

n

Des

igne

d wi

th

Dra

wn

By

PB Shee

t Titl

eD

ebug

ger

Engi

neer

A

H T

F

A08

-300

23

Size

A3

A09

-328

03

Page

D

ateA

ltium

com

DEB

UG

GER

USB

MIC

RO

-B C

ON

NEC

TOR

GN

D

USB

D_P

USB

D_N

100n

C107

100n

C108

RXTXU

ART

CDC_

UART

1kR1

07V

CC_P

3V3

SRST

STAT

US_

LED

SHIE

LD

VBU

S

VCC

_P3V

3G

ND

TP10

0

Testp

oint

Arra

y

12

34

56

78

910

TCK

TDO

TMS

Vsu

pTD

IG

ND

TRST

SRST

VTr

efG

ND

J102

GN

D

47u

F

C100

DBG0

DBG

0

21

GRE

EN L

EDSM

L-P1

2MTT

86R

D10

0

VBUS

1D-

2D+

3

GND

5SH

IELD

16

SHIE

LD2

7

ID4

SHIE

LD3

8SH

IELD

49 M

U-M

B014

2AB2

-269

J105

PAD

33

PA00

1PA

012

PA02

3PA

034

GND 10VDDANA 9

PA04

5PA

056

PA06

7PA

078

PA08 11PA09 12PA10 13PA11 14PA14 15PA15 16

PA16

17PA

1718

PA18

19PA

1920

PA22

21US

B_SO

FPA

2322

USB_

DMP

A24

23US

B_DP

PA2

524

PA2725 RESETN26 PA2827 GND28 VDDCORE29 VDDIN30 SWDCLKPA3031 SWDIOPA3132

SAM

D21

E18A

-MU

TU

100

VOUT

1

VOUT

2

GND 3

EN4

VIN

6

NC5

EP 7

MIC

5528

-33

YM

TU

101

VCC

_P3V

3

GN

D

USB

D_P

USB

D_N

GN

D

1uC106

VCC

_MCU

_CO

RE

VCC

_P3V

3

VCC

_P3V

3

22u

FC1

01

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

3V

CC_P

3V3

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

4V

CC_P

3V3

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

5V

CC_P

3V3

GN

D

GN

D GN

D

GN

D

VCC

_ED

GE

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

7V

CC_P

3V3

GN

DDB

G2

DBG

3_CT

RL

S1_0

_TX

S1_1

_RX

S0_2

_TX

DA

CV

TG_A

DC

RESE

RVED

S0_3

_CLK

DBG0_CTRL

CDC_

TX_C

TRL

BOO

T

DEB

UG

GER

PO

WER

STA

TUS

LED

EN1

BYP

6

VOUT

4

GND

2

VIN

3

NCA

DJ5

GND 7

MIC

5353

U10

2

100n

C102

GN

D

GN

D

47kR101

27kR104 G

ND

33k

R106

22u

F

C103 G

ND

1kR1

08

J100

VCC

_LEV

ELV

CC_R

EGU

LATO

R

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

6V

CC_P

3V3

GN

DDB

G1

CDC_

RXCD

C_TX

DBG3

DBG1_CTRL

DEB

UG

GER

REG

ULA

TOR

REG_ENABLE

REG

_EN

ABL

E

47kR103

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

47kR102

47kR105

SWCL

K

GN

D

47kR100 G

ND

DBG

2

S0_0

_RX

DBG

1_CT

RL

DBG

0_CT

RL

DBG

3 O

PEN

DR

AIN

TAR

GET

AD

JUST

ABL

E R

EGU

LATO

R

SRST

DEB

UG

GER

TES

TPO

INT DBG2_CTRL

VO

FFCD

C_RX

_CTR

L

47kR109

DBG

1

CDC_

TX_C

TRL

CDC_

RX_C

TRL

SWCL

K

REG_ADJUST

DBG2_GPIO

DBG

3_CT

RL

DBG

2_CT

RL

UPD

I

UPD

I

GPI

O

GPI

O

RESE

T

Sign

al

DBG

0

DBG

1

DBG

2

DBG

3

ICSP

Inte

rface

DAT

CLK

GPI

O

MCL

R

DBG

3

CD

C T

X

CD

C R

X

UA

RT R

X

UA

RT T

X

UA

RT R

X

UA

RT T

X

TAR

GET

TAR

GET

1kR1

10

VBUS_ADC

1

23

DM

N65

D8L

FBQ

101

VC

C-

-

ID_S

YS

VOFF

1kR112

VCC

_P3V

3

VTG

_AD

CD

AC

MIC

9416

3

VIN

B2VO

UTA1

VIN

A2

ENC2

GND

C1VO

UTB1

U10

8

GN

D

ID_S

YS

VTG

_EN

VTG_EN

VBUS_ADC

SWD

IO

ID_S

YS

TP10

1G

ND

SWD

IO

VO

FF

47kR111 G

ND

ID P

IN

MC3

6213

F100

VCC

_VBU

S

VCC

_VBU

S

VCC

_VBU

S

J101

VCC

_TA

RGET

47k

R113

Prog

ram

min

g co

nnec

tor f

or

fact

ory

prog

ram

min

g of

D

EBU

GG

ER

MIC

5528

Vi

n 2

5V

to 5

5V

Vout

Fix

ed 3

3V

Imax

500

mA

Dro

pout

260

mV

5

00m

A

PTC

Rese

ttabl

e fu

se

Hol

d cu

rrent

500

mA

Trip

cur

rent

100

0mA

Adj

usta

ble

outp

ut a

nd li

mita

tions

- T

he D

EBU

GG

ER c

an a

djus

t the

out

put v

olta

ge o

f the

regu

lato

r bet

wee

n 1

25V

and

51

V to

the

targ

et

- The

vol

tage

out

put i

s lim

ited

by th

e in

put (

USB

) w

hich

can

var

y be

twee

n 4

40V

to 5

25V

- The

leve

l shi

fters

hav

e a

min

imal

vol

tage

leve

l of 1

65V

and

will

lim

it th

e m

inim

um o

pera

ting

volta

ge a

llow

ed fo

r the

ta

rget

to st

ill a

llow

com

mun

icat

ion

- The

MIC

9416

3 ha

s a m

inim

al v

olta

ge le

vel o

f 17

0V a

nd w

ill li

mit

the

min

imum

vol

tage

del

iver

ed to

the

targ

et

- Firm

war

e co

nfig

urat

ion

will

lim

it th

e vo

ltage

rang

e to

be

with

in th

e th

e ta

rget

spec

ifica

tion

R113

is re

quire

d to

pul

l the

Q

101

gate

to a

def

ined

va

lue

whe

n th

e U

100

is no

t po

wer

ed

J100

Cu

t-stra

p us

ed fo

r ful

l sep

arat

ion

of ta

rget

pow

er fr

om th

e le

vel s

hifte

rs a

nd o

n-bo

ard

regu

lato

rs

- For

cur

rent

mea

sure

men

ts us

ing

an e

xter

nal p

ower

supp

ly t

his s

trap

coul

d be

cut

for m

ore

accu

rate

mea

sure

men

ts L

eaka

ge b

ack

thro

ugh

the

switc

h is

in th

e m

icro

am

pere

rang

e

J101

Th

is is

foot

prin

t for

a 1

x2 1

00m

il pi

tch

pin-

head

er th

at c

an b

e us

ed fo

r eas

y cu

rrent

mea

sure

men

t to

the

targ

et m

icro

cont

rolle

r and

the

LED

Bu

tton

To

use

the

foot

prin

t- C

ut th

e tra

ck b

etw

een

the

hole

s an

d m

ount

a p

in-h

eade

r

MIC

5353

Vi

n 2

6V

to 6

VVo

ut 1

25V

to 5

1V

Imax

500

mA

Dro

pout

(typ

ical

) 50

mV

15

0mA

160

mV

5

00m

AA

ccur

acy

2

initi

alTh

erm

al sh

utdo

wn

and

curre

nt li

mit

Max

imum

out

put v

olta

ge is

lim

ited

by th

e in

put v

olta

ge a

nd th

e dr

opou

t vol

tage

in th

e re

gula

tor

(Vm

ax =

Vin

- dr

opou

t)

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 30

72 Assembly DrawingFigure 7-2 AVR128DA48 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

PAC20002 PAC20001 COC200

PAC20102 PAC20101 COC201

PAC20202 PAC20201 COC202

PAC20301 PAC20302 COC203

PAC20401 PAC20402 COC204

PAC20502

PAC20501 COC205

PAD10002 PAD10001 COD100

PAD20001

PAD20002 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

PAJ20701 PAJ20702 PAJ20705 COJ207

PAJ20801 PAJ20802 PAJ20805 COJ208

PAJ20901 PAJ20902 COJ209

PAJ21002 PAJ21001 COJ210

PAJ21102 PAJ21101 COJ211

PAL20002 PAL20001 COL200

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

PAR20002 PAR20001 COR200

PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203

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

PAU200048 PAU200047 PAU200046 PAU200045 PAU200044 PAU200043 PAU200042 PAU200041 PAU200040 PAU200039 PAU200038 PAU200037 PAU200036 PAU200035 PAU200034 PAU200033 PAU200032 PAU200031 PAU200030 PAU200029 PAU200028 PAU200027 PAU200026 PAU200025 PAU200024 PAU200023 PAU200022 PAU200021 PAU200020 PAU200019 PAU200018 PAU200017 PAU200016 PAU200015 PAU200014 PAU200013

PAU200012 PAU200011 PAU200010 PAU20009 PAU20008 PAU20007 PAU20006 PAU20005 PAU20004 PAU20003 PAU20002 PAU20001

COU200

PAXC20001

PAXC20002

COXC200

Figure 7-3 AVR128DA48 Curiosity Nano Assembly Drawing Bottom

ctR

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20002 PAC20001 COC200

PAC20102 PAC20101 COC201

PAC20202 PAC20201 COC202

PAC20301 PAC20302 COC203

PAC20401 PAC20402 COC204

PAC20502

PAC20501 COC205

PAD10002 PAD10001 COD100

PAD20001

PAD20002 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

PAJ20701 PAJ20702 PAJ20705 COJ207

PAJ20801 PAJ20802 PAJ20805 COJ208

PAJ20901 PAJ20902 COJ209

PAJ21002 PAJ21001 COJ210

PAJ21102 PAJ21101 COJ211

PAL20002 PAL20001 COL200

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

PAR20002 PAR20001 COR200

PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203

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

PAU200048 PAU200047 PAU200046 PAU200045 PAU200044 PAU200043 PAU200042 PAU200041 PAU200040 PAU200039 PAU200038 PAU200037 PAU200036 PAU200035 PAU200034 PAU200033 PAU200032 PAU200031 PAU200030 PAU200029 PAU200028 PAU200027 PAU200026 PAU200025 PAU200024 PAU200023 PAU200022 PAU200021 PAU200020 PAU200019 PAU200018 PAU200017 PAU200016 PAU200015 PAU200014 PAU200013

PAU200012 PAU200011 PAU200010 PAU20009 PAU20008 PAU20007 PAU20006 PAU20005 PAU20004 PAU20003 PAU20002 PAU20001

COU200

PAXC20001

PAXC20002

COXC200

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 31

73 Curiosity Nano Base for Click boardstrade

Figure 7-4 AVR128DA48 Curiosity Nano Pinout Mapping

USB

DEB

UG

GER

AVR1

28D

A48

SW0

LED

0

PS L

EDNC

NC

ID

ID

CDC RX

CDCRX

USART1 TX

PC0

CDC TX

CDCTX

USART1 RX

PC1

DBG1

DBG1

PC6

LED0

DBG2

DBG2

PC7

SW0

PA0

PA0

USART0 TX

PTC XY0

PA1

PA1

USART0 RX

PTC XY1

PC2

PC2

TWI0 SDA

PC3

PC3

TWI0 SCL

PA4

PA4

SPI0 MOSI

PTC XY4

PA5

PA5

SPI0 MISO

PTC XY5

PA6

PA6

SPI0 SCK

PTC XY6

PA7

PA7

SPI0 SS

PTC XY7

GND

GND

PF4

PF4

USART2 TX

PTC XY36

PF5

PF5

USART2 RX

PTC XY37

PF2

PF2

PTC XY34

PF3

PF3

PTC XY35

PB0

PB0

PTC XY8

PB1

PB1

PTC XY9

PB2

PB2

PTC XY10

PB3

PB3

PTC XY11

GND

GND

PC0

PC0

USART1 TX

CDC RX

PC1

PC1

USART1 RX

CDC TX

PC6

PC6

LED0

PC7

PC7

SW0

VBUS

VBUS

VOFF

VOFF

DBG3

DBG3

PF6

DBG0

DBG0

UPDI

GND

GND

VTG

VTG

PD7

PD7

AIN7

PTC XY23

PD6

PD6

AIN6

PTC XY22

PD2

PD2

AIN2

PTC XY18

TCA0 WO2

PD1

PD1

AIN1

PTC XY17

TCA0 WO1

PD0

PD0

AIN0

PTC XY16

TCA0 WO0

PD5

PD5

AIN5

PTC XY21

PD4

PD4

AIN4

PTC XY20

PD3

PD3

AIN3

PTC XY19

GND

GND

PE3

PE3

PTC XY27

PE2

PE2

PTC XY26

PE1

PE1

PTC XY25

PE0

PE0

PTC XY24

PA3

PA3

PTC XY3

PA2

PA2

PTC XY2

PB5

PB5

PTC XY13

PB4

PB4

PTC XY12

GND

GND

PC5

PC5

PC4

PC4

(PF1)

(PF1)

(PTC XY33)

XTAL32K2

(PF0)

(PF0)

(PTC XY32)

XTAL32K1

DEB

UG

GER

AVR1

28D

A48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

Touch

Shared pin

AVR1

28D

A48

Curio

sity

Nan

o

1

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

2

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

3

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

Xpl

aine

d Pr

o Ex

tens

ion

EXT1

12

1920

Curio

sity

Nan

o Ba

sefo

r clic

k bo

ards

TM

PD3

PD0

PD7

PD6

PA7

PA1

PA6

PA0

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

PD4

PD1

PF3

PF2

PE2

PF5

PA6

PF4

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

PD5

PD2

PE1

PE0

PE3

PA1

PA6

PA0

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

ID

GND

PD4

PD5

PF3

PE1

PD1

PD2

PF2

PE3

PC2

PC3

PF5

PF4

PE2

PA4

PA5

PA6

GND

+33V

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 32

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

The block diagram below shows all connections between the debugger and the AVR128DA48 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 7-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 7-6 Details about connecting an external debugger are described in 36 Connecting ExternalDebuggers

Figure 7-5  On-Board Debugger Connections Block Diagram

DEB

UG

GER

TARGETLevel-Shift

PA04PA06PA07PA08PA16PA00PA01

USB

DIR x 5

VCC_P3V3

VBUS

VCC

_LEV

EL

VCC

_TA

RGET

DBG0DBG1DBG2DBG3CDC 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

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 33

Figure 7-6 On-Board Debugger Connection Cut Straps

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

75 Getting Started with IARIAR Embedded Workbenchreg for AVRreg is a proprietary high-efficiency compiler not based on GCC Programming anddebugging of AVR128DA48 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 7-73 In the category Debugger select the Setup tab Select Atmel-ICE as the driver as shown in Figure 7-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 7-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

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 34

Figure 7-7 Select Target Device

Figure 7-8 Select Debugger

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 35

Figure 7-9 Configure Interface

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 36

The Microchip WebsiteMicrochip provides online support via our website at httpwwwmicrochipcom This website is used to make filesand information 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 ServiceMicrochiprsquos 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 httpwwwmicrochipcompcn and follow the registration instructions

Customer SupportUsers 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 httpwwwmicrochipcomsupport

Microchip Devices Code Protection FeatureNote the following details of the code protection feature on Microchip devices

bull Microchip products meet the specification contained in their particular Microchip Data Sheetbull Microchip believes that its family of products is one of the most secure families of its kind on the market today

when used in the intended manner and under normal conditionsbull There are dishonest and possibly illegal methods used to breach the code protection feature All of these

methods to our knowledge require using the Microchip products in a manner outside the operatingspecifications contained in Microchiprsquos Data Sheets Most likely the person doing so is engaged in theft ofintellectual property

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

protection does not mean that we are guaranteeing the product as ldquounbreakablerdquo

Code protection is constantly evolving We at Microchip are committed to continuously improving the code protectionfeatures of our products Attempts to break Microchiprsquos code protection feature may be a violation of the DigitalMillennium Copyright Act If such acts allow unauthorized access to your software or other copyrighted work youmay have a right to sue for relief under that Act

Legal NoticeInformation contained in this publication regarding device applications and the like is provided only for yourconvenience and may be superseded by updates It is your responsibility to ensure that your application meets with

AVR128DA48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 37

your specifications MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHEREXPRESS OR IMPLIED WRITTEN OR ORAL STATUTORY OR OTHERWISE RELATED TO THE INFORMATIONINCLUDING BUT NOT LIMITED TO ITS CONDITION QUALITY PERFORMANCE MERCHANTABILITY ORFITNESS FOR PURPOSE Microchip disclaims all liability arising from this information and its use Use of Microchipdevices in life support andor safety applications is entirely at the buyerrsquos risk and the buyer agrees to defendindemnify and hold harmless Microchip from any and all damages claims suits or expenses resulting from suchuse No licenses are conveyed implicitly or otherwise under any Microchip intellectual property rights unlessotherwise stated

TrademarksThe 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-5760-2

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

AVR128DA48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 38

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupporthttpwwwmicrochipcomsupportWeb AddresshttpwwwmicrochipcomAtlantaDuluth 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 DS50002971A-page 39

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Kit Overview
      • 2 Getting Started
        • 21 Quick Start
        • 22 Design Documentation and Relevant Links
          • 3 Curiosity Nano
            • 31 On-Board Debugger Overview
              • 311 Debugger
              • 312 Virtual Serial Port (CDC)
                • 3121 Overview
                • 3122 Operating System Support
                • 3123 Limitations
                • 3124 Signaling
                • 3125 Advanced Use
                  • 313 Mass Storage Device
                    • 3131 Mass Storage Device Implementation
                    • 3132 Fuse Bytes
                    • 3133 Limitations of Drag-and-Drop Programming
                    • 3134 Special Commands
                      • 314 Data Gateway Interface (DGI)
                        • 3141 Debug GPIO
                        • 3142 Timestamping
                            • 32 Curiosity Nano Standard Pinout
                            • 33 Power Supply
                              • 331 Target Regulator
                              • 332 External Supply
                              • 333 VBUS Output Pin
                              • 334 Power Supply Exceptions
                                • 34 Low Power Measurement
                                • 35 Programming External Microcontrollers
                                  • 351 Supported Devices
                                  • 352 Software Configuration
                                  • 353 Hardware Modifications
                                  • 354 Connecting to External Microcontrollers
                                    • 36 Connecting External Debuggers
                                      • 4 Hardware User Guide
                                        • 41 Connectors
                                          • 411 AVR128DA48 Curiosity Nano Pinout
                                          • 412 Using Pin Headers
                                            • 42 Peripherals
                                              • 421 LED
                                              • 422 Mechanical Switch
                                              • 423 Crystal
                                              • 424 On-Board Debugger Implementation
                                                • 4241 On-Board Debugger Connections
                                                  • 5 Hardware Revision History and Known Issues
                                                    • 51 Identifying Product ID and Revision
                                                    • 52 Revision 3
                                                      • 6 Document Revision History
                                                      • 7 Appendix
                                                        • 71 Schematic
                                                        • 72 Assembly Drawing
                                                        • 73 Curiosity Nano Base for Click boardstrade
                                                        • 74 Disconnecting the On-board Debugger
                                                        • 75 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: AVR128DA48 Curiosity Nano User Guide - Microchip Technologyww1.microchip.com/downloads/en/DeviceDoc/AVR128DA48... · 2020-03-19 · AVR128DA48 Curiosity Nano AVR128DA48 Curiosity

32 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 3-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

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 3-3 Curiosity Nano Standard Pinout

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

33 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 AVR128DA48 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 AVR128DA48Curiosity Nano

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 13

Figure 3-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

331 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 implementationis 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 AVR128DA48microcontroller The voltage limits configured in the on-board debugger on AVR128DA48 Curiosity Nano are18-51V

Info  The target voltage is set to 33V when the board is manufactured It can be changed throughMPLAB X IDE project properties and in the Atmel Studio device programming dialog Any change to thetarget voltage is persistent even through 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 Atmel StudioMicrochip MPLABreg X IDE are not immediatelyapplied to the board The new voltage setting is applied to the board when the debugger is accessed inany way like pushing the Refresh 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 only supports settings of 00V 33V and 50V See section 3134 Special Commands forfurther details

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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 14

Figure 3-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

Info  If the external voltage is lower than the monitoring window lower limit (target voltage setting - 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

332 External SupplyAVR128DA48 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 AVR128DA48 is 18-55V Applying a higher voltage may cause permanent damage to theboard

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 15

Info  If an external voltage is applied without pulling the VOFF pin low and an external supply pulls thevoltage lower than the monitoring window 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 AVR128DA48 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

333 VBUS Output PinAVR128DA48 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

Figure 3-6 VBUS Output Voltage vs Current

334 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 between 44V to 525V) and thevoltage drop over the MIC5353 regulator at a given voltage setting and current consumption If a higher outputvoltage is needed use a USB power source that can provide a higher input voltage or use an external voltage supplyon the VTG pin

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 16

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 differ more than 100 mV overunder the voltage setting it will be detected by the on-board debugger and theinternal voltage regulator will be shut down To fix this issue remove the applied voltage from the VTG pin and theon-board debugger will enable the on-board voltage regulator when the new condition is detected Note that the PSLED will be blinking rapidly if the target voltage is below 100 mV of the setting but will be lit normally when it is higherthan 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 really a special case of the issue mentioned above Removethe short-circuit and the on-board debugger will re-enable the on-board target voltage regulator

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

34 Low Power MeasurementPower to the AVR128DA48 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 AVR128DA48 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 AVR128DA48

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 17

Figure 3-7 Target Power Strap

Target Power strap (top side)

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 are tri-state to prevent leakage All IOs connected to the on-boarddebugger are listed in 4241 On-Board Debugger Connections To prevent any leakage to the on-boardlevel shifters they can be disconnected completely as described in 74 Disconnecting the On-boardDebugger

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

351 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

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

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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 18

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

Figure 3-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

353 Hardware ModificationsThe on-board debugger is connected to the AVR128DA48 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 AVR128DA48 from the on-board debugger

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 19

Figure 3-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 AVR128DA48 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 AVR128DA48

354 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 33 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

AVR128DA48 Curiosity Nano has a pull-up resistor R200 connected to its RESET signal (DBG3) The location ofthe pull-up resistor is shown in the 72 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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 20

Figure 3-10 Curiosity Nano Standard Pinout

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

Table 3-4 Programming and Debugging Interfaces

Curiosity Nano Pin UPDI ICSPtrade SWD

DBG0 UPDI DATA SWDIO

DBG1 - CLK SWCLK

DBG2 - - -

DBG3 - MCLR RESET

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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 21

Figure 3-11 Connecting the MPLABreg PICkittrade 4 In-Circuit DebuggerProgrammer to AVR128DA48 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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 22

Figure 3-12 Connecting the Atmel-ICE to AVR128DA48 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 Atmel StudioMicrochip MPLABreg XIDE or mass storage programming while the external tool is active

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 23

4 Hardware User Guide

41 Connectors

411 AVR128DA48 Curiosity Nano PinoutAll the AVR128DA48 IO pins are accessible at the edge connectors on the board The image below shows the boardpinout

Figure 4-1 AVR128DA48 Curiosity Nano Pinout

USB

DEBUGGER

AVR128DA48

SW0

LED0

PS LEDNC

NC

ID

ID

CDC RX

CDCRXUSART1 TXPC0

CDC TX

CDCTXUSART1 RXPC1

DBG1

DBG

1PC6LED0

DBG2

DBG

2PC7SW0

PA0

PA0USART0 TXPTC XY0

PA1PA

1USART0 RXPTC XY1

PC2PC2TWI0 SDA

PC3

PC3TWI0 SCL

PA4

PA4SPI0 MOSIPTC XY4

PA5

PA5SPI0 MISOPTC XY5

PA6

PA6SPI0 SCKPTC XY6

PA7

PA7SPI0 SSPTC XY7

GND

GN

D

PF4

PF4USART2 TXPTC XY36

PF5

PF5USART2 RXPTC XY37

PF2

PF2PTC XY34

PF3

PF3PTC XY35

PB0

PB0PTC XY8

PB1

PB1PTC XY9

PB2

PB2PTC XY10

PB3

PB3PTC XY11

GND

GN

D

PC0

PC0USART1 TXCDC RX

PC1

PC1USART1 RXCDC TX

PC6

PC6LED0

PC7

PC7SW0

VBUS

VBU

S

VOFF

VO

FFDBG3

DBG

3 PF6

DBG0D

BG0 UPDI

GND

GN

D

VTG

VTG

PD7

PD7 AIN7 PTC XY23

PD6

PD6 AIN6 PTC XY22

PD2

PD2 AIN2 PTC XY18 TCA0 WO2

PD1

PD1 AIN1 PTC XY17 TCA0 WO1

PD0

PD0 AIN0 PTC XY16 TCA0 WO0

PD5

PD5 AIN5 PTC XY21

PD4

PD4 AIN4 PTC XY20

PD3

PD3 AIN3 PTC XY19

GND

GN

D

PE3

PE3 PTC XY27

PE2

PE2 PTC XY26

PE1

PE1 PTC XY25

PE0

PE0 PTC XY24

PA3

PA3 PTC XY3

PA2

PA2 PTC XY2

PB5

PB5 PTC XY13

PB4

PB4 PTC XY12

GND

GN

D

PC5

PC5

PC4

PC4

(PF1)

(PF1) (PTC XY33) XTAL32K2

(PF0)

(PF0) (PTC XY32) XTAL32K1

DEBUGGERAVR128DA48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

Touch

Shared pin

AVR128DA48Curiosity Nano

412 Using Pin HeadersThe edge connector footprint on AVR128DA48 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

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

AVR128DA48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 24

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

42 Peripherals

421 LEDThere is one yellow user LED available on the AVR128DA48 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 4-1 LED Connection

AVR128DA48 Pin Function Shared Functionality

PC6 Yellow LED0 Edge connector On-board debugger

422 Mechanical SwitchThe AVR128DA48 Curiosity Nano has one mechanical switch This is a generic user-configurable switch When theswitch 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 PC7

Table 4-2 Mechanical Switch

AVR128DA48 Pin Description Shared Functionality

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

423 Crystal

The AVR128DA48 Curiosity Nano board has a 32768 kHz crystal mounted

The AVR128DA48 is connected to the crystal by default but the GPIOs are also routed to the edge connectorthrough two solder points The two IO lines routed to the edge connector are disconnected by default to reduce thechance of an external signal causing contention with the crystal and to remove excessive capacitance on the linesTo use PF0 and PF1 as GPIO some hardware modifications are required

bull Disconnect the crystal by cutting the two straps on the top side of the board next to the crystal (J210 J211) Thecrystal 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 (J207 J208)

The cut straps and solder points can be seen in Figure 4-2

Table 4-3 Crystal Connections

AVR128DA48 Pin Function Shared Functionality

PF0 TOSC1 (Crystal input) Edge connector

PF1 TOSC2 (Crystal output) Edge connector

AVR128DA48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 25

Figure 4-2 Crystal Connection and Cut Straps

424 On-Board Debugger ImplementationAVR128DA48 Curiosity Nano features an on-board debugger that can be used to program and debug theAVR128DA48 using UPDI The on-board debugger also includes a virtual serial port (CDC) interface over UART anddebug GPIO Atmel StudioMicrochip MPLABreg X IDE 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

4241 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 31 On-Board DebuggerOverview

Table 4-4 On-Board Debugger Connections

AVR128DA48Pin

Debugger Pin Function Shared Functionality

RF1 CDC TX UART RX (AVR128DA48 RX line) Edge connector

RF0 CDC RX UART TX (AVR128DA48 TX line) Edge connector

UPDI DBG0 UPDI Edge connector

PC6 DBG1 GPIO1 Edge connector LED

PC7 DBG2 GPIO0 Edge connector Mechanical Switch

PF6 DBG3 RESET Edge connector

AVR128DA48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 26

5 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

51 Identifying Product ID and RevisionThe revision and product identifier of the AVR128DA48 Curiosity Nano Board can be found in two ways Either byutilizing the Atmel StudioMicrochip MPLABreg X IDE Kit Window or by looking at the sticker on the bottom side of thePCB

By connecting AVR128DA48 Curiosity Nano to a computer with Atmel StudioMicrochip MPLABreg X IDE running theKit Window will pop up The first six digits of the serial number which is listed under kit information contain theproduct identifier 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 AVR128DA48 Curiosity Nano is A09-3280

52 Revision 3Revision 3 is the initially released revision There are no known issues with this revision

AVR128DA48 Curiosity NanoHardware Revision History and Known Issues

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 27

6 Document Revision HistoryDoc rev Date Comment

A 032020 Initial document release

AVR128DA48 Curiosity NanoDocument Revision History

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 28

7 Appendix

71 SchematicFigure 7-1 AVR128DA48 Curiosity Nano Schematic

11

22

33

44

55

66

77

88

DD

CC

BB

AA

2 of

4

AVR1

28D

A48

Curio

sity

Nan

o

102

320

19AV

R128

DA

48_C

urio

sity

_Nan

o_Ta

rget

_MCU

Sch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA R

evisi

on

File

PC

B N

umbe

rPC

B Re

visio

n

Des

igne

d wi

th

Dra

wn

By

PB Shee

t Titl

eTa

rget

MCU

Engi

neer

A

H T

F

A08

-300

23

Size

A3

A09

-328

03

Page

D

ateA

ltium

com

GN

DV

CC_T

ARG

ET

100n

C201

GN

D

PA5_

SPI0

_MIS

OPA

6_SP

I0_S

CKPA

7_SP

I0_S

SPB

0_U

ART

3_TX

PB1_

UA

RT3_

RXPB

2PB

3PB

4PB

5PC

0_U

ART

1_TX

PC1_

UA

RT1_

RXPC

2_I2

C0_S

DA

PC3_I2C0_SCL

PC4PC5PC6_LED0_GPIO1PC7_SW0_GPIO0PD0_AIN0_WO0PD1_AIN1_WO1PD2_AIN2_WO2PD3_AIN3PD4_AIN4

PA3

PA1_UART0_RX

UPDI

PF5_UART2_RX

PF3

PF2

PF1_

TOSC

2PF

0_TO

SC1

PE3

PE2

PE1

PE0

PD5_

AIN

5PD

6_A

IN6

PD7_

AIN

7

GN

D

VCC

_TA

RGET

100n

C202

GN

DV

CC_T

ARG

ET10

0n

C200

PF1_TOSC2

PF0_TOSC1

PA2

PA0_UART0_TX

PF4_UART2_TX

PA4_SPI0_MOSI

GN

D

PA7_

SPI0

_SS

PA6_

SPI0

_SCK

PA5_

SPI0

_MIS

OPA

4_SP

I0_M

OSI

PA3

PA2

PA1_

UA

RT0_

RXPA

0_U

ART

0_TX

PB0_

UA

RT3_

TXPB

1_U

ART

3_RX

PB2

PB3

PB4

PB5

PD7_

AIN

7PD

6_A

IN6

PF5_

UA

RT2_

RXPF

4_U

ART

2_TX

PF3

PF2

32kH

z C

ryst

al

1kR203

USE

R L

ED

VCC

_TA

RGET

PF6_RESET

PC7_SW0_GPIO0

PC6_LED0_GPIO1

GN

D

USE

R B

UTT

ON

PE3

PE2

PE1

PE0

PC0_

UA

RT1_

TXPC

1_U

ART

1_RX

PC2_

I2C0

_SD

APC

3_I2

C0_S

CL

PC4

PC5

PC6_

LED

0_G

PIO

1PC

7_SW

0_G

PIO

0

1kR202

YELLOWLEDSML-D12Y1WT86

2 1D200

TS604VM1-035CR13

4 2

SW20

0

GN

DV

CC_E

DG

E

GN

DG

ND

GN

DG

ND

UPD

IPF

6_RE

SET

J207

J208

J209

BLM

18PG

471S

N1

L200

AVR1

28D

A48

22u

FC2

05

VCC

_ED

GE

GN

D

DBG0

CDC_

UART

TXRXU

ART

CDC_TXCDC_RX

DBG2

DBG1

DBG3

DBG2

DEB

UG

GER

CO

NN

ECTI

ON

S

DBG1

DBG3DBG0

VOFF

ID_S

YS

ID_SYS

VOFF

TAR

GET

BU

LK

VCC

_TA

RGET

RES

ET P

ull

VBU

S

CDC

RX3

CDC

TX4

DBG

15

DBG

26

0 TX

71

RX8

2 SD

A9

3 SC

L10

4 M

OSI

115

MIS

O12

6 SC

K13

7 SS

14G

ND

150

(TX

)16

1 (R

X)

172

183

190

20

GN

D24

DBG

354

DBG

053

GN

D52

VCC

51

PWM

346

AD

C 2

45A

DC

144

AD

C 0

43G

ND

42

438

434

GN

D33

AD

C 7

50A

DC

649

AD

C 5

48PW

M 4

47

DEB

UG

GER

TARG

ET

ID2

VO

FF55

121

222

323

025

126

227

328

429

530

631

732

535

636

737

539

640

741

RESE

RVED

1V

BUS

56

CNA

NO

56-p

in e

dge

conn

ecto

r

J200

J201

J203

J205

J206

J202

J204

PF1

PF0

PF1_

TOSC

2PF

0_TO

SC1

NC

J211

J210

XOUT

XIN

47kR200

AVR

128D

A48

UPD

I

GPI

O1

GPI

O0

RESE

T

DBG

0

DBG

1

DBG

2

DBG

3

Deb

ugge

r

CD

C T

X

CD

C R

X

UA

RT1

RX

UA

RT1

TX

VTG

18V

- 5

5VPC6

PC7

PF6

UPD

I

PC0

PC1

Nam

ePi

n

PA5

1PA

62

PA7

3PB

04

PB1

5PB

26

PB3

7PB

48

PB5

9PC

010

PC1

11PC

212

PC3 13VDD 14GND 15PC4 16PC5 17PC6 18PC7 19PD0 20PD1 21PD2 22PD3 23PD4 24

PD5

25PD

626

PD7

27AV

DD28

GND

29PE

030

PE1

31PE

232

PE3

33XT

AL32

K1P

F034

XTAL

32K2

PF1

35PF

236

PF337 PF438 PF539 PF640 UPDI41 VDD42 GND43 EXTCLKPA044 PA145 PA246 PA347 PA448

AVR1

28D

A48

TQ

FPU

200

PC0_

UA

RT1_

TXPC

1_U

ART

1_RX

PC6_

LED

0_G

PIO

1PC

7_SW

0_G

PIO

0

AVD

D

PD2_

AIN

2_W

O2

PD1_

AIN

1_W

O1

PD0_

AIN

0_W

O0

PD5_

AIN

5PD

4_A

IN4

PD3_

AIN

3

XC2

00

12p

C203

12p

C204

327

68 k

Hz

Crys

tal d

atas

heet

Cc

rysta

l = 9

pFm

ax E

SR =

70k

Ohm

Acc

urac

y plusmn2

0ppm

AVR1

28D

A48

dat

ashe

et

Cxin

= 4

1pF

Cxou

t = 6

0pF

Cl asymp

1( (

14

1pF)

+ (1

60

pF) )

asymp2

44pF

Max

imum

Loa

d =

125

pFM

axim

um E

SR =

80k

Ohm

Estim

ated

Cpc

b =

05p

F

Estim

ated

load

C =

2 (C

crys

tal-

Cpar

a - C

pcb)

C

= 2

(9pF

- 2

44pF

- 0

5pF)

C =

121

2pF

Sele

cted

in d

esig

n af

ter v

erifi

catio

nC=

12p

F12

pF

NO

TE o

n U

ART

CD

C

RXT

X o

n th

e he

ader

den

otes

the

inpu

tout

put d

irect

ion

of th

e sig

nal

resp

ectiv

e to

its

sour

ce

CDC

TX is

out

put f

rom

the

DEB

UG

GER

CD

C RX

is in

put t

o th

e D

EBU

GG

ER

TX is

out

put f

rom

the

TARG

ET d

evic

eRX

is in

put t

o th

e TA

RGET

dev

ice

NO

TE o

n I2

C

No

pull-

ups o

n bo

ard

Pul

l-ups

shou

ld b

e m

ount

ed c

lose

to sl

ave

devi

ce(s

)

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 29

11

22

33

44

55

66

77

88

DD

CC

BB

AA

3 of

4

AVR1

28D

A48

Curio

sity

Nan

o

102

320

19AV

R128

DA

48_C

urio

sity

_Nan

o_D

ebug

gerS

chD

oc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA R

evisi

on

File

PC

B N

umbe

rPC

B Re

visio

n

Des

igne

d wi

th

Dra

wn

By

PB Shee

t Titl

eD

ebug

ger

Engi

neer

A

H T

F

A08

-300

23

Size

A3

A09

-328

03

Page

D

ateA

ltium

com

DEB

UG

GER

USB

MIC

RO

-B C

ON

NEC

TOR

GN

D

USB

D_P

USB

D_N

100n

C107

100n

C108

RXTXU

ART

CDC_

UART

1kR1

07V

CC_P

3V3

SRST

STAT

US_

LED

SHIE

LD

VBU

S

VCC

_P3V

3G

ND

TP10

0

Testp

oint

Arra

y

12

34

56

78

910

TCK

TDO

TMS

Vsu

pTD

IG

ND

TRST

SRST

VTr

efG

ND

J102

GN

D

47u

F

C100

DBG0

DBG

0

21

GRE

EN L

EDSM

L-P1

2MTT

86R

D10

0

VBUS

1D-

2D+

3

GND

5SH

IELD

16

SHIE

LD2

7

ID4

SHIE

LD3

8SH

IELD

49 M

U-M

B014

2AB2

-269

J105

PAD

33

PA00

1PA

012

PA02

3PA

034

GND 10VDDANA 9

PA04

5PA

056

PA06

7PA

078

PA08 11PA09 12PA10 13PA11 14PA14 15PA15 16

PA16

17PA

1718

PA18

19PA

1920

PA22

21US

B_SO

FPA

2322

USB_

DMP

A24

23US

B_DP

PA2

524

PA2725 RESETN26 PA2827 GND28 VDDCORE29 VDDIN30 SWDCLKPA3031 SWDIOPA3132

SAM

D21

E18A

-MU

TU

100

VOUT

1

VOUT

2

GND 3

EN4

VIN

6

NC5

EP 7

MIC

5528

-33

YM

TU

101

VCC

_P3V

3

GN

D

USB

D_P

USB

D_N

GN

D

1uC106

VCC

_MCU

_CO

RE

VCC

_P3V

3

VCC

_P3V

3

22u

FC1

01

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

3V

CC_P

3V3

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

4V

CC_P

3V3

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

5V

CC_P

3V3

GN

D

GN

D GN

D

GN

D

VCC

_ED

GE

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

7V

CC_P

3V3

GN

DDB

G2

DBG

3_CT

RL

S1_0

_TX

S1_1

_RX

S0_2

_TX

DA

CV

TG_A

DC

RESE

RVED

S0_3

_CLK

DBG0_CTRL

CDC_

TX_C

TRL

BOO

T

DEB

UG

GER

PO

WER

STA

TUS

LED

EN1

BYP

6

VOUT

4

GND

2

VIN

3

NCA

DJ5

GND 7

MIC

5353

U10

2

100n

C102

GN

D

GN

D

47kR101

27kR104 G

ND

33k

R106

22u

F

C103 G

ND

1kR1

08

J100

VCC

_LEV

ELV

CC_R

EGU

LATO

R

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

6V

CC_P

3V3

GN

DDB

G1

CDC_

RXCD

C_TX

DBG3

DBG1_CTRL

DEB

UG

GER

REG

ULA

TOR

REG_ENABLE

REG

_EN

ABL

E

47kR103

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

47kR102

47kR105

SWCL

K

GN

D

47kR100 G

ND

DBG

2

S0_0

_RX

DBG

1_CT

RL

DBG

0_CT

RL

DBG

3 O

PEN

DR

AIN

TAR

GET

AD

JUST

ABL

E R

EGU

LATO

R

SRST

DEB

UG

GER

TES

TPO

INT DBG2_CTRL

VO

FFCD

C_RX

_CTR

L

47kR109

DBG

1

CDC_

TX_C

TRL

CDC_

RX_C

TRL

SWCL

K

REG_ADJUST

DBG2_GPIO

DBG

3_CT

RL

DBG

2_CT

RL

UPD

I

UPD

I

GPI

O

GPI

O

RESE

T

Sign

al

DBG

0

DBG

1

DBG

2

DBG

3

ICSP

Inte

rface

DAT

CLK

GPI

O

MCL

R

DBG

3

CD

C T

X

CD

C R

X

UA

RT R

X

UA

RT T

X

UA

RT R

X

UA

RT T

X

TAR

GET

TAR

GET

1kR1

10

VBUS_ADC

1

23

DM

N65

D8L

FBQ

101

VC

C-

-

ID_S

YS

VOFF

1kR112

VCC

_P3V

3

VTG

_AD

CD

AC

MIC

9416

3

VIN

B2VO

UTA1

VIN

A2

ENC2

GND

C1VO

UTB1

U10

8

GN

D

ID_S

YS

VTG

_EN

VTG_EN

VBUS_ADC

SWD

IO

ID_S

YS

TP10

1G

ND

SWD

IO

VO

FF

47kR111 G

ND

ID P

IN

MC3

6213

F100

VCC

_VBU

S

VCC

_VBU

S

VCC

_VBU

S

J101

VCC

_TA

RGET

47k

R113

Prog

ram

min

g co

nnec

tor f

or

fact

ory

prog

ram

min

g of

D

EBU

GG

ER

MIC

5528

Vi

n 2

5V

to 5

5V

Vout

Fix

ed 3

3V

Imax

500

mA

Dro

pout

260

mV

5

00m

A

PTC

Rese

ttabl

e fu

se

Hol

d cu

rrent

500

mA

Trip

cur

rent

100

0mA

Adj

usta

ble

outp

ut a

nd li

mita

tions

- T

he D

EBU

GG

ER c

an a

djus

t the

out

put v

olta

ge o

f the

regu

lato

r bet

wee

n 1

25V

and

51

V to

the

targ

et

- The

vol

tage

out

put i

s lim

ited

by th

e in

put (

USB

) w

hich

can

var

y be

twee

n 4

40V

to 5

25V

- The

leve

l shi

fters

hav

e a

min

imal

vol

tage

leve

l of 1

65V

and

will

lim

it th

e m

inim

um o

pera

ting

volta

ge a

llow

ed fo

r the

ta

rget

to st

ill a

llow

com

mun

icat

ion

- The

MIC

9416

3 ha

s a m

inim

al v

olta

ge le

vel o

f 17

0V a

nd w

ill li

mit

the

min

imum

vol

tage

del

iver

ed to

the

targ

et

- Firm

war

e co

nfig

urat

ion

will

lim

it th

e vo

ltage

rang

e to

be

with

in th

e th

e ta

rget

spec

ifica

tion

R113

is re

quire

d to

pul

l the

Q

101

gate

to a

def

ined

va

lue

whe

n th

e U

100

is no

t po

wer

ed

J100

Cu

t-stra

p us

ed fo

r ful

l sep

arat

ion

of ta

rget

pow

er fr

om th

e le

vel s

hifte

rs a

nd o

n-bo

ard

regu

lato

rs

- For

cur

rent

mea

sure

men

ts us

ing

an e

xter

nal p

ower

supp

ly t

his s

trap

coul

d be

cut

for m

ore

accu

rate

mea

sure

men

ts L

eaka

ge b

ack

thro

ugh

the

switc

h is

in th

e m

icro

am

pere

rang

e

J101

Th

is is

foot

prin

t for

a 1

x2 1

00m

il pi

tch

pin-

head

er th

at c

an b

e us

ed fo

r eas

y cu

rrent

mea

sure

men

t to

the

targ

et m

icro

cont

rolle

r and

the

LED

Bu

tton

To

use

the

foot

prin

t- C

ut th

e tra

ck b

etw

een

the

hole

s an

d m

ount

a p

in-h

eade

r

MIC

5353

Vi

n 2

6V

to 6

VVo

ut 1

25V

to 5

1V

Imax

500

mA

Dro

pout

(typ

ical

) 50

mV

15

0mA

160

mV

5

00m

AA

ccur

acy

2

initi

alTh

erm

al sh

utdo

wn

and

curre

nt li

mit

Max

imum

out

put v

olta

ge is

lim

ited

by th

e in

put v

olta

ge a

nd th

e dr

opou

t vol

tage

in th

e re

gula

tor

(Vm

ax =

Vin

- dr

opou

t)

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 30

72 Assembly DrawingFigure 7-2 AVR128DA48 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

PAC20002 PAC20001 COC200

PAC20102 PAC20101 COC201

PAC20202 PAC20201 COC202

PAC20301 PAC20302 COC203

PAC20401 PAC20402 COC204

PAC20502

PAC20501 COC205

PAD10002 PAD10001 COD100

PAD20001

PAD20002 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

PAJ20701 PAJ20702 PAJ20705 COJ207

PAJ20801 PAJ20802 PAJ20805 COJ208

PAJ20901 PAJ20902 COJ209

PAJ21002 PAJ21001 COJ210

PAJ21102 PAJ21101 COJ211

PAL20002 PAL20001 COL200

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

PAR20002 PAR20001 COR200

PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203

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

PAU200048 PAU200047 PAU200046 PAU200045 PAU200044 PAU200043 PAU200042 PAU200041 PAU200040 PAU200039 PAU200038 PAU200037 PAU200036 PAU200035 PAU200034 PAU200033 PAU200032 PAU200031 PAU200030 PAU200029 PAU200028 PAU200027 PAU200026 PAU200025 PAU200024 PAU200023 PAU200022 PAU200021 PAU200020 PAU200019 PAU200018 PAU200017 PAU200016 PAU200015 PAU200014 PAU200013

PAU200012 PAU200011 PAU200010 PAU20009 PAU20008 PAU20007 PAU20006 PAU20005 PAU20004 PAU20003 PAU20002 PAU20001

COU200

PAXC20001

PAXC20002

COXC200

Figure 7-3 AVR128DA48 Curiosity Nano Assembly Drawing Bottom

ctR

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20002 PAC20001 COC200

PAC20102 PAC20101 COC201

PAC20202 PAC20201 COC202

PAC20301 PAC20302 COC203

PAC20401 PAC20402 COC204

PAC20502

PAC20501 COC205

PAD10002 PAD10001 COD100

PAD20001

PAD20002 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

PAJ20701 PAJ20702 PAJ20705 COJ207

PAJ20801 PAJ20802 PAJ20805 COJ208

PAJ20901 PAJ20902 COJ209

PAJ21002 PAJ21001 COJ210

PAJ21102 PAJ21101 COJ211

PAL20002 PAL20001 COL200

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

PAR20002 PAR20001 COR200

PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203

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

PAU200048 PAU200047 PAU200046 PAU200045 PAU200044 PAU200043 PAU200042 PAU200041 PAU200040 PAU200039 PAU200038 PAU200037 PAU200036 PAU200035 PAU200034 PAU200033 PAU200032 PAU200031 PAU200030 PAU200029 PAU200028 PAU200027 PAU200026 PAU200025 PAU200024 PAU200023 PAU200022 PAU200021 PAU200020 PAU200019 PAU200018 PAU200017 PAU200016 PAU200015 PAU200014 PAU200013

PAU200012 PAU200011 PAU200010 PAU20009 PAU20008 PAU20007 PAU20006 PAU20005 PAU20004 PAU20003 PAU20002 PAU20001

COU200

PAXC20001

PAXC20002

COXC200

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 31

73 Curiosity Nano Base for Click boardstrade

Figure 7-4 AVR128DA48 Curiosity Nano Pinout Mapping

USB

DEB

UG

GER

AVR1

28D

A48

SW0

LED

0

PS L

EDNC

NC

ID

ID

CDC RX

CDCRX

USART1 TX

PC0

CDC TX

CDCTX

USART1 RX

PC1

DBG1

DBG1

PC6

LED0

DBG2

DBG2

PC7

SW0

PA0

PA0

USART0 TX

PTC XY0

PA1

PA1

USART0 RX

PTC XY1

PC2

PC2

TWI0 SDA

PC3

PC3

TWI0 SCL

PA4

PA4

SPI0 MOSI

PTC XY4

PA5

PA5

SPI0 MISO

PTC XY5

PA6

PA6

SPI0 SCK

PTC XY6

PA7

PA7

SPI0 SS

PTC XY7

GND

GND

PF4

PF4

USART2 TX

PTC XY36

PF5

PF5

USART2 RX

PTC XY37

PF2

PF2

PTC XY34

PF3

PF3

PTC XY35

PB0

PB0

PTC XY8

PB1

PB1

PTC XY9

PB2

PB2

PTC XY10

PB3

PB3

PTC XY11

GND

GND

PC0

PC0

USART1 TX

CDC RX

PC1

PC1

USART1 RX

CDC TX

PC6

PC6

LED0

PC7

PC7

SW0

VBUS

VBUS

VOFF

VOFF

DBG3

DBG3

PF6

DBG0

DBG0

UPDI

GND

GND

VTG

VTG

PD7

PD7

AIN7

PTC XY23

PD6

PD6

AIN6

PTC XY22

PD2

PD2

AIN2

PTC XY18

TCA0 WO2

PD1

PD1

AIN1

PTC XY17

TCA0 WO1

PD0

PD0

AIN0

PTC XY16

TCA0 WO0

PD5

PD5

AIN5

PTC XY21

PD4

PD4

AIN4

PTC XY20

PD3

PD3

AIN3

PTC XY19

GND

GND

PE3

PE3

PTC XY27

PE2

PE2

PTC XY26

PE1

PE1

PTC XY25

PE0

PE0

PTC XY24

PA3

PA3

PTC XY3

PA2

PA2

PTC XY2

PB5

PB5

PTC XY13

PB4

PB4

PTC XY12

GND

GND

PC5

PC5

PC4

PC4

(PF1)

(PF1)

(PTC XY33)

XTAL32K2

(PF0)

(PF0)

(PTC XY32)

XTAL32K1

DEB

UG

GER

AVR1

28D

A48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

Touch

Shared pin

AVR1

28D

A48

Curio

sity

Nan

o

1

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

2

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

3

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

Xpl

aine

d Pr

o Ex

tens

ion

EXT1

12

1920

Curio

sity

Nan

o Ba

sefo

r clic

k bo

ards

TM

PD3

PD0

PD7

PD6

PA7

PA1

PA6

PA0

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

PD4

PD1

PF3

PF2

PE2

PF5

PA6

PF4

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

PD5

PD2

PE1

PE0

PE3

PA1

PA6

PA0

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

ID

GND

PD4

PD5

PF3

PE1

PD1

PD2

PF2

PE3

PC2

PC3

PF5

PF4

PE2

PA4

PA5

PA6

GND

+33V

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 32

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

The block diagram below shows all connections between the debugger and the AVR128DA48 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 7-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 7-6 Details about connecting an external debugger are described in 36 Connecting ExternalDebuggers

Figure 7-5  On-Board Debugger Connections Block Diagram

DEB

UG

GER

TARGETLevel-Shift

PA04PA06PA07PA08PA16PA00PA01

USB

DIR x 5

VCC_P3V3

VBUS

VCC

_LEV

EL

VCC

_TA

RGET

DBG0DBG1DBG2DBG3CDC 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

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 33

Figure 7-6 On-Board Debugger Connection Cut Straps

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

75 Getting Started with IARIAR Embedded Workbenchreg for AVRreg is a proprietary high-efficiency compiler not based on GCC Programming anddebugging of AVR128DA48 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 7-73 In the category Debugger select the Setup tab Select Atmel-ICE as the driver as shown in Figure 7-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 7-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

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 34

Figure 7-7 Select Target Device

Figure 7-8 Select Debugger

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 35

Figure 7-9 Configure Interface

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 36

The Microchip WebsiteMicrochip provides online support via our website at httpwwwmicrochipcom This website is used to make filesand information 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 ServiceMicrochiprsquos 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 httpwwwmicrochipcompcn and follow the registration instructions

Customer SupportUsers 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 httpwwwmicrochipcomsupport

Microchip Devices Code Protection FeatureNote the following details of the code protection feature on Microchip devices

bull Microchip products meet the specification contained in their particular Microchip Data Sheetbull Microchip believes that its family of products is one of the most secure families of its kind on the market today

when used in the intended manner and under normal conditionsbull There are dishonest and possibly illegal methods used to breach the code protection feature All of these

methods to our knowledge require using the Microchip products in a manner outside the operatingspecifications contained in Microchiprsquos Data Sheets Most likely the person doing so is engaged in theft ofintellectual property

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

protection does not mean that we are guaranteeing the product as ldquounbreakablerdquo

Code protection is constantly evolving We at Microchip are committed to continuously improving the code protectionfeatures of our products Attempts to break Microchiprsquos code protection feature may be a violation of the DigitalMillennium Copyright Act If such acts allow unauthorized access to your software or other copyrighted work youmay have a right to sue for relief under that Act

Legal NoticeInformation contained in this publication regarding device applications and the like is provided only for yourconvenience and may be superseded by updates It is your responsibility to ensure that your application meets with

AVR128DA48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 37

your specifications MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHEREXPRESS OR IMPLIED WRITTEN OR ORAL STATUTORY OR OTHERWISE RELATED TO THE INFORMATIONINCLUDING BUT NOT LIMITED TO ITS CONDITION QUALITY PERFORMANCE MERCHANTABILITY ORFITNESS FOR PURPOSE Microchip disclaims all liability arising from this information and its use Use of Microchipdevices in life support andor safety applications is entirely at the buyerrsquos risk and the buyer agrees to defendindemnify and hold harmless Microchip from any and all damages claims suits or expenses resulting from suchuse No licenses are conveyed implicitly or otherwise under any Microchip intellectual property rights unlessotherwise stated

TrademarksThe 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-5760-2

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

AVR128DA48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 38

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupporthttpwwwmicrochipcomsupportWeb AddresshttpwwwmicrochipcomAtlantaDuluth 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 DS50002971A-page 39

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Kit Overview
      • 2 Getting Started
        • 21 Quick Start
        • 22 Design Documentation and Relevant Links
          • 3 Curiosity Nano
            • 31 On-Board Debugger Overview
              • 311 Debugger
              • 312 Virtual Serial Port (CDC)
                • 3121 Overview
                • 3122 Operating System Support
                • 3123 Limitations
                • 3124 Signaling
                • 3125 Advanced Use
                  • 313 Mass Storage Device
                    • 3131 Mass Storage Device Implementation
                    • 3132 Fuse Bytes
                    • 3133 Limitations of Drag-and-Drop Programming
                    • 3134 Special Commands
                      • 314 Data Gateway Interface (DGI)
                        • 3141 Debug GPIO
                        • 3142 Timestamping
                            • 32 Curiosity Nano Standard Pinout
                            • 33 Power Supply
                              • 331 Target Regulator
                              • 332 External Supply
                              • 333 VBUS Output Pin
                              • 334 Power Supply Exceptions
                                • 34 Low Power Measurement
                                • 35 Programming External Microcontrollers
                                  • 351 Supported Devices
                                  • 352 Software Configuration
                                  • 353 Hardware Modifications
                                  • 354 Connecting to External Microcontrollers
                                    • 36 Connecting External Debuggers
                                      • 4 Hardware User Guide
                                        • 41 Connectors
                                          • 411 AVR128DA48 Curiosity Nano Pinout
                                          • 412 Using Pin Headers
                                            • 42 Peripherals
                                              • 421 LED
                                              • 422 Mechanical Switch
                                              • 423 Crystal
                                              • 424 On-Board Debugger Implementation
                                                • 4241 On-Board Debugger Connections
                                                  • 5 Hardware Revision History and Known Issues
                                                    • 51 Identifying Product ID and Revision
                                                    • 52 Revision 3
                                                      • 6 Document Revision History
                                                      • 7 Appendix
                                                        • 71 Schematic
                                                        • 72 Assembly Drawing
                                                        • 73 Curiosity Nano Base for Click boardstrade
                                                        • 74 Disconnecting the On-board Debugger
                                                        • 75 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: AVR128DA48 Curiosity Nano User Guide - Microchip Technologyww1.microchip.com/downloads/en/DeviceDoc/AVR128DA48... · 2020-03-19 · AVR128DA48 Curiosity Nano AVR128DA48 Curiosity

Figure 3-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

331 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 implementationis 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 AVR128DA48microcontroller The voltage limits configured in the on-board debugger on AVR128DA48 Curiosity Nano are18-51V

Info  The target voltage is set to 33V when the board is manufactured It can be changed throughMPLAB X IDE project properties and in the Atmel Studio device programming dialog Any change to thetarget voltage is persistent even through 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 Atmel StudioMicrochip MPLABreg X IDE are not immediatelyapplied to the board The new voltage setting is applied to the board when the debugger is accessed inany way like pushing the Refresh 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 only supports settings of 00V 33V and 50V See section 3134 Special Commands forfurther details

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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 14

Figure 3-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

Info  If the external voltage is lower than the monitoring window lower limit (target voltage setting - 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

332 External SupplyAVR128DA48 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 AVR128DA48 is 18-55V Applying a higher voltage may cause permanent damage to theboard

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 15

Info  If an external voltage is applied without pulling the VOFF pin low and an external supply pulls thevoltage lower than the monitoring window 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 AVR128DA48 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

333 VBUS Output PinAVR128DA48 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

Figure 3-6 VBUS Output Voltage vs Current

334 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 between 44V to 525V) and thevoltage drop over the MIC5353 regulator at a given voltage setting and current consumption If a higher outputvoltage is needed use a USB power source that can provide a higher input voltage or use an external voltage supplyon the VTG pin

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 16

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 differ more than 100 mV overunder the voltage setting it will be detected by the on-board debugger and theinternal voltage regulator will be shut down To fix this issue remove the applied voltage from the VTG pin and theon-board debugger will enable the on-board voltage regulator when the new condition is detected Note that the PSLED will be blinking rapidly if the target voltage is below 100 mV of the setting but will be lit normally when it is higherthan 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 really a special case of the issue mentioned above Removethe short-circuit and the on-board debugger will re-enable the on-board target voltage regulator

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

34 Low Power MeasurementPower to the AVR128DA48 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 AVR128DA48 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 AVR128DA48

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 17

Figure 3-7 Target Power Strap

Target Power strap (top side)

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 are tri-state to prevent leakage All IOs connected to the on-boarddebugger are listed in 4241 On-Board Debugger Connections To prevent any leakage to the on-boardlevel shifters they can be disconnected completely as described in 74 Disconnecting the On-boardDebugger

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

351 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

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

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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 18

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

Figure 3-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

353 Hardware ModificationsThe on-board debugger is connected to the AVR128DA48 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 AVR128DA48 from the on-board debugger

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 19

Figure 3-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 AVR128DA48 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 AVR128DA48

354 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 33 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

AVR128DA48 Curiosity Nano has a pull-up resistor R200 connected to its RESET signal (DBG3) The location ofthe pull-up resistor is shown in the 72 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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 20

Figure 3-10 Curiosity Nano Standard Pinout

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

Table 3-4 Programming and Debugging Interfaces

Curiosity Nano Pin UPDI ICSPtrade SWD

DBG0 UPDI DATA SWDIO

DBG1 - CLK SWCLK

DBG2 - - -

DBG3 - MCLR RESET

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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 21

Figure 3-11 Connecting the MPLABreg PICkittrade 4 In-Circuit DebuggerProgrammer to AVR128DA48 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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 22

Figure 3-12 Connecting the Atmel-ICE to AVR128DA48 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 Atmel StudioMicrochip MPLABreg XIDE or mass storage programming while the external tool is active

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 23

4 Hardware User Guide

41 Connectors

411 AVR128DA48 Curiosity Nano PinoutAll the AVR128DA48 IO pins are accessible at the edge connectors on the board The image below shows the boardpinout

Figure 4-1 AVR128DA48 Curiosity Nano Pinout

USB

DEBUGGER

AVR128DA48

SW0

LED0

PS LEDNC

NC

ID

ID

CDC RX

CDCRXUSART1 TXPC0

CDC TX

CDCTXUSART1 RXPC1

DBG1

DBG

1PC6LED0

DBG2

DBG

2PC7SW0

PA0

PA0USART0 TXPTC XY0

PA1PA

1USART0 RXPTC XY1

PC2PC2TWI0 SDA

PC3

PC3TWI0 SCL

PA4

PA4SPI0 MOSIPTC XY4

PA5

PA5SPI0 MISOPTC XY5

PA6

PA6SPI0 SCKPTC XY6

PA7

PA7SPI0 SSPTC XY7

GND

GN

D

PF4

PF4USART2 TXPTC XY36

PF5

PF5USART2 RXPTC XY37

PF2

PF2PTC XY34

PF3

PF3PTC XY35

PB0

PB0PTC XY8

PB1

PB1PTC XY9

PB2

PB2PTC XY10

PB3

PB3PTC XY11

GND

GN

D

PC0

PC0USART1 TXCDC RX

PC1

PC1USART1 RXCDC TX

PC6

PC6LED0

PC7

PC7SW0

VBUS

VBU

S

VOFF

VO

FFDBG3

DBG

3 PF6

DBG0D

BG0 UPDI

GND

GN

D

VTG

VTG

PD7

PD7 AIN7 PTC XY23

PD6

PD6 AIN6 PTC XY22

PD2

PD2 AIN2 PTC XY18 TCA0 WO2

PD1

PD1 AIN1 PTC XY17 TCA0 WO1

PD0

PD0 AIN0 PTC XY16 TCA0 WO0

PD5

PD5 AIN5 PTC XY21

PD4

PD4 AIN4 PTC XY20

PD3

PD3 AIN3 PTC XY19

GND

GN

D

PE3

PE3 PTC XY27

PE2

PE2 PTC XY26

PE1

PE1 PTC XY25

PE0

PE0 PTC XY24

PA3

PA3 PTC XY3

PA2

PA2 PTC XY2

PB5

PB5 PTC XY13

PB4

PB4 PTC XY12

GND

GN

D

PC5

PC5

PC4

PC4

(PF1)

(PF1) (PTC XY33) XTAL32K2

(PF0)

(PF0) (PTC XY32) XTAL32K1

DEBUGGERAVR128DA48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

Touch

Shared pin

AVR128DA48Curiosity Nano

412 Using Pin HeadersThe edge connector footprint on AVR128DA48 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

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

AVR128DA48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 24

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

42 Peripherals

421 LEDThere is one yellow user LED available on the AVR128DA48 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 4-1 LED Connection

AVR128DA48 Pin Function Shared Functionality

PC6 Yellow LED0 Edge connector On-board debugger

422 Mechanical SwitchThe AVR128DA48 Curiosity Nano has one mechanical switch This is a generic user-configurable switch When theswitch 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 PC7

Table 4-2 Mechanical Switch

AVR128DA48 Pin Description Shared Functionality

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

423 Crystal

The AVR128DA48 Curiosity Nano board has a 32768 kHz crystal mounted

The AVR128DA48 is connected to the crystal by default but the GPIOs are also routed to the edge connectorthrough two solder points The two IO lines routed to the edge connector are disconnected by default to reduce thechance of an external signal causing contention with the crystal and to remove excessive capacitance on the linesTo use PF0 and PF1 as GPIO some hardware modifications are required

bull Disconnect the crystal by cutting the two straps on the top side of the board next to the crystal (J210 J211) Thecrystal 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 (J207 J208)

The cut straps and solder points can be seen in Figure 4-2

Table 4-3 Crystal Connections

AVR128DA48 Pin Function Shared Functionality

PF0 TOSC1 (Crystal input) Edge connector

PF1 TOSC2 (Crystal output) Edge connector

AVR128DA48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 25

Figure 4-2 Crystal Connection and Cut Straps

424 On-Board Debugger ImplementationAVR128DA48 Curiosity Nano features an on-board debugger that can be used to program and debug theAVR128DA48 using UPDI The on-board debugger also includes a virtual serial port (CDC) interface over UART anddebug GPIO Atmel StudioMicrochip MPLABreg X IDE 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

4241 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 31 On-Board DebuggerOverview

Table 4-4 On-Board Debugger Connections

AVR128DA48Pin

Debugger Pin Function Shared Functionality

RF1 CDC TX UART RX (AVR128DA48 RX line) Edge connector

RF0 CDC RX UART TX (AVR128DA48 TX line) Edge connector

UPDI DBG0 UPDI Edge connector

PC6 DBG1 GPIO1 Edge connector LED

PC7 DBG2 GPIO0 Edge connector Mechanical Switch

PF6 DBG3 RESET Edge connector

AVR128DA48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 26

5 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

51 Identifying Product ID and RevisionThe revision and product identifier of the AVR128DA48 Curiosity Nano Board can be found in two ways Either byutilizing the Atmel StudioMicrochip MPLABreg X IDE Kit Window or by looking at the sticker on the bottom side of thePCB

By connecting AVR128DA48 Curiosity Nano to a computer with Atmel StudioMicrochip MPLABreg X IDE running theKit Window will pop up The first six digits of the serial number which is listed under kit information contain theproduct identifier 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 AVR128DA48 Curiosity Nano is A09-3280

52 Revision 3Revision 3 is the initially released revision There are no known issues with this revision

AVR128DA48 Curiosity NanoHardware Revision History and Known Issues

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 27

6 Document Revision HistoryDoc rev Date Comment

A 032020 Initial document release

AVR128DA48 Curiosity NanoDocument Revision History

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 28

7 Appendix

71 SchematicFigure 7-1 AVR128DA48 Curiosity Nano Schematic

11

22

33

44

55

66

77

88

DD

CC

BB

AA

2 of

4

AVR1

28D

A48

Curio

sity

Nan

o

102

320

19AV

R128

DA

48_C

urio

sity

_Nan

o_Ta

rget

_MCU

Sch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA R

evisi

on

File

PC

B N

umbe

rPC

B Re

visio

n

Des

igne

d wi

th

Dra

wn

By

PB Shee

t Titl

eTa

rget

MCU

Engi

neer

A

H T

F

A08

-300

23

Size

A3

A09

-328

03

Page

D

ateA

ltium

com

GN

DV

CC_T

ARG

ET

100n

C201

GN

D

PA5_

SPI0

_MIS

OPA

6_SP

I0_S

CKPA

7_SP

I0_S

SPB

0_U

ART

3_TX

PB1_

UA

RT3_

RXPB

2PB

3PB

4PB

5PC

0_U

ART

1_TX

PC1_

UA

RT1_

RXPC

2_I2

C0_S

DA

PC3_I2C0_SCL

PC4PC5PC6_LED0_GPIO1PC7_SW0_GPIO0PD0_AIN0_WO0PD1_AIN1_WO1PD2_AIN2_WO2PD3_AIN3PD4_AIN4

PA3

PA1_UART0_RX

UPDI

PF5_UART2_RX

PF3

PF2

PF1_

TOSC

2PF

0_TO

SC1

PE3

PE2

PE1

PE0

PD5_

AIN

5PD

6_A

IN6

PD7_

AIN

7

GN

D

VCC

_TA

RGET

100n

C202

GN

DV

CC_T

ARG

ET10

0n

C200

PF1_TOSC2

PF0_TOSC1

PA2

PA0_UART0_TX

PF4_UART2_TX

PA4_SPI0_MOSI

GN

D

PA7_

SPI0

_SS

PA6_

SPI0

_SCK

PA5_

SPI0

_MIS

OPA

4_SP

I0_M

OSI

PA3

PA2

PA1_

UA

RT0_

RXPA

0_U

ART

0_TX

PB0_

UA

RT3_

TXPB

1_U

ART

3_RX

PB2

PB3

PB4

PB5

PD7_

AIN

7PD

6_A

IN6

PF5_

UA

RT2_

RXPF

4_U

ART

2_TX

PF3

PF2

32kH

z C

ryst

al

1kR203

USE

R L

ED

VCC

_TA

RGET

PF6_RESET

PC7_SW0_GPIO0

PC6_LED0_GPIO1

GN

D

USE

R B

UTT

ON

PE3

PE2

PE1

PE0

PC0_

UA

RT1_

TXPC

1_U

ART

1_RX

PC2_

I2C0

_SD

APC

3_I2

C0_S

CL

PC4

PC5

PC6_

LED

0_G

PIO

1PC

7_SW

0_G

PIO

0

1kR202

YELLOWLEDSML-D12Y1WT86

2 1D200

TS604VM1-035CR13

4 2

SW20

0

GN

DV

CC_E

DG

E

GN

DG

ND

GN

DG

ND

UPD

IPF

6_RE

SET

J207

J208

J209

BLM

18PG

471S

N1

L200

AVR1

28D

A48

22u

FC2

05

VCC

_ED

GE

GN

D

DBG0

CDC_

UART

TXRXU

ART

CDC_TXCDC_RX

DBG2

DBG1

DBG3

DBG2

DEB

UG

GER

CO

NN

ECTI

ON

S

DBG1

DBG3DBG0

VOFF

ID_S

YS

ID_SYS

VOFF

TAR

GET

BU

LK

VCC

_TA

RGET

RES

ET P

ull

VBU

S

CDC

RX3

CDC

TX4

DBG

15

DBG

26

0 TX

71

RX8

2 SD

A9

3 SC

L10

4 M

OSI

115

MIS

O12

6 SC

K13

7 SS

14G

ND

150

(TX

)16

1 (R

X)

172

183

190

20

GN

D24

DBG

354

DBG

053

GN

D52

VCC

51

PWM

346

AD

C 2

45A

DC

144

AD

C 0

43G

ND

42

438

434

GN

D33

AD

C 7

50A

DC

649

AD

C 5

48PW

M 4

47

DEB

UG

GER

TARG

ET

ID2

VO

FF55

121

222

323

025

126

227

328

429

530

631

732

535

636

737

539

640

741

RESE

RVED

1V

BUS

56

CNA

NO

56-p

in e

dge

conn

ecto

r

J200

J201

J203

J205

J206

J202

J204

PF1

PF0

PF1_

TOSC

2PF

0_TO

SC1

NC

J211

J210

XOUT

XIN

47kR200

AVR

128D

A48

UPD

I

GPI

O1

GPI

O0

RESE

T

DBG

0

DBG

1

DBG

2

DBG

3

Deb

ugge

r

CD

C T

X

CD

C R

X

UA

RT1

RX

UA

RT1

TX

VTG

18V

- 5

5VPC6

PC7

PF6

UPD

I

PC0

PC1

Nam

ePi

n

PA5

1PA

62

PA7

3PB

04

PB1

5PB

26

PB3

7PB

48

PB5

9PC

010

PC1

11PC

212

PC3 13VDD 14GND 15PC4 16PC5 17PC6 18PC7 19PD0 20PD1 21PD2 22PD3 23PD4 24

PD5

25PD

626

PD7

27AV

DD28

GND

29PE

030

PE1

31PE

232

PE3

33XT

AL32

K1P

F034

XTAL

32K2

PF1

35PF

236

PF337 PF438 PF539 PF640 UPDI41 VDD42 GND43 EXTCLKPA044 PA145 PA246 PA347 PA448

AVR1

28D

A48

TQ

FPU

200

PC0_

UA

RT1_

TXPC

1_U

ART

1_RX

PC6_

LED

0_G

PIO

1PC

7_SW

0_G

PIO

0

AVD

D

PD2_

AIN

2_W

O2

PD1_

AIN

1_W

O1

PD0_

AIN

0_W

O0

PD5_

AIN

5PD

4_A

IN4

PD3_

AIN

3

XC2

00

12p

C203

12p

C204

327

68 k

Hz

Crys

tal d

atas

heet

Cc

rysta

l = 9

pFm

ax E

SR =

70k

Ohm

Acc

urac

y plusmn2

0ppm

AVR1

28D

A48

dat

ashe

et

Cxin

= 4

1pF

Cxou

t = 6

0pF

Cl asymp

1( (

14

1pF)

+ (1

60

pF) )

asymp2

44pF

Max

imum

Loa

d =

125

pFM

axim

um E

SR =

80k

Ohm

Estim

ated

Cpc

b =

05p

F

Estim

ated

load

C =

2 (C

crys

tal-

Cpar

a - C

pcb)

C

= 2

(9pF

- 2

44pF

- 0

5pF)

C =

121

2pF

Sele

cted

in d

esig

n af

ter v

erifi

catio

nC=

12p

F12

pF

NO

TE o

n U

ART

CD

C

RXT

X o

n th

e he

ader

den

otes

the

inpu

tout

put d

irect

ion

of th

e sig

nal

resp

ectiv

e to

its

sour

ce

CDC

TX is

out

put f

rom

the

DEB

UG

GER

CD

C RX

is in

put t

o th

e D

EBU

GG

ER

TX is

out

put f

rom

the

TARG

ET d

evic

eRX

is in

put t

o th

e TA

RGET

dev

ice

NO

TE o

n I2

C

No

pull-

ups o

n bo

ard

Pul

l-ups

shou

ld b

e m

ount

ed c

lose

to sl

ave

devi

ce(s

)

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 29

11

22

33

44

55

66

77

88

DD

CC

BB

AA

3 of

4

AVR1

28D

A48

Curio

sity

Nan

o

102

320

19AV

R128

DA

48_C

urio

sity

_Nan

o_D

ebug

gerS

chD

oc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA R

evisi

on

File

PC

B N

umbe

rPC

B Re

visio

n

Des

igne

d wi

th

Dra

wn

By

PB Shee

t Titl

eD

ebug

ger

Engi

neer

A

H T

F

A08

-300

23

Size

A3

A09

-328

03

Page

D

ateA

ltium

com

DEB

UG

GER

USB

MIC

RO

-B C

ON

NEC

TOR

GN

D

USB

D_P

USB

D_N

100n

C107

100n

C108

RXTXU

ART

CDC_

UART

1kR1

07V

CC_P

3V3

SRST

STAT

US_

LED

SHIE

LD

VBU

S

VCC

_P3V

3G

ND

TP10

0

Testp

oint

Arra

y

12

34

56

78

910

TCK

TDO

TMS

Vsu

pTD

IG

ND

TRST

SRST

VTr

efG

ND

J102

GN

D

47u

F

C100

DBG0

DBG

0

21

GRE

EN L

EDSM

L-P1

2MTT

86R

D10

0

VBUS

1D-

2D+

3

GND

5SH

IELD

16

SHIE

LD2

7

ID4

SHIE

LD3

8SH

IELD

49 M

U-M

B014

2AB2

-269

J105

PAD

33

PA00

1PA

012

PA02

3PA

034

GND 10VDDANA 9

PA04

5PA

056

PA06

7PA

078

PA08 11PA09 12PA10 13PA11 14PA14 15PA15 16

PA16

17PA

1718

PA18

19PA

1920

PA22

21US

B_SO

FPA

2322

USB_

DMP

A24

23US

B_DP

PA2

524

PA2725 RESETN26 PA2827 GND28 VDDCORE29 VDDIN30 SWDCLKPA3031 SWDIOPA3132

SAM

D21

E18A

-MU

TU

100

VOUT

1

VOUT

2

GND 3

EN4

VIN

6

NC5

EP 7

MIC

5528

-33

YM

TU

101

VCC

_P3V

3

GN

D

USB

D_P

USB

D_N

GN

D

1uC106

VCC

_MCU

_CO

RE

VCC

_P3V

3

VCC

_P3V

3

22u

FC1

01

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

3V

CC_P

3V3

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

4V

CC_P

3V3

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

5V

CC_P

3V3

GN

D

GN

D GN

D

GN

D

VCC

_ED

GE

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

7V

CC_P

3V3

GN

DDB

G2

DBG

3_CT

RL

S1_0

_TX

S1_1

_RX

S0_2

_TX

DA

CV

TG_A

DC

RESE

RVED

S0_3

_CLK

DBG0_CTRL

CDC_

TX_C

TRL

BOO

T

DEB

UG

GER

PO

WER

STA

TUS

LED

EN1

BYP

6

VOUT

4

GND

2

VIN

3

NCA

DJ5

GND 7

MIC

5353

U10

2

100n

C102

GN

D

GN

D

47kR101

27kR104 G

ND

33k

R106

22u

F

C103 G

ND

1kR1

08

J100

VCC

_LEV

ELV

CC_R

EGU

LATO

R

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

6V

CC_P

3V3

GN

DDB

G1

CDC_

RXCD

C_TX

DBG3

DBG1_CTRL

DEB

UG

GER

REG

ULA

TOR

REG_ENABLE

REG

_EN

ABL

E

47kR103

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

47kR102

47kR105

SWCL

K

GN

D

47kR100 G

ND

DBG

2

S0_0

_RX

DBG

1_CT

RL

DBG

0_CT

RL

DBG

3 O

PEN

DR

AIN

TAR

GET

AD

JUST

ABL

E R

EGU

LATO

R

SRST

DEB

UG

GER

TES

TPO

INT DBG2_CTRL

VO

FFCD

C_RX

_CTR

L

47kR109

DBG

1

CDC_

TX_C

TRL

CDC_

RX_C

TRL

SWCL

K

REG_ADJUST

DBG2_GPIO

DBG

3_CT

RL

DBG

2_CT

RL

UPD

I

UPD

I

GPI

O

GPI

O

RESE

T

Sign

al

DBG

0

DBG

1

DBG

2

DBG

3

ICSP

Inte

rface

DAT

CLK

GPI

O

MCL

R

DBG

3

CD

C T

X

CD

C R

X

UA

RT R

X

UA

RT T

X

UA

RT R

X

UA

RT T

X

TAR

GET

TAR

GET

1kR1

10

VBUS_ADC

1

23

DM

N65

D8L

FBQ

101

VC

C-

-

ID_S

YS

VOFF

1kR112

VCC

_P3V

3

VTG

_AD

CD

AC

MIC

9416

3

VIN

B2VO

UTA1

VIN

A2

ENC2

GND

C1VO

UTB1

U10

8

GN

D

ID_S

YS

VTG

_EN

VTG_EN

VBUS_ADC

SWD

IO

ID_S

YS

TP10

1G

ND

SWD

IO

VO

FF

47kR111 G

ND

ID P

IN

MC3

6213

F100

VCC

_VBU

S

VCC

_VBU

S

VCC

_VBU

S

J101

VCC

_TA

RGET

47k

R113

Prog

ram

min

g co

nnec

tor f

or

fact

ory

prog

ram

min

g of

D

EBU

GG

ER

MIC

5528

Vi

n 2

5V

to 5

5V

Vout

Fix

ed 3

3V

Imax

500

mA

Dro

pout

260

mV

5

00m

A

PTC

Rese

ttabl

e fu

se

Hol

d cu

rrent

500

mA

Trip

cur

rent

100

0mA

Adj

usta

ble

outp

ut a

nd li

mita

tions

- T

he D

EBU

GG

ER c

an a

djus

t the

out

put v

olta

ge o

f the

regu

lato

r bet

wee

n 1

25V

and

51

V to

the

targ

et

- The

vol

tage

out

put i

s lim

ited

by th

e in

put (

USB

) w

hich

can

var

y be

twee

n 4

40V

to 5

25V

- The

leve

l shi

fters

hav

e a

min

imal

vol

tage

leve

l of 1

65V

and

will

lim

it th

e m

inim

um o

pera

ting

volta

ge a

llow

ed fo

r the

ta

rget

to st

ill a

llow

com

mun

icat

ion

- The

MIC

9416

3 ha

s a m

inim

al v

olta

ge le

vel o

f 17

0V a

nd w

ill li

mit

the

min

imum

vol

tage

del

iver

ed to

the

targ

et

- Firm

war

e co

nfig

urat

ion

will

lim

it th

e vo

ltage

rang

e to

be

with

in th

e th

e ta

rget

spec

ifica

tion

R113

is re

quire

d to

pul

l the

Q

101

gate

to a

def

ined

va

lue

whe

n th

e U

100

is no

t po

wer

ed

J100

Cu

t-stra

p us

ed fo

r ful

l sep

arat

ion

of ta

rget

pow

er fr

om th

e le

vel s

hifte

rs a

nd o

n-bo

ard

regu

lato

rs

- For

cur

rent

mea

sure

men

ts us

ing

an e

xter

nal p

ower

supp

ly t

his s

trap

coul

d be

cut

for m

ore

accu

rate

mea

sure

men

ts L

eaka

ge b

ack

thro

ugh

the

switc

h is

in th

e m

icro

am

pere

rang

e

J101

Th

is is

foot

prin

t for

a 1

x2 1

00m

il pi

tch

pin-

head

er th

at c

an b

e us

ed fo

r eas

y cu

rrent

mea

sure

men

t to

the

targ

et m

icro

cont

rolle

r and

the

LED

Bu

tton

To

use

the

foot

prin

t- C

ut th

e tra

ck b

etw

een

the

hole

s an

d m

ount

a p

in-h

eade

r

MIC

5353

Vi

n 2

6V

to 6

VVo

ut 1

25V

to 5

1V

Imax

500

mA

Dro

pout

(typ

ical

) 50

mV

15

0mA

160

mV

5

00m

AA

ccur

acy

2

initi

alTh

erm

al sh

utdo

wn

and

curre

nt li

mit

Max

imum

out

put v

olta

ge is

lim

ited

by th

e in

put v

olta

ge a

nd th

e dr

opou

t vol

tage

in th

e re

gula

tor

(Vm

ax =

Vin

- dr

opou

t)

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 30

72 Assembly DrawingFigure 7-2 AVR128DA48 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

PAC20002 PAC20001 COC200

PAC20102 PAC20101 COC201

PAC20202 PAC20201 COC202

PAC20301 PAC20302 COC203

PAC20401 PAC20402 COC204

PAC20502

PAC20501 COC205

PAD10002 PAD10001 COD100

PAD20001

PAD20002 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

PAJ20701 PAJ20702 PAJ20705 COJ207

PAJ20801 PAJ20802 PAJ20805 COJ208

PAJ20901 PAJ20902 COJ209

PAJ21002 PAJ21001 COJ210

PAJ21102 PAJ21101 COJ211

PAL20002 PAL20001 COL200

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

PAR20002 PAR20001 COR200

PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203

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

PAU200048 PAU200047 PAU200046 PAU200045 PAU200044 PAU200043 PAU200042 PAU200041 PAU200040 PAU200039 PAU200038 PAU200037 PAU200036 PAU200035 PAU200034 PAU200033 PAU200032 PAU200031 PAU200030 PAU200029 PAU200028 PAU200027 PAU200026 PAU200025 PAU200024 PAU200023 PAU200022 PAU200021 PAU200020 PAU200019 PAU200018 PAU200017 PAU200016 PAU200015 PAU200014 PAU200013

PAU200012 PAU200011 PAU200010 PAU20009 PAU20008 PAU20007 PAU20006 PAU20005 PAU20004 PAU20003 PAU20002 PAU20001

COU200

PAXC20001

PAXC20002

COXC200

Figure 7-3 AVR128DA48 Curiosity Nano Assembly Drawing Bottom

ctR

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20002 PAC20001 COC200

PAC20102 PAC20101 COC201

PAC20202 PAC20201 COC202

PAC20301 PAC20302 COC203

PAC20401 PAC20402 COC204

PAC20502

PAC20501 COC205

PAD10002 PAD10001 COD100

PAD20001

PAD20002 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

PAJ20701 PAJ20702 PAJ20705 COJ207

PAJ20801 PAJ20802 PAJ20805 COJ208

PAJ20901 PAJ20902 COJ209

PAJ21002 PAJ21001 COJ210

PAJ21102 PAJ21101 COJ211

PAL20002 PAL20001 COL200

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

PAR20002 PAR20001 COR200

PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203

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

PAU200048 PAU200047 PAU200046 PAU200045 PAU200044 PAU200043 PAU200042 PAU200041 PAU200040 PAU200039 PAU200038 PAU200037 PAU200036 PAU200035 PAU200034 PAU200033 PAU200032 PAU200031 PAU200030 PAU200029 PAU200028 PAU200027 PAU200026 PAU200025 PAU200024 PAU200023 PAU200022 PAU200021 PAU200020 PAU200019 PAU200018 PAU200017 PAU200016 PAU200015 PAU200014 PAU200013

PAU200012 PAU200011 PAU200010 PAU20009 PAU20008 PAU20007 PAU20006 PAU20005 PAU20004 PAU20003 PAU20002 PAU20001

COU200

PAXC20001

PAXC20002

COXC200

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 31

73 Curiosity Nano Base for Click boardstrade

Figure 7-4 AVR128DA48 Curiosity Nano Pinout Mapping

USB

DEB

UG

GER

AVR1

28D

A48

SW0

LED

0

PS L

EDNC

NC

ID

ID

CDC RX

CDCRX

USART1 TX

PC0

CDC TX

CDCTX

USART1 RX

PC1

DBG1

DBG1

PC6

LED0

DBG2

DBG2

PC7

SW0

PA0

PA0

USART0 TX

PTC XY0

PA1

PA1

USART0 RX

PTC XY1

PC2

PC2

TWI0 SDA

PC3

PC3

TWI0 SCL

PA4

PA4

SPI0 MOSI

PTC XY4

PA5

PA5

SPI0 MISO

PTC XY5

PA6

PA6

SPI0 SCK

PTC XY6

PA7

PA7

SPI0 SS

PTC XY7

GND

GND

PF4

PF4

USART2 TX

PTC XY36

PF5

PF5

USART2 RX

PTC XY37

PF2

PF2

PTC XY34

PF3

PF3

PTC XY35

PB0

PB0

PTC XY8

PB1

PB1

PTC XY9

PB2

PB2

PTC XY10

PB3

PB3

PTC XY11

GND

GND

PC0

PC0

USART1 TX

CDC RX

PC1

PC1

USART1 RX

CDC TX

PC6

PC6

LED0

PC7

PC7

SW0

VBUS

VBUS

VOFF

VOFF

DBG3

DBG3

PF6

DBG0

DBG0

UPDI

GND

GND

VTG

VTG

PD7

PD7

AIN7

PTC XY23

PD6

PD6

AIN6

PTC XY22

PD2

PD2

AIN2

PTC XY18

TCA0 WO2

PD1

PD1

AIN1

PTC XY17

TCA0 WO1

PD0

PD0

AIN0

PTC XY16

TCA0 WO0

PD5

PD5

AIN5

PTC XY21

PD4

PD4

AIN4

PTC XY20

PD3

PD3

AIN3

PTC XY19

GND

GND

PE3

PE3

PTC XY27

PE2

PE2

PTC XY26

PE1

PE1

PTC XY25

PE0

PE0

PTC XY24

PA3

PA3

PTC XY3

PA2

PA2

PTC XY2

PB5

PB5

PTC XY13

PB4

PB4

PTC XY12

GND

GND

PC5

PC5

PC4

PC4

(PF1)

(PF1)

(PTC XY33)

XTAL32K2

(PF0)

(PF0)

(PTC XY32)

XTAL32K1

DEB

UG

GER

AVR1

28D

A48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

Touch

Shared pin

AVR1

28D

A48

Curio

sity

Nan

o

1

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

2

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

3

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

Xpl

aine

d Pr

o Ex

tens

ion

EXT1

12

1920

Curio

sity

Nan

o Ba

sefo

r clic

k bo

ards

TM

PD3

PD0

PD7

PD6

PA7

PA1

PA6

PA0

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

PD4

PD1

PF3

PF2

PE2

PF5

PA6

PF4

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

PD5

PD2

PE1

PE0

PE3

PA1

PA6

PA0

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

ID

GND

PD4

PD5

PF3

PE1

PD1

PD2

PF2

PE3

PC2

PC3

PF5

PF4

PE2

PA4

PA5

PA6

GND

+33V

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 32

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

The block diagram below shows all connections between the debugger and the AVR128DA48 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 7-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 7-6 Details about connecting an external debugger are described in 36 Connecting ExternalDebuggers

Figure 7-5  On-Board Debugger Connections Block Diagram

DEB

UG

GER

TARGETLevel-Shift

PA04PA06PA07PA08PA16PA00PA01

USB

DIR x 5

VCC_P3V3

VBUS

VCC

_LEV

EL

VCC

_TA

RGET

DBG0DBG1DBG2DBG3CDC 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

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 33

Figure 7-6 On-Board Debugger Connection Cut Straps

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

75 Getting Started with IARIAR Embedded Workbenchreg for AVRreg is a proprietary high-efficiency compiler not based on GCC Programming anddebugging of AVR128DA48 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 7-73 In the category Debugger select the Setup tab Select Atmel-ICE as the driver as shown in Figure 7-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 7-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

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 34

Figure 7-7 Select Target Device

Figure 7-8 Select Debugger

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 35

Figure 7-9 Configure Interface

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 36

The Microchip WebsiteMicrochip provides online support via our website at httpwwwmicrochipcom This website is used to make filesand information 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 ServiceMicrochiprsquos 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 httpwwwmicrochipcompcn and follow the registration instructions

Customer SupportUsers 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 httpwwwmicrochipcomsupport

Microchip Devices Code Protection FeatureNote the following details of the code protection feature on Microchip devices

bull Microchip products meet the specification contained in their particular Microchip Data Sheetbull Microchip believes that its family of products is one of the most secure families of its kind on the market today

when used in the intended manner and under normal conditionsbull There are dishonest and possibly illegal methods used to breach the code protection feature All of these

methods to our knowledge require using the Microchip products in a manner outside the operatingspecifications contained in Microchiprsquos Data Sheets Most likely the person doing so is engaged in theft ofintellectual property

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

protection does not mean that we are guaranteeing the product as ldquounbreakablerdquo

Code protection is constantly evolving We at Microchip are committed to continuously improving the code protectionfeatures of our products Attempts to break Microchiprsquos code protection feature may be a violation of the DigitalMillennium Copyright Act If such acts allow unauthorized access to your software or other copyrighted work youmay have a right to sue for relief under that Act

Legal NoticeInformation contained in this publication regarding device applications and the like is provided only for yourconvenience and may be superseded by updates It is your responsibility to ensure that your application meets with

AVR128DA48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 37

your specifications MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHEREXPRESS OR IMPLIED WRITTEN OR ORAL STATUTORY OR OTHERWISE RELATED TO THE INFORMATIONINCLUDING BUT NOT LIMITED TO ITS CONDITION QUALITY PERFORMANCE MERCHANTABILITY ORFITNESS FOR PURPOSE Microchip disclaims all liability arising from this information and its use Use of Microchipdevices in life support andor safety applications is entirely at the buyerrsquos risk and the buyer agrees to defendindemnify and hold harmless Microchip from any and all damages claims suits or expenses resulting from suchuse No licenses are conveyed implicitly or otherwise under any Microchip intellectual property rights unlessotherwise stated

TrademarksThe 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-5760-2

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

AVR128DA48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 38

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupporthttpwwwmicrochipcomsupportWeb AddresshttpwwwmicrochipcomAtlantaDuluth 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 DS50002971A-page 39

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Kit Overview
      • 2 Getting Started
        • 21 Quick Start
        • 22 Design Documentation and Relevant Links
          • 3 Curiosity Nano
            • 31 On-Board Debugger Overview
              • 311 Debugger
              • 312 Virtual Serial Port (CDC)
                • 3121 Overview
                • 3122 Operating System Support
                • 3123 Limitations
                • 3124 Signaling
                • 3125 Advanced Use
                  • 313 Mass Storage Device
                    • 3131 Mass Storage Device Implementation
                    • 3132 Fuse Bytes
                    • 3133 Limitations of Drag-and-Drop Programming
                    • 3134 Special Commands
                      • 314 Data Gateway Interface (DGI)
                        • 3141 Debug GPIO
                        • 3142 Timestamping
                            • 32 Curiosity Nano Standard Pinout
                            • 33 Power Supply
                              • 331 Target Regulator
                              • 332 External Supply
                              • 333 VBUS Output Pin
                              • 334 Power Supply Exceptions
                                • 34 Low Power Measurement
                                • 35 Programming External Microcontrollers
                                  • 351 Supported Devices
                                  • 352 Software Configuration
                                  • 353 Hardware Modifications
                                  • 354 Connecting to External Microcontrollers
                                    • 36 Connecting External Debuggers
                                      • 4 Hardware User Guide
                                        • 41 Connectors
                                          • 411 AVR128DA48 Curiosity Nano Pinout
                                          • 412 Using Pin Headers
                                            • 42 Peripherals
                                              • 421 LED
                                              • 422 Mechanical Switch
                                              • 423 Crystal
                                              • 424 On-Board Debugger Implementation
                                                • 4241 On-Board Debugger Connections
                                                  • 5 Hardware Revision History and Known Issues
                                                    • 51 Identifying Product ID and Revision
                                                    • 52 Revision 3
                                                      • 6 Document Revision History
                                                      • 7 Appendix
                                                        • 71 Schematic
                                                        • 72 Assembly Drawing
                                                        • 73 Curiosity Nano Base for Click boardstrade
                                                        • 74 Disconnecting the On-board Debugger
                                                        • 75 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: AVR128DA48 Curiosity Nano User Guide - Microchip Technologyww1.microchip.com/downloads/en/DeviceDoc/AVR128DA48... · 2020-03-19 · AVR128DA48 Curiosity Nano AVR128DA48 Curiosity

Figure 3-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

Info  If the external voltage is lower than the monitoring window lower limit (target voltage setting - 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

332 External SupplyAVR128DA48 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 AVR128DA48 is 18-55V Applying a higher voltage may cause permanent damage to theboard

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 15

Info  If an external voltage is applied without pulling the VOFF pin low and an external supply pulls thevoltage lower than the monitoring window 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 AVR128DA48 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

333 VBUS Output PinAVR128DA48 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

Figure 3-6 VBUS Output Voltage vs Current

334 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 between 44V to 525V) and thevoltage drop over the MIC5353 regulator at a given voltage setting and current consumption If a higher outputvoltage is needed use a USB power source that can provide a higher input voltage or use an external voltage supplyon the VTG pin

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 16

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 differ more than 100 mV overunder the voltage setting it will be detected by the on-board debugger and theinternal voltage regulator will be shut down To fix this issue remove the applied voltage from the VTG pin and theon-board debugger will enable the on-board voltage regulator when the new condition is detected Note that the PSLED will be blinking rapidly if the target voltage is below 100 mV of the setting but will be lit normally when it is higherthan 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 really a special case of the issue mentioned above Removethe short-circuit and the on-board debugger will re-enable the on-board target voltage regulator

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

34 Low Power MeasurementPower to the AVR128DA48 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 AVR128DA48 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 AVR128DA48

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 17

Figure 3-7 Target Power Strap

Target Power strap (top side)

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 are tri-state to prevent leakage All IOs connected to the on-boarddebugger are listed in 4241 On-Board Debugger Connections To prevent any leakage to the on-boardlevel shifters they can be disconnected completely as described in 74 Disconnecting the On-boardDebugger

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

351 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

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

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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 18

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

Figure 3-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

353 Hardware ModificationsThe on-board debugger is connected to the AVR128DA48 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 AVR128DA48 from the on-board debugger

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 19

Figure 3-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 AVR128DA48 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 AVR128DA48

354 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 33 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

AVR128DA48 Curiosity Nano has a pull-up resistor R200 connected to its RESET signal (DBG3) The location ofthe pull-up resistor is shown in the 72 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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 20

Figure 3-10 Curiosity Nano Standard Pinout

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

Table 3-4 Programming and Debugging Interfaces

Curiosity Nano Pin UPDI ICSPtrade SWD

DBG0 UPDI DATA SWDIO

DBG1 - CLK SWCLK

DBG2 - - -

DBG3 - MCLR RESET

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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 21

Figure 3-11 Connecting the MPLABreg PICkittrade 4 In-Circuit DebuggerProgrammer to AVR128DA48 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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 22

Figure 3-12 Connecting the Atmel-ICE to AVR128DA48 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 Atmel StudioMicrochip MPLABreg XIDE or mass storage programming while the external tool is active

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 23

4 Hardware User Guide

41 Connectors

411 AVR128DA48 Curiosity Nano PinoutAll the AVR128DA48 IO pins are accessible at the edge connectors on the board The image below shows the boardpinout

Figure 4-1 AVR128DA48 Curiosity Nano Pinout

USB

DEBUGGER

AVR128DA48

SW0

LED0

PS LEDNC

NC

ID

ID

CDC RX

CDCRXUSART1 TXPC0

CDC TX

CDCTXUSART1 RXPC1

DBG1

DBG

1PC6LED0

DBG2

DBG

2PC7SW0

PA0

PA0USART0 TXPTC XY0

PA1PA

1USART0 RXPTC XY1

PC2PC2TWI0 SDA

PC3

PC3TWI0 SCL

PA4

PA4SPI0 MOSIPTC XY4

PA5

PA5SPI0 MISOPTC XY5

PA6

PA6SPI0 SCKPTC XY6

PA7

PA7SPI0 SSPTC XY7

GND

GN

D

PF4

PF4USART2 TXPTC XY36

PF5

PF5USART2 RXPTC XY37

PF2

PF2PTC XY34

PF3

PF3PTC XY35

PB0

PB0PTC XY8

PB1

PB1PTC XY9

PB2

PB2PTC XY10

PB3

PB3PTC XY11

GND

GN

D

PC0

PC0USART1 TXCDC RX

PC1

PC1USART1 RXCDC TX

PC6

PC6LED0

PC7

PC7SW0

VBUS

VBU

S

VOFF

VO

FFDBG3

DBG

3 PF6

DBG0D

BG0 UPDI

GND

GN

D

VTG

VTG

PD7

PD7 AIN7 PTC XY23

PD6

PD6 AIN6 PTC XY22

PD2

PD2 AIN2 PTC XY18 TCA0 WO2

PD1

PD1 AIN1 PTC XY17 TCA0 WO1

PD0

PD0 AIN0 PTC XY16 TCA0 WO0

PD5

PD5 AIN5 PTC XY21

PD4

PD4 AIN4 PTC XY20

PD3

PD3 AIN3 PTC XY19

GND

GN

D

PE3

PE3 PTC XY27

PE2

PE2 PTC XY26

PE1

PE1 PTC XY25

PE0

PE0 PTC XY24

PA3

PA3 PTC XY3

PA2

PA2 PTC XY2

PB5

PB5 PTC XY13

PB4

PB4 PTC XY12

GND

GN

D

PC5

PC5

PC4

PC4

(PF1)

(PF1) (PTC XY33) XTAL32K2

(PF0)

(PF0) (PTC XY32) XTAL32K1

DEBUGGERAVR128DA48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

Touch

Shared pin

AVR128DA48Curiosity Nano

412 Using Pin HeadersThe edge connector footprint on AVR128DA48 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

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

AVR128DA48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 24

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

42 Peripherals

421 LEDThere is one yellow user LED available on the AVR128DA48 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 4-1 LED Connection

AVR128DA48 Pin Function Shared Functionality

PC6 Yellow LED0 Edge connector On-board debugger

422 Mechanical SwitchThe AVR128DA48 Curiosity Nano has one mechanical switch This is a generic user-configurable switch When theswitch 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 PC7

Table 4-2 Mechanical Switch

AVR128DA48 Pin Description Shared Functionality

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

423 Crystal

The AVR128DA48 Curiosity Nano board has a 32768 kHz crystal mounted

The AVR128DA48 is connected to the crystal by default but the GPIOs are also routed to the edge connectorthrough two solder points The two IO lines routed to the edge connector are disconnected by default to reduce thechance of an external signal causing contention with the crystal and to remove excessive capacitance on the linesTo use PF0 and PF1 as GPIO some hardware modifications are required

bull Disconnect the crystal by cutting the two straps on the top side of the board next to the crystal (J210 J211) Thecrystal 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 (J207 J208)

The cut straps and solder points can be seen in Figure 4-2

Table 4-3 Crystal Connections

AVR128DA48 Pin Function Shared Functionality

PF0 TOSC1 (Crystal input) Edge connector

PF1 TOSC2 (Crystal output) Edge connector

AVR128DA48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 25

Figure 4-2 Crystal Connection and Cut Straps

424 On-Board Debugger ImplementationAVR128DA48 Curiosity Nano features an on-board debugger that can be used to program and debug theAVR128DA48 using UPDI The on-board debugger also includes a virtual serial port (CDC) interface over UART anddebug GPIO Atmel StudioMicrochip MPLABreg X IDE 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

4241 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 31 On-Board DebuggerOverview

Table 4-4 On-Board Debugger Connections

AVR128DA48Pin

Debugger Pin Function Shared Functionality

RF1 CDC TX UART RX (AVR128DA48 RX line) Edge connector

RF0 CDC RX UART TX (AVR128DA48 TX line) Edge connector

UPDI DBG0 UPDI Edge connector

PC6 DBG1 GPIO1 Edge connector LED

PC7 DBG2 GPIO0 Edge connector Mechanical Switch

PF6 DBG3 RESET Edge connector

AVR128DA48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 26

5 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

51 Identifying Product ID and RevisionThe revision and product identifier of the AVR128DA48 Curiosity Nano Board can be found in two ways Either byutilizing the Atmel StudioMicrochip MPLABreg X IDE Kit Window or by looking at the sticker on the bottom side of thePCB

By connecting AVR128DA48 Curiosity Nano to a computer with Atmel StudioMicrochip MPLABreg X IDE running theKit Window will pop up The first six digits of the serial number which is listed under kit information contain theproduct identifier 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 AVR128DA48 Curiosity Nano is A09-3280

52 Revision 3Revision 3 is the initially released revision There are no known issues with this revision

AVR128DA48 Curiosity NanoHardware Revision History and Known Issues

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 27

6 Document Revision HistoryDoc rev Date Comment

A 032020 Initial document release

AVR128DA48 Curiosity NanoDocument Revision History

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 28

7 Appendix

71 SchematicFigure 7-1 AVR128DA48 Curiosity Nano Schematic

11

22

33

44

55

66

77

88

DD

CC

BB

AA

2 of

4

AVR1

28D

A48

Curio

sity

Nan

o

102

320

19AV

R128

DA

48_C

urio

sity

_Nan

o_Ta

rget

_MCU

Sch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA R

evisi

on

File

PC

B N

umbe

rPC

B Re

visio

n

Des

igne

d wi

th

Dra

wn

By

PB Shee

t Titl

eTa

rget

MCU

Engi

neer

A

H T

F

A08

-300

23

Size

A3

A09

-328

03

Page

D

ateA

ltium

com

GN

DV

CC_T

ARG

ET

100n

C201

GN

D

PA5_

SPI0

_MIS

OPA

6_SP

I0_S

CKPA

7_SP

I0_S

SPB

0_U

ART

3_TX

PB1_

UA

RT3_

RXPB

2PB

3PB

4PB

5PC

0_U

ART

1_TX

PC1_

UA

RT1_

RXPC

2_I2

C0_S

DA

PC3_I2C0_SCL

PC4PC5PC6_LED0_GPIO1PC7_SW0_GPIO0PD0_AIN0_WO0PD1_AIN1_WO1PD2_AIN2_WO2PD3_AIN3PD4_AIN4

PA3

PA1_UART0_RX

UPDI

PF5_UART2_RX

PF3

PF2

PF1_

TOSC

2PF

0_TO

SC1

PE3

PE2

PE1

PE0

PD5_

AIN

5PD

6_A

IN6

PD7_

AIN

7

GN

D

VCC

_TA

RGET

100n

C202

GN

DV

CC_T

ARG

ET10

0n

C200

PF1_TOSC2

PF0_TOSC1

PA2

PA0_UART0_TX

PF4_UART2_TX

PA4_SPI0_MOSI

GN

D

PA7_

SPI0

_SS

PA6_

SPI0

_SCK

PA5_

SPI0

_MIS

OPA

4_SP

I0_M

OSI

PA3

PA2

PA1_

UA

RT0_

RXPA

0_U

ART

0_TX

PB0_

UA

RT3_

TXPB

1_U

ART

3_RX

PB2

PB3

PB4

PB5

PD7_

AIN

7PD

6_A

IN6

PF5_

UA

RT2_

RXPF

4_U

ART

2_TX

PF3

PF2

32kH

z C

ryst

al

1kR203

USE

R L

ED

VCC

_TA

RGET

PF6_RESET

PC7_SW0_GPIO0

PC6_LED0_GPIO1

GN

D

USE

R B

UTT

ON

PE3

PE2

PE1

PE0

PC0_

UA

RT1_

TXPC

1_U

ART

1_RX

PC2_

I2C0

_SD

APC

3_I2

C0_S

CL

PC4

PC5

PC6_

LED

0_G

PIO

1PC

7_SW

0_G

PIO

0

1kR202

YELLOWLEDSML-D12Y1WT86

2 1D200

TS604VM1-035CR13

4 2

SW20

0

GN

DV

CC_E

DG

E

GN

DG

ND

GN

DG

ND

UPD

IPF

6_RE

SET

J207

J208

J209

BLM

18PG

471S

N1

L200

AVR1

28D

A48

22u

FC2

05

VCC

_ED

GE

GN

D

DBG0

CDC_

UART

TXRXU

ART

CDC_TXCDC_RX

DBG2

DBG1

DBG3

DBG2

DEB

UG

GER

CO

NN

ECTI

ON

S

DBG1

DBG3DBG0

VOFF

ID_S

YS

ID_SYS

VOFF

TAR

GET

BU

LK

VCC

_TA

RGET

RES

ET P

ull

VBU

S

CDC

RX3

CDC

TX4

DBG

15

DBG

26

0 TX

71

RX8

2 SD

A9

3 SC

L10

4 M

OSI

115

MIS

O12

6 SC

K13

7 SS

14G

ND

150

(TX

)16

1 (R

X)

172

183

190

20

GN

D24

DBG

354

DBG

053

GN

D52

VCC

51

PWM

346

AD

C 2

45A

DC

144

AD

C 0

43G

ND

42

438

434

GN

D33

AD

C 7

50A

DC

649

AD

C 5

48PW

M 4

47

DEB

UG

GER

TARG

ET

ID2

VO

FF55

121

222

323

025

126

227

328

429

530

631

732

535

636

737

539

640

741

RESE

RVED

1V

BUS

56

CNA

NO

56-p

in e

dge

conn

ecto

r

J200

J201

J203

J205

J206

J202

J204

PF1

PF0

PF1_

TOSC

2PF

0_TO

SC1

NC

J211

J210

XOUT

XIN

47kR200

AVR

128D

A48

UPD

I

GPI

O1

GPI

O0

RESE

T

DBG

0

DBG

1

DBG

2

DBG

3

Deb

ugge

r

CD

C T

X

CD

C R

X

UA

RT1

RX

UA

RT1

TX

VTG

18V

- 5

5VPC6

PC7

PF6

UPD

I

PC0

PC1

Nam

ePi

n

PA5

1PA

62

PA7

3PB

04

PB1

5PB

26

PB3

7PB

48

PB5

9PC

010

PC1

11PC

212

PC3 13VDD 14GND 15PC4 16PC5 17PC6 18PC7 19PD0 20PD1 21PD2 22PD3 23PD4 24

PD5

25PD

626

PD7

27AV

DD28

GND

29PE

030

PE1

31PE

232

PE3

33XT

AL32

K1P

F034

XTAL

32K2

PF1

35PF

236

PF337 PF438 PF539 PF640 UPDI41 VDD42 GND43 EXTCLKPA044 PA145 PA246 PA347 PA448

AVR1

28D

A48

TQ

FPU

200

PC0_

UA

RT1_

TXPC

1_U

ART

1_RX

PC6_

LED

0_G

PIO

1PC

7_SW

0_G

PIO

0

AVD

D

PD2_

AIN

2_W

O2

PD1_

AIN

1_W

O1

PD0_

AIN

0_W

O0

PD5_

AIN

5PD

4_A

IN4

PD3_

AIN

3

XC2

00

12p

C203

12p

C204

327

68 k

Hz

Crys

tal d

atas

heet

Cc

rysta

l = 9

pFm

ax E

SR =

70k

Ohm

Acc

urac

y plusmn2

0ppm

AVR1

28D

A48

dat

ashe

et

Cxin

= 4

1pF

Cxou

t = 6

0pF

Cl asymp

1( (

14

1pF)

+ (1

60

pF) )

asymp2

44pF

Max

imum

Loa

d =

125

pFM

axim

um E

SR =

80k

Ohm

Estim

ated

Cpc

b =

05p

F

Estim

ated

load

C =

2 (C

crys

tal-

Cpar

a - C

pcb)

C

= 2

(9pF

- 2

44pF

- 0

5pF)

C =

121

2pF

Sele

cted

in d

esig

n af

ter v

erifi

catio

nC=

12p

F12

pF

NO

TE o

n U

ART

CD

C

RXT

X o

n th

e he

ader

den

otes

the

inpu

tout

put d

irect

ion

of th

e sig

nal

resp

ectiv

e to

its

sour

ce

CDC

TX is

out

put f

rom

the

DEB

UG

GER

CD

C RX

is in

put t

o th

e D

EBU

GG

ER

TX is

out

put f

rom

the

TARG

ET d

evic

eRX

is in

put t

o th

e TA

RGET

dev

ice

NO

TE o

n I2

C

No

pull-

ups o

n bo

ard

Pul

l-ups

shou

ld b

e m

ount

ed c

lose

to sl

ave

devi

ce(s

)

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 29

11

22

33

44

55

66

77

88

DD

CC

BB

AA

3 of

4

AVR1

28D

A48

Curio

sity

Nan

o

102

320

19AV

R128

DA

48_C

urio

sity

_Nan

o_D

ebug

gerS

chD

oc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA R

evisi

on

File

PC

B N

umbe

rPC

B Re

visio

n

Des

igne

d wi

th

Dra

wn

By

PB Shee

t Titl

eD

ebug

ger

Engi

neer

A

H T

F

A08

-300

23

Size

A3

A09

-328

03

Page

D

ateA

ltium

com

DEB

UG

GER

USB

MIC

RO

-B C

ON

NEC

TOR

GN

D

USB

D_P

USB

D_N

100n

C107

100n

C108

RXTXU

ART

CDC_

UART

1kR1

07V

CC_P

3V3

SRST

STAT

US_

LED

SHIE

LD

VBU

S

VCC

_P3V

3G

ND

TP10

0

Testp

oint

Arra

y

12

34

56

78

910

TCK

TDO

TMS

Vsu

pTD

IG

ND

TRST

SRST

VTr

efG

ND

J102

GN

D

47u

F

C100

DBG0

DBG

0

21

GRE

EN L

EDSM

L-P1

2MTT

86R

D10

0

VBUS

1D-

2D+

3

GND

5SH

IELD

16

SHIE

LD2

7

ID4

SHIE

LD3

8SH

IELD

49 M

U-M

B014

2AB2

-269

J105

PAD

33

PA00

1PA

012

PA02

3PA

034

GND 10VDDANA 9

PA04

5PA

056

PA06

7PA

078

PA08 11PA09 12PA10 13PA11 14PA14 15PA15 16

PA16

17PA

1718

PA18

19PA

1920

PA22

21US

B_SO

FPA

2322

USB_

DMP

A24

23US

B_DP

PA2

524

PA2725 RESETN26 PA2827 GND28 VDDCORE29 VDDIN30 SWDCLKPA3031 SWDIOPA3132

SAM

D21

E18A

-MU

TU

100

VOUT

1

VOUT

2

GND 3

EN4

VIN

6

NC5

EP 7

MIC

5528

-33

YM

TU

101

VCC

_P3V

3

GN

D

USB

D_P

USB

D_N

GN

D

1uC106

VCC

_MCU

_CO

RE

VCC

_P3V

3

VCC

_P3V

3

22u

FC1

01

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

3V

CC_P

3V3

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

4V

CC_P

3V3

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

5V

CC_P

3V3

GN

D

GN

D GN

D

GN

D

VCC

_ED

GE

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

7V

CC_P

3V3

GN

DDB

G2

DBG

3_CT

RL

S1_0

_TX

S1_1

_RX

S0_2

_TX

DA

CV

TG_A

DC

RESE

RVED

S0_3

_CLK

DBG0_CTRL

CDC_

TX_C

TRL

BOO

T

DEB

UG

GER

PO

WER

STA

TUS

LED

EN1

BYP

6

VOUT

4

GND

2

VIN

3

NCA

DJ5

GND 7

MIC

5353

U10

2

100n

C102

GN

D

GN

D

47kR101

27kR104 G

ND

33k

R106

22u

F

C103 G

ND

1kR1

08

J100

VCC

_LEV

ELV

CC_R

EGU

LATO

R

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

6V

CC_P

3V3

GN

DDB

G1

CDC_

RXCD

C_TX

DBG3

DBG1_CTRL

DEB

UG

GER

REG

ULA

TOR

REG_ENABLE

REG

_EN

ABL

E

47kR103

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

47kR102

47kR105

SWCL

K

GN

D

47kR100 G

ND

DBG

2

S0_0

_RX

DBG

1_CT

RL

DBG

0_CT

RL

DBG

3 O

PEN

DR

AIN

TAR

GET

AD

JUST

ABL

E R

EGU

LATO

R

SRST

DEB

UG

GER

TES

TPO

INT DBG2_CTRL

VO

FFCD

C_RX

_CTR

L

47kR109

DBG

1

CDC_

TX_C

TRL

CDC_

RX_C

TRL

SWCL

K

REG_ADJUST

DBG2_GPIO

DBG

3_CT

RL

DBG

2_CT

RL

UPD

I

UPD

I

GPI

O

GPI

O

RESE

T

Sign

al

DBG

0

DBG

1

DBG

2

DBG

3

ICSP

Inte

rface

DAT

CLK

GPI

O

MCL

R

DBG

3

CD

C T

X

CD

C R

X

UA

RT R

X

UA

RT T

X

UA

RT R

X

UA

RT T

X

TAR

GET

TAR

GET

1kR1

10

VBUS_ADC

1

23

DM

N65

D8L

FBQ

101

VC

C-

-

ID_S

YS

VOFF

1kR112

VCC

_P3V

3

VTG

_AD

CD

AC

MIC

9416

3

VIN

B2VO

UTA1

VIN

A2

ENC2

GND

C1VO

UTB1

U10

8

GN

D

ID_S

YS

VTG

_EN

VTG_EN

VBUS_ADC

SWD

IO

ID_S

YS

TP10

1G

ND

SWD

IO

VO

FF

47kR111 G

ND

ID P

IN

MC3

6213

F100

VCC

_VBU

S

VCC

_VBU

S

VCC

_VBU

S

J101

VCC

_TA

RGET

47k

R113

Prog

ram

min

g co

nnec

tor f

or

fact

ory

prog

ram

min

g of

D

EBU

GG

ER

MIC

5528

Vi

n 2

5V

to 5

5V

Vout

Fix

ed 3

3V

Imax

500

mA

Dro

pout

260

mV

5

00m

A

PTC

Rese

ttabl

e fu

se

Hol

d cu

rrent

500

mA

Trip

cur

rent

100

0mA

Adj

usta

ble

outp

ut a

nd li

mita

tions

- T

he D

EBU

GG

ER c

an a

djus

t the

out

put v

olta

ge o

f the

regu

lato

r bet

wee

n 1

25V

and

51

V to

the

targ

et

- The

vol

tage

out

put i

s lim

ited

by th

e in

put (

USB

) w

hich

can

var

y be

twee

n 4

40V

to 5

25V

- The

leve

l shi

fters

hav

e a

min

imal

vol

tage

leve

l of 1

65V

and

will

lim

it th

e m

inim

um o

pera

ting

volta

ge a

llow

ed fo

r the

ta

rget

to st

ill a

llow

com

mun

icat

ion

- The

MIC

9416

3 ha

s a m

inim

al v

olta

ge le

vel o

f 17

0V a

nd w

ill li

mit

the

min

imum

vol

tage

del

iver

ed to

the

targ

et

- Firm

war

e co

nfig

urat

ion

will

lim

it th

e vo

ltage

rang

e to

be

with

in th

e th

e ta

rget

spec

ifica

tion

R113

is re

quire

d to

pul

l the

Q

101

gate

to a

def

ined

va

lue

whe

n th

e U

100

is no

t po

wer

ed

J100

Cu

t-stra

p us

ed fo

r ful

l sep

arat

ion

of ta

rget

pow

er fr

om th

e le

vel s

hifte

rs a

nd o

n-bo

ard

regu

lato

rs

- For

cur

rent

mea

sure

men

ts us

ing

an e

xter

nal p

ower

supp

ly t

his s

trap

coul

d be

cut

for m

ore

accu

rate

mea

sure

men

ts L

eaka

ge b

ack

thro

ugh

the

switc

h is

in th

e m

icro

am

pere

rang

e

J101

Th

is is

foot

prin

t for

a 1

x2 1

00m

il pi

tch

pin-

head

er th

at c

an b

e us

ed fo

r eas

y cu

rrent

mea

sure

men

t to

the

targ

et m

icro

cont

rolle

r and

the

LED

Bu

tton

To

use

the

foot

prin

t- C

ut th

e tra

ck b

etw

een

the

hole

s an

d m

ount

a p

in-h

eade

r

MIC

5353

Vi

n 2

6V

to 6

VVo

ut 1

25V

to 5

1V

Imax

500

mA

Dro

pout

(typ

ical

) 50

mV

15

0mA

160

mV

5

00m

AA

ccur

acy

2

initi

alTh

erm

al sh

utdo

wn

and

curre

nt li

mit

Max

imum

out

put v

olta

ge is

lim

ited

by th

e in

put v

olta

ge a

nd th

e dr

opou

t vol

tage

in th

e re

gula

tor

(Vm

ax =

Vin

- dr

opou

t)

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 30

72 Assembly DrawingFigure 7-2 AVR128DA48 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

PAC20002 PAC20001 COC200

PAC20102 PAC20101 COC201

PAC20202 PAC20201 COC202

PAC20301 PAC20302 COC203

PAC20401 PAC20402 COC204

PAC20502

PAC20501 COC205

PAD10002 PAD10001 COD100

PAD20001

PAD20002 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

PAJ20701 PAJ20702 PAJ20705 COJ207

PAJ20801 PAJ20802 PAJ20805 COJ208

PAJ20901 PAJ20902 COJ209

PAJ21002 PAJ21001 COJ210

PAJ21102 PAJ21101 COJ211

PAL20002 PAL20001 COL200

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

PAR20002 PAR20001 COR200

PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203

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

PAU200048 PAU200047 PAU200046 PAU200045 PAU200044 PAU200043 PAU200042 PAU200041 PAU200040 PAU200039 PAU200038 PAU200037 PAU200036 PAU200035 PAU200034 PAU200033 PAU200032 PAU200031 PAU200030 PAU200029 PAU200028 PAU200027 PAU200026 PAU200025 PAU200024 PAU200023 PAU200022 PAU200021 PAU200020 PAU200019 PAU200018 PAU200017 PAU200016 PAU200015 PAU200014 PAU200013

PAU200012 PAU200011 PAU200010 PAU20009 PAU20008 PAU20007 PAU20006 PAU20005 PAU20004 PAU20003 PAU20002 PAU20001

COU200

PAXC20001

PAXC20002

COXC200

Figure 7-3 AVR128DA48 Curiosity Nano Assembly Drawing Bottom

ctR

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20002 PAC20001 COC200

PAC20102 PAC20101 COC201

PAC20202 PAC20201 COC202

PAC20301 PAC20302 COC203

PAC20401 PAC20402 COC204

PAC20502

PAC20501 COC205

PAD10002 PAD10001 COD100

PAD20001

PAD20002 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

PAJ20701 PAJ20702 PAJ20705 COJ207

PAJ20801 PAJ20802 PAJ20805 COJ208

PAJ20901 PAJ20902 COJ209

PAJ21002 PAJ21001 COJ210

PAJ21102 PAJ21101 COJ211

PAL20002 PAL20001 COL200

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

PAR20002 PAR20001 COR200

PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203

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

PAU200048 PAU200047 PAU200046 PAU200045 PAU200044 PAU200043 PAU200042 PAU200041 PAU200040 PAU200039 PAU200038 PAU200037 PAU200036 PAU200035 PAU200034 PAU200033 PAU200032 PAU200031 PAU200030 PAU200029 PAU200028 PAU200027 PAU200026 PAU200025 PAU200024 PAU200023 PAU200022 PAU200021 PAU200020 PAU200019 PAU200018 PAU200017 PAU200016 PAU200015 PAU200014 PAU200013

PAU200012 PAU200011 PAU200010 PAU20009 PAU20008 PAU20007 PAU20006 PAU20005 PAU20004 PAU20003 PAU20002 PAU20001

COU200

PAXC20001

PAXC20002

COXC200

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 31

73 Curiosity Nano Base for Click boardstrade

Figure 7-4 AVR128DA48 Curiosity Nano Pinout Mapping

USB

DEB

UG

GER

AVR1

28D

A48

SW0

LED

0

PS L

EDNC

NC

ID

ID

CDC RX

CDCRX

USART1 TX

PC0

CDC TX

CDCTX

USART1 RX

PC1

DBG1

DBG1

PC6

LED0

DBG2

DBG2

PC7

SW0

PA0

PA0

USART0 TX

PTC XY0

PA1

PA1

USART0 RX

PTC XY1

PC2

PC2

TWI0 SDA

PC3

PC3

TWI0 SCL

PA4

PA4

SPI0 MOSI

PTC XY4

PA5

PA5

SPI0 MISO

PTC XY5

PA6

PA6

SPI0 SCK

PTC XY6

PA7

PA7

SPI0 SS

PTC XY7

GND

GND

PF4

PF4

USART2 TX

PTC XY36

PF5

PF5

USART2 RX

PTC XY37

PF2

PF2

PTC XY34

PF3

PF3

PTC XY35

PB0

PB0

PTC XY8

PB1

PB1

PTC XY9

PB2

PB2

PTC XY10

PB3

PB3

PTC XY11

GND

GND

PC0

PC0

USART1 TX

CDC RX

PC1

PC1

USART1 RX

CDC TX

PC6

PC6

LED0

PC7

PC7

SW0

VBUS

VBUS

VOFF

VOFF

DBG3

DBG3

PF6

DBG0

DBG0

UPDI

GND

GND

VTG

VTG

PD7

PD7

AIN7

PTC XY23

PD6

PD6

AIN6

PTC XY22

PD2

PD2

AIN2

PTC XY18

TCA0 WO2

PD1

PD1

AIN1

PTC XY17

TCA0 WO1

PD0

PD0

AIN0

PTC XY16

TCA0 WO0

PD5

PD5

AIN5

PTC XY21

PD4

PD4

AIN4

PTC XY20

PD3

PD3

AIN3

PTC XY19

GND

GND

PE3

PE3

PTC XY27

PE2

PE2

PTC XY26

PE1

PE1

PTC XY25

PE0

PE0

PTC XY24

PA3

PA3

PTC XY3

PA2

PA2

PTC XY2

PB5

PB5

PTC XY13

PB4

PB4

PTC XY12

GND

GND

PC5

PC5

PC4

PC4

(PF1)

(PF1)

(PTC XY33)

XTAL32K2

(PF0)

(PF0)

(PTC XY32)

XTAL32K1

DEB

UG

GER

AVR1

28D

A48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

Touch

Shared pin

AVR1

28D

A48

Curio

sity

Nan

o

1

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

2

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

3

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

Xpl

aine

d Pr

o Ex

tens

ion

EXT1

12

1920

Curio

sity

Nan

o Ba

sefo

r clic

k bo

ards

TM

PD3

PD0

PD7

PD6

PA7

PA1

PA6

PA0

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

PD4

PD1

PF3

PF2

PE2

PF5

PA6

PF4

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

PD5

PD2

PE1

PE0

PE3

PA1

PA6

PA0

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

ID

GND

PD4

PD5

PF3

PE1

PD1

PD2

PF2

PE3

PC2

PC3

PF5

PF4

PE2

PA4

PA5

PA6

GND

+33V

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 32

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

The block diagram below shows all connections between the debugger and the AVR128DA48 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 7-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 7-6 Details about connecting an external debugger are described in 36 Connecting ExternalDebuggers

Figure 7-5  On-Board Debugger Connections Block Diagram

DEB

UG

GER

TARGETLevel-Shift

PA04PA06PA07PA08PA16PA00PA01

USB

DIR x 5

VCC_P3V3

VBUS

VCC

_LEV

EL

VCC

_TA

RGET

DBG0DBG1DBG2DBG3CDC 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

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 33

Figure 7-6 On-Board Debugger Connection Cut Straps

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

75 Getting Started with IARIAR Embedded Workbenchreg for AVRreg is a proprietary high-efficiency compiler not based on GCC Programming anddebugging of AVR128DA48 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 7-73 In the category Debugger select the Setup tab Select Atmel-ICE as the driver as shown in Figure 7-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 7-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

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 34

Figure 7-7 Select Target Device

Figure 7-8 Select Debugger

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 35

Figure 7-9 Configure Interface

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 36

The Microchip WebsiteMicrochip provides online support via our website at httpwwwmicrochipcom This website is used to make filesand information 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 ServiceMicrochiprsquos 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 httpwwwmicrochipcompcn and follow the registration instructions

Customer SupportUsers 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 httpwwwmicrochipcomsupport

Microchip Devices Code Protection FeatureNote the following details of the code protection feature on Microchip devices

bull Microchip products meet the specification contained in their particular Microchip Data Sheetbull Microchip believes that its family of products is one of the most secure families of its kind on the market today

when used in the intended manner and under normal conditionsbull There are dishonest and possibly illegal methods used to breach the code protection feature All of these

methods to our knowledge require using the Microchip products in a manner outside the operatingspecifications contained in Microchiprsquos Data Sheets Most likely the person doing so is engaged in theft ofintellectual property

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

protection does not mean that we are guaranteeing the product as ldquounbreakablerdquo

Code protection is constantly evolving We at Microchip are committed to continuously improving the code protectionfeatures of our products Attempts to break Microchiprsquos code protection feature may be a violation of the DigitalMillennium Copyright Act If such acts allow unauthorized access to your software or other copyrighted work youmay have a right to sue for relief under that Act

Legal NoticeInformation contained in this publication regarding device applications and the like is provided only for yourconvenience and may be superseded by updates It is your responsibility to ensure that your application meets with

AVR128DA48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 37

your specifications MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHEREXPRESS OR IMPLIED WRITTEN OR ORAL STATUTORY OR OTHERWISE RELATED TO THE INFORMATIONINCLUDING BUT NOT LIMITED TO ITS CONDITION QUALITY PERFORMANCE MERCHANTABILITY ORFITNESS FOR PURPOSE Microchip disclaims all liability arising from this information and its use Use of Microchipdevices in life support andor safety applications is entirely at the buyerrsquos risk and the buyer agrees to defendindemnify and hold harmless Microchip from any and all damages claims suits or expenses resulting from suchuse No licenses are conveyed implicitly or otherwise under any Microchip intellectual property rights unlessotherwise stated

TrademarksThe 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-5760-2

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

AVR128DA48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 38

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupporthttpwwwmicrochipcomsupportWeb AddresshttpwwwmicrochipcomAtlantaDuluth 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 DS50002971A-page 39

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Kit Overview
      • 2 Getting Started
        • 21 Quick Start
        • 22 Design Documentation and Relevant Links
          • 3 Curiosity Nano
            • 31 On-Board Debugger Overview
              • 311 Debugger
              • 312 Virtual Serial Port (CDC)
                • 3121 Overview
                • 3122 Operating System Support
                • 3123 Limitations
                • 3124 Signaling
                • 3125 Advanced Use
                  • 313 Mass Storage Device
                    • 3131 Mass Storage Device Implementation
                    • 3132 Fuse Bytes
                    • 3133 Limitations of Drag-and-Drop Programming
                    • 3134 Special Commands
                      • 314 Data Gateway Interface (DGI)
                        • 3141 Debug GPIO
                        • 3142 Timestamping
                            • 32 Curiosity Nano Standard Pinout
                            • 33 Power Supply
                              • 331 Target Regulator
                              • 332 External Supply
                              • 333 VBUS Output Pin
                              • 334 Power Supply Exceptions
                                • 34 Low Power Measurement
                                • 35 Programming External Microcontrollers
                                  • 351 Supported Devices
                                  • 352 Software Configuration
                                  • 353 Hardware Modifications
                                  • 354 Connecting to External Microcontrollers
                                    • 36 Connecting External Debuggers
                                      • 4 Hardware User Guide
                                        • 41 Connectors
                                          • 411 AVR128DA48 Curiosity Nano Pinout
                                          • 412 Using Pin Headers
                                            • 42 Peripherals
                                              • 421 LED
                                              • 422 Mechanical Switch
                                              • 423 Crystal
                                              • 424 On-Board Debugger Implementation
                                                • 4241 On-Board Debugger Connections
                                                  • 5 Hardware Revision History and Known Issues
                                                    • 51 Identifying Product ID and Revision
                                                    • 52 Revision 3
                                                      • 6 Document Revision History
                                                      • 7 Appendix
                                                        • 71 Schematic
                                                        • 72 Assembly Drawing
                                                        • 73 Curiosity Nano Base for Click boardstrade
                                                        • 74 Disconnecting the On-board Debugger
                                                        • 75 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: AVR128DA48 Curiosity Nano User Guide - Microchip Technologyww1.microchip.com/downloads/en/DeviceDoc/AVR128DA48... · 2020-03-19 · AVR128DA48 Curiosity Nano AVR128DA48 Curiosity

Info  If an external voltage is applied without pulling the VOFF pin low and an external supply pulls thevoltage lower than the monitoring window 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 AVR128DA48 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

333 VBUS Output PinAVR128DA48 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

Figure 3-6 VBUS Output Voltage vs Current

334 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 between 44V to 525V) and thevoltage drop over the MIC5353 regulator at a given voltage setting and current consumption If a higher outputvoltage is needed use a USB power source that can provide a higher input voltage or use an external voltage supplyon the VTG pin

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 16

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 differ more than 100 mV overunder the voltage setting it will be detected by the on-board debugger and theinternal voltage regulator will be shut down To fix this issue remove the applied voltage from the VTG pin and theon-board debugger will enable the on-board voltage regulator when the new condition is detected Note that the PSLED will be blinking rapidly if the target voltage is below 100 mV of the setting but will be lit normally when it is higherthan 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 really a special case of the issue mentioned above Removethe short-circuit and the on-board debugger will re-enable the on-board target voltage regulator

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

34 Low Power MeasurementPower to the AVR128DA48 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 AVR128DA48 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 AVR128DA48

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 17

Figure 3-7 Target Power Strap

Target Power strap (top side)

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 are tri-state to prevent leakage All IOs connected to the on-boarddebugger are listed in 4241 On-Board Debugger Connections To prevent any leakage to the on-boardlevel shifters they can be disconnected completely as described in 74 Disconnecting the On-boardDebugger

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

351 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

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

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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 18

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

Figure 3-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

353 Hardware ModificationsThe on-board debugger is connected to the AVR128DA48 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 AVR128DA48 from the on-board debugger

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 19

Figure 3-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 AVR128DA48 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 AVR128DA48

354 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 33 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

AVR128DA48 Curiosity Nano has a pull-up resistor R200 connected to its RESET signal (DBG3) The location ofthe pull-up resistor is shown in the 72 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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 20

Figure 3-10 Curiosity Nano Standard Pinout

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

Table 3-4 Programming and Debugging Interfaces

Curiosity Nano Pin UPDI ICSPtrade SWD

DBG0 UPDI DATA SWDIO

DBG1 - CLK SWCLK

DBG2 - - -

DBG3 - MCLR RESET

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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 21

Figure 3-11 Connecting the MPLABreg PICkittrade 4 In-Circuit DebuggerProgrammer to AVR128DA48 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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 22

Figure 3-12 Connecting the Atmel-ICE to AVR128DA48 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 Atmel StudioMicrochip MPLABreg XIDE or mass storage programming while the external tool is active

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 23

4 Hardware User Guide

41 Connectors

411 AVR128DA48 Curiosity Nano PinoutAll the AVR128DA48 IO pins are accessible at the edge connectors on the board The image below shows the boardpinout

Figure 4-1 AVR128DA48 Curiosity Nano Pinout

USB

DEBUGGER

AVR128DA48

SW0

LED0

PS LEDNC

NC

ID

ID

CDC RX

CDCRXUSART1 TXPC0

CDC TX

CDCTXUSART1 RXPC1

DBG1

DBG

1PC6LED0

DBG2

DBG

2PC7SW0

PA0

PA0USART0 TXPTC XY0

PA1PA

1USART0 RXPTC XY1

PC2PC2TWI0 SDA

PC3

PC3TWI0 SCL

PA4

PA4SPI0 MOSIPTC XY4

PA5

PA5SPI0 MISOPTC XY5

PA6

PA6SPI0 SCKPTC XY6

PA7

PA7SPI0 SSPTC XY7

GND

GN

D

PF4

PF4USART2 TXPTC XY36

PF5

PF5USART2 RXPTC XY37

PF2

PF2PTC XY34

PF3

PF3PTC XY35

PB0

PB0PTC XY8

PB1

PB1PTC XY9

PB2

PB2PTC XY10

PB3

PB3PTC XY11

GND

GN

D

PC0

PC0USART1 TXCDC RX

PC1

PC1USART1 RXCDC TX

PC6

PC6LED0

PC7

PC7SW0

VBUS

VBU

S

VOFF

VO

FFDBG3

DBG

3 PF6

DBG0D

BG0 UPDI

GND

GN

D

VTG

VTG

PD7

PD7 AIN7 PTC XY23

PD6

PD6 AIN6 PTC XY22

PD2

PD2 AIN2 PTC XY18 TCA0 WO2

PD1

PD1 AIN1 PTC XY17 TCA0 WO1

PD0

PD0 AIN0 PTC XY16 TCA0 WO0

PD5

PD5 AIN5 PTC XY21

PD4

PD4 AIN4 PTC XY20

PD3

PD3 AIN3 PTC XY19

GND

GN

D

PE3

PE3 PTC XY27

PE2

PE2 PTC XY26

PE1

PE1 PTC XY25

PE0

PE0 PTC XY24

PA3

PA3 PTC XY3

PA2

PA2 PTC XY2

PB5

PB5 PTC XY13

PB4

PB4 PTC XY12

GND

GN

D

PC5

PC5

PC4

PC4

(PF1)

(PF1) (PTC XY33) XTAL32K2

(PF0)

(PF0) (PTC XY32) XTAL32K1

DEBUGGERAVR128DA48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

Touch

Shared pin

AVR128DA48Curiosity Nano

412 Using Pin HeadersThe edge connector footprint on AVR128DA48 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

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

AVR128DA48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 24

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

42 Peripherals

421 LEDThere is one yellow user LED available on the AVR128DA48 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 4-1 LED Connection

AVR128DA48 Pin Function Shared Functionality

PC6 Yellow LED0 Edge connector On-board debugger

422 Mechanical SwitchThe AVR128DA48 Curiosity Nano has one mechanical switch This is a generic user-configurable switch When theswitch 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 PC7

Table 4-2 Mechanical Switch

AVR128DA48 Pin Description Shared Functionality

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

423 Crystal

The AVR128DA48 Curiosity Nano board has a 32768 kHz crystal mounted

The AVR128DA48 is connected to the crystal by default but the GPIOs are also routed to the edge connectorthrough two solder points The two IO lines routed to the edge connector are disconnected by default to reduce thechance of an external signal causing contention with the crystal and to remove excessive capacitance on the linesTo use PF0 and PF1 as GPIO some hardware modifications are required

bull Disconnect the crystal by cutting the two straps on the top side of the board next to the crystal (J210 J211) Thecrystal 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 (J207 J208)

The cut straps and solder points can be seen in Figure 4-2

Table 4-3 Crystal Connections

AVR128DA48 Pin Function Shared Functionality

PF0 TOSC1 (Crystal input) Edge connector

PF1 TOSC2 (Crystal output) Edge connector

AVR128DA48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 25

Figure 4-2 Crystal Connection and Cut Straps

424 On-Board Debugger ImplementationAVR128DA48 Curiosity Nano features an on-board debugger that can be used to program and debug theAVR128DA48 using UPDI The on-board debugger also includes a virtual serial port (CDC) interface over UART anddebug GPIO Atmel StudioMicrochip MPLABreg X IDE 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

4241 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 31 On-Board DebuggerOverview

Table 4-4 On-Board Debugger Connections

AVR128DA48Pin

Debugger Pin Function Shared Functionality

RF1 CDC TX UART RX (AVR128DA48 RX line) Edge connector

RF0 CDC RX UART TX (AVR128DA48 TX line) Edge connector

UPDI DBG0 UPDI Edge connector

PC6 DBG1 GPIO1 Edge connector LED

PC7 DBG2 GPIO0 Edge connector Mechanical Switch

PF6 DBG3 RESET Edge connector

AVR128DA48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 26

5 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

51 Identifying Product ID and RevisionThe revision and product identifier of the AVR128DA48 Curiosity Nano Board can be found in two ways Either byutilizing the Atmel StudioMicrochip MPLABreg X IDE Kit Window or by looking at the sticker on the bottom side of thePCB

By connecting AVR128DA48 Curiosity Nano to a computer with Atmel StudioMicrochip MPLABreg X IDE running theKit Window will pop up The first six digits of the serial number which is listed under kit information contain theproduct identifier 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 AVR128DA48 Curiosity Nano is A09-3280

52 Revision 3Revision 3 is the initially released revision There are no known issues with this revision

AVR128DA48 Curiosity NanoHardware Revision History and Known Issues

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 27

6 Document Revision HistoryDoc rev Date Comment

A 032020 Initial document release

AVR128DA48 Curiosity NanoDocument Revision History

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 28

7 Appendix

71 SchematicFigure 7-1 AVR128DA48 Curiosity Nano Schematic

11

22

33

44

55

66

77

88

DD

CC

BB

AA

2 of

4

AVR1

28D

A48

Curio

sity

Nan

o

102

320

19AV

R128

DA

48_C

urio

sity

_Nan

o_Ta

rget

_MCU

Sch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA R

evisi

on

File

PC

B N

umbe

rPC

B Re

visio

n

Des

igne

d wi

th

Dra

wn

By

PB Shee

t Titl

eTa

rget

MCU

Engi

neer

A

H T

F

A08

-300

23

Size

A3

A09

-328

03

Page

D

ateA

ltium

com

GN

DV

CC_T

ARG

ET

100n

C201

GN

D

PA5_

SPI0

_MIS

OPA

6_SP

I0_S

CKPA

7_SP

I0_S

SPB

0_U

ART

3_TX

PB1_

UA

RT3_

RXPB

2PB

3PB

4PB

5PC

0_U

ART

1_TX

PC1_

UA

RT1_

RXPC

2_I2

C0_S

DA

PC3_I2C0_SCL

PC4PC5PC6_LED0_GPIO1PC7_SW0_GPIO0PD0_AIN0_WO0PD1_AIN1_WO1PD2_AIN2_WO2PD3_AIN3PD4_AIN4

PA3

PA1_UART0_RX

UPDI

PF5_UART2_RX

PF3

PF2

PF1_

TOSC

2PF

0_TO

SC1

PE3

PE2

PE1

PE0

PD5_

AIN

5PD

6_A

IN6

PD7_

AIN

7

GN

D

VCC

_TA

RGET

100n

C202

GN

DV

CC_T

ARG

ET10

0n

C200

PF1_TOSC2

PF0_TOSC1

PA2

PA0_UART0_TX

PF4_UART2_TX

PA4_SPI0_MOSI

GN

D

PA7_

SPI0

_SS

PA6_

SPI0

_SCK

PA5_

SPI0

_MIS

OPA

4_SP

I0_M

OSI

PA3

PA2

PA1_

UA

RT0_

RXPA

0_U

ART

0_TX

PB0_

UA

RT3_

TXPB

1_U

ART

3_RX

PB2

PB3

PB4

PB5

PD7_

AIN

7PD

6_A

IN6

PF5_

UA

RT2_

RXPF

4_U

ART

2_TX

PF3

PF2

32kH

z C

ryst

al

1kR203

USE

R L

ED

VCC

_TA

RGET

PF6_RESET

PC7_SW0_GPIO0

PC6_LED0_GPIO1

GN

D

USE

R B

UTT

ON

PE3

PE2

PE1

PE0

PC0_

UA

RT1_

TXPC

1_U

ART

1_RX

PC2_

I2C0

_SD

APC

3_I2

C0_S

CL

PC4

PC5

PC6_

LED

0_G

PIO

1PC

7_SW

0_G

PIO

0

1kR202

YELLOWLEDSML-D12Y1WT86

2 1D200

TS604VM1-035CR13

4 2

SW20

0

GN

DV

CC_E

DG

E

GN

DG

ND

GN

DG

ND

UPD

IPF

6_RE

SET

J207

J208

J209

BLM

18PG

471S

N1

L200

AVR1

28D

A48

22u

FC2

05

VCC

_ED

GE

GN

D

DBG0

CDC_

UART

TXRXU

ART

CDC_TXCDC_RX

DBG2

DBG1

DBG3

DBG2

DEB

UG

GER

CO

NN

ECTI

ON

S

DBG1

DBG3DBG0

VOFF

ID_S

YS

ID_SYS

VOFF

TAR

GET

BU

LK

VCC

_TA

RGET

RES

ET P

ull

VBU

S

CDC

RX3

CDC

TX4

DBG

15

DBG

26

0 TX

71

RX8

2 SD

A9

3 SC

L10

4 M

OSI

115

MIS

O12

6 SC

K13

7 SS

14G

ND

150

(TX

)16

1 (R

X)

172

183

190

20

GN

D24

DBG

354

DBG

053

GN

D52

VCC

51

PWM

346

AD

C 2

45A

DC

144

AD

C 0

43G

ND

42

438

434

GN

D33

AD

C 7

50A

DC

649

AD

C 5

48PW

M 4

47

DEB

UG

GER

TARG

ET

ID2

VO

FF55

121

222

323

025

126

227

328

429

530

631

732

535

636

737

539

640

741

RESE

RVED

1V

BUS

56

CNA

NO

56-p

in e

dge

conn

ecto

r

J200

J201

J203

J205

J206

J202

J204

PF1

PF0

PF1_

TOSC

2PF

0_TO

SC1

NC

J211

J210

XOUT

XIN

47kR200

AVR

128D

A48

UPD

I

GPI

O1

GPI

O0

RESE

T

DBG

0

DBG

1

DBG

2

DBG

3

Deb

ugge

r

CD

C T

X

CD

C R

X

UA

RT1

RX

UA

RT1

TX

VTG

18V

- 5

5VPC6

PC7

PF6

UPD

I

PC0

PC1

Nam

ePi

n

PA5

1PA

62

PA7

3PB

04

PB1

5PB

26

PB3

7PB

48

PB5

9PC

010

PC1

11PC

212

PC3 13VDD 14GND 15PC4 16PC5 17PC6 18PC7 19PD0 20PD1 21PD2 22PD3 23PD4 24

PD5

25PD

626

PD7

27AV

DD28

GND

29PE

030

PE1

31PE

232

PE3

33XT

AL32

K1P

F034

XTAL

32K2

PF1

35PF

236

PF337 PF438 PF539 PF640 UPDI41 VDD42 GND43 EXTCLKPA044 PA145 PA246 PA347 PA448

AVR1

28D

A48

TQ

FPU

200

PC0_

UA

RT1_

TXPC

1_U

ART

1_RX

PC6_

LED

0_G

PIO

1PC

7_SW

0_G

PIO

0

AVD

D

PD2_

AIN

2_W

O2

PD1_

AIN

1_W

O1

PD0_

AIN

0_W

O0

PD5_

AIN

5PD

4_A

IN4

PD3_

AIN

3

XC2

00

12p

C203

12p

C204

327

68 k

Hz

Crys

tal d

atas

heet

Cc

rysta

l = 9

pFm

ax E

SR =

70k

Ohm

Acc

urac

y plusmn2

0ppm

AVR1

28D

A48

dat

ashe

et

Cxin

= 4

1pF

Cxou

t = 6

0pF

Cl asymp

1( (

14

1pF)

+ (1

60

pF) )

asymp2

44pF

Max

imum

Loa

d =

125

pFM

axim

um E

SR =

80k

Ohm

Estim

ated

Cpc

b =

05p

F

Estim

ated

load

C =

2 (C

crys

tal-

Cpar

a - C

pcb)

C

= 2

(9pF

- 2

44pF

- 0

5pF)

C =

121

2pF

Sele

cted

in d

esig

n af

ter v

erifi

catio

nC=

12p

F12

pF

NO

TE o

n U

ART

CD

C

RXT

X o

n th

e he

ader

den

otes

the

inpu

tout

put d

irect

ion

of th

e sig

nal

resp

ectiv

e to

its

sour

ce

CDC

TX is

out

put f

rom

the

DEB

UG

GER

CD

C RX

is in

put t

o th

e D

EBU

GG

ER

TX is

out

put f

rom

the

TARG

ET d

evic

eRX

is in

put t

o th

e TA

RGET

dev

ice

NO

TE o

n I2

C

No

pull-

ups o

n bo

ard

Pul

l-ups

shou

ld b

e m

ount

ed c

lose

to sl

ave

devi

ce(s

)

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 29

11

22

33

44

55

66

77

88

DD

CC

BB

AA

3 of

4

AVR1

28D

A48

Curio

sity

Nan

o

102

320

19AV

R128

DA

48_C

urio

sity

_Nan

o_D

ebug

gerS

chD

oc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA R

evisi

on

File

PC

B N

umbe

rPC

B Re

visio

n

Des

igne

d wi

th

Dra

wn

By

PB Shee

t Titl

eD

ebug

ger

Engi

neer

A

H T

F

A08

-300

23

Size

A3

A09

-328

03

Page

D

ateA

ltium

com

DEB

UG

GER

USB

MIC

RO

-B C

ON

NEC

TOR

GN

D

USB

D_P

USB

D_N

100n

C107

100n

C108

RXTXU

ART

CDC_

UART

1kR1

07V

CC_P

3V3

SRST

STAT

US_

LED

SHIE

LD

VBU

S

VCC

_P3V

3G

ND

TP10

0

Testp

oint

Arra

y

12

34

56

78

910

TCK

TDO

TMS

Vsu

pTD

IG

ND

TRST

SRST

VTr

efG

ND

J102

GN

D

47u

F

C100

DBG0

DBG

0

21

GRE

EN L

EDSM

L-P1

2MTT

86R

D10

0

VBUS

1D-

2D+

3

GND

5SH

IELD

16

SHIE

LD2

7

ID4

SHIE

LD3

8SH

IELD

49 M

U-M

B014

2AB2

-269

J105

PAD

33

PA00

1PA

012

PA02

3PA

034

GND 10VDDANA 9

PA04

5PA

056

PA06

7PA

078

PA08 11PA09 12PA10 13PA11 14PA14 15PA15 16

PA16

17PA

1718

PA18

19PA

1920

PA22

21US

B_SO

FPA

2322

USB_

DMP

A24

23US

B_DP

PA2

524

PA2725 RESETN26 PA2827 GND28 VDDCORE29 VDDIN30 SWDCLKPA3031 SWDIOPA3132

SAM

D21

E18A

-MU

TU

100

VOUT

1

VOUT

2

GND 3

EN4

VIN

6

NC5

EP 7

MIC

5528

-33

YM

TU

101

VCC

_P3V

3

GN

D

USB

D_P

USB

D_N

GN

D

1uC106

VCC

_MCU

_CO

RE

VCC

_P3V

3

VCC

_P3V

3

22u

FC1

01

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

3V

CC_P

3V3

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

4V

CC_P

3V3

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

5V

CC_P

3V3

GN

D

GN

D GN

D

GN

D

VCC

_ED

GE

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

7V

CC_P

3V3

GN

DDB

G2

DBG

3_CT

RL

S1_0

_TX

S1_1

_RX

S0_2

_TX

DA

CV

TG_A

DC

RESE

RVED

S0_3

_CLK

DBG0_CTRL

CDC_

TX_C

TRL

BOO

T

DEB

UG

GER

PO

WER

STA

TUS

LED

EN1

BYP

6

VOUT

4

GND

2

VIN

3

NCA

DJ5

GND 7

MIC

5353

U10

2

100n

C102

GN

D

GN

D

47kR101

27kR104 G

ND

33k

R106

22u

F

C103 G

ND

1kR1

08

J100

VCC

_LEV

ELV

CC_R

EGU

LATO

R

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

6V

CC_P

3V3

GN

DDB

G1

CDC_

RXCD

C_TX

DBG3

DBG1_CTRL

DEB

UG

GER

REG

ULA

TOR

REG_ENABLE

REG

_EN

ABL

E

47kR103

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

47kR102

47kR105

SWCL

K

GN

D

47kR100 G

ND

DBG

2

S0_0

_RX

DBG

1_CT

RL

DBG

0_CT

RL

DBG

3 O

PEN

DR

AIN

TAR

GET

AD

JUST

ABL

E R

EGU

LATO

R

SRST

DEB

UG

GER

TES

TPO

INT DBG2_CTRL

VO

FFCD

C_RX

_CTR

L

47kR109

DBG

1

CDC_

TX_C

TRL

CDC_

RX_C

TRL

SWCL

K

REG_ADJUST

DBG2_GPIO

DBG

3_CT

RL

DBG

2_CT

RL

UPD

I

UPD

I

GPI

O

GPI

O

RESE

T

Sign

al

DBG

0

DBG

1

DBG

2

DBG

3

ICSP

Inte

rface

DAT

CLK

GPI

O

MCL

R

DBG

3

CD

C T

X

CD

C R

X

UA

RT R

X

UA

RT T

X

UA

RT R

X

UA

RT T

X

TAR

GET

TAR

GET

1kR1

10

VBUS_ADC

1

23

DM

N65

D8L

FBQ

101

VC

C-

-

ID_S

YS

VOFF

1kR112

VCC

_P3V

3

VTG

_AD

CD

AC

MIC

9416

3

VIN

B2VO

UTA1

VIN

A2

ENC2

GND

C1VO

UTB1

U10

8

GN

D

ID_S

YS

VTG

_EN

VTG_EN

VBUS_ADC

SWD

IO

ID_S

YS

TP10

1G

ND

SWD

IO

VO

FF

47kR111 G

ND

ID P

IN

MC3

6213

F100

VCC

_VBU

S

VCC

_VBU

S

VCC

_VBU

S

J101

VCC

_TA

RGET

47k

R113

Prog

ram

min

g co

nnec

tor f

or

fact

ory

prog

ram

min

g of

D

EBU

GG

ER

MIC

5528

Vi

n 2

5V

to 5

5V

Vout

Fix

ed 3

3V

Imax

500

mA

Dro

pout

260

mV

5

00m

A

PTC

Rese

ttabl

e fu

se

Hol

d cu

rrent

500

mA

Trip

cur

rent

100

0mA

Adj

usta

ble

outp

ut a

nd li

mita

tions

- T

he D

EBU

GG

ER c

an a

djus

t the

out

put v

olta

ge o

f the

regu

lato

r bet

wee

n 1

25V

and

51

V to

the

targ

et

- The

vol

tage

out

put i

s lim

ited

by th

e in

put (

USB

) w

hich

can

var

y be

twee

n 4

40V

to 5

25V

- The

leve

l shi

fters

hav

e a

min

imal

vol

tage

leve

l of 1

65V

and

will

lim

it th

e m

inim

um o

pera

ting

volta

ge a

llow

ed fo

r the

ta

rget

to st

ill a

llow

com

mun

icat

ion

- The

MIC

9416

3 ha

s a m

inim

al v

olta

ge le

vel o

f 17

0V a

nd w

ill li

mit

the

min

imum

vol

tage

del

iver

ed to

the

targ

et

- Firm

war

e co

nfig

urat

ion

will

lim

it th

e vo

ltage

rang

e to

be

with

in th

e th

e ta

rget

spec

ifica

tion

R113

is re

quire

d to

pul

l the

Q

101

gate

to a

def

ined

va

lue

whe

n th

e U

100

is no

t po

wer

ed

J100

Cu

t-stra

p us

ed fo

r ful

l sep

arat

ion

of ta

rget

pow

er fr

om th

e le

vel s

hifte

rs a

nd o

n-bo

ard

regu

lato

rs

- For

cur

rent

mea

sure

men

ts us

ing

an e

xter

nal p

ower

supp

ly t

his s

trap

coul

d be

cut

for m

ore

accu

rate

mea

sure

men

ts L

eaka

ge b

ack

thro

ugh

the

switc

h is

in th

e m

icro

am

pere

rang

e

J101

Th

is is

foot

prin

t for

a 1

x2 1

00m

il pi

tch

pin-

head

er th

at c

an b

e us

ed fo

r eas

y cu

rrent

mea

sure

men

t to

the

targ

et m

icro

cont

rolle

r and

the

LED

Bu

tton

To

use

the

foot

prin

t- C

ut th

e tra

ck b

etw

een

the

hole

s an

d m

ount

a p

in-h

eade

r

MIC

5353

Vi

n 2

6V

to 6

VVo

ut 1

25V

to 5

1V

Imax

500

mA

Dro

pout

(typ

ical

) 50

mV

15

0mA

160

mV

5

00m

AA

ccur

acy

2

initi

alTh

erm

al sh

utdo

wn

and

curre

nt li

mit

Max

imum

out

put v

olta

ge is

lim

ited

by th

e in

put v

olta

ge a

nd th

e dr

opou

t vol

tage

in th

e re

gula

tor

(Vm

ax =

Vin

- dr

opou

t)

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 30

72 Assembly DrawingFigure 7-2 AVR128DA48 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

PAC20002 PAC20001 COC200

PAC20102 PAC20101 COC201

PAC20202 PAC20201 COC202

PAC20301 PAC20302 COC203

PAC20401 PAC20402 COC204

PAC20502

PAC20501 COC205

PAD10002 PAD10001 COD100

PAD20001

PAD20002 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

PAJ20701 PAJ20702 PAJ20705 COJ207

PAJ20801 PAJ20802 PAJ20805 COJ208

PAJ20901 PAJ20902 COJ209

PAJ21002 PAJ21001 COJ210

PAJ21102 PAJ21101 COJ211

PAL20002 PAL20001 COL200

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

PAR20002 PAR20001 COR200

PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203

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

PAU200048 PAU200047 PAU200046 PAU200045 PAU200044 PAU200043 PAU200042 PAU200041 PAU200040 PAU200039 PAU200038 PAU200037 PAU200036 PAU200035 PAU200034 PAU200033 PAU200032 PAU200031 PAU200030 PAU200029 PAU200028 PAU200027 PAU200026 PAU200025 PAU200024 PAU200023 PAU200022 PAU200021 PAU200020 PAU200019 PAU200018 PAU200017 PAU200016 PAU200015 PAU200014 PAU200013

PAU200012 PAU200011 PAU200010 PAU20009 PAU20008 PAU20007 PAU20006 PAU20005 PAU20004 PAU20003 PAU20002 PAU20001

COU200

PAXC20001

PAXC20002

COXC200

Figure 7-3 AVR128DA48 Curiosity Nano Assembly Drawing Bottom

ctR

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20002 PAC20001 COC200

PAC20102 PAC20101 COC201

PAC20202 PAC20201 COC202

PAC20301 PAC20302 COC203

PAC20401 PAC20402 COC204

PAC20502

PAC20501 COC205

PAD10002 PAD10001 COD100

PAD20001

PAD20002 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

PAJ20701 PAJ20702 PAJ20705 COJ207

PAJ20801 PAJ20802 PAJ20805 COJ208

PAJ20901 PAJ20902 COJ209

PAJ21002 PAJ21001 COJ210

PAJ21102 PAJ21101 COJ211

PAL20002 PAL20001 COL200

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

PAR20002 PAR20001 COR200

PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203

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

PAU200048 PAU200047 PAU200046 PAU200045 PAU200044 PAU200043 PAU200042 PAU200041 PAU200040 PAU200039 PAU200038 PAU200037 PAU200036 PAU200035 PAU200034 PAU200033 PAU200032 PAU200031 PAU200030 PAU200029 PAU200028 PAU200027 PAU200026 PAU200025 PAU200024 PAU200023 PAU200022 PAU200021 PAU200020 PAU200019 PAU200018 PAU200017 PAU200016 PAU200015 PAU200014 PAU200013

PAU200012 PAU200011 PAU200010 PAU20009 PAU20008 PAU20007 PAU20006 PAU20005 PAU20004 PAU20003 PAU20002 PAU20001

COU200

PAXC20001

PAXC20002

COXC200

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 31

73 Curiosity Nano Base for Click boardstrade

Figure 7-4 AVR128DA48 Curiosity Nano Pinout Mapping

USB

DEB

UG

GER

AVR1

28D

A48

SW0

LED

0

PS L

EDNC

NC

ID

ID

CDC RX

CDCRX

USART1 TX

PC0

CDC TX

CDCTX

USART1 RX

PC1

DBG1

DBG1

PC6

LED0

DBG2

DBG2

PC7

SW0

PA0

PA0

USART0 TX

PTC XY0

PA1

PA1

USART0 RX

PTC XY1

PC2

PC2

TWI0 SDA

PC3

PC3

TWI0 SCL

PA4

PA4

SPI0 MOSI

PTC XY4

PA5

PA5

SPI0 MISO

PTC XY5

PA6

PA6

SPI0 SCK

PTC XY6

PA7

PA7

SPI0 SS

PTC XY7

GND

GND

PF4

PF4

USART2 TX

PTC XY36

PF5

PF5

USART2 RX

PTC XY37

PF2

PF2

PTC XY34

PF3

PF3

PTC XY35

PB0

PB0

PTC XY8

PB1

PB1

PTC XY9

PB2

PB2

PTC XY10

PB3

PB3

PTC XY11

GND

GND

PC0

PC0

USART1 TX

CDC RX

PC1

PC1

USART1 RX

CDC TX

PC6

PC6

LED0

PC7

PC7

SW0

VBUS

VBUS

VOFF

VOFF

DBG3

DBG3

PF6

DBG0

DBG0

UPDI

GND

GND

VTG

VTG

PD7

PD7

AIN7

PTC XY23

PD6

PD6

AIN6

PTC XY22

PD2

PD2

AIN2

PTC XY18

TCA0 WO2

PD1

PD1

AIN1

PTC XY17

TCA0 WO1

PD0

PD0

AIN0

PTC XY16

TCA0 WO0

PD5

PD5

AIN5

PTC XY21

PD4

PD4

AIN4

PTC XY20

PD3

PD3

AIN3

PTC XY19

GND

GND

PE3

PE3

PTC XY27

PE2

PE2

PTC XY26

PE1

PE1

PTC XY25

PE0

PE0

PTC XY24

PA3

PA3

PTC XY3

PA2

PA2

PTC XY2

PB5

PB5

PTC XY13

PB4

PB4

PTC XY12

GND

GND

PC5

PC5

PC4

PC4

(PF1)

(PF1)

(PTC XY33)

XTAL32K2

(PF0)

(PF0)

(PTC XY32)

XTAL32K1

DEB

UG

GER

AVR1

28D

A48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

Touch

Shared pin

AVR1

28D

A48

Curio

sity

Nan

o

1

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

2

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

3

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

Xpl

aine

d Pr

o Ex

tens

ion

EXT1

12

1920

Curio

sity

Nan

o Ba

sefo

r clic

k bo

ards

TM

PD3

PD0

PD7

PD6

PA7

PA1

PA6

PA0

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

PD4

PD1

PF3

PF2

PE2

PF5

PA6

PF4

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

PD5

PD2

PE1

PE0

PE3

PA1

PA6

PA0

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

ID

GND

PD4

PD5

PF3

PE1

PD1

PD2

PF2

PE3

PC2

PC3

PF5

PF4

PE2

PA4

PA5

PA6

GND

+33V

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 32

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

The block diagram below shows all connections between the debugger and the AVR128DA48 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 7-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 7-6 Details about connecting an external debugger are described in 36 Connecting ExternalDebuggers

Figure 7-5  On-Board Debugger Connections Block Diagram

DEB

UG

GER

TARGETLevel-Shift

PA04PA06PA07PA08PA16PA00PA01

USB

DIR x 5

VCC_P3V3

VBUS

VCC

_LEV

EL

VCC

_TA

RGET

DBG0DBG1DBG2DBG3CDC 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

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 33

Figure 7-6 On-Board Debugger Connection Cut Straps

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

75 Getting Started with IARIAR Embedded Workbenchreg for AVRreg is a proprietary high-efficiency compiler not based on GCC Programming anddebugging of AVR128DA48 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 7-73 In the category Debugger select the Setup tab Select Atmel-ICE as the driver as shown in Figure 7-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 7-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

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 34

Figure 7-7 Select Target Device

Figure 7-8 Select Debugger

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 35

Figure 7-9 Configure Interface

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 36

The Microchip WebsiteMicrochip provides online support via our website at httpwwwmicrochipcom This website is used to make filesand information 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 ServiceMicrochiprsquos 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 httpwwwmicrochipcompcn and follow the registration instructions

Customer SupportUsers 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 httpwwwmicrochipcomsupport

Microchip Devices Code Protection FeatureNote the following details of the code protection feature on Microchip devices

bull Microchip products meet the specification contained in their particular Microchip Data Sheetbull Microchip believes that its family of products is one of the most secure families of its kind on the market today

when used in the intended manner and under normal conditionsbull There are dishonest and possibly illegal methods used to breach the code protection feature All of these

methods to our knowledge require using the Microchip products in a manner outside the operatingspecifications contained in Microchiprsquos Data Sheets Most likely the person doing so is engaged in theft ofintellectual property

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

protection does not mean that we are guaranteeing the product as ldquounbreakablerdquo

Code protection is constantly evolving We at Microchip are committed to continuously improving the code protectionfeatures of our products Attempts to break Microchiprsquos code protection feature may be a violation of the DigitalMillennium Copyright Act If such acts allow unauthorized access to your software or other copyrighted work youmay have a right to sue for relief under that Act

Legal NoticeInformation contained in this publication regarding device applications and the like is provided only for yourconvenience and may be superseded by updates It is your responsibility to ensure that your application meets with

AVR128DA48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 37

your specifications MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHEREXPRESS OR IMPLIED WRITTEN OR ORAL STATUTORY OR OTHERWISE RELATED TO THE INFORMATIONINCLUDING BUT NOT LIMITED TO ITS CONDITION QUALITY PERFORMANCE MERCHANTABILITY ORFITNESS FOR PURPOSE Microchip disclaims all liability arising from this information and its use Use of Microchipdevices in life support andor safety applications is entirely at the buyerrsquos risk and the buyer agrees to defendindemnify and hold harmless Microchip from any and all damages claims suits or expenses resulting from suchuse No licenses are conveyed implicitly or otherwise under any Microchip intellectual property rights unlessotherwise stated

TrademarksThe 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-5760-2

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

AVR128DA48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 38

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupporthttpwwwmicrochipcomsupportWeb AddresshttpwwwmicrochipcomAtlantaDuluth 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 DS50002971A-page 39

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Kit Overview
      • 2 Getting Started
        • 21 Quick Start
        • 22 Design Documentation and Relevant Links
          • 3 Curiosity Nano
            • 31 On-Board Debugger Overview
              • 311 Debugger
              • 312 Virtual Serial Port (CDC)
                • 3121 Overview
                • 3122 Operating System Support
                • 3123 Limitations
                • 3124 Signaling
                • 3125 Advanced Use
                  • 313 Mass Storage Device
                    • 3131 Mass Storage Device Implementation
                    • 3132 Fuse Bytes
                    • 3133 Limitations of Drag-and-Drop Programming
                    • 3134 Special Commands
                      • 314 Data Gateway Interface (DGI)
                        • 3141 Debug GPIO
                        • 3142 Timestamping
                            • 32 Curiosity Nano Standard Pinout
                            • 33 Power Supply
                              • 331 Target Regulator
                              • 332 External Supply
                              • 333 VBUS Output Pin
                              • 334 Power Supply Exceptions
                                • 34 Low Power Measurement
                                • 35 Programming External Microcontrollers
                                  • 351 Supported Devices
                                  • 352 Software Configuration
                                  • 353 Hardware Modifications
                                  • 354 Connecting to External Microcontrollers
                                    • 36 Connecting External Debuggers
                                      • 4 Hardware User Guide
                                        • 41 Connectors
                                          • 411 AVR128DA48 Curiosity Nano Pinout
                                          • 412 Using Pin Headers
                                            • 42 Peripherals
                                              • 421 LED
                                              • 422 Mechanical Switch
                                              • 423 Crystal
                                              • 424 On-Board Debugger Implementation
                                                • 4241 On-Board Debugger Connections
                                                  • 5 Hardware Revision History and Known Issues
                                                    • 51 Identifying Product ID and Revision
                                                    • 52 Revision 3
                                                      • 6 Document Revision History
                                                      • 7 Appendix
                                                        • 71 Schematic
                                                        • 72 Assembly Drawing
                                                        • 73 Curiosity Nano Base for Click boardstrade
                                                        • 74 Disconnecting the On-board Debugger
                                                        • 75 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: AVR128DA48 Curiosity Nano User Guide - Microchip Technologyww1.microchip.com/downloads/en/DeviceDoc/AVR128DA48... · 2020-03-19 · AVR128DA48 Curiosity Nano AVR128DA48 Curiosity

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 differ more than 100 mV overunder the voltage setting it will be detected by the on-board debugger and theinternal voltage regulator will be shut down To fix this issue remove the applied voltage from the VTG pin and theon-board debugger will enable the on-board voltage regulator when the new condition is detected Note that the PSLED will be blinking rapidly if the target voltage is below 100 mV of the setting but will be lit normally when it is higherthan 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 really a special case of the issue mentioned above Removethe short-circuit and the on-board debugger will re-enable the on-board target voltage regulator

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

34 Low Power MeasurementPower to the AVR128DA48 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 AVR128DA48 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 AVR128DA48

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 17

Figure 3-7 Target Power Strap

Target Power strap (top side)

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 are tri-state to prevent leakage All IOs connected to the on-boarddebugger are listed in 4241 On-Board Debugger Connections To prevent any leakage to the on-boardlevel shifters they can be disconnected completely as described in 74 Disconnecting the On-boardDebugger

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

351 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

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

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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 18

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

Figure 3-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

353 Hardware ModificationsThe on-board debugger is connected to the AVR128DA48 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 AVR128DA48 from the on-board debugger

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 19

Figure 3-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 AVR128DA48 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 AVR128DA48

354 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 33 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

AVR128DA48 Curiosity Nano has a pull-up resistor R200 connected to its RESET signal (DBG3) The location ofthe pull-up resistor is shown in the 72 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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 20

Figure 3-10 Curiosity Nano Standard Pinout

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

Table 3-4 Programming and Debugging Interfaces

Curiosity Nano Pin UPDI ICSPtrade SWD

DBG0 UPDI DATA SWDIO

DBG1 - CLK SWCLK

DBG2 - - -

DBG3 - MCLR RESET

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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 21

Figure 3-11 Connecting the MPLABreg PICkittrade 4 In-Circuit DebuggerProgrammer to AVR128DA48 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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 22

Figure 3-12 Connecting the Atmel-ICE to AVR128DA48 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 Atmel StudioMicrochip MPLABreg XIDE or mass storage programming while the external tool is active

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 23

4 Hardware User Guide

41 Connectors

411 AVR128DA48 Curiosity Nano PinoutAll the AVR128DA48 IO pins are accessible at the edge connectors on the board The image below shows the boardpinout

Figure 4-1 AVR128DA48 Curiosity Nano Pinout

USB

DEBUGGER

AVR128DA48

SW0

LED0

PS LEDNC

NC

ID

ID

CDC RX

CDCRXUSART1 TXPC0

CDC TX

CDCTXUSART1 RXPC1

DBG1

DBG

1PC6LED0

DBG2

DBG

2PC7SW0

PA0

PA0USART0 TXPTC XY0

PA1PA

1USART0 RXPTC XY1

PC2PC2TWI0 SDA

PC3

PC3TWI0 SCL

PA4

PA4SPI0 MOSIPTC XY4

PA5

PA5SPI0 MISOPTC XY5

PA6

PA6SPI0 SCKPTC XY6

PA7

PA7SPI0 SSPTC XY7

GND

GN

D

PF4

PF4USART2 TXPTC XY36

PF5

PF5USART2 RXPTC XY37

PF2

PF2PTC XY34

PF3

PF3PTC XY35

PB0

PB0PTC XY8

PB1

PB1PTC XY9

PB2

PB2PTC XY10

PB3

PB3PTC XY11

GND

GN

D

PC0

PC0USART1 TXCDC RX

PC1

PC1USART1 RXCDC TX

PC6

PC6LED0

PC7

PC7SW0

VBUS

VBU

S

VOFF

VO

FFDBG3

DBG

3 PF6

DBG0D

BG0 UPDI

GND

GN

D

VTG

VTG

PD7

PD7 AIN7 PTC XY23

PD6

PD6 AIN6 PTC XY22

PD2

PD2 AIN2 PTC XY18 TCA0 WO2

PD1

PD1 AIN1 PTC XY17 TCA0 WO1

PD0

PD0 AIN0 PTC XY16 TCA0 WO0

PD5

PD5 AIN5 PTC XY21

PD4

PD4 AIN4 PTC XY20

PD3

PD3 AIN3 PTC XY19

GND

GN

D

PE3

PE3 PTC XY27

PE2

PE2 PTC XY26

PE1

PE1 PTC XY25

PE0

PE0 PTC XY24

PA3

PA3 PTC XY3

PA2

PA2 PTC XY2

PB5

PB5 PTC XY13

PB4

PB4 PTC XY12

GND

GN

D

PC5

PC5

PC4

PC4

(PF1)

(PF1) (PTC XY33) XTAL32K2

(PF0)

(PF0) (PTC XY32) XTAL32K1

DEBUGGERAVR128DA48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

Touch

Shared pin

AVR128DA48Curiosity Nano

412 Using Pin HeadersThe edge connector footprint on AVR128DA48 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

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

AVR128DA48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 24

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

42 Peripherals

421 LEDThere is one yellow user LED available on the AVR128DA48 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 4-1 LED Connection

AVR128DA48 Pin Function Shared Functionality

PC6 Yellow LED0 Edge connector On-board debugger

422 Mechanical SwitchThe AVR128DA48 Curiosity Nano has one mechanical switch This is a generic user-configurable switch When theswitch 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 PC7

Table 4-2 Mechanical Switch

AVR128DA48 Pin Description Shared Functionality

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

423 Crystal

The AVR128DA48 Curiosity Nano board has a 32768 kHz crystal mounted

The AVR128DA48 is connected to the crystal by default but the GPIOs are also routed to the edge connectorthrough two solder points The two IO lines routed to the edge connector are disconnected by default to reduce thechance of an external signal causing contention with the crystal and to remove excessive capacitance on the linesTo use PF0 and PF1 as GPIO some hardware modifications are required

bull Disconnect the crystal by cutting the two straps on the top side of the board next to the crystal (J210 J211) Thecrystal 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 (J207 J208)

The cut straps and solder points can be seen in Figure 4-2

Table 4-3 Crystal Connections

AVR128DA48 Pin Function Shared Functionality

PF0 TOSC1 (Crystal input) Edge connector

PF1 TOSC2 (Crystal output) Edge connector

AVR128DA48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 25

Figure 4-2 Crystal Connection and Cut Straps

424 On-Board Debugger ImplementationAVR128DA48 Curiosity Nano features an on-board debugger that can be used to program and debug theAVR128DA48 using UPDI The on-board debugger also includes a virtual serial port (CDC) interface over UART anddebug GPIO Atmel StudioMicrochip MPLABreg X IDE 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

4241 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 31 On-Board DebuggerOverview

Table 4-4 On-Board Debugger Connections

AVR128DA48Pin

Debugger Pin Function Shared Functionality

RF1 CDC TX UART RX (AVR128DA48 RX line) Edge connector

RF0 CDC RX UART TX (AVR128DA48 TX line) Edge connector

UPDI DBG0 UPDI Edge connector

PC6 DBG1 GPIO1 Edge connector LED

PC7 DBG2 GPIO0 Edge connector Mechanical Switch

PF6 DBG3 RESET Edge connector

AVR128DA48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 26

5 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

51 Identifying Product ID and RevisionThe revision and product identifier of the AVR128DA48 Curiosity Nano Board can be found in two ways Either byutilizing the Atmel StudioMicrochip MPLABreg X IDE Kit Window or by looking at the sticker on the bottom side of thePCB

By connecting AVR128DA48 Curiosity Nano to a computer with Atmel StudioMicrochip MPLABreg X IDE running theKit Window will pop up The first six digits of the serial number which is listed under kit information contain theproduct identifier 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 AVR128DA48 Curiosity Nano is A09-3280

52 Revision 3Revision 3 is the initially released revision There are no known issues with this revision

AVR128DA48 Curiosity NanoHardware Revision History and Known Issues

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 27

6 Document Revision HistoryDoc rev Date Comment

A 032020 Initial document release

AVR128DA48 Curiosity NanoDocument Revision History

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 28

7 Appendix

71 SchematicFigure 7-1 AVR128DA48 Curiosity Nano Schematic

11

22

33

44

55

66

77

88

DD

CC

BB

AA

2 of

4

AVR1

28D

A48

Curio

sity

Nan

o

102

320

19AV

R128

DA

48_C

urio

sity

_Nan

o_Ta

rget

_MCU

Sch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA R

evisi

on

File

PC

B N

umbe

rPC

B Re

visio

n

Des

igne

d wi

th

Dra

wn

By

PB Shee

t Titl

eTa

rget

MCU

Engi

neer

A

H T

F

A08

-300

23

Size

A3

A09

-328

03

Page

D

ateA

ltium

com

GN

DV

CC_T

ARG

ET

100n

C201

GN

D

PA5_

SPI0

_MIS

OPA

6_SP

I0_S

CKPA

7_SP

I0_S

SPB

0_U

ART

3_TX

PB1_

UA

RT3_

RXPB

2PB

3PB

4PB

5PC

0_U

ART

1_TX

PC1_

UA

RT1_

RXPC

2_I2

C0_S

DA

PC3_I2C0_SCL

PC4PC5PC6_LED0_GPIO1PC7_SW0_GPIO0PD0_AIN0_WO0PD1_AIN1_WO1PD2_AIN2_WO2PD3_AIN3PD4_AIN4

PA3

PA1_UART0_RX

UPDI

PF5_UART2_RX

PF3

PF2

PF1_

TOSC

2PF

0_TO

SC1

PE3

PE2

PE1

PE0

PD5_

AIN

5PD

6_A

IN6

PD7_

AIN

7

GN

D

VCC

_TA

RGET

100n

C202

GN

DV

CC_T

ARG

ET10

0n

C200

PF1_TOSC2

PF0_TOSC1

PA2

PA0_UART0_TX

PF4_UART2_TX

PA4_SPI0_MOSI

GN

D

PA7_

SPI0

_SS

PA6_

SPI0

_SCK

PA5_

SPI0

_MIS

OPA

4_SP

I0_M

OSI

PA3

PA2

PA1_

UA

RT0_

RXPA

0_U

ART

0_TX

PB0_

UA

RT3_

TXPB

1_U

ART

3_RX

PB2

PB3

PB4

PB5

PD7_

AIN

7PD

6_A

IN6

PF5_

UA

RT2_

RXPF

4_U

ART

2_TX

PF3

PF2

32kH

z C

ryst

al

1kR203

USE

R L

ED

VCC

_TA

RGET

PF6_RESET

PC7_SW0_GPIO0

PC6_LED0_GPIO1

GN

D

USE

R B

UTT

ON

PE3

PE2

PE1

PE0

PC0_

UA

RT1_

TXPC

1_U

ART

1_RX

PC2_

I2C0

_SD

APC

3_I2

C0_S

CL

PC4

PC5

PC6_

LED

0_G

PIO

1PC

7_SW

0_G

PIO

0

1kR202

YELLOWLEDSML-D12Y1WT86

2 1D200

TS604VM1-035CR13

4 2

SW20

0

GN

DV

CC_E

DG

E

GN

DG

ND

GN

DG

ND

UPD

IPF

6_RE

SET

J207

J208

J209

BLM

18PG

471S

N1

L200

AVR1

28D

A48

22u

FC2

05

VCC

_ED

GE

GN

D

DBG0

CDC_

UART

TXRXU

ART

CDC_TXCDC_RX

DBG2

DBG1

DBG3

DBG2

DEB

UG

GER

CO

NN

ECTI

ON

S

DBG1

DBG3DBG0

VOFF

ID_S

YS

ID_SYS

VOFF

TAR

GET

BU

LK

VCC

_TA

RGET

RES

ET P

ull

VBU

S

CDC

RX3

CDC

TX4

DBG

15

DBG

26

0 TX

71

RX8

2 SD

A9

3 SC

L10

4 M

OSI

115

MIS

O12

6 SC

K13

7 SS

14G

ND

150

(TX

)16

1 (R

X)

172

183

190

20

GN

D24

DBG

354

DBG

053

GN

D52

VCC

51

PWM

346

AD

C 2

45A

DC

144

AD

C 0

43G

ND

42

438

434

GN

D33

AD

C 7

50A

DC

649

AD

C 5

48PW

M 4

47

DEB

UG

GER

TARG

ET

ID2

VO

FF55

121

222

323

025

126

227

328

429

530

631

732

535

636

737

539

640

741

RESE

RVED

1V

BUS

56

CNA

NO

56-p

in e

dge

conn

ecto

r

J200

J201

J203

J205

J206

J202

J204

PF1

PF0

PF1_

TOSC

2PF

0_TO

SC1

NC

J211

J210

XOUT

XIN

47kR200

AVR

128D

A48

UPD

I

GPI

O1

GPI

O0

RESE

T

DBG

0

DBG

1

DBG

2

DBG

3

Deb

ugge

r

CD

C T

X

CD

C R

X

UA

RT1

RX

UA

RT1

TX

VTG

18V

- 5

5VPC6

PC7

PF6

UPD

I

PC0

PC1

Nam

ePi

n

PA5

1PA

62

PA7

3PB

04

PB1

5PB

26

PB3

7PB

48

PB5

9PC

010

PC1

11PC

212

PC3 13VDD 14GND 15PC4 16PC5 17PC6 18PC7 19PD0 20PD1 21PD2 22PD3 23PD4 24

PD5

25PD

626

PD7

27AV

DD28

GND

29PE

030

PE1

31PE

232

PE3

33XT

AL32

K1P

F034

XTAL

32K2

PF1

35PF

236

PF337 PF438 PF539 PF640 UPDI41 VDD42 GND43 EXTCLKPA044 PA145 PA246 PA347 PA448

AVR1

28D

A48

TQ

FPU

200

PC0_

UA

RT1_

TXPC

1_U

ART

1_RX

PC6_

LED

0_G

PIO

1PC

7_SW

0_G

PIO

0

AVD

D

PD2_

AIN

2_W

O2

PD1_

AIN

1_W

O1

PD0_

AIN

0_W

O0

PD5_

AIN

5PD

4_A

IN4

PD3_

AIN

3

XC2

00

12p

C203

12p

C204

327

68 k

Hz

Crys

tal d

atas

heet

Cc

rysta

l = 9

pFm

ax E

SR =

70k

Ohm

Acc

urac

y plusmn2

0ppm

AVR1

28D

A48

dat

ashe

et

Cxin

= 4

1pF

Cxou

t = 6

0pF

Cl asymp

1( (

14

1pF)

+ (1

60

pF) )

asymp2

44pF

Max

imum

Loa

d =

125

pFM

axim

um E

SR =

80k

Ohm

Estim

ated

Cpc

b =

05p

F

Estim

ated

load

C =

2 (C

crys

tal-

Cpar

a - C

pcb)

C

= 2

(9pF

- 2

44pF

- 0

5pF)

C =

121

2pF

Sele

cted

in d

esig

n af

ter v

erifi

catio

nC=

12p

F12

pF

NO

TE o

n U

ART

CD

C

RXT

X o

n th

e he

ader

den

otes

the

inpu

tout

put d

irect

ion

of th

e sig

nal

resp

ectiv

e to

its

sour

ce

CDC

TX is

out

put f

rom

the

DEB

UG

GER

CD

C RX

is in

put t

o th

e D

EBU

GG

ER

TX is

out

put f

rom

the

TARG

ET d

evic

eRX

is in

put t

o th

e TA

RGET

dev

ice

NO

TE o

n I2

C

No

pull-

ups o

n bo

ard

Pul

l-ups

shou

ld b

e m

ount

ed c

lose

to sl

ave

devi

ce(s

)

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 29

11

22

33

44

55

66

77

88

DD

CC

BB

AA

3 of

4

AVR1

28D

A48

Curio

sity

Nan

o

102

320

19AV

R128

DA

48_C

urio

sity

_Nan

o_D

ebug

gerS

chD

oc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA R

evisi

on

File

PC

B N

umbe

rPC

B Re

visio

n

Des

igne

d wi

th

Dra

wn

By

PB Shee

t Titl

eD

ebug

ger

Engi

neer

A

H T

F

A08

-300

23

Size

A3

A09

-328

03

Page

D

ateA

ltium

com

DEB

UG

GER

USB

MIC

RO

-B C

ON

NEC

TOR

GN

D

USB

D_P

USB

D_N

100n

C107

100n

C108

RXTXU

ART

CDC_

UART

1kR1

07V

CC_P

3V3

SRST

STAT

US_

LED

SHIE

LD

VBU

S

VCC

_P3V

3G

ND

TP10

0

Testp

oint

Arra

y

12

34

56

78

910

TCK

TDO

TMS

Vsu

pTD

IG

ND

TRST

SRST

VTr

efG

ND

J102

GN

D

47u

F

C100

DBG0

DBG

0

21

GRE

EN L

EDSM

L-P1

2MTT

86R

D10

0

VBUS

1D-

2D+

3

GND

5SH

IELD

16

SHIE

LD2

7

ID4

SHIE

LD3

8SH

IELD

49 M

U-M

B014

2AB2

-269

J105

PAD

33

PA00

1PA

012

PA02

3PA

034

GND 10VDDANA 9

PA04

5PA

056

PA06

7PA

078

PA08 11PA09 12PA10 13PA11 14PA14 15PA15 16

PA16

17PA

1718

PA18

19PA

1920

PA22

21US

B_SO

FPA

2322

USB_

DMP

A24

23US

B_DP

PA2

524

PA2725 RESETN26 PA2827 GND28 VDDCORE29 VDDIN30 SWDCLKPA3031 SWDIOPA3132

SAM

D21

E18A

-MU

TU

100

VOUT

1

VOUT

2

GND 3

EN4

VIN

6

NC5

EP 7

MIC

5528

-33

YM

TU

101

VCC

_P3V

3

GN

D

USB

D_P

USB

D_N

GN

D

1uC106

VCC

_MCU

_CO

RE

VCC

_P3V

3

VCC

_P3V

3

22u

FC1

01

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

3V

CC_P

3V3

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

4V

CC_P

3V3

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

5V

CC_P

3V3

GN

D

GN

D GN

D

GN

D

VCC

_ED

GE

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

7V

CC_P

3V3

GN

DDB

G2

DBG

3_CT

RL

S1_0

_TX

S1_1

_RX

S0_2

_TX

DA

CV

TG_A

DC

RESE

RVED

S0_3

_CLK

DBG0_CTRL

CDC_

TX_C

TRL

BOO

T

DEB

UG

GER

PO

WER

STA

TUS

LED

EN1

BYP

6

VOUT

4

GND

2

VIN

3

NCA

DJ5

GND 7

MIC

5353

U10

2

100n

C102

GN

D

GN

D

47kR101

27kR104 G

ND

33k

R106

22u

F

C103 G

ND

1kR1

08

J100

VCC

_LEV

ELV

CC_R

EGU

LATO

R

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

6V

CC_P

3V3

GN

DDB

G1

CDC_

RXCD

C_TX

DBG3

DBG1_CTRL

DEB

UG

GER

REG

ULA

TOR

REG_ENABLE

REG

_EN

ABL

E

47kR103

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

47kR102

47kR105

SWCL

K

GN

D

47kR100 G

ND

DBG

2

S0_0

_RX

DBG

1_CT

RL

DBG

0_CT

RL

DBG

3 O

PEN

DR

AIN

TAR

GET

AD

JUST

ABL

E R

EGU

LATO

R

SRST

DEB

UG

GER

TES

TPO

INT DBG2_CTRL

VO

FFCD

C_RX

_CTR

L

47kR109

DBG

1

CDC_

TX_C

TRL

CDC_

RX_C

TRL

SWCL

K

REG_ADJUST

DBG2_GPIO

DBG

3_CT

RL

DBG

2_CT

RL

UPD

I

UPD

I

GPI

O

GPI

O

RESE

T

Sign

al

DBG

0

DBG

1

DBG

2

DBG

3

ICSP

Inte

rface

DAT

CLK

GPI

O

MCL

R

DBG

3

CD

C T

X

CD

C R

X

UA

RT R

X

UA

RT T

X

UA

RT R

X

UA

RT T

X

TAR

GET

TAR

GET

1kR1

10

VBUS_ADC

1

23

DM

N65

D8L

FBQ

101

VC

C-

-

ID_S

YS

VOFF

1kR112

VCC

_P3V

3

VTG

_AD

CD

AC

MIC

9416

3

VIN

B2VO

UTA1

VIN

A2

ENC2

GND

C1VO

UTB1

U10

8

GN

D

ID_S

YS

VTG

_EN

VTG_EN

VBUS_ADC

SWD

IO

ID_S

YS

TP10

1G

ND

SWD

IO

VO

FF

47kR111 G

ND

ID P

IN

MC3

6213

F100

VCC

_VBU

S

VCC

_VBU

S

VCC

_VBU

S

J101

VCC

_TA

RGET

47k

R113

Prog

ram

min

g co

nnec

tor f

or

fact

ory

prog

ram

min

g of

D

EBU

GG

ER

MIC

5528

Vi

n 2

5V

to 5

5V

Vout

Fix

ed 3

3V

Imax

500

mA

Dro

pout

260

mV

5

00m

A

PTC

Rese

ttabl

e fu

se

Hol

d cu

rrent

500

mA

Trip

cur

rent

100

0mA

Adj

usta

ble

outp

ut a

nd li

mita

tions

- T

he D

EBU

GG

ER c

an a

djus

t the

out

put v

olta

ge o

f the

regu

lato

r bet

wee

n 1

25V

and

51

V to

the

targ

et

- The

vol

tage

out

put i

s lim

ited

by th

e in

put (

USB

) w

hich

can

var

y be

twee

n 4

40V

to 5

25V

- The

leve

l shi

fters

hav

e a

min

imal

vol

tage

leve

l of 1

65V

and

will

lim

it th

e m

inim

um o

pera

ting

volta

ge a

llow

ed fo

r the

ta

rget

to st

ill a

llow

com

mun

icat

ion

- The

MIC

9416

3 ha

s a m

inim

al v

olta

ge le

vel o

f 17

0V a

nd w

ill li

mit

the

min

imum

vol

tage

del

iver

ed to

the

targ

et

- Firm

war

e co

nfig

urat

ion

will

lim

it th

e vo

ltage

rang

e to

be

with

in th

e th

e ta

rget

spec

ifica

tion

R113

is re

quire

d to

pul

l the

Q

101

gate

to a

def

ined

va

lue

whe

n th

e U

100

is no

t po

wer

ed

J100

Cu

t-stra

p us

ed fo

r ful

l sep

arat

ion

of ta

rget

pow

er fr

om th

e le

vel s

hifte

rs a

nd o

n-bo

ard

regu

lato

rs

- For

cur

rent

mea

sure

men

ts us

ing

an e

xter

nal p

ower

supp

ly t

his s

trap

coul

d be

cut

for m

ore

accu

rate

mea

sure

men

ts L

eaka

ge b

ack

thro

ugh

the

switc

h is

in th

e m

icro

am

pere

rang

e

J101

Th

is is

foot

prin

t for

a 1

x2 1

00m

il pi

tch

pin-

head

er th

at c

an b

e us

ed fo

r eas

y cu

rrent

mea

sure

men

t to

the

targ

et m

icro

cont

rolle

r and

the

LED

Bu

tton

To

use

the

foot

prin

t- C

ut th

e tra

ck b

etw

een

the

hole

s an

d m

ount

a p

in-h

eade

r

MIC

5353

Vi

n 2

6V

to 6

VVo

ut 1

25V

to 5

1V

Imax

500

mA

Dro

pout

(typ

ical

) 50

mV

15

0mA

160

mV

5

00m

AA

ccur

acy

2

initi

alTh

erm

al sh

utdo

wn

and

curre

nt li

mit

Max

imum

out

put v

olta

ge is

lim

ited

by th

e in

put v

olta

ge a

nd th

e dr

opou

t vol

tage

in th

e re

gula

tor

(Vm

ax =

Vin

- dr

opou

t)

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 30

72 Assembly DrawingFigure 7-2 AVR128DA48 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

PAC20002 PAC20001 COC200

PAC20102 PAC20101 COC201

PAC20202 PAC20201 COC202

PAC20301 PAC20302 COC203

PAC20401 PAC20402 COC204

PAC20502

PAC20501 COC205

PAD10002 PAD10001 COD100

PAD20001

PAD20002 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

PAJ20701 PAJ20702 PAJ20705 COJ207

PAJ20801 PAJ20802 PAJ20805 COJ208

PAJ20901 PAJ20902 COJ209

PAJ21002 PAJ21001 COJ210

PAJ21102 PAJ21101 COJ211

PAL20002 PAL20001 COL200

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

PAR20002 PAR20001 COR200

PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203

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

PAU200048 PAU200047 PAU200046 PAU200045 PAU200044 PAU200043 PAU200042 PAU200041 PAU200040 PAU200039 PAU200038 PAU200037 PAU200036 PAU200035 PAU200034 PAU200033 PAU200032 PAU200031 PAU200030 PAU200029 PAU200028 PAU200027 PAU200026 PAU200025 PAU200024 PAU200023 PAU200022 PAU200021 PAU200020 PAU200019 PAU200018 PAU200017 PAU200016 PAU200015 PAU200014 PAU200013

PAU200012 PAU200011 PAU200010 PAU20009 PAU20008 PAU20007 PAU20006 PAU20005 PAU20004 PAU20003 PAU20002 PAU20001

COU200

PAXC20001

PAXC20002

COXC200

Figure 7-3 AVR128DA48 Curiosity Nano Assembly Drawing Bottom

ctR

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20002 PAC20001 COC200

PAC20102 PAC20101 COC201

PAC20202 PAC20201 COC202

PAC20301 PAC20302 COC203

PAC20401 PAC20402 COC204

PAC20502

PAC20501 COC205

PAD10002 PAD10001 COD100

PAD20001

PAD20002 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

PAJ20701 PAJ20702 PAJ20705 COJ207

PAJ20801 PAJ20802 PAJ20805 COJ208

PAJ20901 PAJ20902 COJ209

PAJ21002 PAJ21001 COJ210

PAJ21102 PAJ21101 COJ211

PAL20002 PAL20001 COL200

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

PAR20002 PAR20001 COR200

PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203

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

PAU200048 PAU200047 PAU200046 PAU200045 PAU200044 PAU200043 PAU200042 PAU200041 PAU200040 PAU200039 PAU200038 PAU200037 PAU200036 PAU200035 PAU200034 PAU200033 PAU200032 PAU200031 PAU200030 PAU200029 PAU200028 PAU200027 PAU200026 PAU200025 PAU200024 PAU200023 PAU200022 PAU200021 PAU200020 PAU200019 PAU200018 PAU200017 PAU200016 PAU200015 PAU200014 PAU200013

PAU200012 PAU200011 PAU200010 PAU20009 PAU20008 PAU20007 PAU20006 PAU20005 PAU20004 PAU20003 PAU20002 PAU20001

COU200

PAXC20001

PAXC20002

COXC200

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 31

73 Curiosity Nano Base for Click boardstrade

Figure 7-4 AVR128DA48 Curiosity Nano Pinout Mapping

USB

DEB

UG

GER

AVR1

28D

A48

SW0

LED

0

PS L

EDNC

NC

ID

ID

CDC RX

CDCRX

USART1 TX

PC0

CDC TX

CDCTX

USART1 RX

PC1

DBG1

DBG1

PC6

LED0

DBG2

DBG2

PC7

SW0

PA0

PA0

USART0 TX

PTC XY0

PA1

PA1

USART0 RX

PTC XY1

PC2

PC2

TWI0 SDA

PC3

PC3

TWI0 SCL

PA4

PA4

SPI0 MOSI

PTC XY4

PA5

PA5

SPI0 MISO

PTC XY5

PA6

PA6

SPI0 SCK

PTC XY6

PA7

PA7

SPI0 SS

PTC XY7

GND

GND

PF4

PF4

USART2 TX

PTC XY36

PF5

PF5

USART2 RX

PTC XY37

PF2

PF2

PTC XY34

PF3

PF3

PTC XY35

PB0

PB0

PTC XY8

PB1

PB1

PTC XY9

PB2

PB2

PTC XY10

PB3

PB3

PTC XY11

GND

GND

PC0

PC0

USART1 TX

CDC RX

PC1

PC1

USART1 RX

CDC TX

PC6

PC6

LED0

PC7

PC7

SW0

VBUS

VBUS

VOFF

VOFF

DBG3

DBG3

PF6

DBG0

DBG0

UPDI

GND

GND

VTG

VTG

PD7

PD7

AIN7

PTC XY23

PD6

PD6

AIN6

PTC XY22

PD2

PD2

AIN2

PTC XY18

TCA0 WO2

PD1

PD1

AIN1

PTC XY17

TCA0 WO1

PD0

PD0

AIN0

PTC XY16

TCA0 WO0

PD5

PD5

AIN5

PTC XY21

PD4

PD4

AIN4

PTC XY20

PD3

PD3

AIN3

PTC XY19

GND

GND

PE3

PE3

PTC XY27

PE2

PE2

PTC XY26

PE1

PE1

PTC XY25

PE0

PE0

PTC XY24

PA3

PA3

PTC XY3

PA2

PA2

PTC XY2

PB5

PB5

PTC XY13

PB4

PB4

PTC XY12

GND

GND

PC5

PC5

PC4

PC4

(PF1)

(PF1)

(PTC XY33)

XTAL32K2

(PF0)

(PF0)

(PTC XY32)

XTAL32K1

DEB

UG

GER

AVR1

28D

A48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

Touch

Shared pin

AVR1

28D

A48

Curio

sity

Nan

o

1

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

2

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

3

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

Xpl

aine

d Pr

o Ex

tens

ion

EXT1

12

1920

Curio

sity

Nan

o Ba

sefo

r clic

k bo

ards

TM

PD3

PD0

PD7

PD6

PA7

PA1

PA6

PA0

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

PD4

PD1

PF3

PF2

PE2

PF5

PA6

PF4

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

PD5

PD2

PE1

PE0

PE3

PA1

PA6

PA0

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

ID

GND

PD4

PD5

PF3

PE1

PD1

PD2

PF2

PE3

PC2

PC3

PF5

PF4

PE2

PA4

PA5

PA6

GND

+33V

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 32

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

The block diagram below shows all connections between the debugger and the AVR128DA48 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 7-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 7-6 Details about connecting an external debugger are described in 36 Connecting ExternalDebuggers

Figure 7-5  On-Board Debugger Connections Block Diagram

DEB

UG

GER

TARGETLevel-Shift

PA04PA06PA07PA08PA16PA00PA01

USB

DIR x 5

VCC_P3V3

VBUS

VCC

_LEV

EL

VCC

_TA

RGET

DBG0DBG1DBG2DBG3CDC 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

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 33

Figure 7-6 On-Board Debugger Connection Cut Straps

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

75 Getting Started with IARIAR Embedded Workbenchreg for AVRreg is a proprietary high-efficiency compiler not based on GCC Programming anddebugging of AVR128DA48 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 7-73 In the category Debugger select the Setup tab Select Atmel-ICE as the driver as shown in Figure 7-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 7-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

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 34

Figure 7-7 Select Target Device

Figure 7-8 Select Debugger

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 35

Figure 7-9 Configure Interface

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 36

The Microchip WebsiteMicrochip provides online support via our website at httpwwwmicrochipcom This website is used to make filesand information 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 ServiceMicrochiprsquos 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 httpwwwmicrochipcompcn and follow the registration instructions

Customer SupportUsers 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 httpwwwmicrochipcomsupport

Microchip Devices Code Protection FeatureNote the following details of the code protection feature on Microchip devices

bull Microchip products meet the specification contained in their particular Microchip Data Sheetbull Microchip believes that its family of products is one of the most secure families of its kind on the market today

when used in the intended manner and under normal conditionsbull There are dishonest and possibly illegal methods used to breach the code protection feature All of these

methods to our knowledge require using the Microchip products in a manner outside the operatingspecifications contained in Microchiprsquos Data Sheets Most likely the person doing so is engaged in theft ofintellectual property

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

protection does not mean that we are guaranteeing the product as ldquounbreakablerdquo

Code protection is constantly evolving We at Microchip are committed to continuously improving the code protectionfeatures of our products Attempts to break Microchiprsquos code protection feature may be a violation of the DigitalMillennium Copyright Act If such acts allow unauthorized access to your software or other copyrighted work youmay have a right to sue for relief under that Act

Legal NoticeInformation contained in this publication regarding device applications and the like is provided only for yourconvenience and may be superseded by updates It is your responsibility to ensure that your application meets with

AVR128DA48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 37

your specifications MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHEREXPRESS OR IMPLIED WRITTEN OR ORAL STATUTORY OR OTHERWISE RELATED TO THE INFORMATIONINCLUDING BUT NOT LIMITED TO ITS CONDITION QUALITY PERFORMANCE MERCHANTABILITY ORFITNESS FOR PURPOSE Microchip disclaims all liability arising from this information and its use Use of Microchipdevices in life support andor safety applications is entirely at the buyerrsquos risk and the buyer agrees to defendindemnify and hold harmless Microchip from any and all damages claims suits or expenses resulting from suchuse No licenses are conveyed implicitly or otherwise under any Microchip intellectual property rights unlessotherwise stated

TrademarksThe 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-5760-2

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

AVR128DA48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 38

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupporthttpwwwmicrochipcomsupportWeb AddresshttpwwwmicrochipcomAtlantaDuluth 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 DS50002971A-page 39

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Kit Overview
      • 2 Getting Started
        • 21 Quick Start
        • 22 Design Documentation and Relevant Links
          • 3 Curiosity Nano
            • 31 On-Board Debugger Overview
              • 311 Debugger
              • 312 Virtual Serial Port (CDC)
                • 3121 Overview
                • 3122 Operating System Support
                • 3123 Limitations
                • 3124 Signaling
                • 3125 Advanced Use
                  • 313 Mass Storage Device
                    • 3131 Mass Storage Device Implementation
                    • 3132 Fuse Bytes
                    • 3133 Limitations of Drag-and-Drop Programming
                    • 3134 Special Commands
                      • 314 Data Gateway Interface (DGI)
                        • 3141 Debug GPIO
                        • 3142 Timestamping
                            • 32 Curiosity Nano Standard Pinout
                            • 33 Power Supply
                              • 331 Target Regulator
                              • 332 External Supply
                              • 333 VBUS Output Pin
                              • 334 Power Supply Exceptions
                                • 34 Low Power Measurement
                                • 35 Programming External Microcontrollers
                                  • 351 Supported Devices
                                  • 352 Software Configuration
                                  • 353 Hardware Modifications
                                  • 354 Connecting to External Microcontrollers
                                    • 36 Connecting External Debuggers
                                      • 4 Hardware User Guide
                                        • 41 Connectors
                                          • 411 AVR128DA48 Curiosity Nano Pinout
                                          • 412 Using Pin Headers
                                            • 42 Peripherals
                                              • 421 LED
                                              • 422 Mechanical Switch
                                              • 423 Crystal
                                              • 424 On-Board Debugger Implementation
                                                • 4241 On-Board Debugger Connections
                                                  • 5 Hardware Revision History and Known Issues
                                                    • 51 Identifying Product ID and Revision
                                                    • 52 Revision 3
                                                      • 6 Document Revision History
                                                      • 7 Appendix
                                                        • 71 Schematic
                                                        • 72 Assembly Drawing
                                                        • 73 Curiosity Nano Base for Click boardstrade
                                                        • 74 Disconnecting the On-board Debugger
                                                        • 75 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: AVR128DA48 Curiosity Nano User Guide - Microchip Technologyww1.microchip.com/downloads/en/DeviceDoc/AVR128DA48... · 2020-03-19 · AVR128DA48 Curiosity Nano AVR128DA48 Curiosity

Figure 3-7 Target Power Strap

Target Power strap (top side)

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 are tri-state to prevent leakage All IOs connected to the on-boarddebugger are listed in 4241 On-Board Debugger Connections To prevent any leakage to the on-boardlevel shifters they can be disconnected completely as described in 74 Disconnecting the On-boardDebugger

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

351 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

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

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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 18

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

Figure 3-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

353 Hardware ModificationsThe on-board debugger is connected to the AVR128DA48 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 AVR128DA48 from the on-board debugger

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 19

Figure 3-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 AVR128DA48 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 AVR128DA48

354 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 33 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

AVR128DA48 Curiosity Nano has a pull-up resistor R200 connected to its RESET signal (DBG3) The location ofthe pull-up resistor is shown in the 72 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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 20

Figure 3-10 Curiosity Nano Standard Pinout

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

Table 3-4 Programming and Debugging Interfaces

Curiosity Nano Pin UPDI ICSPtrade SWD

DBG0 UPDI DATA SWDIO

DBG1 - CLK SWCLK

DBG2 - - -

DBG3 - MCLR RESET

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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 21

Figure 3-11 Connecting the MPLABreg PICkittrade 4 In-Circuit DebuggerProgrammer to AVR128DA48 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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 22

Figure 3-12 Connecting the Atmel-ICE to AVR128DA48 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 Atmel StudioMicrochip MPLABreg XIDE or mass storage programming while the external tool is active

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 23

4 Hardware User Guide

41 Connectors

411 AVR128DA48 Curiosity Nano PinoutAll the AVR128DA48 IO pins are accessible at the edge connectors on the board The image below shows the boardpinout

Figure 4-1 AVR128DA48 Curiosity Nano Pinout

USB

DEBUGGER

AVR128DA48

SW0

LED0

PS LEDNC

NC

ID

ID

CDC RX

CDCRXUSART1 TXPC0

CDC TX

CDCTXUSART1 RXPC1

DBG1

DBG

1PC6LED0

DBG2

DBG

2PC7SW0

PA0

PA0USART0 TXPTC XY0

PA1PA

1USART0 RXPTC XY1

PC2PC2TWI0 SDA

PC3

PC3TWI0 SCL

PA4

PA4SPI0 MOSIPTC XY4

PA5

PA5SPI0 MISOPTC XY5

PA6

PA6SPI0 SCKPTC XY6

PA7

PA7SPI0 SSPTC XY7

GND

GN

D

PF4

PF4USART2 TXPTC XY36

PF5

PF5USART2 RXPTC XY37

PF2

PF2PTC XY34

PF3

PF3PTC XY35

PB0

PB0PTC XY8

PB1

PB1PTC XY9

PB2

PB2PTC XY10

PB3

PB3PTC XY11

GND

GN

D

PC0

PC0USART1 TXCDC RX

PC1

PC1USART1 RXCDC TX

PC6

PC6LED0

PC7

PC7SW0

VBUS

VBU

S

VOFF

VO

FFDBG3

DBG

3 PF6

DBG0D

BG0 UPDI

GND

GN

D

VTG

VTG

PD7

PD7 AIN7 PTC XY23

PD6

PD6 AIN6 PTC XY22

PD2

PD2 AIN2 PTC XY18 TCA0 WO2

PD1

PD1 AIN1 PTC XY17 TCA0 WO1

PD0

PD0 AIN0 PTC XY16 TCA0 WO0

PD5

PD5 AIN5 PTC XY21

PD4

PD4 AIN4 PTC XY20

PD3

PD3 AIN3 PTC XY19

GND

GN

D

PE3

PE3 PTC XY27

PE2

PE2 PTC XY26

PE1

PE1 PTC XY25

PE0

PE0 PTC XY24

PA3

PA3 PTC XY3

PA2

PA2 PTC XY2

PB5

PB5 PTC XY13

PB4

PB4 PTC XY12

GND

GN

D

PC5

PC5

PC4

PC4

(PF1)

(PF1) (PTC XY33) XTAL32K2

(PF0)

(PF0) (PTC XY32) XTAL32K1

DEBUGGERAVR128DA48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

Touch

Shared pin

AVR128DA48Curiosity Nano

412 Using Pin HeadersThe edge connector footprint on AVR128DA48 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

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

AVR128DA48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 24

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

42 Peripherals

421 LEDThere is one yellow user LED available on the AVR128DA48 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 4-1 LED Connection

AVR128DA48 Pin Function Shared Functionality

PC6 Yellow LED0 Edge connector On-board debugger

422 Mechanical SwitchThe AVR128DA48 Curiosity Nano has one mechanical switch This is a generic user-configurable switch When theswitch 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 PC7

Table 4-2 Mechanical Switch

AVR128DA48 Pin Description Shared Functionality

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

423 Crystal

The AVR128DA48 Curiosity Nano board has a 32768 kHz crystal mounted

The AVR128DA48 is connected to the crystal by default but the GPIOs are also routed to the edge connectorthrough two solder points The two IO lines routed to the edge connector are disconnected by default to reduce thechance of an external signal causing contention with the crystal and to remove excessive capacitance on the linesTo use PF0 and PF1 as GPIO some hardware modifications are required

bull Disconnect the crystal by cutting the two straps on the top side of the board next to the crystal (J210 J211) Thecrystal 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 (J207 J208)

The cut straps and solder points can be seen in Figure 4-2

Table 4-3 Crystal Connections

AVR128DA48 Pin Function Shared Functionality

PF0 TOSC1 (Crystal input) Edge connector

PF1 TOSC2 (Crystal output) Edge connector

AVR128DA48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 25

Figure 4-2 Crystal Connection and Cut Straps

424 On-Board Debugger ImplementationAVR128DA48 Curiosity Nano features an on-board debugger that can be used to program and debug theAVR128DA48 using UPDI The on-board debugger also includes a virtual serial port (CDC) interface over UART anddebug GPIO Atmel StudioMicrochip MPLABreg X IDE 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

4241 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 31 On-Board DebuggerOverview

Table 4-4 On-Board Debugger Connections

AVR128DA48Pin

Debugger Pin Function Shared Functionality

RF1 CDC TX UART RX (AVR128DA48 RX line) Edge connector

RF0 CDC RX UART TX (AVR128DA48 TX line) Edge connector

UPDI DBG0 UPDI Edge connector

PC6 DBG1 GPIO1 Edge connector LED

PC7 DBG2 GPIO0 Edge connector Mechanical Switch

PF6 DBG3 RESET Edge connector

AVR128DA48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 26

5 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

51 Identifying Product ID and RevisionThe revision and product identifier of the AVR128DA48 Curiosity Nano Board can be found in two ways Either byutilizing the Atmel StudioMicrochip MPLABreg X IDE Kit Window or by looking at the sticker on the bottom side of thePCB

By connecting AVR128DA48 Curiosity Nano to a computer with Atmel StudioMicrochip MPLABreg X IDE running theKit Window will pop up The first six digits of the serial number which is listed under kit information contain theproduct identifier 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 AVR128DA48 Curiosity Nano is A09-3280

52 Revision 3Revision 3 is the initially released revision There are no known issues with this revision

AVR128DA48 Curiosity NanoHardware Revision History and Known Issues

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 27

6 Document Revision HistoryDoc rev Date Comment

A 032020 Initial document release

AVR128DA48 Curiosity NanoDocument Revision History

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 28

7 Appendix

71 SchematicFigure 7-1 AVR128DA48 Curiosity Nano Schematic

11

22

33

44

55

66

77

88

DD

CC

BB

AA

2 of

4

AVR1

28D

A48

Curio

sity

Nan

o

102

320

19AV

R128

DA

48_C

urio

sity

_Nan

o_Ta

rget

_MCU

Sch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA R

evisi

on

File

PC

B N

umbe

rPC

B Re

visio

n

Des

igne

d wi

th

Dra

wn

By

PB Shee

t Titl

eTa

rget

MCU

Engi

neer

A

H T

F

A08

-300

23

Size

A3

A09

-328

03

Page

D

ateA

ltium

com

GN

DV

CC_T

ARG

ET

100n

C201

GN

D

PA5_

SPI0

_MIS

OPA

6_SP

I0_S

CKPA

7_SP

I0_S

SPB

0_U

ART

3_TX

PB1_

UA

RT3_

RXPB

2PB

3PB

4PB

5PC

0_U

ART

1_TX

PC1_

UA

RT1_

RXPC

2_I2

C0_S

DA

PC3_I2C0_SCL

PC4PC5PC6_LED0_GPIO1PC7_SW0_GPIO0PD0_AIN0_WO0PD1_AIN1_WO1PD2_AIN2_WO2PD3_AIN3PD4_AIN4

PA3

PA1_UART0_RX

UPDI

PF5_UART2_RX

PF3

PF2

PF1_

TOSC

2PF

0_TO

SC1

PE3

PE2

PE1

PE0

PD5_

AIN

5PD

6_A

IN6

PD7_

AIN

7

GN

D

VCC

_TA

RGET

100n

C202

GN

DV

CC_T

ARG

ET10

0n

C200

PF1_TOSC2

PF0_TOSC1

PA2

PA0_UART0_TX

PF4_UART2_TX

PA4_SPI0_MOSI

GN

D

PA7_

SPI0

_SS

PA6_

SPI0

_SCK

PA5_

SPI0

_MIS

OPA

4_SP

I0_M

OSI

PA3

PA2

PA1_

UA

RT0_

RXPA

0_U

ART

0_TX

PB0_

UA

RT3_

TXPB

1_U

ART

3_RX

PB2

PB3

PB4

PB5

PD7_

AIN

7PD

6_A

IN6

PF5_

UA

RT2_

RXPF

4_U

ART

2_TX

PF3

PF2

32kH

z C

ryst

al

1kR203

USE

R L

ED

VCC

_TA

RGET

PF6_RESET

PC7_SW0_GPIO0

PC6_LED0_GPIO1

GN

D

USE

R B

UTT

ON

PE3

PE2

PE1

PE0

PC0_

UA

RT1_

TXPC

1_U

ART

1_RX

PC2_

I2C0

_SD

APC

3_I2

C0_S

CL

PC4

PC5

PC6_

LED

0_G

PIO

1PC

7_SW

0_G

PIO

0

1kR202

YELLOWLEDSML-D12Y1WT86

2 1D200

TS604VM1-035CR13

4 2

SW20

0

GN

DV

CC_E

DG

E

GN

DG

ND

GN

DG

ND

UPD

IPF

6_RE

SET

J207

J208

J209

BLM

18PG

471S

N1

L200

AVR1

28D

A48

22u

FC2

05

VCC

_ED

GE

GN

D

DBG0

CDC_

UART

TXRXU

ART

CDC_TXCDC_RX

DBG2

DBG1

DBG3

DBG2

DEB

UG

GER

CO

NN

ECTI

ON

S

DBG1

DBG3DBG0

VOFF

ID_S

YS

ID_SYS

VOFF

TAR

GET

BU

LK

VCC

_TA

RGET

RES

ET P

ull

VBU

S

CDC

RX3

CDC

TX4

DBG

15

DBG

26

0 TX

71

RX8

2 SD

A9

3 SC

L10

4 M

OSI

115

MIS

O12

6 SC

K13

7 SS

14G

ND

150

(TX

)16

1 (R

X)

172

183

190

20

GN

D24

DBG

354

DBG

053

GN

D52

VCC

51

PWM

346

AD

C 2

45A

DC

144

AD

C 0

43G

ND

42

438

434

GN

D33

AD

C 7

50A

DC

649

AD

C 5

48PW

M 4

47

DEB

UG

GER

TARG

ET

ID2

VO

FF55

121

222

323

025

126

227

328

429

530

631

732

535

636

737

539

640

741

RESE

RVED

1V

BUS

56

CNA

NO

56-p

in e

dge

conn

ecto

r

J200

J201

J203

J205

J206

J202

J204

PF1

PF0

PF1_

TOSC

2PF

0_TO

SC1

NC

J211

J210

XOUT

XIN

47kR200

AVR

128D

A48

UPD

I

GPI

O1

GPI

O0

RESE

T

DBG

0

DBG

1

DBG

2

DBG

3

Deb

ugge

r

CD

C T

X

CD

C R

X

UA

RT1

RX

UA

RT1

TX

VTG

18V

- 5

5VPC6

PC7

PF6

UPD

I

PC0

PC1

Nam

ePi

n

PA5

1PA

62

PA7

3PB

04

PB1

5PB

26

PB3

7PB

48

PB5

9PC

010

PC1

11PC

212

PC3 13VDD 14GND 15PC4 16PC5 17PC6 18PC7 19PD0 20PD1 21PD2 22PD3 23PD4 24

PD5

25PD

626

PD7

27AV

DD28

GND

29PE

030

PE1

31PE

232

PE3

33XT

AL32

K1P

F034

XTAL

32K2

PF1

35PF

236

PF337 PF438 PF539 PF640 UPDI41 VDD42 GND43 EXTCLKPA044 PA145 PA246 PA347 PA448

AVR1

28D

A48

TQ

FPU

200

PC0_

UA

RT1_

TXPC

1_U

ART

1_RX

PC6_

LED

0_G

PIO

1PC

7_SW

0_G

PIO

0

AVD

D

PD2_

AIN

2_W

O2

PD1_

AIN

1_W

O1

PD0_

AIN

0_W

O0

PD5_

AIN

5PD

4_A

IN4

PD3_

AIN

3

XC2

00

12p

C203

12p

C204

327

68 k

Hz

Crys

tal d

atas

heet

Cc

rysta

l = 9

pFm

ax E

SR =

70k

Ohm

Acc

urac

y plusmn2

0ppm

AVR1

28D

A48

dat

ashe

et

Cxin

= 4

1pF

Cxou

t = 6

0pF

Cl asymp

1( (

14

1pF)

+ (1

60

pF) )

asymp2

44pF

Max

imum

Loa

d =

125

pFM

axim

um E

SR =

80k

Ohm

Estim

ated

Cpc

b =

05p

F

Estim

ated

load

C =

2 (C

crys

tal-

Cpar

a - C

pcb)

C

= 2

(9pF

- 2

44pF

- 0

5pF)

C =

121

2pF

Sele

cted

in d

esig

n af

ter v

erifi

catio

nC=

12p

F12

pF

NO

TE o

n U

ART

CD

C

RXT

X o

n th

e he

ader

den

otes

the

inpu

tout

put d

irect

ion

of th

e sig

nal

resp

ectiv

e to

its

sour

ce

CDC

TX is

out

put f

rom

the

DEB

UG

GER

CD

C RX

is in

put t

o th

e D

EBU

GG

ER

TX is

out

put f

rom

the

TARG

ET d

evic

eRX

is in

put t

o th

e TA

RGET

dev

ice

NO

TE o

n I2

C

No

pull-

ups o

n bo

ard

Pul

l-ups

shou

ld b

e m

ount

ed c

lose

to sl

ave

devi

ce(s

)

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 29

11

22

33

44

55

66

77

88

DD

CC

BB

AA

3 of

4

AVR1

28D

A48

Curio

sity

Nan

o

102

320

19AV

R128

DA

48_C

urio

sity

_Nan

o_D

ebug

gerS

chD

oc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA R

evisi

on

File

PC

B N

umbe

rPC

B Re

visio

n

Des

igne

d wi

th

Dra

wn

By

PB Shee

t Titl

eD

ebug

ger

Engi

neer

A

H T

F

A08

-300

23

Size

A3

A09

-328

03

Page

D

ateA

ltium

com

DEB

UG

GER

USB

MIC

RO

-B C

ON

NEC

TOR

GN

D

USB

D_P

USB

D_N

100n

C107

100n

C108

RXTXU

ART

CDC_

UART

1kR1

07V

CC_P

3V3

SRST

STAT

US_

LED

SHIE

LD

VBU

S

VCC

_P3V

3G

ND

TP10

0

Testp

oint

Arra

y

12

34

56

78

910

TCK

TDO

TMS

Vsu

pTD

IG

ND

TRST

SRST

VTr

efG

ND

J102

GN

D

47u

F

C100

DBG0

DBG

0

21

GRE

EN L

EDSM

L-P1

2MTT

86R

D10

0

VBUS

1D-

2D+

3

GND

5SH

IELD

16

SHIE

LD2

7

ID4

SHIE

LD3

8SH

IELD

49 M

U-M

B014

2AB2

-269

J105

PAD

33

PA00

1PA

012

PA02

3PA

034

GND 10VDDANA 9

PA04

5PA

056

PA06

7PA

078

PA08 11PA09 12PA10 13PA11 14PA14 15PA15 16

PA16

17PA

1718

PA18

19PA

1920

PA22

21US

B_SO

FPA

2322

USB_

DMP

A24

23US

B_DP

PA2

524

PA2725 RESETN26 PA2827 GND28 VDDCORE29 VDDIN30 SWDCLKPA3031 SWDIOPA3132

SAM

D21

E18A

-MU

TU

100

VOUT

1

VOUT

2

GND 3

EN4

VIN

6

NC5

EP 7

MIC

5528

-33

YM

TU

101

VCC

_P3V

3

GN

D

USB

D_P

USB

D_N

GN

D

1uC106

VCC

_MCU

_CO

RE

VCC

_P3V

3

VCC

_P3V

3

22u

FC1

01

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

3V

CC_P

3V3

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

4V

CC_P

3V3

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

5V

CC_P

3V3

GN

D

GN

D GN

D

GN

D

VCC

_ED

GE

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

7V

CC_P

3V3

GN

DDB

G2

DBG

3_CT

RL

S1_0

_TX

S1_1

_RX

S0_2

_TX

DA

CV

TG_A

DC

RESE

RVED

S0_3

_CLK

DBG0_CTRL

CDC_

TX_C

TRL

BOO

T

DEB

UG

GER

PO

WER

STA

TUS

LED

EN1

BYP

6

VOUT

4

GND

2

VIN

3

NCA

DJ5

GND 7

MIC

5353

U10

2

100n

C102

GN

D

GN

D

47kR101

27kR104 G

ND

33k

R106

22u

F

C103 G

ND

1kR1

08

J100

VCC

_LEV

ELV

CC_R

EGU

LATO

R

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

6V

CC_P

3V3

GN

DDB

G1

CDC_

RXCD

C_TX

DBG3

DBG1_CTRL

DEB

UG

GER

REG

ULA

TOR

REG_ENABLE

REG

_EN

ABL

E

47kR103

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

47kR102

47kR105

SWCL

K

GN

D

47kR100 G

ND

DBG

2

S0_0

_RX

DBG

1_CT

RL

DBG

0_CT

RL

DBG

3 O

PEN

DR

AIN

TAR

GET

AD

JUST

ABL

E R

EGU

LATO

R

SRST

DEB

UG

GER

TES

TPO

INT DBG2_CTRL

VO

FFCD

C_RX

_CTR

L

47kR109

DBG

1

CDC_

TX_C

TRL

CDC_

RX_C

TRL

SWCL

K

REG_ADJUST

DBG2_GPIO

DBG

3_CT

RL

DBG

2_CT

RL

UPD

I

UPD

I

GPI

O

GPI

O

RESE

T

Sign

al

DBG

0

DBG

1

DBG

2

DBG

3

ICSP

Inte

rface

DAT

CLK

GPI

O

MCL

R

DBG

3

CD

C T

X

CD

C R

X

UA

RT R

X

UA

RT T

X

UA

RT R

X

UA

RT T

X

TAR

GET

TAR

GET

1kR1

10

VBUS_ADC

1

23

DM

N65

D8L

FBQ

101

VC

C-

-

ID_S

YS

VOFF

1kR112

VCC

_P3V

3

VTG

_AD

CD

AC

MIC

9416

3

VIN

B2VO

UTA1

VIN

A2

ENC2

GND

C1VO

UTB1

U10

8

GN

D

ID_S

YS

VTG

_EN

VTG_EN

VBUS_ADC

SWD

IO

ID_S

YS

TP10

1G

ND

SWD

IO

VO

FF

47kR111 G

ND

ID P

IN

MC3

6213

F100

VCC

_VBU

S

VCC

_VBU

S

VCC

_VBU

S

J101

VCC

_TA

RGET

47k

R113

Prog

ram

min

g co

nnec

tor f

or

fact

ory

prog

ram

min

g of

D

EBU

GG

ER

MIC

5528

Vi

n 2

5V

to 5

5V

Vout

Fix

ed 3

3V

Imax

500

mA

Dro

pout

260

mV

5

00m

A

PTC

Rese

ttabl

e fu

se

Hol

d cu

rrent

500

mA

Trip

cur

rent

100

0mA

Adj

usta

ble

outp

ut a

nd li

mita

tions

- T

he D

EBU

GG

ER c

an a

djus

t the

out

put v

olta

ge o

f the

regu

lato

r bet

wee

n 1

25V

and

51

V to

the

targ

et

- The

vol

tage

out

put i

s lim

ited

by th

e in

put (

USB

) w

hich

can

var

y be

twee

n 4

40V

to 5

25V

- The

leve

l shi

fters

hav

e a

min

imal

vol

tage

leve

l of 1

65V

and

will

lim

it th

e m

inim

um o

pera

ting

volta

ge a

llow

ed fo

r the

ta

rget

to st

ill a

llow

com

mun

icat

ion

- The

MIC

9416

3 ha

s a m

inim

al v

olta

ge le

vel o

f 17

0V a

nd w

ill li

mit

the

min

imum

vol

tage

del

iver

ed to

the

targ

et

- Firm

war

e co

nfig

urat

ion

will

lim

it th

e vo

ltage

rang

e to

be

with

in th

e th

e ta

rget

spec

ifica

tion

R113

is re

quire

d to

pul

l the

Q

101

gate

to a

def

ined

va

lue

whe

n th

e U

100

is no

t po

wer

ed

J100

Cu

t-stra

p us

ed fo

r ful

l sep

arat

ion

of ta

rget

pow

er fr

om th

e le

vel s

hifte

rs a

nd o

n-bo

ard

regu

lato

rs

- For

cur

rent

mea

sure

men

ts us

ing

an e

xter

nal p

ower

supp

ly t

his s

trap

coul

d be

cut

for m

ore

accu

rate

mea

sure

men

ts L

eaka

ge b

ack

thro

ugh

the

switc

h is

in th

e m

icro

am

pere

rang

e

J101

Th

is is

foot

prin

t for

a 1

x2 1

00m

il pi

tch

pin-

head

er th

at c

an b

e us

ed fo

r eas

y cu

rrent

mea

sure

men

t to

the

targ

et m

icro

cont

rolle

r and

the

LED

Bu

tton

To

use

the

foot

prin

t- C

ut th

e tra

ck b

etw

een

the

hole

s an

d m

ount

a p

in-h

eade

r

MIC

5353

Vi

n 2

6V

to 6

VVo

ut 1

25V

to 5

1V

Imax

500

mA

Dro

pout

(typ

ical

) 50

mV

15

0mA

160

mV

5

00m

AA

ccur

acy

2

initi

alTh

erm

al sh

utdo

wn

and

curre

nt li

mit

Max

imum

out

put v

olta

ge is

lim

ited

by th

e in

put v

olta

ge a

nd th

e dr

opou

t vol

tage

in th

e re

gula

tor

(Vm

ax =

Vin

- dr

opou

t)

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 30

72 Assembly DrawingFigure 7-2 AVR128DA48 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

PAC20002 PAC20001 COC200

PAC20102 PAC20101 COC201

PAC20202 PAC20201 COC202

PAC20301 PAC20302 COC203

PAC20401 PAC20402 COC204

PAC20502

PAC20501 COC205

PAD10002 PAD10001 COD100

PAD20001

PAD20002 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

PAJ20701 PAJ20702 PAJ20705 COJ207

PAJ20801 PAJ20802 PAJ20805 COJ208

PAJ20901 PAJ20902 COJ209

PAJ21002 PAJ21001 COJ210

PAJ21102 PAJ21101 COJ211

PAL20002 PAL20001 COL200

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

PAR20002 PAR20001 COR200

PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203

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

PAU200048 PAU200047 PAU200046 PAU200045 PAU200044 PAU200043 PAU200042 PAU200041 PAU200040 PAU200039 PAU200038 PAU200037 PAU200036 PAU200035 PAU200034 PAU200033 PAU200032 PAU200031 PAU200030 PAU200029 PAU200028 PAU200027 PAU200026 PAU200025 PAU200024 PAU200023 PAU200022 PAU200021 PAU200020 PAU200019 PAU200018 PAU200017 PAU200016 PAU200015 PAU200014 PAU200013

PAU200012 PAU200011 PAU200010 PAU20009 PAU20008 PAU20007 PAU20006 PAU20005 PAU20004 PAU20003 PAU20002 PAU20001

COU200

PAXC20001

PAXC20002

COXC200

Figure 7-3 AVR128DA48 Curiosity Nano Assembly Drawing Bottom

ctR

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20002 PAC20001 COC200

PAC20102 PAC20101 COC201

PAC20202 PAC20201 COC202

PAC20301 PAC20302 COC203

PAC20401 PAC20402 COC204

PAC20502

PAC20501 COC205

PAD10002 PAD10001 COD100

PAD20001

PAD20002 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

PAJ20701 PAJ20702 PAJ20705 COJ207

PAJ20801 PAJ20802 PAJ20805 COJ208

PAJ20901 PAJ20902 COJ209

PAJ21002 PAJ21001 COJ210

PAJ21102 PAJ21101 COJ211

PAL20002 PAL20001 COL200

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

PAR20002 PAR20001 COR200

PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203

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

PAU200048 PAU200047 PAU200046 PAU200045 PAU200044 PAU200043 PAU200042 PAU200041 PAU200040 PAU200039 PAU200038 PAU200037 PAU200036 PAU200035 PAU200034 PAU200033 PAU200032 PAU200031 PAU200030 PAU200029 PAU200028 PAU200027 PAU200026 PAU200025 PAU200024 PAU200023 PAU200022 PAU200021 PAU200020 PAU200019 PAU200018 PAU200017 PAU200016 PAU200015 PAU200014 PAU200013

PAU200012 PAU200011 PAU200010 PAU20009 PAU20008 PAU20007 PAU20006 PAU20005 PAU20004 PAU20003 PAU20002 PAU20001

COU200

PAXC20001

PAXC20002

COXC200

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 31

73 Curiosity Nano Base for Click boardstrade

Figure 7-4 AVR128DA48 Curiosity Nano Pinout Mapping

USB

DEB

UG

GER

AVR1

28D

A48

SW0

LED

0

PS L

EDNC

NC

ID

ID

CDC RX

CDCRX

USART1 TX

PC0

CDC TX

CDCTX

USART1 RX

PC1

DBG1

DBG1

PC6

LED0

DBG2

DBG2

PC7

SW0

PA0

PA0

USART0 TX

PTC XY0

PA1

PA1

USART0 RX

PTC XY1

PC2

PC2

TWI0 SDA

PC3

PC3

TWI0 SCL

PA4

PA4

SPI0 MOSI

PTC XY4

PA5

PA5

SPI0 MISO

PTC XY5

PA6

PA6

SPI0 SCK

PTC XY6

PA7

PA7

SPI0 SS

PTC XY7

GND

GND

PF4

PF4

USART2 TX

PTC XY36

PF5

PF5

USART2 RX

PTC XY37

PF2

PF2

PTC XY34

PF3

PF3

PTC XY35

PB0

PB0

PTC XY8

PB1

PB1

PTC XY9

PB2

PB2

PTC XY10

PB3

PB3

PTC XY11

GND

GND

PC0

PC0

USART1 TX

CDC RX

PC1

PC1

USART1 RX

CDC TX

PC6

PC6

LED0

PC7

PC7

SW0

VBUS

VBUS

VOFF

VOFF

DBG3

DBG3

PF6

DBG0

DBG0

UPDI

GND

GND

VTG

VTG

PD7

PD7

AIN7

PTC XY23

PD6

PD6

AIN6

PTC XY22

PD2

PD2

AIN2

PTC XY18

TCA0 WO2

PD1

PD1

AIN1

PTC XY17

TCA0 WO1

PD0

PD0

AIN0

PTC XY16

TCA0 WO0

PD5

PD5

AIN5

PTC XY21

PD4

PD4

AIN4

PTC XY20

PD3

PD3

AIN3

PTC XY19

GND

GND

PE3

PE3

PTC XY27

PE2

PE2

PTC XY26

PE1

PE1

PTC XY25

PE0

PE0

PTC XY24

PA3

PA3

PTC XY3

PA2

PA2

PTC XY2

PB5

PB5

PTC XY13

PB4

PB4

PTC XY12

GND

GND

PC5

PC5

PC4

PC4

(PF1)

(PF1)

(PTC XY33)

XTAL32K2

(PF0)

(PF0)

(PTC XY32)

XTAL32K1

DEB

UG

GER

AVR1

28D

A48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

Touch

Shared pin

AVR1

28D

A48

Curio

sity

Nan

o

1

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

2

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

3

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

Xpl

aine

d Pr

o Ex

tens

ion

EXT1

12

1920

Curio

sity

Nan

o Ba

sefo

r clic

k bo

ards

TM

PD3

PD0

PD7

PD6

PA7

PA1

PA6

PA0

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

PD4

PD1

PF3

PF2

PE2

PF5

PA6

PF4

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

PD5

PD2

PE1

PE0

PE3

PA1

PA6

PA0

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

ID

GND

PD4

PD5

PF3

PE1

PD1

PD2

PF2

PE3

PC2

PC3

PF5

PF4

PE2

PA4

PA5

PA6

GND

+33V

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 32

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

The block diagram below shows all connections between the debugger and the AVR128DA48 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 7-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 7-6 Details about connecting an external debugger are described in 36 Connecting ExternalDebuggers

Figure 7-5  On-Board Debugger Connections Block Diagram

DEB

UG

GER

TARGETLevel-Shift

PA04PA06PA07PA08PA16PA00PA01

USB

DIR x 5

VCC_P3V3

VBUS

VCC

_LEV

EL

VCC

_TA

RGET

DBG0DBG1DBG2DBG3CDC 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

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 33

Figure 7-6 On-Board Debugger Connection Cut Straps

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

75 Getting Started with IARIAR Embedded Workbenchreg for AVRreg is a proprietary high-efficiency compiler not based on GCC Programming anddebugging of AVR128DA48 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 7-73 In the category Debugger select the Setup tab Select Atmel-ICE as the driver as shown in Figure 7-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 7-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

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 34

Figure 7-7 Select Target Device

Figure 7-8 Select Debugger

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 35

Figure 7-9 Configure Interface

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 36

The Microchip WebsiteMicrochip provides online support via our website at httpwwwmicrochipcom This website is used to make filesand information 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 ServiceMicrochiprsquos 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 httpwwwmicrochipcompcn and follow the registration instructions

Customer SupportUsers 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 httpwwwmicrochipcomsupport

Microchip Devices Code Protection FeatureNote the following details of the code protection feature on Microchip devices

bull Microchip products meet the specification contained in their particular Microchip Data Sheetbull Microchip believes that its family of products is one of the most secure families of its kind on the market today

when used in the intended manner and under normal conditionsbull There are dishonest and possibly illegal methods used to breach the code protection feature All of these

methods to our knowledge require using the Microchip products in a manner outside the operatingspecifications contained in Microchiprsquos Data Sheets Most likely the person doing so is engaged in theft ofintellectual property

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

protection does not mean that we are guaranteeing the product as ldquounbreakablerdquo

Code protection is constantly evolving We at Microchip are committed to continuously improving the code protectionfeatures of our products Attempts to break Microchiprsquos code protection feature may be a violation of the DigitalMillennium Copyright Act If such acts allow unauthorized access to your software or other copyrighted work youmay have a right to sue for relief under that Act

Legal NoticeInformation contained in this publication regarding device applications and the like is provided only for yourconvenience and may be superseded by updates It is your responsibility to ensure that your application meets with

AVR128DA48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 37

your specifications MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHEREXPRESS OR IMPLIED WRITTEN OR ORAL STATUTORY OR OTHERWISE RELATED TO THE INFORMATIONINCLUDING BUT NOT LIMITED TO ITS CONDITION QUALITY PERFORMANCE MERCHANTABILITY ORFITNESS FOR PURPOSE Microchip disclaims all liability arising from this information and its use Use of Microchipdevices in life support andor safety applications is entirely at the buyerrsquos risk and the buyer agrees to defendindemnify and hold harmless Microchip from any and all damages claims suits or expenses resulting from suchuse No licenses are conveyed implicitly or otherwise under any Microchip intellectual property rights unlessotherwise stated

TrademarksThe 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-5760-2

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

AVR128DA48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 38

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupporthttpwwwmicrochipcomsupportWeb AddresshttpwwwmicrochipcomAtlantaDuluth 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 DS50002971A-page 39

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Kit Overview
      • 2 Getting Started
        • 21 Quick Start
        • 22 Design Documentation and Relevant Links
          • 3 Curiosity Nano
            • 31 On-Board Debugger Overview
              • 311 Debugger
              • 312 Virtual Serial Port (CDC)
                • 3121 Overview
                • 3122 Operating System Support
                • 3123 Limitations
                • 3124 Signaling
                • 3125 Advanced Use
                  • 313 Mass Storage Device
                    • 3131 Mass Storage Device Implementation
                    • 3132 Fuse Bytes
                    • 3133 Limitations of Drag-and-Drop Programming
                    • 3134 Special Commands
                      • 314 Data Gateway Interface (DGI)
                        • 3141 Debug GPIO
                        • 3142 Timestamping
                            • 32 Curiosity Nano Standard Pinout
                            • 33 Power Supply
                              • 331 Target Regulator
                              • 332 External Supply
                              • 333 VBUS Output Pin
                              • 334 Power Supply Exceptions
                                • 34 Low Power Measurement
                                • 35 Programming External Microcontrollers
                                  • 351 Supported Devices
                                  • 352 Software Configuration
                                  • 353 Hardware Modifications
                                  • 354 Connecting to External Microcontrollers
                                    • 36 Connecting External Debuggers
                                      • 4 Hardware User Guide
                                        • 41 Connectors
                                          • 411 AVR128DA48 Curiosity Nano Pinout
                                          • 412 Using Pin Headers
                                            • 42 Peripherals
                                              • 421 LED
                                              • 422 Mechanical Switch
                                              • 423 Crystal
                                              • 424 On-Board Debugger Implementation
                                                • 4241 On-Board Debugger Connections
                                                  • 5 Hardware Revision History and Known Issues
                                                    • 51 Identifying Product ID and Revision
                                                    • 52 Revision 3
                                                      • 6 Document Revision History
                                                      • 7 Appendix
                                                        • 71 Schematic
                                                        • 72 Assembly Drawing
                                                        • 73 Curiosity Nano Base for Click boardstrade
                                                        • 74 Disconnecting the On-board Debugger
                                                        • 75 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: AVR128DA48 Curiosity Nano User Guide - Microchip Technologyww1.microchip.com/downloads/en/DeviceDoc/AVR128DA48... · 2020-03-19 · AVR128DA48 Curiosity Nano AVR128DA48 Curiosity

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

Figure 3-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

353 Hardware ModificationsThe on-board debugger is connected to the AVR128DA48 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 AVR128DA48 from the on-board debugger

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 19

Figure 3-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 AVR128DA48 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 AVR128DA48

354 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 33 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

AVR128DA48 Curiosity Nano has a pull-up resistor R200 connected to its RESET signal (DBG3) The location ofthe pull-up resistor is shown in the 72 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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 20

Figure 3-10 Curiosity Nano Standard Pinout

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

Table 3-4 Programming and Debugging Interfaces

Curiosity Nano Pin UPDI ICSPtrade SWD

DBG0 UPDI DATA SWDIO

DBG1 - CLK SWCLK

DBG2 - - -

DBG3 - MCLR RESET

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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 21

Figure 3-11 Connecting the MPLABreg PICkittrade 4 In-Circuit DebuggerProgrammer to AVR128DA48 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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 22

Figure 3-12 Connecting the Atmel-ICE to AVR128DA48 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 Atmel StudioMicrochip MPLABreg XIDE or mass storage programming while the external tool is active

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 23

4 Hardware User Guide

41 Connectors

411 AVR128DA48 Curiosity Nano PinoutAll the AVR128DA48 IO pins are accessible at the edge connectors on the board The image below shows the boardpinout

Figure 4-1 AVR128DA48 Curiosity Nano Pinout

USB

DEBUGGER

AVR128DA48

SW0

LED0

PS LEDNC

NC

ID

ID

CDC RX

CDCRXUSART1 TXPC0

CDC TX

CDCTXUSART1 RXPC1

DBG1

DBG

1PC6LED0

DBG2

DBG

2PC7SW0

PA0

PA0USART0 TXPTC XY0

PA1PA

1USART0 RXPTC XY1

PC2PC2TWI0 SDA

PC3

PC3TWI0 SCL

PA4

PA4SPI0 MOSIPTC XY4

PA5

PA5SPI0 MISOPTC XY5

PA6

PA6SPI0 SCKPTC XY6

PA7

PA7SPI0 SSPTC XY7

GND

GN

D

PF4

PF4USART2 TXPTC XY36

PF5

PF5USART2 RXPTC XY37

PF2

PF2PTC XY34

PF3

PF3PTC XY35

PB0

PB0PTC XY8

PB1

PB1PTC XY9

PB2

PB2PTC XY10

PB3

PB3PTC XY11

GND

GN

D

PC0

PC0USART1 TXCDC RX

PC1

PC1USART1 RXCDC TX

PC6

PC6LED0

PC7

PC7SW0

VBUS

VBU

S

VOFF

VO

FFDBG3

DBG

3 PF6

DBG0D

BG0 UPDI

GND

GN

D

VTG

VTG

PD7

PD7 AIN7 PTC XY23

PD6

PD6 AIN6 PTC XY22

PD2

PD2 AIN2 PTC XY18 TCA0 WO2

PD1

PD1 AIN1 PTC XY17 TCA0 WO1

PD0

PD0 AIN0 PTC XY16 TCA0 WO0

PD5

PD5 AIN5 PTC XY21

PD4

PD4 AIN4 PTC XY20

PD3

PD3 AIN3 PTC XY19

GND

GN

D

PE3

PE3 PTC XY27

PE2

PE2 PTC XY26

PE1

PE1 PTC XY25

PE0

PE0 PTC XY24

PA3

PA3 PTC XY3

PA2

PA2 PTC XY2

PB5

PB5 PTC XY13

PB4

PB4 PTC XY12

GND

GN

D

PC5

PC5

PC4

PC4

(PF1)

(PF1) (PTC XY33) XTAL32K2

(PF0)

(PF0) (PTC XY32) XTAL32K1

DEBUGGERAVR128DA48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

Touch

Shared pin

AVR128DA48Curiosity Nano

412 Using Pin HeadersThe edge connector footprint on AVR128DA48 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

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

AVR128DA48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 24

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

42 Peripherals

421 LEDThere is one yellow user LED available on the AVR128DA48 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 4-1 LED Connection

AVR128DA48 Pin Function Shared Functionality

PC6 Yellow LED0 Edge connector On-board debugger

422 Mechanical SwitchThe AVR128DA48 Curiosity Nano has one mechanical switch This is a generic user-configurable switch When theswitch 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 PC7

Table 4-2 Mechanical Switch

AVR128DA48 Pin Description Shared Functionality

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

423 Crystal

The AVR128DA48 Curiosity Nano board has a 32768 kHz crystal mounted

The AVR128DA48 is connected to the crystal by default but the GPIOs are also routed to the edge connectorthrough two solder points The two IO lines routed to the edge connector are disconnected by default to reduce thechance of an external signal causing contention with the crystal and to remove excessive capacitance on the linesTo use PF0 and PF1 as GPIO some hardware modifications are required

bull Disconnect the crystal by cutting the two straps on the top side of the board next to the crystal (J210 J211) Thecrystal 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 (J207 J208)

The cut straps and solder points can be seen in Figure 4-2

Table 4-3 Crystal Connections

AVR128DA48 Pin Function Shared Functionality

PF0 TOSC1 (Crystal input) Edge connector

PF1 TOSC2 (Crystal output) Edge connector

AVR128DA48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 25

Figure 4-2 Crystal Connection and Cut Straps

424 On-Board Debugger ImplementationAVR128DA48 Curiosity Nano features an on-board debugger that can be used to program and debug theAVR128DA48 using UPDI The on-board debugger also includes a virtual serial port (CDC) interface over UART anddebug GPIO Atmel StudioMicrochip MPLABreg X IDE 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

4241 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 31 On-Board DebuggerOverview

Table 4-4 On-Board Debugger Connections

AVR128DA48Pin

Debugger Pin Function Shared Functionality

RF1 CDC TX UART RX (AVR128DA48 RX line) Edge connector

RF0 CDC RX UART TX (AVR128DA48 TX line) Edge connector

UPDI DBG0 UPDI Edge connector

PC6 DBG1 GPIO1 Edge connector LED

PC7 DBG2 GPIO0 Edge connector Mechanical Switch

PF6 DBG3 RESET Edge connector

AVR128DA48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 26

5 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

51 Identifying Product ID and RevisionThe revision and product identifier of the AVR128DA48 Curiosity Nano Board can be found in two ways Either byutilizing the Atmel StudioMicrochip MPLABreg X IDE Kit Window or by looking at the sticker on the bottom side of thePCB

By connecting AVR128DA48 Curiosity Nano to a computer with Atmel StudioMicrochip MPLABreg X IDE running theKit Window will pop up The first six digits of the serial number which is listed under kit information contain theproduct identifier 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 AVR128DA48 Curiosity Nano is A09-3280

52 Revision 3Revision 3 is the initially released revision There are no known issues with this revision

AVR128DA48 Curiosity NanoHardware Revision History and Known Issues

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 27

6 Document Revision HistoryDoc rev Date Comment

A 032020 Initial document release

AVR128DA48 Curiosity NanoDocument Revision History

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 28

7 Appendix

71 SchematicFigure 7-1 AVR128DA48 Curiosity Nano Schematic

11

22

33

44

55

66

77

88

DD

CC

BB

AA

2 of

4

AVR1

28D

A48

Curio

sity

Nan

o

102

320

19AV

R128

DA

48_C

urio

sity

_Nan

o_Ta

rget

_MCU

Sch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA R

evisi

on

File

PC

B N

umbe

rPC

B Re

visio

n

Des

igne

d wi

th

Dra

wn

By

PB Shee

t Titl

eTa

rget

MCU

Engi

neer

A

H T

F

A08

-300

23

Size

A3

A09

-328

03

Page

D

ateA

ltium

com

GN

DV

CC_T

ARG

ET

100n

C201

GN

D

PA5_

SPI0

_MIS

OPA

6_SP

I0_S

CKPA

7_SP

I0_S

SPB

0_U

ART

3_TX

PB1_

UA

RT3_

RXPB

2PB

3PB

4PB

5PC

0_U

ART

1_TX

PC1_

UA

RT1_

RXPC

2_I2

C0_S

DA

PC3_I2C0_SCL

PC4PC5PC6_LED0_GPIO1PC7_SW0_GPIO0PD0_AIN0_WO0PD1_AIN1_WO1PD2_AIN2_WO2PD3_AIN3PD4_AIN4

PA3

PA1_UART0_RX

UPDI

PF5_UART2_RX

PF3

PF2

PF1_

TOSC

2PF

0_TO

SC1

PE3

PE2

PE1

PE0

PD5_

AIN

5PD

6_A

IN6

PD7_

AIN

7

GN

D

VCC

_TA

RGET

100n

C202

GN

DV

CC_T

ARG

ET10

0n

C200

PF1_TOSC2

PF0_TOSC1

PA2

PA0_UART0_TX

PF4_UART2_TX

PA4_SPI0_MOSI

GN

D

PA7_

SPI0

_SS

PA6_

SPI0

_SCK

PA5_

SPI0

_MIS

OPA

4_SP

I0_M

OSI

PA3

PA2

PA1_

UA

RT0_

RXPA

0_U

ART

0_TX

PB0_

UA

RT3_

TXPB

1_U

ART

3_RX

PB2

PB3

PB4

PB5

PD7_

AIN

7PD

6_A

IN6

PF5_

UA

RT2_

RXPF

4_U

ART

2_TX

PF3

PF2

32kH

z C

ryst

al

1kR203

USE

R L

ED

VCC

_TA

RGET

PF6_RESET

PC7_SW0_GPIO0

PC6_LED0_GPIO1

GN

D

USE

R B

UTT

ON

PE3

PE2

PE1

PE0

PC0_

UA

RT1_

TXPC

1_U

ART

1_RX

PC2_

I2C0

_SD

APC

3_I2

C0_S

CL

PC4

PC5

PC6_

LED

0_G

PIO

1PC

7_SW

0_G

PIO

0

1kR202

YELLOWLEDSML-D12Y1WT86

2 1D200

TS604VM1-035CR13

4 2

SW20

0

GN

DV

CC_E

DG

E

GN

DG

ND

GN

DG

ND

UPD

IPF

6_RE

SET

J207

J208

J209

BLM

18PG

471S

N1

L200

AVR1

28D

A48

22u

FC2

05

VCC

_ED

GE

GN

D

DBG0

CDC_

UART

TXRXU

ART

CDC_TXCDC_RX

DBG2

DBG1

DBG3

DBG2

DEB

UG

GER

CO

NN

ECTI

ON

S

DBG1

DBG3DBG0

VOFF

ID_S

YS

ID_SYS

VOFF

TAR

GET

BU

LK

VCC

_TA

RGET

RES

ET P

ull

VBU

S

CDC

RX3

CDC

TX4

DBG

15

DBG

26

0 TX

71

RX8

2 SD

A9

3 SC

L10

4 M

OSI

115

MIS

O12

6 SC

K13

7 SS

14G

ND

150

(TX

)16

1 (R

X)

172

183

190

20

GN

D24

DBG

354

DBG

053

GN

D52

VCC

51

PWM

346

AD

C 2

45A

DC

144

AD

C 0

43G

ND

42

438

434

GN

D33

AD

C 7

50A

DC

649

AD

C 5

48PW

M 4

47

DEB

UG

GER

TARG

ET

ID2

VO

FF55

121

222

323

025

126

227

328

429

530

631

732

535

636

737

539

640

741

RESE

RVED

1V

BUS

56

CNA

NO

56-p

in e

dge

conn

ecto

r

J200

J201

J203

J205

J206

J202

J204

PF1

PF0

PF1_

TOSC

2PF

0_TO

SC1

NC

J211

J210

XOUT

XIN

47kR200

AVR

128D

A48

UPD

I

GPI

O1

GPI

O0

RESE

T

DBG

0

DBG

1

DBG

2

DBG

3

Deb

ugge

r

CD

C T

X

CD

C R

X

UA

RT1

RX

UA

RT1

TX

VTG

18V

- 5

5VPC6

PC7

PF6

UPD

I

PC0

PC1

Nam

ePi

n

PA5

1PA

62

PA7

3PB

04

PB1

5PB

26

PB3

7PB

48

PB5

9PC

010

PC1

11PC

212

PC3 13VDD 14GND 15PC4 16PC5 17PC6 18PC7 19PD0 20PD1 21PD2 22PD3 23PD4 24

PD5

25PD

626

PD7

27AV

DD28

GND

29PE

030

PE1

31PE

232

PE3

33XT

AL32

K1P

F034

XTAL

32K2

PF1

35PF

236

PF337 PF438 PF539 PF640 UPDI41 VDD42 GND43 EXTCLKPA044 PA145 PA246 PA347 PA448

AVR1

28D

A48

TQ

FPU

200

PC0_

UA

RT1_

TXPC

1_U

ART

1_RX

PC6_

LED

0_G

PIO

1PC

7_SW

0_G

PIO

0

AVD

D

PD2_

AIN

2_W

O2

PD1_

AIN

1_W

O1

PD0_

AIN

0_W

O0

PD5_

AIN

5PD

4_A

IN4

PD3_

AIN

3

XC2

00

12p

C203

12p

C204

327

68 k

Hz

Crys

tal d

atas

heet

Cc

rysta

l = 9

pFm

ax E

SR =

70k

Ohm

Acc

urac

y plusmn2

0ppm

AVR1

28D

A48

dat

ashe

et

Cxin

= 4

1pF

Cxou

t = 6

0pF

Cl asymp

1( (

14

1pF)

+ (1

60

pF) )

asymp2

44pF

Max

imum

Loa

d =

125

pFM

axim

um E

SR =

80k

Ohm

Estim

ated

Cpc

b =

05p

F

Estim

ated

load

C =

2 (C

crys

tal-

Cpar

a - C

pcb)

C

= 2

(9pF

- 2

44pF

- 0

5pF)

C =

121

2pF

Sele

cted

in d

esig

n af

ter v

erifi

catio

nC=

12p

F12

pF

NO

TE o

n U

ART

CD

C

RXT

X o

n th

e he

ader

den

otes

the

inpu

tout

put d

irect

ion

of th

e sig

nal

resp

ectiv

e to

its

sour

ce

CDC

TX is

out

put f

rom

the

DEB

UG

GER

CD

C RX

is in

put t

o th

e D

EBU

GG

ER

TX is

out

put f

rom

the

TARG

ET d

evic

eRX

is in

put t

o th

e TA

RGET

dev

ice

NO

TE o

n I2

C

No

pull-

ups o

n bo

ard

Pul

l-ups

shou

ld b

e m

ount

ed c

lose

to sl

ave

devi

ce(s

)

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 29

11

22

33

44

55

66

77

88

DD

CC

BB

AA

3 of

4

AVR1

28D

A48

Curio

sity

Nan

o

102

320

19AV

R128

DA

48_C

urio

sity

_Nan

o_D

ebug

gerS

chD

oc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA R

evisi

on

File

PC

B N

umbe

rPC

B Re

visio

n

Des

igne

d wi

th

Dra

wn

By

PB Shee

t Titl

eD

ebug

ger

Engi

neer

A

H T

F

A08

-300

23

Size

A3

A09

-328

03

Page

D

ateA

ltium

com

DEB

UG

GER

USB

MIC

RO

-B C

ON

NEC

TOR

GN

D

USB

D_P

USB

D_N

100n

C107

100n

C108

RXTXU

ART

CDC_

UART

1kR1

07V

CC_P

3V3

SRST

STAT

US_

LED

SHIE

LD

VBU

S

VCC

_P3V

3G

ND

TP10

0

Testp

oint

Arra

y

12

34

56

78

910

TCK

TDO

TMS

Vsu

pTD

IG

ND

TRST

SRST

VTr

efG

ND

J102

GN

D

47u

F

C100

DBG0

DBG

0

21

GRE

EN L

EDSM

L-P1

2MTT

86R

D10

0

VBUS

1D-

2D+

3

GND

5SH

IELD

16

SHIE

LD2

7

ID4

SHIE

LD3

8SH

IELD

49 M

U-M

B014

2AB2

-269

J105

PAD

33

PA00

1PA

012

PA02

3PA

034

GND 10VDDANA 9

PA04

5PA

056

PA06

7PA

078

PA08 11PA09 12PA10 13PA11 14PA14 15PA15 16

PA16

17PA

1718

PA18

19PA

1920

PA22

21US

B_SO

FPA

2322

USB_

DMP

A24

23US

B_DP

PA2

524

PA2725 RESETN26 PA2827 GND28 VDDCORE29 VDDIN30 SWDCLKPA3031 SWDIOPA3132

SAM

D21

E18A

-MU

TU

100

VOUT

1

VOUT

2

GND 3

EN4

VIN

6

NC5

EP 7

MIC

5528

-33

YM

TU

101

VCC

_P3V

3

GN

D

USB

D_P

USB

D_N

GN

D

1uC106

VCC

_MCU

_CO

RE

VCC

_P3V

3

VCC

_P3V

3

22u

FC1

01

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

3V

CC_P

3V3

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

4V

CC_P

3V3

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

5V

CC_P

3V3

GN

D

GN

D GN

D

GN

D

VCC

_ED

GE

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

7V

CC_P

3V3

GN

DDB

G2

DBG

3_CT

RL

S1_0

_TX

S1_1

_RX

S0_2

_TX

DA

CV

TG_A

DC

RESE

RVED

S0_3

_CLK

DBG0_CTRL

CDC_

TX_C

TRL

BOO

T

DEB

UG

GER

PO

WER

STA

TUS

LED

EN1

BYP

6

VOUT

4

GND

2

VIN

3

NCA

DJ5

GND 7

MIC

5353

U10

2

100n

C102

GN

D

GN

D

47kR101

27kR104 G

ND

33k

R106

22u

F

C103 G

ND

1kR1

08

J100

VCC

_LEV

ELV

CC_R

EGU

LATO

R

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

6V

CC_P

3V3

GN

DDB

G1

CDC_

RXCD

C_TX

DBG3

DBG1_CTRL

DEB

UG

GER

REG

ULA

TOR

REG_ENABLE

REG

_EN

ABL

E

47kR103

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

47kR102

47kR105

SWCL

K

GN

D

47kR100 G

ND

DBG

2

S0_0

_RX

DBG

1_CT

RL

DBG

0_CT

RL

DBG

3 O

PEN

DR

AIN

TAR

GET

AD

JUST

ABL

E R

EGU

LATO

R

SRST

DEB

UG

GER

TES

TPO

INT DBG2_CTRL

VO

FFCD

C_RX

_CTR

L

47kR109

DBG

1

CDC_

TX_C

TRL

CDC_

RX_C

TRL

SWCL

K

REG_ADJUST

DBG2_GPIO

DBG

3_CT

RL

DBG

2_CT

RL

UPD

I

UPD

I

GPI

O

GPI

O

RESE

T

Sign

al

DBG

0

DBG

1

DBG

2

DBG

3

ICSP

Inte

rface

DAT

CLK

GPI

O

MCL

R

DBG

3

CD

C T

X

CD

C R

X

UA

RT R

X

UA

RT T

X

UA

RT R

X

UA

RT T

X

TAR

GET

TAR

GET

1kR1

10

VBUS_ADC

1

23

DM

N65

D8L

FBQ

101

VC

C-

-

ID_S

YS

VOFF

1kR112

VCC

_P3V

3

VTG

_AD

CD

AC

MIC

9416

3

VIN

B2VO

UTA1

VIN

A2

ENC2

GND

C1VO

UTB1

U10

8

GN

D

ID_S

YS

VTG

_EN

VTG_EN

VBUS_ADC

SWD

IO

ID_S

YS

TP10

1G

ND

SWD

IO

VO

FF

47kR111 G

ND

ID P

IN

MC3

6213

F100

VCC

_VBU

S

VCC

_VBU

S

VCC

_VBU

S

J101

VCC

_TA

RGET

47k

R113

Prog

ram

min

g co

nnec

tor f

or

fact

ory

prog

ram

min

g of

D

EBU

GG

ER

MIC

5528

Vi

n 2

5V

to 5

5V

Vout

Fix

ed 3

3V

Imax

500

mA

Dro

pout

260

mV

5

00m

A

PTC

Rese

ttabl

e fu

se

Hol

d cu

rrent

500

mA

Trip

cur

rent

100

0mA

Adj

usta

ble

outp

ut a

nd li

mita

tions

- T

he D

EBU

GG

ER c

an a

djus

t the

out

put v

olta

ge o

f the

regu

lato

r bet

wee

n 1

25V

and

51

V to

the

targ

et

- The

vol

tage

out

put i

s lim

ited

by th

e in

put (

USB

) w

hich

can

var

y be

twee

n 4

40V

to 5

25V

- The

leve

l shi

fters

hav

e a

min

imal

vol

tage

leve

l of 1

65V

and

will

lim

it th

e m

inim

um o

pera

ting

volta

ge a

llow

ed fo

r the

ta

rget

to st

ill a

llow

com

mun

icat

ion

- The

MIC

9416

3 ha

s a m

inim

al v

olta

ge le

vel o

f 17

0V a

nd w

ill li

mit

the

min

imum

vol

tage

del

iver

ed to

the

targ

et

- Firm

war

e co

nfig

urat

ion

will

lim

it th

e vo

ltage

rang

e to

be

with

in th

e th

e ta

rget

spec

ifica

tion

R113

is re

quire

d to

pul

l the

Q

101

gate

to a

def

ined

va

lue

whe

n th

e U

100

is no

t po

wer

ed

J100

Cu

t-stra

p us

ed fo

r ful

l sep

arat

ion

of ta

rget

pow

er fr

om th

e le

vel s

hifte

rs a

nd o

n-bo

ard

regu

lato

rs

- For

cur

rent

mea

sure

men

ts us

ing

an e

xter

nal p

ower

supp

ly t

his s

trap

coul

d be

cut

for m

ore

accu

rate

mea

sure

men

ts L

eaka

ge b

ack

thro

ugh

the

switc

h is

in th

e m

icro

am

pere

rang

e

J101

Th

is is

foot

prin

t for

a 1

x2 1

00m

il pi

tch

pin-

head

er th

at c

an b

e us

ed fo

r eas

y cu

rrent

mea

sure

men

t to

the

targ

et m

icro

cont

rolle

r and

the

LED

Bu

tton

To

use

the

foot

prin

t- C

ut th

e tra

ck b

etw

een

the

hole

s an

d m

ount

a p

in-h

eade

r

MIC

5353

Vi

n 2

6V

to 6

VVo

ut 1

25V

to 5

1V

Imax

500

mA

Dro

pout

(typ

ical

) 50

mV

15

0mA

160

mV

5

00m

AA

ccur

acy

2

initi

alTh

erm

al sh

utdo

wn

and

curre

nt li

mit

Max

imum

out

put v

olta

ge is

lim

ited

by th

e in

put v

olta

ge a

nd th

e dr

opou

t vol

tage

in th

e re

gula

tor

(Vm

ax =

Vin

- dr

opou

t)

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 30

72 Assembly DrawingFigure 7-2 AVR128DA48 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

PAC20002 PAC20001 COC200

PAC20102 PAC20101 COC201

PAC20202 PAC20201 COC202

PAC20301 PAC20302 COC203

PAC20401 PAC20402 COC204

PAC20502

PAC20501 COC205

PAD10002 PAD10001 COD100

PAD20001

PAD20002 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

PAJ20701 PAJ20702 PAJ20705 COJ207

PAJ20801 PAJ20802 PAJ20805 COJ208

PAJ20901 PAJ20902 COJ209

PAJ21002 PAJ21001 COJ210

PAJ21102 PAJ21101 COJ211

PAL20002 PAL20001 COL200

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

PAR20002 PAR20001 COR200

PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203

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

PAU200048 PAU200047 PAU200046 PAU200045 PAU200044 PAU200043 PAU200042 PAU200041 PAU200040 PAU200039 PAU200038 PAU200037 PAU200036 PAU200035 PAU200034 PAU200033 PAU200032 PAU200031 PAU200030 PAU200029 PAU200028 PAU200027 PAU200026 PAU200025 PAU200024 PAU200023 PAU200022 PAU200021 PAU200020 PAU200019 PAU200018 PAU200017 PAU200016 PAU200015 PAU200014 PAU200013

PAU200012 PAU200011 PAU200010 PAU20009 PAU20008 PAU20007 PAU20006 PAU20005 PAU20004 PAU20003 PAU20002 PAU20001

COU200

PAXC20001

PAXC20002

COXC200

Figure 7-3 AVR128DA48 Curiosity Nano Assembly Drawing Bottom

ctR

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20002 PAC20001 COC200

PAC20102 PAC20101 COC201

PAC20202 PAC20201 COC202

PAC20301 PAC20302 COC203

PAC20401 PAC20402 COC204

PAC20502

PAC20501 COC205

PAD10002 PAD10001 COD100

PAD20001

PAD20002 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

PAJ20701 PAJ20702 PAJ20705 COJ207

PAJ20801 PAJ20802 PAJ20805 COJ208

PAJ20901 PAJ20902 COJ209

PAJ21002 PAJ21001 COJ210

PAJ21102 PAJ21101 COJ211

PAL20002 PAL20001 COL200

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

PAR20002 PAR20001 COR200

PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203

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

PAU200048 PAU200047 PAU200046 PAU200045 PAU200044 PAU200043 PAU200042 PAU200041 PAU200040 PAU200039 PAU200038 PAU200037 PAU200036 PAU200035 PAU200034 PAU200033 PAU200032 PAU200031 PAU200030 PAU200029 PAU200028 PAU200027 PAU200026 PAU200025 PAU200024 PAU200023 PAU200022 PAU200021 PAU200020 PAU200019 PAU200018 PAU200017 PAU200016 PAU200015 PAU200014 PAU200013

PAU200012 PAU200011 PAU200010 PAU20009 PAU20008 PAU20007 PAU20006 PAU20005 PAU20004 PAU20003 PAU20002 PAU20001

COU200

PAXC20001

PAXC20002

COXC200

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 31

73 Curiosity Nano Base for Click boardstrade

Figure 7-4 AVR128DA48 Curiosity Nano Pinout Mapping

USB

DEB

UG

GER

AVR1

28D

A48

SW0

LED

0

PS L

EDNC

NC

ID

ID

CDC RX

CDCRX

USART1 TX

PC0

CDC TX

CDCTX

USART1 RX

PC1

DBG1

DBG1

PC6

LED0

DBG2

DBG2

PC7

SW0

PA0

PA0

USART0 TX

PTC XY0

PA1

PA1

USART0 RX

PTC XY1

PC2

PC2

TWI0 SDA

PC3

PC3

TWI0 SCL

PA4

PA4

SPI0 MOSI

PTC XY4

PA5

PA5

SPI0 MISO

PTC XY5

PA6

PA6

SPI0 SCK

PTC XY6

PA7

PA7

SPI0 SS

PTC XY7

GND

GND

PF4

PF4

USART2 TX

PTC XY36

PF5

PF5

USART2 RX

PTC XY37

PF2

PF2

PTC XY34

PF3

PF3

PTC XY35

PB0

PB0

PTC XY8

PB1

PB1

PTC XY9

PB2

PB2

PTC XY10

PB3

PB3

PTC XY11

GND

GND

PC0

PC0

USART1 TX

CDC RX

PC1

PC1

USART1 RX

CDC TX

PC6

PC6

LED0

PC7

PC7

SW0

VBUS

VBUS

VOFF

VOFF

DBG3

DBG3

PF6

DBG0

DBG0

UPDI

GND

GND

VTG

VTG

PD7

PD7

AIN7

PTC XY23

PD6

PD6

AIN6

PTC XY22

PD2

PD2

AIN2

PTC XY18

TCA0 WO2

PD1

PD1

AIN1

PTC XY17

TCA0 WO1

PD0

PD0

AIN0

PTC XY16

TCA0 WO0

PD5

PD5

AIN5

PTC XY21

PD4

PD4

AIN4

PTC XY20

PD3

PD3

AIN3

PTC XY19

GND

GND

PE3

PE3

PTC XY27

PE2

PE2

PTC XY26

PE1

PE1

PTC XY25

PE0

PE0

PTC XY24

PA3

PA3

PTC XY3

PA2

PA2

PTC XY2

PB5

PB5

PTC XY13

PB4

PB4

PTC XY12

GND

GND

PC5

PC5

PC4

PC4

(PF1)

(PF1)

(PTC XY33)

XTAL32K2

(PF0)

(PF0)

(PTC XY32)

XTAL32K1

DEB

UG

GER

AVR1

28D

A48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

Touch

Shared pin

AVR1

28D

A48

Curio

sity

Nan

o

1

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

2

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

3

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

Xpl

aine

d Pr

o Ex

tens

ion

EXT1

12

1920

Curio

sity

Nan

o Ba

sefo

r clic

k bo

ards

TM

PD3

PD0

PD7

PD6

PA7

PA1

PA6

PA0

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

PD4

PD1

PF3

PF2

PE2

PF5

PA6

PF4

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

PD5

PD2

PE1

PE0

PE3

PA1

PA6

PA0

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

ID

GND

PD4

PD5

PF3

PE1

PD1

PD2

PF2

PE3

PC2

PC3

PF5

PF4

PE2

PA4

PA5

PA6

GND

+33V

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 32

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

The block diagram below shows all connections between the debugger and the AVR128DA48 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 7-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 7-6 Details about connecting an external debugger are described in 36 Connecting ExternalDebuggers

Figure 7-5  On-Board Debugger Connections Block Diagram

DEB

UG

GER

TARGETLevel-Shift

PA04PA06PA07PA08PA16PA00PA01

USB

DIR x 5

VCC_P3V3

VBUS

VCC

_LEV

EL

VCC

_TA

RGET

DBG0DBG1DBG2DBG3CDC 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

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 33

Figure 7-6 On-Board Debugger Connection Cut Straps

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

75 Getting Started with IARIAR Embedded Workbenchreg for AVRreg is a proprietary high-efficiency compiler not based on GCC Programming anddebugging of AVR128DA48 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 7-73 In the category Debugger select the Setup tab Select Atmel-ICE as the driver as shown in Figure 7-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 7-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

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 34

Figure 7-7 Select Target Device

Figure 7-8 Select Debugger

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 35

Figure 7-9 Configure Interface

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 36

The Microchip WebsiteMicrochip provides online support via our website at httpwwwmicrochipcom This website is used to make filesand information 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 ServiceMicrochiprsquos 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 httpwwwmicrochipcompcn and follow the registration instructions

Customer SupportUsers 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 httpwwwmicrochipcomsupport

Microchip Devices Code Protection FeatureNote the following details of the code protection feature on Microchip devices

bull Microchip products meet the specification contained in their particular Microchip Data Sheetbull Microchip believes that its family of products is one of the most secure families of its kind on the market today

when used in the intended manner and under normal conditionsbull There are dishonest and possibly illegal methods used to breach the code protection feature All of these

methods to our knowledge require using the Microchip products in a manner outside the operatingspecifications contained in Microchiprsquos Data Sheets Most likely the person doing so is engaged in theft ofintellectual property

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

protection does not mean that we are guaranteeing the product as ldquounbreakablerdquo

Code protection is constantly evolving We at Microchip are committed to continuously improving the code protectionfeatures of our products Attempts to break Microchiprsquos code protection feature may be a violation of the DigitalMillennium Copyright Act If such acts allow unauthorized access to your software or other copyrighted work youmay have a right to sue for relief under that Act

Legal NoticeInformation contained in this publication regarding device applications and the like is provided only for yourconvenience and may be superseded by updates It is your responsibility to ensure that your application meets with

AVR128DA48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 37

your specifications MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHEREXPRESS OR IMPLIED WRITTEN OR ORAL STATUTORY OR OTHERWISE RELATED TO THE INFORMATIONINCLUDING BUT NOT LIMITED TO ITS CONDITION QUALITY PERFORMANCE MERCHANTABILITY ORFITNESS FOR PURPOSE Microchip disclaims all liability arising from this information and its use Use of Microchipdevices in life support andor safety applications is entirely at the buyerrsquos risk and the buyer agrees to defendindemnify and hold harmless Microchip from any and all damages claims suits or expenses resulting from suchuse No licenses are conveyed implicitly or otherwise under any Microchip intellectual property rights unlessotherwise stated

TrademarksThe 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-5760-2

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

AVR128DA48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 38

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupporthttpwwwmicrochipcomsupportWeb AddresshttpwwwmicrochipcomAtlantaDuluth 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 DS50002971A-page 39

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Kit Overview
      • 2 Getting Started
        • 21 Quick Start
        • 22 Design Documentation and Relevant Links
          • 3 Curiosity Nano
            • 31 On-Board Debugger Overview
              • 311 Debugger
              • 312 Virtual Serial Port (CDC)
                • 3121 Overview
                • 3122 Operating System Support
                • 3123 Limitations
                • 3124 Signaling
                • 3125 Advanced Use
                  • 313 Mass Storage Device
                    • 3131 Mass Storage Device Implementation
                    • 3132 Fuse Bytes
                    • 3133 Limitations of Drag-and-Drop Programming
                    • 3134 Special Commands
                      • 314 Data Gateway Interface (DGI)
                        • 3141 Debug GPIO
                        • 3142 Timestamping
                            • 32 Curiosity Nano Standard Pinout
                            • 33 Power Supply
                              • 331 Target Regulator
                              • 332 External Supply
                              • 333 VBUS Output Pin
                              • 334 Power Supply Exceptions
                                • 34 Low Power Measurement
                                • 35 Programming External Microcontrollers
                                  • 351 Supported Devices
                                  • 352 Software Configuration
                                  • 353 Hardware Modifications
                                  • 354 Connecting to External Microcontrollers
                                    • 36 Connecting External Debuggers
                                      • 4 Hardware User Guide
                                        • 41 Connectors
                                          • 411 AVR128DA48 Curiosity Nano Pinout
                                          • 412 Using Pin Headers
                                            • 42 Peripherals
                                              • 421 LED
                                              • 422 Mechanical Switch
                                              • 423 Crystal
                                              • 424 On-Board Debugger Implementation
                                                • 4241 On-Board Debugger Connections
                                                  • 5 Hardware Revision History and Known Issues
                                                    • 51 Identifying Product ID and Revision
                                                    • 52 Revision 3
                                                      • 6 Document Revision History
                                                      • 7 Appendix
                                                        • 71 Schematic
                                                        • 72 Assembly Drawing
                                                        • 73 Curiosity Nano Base for Click boardstrade
                                                        • 74 Disconnecting the On-board Debugger
                                                        • 75 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: AVR128DA48 Curiosity Nano User Guide - Microchip Technologyww1.microchip.com/downloads/en/DeviceDoc/AVR128DA48... · 2020-03-19 · AVR128DA48 Curiosity Nano AVR128DA48 Curiosity

Figure 3-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 AVR128DA48 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 AVR128DA48

354 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 33 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

AVR128DA48 Curiosity Nano has a pull-up resistor R200 connected to its RESET signal (DBG3) The location ofthe pull-up resistor is shown in the 72 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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 20

Figure 3-10 Curiosity Nano Standard Pinout

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

Table 3-4 Programming and Debugging Interfaces

Curiosity Nano Pin UPDI ICSPtrade SWD

DBG0 UPDI DATA SWDIO

DBG1 - CLK SWCLK

DBG2 - - -

DBG3 - MCLR RESET

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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 21

Figure 3-11 Connecting the MPLABreg PICkittrade 4 In-Circuit DebuggerProgrammer to AVR128DA48 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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 22

Figure 3-12 Connecting the Atmel-ICE to AVR128DA48 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 Atmel StudioMicrochip MPLABreg XIDE or mass storage programming while the external tool is active

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 23

4 Hardware User Guide

41 Connectors

411 AVR128DA48 Curiosity Nano PinoutAll the AVR128DA48 IO pins are accessible at the edge connectors on the board The image below shows the boardpinout

Figure 4-1 AVR128DA48 Curiosity Nano Pinout

USB

DEBUGGER

AVR128DA48

SW0

LED0

PS LEDNC

NC

ID

ID

CDC RX

CDCRXUSART1 TXPC0

CDC TX

CDCTXUSART1 RXPC1

DBG1

DBG

1PC6LED0

DBG2

DBG

2PC7SW0

PA0

PA0USART0 TXPTC XY0

PA1PA

1USART0 RXPTC XY1

PC2PC2TWI0 SDA

PC3

PC3TWI0 SCL

PA4

PA4SPI0 MOSIPTC XY4

PA5

PA5SPI0 MISOPTC XY5

PA6

PA6SPI0 SCKPTC XY6

PA7

PA7SPI0 SSPTC XY7

GND

GN

D

PF4

PF4USART2 TXPTC XY36

PF5

PF5USART2 RXPTC XY37

PF2

PF2PTC XY34

PF3

PF3PTC XY35

PB0

PB0PTC XY8

PB1

PB1PTC XY9

PB2

PB2PTC XY10

PB3

PB3PTC XY11

GND

GN

D

PC0

PC0USART1 TXCDC RX

PC1

PC1USART1 RXCDC TX

PC6

PC6LED0

PC7

PC7SW0

VBUS

VBU

S

VOFF

VO

FFDBG3

DBG

3 PF6

DBG0D

BG0 UPDI

GND

GN

D

VTG

VTG

PD7

PD7 AIN7 PTC XY23

PD6

PD6 AIN6 PTC XY22

PD2

PD2 AIN2 PTC XY18 TCA0 WO2

PD1

PD1 AIN1 PTC XY17 TCA0 WO1

PD0

PD0 AIN0 PTC XY16 TCA0 WO0

PD5

PD5 AIN5 PTC XY21

PD4

PD4 AIN4 PTC XY20

PD3

PD3 AIN3 PTC XY19

GND

GN

D

PE3

PE3 PTC XY27

PE2

PE2 PTC XY26

PE1

PE1 PTC XY25

PE0

PE0 PTC XY24

PA3

PA3 PTC XY3

PA2

PA2 PTC XY2

PB5

PB5 PTC XY13

PB4

PB4 PTC XY12

GND

GN

D

PC5

PC5

PC4

PC4

(PF1)

(PF1) (PTC XY33) XTAL32K2

(PF0)

(PF0) (PTC XY32) XTAL32K1

DEBUGGERAVR128DA48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

Touch

Shared pin

AVR128DA48Curiosity Nano

412 Using Pin HeadersThe edge connector footprint on AVR128DA48 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

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

AVR128DA48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 24

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

42 Peripherals

421 LEDThere is one yellow user LED available on the AVR128DA48 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 4-1 LED Connection

AVR128DA48 Pin Function Shared Functionality

PC6 Yellow LED0 Edge connector On-board debugger

422 Mechanical SwitchThe AVR128DA48 Curiosity Nano has one mechanical switch This is a generic user-configurable switch When theswitch 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 PC7

Table 4-2 Mechanical Switch

AVR128DA48 Pin Description Shared Functionality

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

423 Crystal

The AVR128DA48 Curiosity Nano board has a 32768 kHz crystal mounted

The AVR128DA48 is connected to the crystal by default but the GPIOs are also routed to the edge connectorthrough two solder points The two IO lines routed to the edge connector are disconnected by default to reduce thechance of an external signal causing contention with the crystal and to remove excessive capacitance on the linesTo use PF0 and PF1 as GPIO some hardware modifications are required

bull Disconnect the crystal by cutting the two straps on the top side of the board next to the crystal (J210 J211) Thecrystal 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 (J207 J208)

The cut straps and solder points can be seen in Figure 4-2

Table 4-3 Crystal Connections

AVR128DA48 Pin Function Shared Functionality

PF0 TOSC1 (Crystal input) Edge connector

PF1 TOSC2 (Crystal output) Edge connector

AVR128DA48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 25

Figure 4-2 Crystal Connection and Cut Straps

424 On-Board Debugger ImplementationAVR128DA48 Curiosity Nano features an on-board debugger that can be used to program and debug theAVR128DA48 using UPDI The on-board debugger also includes a virtual serial port (CDC) interface over UART anddebug GPIO Atmel StudioMicrochip MPLABreg X IDE 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

4241 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 31 On-Board DebuggerOverview

Table 4-4 On-Board Debugger Connections

AVR128DA48Pin

Debugger Pin Function Shared Functionality

RF1 CDC TX UART RX (AVR128DA48 RX line) Edge connector

RF0 CDC RX UART TX (AVR128DA48 TX line) Edge connector

UPDI DBG0 UPDI Edge connector

PC6 DBG1 GPIO1 Edge connector LED

PC7 DBG2 GPIO0 Edge connector Mechanical Switch

PF6 DBG3 RESET Edge connector

AVR128DA48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 26

5 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

51 Identifying Product ID and RevisionThe revision and product identifier of the AVR128DA48 Curiosity Nano Board can be found in two ways Either byutilizing the Atmel StudioMicrochip MPLABreg X IDE Kit Window or by looking at the sticker on the bottom side of thePCB

By connecting AVR128DA48 Curiosity Nano to a computer with Atmel StudioMicrochip MPLABreg X IDE running theKit Window will pop up The first six digits of the serial number which is listed under kit information contain theproduct identifier 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 AVR128DA48 Curiosity Nano is A09-3280

52 Revision 3Revision 3 is the initially released revision There are no known issues with this revision

AVR128DA48 Curiosity NanoHardware Revision History and Known Issues

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 27

6 Document Revision HistoryDoc rev Date Comment

A 032020 Initial document release

AVR128DA48 Curiosity NanoDocument Revision History

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 28

7 Appendix

71 SchematicFigure 7-1 AVR128DA48 Curiosity Nano Schematic

11

22

33

44

55

66

77

88

DD

CC

BB

AA

2 of

4

AVR1

28D

A48

Curio

sity

Nan

o

102

320

19AV

R128

DA

48_C

urio

sity

_Nan

o_Ta

rget

_MCU

Sch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA R

evisi

on

File

PC

B N

umbe

rPC

B Re

visio

n

Des

igne

d wi

th

Dra

wn

By

PB Shee

t Titl

eTa

rget

MCU

Engi

neer

A

H T

F

A08

-300

23

Size

A3

A09

-328

03

Page

D

ateA

ltium

com

GN

DV

CC_T

ARG

ET

100n

C201

GN

D

PA5_

SPI0

_MIS

OPA

6_SP

I0_S

CKPA

7_SP

I0_S

SPB

0_U

ART

3_TX

PB1_

UA

RT3_

RXPB

2PB

3PB

4PB

5PC

0_U

ART

1_TX

PC1_

UA

RT1_

RXPC

2_I2

C0_S

DA

PC3_I2C0_SCL

PC4PC5PC6_LED0_GPIO1PC7_SW0_GPIO0PD0_AIN0_WO0PD1_AIN1_WO1PD2_AIN2_WO2PD3_AIN3PD4_AIN4

PA3

PA1_UART0_RX

UPDI

PF5_UART2_RX

PF3

PF2

PF1_

TOSC

2PF

0_TO

SC1

PE3

PE2

PE1

PE0

PD5_

AIN

5PD

6_A

IN6

PD7_

AIN

7

GN

D

VCC

_TA

RGET

100n

C202

GN

DV

CC_T

ARG

ET10

0n

C200

PF1_TOSC2

PF0_TOSC1

PA2

PA0_UART0_TX

PF4_UART2_TX

PA4_SPI0_MOSI

GN

D

PA7_

SPI0

_SS

PA6_

SPI0

_SCK

PA5_

SPI0

_MIS

OPA

4_SP

I0_M

OSI

PA3

PA2

PA1_

UA

RT0_

RXPA

0_U

ART

0_TX

PB0_

UA

RT3_

TXPB

1_U

ART

3_RX

PB2

PB3

PB4

PB5

PD7_

AIN

7PD

6_A

IN6

PF5_

UA

RT2_

RXPF

4_U

ART

2_TX

PF3

PF2

32kH

z C

ryst

al

1kR203

USE

R L

ED

VCC

_TA

RGET

PF6_RESET

PC7_SW0_GPIO0

PC6_LED0_GPIO1

GN

D

USE

R B

UTT

ON

PE3

PE2

PE1

PE0

PC0_

UA

RT1_

TXPC

1_U

ART

1_RX

PC2_

I2C0

_SD

APC

3_I2

C0_S

CL

PC4

PC5

PC6_

LED

0_G

PIO

1PC

7_SW

0_G

PIO

0

1kR202

YELLOWLEDSML-D12Y1WT86

2 1D200

TS604VM1-035CR13

4 2

SW20

0

GN

DV

CC_E

DG

E

GN

DG

ND

GN

DG

ND

UPD

IPF

6_RE

SET

J207

J208

J209

BLM

18PG

471S

N1

L200

AVR1

28D

A48

22u

FC2

05

VCC

_ED

GE

GN

D

DBG0

CDC_

UART

TXRXU

ART

CDC_TXCDC_RX

DBG2

DBG1

DBG3

DBG2

DEB

UG

GER

CO

NN

ECTI

ON

S

DBG1

DBG3DBG0

VOFF

ID_S

YS

ID_SYS

VOFF

TAR

GET

BU

LK

VCC

_TA

RGET

RES

ET P

ull

VBU

S

CDC

RX3

CDC

TX4

DBG

15

DBG

26

0 TX

71

RX8

2 SD

A9

3 SC

L10

4 M

OSI

115

MIS

O12

6 SC

K13

7 SS

14G

ND

150

(TX

)16

1 (R

X)

172

183

190

20

GN

D24

DBG

354

DBG

053

GN

D52

VCC

51

PWM

346

AD

C 2

45A

DC

144

AD

C 0

43G

ND

42

438

434

GN

D33

AD

C 7

50A

DC

649

AD

C 5

48PW

M 4

47

DEB

UG

GER

TARG

ET

ID2

VO

FF55

121

222

323

025

126

227

328

429

530

631

732

535

636

737

539

640

741

RESE

RVED

1V

BUS

56

CNA

NO

56-p

in e

dge

conn

ecto

r

J200

J201

J203

J205

J206

J202

J204

PF1

PF0

PF1_

TOSC

2PF

0_TO

SC1

NC

J211

J210

XOUT

XIN

47kR200

AVR

128D

A48

UPD

I

GPI

O1

GPI

O0

RESE

T

DBG

0

DBG

1

DBG

2

DBG

3

Deb

ugge

r

CD

C T

X

CD

C R

X

UA

RT1

RX

UA

RT1

TX

VTG

18V

- 5

5VPC6

PC7

PF6

UPD

I

PC0

PC1

Nam

ePi

n

PA5

1PA

62

PA7

3PB

04

PB1

5PB

26

PB3

7PB

48

PB5

9PC

010

PC1

11PC

212

PC3 13VDD 14GND 15PC4 16PC5 17PC6 18PC7 19PD0 20PD1 21PD2 22PD3 23PD4 24

PD5

25PD

626

PD7

27AV

DD28

GND

29PE

030

PE1

31PE

232

PE3

33XT

AL32

K1P

F034

XTAL

32K2

PF1

35PF

236

PF337 PF438 PF539 PF640 UPDI41 VDD42 GND43 EXTCLKPA044 PA145 PA246 PA347 PA448

AVR1

28D

A48

TQ

FPU

200

PC0_

UA

RT1_

TXPC

1_U

ART

1_RX

PC6_

LED

0_G

PIO

1PC

7_SW

0_G

PIO

0

AVD

D

PD2_

AIN

2_W

O2

PD1_

AIN

1_W

O1

PD0_

AIN

0_W

O0

PD5_

AIN

5PD

4_A

IN4

PD3_

AIN

3

XC2

00

12p

C203

12p

C204

327

68 k

Hz

Crys

tal d

atas

heet

Cc

rysta

l = 9

pFm

ax E

SR =

70k

Ohm

Acc

urac

y plusmn2

0ppm

AVR1

28D

A48

dat

ashe

et

Cxin

= 4

1pF

Cxou

t = 6

0pF

Cl asymp

1( (

14

1pF)

+ (1

60

pF) )

asymp2

44pF

Max

imum

Loa

d =

125

pFM

axim

um E

SR =

80k

Ohm

Estim

ated

Cpc

b =

05p

F

Estim

ated

load

C =

2 (C

crys

tal-

Cpar

a - C

pcb)

C

= 2

(9pF

- 2

44pF

- 0

5pF)

C =

121

2pF

Sele

cted

in d

esig

n af

ter v

erifi

catio

nC=

12p

F12

pF

NO

TE o

n U

ART

CD

C

RXT

X o

n th

e he

ader

den

otes

the

inpu

tout

put d

irect

ion

of th

e sig

nal

resp

ectiv

e to

its

sour

ce

CDC

TX is

out

put f

rom

the

DEB

UG

GER

CD

C RX

is in

put t

o th

e D

EBU

GG

ER

TX is

out

put f

rom

the

TARG

ET d

evic

eRX

is in

put t

o th

e TA

RGET

dev

ice

NO

TE o

n I2

C

No

pull-

ups o

n bo

ard

Pul

l-ups

shou

ld b

e m

ount

ed c

lose

to sl

ave

devi

ce(s

)

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 29

11

22

33

44

55

66

77

88

DD

CC

BB

AA

3 of

4

AVR1

28D

A48

Curio

sity

Nan

o

102

320

19AV

R128

DA

48_C

urio

sity

_Nan

o_D

ebug

gerS

chD

oc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA R

evisi

on

File

PC

B N

umbe

rPC

B Re

visio

n

Des

igne

d wi

th

Dra

wn

By

PB Shee

t Titl

eD

ebug

ger

Engi

neer

A

H T

F

A08

-300

23

Size

A3

A09

-328

03

Page

D

ateA

ltium

com

DEB

UG

GER

USB

MIC

RO

-B C

ON

NEC

TOR

GN

D

USB

D_P

USB

D_N

100n

C107

100n

C108

RXTXU

ART

CDC_

UART

1kR1

07V

CC_P

3V3

SRST

STAT

US_

LED

SHIE

LD

VBU

S

VCC

_P3V

3G

ND

TP10

0

Testp

oint

Arra

y

12

34

56

78

910

TCK

TDO

TMS

Vsu

pTD

IG

ND

TRST

SRST

VTr

efG

ND

J102

GN

D

47u

F

C100

DBG0

DBG

0

21

GRE

EN L

EDSM

L-P1

2MTT

86R

D10

0

VBUS

1D-

2D+

3

GND

5SH

IELD

16

SHIE

LD2

7

ID4

SHIE

LD3

8SH

IELD

49 M

U-M

B014

2AB2

-269

J105

PAD

33

PA00

1PA

012

PA02

3PA

034

GND 10VDDANA 9

PA04

5PA

056

PA06

7PA

078

PA08 11PA09 12PA10 13PA11 14PA14 15PA15 16

PA16

17PA

1718

PA18

19PA

1920

PA22

21US

B_SO

FPA

2322

USB_

DMP

A24

23US

B_DP

PA2

524

PA2725 RESETN26 PA2827 GND28 VDDCORE29 VDDIN30 SWDCLKPA3031 SWDIOPA3132

SAM

D21

E18A

-MU

TU

100

VOUT

1

VOUT

2

GND 3

EN4

VIN

6

NC5

EP 7

MIC

5528

-33

YM

TU

101

VCC

_P3V

3

GN

D

USB

D_P

USB

D_N

GN

D

1uC106

VCC

_MCU

_CO

RE

VCC

_P3V

3

VCC

_P3V

3

22u

FC1

01

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

3V

CC_P

3V3

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

4V

CC_P

3V3

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

5V

CC_P

3V3

GN

D

GN

D GN

D

GN

D

VCC

_ED

GE

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

7V

CC_P

3V3

GN

DDB

G2

DBG

3_CT

RL

S1_0

_TX

S1_1

_RX

S0_2

_TX

DA

CV

TG_A

DC

RESE

RVED

S0_3

_CLK

DBG0_CTRL

CDC_

TX_C

TRL

BOO

T

DEB

UG

GER

PO

WER

STA

TUS

LED

EN1

BYP

6

VOUT

4

GND

2

VIN

3

NCA

DJ5

GND 7

MIC

5353

U10

2

100n

C102

GN

D

GN

D

47kR101

27kR104 G

ND

33k

R106

22u

F

C103 G

ND

1kR1

08

J100

VCC

_LEV

ELV

CC_R

EGU

LATO

R

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

6V

CC_P

3V3

GN

DDB

G1

CDC_

RXCD

C_TX

DBG3

DBG1_CTRL

DEB

UG

GER

REG

ULA

TOR

REG_ENABLE

REG

_EN

ABL

E

47kR103

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

47kR102

47kR105

SWCL

K

GN

D

47kR100 G

ND

DBG

2

S0_0

_RX

DBG

1_CT

RL

DBG

0_CT

RL

DBG

3 O

PEN

DR

AIN

TAR

GET

AD

JUST

ABL

E R

EGU

LATO

R

SRST

DEB

UG

GER

TES

TPO

INT DBG2_CTRL

VO

FFCD

C_RX

_CTR

L

47kR109

DBG

1

CDC_

TX_C

TRL

CDC_

RX_C

TRL

SWCL

K

REG_ADJUST

DBG2_GPIO

DBG

3_CT

RL

DBG

2_CT

RL

UPD

I

UPD

I

GPI

O

GPI

O

RESE

T

Sign

al

DBG

0

DBG

1

DBG

2

DBG

3

ICSP

Inte

rface

DAT

CLK

GPI

O

MCL

R

DBG

3

CD

C T

X

CD

C R

X

UA

RT R

X

UA

RT T

X

UA

RT R

X

UA

RT T

X

TAR

GET

TAR

GET

1kR1

10

VBUS_ADC

1

23

DM

N65

D8L

FBQ

101

VC

C-

-

ID_S

YS

VOFF

1kR112

VCC

_P3V

3

VTG

_AD

CD

AC

MIC

9416

3

VIN

B2VO

UTA1

VIN

A2

ENC2

GND

C1VO

UTB1

U10

8

GN

D

ID_S

YS

VTG

_EN

VTG_EN

VBUS_ADC

SWD

IO

ID_S

YS

TP10

1G

ND

SWD

IO

VO

FF

47kR111 G

ND

ID P

IN

MC3

6213

F100

VCC

_VBU

S

VCC

_VBU

S

VCC

_VBU

S

J101

VCC

_TA

RGET

47k

R113

Prog

ram

min

g co

nnec

tor f

or

fact

ory

prog

ram

min

g of

D

EBU

GG

ER

MIC

5528

Vi

n 2

5V

to 5

5V

Vout

Fix

ed 3

3V

Imax

500

mA

Dro

pout

260

mV

5

00m

A

PTC

Rese

ttabl

e fu

se

Hol

d cu

rrent

500

mA

Trip

cur

rent

100

0mA

Adj

usta

ble

outp

ut a

nd li

mita

tions

- T

he D

EBU

GG

ER c

an a

djus

t the

out

put v

olta

ge o

f the

regu

lato

r bet

wee

n 1

25V

and

51

V to

the

targ

et

- The

vol

tage

out

put i

s lim

ited

by th

e in

put (

USB

) w

hich

can

var

y be

twee

n 4

40V

to 5

25V

- The

leve

l shi

fters

hav

e a

min

imal

vol

tage

leve

l of 1

65V

and

will

lim

it th

e m

inim

um o

pera

ting

volta

ge a

llow

ed fo

r the

ta

rget

to st

ill a

llow

com

mun

icat

ion

- The

MIC

9416

3 ha

s a m

inim

al v

olta

ge le

vel o

f 17

0V a

nd w

ill li

mit

the

min

imum

vol

tage

del

iver

ed to

the

targ

et

- Firm

war

e co

nfig

urat

ion

will

lim

it th

e vo

ltage

rang

e to

be

with

in th

e th

e ta

rget

spec

ifica

tion

R113

is re

quire

d to

pul

l the

Q

101

gate

to a

def

ined

va

lue

whe

n th

e U

100

is no

t po

wer

ed

J100

Cu

t-stra

p us

ed fo

r ful

l sep

arat

ion

of ta

rget

pow

er fr

om th

e le

vel s

hifte

rs a

nd o

n-bo

ard

regu

lato

rs

- For

cur

rent

mea

sure

men

ts us

ing

an e

xter

nal p

ower

supp

ly t

his s

trap

coul

d be

cut

for m

ore

accu

rate

mea

sure

men

ts L

eaka

ge b

ack

thro

ugh

the

switc

h is

in th

e m

icro

am

pere

rang

e

J101

Th

is is

foot

prin

t for

a 1

x2 1

00m

il pi

tch

pin-

head

er th

at c

an b

e us

ed fo

r eas

y cu

rrent

mea

sure

men

t to

the

targ

et m

icro

cont

rolle

r and

the

LED

Bu

tton

To

use

the

foot

prin

t- C

ut th

e tra

ck b

etw

een

the

hole

s an

d m

ount

a p

in-h

eade

r

MIC

5353

Vi

n 2

6V

to 6

VVo

ut 1

25V

to 5

1V

Imax

500

mA

Dro

pout

(typ

ical

) 50

mV

15

0mA

160

mV

5

00m

AA

ccur

acy

2

initi

alTh

erm

al sh

utdo

wn

and

curre

nt li

mit

Max

imum

out

put v

olta

ge is

lim

ited

by th

e in

put v

olta

ge a

nd th

e dr

opou

t vol

tage

in th

e re

gula

tor

(Vm

ax =

Vin

- dr

opou

t)

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 30

72 Assembly DrawingFigure 7-2 AVR128DA48 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

PAC20002 PAC20001 COC200

PAC20102 PAC20101 COC201

PAC20202 PAC20201 COC202

PAC20301 PAC20302 COC203

PAC20401 PAC20402 COC204

PAC20502

PAC20501 COC205

PAD10002 PAD10001 COD100

PAD20001

PAD20002 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

PAJ20701 PAJ20702 PAJ20705 COJ207

PAJ20801 PAJ20802 PAJ20805 COJ208

PAJ20901 PAJ20902 COJ209

PAJ21002 PAJ21001 COJ210

PAJ21102 PAJ21101 COJ211

PAL20002 PAL20001 COL200

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

PAR20002 PAR20001 COR200

PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203

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

PAU200048 PAU200047 PAU200046 PAU200045 PAU200044 PAU200043 PAU200042 PAU200041 PAU200040 PAU200039 PAU200038 PAU200037 PAU200036 PAU200035 PAU200034 PAU200033 PAU200032 PAU200031 PAU200030 PAU200029 PAU200028 PAU200027 PAU200026 PAU200025 PAU200024 PAU200023 PAU200022 PAU200021 PAU200020 PAU200019 PAU200018 PAU200017 PAU200016 PAU200015 PAU200014 PAU200013

PAU200012 PAU200011 PAU200010 PAU20009 PAU20008 PAU20007 PAU20006 PAU20005 PAU20004 PAU20003 PAU20002 PAU20001

COU200

PAXC20001

PAXC20002

COXC200

Figure 7-3 AVR128DA48 Curiosity Nano Assembly Drawing Bottom

ctR

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20002 PAC20001 COC200

PAC20102 PAC20101 COC201

PAC20202 PAC20201 COC202

PAC20301 PAC20302 COC203

PAC20401 PAC20402 COC204

PAC20502

PAC20501 COC205

PAD10002 PAD10001 COD100

PAD20001

PAD20002 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

PAJ20701 PAJ20702 PAJ20705 COJ207

PAJ20801 PAJ20802 PAJ20805 COJ208

PAJ20901 PAJ20902 COJ209

PAJ21002 PAJ21001 COJ210

PAJ21102 PAJ21101 COJ211

PAL20002 PAL20001 COL200

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

PAR20002 PAR20001 COR200

PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203

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

PAU200048 PAU200047 PAU200046 PAU200045 PAU200044 PAU200043 PAU200042 PAU200041 PAU200040 PAU200039 PAU200038 PAU200037 PAU200036 PAU200035 PAU200034 PAU200033 PAU200032 PAU200031 PAU200030 PAU200029 PAU200028 PAU200027 PAU200026 PAU200025 PAU200024 PAU200023 PAU200022 PAU200021 PAU200020 PAU200019 PAU200018 PAU200017 PAU200016 PAU200015 PAU200014 PAU200013

PAU200012 PAU200011 PAU200010 PAU20009 PAU20008 PAU20007 PAU20006 PAU20005 PAU20004 PAU20003 PAU20002 PAU20001

COU200

PAXC20001

PAXC20002

COXC200

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 31

73 Curiosity Nano Base for Click boardstrade

Figure 7-4 AVR128DA48 Curiosity Nano Pinout Mapping

USB

DEB

UG

GER

AVR1

28D

A48

SW0

LED

0

PS L

EDNC

NC

ID

ID

CDC RX

CDCRX

USART1 TX

PC0

CDC TX

CDCTX

USART1 RX

PC1

DBG1

DBG1

PC6

LED0

DBG2

DBG2

PC7

SW0

PA0

PA0

USART0 TX

PTC XY0

PA1

PA1

USART0 RX

PTC XY1

PC2

PC2

TWI0 SDA

PC3

PC3

TWI0 SCL

PA4

PA4

SPI0 MOSI

PTC XY4

PA5

PA5

SPI0 MISO

PTC XY5

PA6

PA6

SPI0 SCK

PTC XY6

PA7

PA7

SPI0 SS

PTC XY7

GND

GND

PF4

PF4

USART2 TX

PTC XY36

PF5

PF5

USART2 RX

PTC XY37

PF2

PF2

PTC XY34

PF3

PF3

PTC XY35

PB0

PB0

PTC XY8

PB1

PB1

PTC XY9

PB2

PB2

PTC XY10

PB3

PB3

PTC XY11

GND

GND

PC0

PC0

USART1 TX

CDC RX

PC1

PC1

USART1 RX

CDC TX

PC6

PC6

LED0

PC7

PC7

SW0

VBUS

VBUS

VOFF

VOFF

DBG3

DBG3

PF6

DBG0

DBG0

UPDI

GND

GND

VTG

VTG

PD7

PD7

AIN7

PTC XY23

PD6

PD6

AIN6

PTC XY22

PD2

PD2

AIN2

PTC XY18

TCA0 WO2

PD1

PD1

AIN1

PTC XY17

TCA0 WO1

PD0

PD0

AIN0

PTC XY16

TCA0 WO0

PD5

PD5

AIN5

PTC XY21

PD4

PD4

AIN4

PTC XY20

PD3

PD3

AIN3

PTC XY19

GND

GND

PE3

PE3

PTC XY27

PE2

PE2

PTC XY26

PE1

PE1

PTC XY25

PE0

PE0

PTC XY24

PA3

PA3

PTC XY3

PA2

PA2

PTC XY2

PB5

PB5

PTC XY13

PB4

PB4

PTC XY12

GND

GND

PC5

PC5

PC4

PC4

(PF1)

(PF1)

(PTC XY33)

XTAL32K2

(PF0)

(PF0)

(PTC XY32)

XTAL32K1

DEB

UG

GER

AVR1

28D

A48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

Touch

Shared pin

AVR1

28D

A48

Curio

sity

Nan

o

1

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

2

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

3

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

Xpl

aine

d Pr

o Ex

tens

ion

EXT1

12

1920

Curio

sity

Nan

o Ba

sefo

r clic

k bo

ards

TM

PD3

PD0

PD7

PD6

PA7

PA1

PA6

PA0

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

PD4

PD1

PF3

PF2

PE2

PF5

PA6

PF4

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

PD5

PD2

PE1

PE0

PE3

PA1

PA6

PA0

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

ID

GND

PD4

PD5

PF3

PE1

PD1

PD2

PF2

PE3

PC2

PC3

PF5

PF4

PE2

PA4

PA5

PA6

GND

+33V

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 32

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

The block diagram below shows all connections between the debugger and the AVR128DA48 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 7-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 7-6 Details about connecting an external debugger are described in 36 Connecting ExternalDebuggers

Figure 7-5  On-Board Debugger Connections Block Diagram

DEB

UG

GER

TARGETLevel-Shift

PA04PA06PA07PA08PA16PA00PA01

USB

DIR x 5

VCC_P3V3

VBUS

VCC

_LEV

EL

VCC

_TA

RGET

DBG0DBG1DBG2DBG3CDC 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

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 33

Figure 7-6 On-Board Debugger Connection Cut Straps

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

75 Getting Started with IARIAR Embedded Workbenchreg for AVRreg is a proprietary high-efficiency compiler not based on GCC Programming anddebugging of AVR128DA48 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 7-73 In the category Debugger select the Setup tab Select Atmel-ICE as the driver as shown in Figure 7-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 7-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

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 34

Figure 7-7 Select Target Device

Figure 7-8 Select Debugger

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 35

Figure 7-9 Configure Interface

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 36

The Microchip WebsiteMicrochip provides online support via our website at httpwwwmicrochipcom This website is used to make filesand information 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 ServiceMicrochiprsquos 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 httpwwwmicrochipcompcn and follow the registration instructions

Customer SupportUsers 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 httpwwwmicrochipcomsupport

Microchip Devices Code Protection FeatureNote the following details of the code protection feature on Microchip devices

bull Microchip products meet the specification contained in their particular Microchip Data Sheetbull Microchip believes that its family of products is one of the most secure families of its kind on the market today

when used in the intended manner and under normal conditionsbull There are dishonest and possibly illegal methods used to breach the code protection feature All of these

methods to our knowledge require using the Microchip products in a manner outside the operatingspecifications contained in Microchiprsquos Data Sheets Most likely the person doing so is engaged in theft ofintellectual property

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

protection does not mean that we are guaranteeing the product as ldquounbreakablerdquo

Code protection is constantly evolving We at Microchip are committed to continuously improving the code protectionfeatures of our products Attempts to break Microchiprsquos code protection feature may be a violation of the DigitalMillennium Copyright Act If such acts allow unauthorized access to your software or other copyrighted work youmay have a right to sue for relief under that Act

Legal NoticeInformation contained in this publication regarding device applications and the like is provided only for yourconvenience and may be superseded by updates It is your responsibility to ensure that your application meets with

AVR128DA48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 37

your specifications MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHEREXPRESS OR IMPLIED WRITTEN OR ORAL STATUTORY OR OTHERWISE RELATED TO THE INFORMATIONINCLUDING BUT NOT LIMITED TO ITS CONDITION QUALITY PERFORMANCE MERCHANTABILITY ORFITNESS FOR PURPOSE Microchip disclaims all liability arising from this information and its use Use of Microchipdevices in life support andor safety applications is entirely at the buyerrsquos risk and the buyer agrees to defendindemnify and hold harmless Microchip from any and all damages claims suits or expenses resulting from suchuse No licenses are conveyed implicitly or otherwise under any Microchip intellectual property rights unlessotherwise stated

TrademarksThe 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-5760-2

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

AVR128DA48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 38

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupporthttpwwwmicrochipcomsupportWeb AddresshttpwwwmicrochipcomAtlantaDuluth 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 DS50002971A-page 39

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Kit Overview
      • 2 Getting Started
        • 21 Quick Start
        • 22 Design Documentation and Relevant Links
          • 3 Curiosity Nano
            • 31 On-Board Debugger Overview
              • 311 Debugger
              • 312 Virtual Serial Port (CDC)
                • 3121 Overview
                • 3122 Operating System Support
                • 3123 Limitations
                • 3124 Signaling
                • 3125 Advanced Use
                  • 313 Mass Storage Device
                    • 3131 Mass Storage Device Implementation
                    • 3132 Fuse Bytes
                    • 3133 Limitations of Drag-and-Drop Programming
                    • 3134 Special Commands
                      • 314 Data Gateway Interface (DGI)
                        • 3141 Debug GPIO
                        • 3142 Timestamping
                            • 32 Curiosity Nano Standard Pinout
                            • 33 Power Supply
                              • 331 Target Regulator
                              • 332 External Supply
                              • 333 VBUS Output Pin
                              • 334 Power Supply Exceptions
                                • 34 Low Power Measurement
                                • 35 Programming External Microcontrollers
                                  • 351 Supported Devices
                                  • 352 Software Configuration
                                  • 353 Hardware Modifications
                                  • 354 Connecting to External Microcontrollers
                                    • 36 Connecting External Debuggers
                                      • 4 Hardware User Guide
                                        • 41 Connectors
                                          • 411 AVR128DA48 Curiosity Nano Pinout
                                          • 412 Using Pin Headers
                                            • 42 Peripherals
                                              • 421 LED
                                              • 422 Mechanical Switch
                                              • 423 Crystal
                                              • 424 On-Board Debugger Implementation
                                                • 4241 On-Board Debugger Connections
                                                  • 5 Hardware Revision History and Known Issues
                                                    • 51 Identifying Product ID and Revision
                                                    • 52 Revision 3
                                                      • 6 Document Revision History
                                                      • 7 Appendix
                                                        • 71 Schematic
                                                        • 72 Assembly Drawing
                                                        • 73 Curiosity Nano Base for Click boardstrade
                                                        • 74 Disconnecting the On-board Debugger
                                                        • 75 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: AVR128DA48 Curiosity Nano User Guide - Microchip Technologyww1.microchip.com/downloads/en/DeviceDoc/AVR128DA48... · 2020-03-19 · AVR128DA48 Curiosity Nano AVR128DA48 Curiosity

Figure 3-10 Curiosity Nano Standard Pinout

USB

DEBUGGER

PS LEDNC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTGCURIOSITY NANO

Table 3-4 Programming and Debugging Interfaces

Curiosity Nano Pin UPDI ICSPtrade SWD

DBG0 UPDI DATA SWDIO

DBG1 - CLK SWCLK

DBG2 - - -

DBG3 - MCLR RESET

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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 21

Figure 3-11 Connecting the MPLABreg PICkittrade 4 In-Circuit DebuggerProgrammer to AVR128DA48 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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 22

Figure 3-12 Connecting the Atmel-ICE to AVR128DA48 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 Atmel StudioMicrochip MPLABreg XIDE or mass storage programming while the external tool is active

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 23

4 Hardware User Guide

41 Connectors

411 AVR128DA48 Curiosity Nano PinoutAll the AVR128DA48 IO pins are accessible at the edge connectors on the board The image below shows the boardpinout

Figure 4-1 AVR128DA48 Curiosity Nano Pinout

USB

DEBUGGER

AVR128DA48

SW0

LED0

PS LEDNC

NC

ID

ID

CDC RX

CDCRXUSART1 TXPC0

CDC TX

CDCTXUSART1 RXPC1

DBG1

DBG

1PC6LED0

DBG2

DBG

2PC7SW0

PA0

PA0USART0 TXPTC XY0

PA1PA

1USART0 RXPTC XY1

PC2PC2TWI0 SDA

PC3

PC3TWI0 SCL

PA4

PA4SPI0 MOSIPTC XY4

PA5

PA5SPI0 MISOPTC XY5

PA6

PA6SPI0 SCKPTC XY6

PA7

PA7SPI0 SSPTC XY7

GND

GN

D

PF4

PF4USART2 TXPTC XY36

PF5

PF5USART2 RXPTC XY37

PF2

PF2PTC XY34

PF3

PF3PTC XY35

PB0

PB0PTC XY8

PB1

PB1PTC XY9

PB2

PB2PTC XY10

PB3

PB3PTC XY11

GND

GN

D

PC0

PC0USART1 TXCDC RX

PC1

PC1USART1 RXCDC TX

PC6

PC6LED0

PC7

PC7SW0

VBUS

VBU

S

VOFF

VO

FFDBG3

DBG

3 PF6

DBG0D

BG0 UPDI

GND

GN

D

VTG

VTG

PD7

PD7 AIN7 PTC XY23

PD6

PD6 AIN6 PTC XY22

PD2

PD2 AIN2 PTC XY18 TCA0 WO2

PD1

PD1 AIN1 PTC XY17 TCA0 WO1

PD0

PD0 AIN0 PTC XY16 TCA0 WO0

PD5

PD5 AIN5 PTC XY21

PD4

PD4 AIN4 PTC XY20

PD3

PD3 AIN3 PTC XY19

GND

GN

D

PE3

PE3 PTC XY27

PE2

PE2 PTC XY26

PE1

PE1 PTC XY25

PE0

PE0 PTC XY24

PA3

PA3 PTC XY3

PA2

PA2 PTC XY2

PB5

PB5 PTC XY13

PB4

PB4 PTC XY12

GND

GN

D

PC5

PC5

PC4

PC4

(PF1)

(PF1) (PTC XY33) XTAL32K2

(PF0)

(PF0) (PTC XY32) XTAL32K1

DEBUGGERAVR128DA48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

Touch

Shared pin

AVR128DA48Curiosity Nano

412 Using Pin HeadersThe edge connector footprint on AVR128DA48 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

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

AVR128DA48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 24

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

42 Peripherals

421 LEDThere is one yellow user LED available on the AVR128DA48 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 4-1 LED Connection

AVR128DA48 Pin Function Shared Functionality

PC6 Yellow LED0 Edge connector On-board debugger

422 Mechanical SwitchThe AVR128DA48 Curiosity Nano has one mechanical switch This is a generic user-configurable switch When theswitch 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 PC7

Table 4-2 Mechanical Switch

AVR128DA48 Pin Description Shared Functionality

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

423 Crystal

The AVR128DA48 Curiosity Nano board has a 32768 kHz crystal mounted

The AVR128DA48 is connected to the crystal by default but the GPIOs are also routed to the edge connectorthrough two solder points The two IO lines routed to the edge connector are disconnected by default to reduce thechance of an external signal causing contention with the crystal and to remove excessive capacitance on the linesTo use PF0 and PF1 as GPIO some hardware modifications are required

bull Disconnect the crystal by cutting the two straps on the top side of the board next to the crystal (J210 J211) Thecrystal 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 (J207 J208)

The cut straps and solder points can be seen in Figure 4-2

Table 4-3 Crystal Connections

AVR128DA48 Pin Function Shared Functionality

PF0 TOSC1 (Crystal input) Edge connector

PF1 TOSC2 (Crystal output) Edge connector

AVR128DA48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 25

Figure 4-2 Crystal Connection and Cut Straps

424 On-Board Debugger ImplementationAVR128DA48 Curiosity Nano features an on-board debugger that can be used to program and debug theAVR128DA48 using UPDI The on-board debugger also includes a virtual serial port (CDC) interface over UART anddebug GPIO Atmel StudioMicrochip MPLABreg X IDE 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

4241 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 31 On-Board DebuggerOverview

Table 4-4 On-Board Debugger Connections

AVR128DA48Pin

Debugger Pin Function Shared Functionality

RF1 CDC TX UART RX (AVR128DA48 RX line) Edge connector

RF0 CDC RX UART TX (AVR128DA48 TX line) Edge connector

UPDI DBG0 UPDI Edge connector

PC6 DBG1 GPIO1 Edge connector LED

PC7 DBG2 GPIO0 Edge connector Mechanical Switch

PF6 DBG3 RESET Edge connector

AVR128DA48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 26

5 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

51 Identifying Product ID and RevisionThe revision and product identifier of the AVR128DA48 Curiosity Nano Board can be found in two ways Either byutilizing the Atmel StudioMicrochip MPLABreg X IDE Kit Window or by looking at the sticker on the bottom side of thePCB

By connecting AVR128DA48 Curiosity Nano to a computer with Atmel StudioMicrochip MPLABreg X IDE running theKit Window will pop up The first six digits of the serial number which is listed under kit information contain theproduct identifier 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 AVR128DA48 Curiosity Nano is A09-3280

52 Revision 3Revision 3 is the initially released revision There are no known issues with this revision

AVR128DA48 Curiosity NanoHardware Revision History and Known Issues

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 27

6 Document Revision HistoryDoc rev Date Comment

A 032020 Initial document release

AVR128DA48 Curiosity NanoDocument Revision History

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 28

7 Appendix

71 SchematicFigure 7-1 AVR128DA48 Curiosity Nano Schematic

11

22

33

44

55

66

77

88

DD

CC

BB

AA

2 of

4

AVR1

28D

A48

Curio

sity

Nan

o

102

320

19AV

R128

DA

48_C

urio

sity

_Nan

o_Ta

rget

_MCU

Sch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA R

evisi

on

File

PC

B N

umbe

rPC

B Re

visio

n

Des

igne

d wi

th

Dra

wn

By

PB Shee

t Titl

eTa

rget

MCU

Engi

neer

A

H T

F

A08

-300

23

Size

A3

A09

-328

03

Page

D

ateA

ltium

com

GN

DV

CC_T

ARG

ET

100n

C201

GN

D

PA5_

SPI0

_MIS

OPA

6_SP

I0_S

CKPA

7_SP

I0_S

SPB

0_U

ART

3_TX

PB1_

UA

RT3_

RXPB

2PB

3PB

4PB

5PC

0_U

ART

1_TX

PC1_

UA

RT1_

RXPC

2_I2

C0_S

DA

PC3_I2C0_SCL

PC4PC5PC6_LED0_GPIO1PC7_SW0_GPIO0PD0_AIN0_WO0PD1_AIN1_WO1PD2_AIN2_WO2PD3_AIN3PD4_AIN4

PA3

PA1_UART0_RX

UPDI

PF5_UART2_RX

PF3

PF2

PF1_

TOSC

2PF

0_TO

SC1

PE3

PE2

PE1

PE0

PD5_

AIN

5PD

6_A

IN6

PD7_

AIN

7

GN

D

VCC

_TA

RGET

100n

C202

GN

DV

CC_T

ARG

ET10

0n

C200

PF1_TOSC2

PF0_TOSC1

PA2

PA0_UART0_TX

PF4_UART2_TX

PA4_SPI0_MOSI

GN

D

PA7_

SPI0

_SS

PA6_

SPI0

_SCK

PA5_

SPI0

_MIS

OPA

4_SP

I0_M

OSI

PA3

PA2

PA1_

UA

RT0_

RXPA

0_U

ART

0_TX

PB0_

UA

RT3_

TXPB

1_U

ART

3_RX

PB2

PB3

PB4

PB5

PD7_

AIN

7PD

6_A

IN6

PF5_

UA

RT2_

RXPF

4_U

ART

2_TX

PF3

PF2

32kH

z C

ryst

al

1kR203

USE

R L

ED

VCC

_TA

RGET

PF6_RESET

PC7_SW0_GPIO0

PC6_LED0_GPIO1

GN

D

USE

R B

UTT

ON

PE3

PE2

PE1

PE0

PC0_

UA

RT1_

TXPC

1_U

ART

1_RX

PC2_

I2C0

_SD

APC

3_I2

C0_S

CL

PC4

PC5

PC6_

LED

0_G

PIO

1PC

7_SW

0_G

PIO

0

1kR202

YELLOWLEDSML-D12Y1WT86

2 1D200

TS604VM1-035CR13

4 2

SW20

0

GN

DV

CC_E

DG

E

GN

DG

ND

GN

DG

ND

UPD

IPF

6_RE

SET

J207

J208

J209

BLM

18PG

471S

N1

L200

AVR1

28D

A48

22u

FC2

05

VCC

_ED

GE

GN

D

DBG0

CDC_

UART

TXRXU

ART

CDC_TXCDC_RX

DBG2

DBG1

DBG3

DBG2

DEB

UG

GER

CO

NN

ECTI

ON

S

DBG1

DBG3DBG0

VOFF

ID_S

YS

ID_SYS

VOFF

TAR

GET

BU

LK

VCC

_TA

RGET

RES

ET P

ull

VBU

S

CDC

RX3

CDC

TX4

DBG

15

DBG

26

0 TX

71

RX8

2 SD

A9

3 SC

L10

4 M

OSI

115

MIS

O12

6 SC

K13

7 SS

14G

ND

150

(TX

)16

1 (R

X)

172

183

190

20

GN

D24

DBG

354

DBG

053

GN

D52

VCC

51

PWM

346

AD

C 2

45A

DC

144

AD

C 0

43G

ND

42

438

434

GN

D33

AD

C 7

50A

DC

649

AD

C 5

48PW

M 4

47

DEB

UG

GER

TARG

ET

ID2

VO

FF55

121

222

323

025

126

227

328

429

530

631

732

535

636

737

539

640

741

RESE

RVED

1V

BUS

56

CNA

NO

56-p

in e

dge

conn

ecto

r

J200

J201

J203

J205

J206

J202

J204

PF1

PF0

PF1_

TOSC

2PF

0_TO

SC1

NC

J211

J210

XOUT

XIN

47kR200

AVR

128D

A48

UPD

I

GPI

O1

GPI

O0

RESE

T

DBG

0

DBG

1

DBG

2

DBG

3

Deb

ugge

r

CD

C T

X

CD

C R

X

UA

RT1

RX

UA

RT1

TX

VTG

18V

- 5

5VPC6

PC7

PF6

UPD

I

PC0

PC1

Nam

ePi

n

PA5

1PA

62

PA7

3PB

04

PB1

5PB

26

PB3

7PB

48

PB5

9PC

010

PC1

11PC

212

PC3 13VDD 14GND 15PC4 16PC5 17PC6 18PC7 19PD0 20PD1 21PD2 22PD3 23PD4 24

PD5

25PD

626

PD7

27AV

DD28

GND

29PE

030

PE1

31PE

232

PE3

33XT

AL32

K1P

F034

XTAL

32K2

PF1

35PF

236

PF337 PF438 PF539 PF640 UPDI41 VDD42 GND43 EXTCLKPA044 PA145 PA246 PA347 PA448

AVR1

28D

A48

TQ

FPU

200

PC0_

UA

RT1_

TXPC

1_U

ART

1_RX

PC6_

LED

0_G

PIO

1PC

7_SW

0_G

PIO

0

AVD

D

PD2_

AIN

2_W

O2

PD1_

AIN

1_W

O1

PD0_

AIN

0_W

O0

PD5_

AIN

5PD

4_A

IN4

PD3_

AIN

3

XC2

00

12p

C203

12p

C204

327

68 k

Hz

Crys

tal d

atas

heet

Cc

rysta

l = 9

pFm

ax E

SR =

70k

Ohm

Acc

urac

y plusmn2

0ppm

AVR1

28D

A48

dat

ashe

et

Cxin

= 4

1pF

Cxou

t = 6

0pF

Cl asymp

1( (

14

1pF)

+ (1

60

pF) )

asymp2

44pF

Max

imum

Loa

d =

125

pFM

axim

um E

SR =

80k

Ohm

Estim

ated

Cpc

b =

05p

F

Estim

ated

load

C =

2 (C

crys

tal-

Cpar

a - C

pcb)

C

= 2

(9pF

- 2

44pF

- 0

5pF)

C =

121

2pF

Sele

cted

in d

esig

n af

ter v

erifi

catio

nC=

12p

F12

pF

NO

TE o

n U

ART

CD

C

RXT

X o

n th

e he

ader

den

otes

the

inpu

tout

put d

irect

ion

of th

e sig

nal

resp

ectiv

e to

its

sour

ce

CDC

TX is

out

put f

rom

the

DEB

UG

GER

CD

C RX

is in

put t

o th

e D

EBU

GG

ER

TX is

out

put f

rom

the

TARG

ET d

evic

eRX

is in

put t

o th

e TA

RGET

dev

ice

NO

TE o

n I2

C

No

pull-

ups o

n bo

ard

Pul

l-ups

shou

ld b

e m

ount

ed c

lose

to sl

ave

devi

ce(s

)

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 29

11

22

33

44

55

66

77

88

DD

CC

BB

AA

3 of

4

AVR1

28D

A48

Curio

sity

Nan

o

102

320

19AV

R128

DA

48_C

urio

sity

_Nan

o_D

ebug

gerS

chD

oc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA R

evisi

on

File

PC

B N

umbe

rPC

B Re

visio

n

Des

igne

d wi

th

Dra

wn

By

PB Shee

t Titl

eD

ebug

ger

Engi

neer

A

H T

F

A08

-300

23

Size

A3

A09

-328

03

Page

D

ateA

ltium

com

DEB

UG

GER

USB

MIC

RO

-B C

ON

NEC

TOR

GN

D

USB

D_P

USB

D_N

100n

C107

100n

C108

RXTXU

ART

CDC_

UART

1kR1

07V

CC_P

3V3

SRST

STAT

US_

LED

SHIE

LD

VBU

S

VCC

_P3V

3G

ND

TP10

0

Testp

oint

Arra

y

12

34

56

78

910

TCK

TDO

TMS

Vsu

pTD

IG

ND

TRST

SRST

VTr

efG

ND

J102

GN

D

47u

F

C100

DBG0

DBG

0

21

GRE

EN L

EDSM

L-P1

2MTT

86R

D10

0

VBUS

1D-

2D+

3

GND

5SH

IELD

16

SHIE

LD2

7

ID4

SHIE

LD3

8SH

IELD

49 M

U-M

B014

2AB2

-269

J105

PAD

33

PA00

1PA

012

PA02

3PA

034

GND 10VDDANA 9

PA04

5PA

056

PA06

7PA

078

PA08 11PA09 12PA10 13PA11 14PA14 15PA15 16

PA16

17PA

1718

PA18

19PA

1920

PA22

21US

B_SO

FPA

2322

USB_

DMP

A24

23US

B_DP

PA2

524

PA2725 RESETN26 PA2827 GND28 VDDCORE29 VDDIN30 SWDCLKPA3031 SWDIOPA3132

SAM

D21

E18A

-MU

TU

100

VOUT

1

VOUT

2

GND 3

EN4

VIN

6

NC5

EP 7

MIC

5528

-33

YM

TU

101

VCC

_P3V

3

GN

D

USB

D_P

USB

D_N

GN

D

1uC106

VCC

_MCU

_CO

RE

VCC

_P3V

3

VCC

_P3V

3

22u

FC1

01

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

3V

CC_P

3V3

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

4V

CC_P

3V3

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

5V

CC_P

3V3

GN

D

GN

D GN

D

GN

D

VCC

_ED

GE

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

7V

CC_P

3V3

GN

DDB

G2

DBG

3_CT

RL

S1_0

_TX

S1_1

_RX

S0_2

_TX

DA

CV

TG_A

DC

RESE

RVED

S0_3

_CLK

DBG0_CTRL

CDC_

TX_C

TRL

BOO

T

DEB

UG

GER

PO

WER

STA

TUS

LED

EN1

BYP

6

VOUT

4

GND

2

VIN

3

NCA

DJ5

GND 7

MIC

5353

U10

2

100n

C102

GN

D

GN

D

47kR101

27kR104 G

ND

33k

R106

22u

F

C103 G

ND

1kR1

08

J100

VCC

_LEV

ELV

CC_R

EGU

LATO

R

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

6V

CC_P

3V3

GN

DDB

G1

CDC_

RXCD

C_TX

DBG3

DBG1_CTRL

DEB

UG

GER

REG

ULA

TOR

REG_ENABLE

REG

_EN

ABL

E

47kR103

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

47kR102

47kR105

SWCL

K

GN

D

47kR100 G

ND

DBG

2

S0_0

_RX

DBG

1_CT

RL

DBG

0_CT

RL

DBG

3 O

PEN

DR

AIN

TAR

GET

AD

JUST

ABL

E R

EGU

LATO

R

SRST

DEB

UG

GER

TES

TPO

INT DBG2_CTRL

VO

FFCD

C_RX

_CTR

L

47kR109

DBG

1

CDC_

TX_C

TRL

CDC_

RX_C

TRL

SWCL

K

REG_ADJUST

DBG2_GPIO

DBG

3_CT

RL

DBG

2_CT

RL

UPD

I

UPD

I

GPI

O

GPI

O

RESE

T

Sign

al

DBG

0

DBG

1

DBG

2

DBG

3

ICSP

Inte

rface

DAT

CLK

GPI

O

MCL

R

DBG

3

CD

C T

X

CD

C R

X

UA

RT R

X

UA

RT T

X

UA

RT R

X

UA

RT T

X

TAR

GET

TAR

GET

1kR1

10

VBUS_ADC

1

23

DM

N65

D8L

FBQ

101

VC

C-

-

ID_S

YS

VOFF

1kR112

VCC

_P3V

3

VTG

_AD

CD

AC

MIC

9416

3

VIN

B2VO

UTA1

VIN

A2

ENC2

GND

C1VO

UTB1

U10

8

GN

D

ID_S

YS

VTG

_EN

VTG_EN

VBUS_ADC

SWD

IO

ID_S

YS

TP10

1G

ND

SWD

IO

VO

FF

47kR111 G

ND

ID P

IN

MC3

6213

F100

VCC

_VBU

S

VCC

_VBU

S

VCC

_VBU

S

J101

VCC

_TA

RGET

47k

R113

Prog

ram

min

g co

nnec

tor f

or

fact

ory

prog

ram

min

g of

D

EBU

GG

ER

MIC

5528

Vi

n 2

5V

to 5

5V

Vout

Fix

ed 3

3V

Imax

500

mA

Dro

pout

260

mV

5

00m

A

PTC

Rese

ttabl

e fu

se

Hol

d cu

rrent

500

mA

Trip

cur

rent

100

0mA

Adj

usta

ble

outp

ut a

nd li

mita

tions

- T

he D

EBU

GG

ER c

an a

djus

t the

out

put v

olta

ge o

f the

regu

lato

r bet

wee

n 1

25V

and

51

V to

the

targ

et

- The

vol

tage

out

put i

s lim

ited

by th

e in

put (

USB

) w

hich

can

var

y be

twee

n 4

40V

to 5

25V

- The

leve

l shi

fters

hav

e a

min

imal

vol

tage

leve

l of 1

65V

and

will

lim

it th

e m

inim

um o

pera

ting

volta

ge a

llow

ed fo

r the

ta

rget

to st

ill a

llow

com

mun

icat

ion

- The

MIC

9416

3 ha

s a m

inim

al v

olta

ge le

vel o

f 17

0V a

nd w

ill li

mit

the

min

imum

vol

tage

del

iver

ed to

the

targ

et

- Firm

war

e co

nfig

urat

ion

will

lim

it th

e vo

ltage

rang

e to

be

with

in th

e th

e ta

rget

spec

ifica

tion

R113

is re

quire

d to

pul

l the

Q

101

gate

to a

def

ined

va

lue

whe

n th

e U

100

is no

t po

wer

ed

J100

Cu

t-stra

p us

ed fo

r ful

l sep

arat

ion

of ta

rget

pow

er fr

om th

e le

vel s

hifte

rs a

nd o

n-bo

ard

regu

lato

rs

- For

cur

rent

mea

sure

men

ts us

ing

an e

xter

nal p

ower

supp

ly t

his s

trap

coul

d be

cut

for m

ore

accu

rate

mea

sure

men

ts L

eaka

ge b

ack

thro

ugh

the

switc

h is

in th

e m

icro

am

pere

rang

e

J101

Th

is is

foot

prin

t for

a 1

x2 1

00m

il pi

tch

pin-

head

er th

at c

an b

e us

ed fo

r eas

y cu

rrent

mea

sure

men

t to

the

targ

et m

icro

cont

rolle

r and

the

LED

Bu

tton

To

use

the

foot

prin

t- C

ut th

e tra

ck b

etw

een

the

hole

s an

d m

ount

a p

in-h

eade

r

MIC

5353

Vi

n 2

6V

to 6

VVo

ut 1

25V

to 5

1V

Imax

500

mA

Dro

pout

(typ

ical

) 50

mV

15

0mA

160

mV

5

00m

AA

ccur

acy

2

initi

alTh

erm

al sh

utdo

wn

and

curre

nt li

mit

Max

imum

out

put v

olta

ge is

lim

ited

by th

e in

put v

olta

ge a

nd th

e dr

opou

t vol

tage

in th

e re

gula

tor

(Vm

ax =

Vin

- dr

opou

t)

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 30

72 Assembly DrawingFigure 7-2 AVR128DA48 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

PAC20002 PAC20001 COC200

PAC20102 PAC20101 COC201

PAC20202 PAC20201 COC202

PAC20301 PAC20302 COC203

PAC20401 PAC20402 COC204

PAC20502

PAC20501 COC205

PAD10002 PAD10001 COD100

PAD20001

PAD20002 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

PAJ20701 PAJ20702 PAJ20705 COJ207

PAJ20801 PAJ20802 PAJ20805 COJ208

PAJ20901 PAJ20902 COJ209

PAJ21002 PAJ21001 COJ210

PAJ21102 PAJ21101 COJ211

PAL20002 PAL20001 COL200

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

PAR20002 PAR20001 COR200

PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203

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

PAU200048 PAU200047 PAU200046 PAU200045 PAU200044 PAU200043 PAU200042 PAU200041 PAU200040 PAU200039 PAU200038 PAU200037 PAU200036 PAU200035 PAU200034 PAU200033 PAU200032 PAU200031 PAU200030 PAU200029 PAU200028 PAU200027 PAU200026 PAU200025 PAU200024 PAU200023 PAU200022 PAU200021 PAU200020 PAU200019 PAU200018 PAU200017 PAU200016 PAU200015 PAU200014 PAU200013

PAU200012 PAU200011 PAU200010 PAU20009 PAU20008 PAU20007 PAU20006 PAU20005 PAU20004 PAU20003 PAU20002 PAU20001

COU200

PAXC20001

PAXC20002

COXC200

Figure 7-3 AVR128DA48 Curiosity Nano Assembly Drawing Bottom

ctR

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20002 PAC20001 COC200

PAC20102 PAC20101 COC201

PAC20202 PAC20201 COC202

PAC20301 PAC20302 COC203

PAC20401 PAC20402 COC204

PAC20502

PAC20501 COC205

PAD10002 PAD10001 COD100

PAD20001

PAD20002 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

PAJ20701 PAJ20702 PAJ20705 COJ207

PAJ20801 PAJ20802 PAJ20805 COJ208

PAJ20901 PAJ20902 COJ209

PAJ21002 PAJ21001 COJ210

PAJ21102 PAJ21101 COJ211

PAL20002 PAL20001 COL200

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

PAR20002 PAR20001 COR200

PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203

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

PAU200048 PAU200047 PAU200046 PAU200045 PAU200044 PAU200043 PAU200042 PAU200041 PAU200040 PAU200039 PAU200038 PAU200037 PAU200036 PAU200035 PAU200034 PAU200033 PAU200032 PAU200031 PAU200030 PAU200029 PAU200028 PAU200027 PAU200026 PAU200025 PAU200024 PAU200023 PAU200022 PAU200021 PAU200020 PAU200019 PAU200018 PAU200017 PAU200016 PAU200015 PAU200014 PAU200013

PAU200012 PAU200011 PAU200010 PAU20009 PAU20008 PAU20007 PAU20006 PAU20005 PAU20004 PAU20003 PAU20002 PAU20001

COU200

PAXC20001

PAXC20002

COXC200

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 31

73 Curiosity Nano Base for Click boardstrade

Figure 7-4 AVR128DA48 Curiosity Nano Pinout Mapping

USB

DEB

UG

GER

AVR1

28D

A48

SW0

LED

0

PS L

EDNC

NC

ID

ID

CDC RX

CDCRX

USART1 TX

PC0

CDC TX

CDCTX

USART1 RX

PC1

DBG1

DBG1

PC6

LED0

DBG2

DBG2

PC7

SW0

PA0

PA0

USART0 TX

PTC XY0

PA1

PA1

USART0 RX

PTC XY1

PC2

PC2

TWI0 SDA

PC3

PC3

TWI0 SCL

PA4

PA4

SPI0 MOSI

PTC XY4

PA5

PA5

SPI0 MISO

PTC XY5

PA6

PA6

SPI0 SCK

PTC XY6

PA7

PA7

SPI0 SS

PTC XY7

GND

GND

PF4

PF4

USART2 TX

PTC XY36

PF5

PF5

USART2 RX

PTC XY37

PF2

PF2

PTC XY34

PF3

PF3

PTC XY35

PB0

PB0

PTC XY8

PB1

PB1

PTC XY9

PB2

PB2

PTC XY10

PB3

PB3

PTC XY11

GND

GND

PC0

PC0

USART1 TX

CDC RX

PC1

PC1

USART1 RX

CDC TX

PC6

PC6

LED0

PC7

PC7

SW0

VBUS

VBUS

VOFF

VOFF

DBG3

DBG3

PF6

DBG0

DBG0

UPDI

GND

GND

VTG

VTG

PD7

PD7

AIN7

PTC XY23

PD6

PD6

AIN6

PTC XY22

PD2

PD2

AIN2

PTC XY18

TCA0 WO2

PD1

PD1

AIN1

PTC XY17

TCA0 WO1

PD0

PD0

AIN0

PTC XY16

TCA0 WO0

PD5

PD5

AIN5

PTC XY21

PD4

PD4

AIN4

PTC XY20

PD3

PD3

AIN3

PTC XY19

GND

GND

PE3

PE3

PTC XY27

PE2

PE2

PTC XY26

PE1

PE1

PTC XY25

PE0

PE0

PTC XY24

PA3

PA3

PTC XY3

PA2

PA2

PTC XY2

PB5

PB5

PTC XY13

PB4

PB4

PTC XY12

GND

GND

PC5

PC5

PC4

PC4

(PF1)

(PF1)

(PTC XY33)

XTAL32K2

(PF0)

(PF0)

(PTC XY32)

XTAL32K1

DEB

UG

GER

AVR1

28D

A48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

Touch

Shared pin

AVR1

28D

A48

Curio

sity

Nan

o

1

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

2

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

3

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

Xpl

aine

d Pr

o Ex

tens

ion

EXT1

12

1920

Curio

sity

Nan

o Ba

sefo

r clic

k bo

ards

TM

PD3

PD0

PD7

PD6

PA7

PA1

PA6

PA0

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

PD4

PD1

PF3

PF2

PE2

PF5

PA6

PF4

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

PD5

PD2

PE1

PE0

PE3

PA1

PA6

PA0

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

ID

GND

PD4

PD5

PF3

PE1

PD1

PD2

PF2

PE3

PC2

PC3

PF5

PF4

PE2

PA4

PA5

PA6

GND

+33V

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 32

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

The block diagram below shows all connections between the debugger and the AVR128DA48 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 7-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 7-6 Details about connecting an external debugger are described in 36 Connecting ExternalDebuggers

Figure 7-5  On-Board Debugger Connections Block Diagram

DEB

UG

GER

TARGETLevel-Shift

PA04PA06PA07PA08PA16PA00PA01

USB

DIR x 5

VCC_P3V3

VBUS

VCC

_LEV

EL

VCC

_TA

RGET

DBG0DBG1DBG2DBG3CDC 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

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 33

Figure 7-6 On-Board Debugger Connection Cut Straps

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

75 Getting Started with IARIAR Embedded Workbenchreg for AVRreg is a proprietary high-efficiency compiler not based on GCC Programming anddebugging of AVR128DA48 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 7-73 In the category Debugger select the Setup tab Select Atmel-ICE as the driver as shown in Figure 7-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 7-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

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 34

Figure 7-7 Select Target Device

Figure 7-8 Select Debugger

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 35

Figure 7-9 Configure Interface

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 36

The Microchip WebsiteMicrochip provides online support via our website at httpwwwmicrochipcom This website is used to make filesand information 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 ServiceMicrochiprsquos 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 httpwwwmicrochipcompcn and follow the registration instructions

Customer SupportUsers 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 httpwwwmicrochipcomsupport

Microchip Devices Code Protection FeatureNote the following details of the code protection feature on Microchip devices

bull Microchip products meet the specification contained in their particular Microchip Data Sheetbull Microchip believes that its family of products is one of the most secure families of its kind on the market today

when used in the intended manner and under normal conditionsbull There are dishonest and possibly illegal methods used to breach the code protection feature All of these

methods to our knowledge require using the Microchip products in a manner outside the operatingspecifications contained in Microchiprsquos Data Sheets Most likely the person doing so is engaged in theft ofintellectual property

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

protection does not mean that we are guaranteeing the product as ldquounbreakablerdquo

Code protection is constantly evolving We at Microchip are committed to continuously improving the code protectionfeatures of our products Attempts to break Microchiprsquos code protection feature may be a violation of the DigitalMillennium Copyright Act If such acts allow unauthorized access to your software or other copyrighted work youmay have a right to sue for relief under that Act

Legal NoticeInformation contained in this publication regarding device applications and the like is provided only for yourconvenience and may be superseded by updates It is your responsibility to ensure that your application meets with

AVR128DA48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 37

your specifications MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHEREXPRESS OR IMPLIED WRITTEN OR ORAL STATUTORY OR OTHERWISE RELATED TO THE INFORMATIONINCLUDING BUT NOT LIMITED TO ITS CONDITION QUALITY PERFORMANCE MERCHANTABILITY ORFITNESS FOR PURPOSE Microchip disclaims all liability arising from this information and its use Use of Microchipdevices in life support andor safety applications is entirely at the buyerrsquos risk and the buyer agrees to defendindemnify and hold harmless Microchip from any and all damages claims suits or expenses resulting from suchuse No licenses are conveyed implicitly or otherwise under any Microchip intellectual property rights unlessotherwise stated

TrademarksThe 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-5760-2

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

AVR128DA48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 38

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupporthttpwwwmicrochipcomsupportWeb AddresshttpwwwmicrochipcomAtlantaDuluth 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 DS50002971A-page 39

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Kit Overview
      • 2 Getting Started
        • 21 Quick Start
        • 22 Design Documentation and Relevant Links
          • 3 Curiosity Nano
            • 31 On-Board Debugger Overview
              • 311 Debugger
              • 312 Virtual Serial Port (CDC)
                • 3121 Overview
                • 3122 Operating System Support
                • 3123 Limitations
                • 3124 Signaling
                • 3125 Advanced Use
                  • 313 Mass Storage Device
                    • 3131 Mass Storage Device Implementation
                    • 3132 Fuse Bytes
                    • 3133 Limitations of Drag-and-Drop Programming
                    • 3134 Special Commands
                      • 314 Data Gateway Interface (DGI)
                        • 3141 Debug GPIO
                        • 3142 Timestamping
                            • 32 Curiosity Nano Standard Pinout
                            • 33 Power Supply
                              • 331 Target Regulator
                              • 332 External Supply
                              • 333 VBUS Output Pin
                              • 334 Power Supply Exceptions
                                • 34 Low Power Measurement
                                • 35 Programming External Microcontrollers
                                  • 351 Supported Devices
                                  • 352 Software Configuration
                                  • 353 Hardware Modifications
                                  • 354 Connecting to External Microcontrollers
                                    • 36 Connecting External Debuggers
                                      • 4 Hardware User Guide
                                        • 41 Connectors
                                          • 411 AVR128DA48 Curiosity Nano Pinout
                                          • 412 Using Pin Headers
                                            • 42 Peripherals
                                              • 421 LED
                                              • 422 Mechanical Switch
                                              • 423 Crystal
                                              • 424 On-Board Debugger Implementation
                                                • 4241 On-Board Debugger Connections
                                                  • 5 Hardware Revision History and Known Issues
                                                    • 51 Identifying Product ID and Revision
                                                    • 52 Revision 3
                                                      • 6 Document Revision History
                                                      • 7 Appendix
                                                        • 71 Schematic
                                                        • 72 Assembly Drawing
                                                        • 73 Curiosity Nano Base for Click boardstrade
                                                        • 74 Disconnecting the On-board Debugger
                                                        • 75 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: AVR128DA48 Curiosity Nano User Guide - Microchip Technologyww1.microchip.com/downloads/en/DeviceDoc/AVR128DA48... · 2020-03-19 · AVR128DA48 Curiosity Nano AVR128DA48 Curiosity

Figure 3-11 Connecting the MPLABreg PICkittrade 4 In-Circuit DebuggerProgrammer to AVR128DA48 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

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 22

Figure 3-12 Connecting the Atmel-ICE to AVR128DA48 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 Atmel StudioMicrochip MPLABreg XIDE or mass storage programming while the external tool is active

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 23

4 Hardware User Guide

41 Connectors

411 AVR128DA48 Curiosity Nano PinoutAll the AVR128DA48 IO pins are accessible at the edge connectors on the board The image below shows the boardpinout

Figure 4-1 AVR128DA48 Curiosity Nano Pinout

USB

DEBUGGER

AVR128DA48

SW0

LED0

PS LEDNC

NC

ID

ID

CDC RX

CDCRXUSART1 TXPC0

CDC TX

CDCTXUSART1 RXPC1

DBG1

DBG

1PC6LED0

DBG2

DBG

2PC7SW0

PA0

PA0USART0 TXPTC XY0

PA1PA

1USART0 RXPTC XY1

PC2PC2TWI0 SDA

PC3

PC3TWI0 SCL

PA4

PA4SPI0 MOSIPTC XY4

PA5

PA5SPI0 MISOPTC XY5

PA6

PA6SPI0 SCKPTC XY6

PA7

PA7SPI0 SSPTC XY7

GND

GN

D

PF4

PF4USART2 TXPTC XY36

PF5

PF5USART2 RXPTC XY37

PF2

PF2PTC XY34

PF3

PF3PTC XY35

PB0

PB0PTC XY8

PB1

PB1PTC XY9

PB2

PB2PTC XY10

PB3

PB3PTC XY11

GND

GN

D

PC0

PC0USART1 TXCDC RX

PC1

PC1USART1 RXCDC TX

PC6

PC6LED0

PC7

PC7SW0

VBUS

VBU

S

VOFF

VO

FFDBG3

DBG

3 PF6

DBG0D

BG0 UPDI

GND

GN

D

VTG

VTG

PD7

PD7 AIN7 PTC XY23

PD6

PD6 AIN6 PTC XY22

PD2

PD2 AIN2 PTC XY18 TCA0 WO2

PD1

PD1 AIN1 PTC XY17 TCA0 WO1

PD0

PD0 AIN0 PTC XY16 TCA0 WO0

PD5

PD5 AIN5 PTC XY21

PD4

PD4 AIN4 PTC XY20

PD3

PD3 AIN3 PTC XY19

GND

GN

D

PE3

PE3 PTC XY27

PE2

PE2 PTC XY26

PE1

PE1 PTC XY25

PE0

PE0 PTC XY24

PA3

PA3 PTC XY3

PA2

PA2 PTC XY2

PB5

PB5 PTC XY13

PB4

PB4 PTC XY12

GND

GN

D

PC5

PC5

PC4

PC4

(PF1)

(PF1) (PTC XY33) XTAL32K2

(PF0)

(PF0) (PTC XY32) XTAL32K1

DEBUGGERAVR128DA48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

Touch

Shared pin

AVR128DA48Curiosity Nano

412 Using Pin HeadersThe edge connector footprint on AVR128DA48 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

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

AVR128DA48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 24

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

42 Peripherals

421 LEDThere is one yellow user LED available on the AVR128DA48 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 4-1 LED Connection

AVR128DA48 Pin Function Shared Functionality

PC6 Yellow LED0 Edge connector On-board debugger

422 Mechanical SwitchThe AVR128DA48 Curiosity Nano has one mechanical switch This is a generic user-configurable switch When theswitch 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 PC7

Table 4-2 Mechanical Switch

AVR128DA48 Pin Description Shared Functionality

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

423 Crystal

The AVR128DA48 Curiosity Nano board has a 32768 kHz crystal mounted

The AVR128DA48 is connected to the crystal by default but the GPIOs are also routed to the edge connectorthrough two solder points The two IO lines routed to the edge connector are disconnected by default to reduce thechance of an external signal causing contention with the crystal and to remove excessive capacitance on the linesTo use PF0 and PF1 as GPIO some hardware modifications are required

bull Disconnect the crystal by cutting the two straps on the top side of the board next to the crystal (J210 J211) Thecrystal 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 (J207 J208)

The cut straps and solder points can be seen in Figure 4-2

Table 4-3 Crystal Connections

AVR128DA48 Pin Function Shared Functionality

PF0 TOSC1 (Crystal input) Edge connector

PF1 TOSC2 (Crystal output) Edge connector

AVR128DA48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 25

Figure 4-2 Crystal Connection and Cut Straps

424 On-Board Debugger ImplementationAVR128DA48 Curiosity Nano features an on-board debugger that can be used to program and debug theAVR128DA48 using UPDI The on-board debugger also includes a virtual serial port (CDC) interface over UART anddebug GPIO Atmel StudioMicrochip MPLABreg X IDE 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

4241 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 31 On-Board DebuggerOverview

Table 4-4 On-Board Debugger Connections

AVR128DA48Pin

Debugger Pin Function Shared Functionality

RF1 CDC TX UART RX (AVR128DA48 RX line) Edge connector

RF0 CDC RX UART TX (AVR128DA48 TX line) Edge connector

UPDI DBG0 UPDI Edge connector

PC6 DBG1 GPIO1 Edge connector LED

PC7 DBG2 GPIO0 Edge connector Mechanical Switch

PF6 DBG3 RESET Edge connector

AVR128DA48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 26

5 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

51 Identifying Product ID and RevisionThe revision and product identifier of the AVR128DA48 Curiosity Nano Board can be found in two ways Either byutilizing the Atmel StudioMicrochip MPLABreg X IDE Kit Window or by looking at the sticker on the bottom side of thePCB

By connecting AVR128DA48 Curiosity Nano to a computer with Atmel StudioMicrochip MPLABreg X IDE running theKit Window will pop up The first six digits of the serial number which is listed under kit information contain theproduct identifier 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 AVR128DA48 Curiosity Nano is A09-3280

52 Revision 3Revision 3 is the initially released revision There are no known issues with this revision

AVR128DA48 Curiosity NanoHardware Revision History and Known Issues

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 27

6 Document Revision HistoryDoc rev Date Comment

A 032020 Initial document release

AVR128DA48 Curiosity NanoDocument Revision History

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 28

7 Appendix

71 SchematicFigure 7-1 AVR128DA48 Curiosity Nano Schematic

11

22

33

44

55

66

77

88

DD

CC

BB

AA

2 of

4

AVR1

28D

A48

Curio

sity

Nan

o

102

320

19AV

R128

DA

48_C

urio

sity

_Nan

o_Ta

rget

_MCU

Sch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA R

evisi

on

File

PC

B N

umbe

rPC

B Re

visio

n

Des

igne

d wi

th

Dra

wn

By

PB Shee

t Titl

eTa

rget

MCU

Engi

neer

A

H T

F

A08

-300

23

Size

A3

A09

-328

03

Page

D

ateA

ltium

com

GN

DV

CC_T

ARG

ET

100n

C201

GN

D

PA5_

SPI0

_MIS

OPA

6_SP

I0_S

CKPA

7_SP

I0_S

SPB

0_U

ART

3_TX

PB1_

UA

RT3_

RXPB

2PB

3PB

4PB

5PC

0_U

ART

1_TX

PC1_

UA

RT1_

RXPC

2_I2

C0_S

DA

PC3_I2C0_SCL

PC4PC5PC6_LED0_GPIO1PC7_SW0_GPIO0PD0_AIN0_WO0PD1_AIN1_WO1PD2_AIN2_WO2PD3_AIN3PD4_AIN4

PA3

PA1_UART0_RX

UPDI

PF5_UART2_RX

PF3

PF2

PF1_

TOSC

2PF

0_TO

SC1

PE3

PE2

PE1

PE0

PD5_

AIN

5PD

6_A

IN6

PD7_

AIN

7

GN

D

VCC

_TA

RGET

100n

C202

GN

DV

CC_T

ARG

ET10

0n

C200

PF1_TOSC2

PF0_TOSC1

PA2

PA0_UART0_TX

PF4_UART2_TX

PA4_SPI0_MOSI

GN

D

PA7_

SPI0

_SS

PA6_

SPI0

_SCK

PA5_

SPI0

_MIS

OPA

4_SP

I0_M

OSI

PA3

PA2

PA1_

UA

RT0_

RXPA

0_U

ART

0_TX

PB0_

UA

RT3_

TXPB

1_U

ART

3_RX

PB2

PB3

PB4

PB5

PD7_

AIN

7PD

6_A

IN6

PF5_

UA

RT2_

RXPF

4_U

ART

2_TX

PF3

PF2

32kH

z C

ryst

al

1kR203

USE

R L

ED

VCC

_TA

RGET

PF6_RESET

PC7_SW0_GPIO0

PC6_LED0_GPIO1

GN

D

USE

R B

UTT

ON

PE3

PE2

PE1

PE0

PC0_

UA

RT1_

TXPC

1_U

ART

1_RX

PC2_

I2C0

_SD

APC

3_I2

C0_S

CL

PC4

PC5

PC6_

LED

0_G

PIO

1PC

7_SW

0_G

PIO

0

1kR202

YELLOWLEDSML-D12Y1WT86

2 1D200

TS604VM1-035CR13

4 2

SW20

0

GN

DV

CC_E

DG

E

GN

DG

ND

GN

DG

ND

UPD

IPF

6_RE

SET

J207

J208

J209

BLM

18PG

471S

N1

L200

AVR1

28D

A48

22u

FC2

05

VCC

_ED

GE

GN

D

DBG0

CDC_

UART

TXRXU

ART

CDC_TXCDC_RX

DBG2

DBG1

DBG3

DBG2

DEB

UG

GER

CO

NN

ECTI

ON

S

DBG1

DBG3DBG0

VOFF

ID_S

YS

ID_SYS

VOFF

TAR

GET

BU

LK

VCC

_TA

RGET

RES

ET P

ull

VBU

S

CDC

RX3

CDC

TX4

DBG

15

DBG

26

0 TX

71

RX8

2 SD

A9

3 SC

L10

4 M

OSI

115

MIS

O12

6 SC

K13

7 SS

14G

ND

150

(TX

)16

1 (R

X)

172

183

190

20

GN

D24

DBG

354

DBG

053

GN

D52

VCC

51

PWM

346

AD

C 2

45A

DC

144

AD

C 0

43G

ND

42

438

434

GN

D33

AD

C 7

50A

DC

649

AD

C 5

48PW

M 4

47

DEB

UG

GER

TARG

ET

ID2

VO

FF55

121

222

323

025

126

227

328

429

530

631

732

535

636

737

539

640

741

RESE

RVED

1V

BUS

56

CNA

NO

56-p

in e

dge

conn

ecto

r

J200

J201

J203

J205

J206

J202

J204

PF1

PF0

PF1_

TOSC

2PF

0_TO

SC1

NC

J211

J210

XOUT

XIN

47kR200

AVR

128D

A48

UPD

I

GPI

O1

GPI

O0

RESE

T

DBG

0

DBG

1

DBG

2

DBG

3

Deb

ugge

r

CD

C T

X

CD

C R

X

UA

RT1

RX

UA

RT1

TX

VTG

18V

- 5

5VPC6

PC7

PF6

UPD

I

PC0

PC1

Nam

ePi

n

PA5

1PA

62

PA7

3PB

04

PB1

5PB

26

PB3

7PB

48

PB5

9PC

010

PC1

11PC

212

PC3 13VDD 14GND 15PC4 16PC5 17PC6 18PC7 19PD0 20PD1 21PD2 22PD3 23PD4 24

PD5

25PD

626

PD7

27AV

DD28

GND

29PE

030

PE1

31PE

232

PE3

33XT

AL32

K1P

F034

XTAL

32K2

PF1

35PF

236

PF337 PF438 PF539 PF640 UPDI41 VDD42 GND43 EXTCLKPA044 PA145 PA246 PA347 PA448

AVR1

28D

A48

TQ

FPU

200

PC0_

UA

RT1_

TXPC

1_U

ART

1_RX

PC6_

LED

0_G

PIO

1PC

7_SW

0_G

PIO

0

AVD

D

PD2_

AIN

2_W

O2

PD1_

AIN

1_W

O1

PD0_

AIN

0_W

O0

PD5_

AIN

5PD

4_A

IN4

PD3_

AIN

3

XC2

00

12p

C203

12p

C204

327

68 k

Hz

Crys

tal d

atas

heet

Cc

rysta

l = 9

pFm

ax E

SR =

70k

Ohm

Acc

urac

y plusmn2

0ppm

AVR1

28D

A48

dat

ashe

et

Cxin

= 4

1pF

Cxou

t = 6

0pF

Cl asymp

1( (

14

1pF)

+ (1

60

pF) )

asymp2

44pF

Max

imum

Loa

d =

125

pFM

axim

um E

SR =

80k

Ohm

Estim

ated

Cpc

b =

05p

F

Estim

ated

load

C =

2 (C

crys

tal-

Cpar

a - C

pcb)

C

= 2

(9pF

- 2

44pF

- 0

5pF)

C =

121

2pF

Sele

cted

in d

esig

n af

ter v

erifi

catio

nC=

12p

F12

pF

NO

TE o

n U

ART

CD

C

RXT

X o

n th

e he

ader

den

otes

the

inpu

tout

put d

irect

ion

of th

e sig

nal

resp

ectiv

e to

its

sour

ce

CDC

TX is

out

put f

rom

the

DEB

UG

GER

CD

C RX

is in

put t

o th

e D

EBU

GG

ER

TX is

out

put f

rom

the

TARG

ET d

evic

eRX

is in

put t

o th

e TA

RGET

dev

ice

NO

TE o

n I2

C

No

pull-

ups o

n bo

ard

Pul

l-ups

shou

ld b

e m

ount

ed c

lose

to sl

ave

devi

ce(s

)

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 29

11

22

33

44

55

66

77

88

DD

CC

BB

AA

3 of

4

AVR1

28D

A48

Curio

sity

Nan

o

102

320

19AV

R128

DA

48_C

urio

sity

_Nan

o_D

ebug

gerS

chD

oc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA R

evisi

on

File

PC

B N

umbe

rPC

B Re

visio

n

Des

igne

d wi

th

Dra

wn

By

PB Shee

t Titl

eD

ebug

ger

Engi

neer

A

H T

F

A08

-300

23

Size

A3

A09

-328

03

Page

D

ateA

ltium

com

DEB

UG

GER

USB

MIC

RO

-B C

ON

NEC

TOR

GN

D

USB

D_P

USB

D_N

100n

C107

100n

C108

RXTXU

ART

CDC_

UART

1kR1

07V

CC_P

3V3

SRST

STAT

US_

LED

SHIE

LD

VBU

S

VCC

_P3V

3G

ND

TP10

0

Testp

oint

Arra

y

12

34

56

78

910

TCK

TDO

TMS

Vsu

pTD

IG

ND

TRST

SRST

VTr

efG

ND

J102

GN

D

47u

F

C100

DBG0

DBG

0

21

GRE

EN L

EDSM

L-P1

2MTT

86R

D10

0

VBUS

1D-

2D+

3

GND

5SH

IELD

16

SHIE

LD2

7

ID4

SHIE

LD3

8SH

IELD

49 M

U-M

B014

2AB2

-269

J105

PAD

33

PA00

1PA

012

PA02

3PA

034

GND 10VDDANA 9

PA04

5PA

056

PA06

7PA

078

PA08 11PA09 12PA10 13PA11 14PA14 15PA15 16

PA16

17PA

1718

PA18

19PA

1920

PA22

21US

B_SO

FPA

2322

USB_

DMP

A24

23US

B_DP

PA2

524

PA2725 RESETN26 PA2827 GND28 VDDCORE29 VDDIN30 SWDCLKPA3031 SWDIOPA3132

SAM

D21

E18A

-MU

TU

100

VOUT

1

VOUT

2

GND 3

EN4

VIN

6

NC5

EP 7

MIC

5528

-33

YM

TU

101

VCC

_P3V

3

GN

D

USB

D_P

USB

D_N

GN

D

1uC106

VCC

_MCU

_CO

RE

VCC

_P3V

3

VCC

_P3V

3

22u

FC1

01

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

3V

CC_P

3V3

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

4V

CC_P

3V3

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

5V

CC_P

3V3

GN

D

GN

D GN

D

GN

D

VCC

_ED

GE

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

7V

CC_P

3V3

GN

DDB

G2

DBG

3_CT

RL

S1_0

_TX

S1_1

_RX

S0_2

_TX

DA

CV

TG_A

DC

RESE

RVED

S0_3

_CLK

DBG0_CTRL

CDC_

TX_C

TRL

BOO

T

DEB

UG

GER

PO

WER

STA

TUS

LED

EN1

BYP

6

VOUT

4

GND

2

VIN

3

NCA

DJ5

GND 7

MIC

5353

U10

2

100n

C102

GN

D

GN

D

47kR101

27kR104 G

ND

33k

R106

22u

F

C103 G

ND

1kR1

08

J100

VCC

_LEV

ELV

CC_R

EGU

LATO

R

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

6V

CC_P

3V3

GN

DDB

G1

CDC_

RXCD

C_TX

DBG3

DBG1_CTRL

DEB

UG

GER

REG

ULA

TOR

REG_ENABLE

REG

_EN

ABL

E

47kR103

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

47kR102

47kR105

SWCL

K

GN

D

47kR100 G

ND

DBG

2

S0_0

_RX

DBG

1_CT

RL

DBG

0_CT

RL

DBG

3 O

PEN

DR

AIN

TAR

GET

AD

JUST

ABL

E R

EGU

LATO

R

SRST

DEB

UG

GER

TES

TPO

INT DBG2_CTRL

VO

FFCD

C_RX

_CTR

L

47kR109

DBG

1

CDC_

TX_C

TRL

CDC_

RX_C

TRL

SWCL

K

REG_ADJUST

DBG2_GPIO

DBG

3_CT

RL

DBG

2_CT

RL

UPD

I

UPD

I

GPI

O

GPI

O

RESE

T

Sign

al

DBG

0

DBG

1

DBG

2

DBG

3

ICSP

Inte

rface

DAT

CLK

GPI

O

MCL

R

DBG

3

CD

C T

X

CD

C R

X

UA

RT R

X

UA

RT T

X

UA

RT R

X

UA

RT T

X

TAR

GET

TAR

GET

1kR1

10

VBUS_ADC

1

23

DM

N65

D8L

FBQ

101

VC

C-

-

ID_S

YS

VOFF

1kR112

VCC

_P3V

3

VTG

_AD

CD

AC

MIC

9416

3

VIN

B2VO

UTA1

VIN

A2

ENC2

GND

C1VO

UTB1

U10

8

GN

D

ID_S

YS

VTG

_EN

VTG_EN

VBUS_ADC

SWD

IO

ID_S

YS

TP10

1G

ND

SWD

IO

VO

FF

47kR111 G

ND

ID P

IN

MC3

6213

F100

VCC

_VBU

S

VCC

_VBU

S

VCC

_VBU

S

J101

VCC

_TA

RGET

47k

R113

Prog

ram

min

g co

nnec

tor f

or

fact

ory

prog

ram

min

g of

D

EBU

GG

ER

MIC

5528

Vi

n 2

5V

to 5

5V

Vout

Fix

ed 3

3V

Imax

500

mA

Dro

pout

260

mV

5

00m

A

PTC

Rese

ttabl

e fu

se

Hol

d cu

rrent

500

mA

Trip

cur

rent

100

0mA

Adj

usta

ble

outp

ut a

nd li

mita

tions

- T

he D

EBU

GG

ER c

an a

djus

t the

out

put v

olta

ge o

f the

regu

lato

r bet

wee

n 1

25V

and

51

V to

the

targ

et

- The

vol

tage

out

put i

s lim

ited

by th

e in

put (

USB

) w

hich

can

var

y be

twee

n 4

40V

to 5

25V

- The

leve

l shi

fters

hav

e a

min

imal

vol

tage

leve

l of 1

65V

and

will

lim

it th

e m

inim

um o

pera

ting

volta

ge a

llow

ed fo

r the

ta

rget

to st

ill a

llow

com

mun

icat

ion

- The

MIC

9416

3 ha

s a m

inim

al v

olta

ge le

vel o

f 17

0V a

nd w

ill li

mit

the

min

imum

vol

tage

del

iver

ed to

the

targ

et

- Firm

war

e co

nfig

urat

ion

will

lim

it th

e vo

ltage

rang

e to

be

with

in th

e th

e ta

rget

spec

ifica

tion

R113

is re

quire

d to

pul

l the

Q

101

gate

to a

def

ined

va

lue

whe

n th

e U

100

is no

t po

wer

ed

J100

Cu

t-stra

p us

ed fo

r ful

l sep

arat

ion

of ta

rget

pow

er fr

om th

e le

vel s

hifte

rs a

nd o

n-bo

ard

regu

lato

rs

- For

cur

rent

mea

sure

men

ts us

ing

an e

xter

nal p

ower

supp

ly t

his s

trap

coul

d be

cut

for m

ore

accu

rate

mea

sure

men

ts L

eaka

ge b

ack

thro

ugh

the

switc

h is

in th

e m

icro

am

pere

rang

e

J101

Th

is is

foot

prin

t for

a 1

x2 1

00m

il pi

tch

pin-

head

er th

at c

an b

e us

ed fo

r eas

y cu

rrent

mea

sure

men

t to

the

targ

et m

icro

cont

rolle

r and

the

LED

Bu

tton

To

use

the

foot

prin

t- C

ut th

e tra

ck b

etw

een

the

hole

s an

d m

ount

a p

in-h

eade

r

MIC

5353

Vi

n 2

6V

to 6

VVo

ut 1

25V

to 5

1V

Imax

500

mA

Dro

pout

(typ

ical

) 50

mV

15

0mA

160

mV

5

00m

AA

ccur

acy

2

initi

alTh

erm

al sh

utdo

wn

and

curre

nt li

mit

Max

imum

out

put v

olta

ge is

lim

ited

by th

e in

put v

olta

ge a

nd th

e dr

opou

t vol

tage

in th

e re

gula

tor

(Vm

ax =

Vin

- dr

opou

t)

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 30

72 Assembly DrawingFigure 7-2 AVR128DA48 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

PAC20002 PAC20001 COC200

PAC20102 PAC20101 COC201

PAC20202 PAC20201 COC202

PAC20301 PAC20302 COC203

PAC20401 PAC20402 COC204

PAC20502

PAC20501 COC205

PAD10002 PAD10001 COD100

PAD20001

PAD20002 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

PAJ20701 PAJ20702 PAJ20705 COJ207

PAJ20801 PAJ20802 PAJ20805 COJ208

PAJ20901 PAJ20902 COJ209

PAJ21002 PAJ21001 COJ210

PAJ21102 PAJ21101 COJ211

PAL20002 PAL20001 COL200

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

PAR20002 PAR20001 COR200

PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203

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

PAU200048 PAU200047 PAU200046 PAU200045 PAU200044 PAU200043 PAU200042 PAU200041 PAU200040 PAU200039 PAU200038 PAU200037 PAU200036 PAU200035 PAU200034 PAU200033 PAU200032 PAU200031 PAU200030 PAU200029 PAU200028 PAU200027 PAU200026 PAU200025 PAU200024 PAU200023 PAU200022 PAU200021 PAU200020 PAU200019 PAU200018 PAU200017 PAU200016 PAU200015 PAU200014 PAU200013

PAU200012 PAU200011 PAU200010 PAU20009 PAU20008 PAU20007 PAU20006 PAU20005 PAU20004 PAU20003 PAU20002 PAU20001

COU200

PAXC20001

PAXC20002

COXC200

Figure 7-3 AVR128DA48 Curiosity Nano Assembly Drawing Bottom

ctR

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20002 PAC20001 COC200

PAC20102 PAC20101 COC201

PAC20202 PAC20201 COC202

PAC20301 PAC20302 COC203

PAC20401 PAC20402 COC204

PAC20502

PAC20501 COC205

PAD10002 PAD10001 COD100

PAD20001

PAD20002 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

PAJ20701 PAJ20702 PAJ20705 COJ207

PAJ20801 PAJ20802 PAJ20805 COJ208

PAJ20901 PAJ20902 COJ209

PAJ21002 PAJ21001 COJ210

PAJ21102 PAJ21101 COJ211

PAL20002 PAL20001 COL200

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

PAR20002 PAR20001 COR200

PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203

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

PAU200048 PAU200047 PAU200046 PAU200045 PAU200044 PAU200043 PAU200042 PAU200041 PAU200040 PAU200039 PAU200038 PAU200037 PAU200036 PAU200035 PAU200034 PAU200033 PAU200032 PAU200031 PAU200030 PAU200029 PAU200028 PAU200027 PAU200026 PAU200025 PAU200024 PAU200023 PAU200022 PAU200021 PAU200020 PAU200019 PAU200018 PAU200017 PAU200016 PAU200015 PAU200014 PAU200013

PAU200012 PAU200011 PAU200010 PAU20009 PAU20008 PAU20007 PAU20006 PAU20005 PAU20004 PAU20003 PAU20002 PAU20001

COU200

PAXC20001

PAXC20002

COXC200

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 31

73 Curiosity Nano Base for Click boardstrade

Figure 7-4 AVR128DA48 Curiosity Nano Pinout Mapping

USB

DEB

UG

GER

AVR1

28D

A48

SW0

LED

0

PS L

EDNC

NC

ID

ID

CDC RX

CDCRX

USART1 TX

PC0

CDC TX

CDCTX

USART1 RX

PC1

DBG1

DBG1

PC6

LED0

DBG2

DBG2

PC7

SW0

PA0

PA0

USART0 TX

PTC XY0

PA1

PA1

USART0 RX

PTC XY1

PC2

PC2

TWI0 SDA

PC3

PC3

TWI0 SCL

PA4

PA4

SPI0 MOSI

PTC XY4

PA5

PA5

SPI0 MISO

PTC XY5

PA6

PA6

SPI0 SCK

PTC XY6

PA7

PA7

SPI0 SS

PTC XY7

GND

GND

PF4

PF4

USART2 TX

PTC XY36

PF5

PF5

USART2 RX

PTC XY37

PF2

PF2

PTC XY34

PF3

PF3

PTC XY35

PB0

PB0

PTC XY8

PB1

PB1

PTC XY9

PB2

PB2

PTC XY10

PB3

PB3

PTC XY11

GND

GND

PC0

PC0

USART1 TX

CDC RX

PC1

PC1

USART1 RX

CDC TX

PC6

PC6

LED0

PC7

PC7

SW0

VBUS

VBUS

VOFF

VOFF

DBG3

DBG3

PF6

DBG0

DBG0

UPDI

GND

GND

VTG

VTG

PD7

PD7

AIN7

PTC XY23

PD6

PD6

AIN6

PTC XY22

PD2

PD2

AIN2

PTC XY18

TCA0 WO2

PD1

PD1

AIN1

PTC XY17

TCA0 WO1

PD0

PD0

AIN0

PTC XY16

TCA0 WO0

PD5

PD5

AIN5

PTC XY21

PD4

PD4

AIN4

PTC XY20

PD3

PD3

AIN3

PTC XY19

GND

GND

PE3

PE3

PTC XY27

PE2

PE2

PTC XY26

PE1

PE1

PTC XY25

PE0

PE0

PTC XY24

PA3

PA3

PTC XY3

PA2

PA2

PTC XY2

PB5

PB5

PTC XY13

PB4

PB4

PTC XY12

GND

GND

PC5

PC5

PC4

PC4

(PF1)

(PF1)

(PTC XY33)

XTAL32K2

(PF0)

(PF0)

(PTC XY32)

XTAL32K1

DEB

UG

GER

AVR1

28D

A48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

Touch

Shared pin

AVR1

28D

A48

Curio

sity

Nan

o

1

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

2

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

3

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

Xpl

aine

d Pr

o Ex

tens

ion

EXT1

12

1920

Curio

sity

Nan

o Ba

sefo

r clic

k bo

ards

TM

PD3

PD0

PD7

PD6

PA7

PA1

PA6

PA0

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

PD4

PD1

PF3

PF2

PE2

PF5

PA6

PF4

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

PD5

PD2

PE1

PE0

PE3

PA1

PA6

PA0

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

ID

GND

PD4

PD5

PF3

PE1

PD1

PD2

PF2

PE3

PC2

PC3

PF5

PF4

PE2

PA4

PA5

PA6

GND

+33V

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 32

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

The block diagram below shows all connections between the debugger and the AVR128DA48 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 7-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 7-6 Details about connecting an external debugger are described in 36 Connecting ExternalDebuggers

Figure 7-5  On-Board Debugger Connections Block Diagram

DEB

UG

GER

TARGETLevel-Shift

PA04PA06PA07PA08PA16PA00PA01

USB

DIR x 5

VCC_P3V3

VBUS

VCC

_LEV

EL

VCC

_TA

RGET

DBG0DBG1DBG2DBG3CDC 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

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 33

Figure 7-6 On-Board Debugger Connection Cut Straps

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

75 Getting Started with IARIAR Embedded Workbenchreg for AVRreg is a proprietary high-efficiency compiler not based on GCC Programming anddebugging of AVR128DA48 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 7-73 In the category Debugger select the Setup tab Select Atmel-ICE as the driver as shown in Figure 7-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 7-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

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 34

Figure 7-7 Select Target Device

Figure 7-8 Select Debugger

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 35

Figure 7-9 Configure Interface

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 36

The Microchip WebsiteMicrochip provides online support via our website at httpwwwmicrochipcom This website is used to make filesand information 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 ServiceMicrochiprsquos 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 httpwwwmicrochipcompcn and follow the registration instructions

Customer SupportUsers 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 httpwwwmicrochipcomsupport

Microchip Devices Code Protection FeatureNote the following details of the code protection feature on Microchip devices

bull Microchip products meet the specification contained in their particular Microchip Data Sheetbull Microchip believes that its family of products is one of the most secure families of its kind on the market today

when used in the intended manner and under normal conditionsbull There are dishonest and possibly illegal methods used to breach the code protection feature All of these

methods to our knowledge require using the Microchip products in a manner outside the operatingspecifications contained in Microchiprsquos Data Sheets Most likely the person doing so is engaged in theft ofintellectual property

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

protection does not mean that we are guaranteeing the product as ldquounbreakablerdquo

Code protection is constantly evolving We at Microchip are committed to continuously improving the code protectionfeatures of our products Attempts to break Microchiprsquos code protection feature may be a violation of the DigitalMillennium Copyright Act If such acts allow unauthorized access to your software or other copyrighted work youmay have a right to sue for relief under that Act

Legal NoticeInformation contained in this publication regarding device applications and the like is provided only for yourconvenience and may be superseded by updates It is your responsibility to ensure that your application meets with

AVR128DA48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 37

your specifications MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHEREXPRESS OR IMPLIED WRITTEN OR ORAL STATUTORY OR OTHERWISE RELATED TO THE INFORMATIONINCLUDING BUT NOT LIMITED TO ITS CONDITION QUALITY PERFORMANCE MERCHANTABILITY ORFITNESS FOR PURPOSE Microchip disclaims all liability arising from this information and its use Use of Microchipdevices in life support andor safety applications is entirely at the buyerrsquos risk and the buyer agrees to defendindemnify and hold harmless Microchip from any and all damages claims suits or expenses resulting from suchuse No licenses are conveyed implicitly or otherwise under any Microchip intellectual property rights unlessotherwise stated

TrademarksThe 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-5760-2

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

AVR128DA48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 38

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupporthttpwwwmicrochipcomsupportWeb AddresshttpwwwmicrochipcomAtlantaDuluth 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 DS50002971A-page 39

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Kit Overview
      • 2 Getting Started
        • 21 Quick Start
        • 22 Design Documentation and Relevant Links
          • 3 Curiosity Nano
            • 31 On-Board Debugger Overview
              • 311 Debugger
              • 312 Virtual Serial Port (CDC)
                • 3121 Overview
                • 3122 Operating System Support
                • 3123 Limitations
                • 3124 Signaling
                • 3125 Advanced Use
                  • 313 Mass Storage Device
                    • 3131 Mass Storage Device Implementation
                    • 3132 Fuse Bytes
                    • 3133 Limitations of Drag-and-Drop Programming
                    • 3134 Special Commands
                      • 314 Data Gateway Interface (DGI)
                        • 3141 Debug GPIO
                        • 3142 Timestamping
                            • 32 Curiosity Nano Standard Pinout
                            • 33 Power Supply
                              • 331 Target Regulator
                              • 332 External Supply
                              • 333 VBUS Output Pin
                              • 334 Power Supply Exceptions
                                • 34 Low Power Measurement
                                • 35 Programming External Microcontrollers
                                  • 351 Supported Devices
                                  • 352 Software Configuration
                                  • 353 Hardware Modifications
                                  • 354 Connecting to External Microcontrollers
                                    • 36 Connecting External Debuggers
                                      • 4 Hardware User Guide
                                        • 41 Connectors
                                          • 411 AVR128DA48 Curiosity Nano Pinout
                                          • 412 Using Pin Headers
                                            • 42 Peripherals
                                              • 421 LED
                                              • 422 Mechanical Switch
                                              • 423 Crystal
                                              • 424 On-Board Debugger Implementation
                                                • 4241 On-Board Debugger Connections
                                                  • 5 Hardware Revision History and Known Issues
                                                    • 51 Identifying Product ID and Revision
                                                    • 52 Revision 3
                                                      • 6 Document Revision History
                                                      • 7 Appendix
                                                        • 71 Schematic
                                                        • 72 Assembly Drawing
                                                        • 73 Curiosity Nano Base for Click boardstrade
                                                        • 74 Disconnecting the On-board Debugger
                                                        • 75 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: AVR128DA48 Curiosity Nano User Guide - Microchip Technologyww1.microchip.com/downloads/en/DeviceDoc/AVR128DA48... · 2020-03-19 · AVR128DA48 Curiosity Nano AVR128DA48 Curiosity

Figure 3-12 Connecting the Atmel-ICE to AVR128DA48 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 Atmel StudioMicrochip MPLABreg XIDE or mass storage programming while the external tool is active

AVR128DA48 Curiosity NanoCuriosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 23

4 Hardware User Guide

41 Connectors

411 AVR128DA48 Curiosity Nano PinoutAll the AVR128DA48 IO pins are accessible at the edge connectors on the board The image below shows the boardpinout

Figure 4-1 AVR128DA48 Curiosity Nano Pinout

USB

DEBUGGER

AVR128DA48

SW0

LED0

PS LEDNC

NC

ID

ID

CDC RX

CDCRXUSART1 TXPC0

CDC TX

CDCTXUSART1 RXPC1

DBG1

DBG

1PC6LED0

DBG2

DBG

2PC7SW0

PA0

PA0USART0 TXPTC XY0

PA1PA

1USART0 RXPTC XY1

PC2PC2TWI0 SDA

PC3

PC3TWI0 SCL

PA4

PA4SPI0 MOSIPTC XY4

PA5

PA5SPI0 MISOPTC XY5

PA6

PA6SPI0 SCKPTC XY6

PA7

PA7SPI0 SSPTC XY7

GND

GN

D

PF4

PF4USART2 TXPTC XY36

PF5

PF5USART2 RXPTC XY37

PF2

PF2PTC XY34

PF3

PF3PTC XY35

PB0

PB0PTC XY8

PB1

PB1PTC XY9

PB2

PB2PTC XY10

PB3

PB3PTC XY11

GND

GN

D

PC0

PC0USART1 TXCDC RX

PC1

PC1USART1 RXCDC TX

PC6

PC6LED0

PC7

PC7SW0

VBUS

VBU

S

VOFF

VO

FFDBG3

DBG

3 PF6

DBG0D

BG0 UPDI

GND

GN

D

VTG

VTG

PD7

PD7 AIN7 PTC XY23

PD6

PD6 AIN6 PTC XY22

PD2

PD2 AIN2 PTC XY18 TCA0 WO2

PD1

PD1 AIN1 PTC XY17 TCA0 WO1

PD0

PD0 AIN0 PTC XY16 TCA0 WO0

PD5

PD5 AIN5 PTC XY21

PD4

PD4 AIN4 PTC XY20

PD3

PD3 AIN3 PTC XY19

GND

GN

D

PE3

PE3 PTC XY27

PE2

PE2 PTC XY26

PE1

PE1 PTC XY25

PE0

PE0 PTC XY24

PA3

PA3 PTC XY3

PA2

PA2 PTC XY2

PB5

PB5 PTC XY13

PB4

PB4 PTC XY12

GND

GN

D

PC5

PC5

PC4

PC4

(PF1)

(PF1) (PTC XY33) XTAL32K2

(PF0)

(PF0) (PTC XY32) XTAL32K1

DEBUGGERAVR128DA48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

Touch

Shared pin

AVR128DA48Curiosity Nano

412 Using Pin HeadersThe edge connector footprint on AVR128DA48 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

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

AVR128DA48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 24

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

42 Peripherals

421 LEDThere is one yellow user LED available on the AVR128DA48 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 4-1 LED Connection

AVR128DA48 Pin Function Shared Functionality

PC6 Yellow LED0 Edge connector On-board debugger

422 Mechanical SwitchThe AVR128DA48 Curiosity Nano has one mechanical switch This is a generic user-configurable switch When theswitch 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 PC7

Table 4-2 Mechanical Switch

AVR128DA48 Pin Description Shared Functionality

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

423 Crystal

The AVR128DA48 Curiosity Nano board has a 32768 kHz crystal mounted

The AVR128DA48 is connected to the crystal by default but the GPIOs are also routed to the edge connectorthrough two solder points The two IO lines routed to the edge connector are disconnected by default to reduce thechance of an external signal causing contention with the crystal and to remove excessive capacitance on the linesTo use PF0 and PF1 as GPIO some hardware modifications are required

bull Disconnect the crystal by cutting the two straps on the top side of the board next to the crystal (J210 J211) Thecrystal 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 (J207 J208)

The cut straps and solder points can be seen in Figure 4-2

Table 4-3 Crystal Connections

AVR128DA48 Pin Function Shared Functionality

PF0 TOSC1 (Crystal input) Edge connector

PF1 TOSC2 (Crystal output) Edge connector

AVR128DA48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 25

Figure 4-2 Crystal Connection and Cut Straps

424 On-Board Debugger ImplementationAVR128DA48 Curiosity Nano features an on-board debugger that can be used to program and debug theAVR128DA48 using UPDI The on-board debugger also includes a virtual serial port (CDC) interface over UART anddebug GPIO Atmel StudioMicrochip MPLABreg X IDE 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

4241 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 31 On-Board DebuggerOverview

Table 4-4 On-Board Debugger Connections

AVR128DA48Pin

Debugger Pin Function Shared Functionality

RF1 CDC TX UART RX (AVR128DA48 RX line) Edge connector

RF0 CDC RX UART TX (AVR128DA48 TX line) Edge connector

UPDI DBG0 UPDI Edge connector

PC6 DBG1 GPIO1 Edge connector LED

PC7 DBG2 GPIO0 Edge connector Mechanical Switch

PF6 DBG3 RESET Edge connector

AVR128DA48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 26

5 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

51 Identifying Product ID and RevisionThe revision and product identifier of the AVR128DA48 Curiosity Nano Board can be found in two ways Either byutilizing the Atmel StudioMicrochip MPLABreg X IDE Kit Window or by looking at the sticker on the bottom side of thePCB

By connecting AVR128DA48 Curiosity Nano to a computer with Atmel StudioMicrochip MPLABreg X IDE running theKit Window will pop up The first six digits of the serial number which is listed under kit information contain theproduct identifier 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 AVR128DA48 Curiosity Nano is A09-3280

52 Revision 3Revision 3 is the initially released revision There are no known issues with this revision

AVR128DA48 Curiosity NanoHardware Revision History and Known Issues

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 27

6 Document Revision HistoryDoc rev Date Comment

A 032020 Initial document release

AVR128DA48 Curiosity NanoDocument Revision History

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 28

7 Appendix

71 SchematicFigure 7-1 AVR128DA48 Curiosity Nano Schematic

11

22

33

44

55

66

77

88

DD

CC

BB

AA

2 of

4

AVR1

28D

A48

Curio

sity

Nan

o

102

320

19AV

R128

DA

48_C

urio

sity

_Nan

o_Ta

rget

_MCU

Sch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA R

evisi

on

File

PC

B N

umbe

rPC

B Re

visio

n

Des

igne

d wi

th

Dra

wn

By

PB Shee

t Titl

eTa

rget

MCU

Engi

neer

A

H T

F

A08

-300

23

Size

A3

A09

-328

03

Page

D

ateA

ltium

com

GN

DV

CC_T

ARG

ET

100n

C201

GN

D

PA5_

SPI0

_MIS

OPA

6_SP

I0_S

CKPA

7_SP

I0_S

SPB

0_U

ART

3_TX

PB1_

UA

RT3_

RXPB

2PB

3PB

4PB

5PC

0_U

ART

1_TX

PC1_

UA

RT1_

RXPC

2_I2

C0_S

DA

PC3_I2C0_SCL

PC4PC5PC6_LED0_GPIO1PC7_SW0_GPIO0PD0_AIN0_WO0PD1_AIN1_WO1PD2_AIN2_WO2PD3_AIN3PD4_AIN4

PA3

PA1_UART0_RX

UPDI

PF5_UART2_RX

PF3

PF2

PF1_

TOSC

2PF

0_TO

SC1

PE3

PE2

PE1

PE0

PD5_

AIN

5PD

6_A

IN6

PD7_

AIN

7

GN

D

VCC

_TA

RGET

100n

C202

GN

DV

CC_T

ARG

ET10

0n

C200

PF1_TOSC2

PF0_TOSC1

PA2

PA0_UART0_TX

PF4_UART2_TX

PA4_SPI0_MOSI

GN

D

PA7_

SPI0

_SS

PA6_

SPI0

_SCK

PA5_

SPI0

_MIS

OPA

4_SP

I0_M

OSI

PA3

PA2

PA1_

UA

RT0_

RXPA

0_U

ART

0_TX

PB0_

UA

RT3_

TXPB

1_U

ART

3_RX

PB2

PB3

PB4

PB5

PD7_

AIN

7PD

6_A

IN6

PF5_

UA

RT2_

RXPF

4_U

ART

2_TX

PF3

PF2

32kH

z C

ryst

al

1kR203

USE

R L

ED

VCC

_TA

RGET

PF6_RESET

PC7_SW0_GPIO0

PC6_LED0_GPIO1

GN

D

USE

R B

UTT

ON

PE3

PE2

PE1

PE0

PC0_

UA

RT1_

TXPC

1_U

ART

1_RX

PC2_

I2C0

_SD

APC

3_I2

C0_S

CL

PC4

PC5

PC6_

LED

0_G

PIO

1PC

7_SW

0_G

PIO

0

1kR202

YELLOWLEDSML-D12Y1WT86

2 1D200

TS604VM1-035CR13

4 2

SW20

0

GN

DV

CC_E

DG

E

GN

DG

ND

GN

DG

ND

UPD

IPF

6_RE

SET

J207

J208

J209

BLM

18PG

471S

N1

L200

AVR1

28D

A48

22u

FC2

05

VCC

_ED

GE

GN

D

DBG0

CDC_

UART

TXRXU

ART

CDC_TXCDC_RX

DBG2

DBG1

DBG3

DBG2

DEB

UG

GER

CO

NN

ECTI

ON

S

DBG1

DBG3DBG0

VOFF

ID_S

YS

ID_SYS

VOFF

TAR

GET

BU

LK

VCC

_TA

RGET

RES

ET P

ull

VBU

S

CDC

RX3

CDC

TX4

DBG

15

DBG

26

0 TX

71

RX8

2 SD

A9

3 SC

L10

4 M

OSI

115

MIS

O12

6 SC

K13

7 SS

14G

ND

150

(TX

)16

1 (R

X)

172

183

190

20

GN

D24

DBG

354

DBG

053

GN

D52

VCC

51

PWM

346

AD

C 2

45A

DC

144

AD

C 0

43G

ND

42

438

434

GN

D33

AD

C 7

50A

DC

649

AD

C 5

48PW

M 4

47

DEB

UG

GER

TARG

ET

ID2

VO

FF55

121

222

323

025

126

227

328

429

530

631

732

535

636

737

539

640

741

RESE

RVED

1V

BUS

56

CNA

NO

56-p

in e

dge

conn

ecto

r

J200

J201

J203

J205

J206

J202

J204

PF1

PF0

PF1_

TOSC

2PF

0_TO

SC1

NC

J211

J210

XOUT

XIN

47kR200

AVR

128D

A48

UPD

I

GPI

O1

GPI

O0

RESE

T

DBG

0

DBG

1

DBG

2

DBG

3

Deb

ugge

r

CD

C T

X

CD

C R

X

UA

RT1

RX

UA

RT1

TX

VTG

18V

- 5

5VPC6

PC7

PF6

UPD

I

PC0

PC1

Nam

ePi

n

PA5

1PA

62

PA7

3PB

04

PB1

5PB

26

PB3

7PB

48

PB5

9PC

010

PC1

11PC

212

PC3 13VDD 14GND 15PC4 16PC5 17PC6 18PC7 19PD0 20PD1 21PD2 22PD3 23PD4 24

PD5

25PD

626

PD7

27AV

DD28

GND

29PE

030

PE1

31PE

232

PE3

33XT

AL32

K1P

F034

XTAL

32K2

PF1

35PF

236

PF337 PF438 PF539 PF640 UPDI41 VDD42 GND43 EXTCLKPA044 PA145 PA246 PA347 PA448

AVR1

28D

A48

TQ

FPU

200

PC0_

UA

RT1_

TXPC

1_U

ART

1_RX

PC6_

LED

0_G

PIO

1PC

7_SW

0_G

PIO

0

AVD

D

PD2_

AIN

2_W

O2

PD1_

AIN

1_W

O1

PD0_

AIN

0_W

O0

PD5_

AIN

5PD

4_A

IN4

PD3_

AIN

3

XC2

00

12p

C203

12p

C204

327

68 k

Hz

Crys

tal d

atas

heet

Cc

rysta

l = 9

pFm

ax E

SR =

70k

Ohm

Acc

urac

y plusmn2

0ppm

AVR1

28D

A48

dat

ashe

et

Cxin

= 4

1pF

Cxou

t = 6

0pF

Cl asymp

1( (

14

1pF)

+ (1

60

pF) )

asymp2

44pF

Max

imum

Loa

d =

125

pFM

axim

um E

SR =

80k

Ohm

Estim

ated

Cpc

b =

05p

F

Estim

ated

load

C =

2 (C

crys

tal-

Cpar

a - C

pcb)

C

= 2

(9pF

- 2

44pF

- 0

5pF)

C =

121

2pF

Sele

cted

in d

esig

n af

ter v

erifi

catio

nC=

12p

F12

pF

NO

TE o

n U

ART

CD

C

RXT

X o

n th

e he

ader

den

otes

the

inpu

tout

put d

irect

ion

of th

e sig

nal

resp

ectiv

e to

its

sour

ce

CDC

TX is

out

put f

rom

the

DEB

UG

GER

CD

C RX

is in

put t

o th

e D

EBU

GG

ER

TX is

out

put f

rom

the

TARG

ET d

evic

eRX

is in

put t

o th

e TA

RGET

dev

ice

NO

TE o

n I2

C

No

pull-

ups o

n bo

ard

Pul

l-ups

shou

ld b

e m

ount

ed c

lose

to sl

ave

devi

ce(s

)

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 29

11

22

33

44

55

66

77

88

DD

CC

BB

AA

3 of

4

AVR1

28D

A48

Curio

sity

Nan

o

102

320

19AV

R128

DA

48_C

urio

sity

_Nan

o_D

ebug

gerS

chD

oc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA R

evisi

on

File

PC

B N

umbe

rPC

B Re

visio

n

Des

igne

d wi

th

Dra

wn

By

PB Shee

t Titl

eD

ebug

ger

Engi

neer

A

H T

F

A08

-300

23

Size

A3

A09

-328

03

Page

D

ateA

ltium

com

DEB

UG

GER

USB

MIC

RO

-B C

ON

NEC

TOR

GN

D

USB

D_P

USB

D_N

100n

C107

100n

C108

RXTXU

ART

CDC_

UART

1kR1

07V

CC_P

3V3

SRST

STAT

US_

LED

SHIE

LD

VBU

S

VCC

_P3V

3G

ND

TP10

0

Testp

oint

Arra

y

12

34

56

78

910

TCK

TDO

TMS

Vsu

pTD

IG

ND

TRST

SRST

VTr

efG

ND

J102

GN

D

47u

F

C100

DBG0

DBG

0

21

GRE

EN L

EDSM

L-P1

2MTT

86R

D10

0

VBUS

1D-

2D+

3

GND

5SH

IELD

16

SHIE

LD2

7

ID4

SHIE

LD3

8SH

IELD

49 M

U-M

B014

2AB2

-269

J105

PAD

33

PA00

1PA

012

PA02

3PA

034

GND 10VDDANA 9

PA04

5PA

056

PA06

7PA

078

PA08 11PA09 12PA10 13PA11 14PA14 15PA15 16

PA16

17PA

1718

PA18

19PA

1920

PA22

21US

B_SO

FPA

2322

USB_

DMP

A24

23US

B_DP

PA2

524

PA2725 RESETN26 PA2827 GND28 VDDCORE29 VDDIN30 SWDCLKPA3031 SWDIOPA3132

SAM

D21

E18A

-MU

TU

100

VOUT

1

VOUT

2

GND 3

EN4

VIN

6

NC5

EP 7

MIC

5528

-33

YM

TU

101

VCC

_P3V

3

GN

D

USB

D_P

USB

D_N

GN

D

1uC106

VCC

_MCU

_CO

RE

VCC

_P3V

3

VCC

_P3V

3

22u

FC1

01

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

3V

CC_P

3V3

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

4V

CC_P

3V3

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

5V

CC_P

3V3

GN

D

GN

D GN

D

GN

D

VCC

_ED

GE

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

7V

CC_P

3V3

GN

DDB

G2

DBG

3_CT

RL

S1_0

_TX

S1_1

_RX

S0_2

_TX

DA

CV

TG_A

DC

RESE

RVED

S0_3

_CLK

DBG0_CTRL

CDC_

TX_C

TRL

BOO

T

DEB

UG

GER

PO

WER

STA

TUS

LED

EN1

BYP

6

VOUT

4

GND

2

VIN

3

NCA

DJ5

GND 7

MIC

5353

U10

2

100n

C102

GN

D

GN

D

47kR101

27kR104 G

ND

33k

R106

22u

F

C103 G

ND

1kR1

08

J100

VCC

_LEV

ELV

CC_R

EGU

LATO

R

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

6V

CC_P

3V3

GN

DDB

G1

CDC_

RXCD

C_TX

DBG3

DBG1_CTRL

DEB

UG

GER

REG

ULA

TOR

REG_ENABLE

REG

_EN

ABL

E

47kR103

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

47kR102

47kR105

SWCL

K

GN

D

47kR100 G

ND

DBG

2

S0_0

_RX

DBG

1_CT

RL

DBG

0_CT

RL

DBG

3 O

PEN

DR

AIN

TAR

GET

AD

JUST

ABL

E R

EGU

LATO

R

SRST

DEB

UG

GER

TES

TPO

INT DBG2_CTRL

VO

FFCD

C_RX

_CTR

L

47kR109

DBG

1

CDC_

TX_C

TRL

CDC_

RX_C

TRL

SWCL

K

REG_ADJUST

DBG2_GPIO

DBG

3_CT

RL

DBG

2_CT

RL

UPD

I

UPD

I

GPI

O

GPI

O

RESE

T

Sign

al

DBG

0

DBG

1

DBG

2

DBG

3

ICSP

Inte

rface

DAT

CLK

GPI

O

MCL

R

DBG

3

CD

C T

X

CD

C R

X

UA

RT R

X

UA

RT T

X

UA

RT R

X

UA

RT T

X

TAR

GET

TAR

GET

1kR1

10

VBUS_ADC

1

23

DM

N65

D8L

FBQ

101

VC

C-

-

ID_S

YS

VOFF

1kR112

VCC

_P3V

3

VTG

_AD

CD

AC

MIC

9416

3

VIN

B2VO

UTA1

VIN

A2

ENC2

GND

C1VO

UTB1

U10

8

GN

D

ID_S

YS

VTG

_EN

VTG_EN

VBUS_ADC

SWD

IO

ID_S

YS

TP10

1G

ND

SWD

IO

VO

FF

47kR111 G

ND

ID P

IN

MC3

6213

F100

VCC

_VBU

S

VCC

_VBU

S

VCC

_VBU

S

J101

VCC

_TA

RGET

47k

R113

Prog

ram

min

g co

nnec

tor f

or

fact

ory

prog

ram

min

g of

D

EBU

GG

ER

MIC

5528

Vi

n 2

5V

to 5

5V

Vout

Fix

ed 3

3V

Imax

500

mA

Dro

pout

260

mV

5

00m

A

PTC

Rese

ttabl

e fu

se

Hol

d cu

rrent

500

mA

Trip

cur

rent

100

0mA

Adj

usta

ble

outp

ut a

nd li

mita

tions

- T

he D

EBU

GG

ER c

an a

djus

t the

out

put v

olta

ge o

f the

regu

lato

r bet

wee

n 1

25V

and

51

V to

the

targ

et

- The

vol

tage

out

put i

s lim

ited

by th

e in

put (

USB

) w

hich

can

var

y be

twee

n 4

40V

to 5

25V

- The

leve

l shi

fters

hav

e a

min

imal

vol

tage

leve

l of 1

65V

and

will

lim

it th

e m

inim

um o

pera

ting

volta

ge a

llow

ed fo

r the

ta

rget

to st

ill a

llow

com

mun

icat

ion

- The

MIC

9416

3 ha

s a m

inim

al v

olta

ge le

vel o

f 17

0V a

nd w

ill li

mit

the

min

imum

vol

tage

del

iver

ed to

the

targ

et

- Firm

war

e co

nfig

urat

ion

will

lim

it th

e vo

ltage

rang

e to

be

with

in th

e th

e ta

rget

spec

ifica

tion

R113

is re

quire

d to

pul

l the

Q

101

gate

to a

def

ined

va

lue

whe

n th

e U

100

is no

t po

wer

ed

J100

Cu

t-stra

p us

ed fo

r ful

l sep

arat

ion

of ta

rget

pow

er fr

om th

e le

vel s

hifte

rs a

nd o

n-bo

ard

regu

lato

rs

- For

cur

rent

mea

sure

men

ts us

ing

an e

xter

nal p

ower

supp

ly t

his s

trap

coul

d be

cut

for m

ore

accu

rate

mea

sure

men

ts L

eaka

ge b

ack

thro

ugh

the

switc

h is

in th

e m

icro

am

pere

rang

e

J101

Th

is is

foot

prin

t for

a 1

x2 1

00m

il pi

tch

pin-

head

er th

at c

an b

e us

ed fo

r eas

y cu

rrent

mea

sure

men

t to

the

targ

et m

icro

cont

rolle

r and

the

LED

Bu

tton

To

use

the

foot

prin

t- C

ut th

e tra

ck b

etw

een

the

hole

s an

d m

ount

a p

in-h

eade

r

MIC

5353

Vi

n 2

6V

to 6

VVo

ut 1

25V

to 5

1V

Imax

500

mA

Dro

pout

(typ

ical

) 50

mV

15

0mA

160

mV

5

00m

AA

ccur

acy

2

initi

alTh

erm

al sh

utdo

wn

and

curre

nt li

mit

Max

imum

out

put v

olta

ge is

lim

ited

by th

e in

put v

olta

ge a

nd th

e dr

opou

t vol

tage

in th

e re

gula

tor

(Vm

ax =

Vin

- dr

opou

t)

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 30

72 Assembly DrawingFigure 7-2 AVR128DA48 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

PAC20002 PAC20001 COC200

PAC20102 PAC20101 COC201

PAC20202 PAC20201 COC202

PAC20301 PAC20302 COC203

PAC20401 PAC20402 COC204

PAC20502

PAC20501 COC205

PAD10002 PAD10001 COD100

PAD20001

PAD20002 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

PAJ20701 PAJ20702 PAJ20705 COJ207

PAJ20801 PAJ20802 PAJ20805 COJ208

PAJ20901 PAJ20902 COJ209

PAJ21002 PAJ21001 COJ210

PAJ21102 PAJ21101 COJ211

PAL20002 PAL20001 COL200

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

PAR20002 PAR20001 COR200

PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203

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

PAU200048 PAU200047 PAU200046 PAU200045 PAU200044 PAU200043 PAU200042 PAU200041 PAU200040 PAU200039 PAU200038 PAU200037 PAU200036 PAU200035 PAU200034 PAU200033 PAU200032 PAU200031 PAU200030 PAU200029 PAU200028 PAU200027 PAU200026 PAU200025 PAU200024 PAU200023 PAU200022 PAU200021 PAU200020 PAU200019 PAU200018 PAU200017 PAU200016 PAU200015 PAU200014 PAU200013

PAU200012 PAU200011 PAU200010 PAU20009 PAU20008 PAU20007 PAU20006 PAU20005 PAU20004 PAU20003 PAU20002 PAU20001

COU200

PAXC20001

PAXC20002

COXC200

Figure 7-3 AVR128DA48 Curiosity Nano Assembly Drawing Bottom

ctR

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20002 PAC20001 COC200

PAC20102 PAC20101 COC201

PAC20202 PAC20201 COC202

PAC20301 PAC20302 COC203

PAC20401 PAC20402 COC204

PAC20502

PAC20501 COC205

PAD10002 PAD10001 COD100

PAD20001

PAD20002 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

PAJ20701 PAJ20702 PAJ20705 COJ207

PAJ20801 PAJ20802 PAJ20805 COJ208

PAJ20901 PAJ20902 COJ209

PAJ21002 PAJ21001 COJ210

PAJ21102 PAJ21101 COJ211

PAL20002 PAL20001 COL200

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

PAR20002 PAR20001 COR200

PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203

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

PAU200048 PAU200047 PAU200046 PAU200045 PAU200044 PAU200043 PAU200042 PAU200041 PAU200040 PAU200039 PAU200038 PAU200037 PAU200036 PAU200035 PAU200034 PAU200033 PAU200032 PAU200031 PAU200030 PAU200029 PAU200028 PAU200027 PAU200026 PAU200025 PAU200024 PAU200023 PAU200022 PAU200021 PAU200020 PAU200019 PAU200018 PAU200017 PAU200016 PAU200015 PAU200014 PAU200013

PAU200012 PAU200011 PAU200010 PAU20009 PAU20008 PAU20007 PAU20006 PAU20005 PAU20004 PAU20003 PAU20002 PAU20001

COU200

PAXC20001

PAXC20002

COXC200

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 31

73 Curiosity Nano Base for Click boardstrade

Figure 7-4 AVR128DA48 Curiosity Nano Pinout Mapping

USB

DEB

UG

GER

AVR1

28D

A48

SW0

LED

0

PS L

EDNC

NC

ID

ID

CDC RX

CDCRX

USART1 TX

PC0

CDC TX

CDCTX

USART1 RX

PC1

DBG1

DBG1

PC6

LED0

DBG2

DBG2

PC7

SW0

PA0

PA0

USART0 TX

PTC XY0

PA1

PA1

USART0 RX

PTC XY1

PC2

PC2

TWI0 SDA

PC3

PC3

TWI0 SCL

PA4

PA4

SPI0 MOSI

PTC XY4

PA5

PA5

SPI0 MISO

PTC XY5

PA6

PA6

SPI0 SCK

PTC XY6

PA7

PA7

SPI0 SS

PTC XY7

GND

GND

PF4

PF4

USART2 TX

PTC XY36

PF5

PF5

USART2 RX

PTC XY37

PF2

PF2

PTC XY34

PF3

PF3

PTC XY35

PB0

PB0

PTC XY8

PB1

PB1

PTC XY9

PB2

PB2

PTC XY10

PB3

PB3

PTC XY11

GND

GND

PC0

PC0

USART1 TX

CDC RX

PC1

PC1

USART1 RX

CDC TX

PC6

PC6

LED0

PC7

PC7

SW0

VBUS

VBUS

VOFF

VOFF

DBG3

DBG3

PF6

DBG0

DBG0

UPDI

GND

GND

VTG

VTG

PD7

PD7

AIN7

PTC XY23

PD6

PD6

AIN6

PTC XY22

PD2

PD2

AIN2

PTC XY18

TCA0 WO2

PD1

PD1

AIN1

PTC XY17

TCA0 WO1

PD0

PD0

AIN0

PTC XY16

TCA0 WO0

PD5

PD5

AIN5

PTC XY21

PD4

PD4

AIN4

PTC XY20

PD3

PD3

AIN3

PTC XY19

GND

GND

PE3

PE3

PTC XY27

PE2

PE2

PTC XY26

PE1

PE1

PTC XY25

PE0

PE0

PTC XY24

PA3

PA3

PTC XY3

PA2

PA2

PTC XY2

PB5

PB5

PTC XY13

PB4

PB4

PTC XY12

GND

GND

PC5

PC5

PC4

PC4

(PF1)

(PF1)

(PTC XY33)

XTAL32K2

(PF0)

(PF0)

(PTC XY32)

XTAL32K1

DEB

UG

GER

AVR1

28D

A48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

Touch

Shared pin

AVR1

28D

A48

Curio

sity

Nan

o

1

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

2

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

3

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

Xpl

aine

d Pr

o Ex

tens

ion

EXT1

12

1920

Curio

sity

Nan

o Ba

sefo

r clic

k bo

ards

TM

PD3

PD0

PD7

PD6

PA7

PA1

PA6

PA0

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

PD4

PD1

PF3

PF2

PE2

PF5

PA6

PF4

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

PD5

PD2

PE1

PE0

PE3

PA1

PA6

PA0

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

ID

GND

PD4

PD5

PF3

PE1

PD1

PD2

PF2

PE3

PC2

PC3

PF5

PF4

PE2

PA4

PA5

PA6

GND

+33V

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 32

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

The block diagram below shows all connections between the debugger and the AVR128DA48 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 7-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 7-6 Details about connecting an external debugger are described in 36 Connecting ExternalDebuggers

Figure 7-5  On-Board Debugger Connections Block Diagram

DEB

UG

GER

TARGETLevel-Shift

PA04PA06PA07PA08PA16PA00PA01

USB

DIR x 5

VCC_P3V3

VBUS

VCC

_LEV

EL

VCC

_TA

RGET

DBG0DBG1DBG2DBG3CDC 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

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 33

Figure 7-6 On-Board Debugger Connection Cut Straps

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

75 Getting Started with IARIAR Embedded Workbenchreg for AVRreg is a proprietary high-efficiency compiler not based on GCC Programming anddebugging of AVR128DA48 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 7-73 In the category Debugger select the Setup tab Select Atmel-ICE as the driver as shown in Figure 7-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 7-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

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 34

Figure 7-7 Select Target Device

Figure 7-8 Select Debugger

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 35

Figure 7-9 Configure Interface

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 36

The Microchip WebsiteMicrochip provides online support via our website at httpwwwmicrochipcom This website is used to make filesand information 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 ServiceMicrochiprsquos 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 httpwwwmicrochipcompcn and follow the registration instructions

Customer SupportUsers 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 httpwwwmicrochipcomsupport

Microchip Devices Code Protection FeatureNote the following details of the code protection feature on Microchip devices

bull Microchip products meet the specification contained in their particular Microchip Data Sheetbull Microchip believes that its family of products is one of the most secure families of its kind on the market today

when used in the intended manner and under normal conditionsbull There are dishonest and possibly illegal methods used to breach the code protection feature All of these

methods to our knowledge require using the Microchip products in a manner outside the operatingspecifications contained in Microchiprsquos Data Sheets Most likely the person doing so is engaged in theft ofintellectual property

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

protection does not mean that we are guaranteeing the product as ldquounbreakablerdquo

Code protection is constantly evolving We at Microchip are committed to continuously improving the code protectionfeatures of our products Attempts to break Microchiprsquos code protection feature may be a violation of the DigitalMillennium Copyright Act If such acts allow unauthorized access to your software or other copyrighted work youmay have a right to sue for relief under that Act

Legal NoticeInformation contained in this publication regarding device applications and the like is provided only for yourconvenience and may be superseded by updates It is your responsibility to ensure that your application meets with

AVR128DA48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 37

your specifications MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHEREXPRESS OR IMPLIED WRITTEN OR ORAL STATUTORY OR OTHERWISE RELATED TO THE INFORMATIONINCLUDING BUT NOT LIMITED TO ITS CONDITION QUALITY PERFORMANCE MERCHANTABILITY ORFITNESS FOR PURPOSE Microchip disclaims all liability arising from this information and its use Use of Microchipdevices in life support andor safety applications is entirely at the buyerrsquos risk and the buyer agrees to defendindemnify and hold harmless Microchip from any and all damages claims suits or expenses resulting from suchuse No licenses are conveyed implicitly or otherwise under any Microchip intellectual property rights unlessotherwise stated

TrademarksThe 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-5760-2

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

AVR128DA48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 38

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupporthttpwwwmicrochipcomsupportWeb AddresshttpwwwmicrochipcomAtlantaDuluth 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 DS50002971A-page 39

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Kit Overview
      • 2 Getting Started
        • 21 Quick Start
        • 22 Design Documentation and Relevant Links
          • 3 Curiosity Nano
            • 31 On-Board Debugger Overview
              • 311 Debugger
              • 312 Virtual Serial Port (CDC)
                • 3121 Overview
                • 3122 Operating System Support
                • 3123 Limitations
                • 3124 Signaling
                • 3125 Advanced Use
                  • 313 Mass Storage Device
                    • 3131 Mass Storage Device Implementation
                    • 3132 Fuse Bytes
                    • 3133 Limitations of Drag-and-Drop Programming
                    • 3134 Special Commands
                      • 314 Data Gateway Interface (DGI)
                        • 3141 Debug GPIO
                        • 3142 Timestamping
                            • 32 Curiosity Nano Standard Pinout
                            • 33 Power Supply
                              • 331 Target Regulator
                              • 332 External Supply
                              • 333 VBUS Output Pin
                              • 334 Power Supply Exceptions
                                • 34 Low Power Measurement
                                • 35 Programming External Microcontrollers
                                  • 351 Supported Devices
                                  • 352 Software Configuration
                                  • 353 Hardware Modifications
                                  • 354 Connecting to External Microcontrollers
                                    • 36 Connecting External Debuggers
                                      • 4 Hardware User Guide
                                        • 41 Connectors
                                          • 411 AVR128DA48 Curiosity Nano Pinout
                                          • 412 Using Pin Headers
                                            • 42 Peripherals
                                              • 421 LED
                                              • 422 Mechanical Switch
                                              • 423 Crystal
                                              • 424 On-Board Debugger Implementation
                                                • 4241 On-Board Debugger Connections
                                                  • 5 Hardware Revision History and Known Issues
                                                    • 51 Identifying Product ID and Revision
                                                    • 52 Revision 3
                                                      • 6 Document Revision History
                                                      • 7 Appendix
                                                        • 71 Schematic
                                                        • 72 Assembly Drawing
                                                        • 73 Curiosity Nano Base for Click boardstrade
                                                        • 74 Disconnecting the On-board Debugger
                                                        • 75 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: AVR128DA48 Curiosity Nano User Guide - Microchip Technologyww1.microchip.com/downloads/en/DeviceDoc/AVR128DA48... · 2020-03-19 · AVR128DA48 Curiosity Nano AVR128DA48 Curiosity

4 Hardware User Guide

41 Connectors

411 AVR128DA48 Curiosity Nano PinoutAll the AVR128DA48 IO pins are accessible at the edge connectors on the board The image below shows the boardpinout

Figure 4-1 AVR128DA48 Curiosity Nano Pinout

USB

DEBUGGER

AVR128DA48

SW0

LED0

PS LEDNC

NC

ID

ID

CDC RX

CDCRXUSART1 TXPC0

CDC TX

CDCTXUSART1 RXPC1

DBG1

DBG

1PC6LED0

DBG2

DBG

2PC7SW0

PA0

PA0USART0 TXPTC XY0

PA1PA

1USART0 RXPTC XY1

PC2PC2TWI0 SDA

PC3

PC3TWI0 SCL

PA4

PA4SPI0 MOSIPTC XY4

PA5

PA5SPI0 MISOPTC XY5

PA6

PA6SPI0 SCKPTC XY6

PA7

PA7SPI0 SSPTC XY7

GND

GN

D

PF4

PF4USART2 TXPTC XY36

PF5

PF5USART2 RXPTC XY37

PF2

PF2PTC XY34

PF3

PF3PTC XY35

PB0

PB0PTC XY8

PB1

PB1PTC XY9

PB2

PB2PTC XY10

PB3

PB3PTC XY11

GND

GN

D

PC0

PC0USART1 TXCDC RX

PC1

PC1USART1 RXCDC TX

PC6

PC6LED0

PC7

PC7SW0

VBUS

VBU

S

VOFF

VO

FFDBG3

DBG

3 PF6

DBG0D

BG0 UPDI

GND

GN

D

VTG

VTG

PD7

PD7 AIN7 PTC XY23

PD6

PD6 AIN6 PTC XY22

PD2

PD2 AIN2 PTC XY18 TCA0 WO2

PD1

PD1 AIN1 PTC XY17 TCA0 WO1

PD0

PD0 AIN0 PTC XY16 TCA0 WO0

PD5

PD5 AIN5 PTC XY21

PD4

PD4 AIN4 PTC XY20

PD3

PD3 AIN3 PTC XY19

GND

GN

D

PE3

PE3 PTC XY27

PE2

PE2 PTC XY26

PE1

PE1 PTC XY25

PE0

PE0 PTC XY24

PA3

PA3 PTC XY3

PA2

PA2 PTC XY2

PB5

PB5 PTC XY13

PB4

PB4 PTC XY12

GND

GN

D

PC5

PC5

PC4

PC4

(PF1)

(PF1) (PTC XY33) XTAL32K2

(PF0)

(PF0) (PTC XY32) XTAL32K1

DEBUGGERAVR128DA48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

Touch

Shared pin

AVR128DA48Curiosity Nano

412 Using Pin HeadersThe edge connector footprint on AVR128DA48 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

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

AVR128DA48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 24

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

42 Peripherals

421 LEDThere is one yellow user LED available on the AVR128DA48 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 4-1 LED Connection

AVR128DA48 Pin Function Shared Functionality

PC6 Yellow LED0 Edge connector On-board debugger

422 Mechanical SwitchThe AVR128DA48 Curiosity Nano has one mechanical switch This is a generic user-configurable switch When theswitch 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 PC7

Table 4-2 Mechanical Switch

AVR128DA48 Pin Description Shared Functionality

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

423 Crystal

The AVR128DA48 Curiosity Nano board has a 32768 kHz crystal mounted

The AVR128DA48 is connected to the crystal by default but the GPIOs are also routed to the edge connectorthrough two solder points The two IO lines routed to the edge connector are disconnected by default to reduce thechance of an external signal causing contention with the crystal and to remove excessive capacitance on the linesTo use PF0 and PF1 as GPIO some hardware modifications are required

bull Disconnect the crystal by cutting the two straps on the top side of the board next to the crystal (J210 J211) Thecrystal 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 (J207 J208)

The cut straps and solder points can be seen in Figure 4-2

Table 4-3 Crystal Connections

AVR128DA48 Pin Function Shared Functionality

PF0 TOSC1 (Crystal input) Edge connector

PF1 TOSC2 (Crystal output) Edge connector

AVR128DA48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 25

Figure 4-2 Crystal Connection and Cut Straps

424 On-Board Debugger ImplementationAVR128DA48 Curiosity Nano features an on-board debugger that can be used to program and debug theAVR128DA48 using UPDI The on-board debugger also includes a virtual serial port (CDC) interface over UART anddebug GPIO Atmel StudioMicrochip MPLABreg X IDE 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

4241 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 31 On-Board DebuggerOverview

Table 4-4 On-Board Debugger Connections

AVR128DA48Pin

Debugger Pin Function Shared Functionality

RF1 CDC TX UART RX (AVR128DA48 RX line) Edge connector

RF0 CDC RX UART TX (AVR128DA48 TX line) Edge connector

UPDI DBG0 UPDI Edge connector

PC6 DBG1 GPIO1 Edge connector LED

PC7 DBG2 GPIO0 Edge connector Mechanical Switch

PF6 DBG3 RESET Edge connector

AVR128DA48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 26

5 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

51 Identifying Product ID and RevisionThe revision and product identifier of the AVR128DA48 Curiosity Nano Board can be found in two ways Either byutilizing the Atmel StudioMicrochip MPLABreg X IDE Kit Window or by looking at the sticker on the bottom side of thePCB

By connecting AVR128DA48 Curiosity Nano to a computer with Atmel StudioMicrochip MPLABreg X IDE running theKit Window will pop up The first six digits of the serial number which is listed under kit information contain theproduct identifier 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 AVR128DA48 Curiosity Nano is A09-3280

52 Revision 3Revision 3 is the initially released revision There are no known issues with this revision

AVR128DA48 Curiosity NanoHardware Revision History and Known Issues

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 27

6 Document Revision HistoryDoc rev Date Comment

A 032020 Initial document release

AVR128DA48 Curiosity NanoDocument Revision History

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 28

7 Appendix

71 SchematicFigure 7-1 AVR128DA48 Curiosity Nano Schematic

11

22

33

44

55

66

77

88

DD

CC

BB

AA

2 of

4

AVR1

28D

A48

Curio

sity

Nan

o

102

320

19AV

R128

DA

48_C

urio

sity

_Nan

o_Ta

rget

_MCU

Sch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA R

evisi

on

File

PC

B N

umbe

rPC

B Re

visio

n

Des

igne

d wi

th

Dra

wn

By

PB Shee

t Titl

eTa

rget

MCU

Engi

neer

A

H T

F

A08

-300

23

Size

A3

A09

-328

03

Page

D

ateA

ltium

com

GN

DV

CC_T

ARG

ET

100n

C201

GN

D

PA5_

SPI0

_MIS

OPA

6_SP

I0_S

CKPA

7_SP

I0_S

SPB

0_U

ART

3_TX

PB1_

UA

RT3_

RXPB

2PB

3PB

4PB

5PC

0_U

ART

1_TX

PC1_

UA

RT1_

RXPC

2_I2

C0_S

DA

PC3_I2C0_SCL

PC4PC5PC6_LED0_GPIO1PC7_SW0_GPIO0PD0_AIN0_WO0PD1_AIN1_WO1PD2_AIN2_WO2PD3_AIN3PD4_AIN4

PA3

PA1_UART0_RX

UPDI

PF5_UART2_RX

PF3

PF2

PF1_

TOSC

2PF

0_TO

SC1

PE3

PE2

PE1

PE0

PD5_

AIN

5PD

6_A

IN6

PD7_

AIN

7

GN

D

VCC

_TA

RGET

100n

C202

GN

DV

CC_T

ARG

ET10

0n

C200

PF1_TOSC2

PF0_TOSC1

PA2

PA0_UART0_TX

PF4_UART2_TX

PA4_SPI0_MOSI

GN

D

PA7_

SPI0

_SS

PA6_

SPI0

_SCK

PA5_

SPI0

_MIS

OPA

4_SP

I0_M

OSI

PA3

PA2

PA1_

UA

RT0_

RXPA

0_U

ART

0_TX

PB0_

UA

RT3_

TXPB

1_U

ART

3_RX

PB2

PB3

PB4

PB5

PD7_

AIN

7PD

6_A

IN6

PF5_

UA

RT2_

RXPF

4_U

ART

2_TX

PF3

PF2

32kH

z C

ryst

al

1kR203

USE

R L

ED

VCC

_TA

RGET

PF6_RESET

PC7_SW0_GPIO0

PC6_LED0_GPIO1

GN

D

USE

R B

UTT

ON

PE3

PE2

PE1

PE0

PC0_

UA

RT1_

TXPC

1_U

ART

1_RX

PC2_

I2C0

_SD

APC

3_I2

C0_S

CL

PC4

PC5

PC6_

LED

0_G

PIO

1PC

7_SW

0_G

PIO

0

1kR202

YELLOWLEDSML-D12Y1WT86

2 1D200

TS604VM1-035CR13

4 2

SW20

0

GN

DV

CC_E

DG

E

GN

DG

ND

GN

DG

ND

UPD

IPF

6_RE

SET

J207

J208

J209

BLM

18PG

471S

N1

L200

AVR1

28D

A48

22u

FC2

05

VCC

_ED

GE

GN

D

DBG0

CDC_

UART

TXRXU

ART

CDC_TXCDC_RX

DBG2

DBG1

DBG3

DBG2

DEB

UG

GER

CO

NN

ECTI

ON

S

DBG1

DBG3DBG0

VOFF

ID_S

YS

ID_SYS

VOFF

TAR

GET

BU

LK

VCC

_TA

RGET

RES

ET P

ull

VBU

S

CDC

RX3

CDC

TX4

DBG

15

DBG

26

0 TX

71

RX8

2 SD

A9

3 SC

L10

4 M

OSI

115

MIS

O12

6 SC

K13

7 SS

14G

ND

150

(TX

)16

1 (R

X)

172

183

190

20

GN

D24

DBG

354

DBG

053

GN

D52

VCC

51

PWM

346

AD

C 2

45A

DC

144

AD

C 0

43G

ND

42

438

434

GN

D33

AD

C 7

50A

DC

649

AD

C 5

48PW

M 4

47

DEB

UG

GER

TARG

ET

ID2

VO

FF55

121

222

323

025

126

227

328

429

530

631

732

535

636

737

539

640

741

RESE

RVED

1V

BUS

56

CNA

NO

56-p

in e

dge

conn

ecto

r

J200

J201

J203

J205

J206

J202

J204

PF1

PF0

PF1_

TOSC

2PF

0_TO

SC1

NC

J211

J210

XOUT

XIN

47kR200

AVR

128D

A48

UPD

I

GPI

O1

GPI

O0

RESE

T

DBG

0

DBG

1

DBG

2

DBG

3

Deb

ugge

r

CD

C T

X

CD

C R

X

UA

RT1

RX

UA

RT1

TX

VTG

18V

- 5

5VPC6

PC7

PF6

UPD

I

PC0

PC1

Nam

ePi

n

PA5

1PA

62

PA7

3PB

04

PB1

5PB

26

PB3

7PB

48

PB5

9PC

010

PC1

11PC

212

PC3 13VDD 14GND 15PC4 16PC5 17PC6 18PC7 19PD0 20PD1 21PD2 22PD3 23PD4 24

PD5

25PD

626

PD7

27AV

DD28

GND

29PE

030

PE1

31PE

232

PE3

33XT

AL32

K1P

F034

XTAL

32K2

PF1

35PF

236

PF337 PF438 PF539 PF640 UPDI41 VDD42 GND43 EXTCLKPA044 PA145 PA246 PA347 PA448

AVR1

28D

A48

TQ

FPU

200

PC0_

UA

RT1_

TXPC

1_U

ART

1_RX

PC6_

LED

0_G

PIO

1PC

7_SW

0_G

PIO

0

AVD

D

PD2_

AIN

2_W

O2

PD1_

AIN

1_W

O1

PD0_

AIN

0_W

O0

PD5_

AIN

5PD

4_A

IN4

PD3_

AIN

3

XC2

00

12p

C203

12p

C204

327

68 k

Hz

Crys

tal d

atas

heet

Cc

rysta

l = 9

pFm

ax E

SR =

70k

Ohm

Acc

urac

y plusmn2

0ppm

AVR1

28D

A48

dat

ashe

et

Cxin

= 4

1pF

Cxou

t = 6

0pF

Cl asymp

1( (

14

1pF)

+ (1

60

pF) )

asymp2

44pF

Max

imum

Loa

d =

125

pFM

axim

um E

SR =

80k

Ohm

Estim

ated

Cpc

b =

05p

F

Estim

ated

load

C =

2 (C

crys

tal-

Cpar

a - C

pcb)

C

= 2

(9pF

- 2

44pF

- 0

5pF)

C =

121

2pF

Sele

cted

in d

esig

n af

ter v

erifi

catio

nC=

12p

F12

pF

NO

TE o

n U

ART

CD

C

RXT

X o

n th

e he

ader

den

otes

the

inpu

tout

put d

irect

ion

of th

e sig

nal

resp

ectiv

e to

its

sour

ce

CDC

TX is

out

put f

rom

the

DEB

UG

GER

CD

C RX

is in

put t

o th

e D

EBU

GG

ER

TX is

out

put f

rom

the

TARG

ET d

evic

eRX

is in

put t

o th

e TA

RGET

dev

ice

NO

TE o

n I2

C

No

pull-

ups o

n bo

ard

Pul

l-ups

shou

ld b

e m

ount

ed c

lose

to sl

ave

devi

ce(s

)

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 29

11

22

33

44

55

66

77

88

DD

CC

BB

AA

3 of

4

AVR1

28D

A48

Curio

sity

Nan

o

102

320

19AV

R128

DA

48_C

urio

sity

_Nan

o_D

ebug

gerS

chD

oc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA R

evisi

on

File

PC

B N

umbe

rPC

B Re

visio

n

Des

igne

d wi

th

Dra

wn

By

PB Shee

t Titl

eD

ebug

ger

Engi

neer

A

H T

F

A08

-300

23

Size

A3

A09

-328

03

Page

D

ateA

ltium

com

DEB

UG

GER

USB

MIC

RO

-B C

ON

NEC

TOR

GN

D

USB

D_P

USB

D_N

100n

C107

100n

C108

RXTXU

ART

CDC_

UART

1kR1

07V

CC_P

3V3

SRST

STAT

US_

LED

SHIE

LD

VBU

S

VCC

_P3V

3G

ND

TP10

0

Testp

oint

Arra

y

12

34

56

78

910

TCK

TDO

TMS

Vsu

pTD

IG

ND

TRST

SRST

VTr

efG

ND

J102

GN

D

47u

F

C100

DBG0

DBG

0

21

GRE

EN L

EDSM

L-P1

2MTT

86R

D10

0

VBUS

1D-

2D+

3

GND

5SH

IELD

16

SHIE

LD2

7

ID4

SHIE

LD3

8SH

IELD

49 M

U-M

B014

2AB2

-269

J105

PAD

33

PA00

1PA

012

PA02

3PA

034

GND 10VDDANA 9

PA04

5PA

056

PA06

7PA

078

PA08 11PA09 12PA10 13PA11 14PA14 15PA15 16

PA16

17PA

1718

PA18

19PA

1920

PA22

21US

B_SO

FPA

2322

USB_

DMP

A24

23US

B_DP

PA2

524

PA2725 RESETN26 PA2827 GND28 VDDCORE29 VDDIN30 SWDCLKPA3031 SWDIOPA3132

SAM

D21

E18A

-MU

TU

100

VOUT

1

VOUT

2

GND 3

EN4

VIN

6

NC5

EP 7

MIC

5528

-33

YM

TU

101

VCC

_P3V

3

GN

D

USB

D_P

USB

D_N

GN

D

1uC106

VCC

_MCU

_CO

RE

VCC

_P3V

3

VCC

_P3V

3

22u

FC1

01

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

3V

CC_P

3V3

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

4V

CC_P

3V3

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

5V

CC_P

3V3

GN

D

GN

D GN

D

GN

D

VCC

_ED

GE

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

7V

CC_P

3V3

GN

DDB

G2

DBG

3_CT

RL

S1_0

_TX

S1_1

_RX

S0_2

_TX

DA

CV

TG_A

DC

RESE

RVED

S0_3

_CLK

DBG0_CTRL

CDC_

TX_C

TRL

BOO

T

DEB

UG

GER

PO

WER

STA

TUS

LED

EN1

BYP

6

VOUT

4

GND

2

VIN

3

NCA

DJ5

GND 7

MIC

5353

U10

2

100n

C102

GN

D

GN

D

47kR101

27kR104 G

ND

33k

R106

22u

F

C103 G

ND

1kR1

08

J100

VCC

_LEV

ELV

CC_R

EGU

LATO

R

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

6V

CC_P

3V3

GN

DDB

G1

CDC_

RXCD

C_TX

DBG3

DBG1_CTRL

DEB

UG

GER

REG

ULA

TOR

REG_ENABLE

REG

_EN

ABL

E

47kR103

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

47kR102

47kR105

SWCL

K

GN

D

47kR100 G

ND

DBG

2

S0_0

_RX

DBG

1_CT

RL

DBG

0_CT

RL

DBG

3 O

PEN

DR

AIN

TAR

GET

AD

JUST

ABL

E R

EGU

LATO

R

SRST

DEB

UG

GER

TES

TPO

INT DBG2_CTRL

VO

FFCD

C_RX

_CTR

L

47kR109

DBG

1

CDC_

TX_C

TRL

CDC_

RX_C

TRL

SWCL

K

REG_ADJUST

DBG2_GPIO

DBG

3_CT

RL

DBG

2_CT

RL

UPD

I

UPD

I

GPI

O

GPI

O

RESE

T

Sign

al

DBG

0

DBG

1

DBG

2

DBG

3

ICSP

Inte

rface

DAT

CLK

GPI

O

MCL

R

DBG

3

CD

C T

X

CD

C R

X

UA

RT R

X

UA

RT T

X

UA

RT R

X

UA

RT T

X

TAR

GET

TAR

GET

1kR1

10

VBUS_ADC

1

23

DM

N65

D8L

FBQ

101

VC

C-

-

ID_S

YS

VOFF

1kR112

VCC

_P3V

3

VTG

_AD

CD

AC

MIC

9416

3

VIN

B2VO

UTA1

VIN

A2

ENC2

GND

C1VO

UTB1

U10

8

GN

D

ID_S

YS

VTG

_EN

VTG_EN

VBUS_ADC

SWD

IO

ID_S

YS

TP10

1G

ND

SWD

IO

VO

FF

47kR111 G

ND

ID P

IN

MC3

6213

F100

VCC

_VBU

S

VCC

_VBU

S

VCC

_VBU

S

J101

VCC

_TA

RGET

47k

R113

Prog

ram

min

g co

nnec

tor f

or

fact

ory

prog

ram

min

g of

D

EBU

GG

ER

MIC

5528

Vi

n 2

5V

to 5

5V

Vout

Fix

ed 3

3V

Imax

500

mA

Dro

pout

260

mV

5

00m

A

PTC

Rese

ttabl

e fu

se

Hol

d cu

rrent

500

mA

Trip

cur

rent

100

0mA

Adj

usta

ble

outp

ut a

nd li

mita

tions

- T

he D

EBU

GG

ER c

an a

djus

t the

out

put v

olta

ge o

f the

regu

lato

r bet

wee

n 1

25V

and

51

V to

the

targ

et

- The

vol

tage

out

put i

s lim

ited

by th

e in

put (

USB

) w

hich

can

var

y be

twee

n 4

40V

to 5

25V

- The

leve

l shi

fters

hav

e a

min

imal

vol

tage

leve

l of 1

65V

and

will

lim

it th

e m

inim

um o

pera

ting

volta

ge a

llow

ed fo

r the

ta

rget

to st

ill a

llow

com

mun

icat

ion

- The

MIC

9416

3 ha

s a m

inim

al v

olta

ge le

vel o

f 17

0V a

nd w

ill li

mit

the

min

imum

vol

tage

del

iver

ed to

the

targ

et

- Firm

war

e co

nfig

urat

ion

will

lim

it th

e vo

ltage

rang

e to

be

with

in th

e th

e ta

rget

spec

ifica

tion

R113

is re

quire

d to

pul

l the

Q

101

gate

to a

def

ined

va

lue

whe

n th

e U

100

is no

t po

wer

ed

J100

Cu

t-stra

p us

ed fo

r ful

l sep

arat

ion

of ta

rget

pow

er fr

om th

e le

vel s

hifte

rs a

nd o

n-bo

ard

regu

lato

rs

- For

cur

rent

mea

sure

men

ts us

ing

an e

xter

nal p

ower

supp

ly t

his s

trap

coul

d be

cut

for m

ore

accu

rate

mea

sure

men

ts L

eaka

ge b

ack

thro

ugh

the

switc

h is

in th

e m

icro

am

pere

rang

e

J101

Th

is is

foot

prin

t for

a 1

x2 1

00m

il pi

tch

pin-

head

er th

at c

an b

e us

ed fo

r eas

y cu

rrent

mea

sure

men

t to

the

targ

et m

icro

cont

rolle

r and

the

LED

Bu

tton

To

use

the

foot

prin

t- C

ut th

e tra

ck b

etw

een

the

hole

s an

d m

ount

a p

in-h

eade

r

MIC

5353

Vi

n 2

6V

to 6

VVo

ut 1

25V

to 5

1V

Imax

500

mA

Dro

pout

(typ

ical

) 50

mV

15

0mA

160

mV

5

00m

AA

ccur

acy

2

initi

alTh

erm

al sh

utdo

wn

and

curre

nt li

mit

Max

imum

out

put v

olta

ge is

lim

ited

by th

e in

put v

olta

ge a

nd th

e dr

opou

t vol

tage

in th

e re

gula

tor

(Vm

ax =

Vin

- dr

opou

t)

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 30

72 Assembly DrawingFigure 7-2 AVR128DA48 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

PAC20002 PAC20001 COC200

PAC20102 PAC20101 COC201

PAC20202 PAC20201 COC202

PAC20301 PAC20302 COC203

PAC20401 PAC20402 COC204

PAC20502

PAC20501 COC205

PAD10002 PAD10001 COD100

PAD20001

PAD20002 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

PAJ20701 PAJ20702 PAJ20705 COJ207

PAJ20801 PAJ20802 PAJ20805 COJ208

PAJ20901 PAJ20902 COJ209

PAJ21002 PAJ21001 COJ210

PAJ21102 PAJ21101 COJ211

PAL20002 PAL20001 COL200

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

PAR20002 PAR20001 COR200

PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203

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

PAU200048 PAU200047 PAU200046 PAU200045 PAU200044 PAU200043 PAU200042 PAU200041 PAU200040 PAU200039 PAU200038 PAU200037 PAU200036 PAU200035 PAU200034 PAU200033 PAU200032 PAU200031 PAU200030 PAU200029 PAU200028 PAU200027 PAU200026 PAU200025 PAU200024 PAU200023 PAU200022 PAU200021 PAU200020 PAU200019 PAU200018 PAU200017 PAU200016 PAU200015 PAU200014 PAU200013

PAU200012 PAU200011 PAU200010 PAU20009 PAU20008 PAU20007 PAU20006 PAU20005 PAU20004 PAU20003 PAU20002 PAU20001

COU200

PAXC20001

PAXC20002

COXC200

Figure 7-3 AVR128DA48 Curiosity Nano Assembly Drawing Bottom

ctR

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20002 PAC20001 COC200

PAC20102 PAC20101 COC201

PAC20202 PAC20201 COC202

PAC20301 PAC20302 COC203

PAC20401 PAC20402 COC204

PAC20502

PAC20501 COC205

PAD10002 PAD10001 COD100

PAD20001

PAD20002 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

PAJ20701 PAJ20702 PAJ20705 COJ207

PAJ20801 PAJ20802 PAJ20805 COJ208

PAJ20901 PAJ20902 COJ209

PAJ21002 PAJ21001 COJ210

PAJ21102 PAJ21101 COJ211

PAL20002 PAL20001 COL200

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

PAR20002 PAR20001 COR200

PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203

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

PAU200048 PAU200047 PAU200046 PAU200045 PAU200044 PAU200043 PAU200042 PAU200041 PAU200040 PAU200039 PAU200038 PAU200037 PAU200036 PAU200035 PAU200034 PAU200033 PAU200032 PAU200031 PAU200030 PAU200029 PAU200028 PAU200027 PAU200026 PAU200025 PAU200024 PAU200023 PAU200022 PAU200021 PAU200020 PAU200019 PAU200018 PAU200017 PAU200016 PAU200015 PAU200014 PAU200013

PAU200012 PAU200011 PAU200010 PAU20009 PAU20008 PAU20007 PAU20006 PAU20005 PAU20004 PAU20003 PAU20002 PAU20001

COU200

PAXC20001

PAXC20002

COXC200

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 31

73 Curiosity Nano Base for Click boardstrade

Figure 7-4 AVR128DA48 Curiosity Nano Pinout Mapping

USB

DEB

UG

GER

AVR1

28D

A48

SW0

LED

0

PS L

EDNC

NC

ID

ID

CDC RX

CDCRX

USART1 TX

PC0

CDC TX

CDCTX

USART1 RX

PC1

DBG1

DBG1

PC6

LED0

DBG2

DBG2

PC7

SW0

PA0

PA0

USART0 TX

PTC XY0

PA1

PA1

USART0 RX

PTC XY1

PC2

PC2

TWI0 SDA

PC3

PC3

TWI0 SCL

PA4

PA4

SPI0 MOSI

PTC XY4

PA5

PA5

SPI0 MISO

PTC XY5

PA6

PA6

SPI0 SCK

PTC XY6

PA7

PA7

SPI0 SS

PTC XY7

GND

GND

PF4

PF4

USART2 TX

PTC XY36

PF5

PF5

USART2 RX

PTC XY37

PF2

PF2

PTC XY34

PF3

PF3

PTC XY35

PB0

PB0

PTC XY8

PB1

PB1

PTC XY9

PB2

PB2

PTC XY10

PB3

PB3

PTC XY11

GND

GND

PC0

PC0

USART1 TX

CDC RX

PC1

PC1

USART1 RX

CDC TX

PC6

PC6

LED0

PC7

PC7

SW0

VBUS

VBUS

VOFF

VOFF

DBG3

DBG3

PF6

DBG0

DBG0

UPDI

GND

GND

VTG

VTG

PD7

PD7

AIN7

PTC XY23

PD6

PD6

AIN6

PTC XY22

PD2

PD2

AIN2

PTC XY18

TCA0 WO2

PD1

PD1

AIN1

PTC XY17

TCA0 WO1

PD0

PD0

AIN0

PTC XY16

TCA0 WO0

PD5

PD5

AIN5

PTC XY21

PD4

PD4

AIN4

PTC XY20

PD3

PD3

AIN3

PTC XY19

GND

GND

PE3

PE3

PTC XY27

PE2

PE2

PTC XY26

PE1

PE1

PTC XY25

PE0

PE0

PTC XY24

PA3

PA3

PTC XY3

PA2

PA2

PTC XY2

PB5

PB5

PTC XY13

PB4

PB4

PTC XY12

GND

GND

PC5

PC5

PC4

PC4

(PF1)

(PF1)

(PTC XY33)

XTAL32K2

(PF0)

(PF0)

(PTC XY32)

XTAL32K1

DEB

UG

GER

AVR1

28D

A48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

Touch

Shared pin

AVR1

28D

A48

Curio

sity

Nan

o

1

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

2

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

3

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

Xpl

aine

d Pr

o Ex

tens

ion

EXT1

12

1920

Curio

sity

Nan

o Ba

sefo

r clic

k bo

ards

TM

PD3

PD0

PD7

PD6

PA7

PA1

PA6

PA0

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

PD4

PD1

PF3

PF2

PE2

PF5

PA6

PF4

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

PD5

PD2

PE1

PE0

PE3

PA1

PA6

PA0

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

ID

GND

PD4

PD5

PF3

PE1

PD1

PD2

PF2

PE3

PC2

PC3

PF5

PF4

PE2

PA4

PA5

PA6

GND

+33V

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 32

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

The block diagram below shows all connections between the debugger and the AVR128DA48 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 7-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 7-6 Details about connecting an external debugger are described in 36 Connecting ExternalDebuggers

Figure 7-5  On-Board Debugger Connections Block Diagram

DEB

UG

GER

TARGETLevel-Shift

PA04PA06PA07PA08PA16PA00PA01

USB

DIR x 5

VCC_P3V3

VBUS

VCC

_LEV

EL

VCC

_TA

RGET

DBG0DBG1DBG2DBG3CDC 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

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 33

Figure 7-6 On-Board Debugger Connection Cut Straps

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

75 Getting Started with IARIAR Embedded Workbenchreg for AVRreg is a proprietary high-efficiency compiler not based on GCC Programming anddebugging of AVR128DA48 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 7-73 In the category Debugger select the Setup tab Select Atmel-ICE as the driver as shown in Figure 7-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 7-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

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 34

Figure 7-7 Select Target Device

Figure 7-8 Select Debugger

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 35

Figure 7-9 Configure Interface

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 36

The Microchip WebsiteMicrochip provides online support via our website at httpwwwmicrochipcom This website is used to make filesand information 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 ServiceMicrochiprsquos 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 httpwwwmicrochipcompcn and follow the registration instructions

Customer SupportUsers 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 httpwwwmicrochipcomsupport

Microchip Devices Code Protection FeatureNote the following details of the code protection feature on Microchip devices

bull Microchip products meet the specification contained in their particular Microchip Data Sheetbull Microchip believes that its family of products is one of the most secure families of its kind on the market today

when used in the intended manner and under normal conditionsbull There are dishonest and possibly illegal methods used to breach the code protection feature All of these

methods to our knowledge require using the Microchip products in a manner outside the operatingspecifications contained in Microchiprsquos Data Sheets Most likely the person doing so is engaged in theft ofintellectual property

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

protection does not mean that we are guaranteeing the product as ldquounbreakablerdquo

Code protection is constantly evolving We at Microchip are committed to continuously improving the code protectionfeatures of our products Attempts to break Microchiprsquos code protection feature may be a violation of the DigitalMillennium Copyright Act If such acts allow unauthorized access to your software or other copyrighted work youmay have a right to sue for relief under that Act

Legal NoticeInformation contained in this publication regarding device applications and the like is provided only for yourconvenience and may be superseded by updates It is your responsibility to ensure that your application meets with

AVR128DA48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 37

your specifications MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHEREXPRESS OR IMPLIED WRITTEN OR ORAL STATUTORY OR OTHERWISE RELATED TO THE INFORMATIONINCLUDING BUT NOT LIMITED TO ITS CONDITION QUALITY PERFORMANCE MERCHANTABILITY ORFITNESS FOR PURPOSE Microchip disclaims all liability arising from this information and its use Use of Microchipdevices in life support andor safety applications is entirely at the buyerrsquos risk and the buyer agrees to defendindemnify and hold harmless Microchip from any and all damages claims suits or expenses resulting from suchuse No licenses are conveyed implicitly or otherwise under any Microchip intellectual property rights unlessotherwise stated

TrademarksThe 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-5760-2

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

AVR128DA48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 38

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupporthttpwwwmicrochipcomsupportWeb AddresshttpwwwmicrochipcomAtlantaDuluth 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 DS50002971A-page 39

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Kit Overview
      • 2 Getting Started
        • 21 Quick Start
        • 22 Design Documentation and Relevant Links
          • 3 Curiosity Nano
            • 31 On-Board Debugger Overview
              • 311 Debugger
              • 312 Virtual Serial Port (CDC)
                • 3121 Overview
                • 3122 Operating System Support
                • 3123 Limitations
                • 3124 Signaling
                • 3125 Advanced Use
                  • 313 Mass Storage Device
                    • 3131 Mass Storage Device Implementation
                    • 3132 Fuse Bytes
                    • 3133 Limitations of Drag-and-Drop Programming
                    • 3134 Special Commands
                      • 314 Data Gateway Interface (DGI)
                        • 3141 Debug GPIO
                        • 3142 Timestamping
                            • 32 Curiosity Nano Standard Pinout
                            • 33 Power Supply
                              • 331 Target Regulator
                              • 332 External Supply
                              • 333 VBUS Output Pin
                              • 334 Power Supply Exceptions
                                • 34 Low Power Measurement
                                • 35 Programming External Microcontrollers
                                  • 351 Supported Devices
                                  • 352 Software Configuration
                                  • 353 Hardware Modifications
                                  • 354 Connecting to External Microcontrollers
                                    • 36 Connecting External Debuggers
                                      • 4 Hardware User Guide
                                        • 41 Connectors
                                          • 411 AVR128DA48 Curiosity Nano Pinout
                                          • 412 Using Pin Headers
                                            • 42 Peripherals
                                              • 421 LED
                                              • 422 Mechanical Switch
                                              • 423 Crystal
                                              • 424 On-Board Debugger Implementation
                                                • 4241 On-Board Debugger Connections
                                                  • 5 Hardware Revision History and Known Issues
                                                    • 51 Identifying Product ID and Revision
                                                    • 52 Revision 3
                                                      • 6 Document Revision History
                                                      • 7 Appendix
                                                        • 71 Schematic
                                                        • 72 Assembly Drawing
                                                        • 73 Curiosity Nano Base for Click boardstrade
                                                        • 74 Disconnecting the On-board Debugger
                                                        • 75 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: AVR128DA48 Curiosity Nano User Guide - Microchip Technologyww1.microchip.com/downloads/en/DeviceDoc/AVR128DA48... · 2020-03-19 · AVR128DA48 Curiosity Nano AVR128DA48 Curiosity

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

42 Peripherals

421 LEDThere is one yellow user LED available on the AVR128DA48 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 4-1 LED Connection

AVR128DA48 Pin Function Shared Functionality

PC6 Yellow LED0 Edge connector On-board debugger

422 Mechanical SwitchThe AVR128DA48 Curiosity Nano has one mechanical switch This is a generic user-configurable switch When theswitch 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 PC7

Table 4-2 Mechanical Switch

AVR128DA48 Pin Description Shared Functionality

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

423 Crystal

The AVR128DA48 Curiosity Nano board has a 32768 kHz crystal mounted

The AVR128DA48 is connected to the crystal by default but the GPIOs are also routed to the edge connectorthrough two solder points The two IO lines routed to the edge connector are disconnected by default to reduce thechance of an external signal causing contention with the crystal and to remove excessive capacitance on the linesTo use PF0 and PF1 as GPIO some hardware modifications are required

bull Disconnect the crystal by cutting the two straps on the top side of the board next to the crystal (J210 J211) Thecrystal 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 (J207 J208)

The cut straps and solder points can be seen in Figure 4-2

Table 4-3 Crystal Connections

AVR128DA48 Pin Function Shared Functionality

PF0 TOSC1 (Crystal input) Edge connector

PF1 TOSC2 (Crystal output) Edge connector

AVR128DA48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 25

Figure 4-2 Crystal Connection and Cut Straps

424 On-Board Debugger ImplementationAVR128DA48 Curiosity Nano features an on-board debugger that can be used to program and debug theAVR128DA48 using UPDI The on-board debugger also includes a virtual serial port (CDC) interface over UART anddebug GPIO Atmel StudioMicrochip MPLABreg X IDE 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

4241 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 31 On-Board DebuggerOverview

Table 4-4 On-Board Debugger Connections

AVR128DA48Pin

Debugger Pin Function Shared Functionality

RF1 CDC TX UART RX (AVR128DA48 RX line) Edge connector

RF0 CDC RX UART TX (AVR128DA48 TX line) Edge connector

UPDI DBG0 UPDI Edge connector

PC6 DBG1 GPIO1 Edge connector LED

PC7 DBG2 GPIO0 Edge connector Mechanical Switch

PF6 DBG3 RESET Edge connector

AVR128DA48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 26

5 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

51 Identifying Product ID and RevisionThe revision and product identifier of the AVR128DA48 Curiosity Nano Board can be found in two ways Either byutilizing the Atmel StudioMicrochip MPLABreg X IDE Kit Window or by looking at the sticker on the bottom side of thePCB

By connecting AVR128DA48 Curiosity Nano to a computer with Atmel StudioMicrochip MPLABreg X IDE running theKit Window will pop up The first six digits of the serial number which is listed under kit information contain theproduct identifier 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 AVR128DA48 Curiosity Nano is A09-3280

52 Revision 3Revision 3 is the initially released revision There are no known issues with this revision

AVR128DA48 Curiosity NanoHardware Revision History and Known Issues

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 27

6 Document Revision HistoryDoc rev Date Comment

A 032020 Initial document release

AVR128DA48 Curiosity NanoDocument Revision History

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 28

7 Appendix

71 SchematicFigure 7-1 AVR128DA48 Curiosity Nano Schematic

11

22

33

44

55

66

77

88

DD

CC

BB

AA

2 of

4

AVR1

28D

A48

Curio

sity

Nan

o

102

320

19AV

R128

DA

48_C

urio

sity

_Nan

o_Ta

rget

_MCU

Sch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA R

evisi

on

File

PC

B N

umbe

rPC

B Re

visio

n

Des

igne

d wi

th

Dra

wn

By

PB Shee

t Titl

eTa

rget

MCU

Engi

neer

A

H T

F

A08

-300

23

Size

A3

A09

-328

03

Page

D

ateA

ltium

com

GN

DV

CC_T

ARG

ET

100n

C201

GN

D

PA5_

SPI0

_MIS

OPA

6_SP

I0_S

CKPA

7_SP

I0_S

SPB

0_U

ART

3_TX

PB1_

UA

RT3_

RXPB

2PB

3PB

4PB

5PC

0_U

ART

1_TX

PC1_

UA

RT1_

RXPC

2_I2

C0_S

DA

PC3_I2C0_SCL

PC4PC5PC6_LED0_GPIO1PC7_SW0_GPIO0PD0_AIN0_WO0PD1_AIN1_WO1PD2_AIN2_WO2PD3_AIN3PD4_AIN4

PA3

PA1_UART0_RX

UPDI

PF5_UART2_RX

PF3

PF2

PF1_

TOSC

2PF

0_TO

SC1

PE3

PE2

PE1

PE0

PD5_

AIN

5PD

6_A

IN6

PD7_

AIN

7

GN

D

VCC

_TA

RGET

100n

C202

GN

DV

CC_T

ARG

ET10

0n

C200

PF1_TOSC2

PF0_TOSC1

PA2

PA0_UART0_TX

PF4_UART2_TX

PA4_SPI0_MOSI

GN

D

PA7_

SPI0

_SS

PA6_

SPI0

_SCK

PA5_

SPI0

_MIS

OPA

4_SP

I0_M

OSI

PA3

PA2

PA1_

UA

RT0_

RXPA

0_U

ART

0_TX

PB0_

UA

RT3_

TXPB

1_U

ART

3_RX

PB2

PB3

PB4

PB5

PD7_

AIN

7PD

6_A

IN6

PF5_

UA

RT2_

RXPF

4_U

ART

2_TX

PF3

PF2

32kH

z C

ryst

al

1kR203

USE

R L

ED

VCC

_TA

RGET

PF6_RESET

PC7_SW0_GPIO0

PC6_LED0_GPIO1

GN

D

USE

R B

UTT

ON

PE3

PE2

PE1

PE0

PC0_

UA

RT1_

TXPC

1_U

ART

1_RX

PC2_

I2C0

_SD

APC

3_I2

C0_S

CL

PC4

PC5

PC6_

LED

0_G

PIO

1PC

7_SW

0_G

PIO

0

1kR202

YELLOWLEDSML-D12Y1WT86

2 1D200

TS604VM1-035CR13

4 2

SW20

0

GN

DV

CC_E

DG

E

GN

DG

ND

GN

DG

ND

UPD

IPF

6_RE

SET

J207

J208

J209

BLM

18PG

471S

N1

L200

AVR1

28D

A48

22u

FC2

05

VCC

_ED

GE

GN

D

DBG0

CDC_

UART

TXRXU

ART

CDC_TXCDC_RX

DBG2

DBG1

DBG3

DBG2

DEB

UG

GER

CO

NN

ECTI

ON

S

DBG1

DBG3DBG0

VOFF

ID_S

YS

ID_SYS

VOFF

TAR

GET

BU

LK

VCC

_TA

RGET

RES

ET P

ull

VBU

S

CDC

RX3

CDC

TX4

DBG

15

DBG

26

0 TX

71

RX8

2 SD

A9

3 SC

L10

4 M

OSI

115

MIS

O12

6 SC

K13

7 SS

14G

ND

150

(TX

)16

1 (R

X)

172

183

190

20

GN

D24

DBG

354

DBG

053

GN

D52

VCC

51

PWM

346

AD

C 2

45A

DC

144

AD

C 0

43G

ND

42

438

434

GN

D33

AD

C 7

50A

DC

649

AD

C 5

48PW

M 4

47

DEB

UG

GER

TARG

ET

ID2

VO

FF55

121

222

323

025

126

227

328

429

530

631

732

535

636

737

539

640

741

RESE

RVED

1V

BUS

56

CNA

NO

56-p

in e

dge

conn

ecto

r

J200

J201

J203

J205

J206

J202

J204

PF1

PF0

PF1_

TOSC

2PF

0_TO

SC1

NC

J211

J210

XOUT

XIN

47kR200

AVR

128D

A48

UPD

I

GPI

O1

GPI

O0

RESE

T

DBG

0

DBG

1

DBG

2

DBG

3

Deb

ugge

r

CD

C T

X

CD

C R

X

UA

RT1

RX

UA

RT1

TX

VTG

18V

- 5

5VPC6

PC7

PF6

UPD

I

PC0

PC1

Nam

ePi

n

PA5

1PA

62

PA7

3PB

04

PB1

5PB

26

PB3

7PB

48

PB5

9PC

010

PC1

11PC

212

PC3 13VDD 14GND 15PC4 16PC5 17PC6 18PC7 19PD0 20PD1 21PD2 22PD3 23PD4 24

PD5

25PD

626

PD7

27AV

DD28

GND

29PE

030

PE1

31PE

232

PE3

33XT

AL32

K1P

F034

XTAL

32K2

PF1

35PF

236

PF337 PF438 PF539 PF640 UPDI41 VDD42 GND43 EXTCLKPA044 PA145 PA246 PA347 PA448

AVR1

28D

A48

TQ

FPU

200

PC0_

UA

RT1_

TXPC

1_U

ART

1_RX

PC6_

LED

0_G

PIO

1PC

7_SW

0_G

PIO

0

AVD

D

PD2_

AIN

2_W

O2

PD1_

AIN

1_W

O1

PD0_

AIN

0_W

O0

PD5_

AIN

5PD

4_A

IN4

PD3_

AIN

3

XC2

00

12p

C203

12p

C204

327

68 k

Hz

Crys

tal d

atas

heet

Cc

rysta

l = 9

pFm

ax E

SR =

70k

Ohm

Acc

urac

y plusmn2

0ppm

AVR1

28D

A48

dat

ashe

et

Cxin

= 4

1pF

Cxou

t = 6

0pF

Cl asymp

1( (

14

1pF)

+ (1

60

pF) )

asymp2

44pF

Max

imum

Loa

d =

125

pFM

axim

um E

SR =

80k

Ohm

Estim

ated

Cpc

b =

05p

F

Estim

ated

load

C =

2 (C

crys

tal-

Cpar

a - C

pcb)

C

= 2

(9pF

- 2

44pF

- 0

5pF)

C =

121

2pF

Sele

cted

in d

esig

n af

ter v

erifi

catio

nC=

12p

F12

pF

NO

TE o

n U

ART

CD

C

RXT

X o

n th

e he

ader

den

otes

the

inpu

tout

put d

irect

ion

of th

e sig

nal

resp

ectiv

e to

its

sour

ce

CDC

TX is

out

put f

rom

the

DEB

UG

GER

CD

C RX

is in

put t

o th

e D

EBU

GG

ER

TX is

out

put f

rom

the

TARG

ET d

evic

eRX

is in

put t

o th

e TA

RGET

dev

ice

NO

TE o

n I2

C

No

pull-

ups o

n bo

ard

Pul

l-ups

shou

ld b

e m

ount

ed c

lose

to sl

ave

devi

ce(s

)

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 29

11

22

33

44

55

66

77

88

DD

CC

BB

AA

3 of

4

AVR1

28D

A48

Curio

sity

Nan

o

102

320

19AV

R128

DA

48_C

urio

sity

_Nan

o_D

ebug

gerS

chD

oc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA R

evisi

on

File

PC

B N

umbe

rPC

B Re

visio

n

Des

igne

d wi

th

Dra

wn

By

PB Shee

t Titl

eD

ebug

ger

Engi

neer

A

H T

F

A08

-300

23

Size

A3

A09

-328

03

Page

D

ateA

ltium

com

DEB

UG

GER

USB

MIC

RO

-B C

ON

NEC

TOR

GN

D

USB

D_P

USB

D_N

100n

C107

100n

C108

RXTXU

ART

CDC_

UART

1kR1

07V

CC_P

3V3

SRST

STAT

US_

LED

SHIE

LD

VBU

S

VCC

_P3V

3G

ND

TP10

0

Testp

oint

Arra

y

12

34

56

78

910

TCK

TDO

TMS

Vsu

pTD

IG

ND

TRST

SRST

VTr

efG

ND

J102

GN

D

47u

F

C100

DBG0

DBG

0

21

GRE

EN L

EDSM

L-P1

2MTT

86R

D10

0

VBUS

1D-

2D+

3

GND

5SH

IELD

16

SHIE

LD2

7

ID4

SHIE

LD3

8SH

IELD

49 M

U-M

B014

2AB2

-269

J105

PAD

33

PA00

1PA

012

PA02

3PA

034

GND 10VDDANA 9

PA04

5PA

056

PA06

7PA

078

PA08 11PA09 12PA10 13PA11 14PA14 15PA15 16

PA16

17PA

1718

PA18

19PA

1920

PA22

21US

B_SO

FPA

2322

USB_

DMP

A24

23US

B_DP

PA2

524

PA2725 RESETN26 PA2827 GND28 VDDCORE29 VDDIN30 SWDCLKPA3031 SWDIOPA3132

SAM

D21

E18A

-MU

TU

100

VOUT

1

VOUT

2

GND 3

EN4

VIN

6

NC5

EP 7

MIC

5528

-33

YM

TU

101

VCC

_P3V

3

GN

D

USB

D_P

USB

D_N

GN

D

1uC106

VCC

_MCU

_CO

RE

VCC

_P3V

3

VCC

_P3V

3

22u

FC1

01

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

3V

CC_P

3V3

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

4V

CC_P

3V3

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

5V

CC_P

3V3

GN

D

GN

D GN

D

GN

D

VCC

_ED

GE

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

7V

CC_P

3V3

GN

DDB

G2

DBG

3_CT

RL

S1_0

_TX

S1_1

_RX

S0_2

_TX

DA

CV

TG_A

DC

RESE

RVED

S0_3

_CLK

DBG0_CTRL

CDC_

TX_C

TRL

BOO

T

DEB

UG

GER

PO

WER

STA

TUS

LED

EN1

BYP

6

VOUT

4

GND

2

VIN

3

NCA

DJ5

GND 7

MIC

5353

U10

2

100n

C102

GN

D

GN

D

47kR101

27kR104 G

ND

33k

R106

22u

F

C103 G

ND

1kR1

08

J100

VCC

_LEV

ELV

CC_R

EGU

LATO

R

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

6V

CC_P

3V3

GN

DDB

G1

CDC_

RXCD

C_TX

DBG3

DBG1_CTRL

DEB

UG

GER

REG

ULA

TOR

REG_ENABLE

REG

_EN

ABL

E

47kR103

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

47kR102

47kR105

SWCL

K

GN

D

47kR100 G

ND

DBG

2

S0_0

_RX

DBG

1_CT

RL

DBG

0_CT

RL

DBG

3 O

PEN

DR

AIN

TAR

GET

AD

JUST

ABL

E R

EGU

LATO

R

SRST

DEB

UG

GER

TES

TPO

INT DBG2_CTRL

VO

FFCD

C_RX

_CTR

L

47kR109

DBG

1

CDC_

TX_C

TRL

CDC_

RX_C

TRL

SWCL

K

REG_ADJUST

DBG2_GPIO

DBG

3_CT

RL

DBG

2_CT

RL

UPD

I

UPD

I

GPI

O

GPI

O

RESE

T

Sign

al

DBG

0

DBG

1

DBG

2

DBG

3

ICSP

Inte

rface

DAT

CLK

GPI

O

MCL

R

DBG

3

CD

C T

X

CD

C R

X

UA

RT R

X

UA

RT T

X

UA

RT R

X

UA

RT T

X

TAR

GET

TAR

GET

1kR1

10

VBUS_ADC

1

23

DM

N65

D8L

FBQ

101

VC

C-

-

ID_S

YS

VOFF

1kR112

VCC

_P3V

3

VTG

_AD

CD

AC

MIC

9416

3

VIN

B2VO

UTA1

VIN

A2

ENC2

GND

C1VO

UTB1

U10

8

GN

D

ID_S

YS

VTG

_EN

VTG_EN

VBUS_ADC

SWD

IO

ID_S

YS

TP10

1G

ND

SWD

IO

VO

FF

47kR111 G

ND

ID P

IN

MC3

6213

F100

VCC

_VBU

S

VCC

_VBU

S

VCC

_VBU

S

J101

VCC

_TA

RGET

47k

R113

Prog

ram

min

g co

nnec

tor f

or

fact

ory

prog

ram

min

g of

D

EBU

GG

ER

MIC

5528

Vi

n 2

5V

to 5

5V

Vout

Fix

ed 3

3V

Imax

500

mA

Dro

pout

260

mV

5

00m

A

PTC

Rese

ttabl

e fu

se

Hol

d cu

rrent

500

mA

Trip

cur

rent

100

0mA

Adj

usta

ble

outp

ut a

nd li

mita

tions

- T

he D

EBU

GG

ER c

an a

djus

t the

out

put v

olta

ge o

f the

regu

lato

r bet

wee

n 1

25V

and

51

V to

the

targ

et

- The

vol

tage

out

put i

s lim

ited

by th

e in

put (

USB

) w

hich

can

var

y be

twee

n 4

40V

to 5

25V

- The

leve

l shi

fters

hav

e a

min

imal

vol

tage

leve

l of 1

65V

and

will

lim

it th

e m

inim

um o

pera

ting

volta

ge a

llow

ed fo

r the

ta

rget

to st

ill a

llow

com

mun

icat

ion

- The

MIC

9416

3 ha

s a m

inim

al v

olta

ge le

vel o

f 17

0V a

nd w

ill li

mit

the

min

imum

vol

tage

del

iver

ed to

the

targ

et

- Firm

war

e co

nfig

urat

ion

will

lim

it th

e vo

ltage

rang

e to

be

with

in th

e th

e ta

rget

spec

ifica

tion

R113

is re

quire

d to

pul

l the

Q

101

gate

to a

def

ined

va

lue

whe

n th

e U

100

is no

t po

wer

ed

J100

Cu

t-stra

p us

ed fo

r ful

l sep

arat

ion

of ta

rget

pow

er fr

om th

e le

vel s

hifte

rs a

nd o

n-bo

ard

regu

lato

rs

- For

cur

rent

mea

sure

men

ts us

ing

an e

xter

nal p

ower

supp

ly t

his s

trap

coul

d be

cut

for m

ore

accu

rate

mea

sure

men

ts L

eaka

ge b

ack

thro

ugh

the

switc

h is

in th

e m

icro

am

pere

rang

e

J101

Th

is is

foot

prin

t for

a 1

x2 1

00m

il pi

tch

pin-

head

er th

at c

an b

e us

ed fo

r eas

y cu

rrent

mea

sure

men

t to

the

targ

et m

icro

cont

rolle

r and

the

LED

Bu

tton

To

use

the

foot

prin

t- C

ut th

e tra

ck b

etw

een

the

hole

s an

d m

ount

a p

in-h

eade

r

MIC

5353

Vi

n 2

6V

to 6

VVo

ut 1

25V

to 5

1V

Imax

500

mA

Dro

pout

(typ

ical

) 50

mV

15

0mA

160

mV

5

00m

AA

ccur

acy

2

initi

alTh

erm

al sh

utdo

wn

and

curre

nt li

mit

Max

imum

out

put v

olta

ge is

lim

ited

by th

e in

put v

olta

ge a

nd th

e dr

opou

t vol

tage

in th

e re

gula

tor

(Vm

ax =

Vin

- dr

opou

t)

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 30

72 Assembly DrawingFigure 7-2 AVR128DA48 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

PAC20002 PAC20001 COC200

PAC20102 PAC20101 COC201

PAC20202 PAC20201 COC202

PAC20301 PAC20302 COC203

PAC20401 PAC20402 COC204

PAC20502

PAC20501 COC205

PAD10002 PAD10001 COD100

PAD20001

PAD20002 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

PAJ20701 PAJ20702 PAJ20705 COJ207

PAJ20801 PAJ20802 PAJ20805 COJ208

PAJ20901 PAJ20902 COJ209

PAJ21002 PAJ21001 COJ210

PAJ21102 PAJ21101 COJ211

PAL20002 PAL20001 COL200

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

PAR20002 PAR20001 COR200

PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203

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

PAU200048 PAU200047 PAU200046 PAU200045 PAU200044 PAU200043 PAU200042 PAU200041 PAU200040 PAU200039 PAU200038 PAU200037 PAU200036 PAU200035 PAU200034 PAU200033 PAU200032 PAU200031 PAU200030 PAU200029 PAU200028 PAU200027 PAU200026 PAU200025 PAU200024 PAU200023 PAU200022 PAU200021 PAU200020 PAU200019 PAU200018 PAU200017 PAU200016 PAU200015 PAU200014 PAU200013

PAU200012 PAU200011 PAU200010 PAU20009 PAU20008 PAU20007 PAU20006 PAU20005 PAU20004 PAU20003 PAU20002 PAU20001

COU200

PAXC20001

PAXC20002

COXC200

Figure 7-3 AVR128DA48 Curiosity Nano Assembly Drawing Bottom

ctR

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20002 PAC20001 COC200

PAC20102 PAC20101 COC201

PAC20202 PAC20201 COC202

PAC20301 PAC20302 COC203

PAC20401 PAC20402 COC204

PAC20502

PAC20501 COC205

PAD10002 PAD10001 COD100

PAD20001

PAD20002 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

PAJ20701 PAJ20702 PAJ20705 COJ207

PAJ20801 PAJ20802 PAJ20805 COJ208

PAJ20901 PAJ20902 COJ209

PAJ21002 PAJ21001 COJ210

PAJ21102 PAJ21101 COJ211

PAL20002 PAL20001 COL200

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

PAR20002 PAR20001 COR200

PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203

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

PAU200048 PAU200047 PAU200046 PAU200045 PAU200044 PAU200043 PAU200042 PAU200041 PAU200040 PAU200039 PAU200038 PAU200037 PAU200036 PAU200035 PAU200034 PAU200033 PAU200032 PAU200031 PAU200030 PAU200029 PAU200028 PAU200027 PAU200026 PAU200025 PAU200024 PAU200023 PAU200022 PAU200021 PAU200020 PAU200019 PAU200018 PAU200017 PAU200016 PAU200015 PAU200014 PAU200013

PAU200012 PAU200011 PAU200010 PAU20009 PAU20008 PAU20007 PAU20006 PAU20005 PAU20004 PAU20003 PAU20002 PAU20001

COU200

PAXC20001

PAXC20002

COXC200

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 31

73 Curiosity Nano Base for Click boardstrade

Figure 7-4 AVR128DA48 Curiosity Nano Pinout Mapping

USB

DEB

UG

GER

AVR1

28D

A48

SW0

LED

0

PS L

EDNC

NC

ID

ID

CDC RX

CDCRX

USART1 TX

PC0

CDC TX

CDCTX

USART1 RX

PC1

DBG1

DBG1

PC6

LED0

DBG2

DBG2

PC7

SW0

PA0

PA0

USART0 TX

PTC XY0

PA1

PA1

USART0 RX

PTC XY1

PC2

PC2

TWI0 SDA

PC3

PC3

TWI0 SCL

PA4

PA4

SPI0 MOSI

PTC XY4

PA5

PA5

SPI0 MISO

PTC XY5

PA6

PA6

SPI0 SCK

PTC XY6

PA7

PA7

SPI0 SS

PTC XY7

GND

GND

PF4

PF4

USART2 TX

PTC XY36

PF5

PF5

USART2 RX

PTC XY37

PF2

PF2

PTC XY34

PF3

PF3

PTC XY35

PB0

PB0

PTC XY8

PB1

PB1

PTC XY9

PB2

PB2

PTC XY10

PB3

PB3

PTC XY11

GND

GND

PC0

PC0

USART1 TX

CDC RX

PC1

PC1

USART1 RX

CDC TX

PC6

PC6

LED0

PC7

PC7

SW0

VBUS

VBUS

VOFF

VOFF

DBG3

DBG3

PF6

DBG0

DBG0

UPDI

GND

GND

VTG

VTG

PD7

PD7

AIN7

PTC XY23

PD6

PD6

AIN6

PTC XY22

PD2

PD2

AIN2

PTC XY18

TCA0 WO2

PD1

PD1

AIN1

PTC XY17

TCA0 WO1

PD0

PD0

AIN0

PTC XY16

TCA0 WO0

PD5

PD5

AIN5

PTC XY21

PD4

PD4

AIN4

PTC XY20

PD3

PD3

AIN3

PTC XY19

GND

GND

PE3

PE3

PTC XY27

PE2

PE2

PTC XY26

PE1

PE1

PTC XY25

PE0

PE0

PTC XY24

PA3

PA3

PTC XY3

PA2

PA2

PTC XY2

PB5

PB5

PTC XY13

PB4

PB4

PTC XY12

GND

GND

PC5

PC5

PC4

PC4

(PF1)

(PF1)

(PTC XY33)

XTAL32K2

(PF0)

(PF0)

(PTC XY32)

XTAL32K1

DEB

UG

GER

AVR1

28D

A48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

Touch

Shared pin

AVR1

28D

A48

Curio

sity

Nan

o

1

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

2

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

3

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

Xpl

aine

d Pr

o Ex

tens

ion

EXT1

12

1920

Curio

sity

Nan

o Ba

sefo

r clic

k bo

ards

TM

PD3

PD0

PD7

PD6

PA7

PA1

PA6

PA0

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

PD4

PD1

PF3

PF2

PE2

PF5

PA6

PF4

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

PD5

PD2

PE1

PE0

PE3

PA1

PA6

PA0

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

ID

GND

PD4

PD5

PF3

PE1

PD1

PD2

PF2

PE3

PC2

PC3

PF5

PF4

PE2

PA4

PA5

PA6

GND

+33V

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 32

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

The block diagram below shows all connections between the debugger and the AVR128DA48 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 7-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 7-6 Details about connecting an external debugger are described in 36 Connecting ExternalDebuggers

Figure 7-5  On-Board Debugger Connections Block Diagram

DEB

UG

GER

TARGETLevel-Shift

PA04PA06PA07PA08PA16PA00PA01

USB

DIR x 5

VCC_P3V3

VBUS

VCC

_LEV

EL

VCC

_TA

RGET

DBG0DBG1DBG2DBG3CDC 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

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 33

Figure 7-6 On-Board Debugger Connection Cut Straps

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

75 Getting Started with IARIAR Embedded Workbenchreg for AVRreg is a proprietary high-efficiency compiler not based on GCC Programming anddebugging of AVR128DA48 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 7-73 In the category Debugger select the Setup tab Select Atmel-ICE as the driver as shown in Figure 7-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 7-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

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 34

Figure 7-7 Select Target Device

Figure 7-8 Select Debugger

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 35

Figure 7-9 Configure Interface

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 36

The Microchip WebsiteMicrochip provides online support via our website at httpwwwmicrochipcom This website is used to make filesand information 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 ServiceMicrochiprsquos 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 httpwwwmicrochipcompcn and follow the registration instructions

Customer SupportUsers 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 httpwwwmicrochipcomsupport

Microchip Devices Code Protection FeatureNote the following details of the code protection feature on Microchip devices

bull Microchip products meet the specification contained in their particular Microchip Data Sheetbull Microchip believes that its family of products is one of the most secure families of its kind on the market today

when used in the intended manner and under normal conditionsbull There are dishonest and possibly illegal methods used to breach the code protection feature All of these

methods to our knowledge require using the Microchip products in a manner outside the operatingspecifications contained in Microchiprsquos Data Sheets Most likely the person doing so is engaged in theft ofintellectual property

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

protection does not mean that we are guaranteeing the product as ldquounbreakablerdquo

Code protection is constantly evolving We at Microchip are committed to continuously improving the code protectionfeatures of our products Attempts to break Microchiprsquos code protection feature may be a violation of the DigitalMillennium Copyright Act If such acts allow unauthorized access to your software or other copyrighted work youmay have a right to sue for relief under that Act

Legal NoticeInformation contained in this publication regarding device applications and the like is provided only for yourconvenience and may be superseded by updates It is your responsibility to ensure that your application meets with

AVR128DA48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 37

your specifications MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHEREXPRESS OR IMPLIED WRITTEN OR ORAL STATUTORY OR OTHERWISE RELATED TO THE INFORMATIONINCLUDING BUT NOT LIMITED TO ITS CONDITION QUALITY PERFORMANCE MERCHANTABILITY ORFITNESS FOR PURPOSE Microchip disclaims all liability arising from this information and its use Use of Microchipdevices in life support andor safety applications is entirely at the buyerrsquos risk and the buyer agrees to defendindemnify and hold harmless Microchip from any and all damages claims suits or expenses resulting from suchuse No licenses are conveyed implicitly or otherwise under any Microchip intellectual property rights unlessotherwise stated

TrademarksThe 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-5760-2

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

AVR128DA48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 38

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupporthttpwwwmicrochipcomsupportWeb AddresshttpwwwmicrochipcomAtlantaDuluth 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 DS50002971A-page 39

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Kit Overview
      • 2 Getting Started
        • 21 Quick Start
        • 22 Design Documentation and Relevant Links
          • 3 Curiosity Nano
            • 31 On-Board Debugger Overview
              • 311 Debugger
              • 312 Virtual Serial Port (CDC)
                • 3121 Overview
                • 3122 Operating System Support
                • 3123 Limitations
                • 3124 Signaling
                • 3125 Advanced Use
                  • 313 Mass Storage Device
                    • 3131 Mass Storage Device Implementation
                    • 3132 Fuse Bytes
                    • 3133 Limitations of Drag-and-Drop Programming
                    • 3134 Special Commands
                      • 314 Data Gateway Interface (DGI)
                        • 3141 Debug GPIO
                        • 3142 Timestamping
                            • 32 Curiosity Nano Standard Pinout
                            • 33 Power Supply
                              • 331 Target Regulator
                              • 332 External Supply
                              • 333 VBUS Output Pin
                              • 334 Power Supply Exceptions
                                • 34 Low Power Measurement
                                • 35 Programming External Microcontrollers
                                  • 351 Supported Devices
                                  • 352 Software Configuration
                                  • 353 Hardware Modifications
                                  • 354 Connecting to External Microcontrollers
                                    • 36 Connecting External Debuggers
                                      • 4 Hardware User Guide
                                        • 41 Connectors
                                          • 411 AVR128DA48 Curiosity Nano Pinout
                                          • 412 Using Pin Headers
                                            • 42 Peripherals
                                              • 421 LED
                                              • 422 Mechanical Switch
                                              • 423 Crystal
                                              • 424 On-Board Debugger Implementation
                                                • 4241 On-Board Debugger Connections
                                                  • 5 Hardware Revision History and Known Issues
                                                    • 51 Identifying Product ID and Revision
                                                    • 52 Revision 3
                                                      • 6 Document Revision History
                                                      • 7 Appendix
                                                        • 71 Schematic
                                                        • 72 Assembly Drawing
                                                        • 73 Curiosity Nano Base for Click boardstrade
                                                        • 74 Disconnecting the On-board Debugger
                                                        • 75 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: AVR128DA48 Curiosity Nano User Guide - Microchip Technologyww1.microchip.com/downloads/en/DeviceDoc/AVR128DA48... · 2020-03-19 · AVR128DA48 Curiosity Nano AVR128DA48 Curiosity

Figure 4-2 Crystal Connection and Cut Straps

424 On-Board Debugger ImplementationAVR128DA48 Curiosity Nano features an on-board debugger that can be used to program and debug theAVR128DA48 using UPDI The on-board debugger also includes a virtual serial port (CDC) interface over UART anddebug GPIO Atmel StudioMicrochip MPLABreg X IDE 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

4241 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 31 On-Board DebuggerOverview

Table 4-4 On-Board Debugger Connections

AVR128DA48Pin

Debugger Pin Function Shared Functionality

RF1 CDC TX UART RX (AVR128DA48 RX line) Edge connector

RF0 CDC RX UART TX (AVR128DA48 TX line) Edge connector

UPDI DBG0 UPDI Edge connector

PC6 DBG1 GPIO1 Edge connector LED

PC7 DBG2 GPIO0 Edge connector Mechanical Switch

PF6 DBG3 RESET Edge connector

AVR128DA48 Curiosity NanoHardware User Guide

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 26

5 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

51 Identifying Product ID and RevisionThe revision and product identifier of the AVR128DA48 Curiosity Nano Board can be found in two ways Either byutilizing the Atmel StudioMicrochip MPLABreg X IDE Kit Window or by looking at the sticker on the bottom side of thePCB

By connecting AVR128DA48 Curiosity Nano to a computer with Atmel StudioMicrochip MPLABreg X IDE running theKit Window will pop up The first six digits of the serial number which is listed under kit information contain theproduct identifier 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 AVR128DA48 Curiosity Nano is A09-3280

52 Revision 3Revision 3 is the initially released revision There are no known issues with this revision

AVR128DA48 Curiosity NanoHardware Revision History and Known Issues

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 27

6 Document Revision HistoryDoc rev Date Comment

A 032020 Initial document release

AVR128DA48 Curiosity NanoDocument Revision History

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 28

7 Appendix

71 SchematicFigure 7-1 AVR128DA48 Curiosity Nano Schematic

11

22

33

44

55

66

77

88

DD

CC

BB

AA

2 of

4

AVR1

28D

A48

Curio

sity

Nan

o

102

320

19AV

R128

DA

48_C

urio

sity

_Nan

o_Ta

rget

_MCU

Sch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA R

evisi

on

File

PC

B N

umbe

rPC

B Re

visio

n

Des

igne

d wi

th

Dra

wn

By

PB Shee

t Titl

eTa

rget

MCU

Engi

neer

A

H T

F

A08

-300

23

Size

A3

A09

-328

03

Page

D

ateA

ltium

com

GN

DV

CC_T

ARG

ET

100n

C201

GN

D

PA5_

SPI0

_MIS

OPA

6_SP

I0_S

CKPA

7_SP

I0_S

SPB

0_U

ART

3_TX

PB1_

UA

RT3_

RXPB

2PB

3PB

4PB

5PC

0_U

ART

1_TX

PC1_

UA

RT1_

RXPC

2_I2

C0_S

DA

PC3_I2C0_SCL

PC4PC5PC6_LED0_GPIO1PC7_SW0_GPIO0PD0_AIN0_WO0PD1_AIN1_WO1PD2_AIN2_WO2PD3_AIN3PD4_AIN4

PA3

PA1_UART0_RX

UPDI

PF5_UART2_RX

PF3

PF2

PF1_

TOSC

2PF

0_TO

SC1

PE3

PE2

PE1

PE0

PD5_

AIN

5PD

6_A

IN6

PD7_

AIN

7

GN

D

VCC

_TA

RGET

100n

C202

GN

DV

CC_T

ARG

ET10

0n

C200

PF1_TOSC2

PF0_TOSC1

PA2

PA0_UART0_TX

PF4_UART2_TX

PA4_SPI0_MOSI

GN

D

PA7_

SPI0

_SS

PA6_

SPI0

_SCK

PA5_

SPI0

_MIS

OPA

4_SP

I0_M

OSI

PA3

PA2

PA1_

UA

RT0_

RXPA

0_U

ART

0_TX

PB0_

UA

RT3_

TXPB

1_U

ART

3_RX

PB2

PB3

PB4

PB5

PD7_

AIN

7PD

6_A

IN6

PF5_

UA

RT2_

RXPF

4_U

ART

2_TX

PF3

PF2

32kH

z C

ryst

al

1kR203

USE

R L

ED

VCC

_TA

RGET

PF6_RESET

PC7_SW0_GPIO0

PC6_LED0_GPIO1

GN

D

USE

R B

UTT

ON

PE3

PE2

PE1

PE0

PC0_

UA

RT1_

TXPC

1_U

ART

1_RX

PC2_

I2C0

_SD

APC

3_I2

C0_S

CL

PC4

PC5

PC6_

LED

0_G

PIO

1PC

7_SW

0_G

PIO

0

1kR202

YELLOWLEDSML-D12Y1WT86

2 1D200

TS604VM1-035CR13

4 2

SW20

0

GN

DV

CC_E

DG

E

GN

DG

ND

GN

DG

ND

UPD

IPF

6_RE

SET

J207

J208

J209

BLM

18PG

471S

N1

L200

AVR1

28D

A48

22u

FC2

05

VCC

_ED

GE

GN

D

DBG0

CDC_

UART

TXRXU

ART

CDC_TXCDC_RX

DBG2

DBG1

DBG3

DBG2

DEB

UG

GER

CO

NN

ECTI

ON

S

DBG1

DBG3DBG0

VOFF

ID_S

YS

ID_SYS

VOFF

TAR

GET

BU

LK

VCC

_TA

RGET

RES

ET P

ull

VBU

S

CDC

RX3

CDC

TX4

DBG

15

DBG

26

0 TX

71

RX8

2 SD

A9

3 SC

L10

4 M

OSI

115

MIS

O12

6 SC

K13

7 SS

14G

ND

150

(TX

)16

1 (R

X)

172

183

190

20

GN

D24

DBG

354

DBG

053

GN

D52

VCC

51

PWM

346

AD

C 2

45A

DC

144

AD

C 0

43G

ND

42

438

434

GN

D33

AD

C 7

50A

DC

649

AD

C 5

48PW

M 4

47

DEB

UG

GER

TARG

ET

ID2

VO

FF55

121

222

323

025

126

227

328

429

530

631

732

535

636

737

539

640

741

RESE

RVED

1V

BUS

56

CNA

NO

56-p

in e

dge

conn

ecto

r

J200

J201

J203

J205

J206

J202

J204

PF1

PF0

PF1_

TOSC

2PF

0_TO

SC1

NC

J211

J210

XOUT

XIN

47kR200

AVR

128D

A48

UPD

I

GPI

O1

GPI

O0

RESE

T

DBG

0

DBG

1

DBG

2

DBG

3

Deb

ugge

r

CD

C T

X

CD

C R

X

UA

RT1

RX

UA

RT1

TX

VTG

18V

- 5

5VPC6

PC7

PF6

UPD

I

PC0

PC1

Nam

ePi

n

PA5

1PA

62

PA7

3PB

04

PB1

5PB

26

PB3

7PB

48

PB5

9PC

010

PC1

11PC

212

PC3 13VDD 14GND 15PC4 16PC5 17PC6 18PC7 19PD0 20PD1 21PD2 22PD3 23PD4 24

PD5

25PD

626

PD7

27AV

DD28

GND

29PE

030

PE1

31PE

232

PE3

33XT

AL32

K1P

F034

XTAL

32K2

PF1

35PF

236

PF337 PF438 PF539 PF640 UPDI41 VDD42 GND43 EXTCLKPA044 PA145 PA246 PA347 PA448

AVR1

28D

A48

TQ

FPU

200

PC0_

UA

RT1_

TXPC

1_U

ART

1_RX

PC6_

LED

0_G

PIO

1PC

7_SW

0_G

PIO

0

AVD

D

PD2_

AIN

2_W

O2

PD1_

AIN

1_W

O1

PD0_

AIN

0_W

O0

PD5_

AIN

5PD

4_A

IN4

PD3_

AIN

3

XC2

00

12p

C203

12p

C204

327

68 k

Hz

Crys

tal d

atas

heet

Cc

rysta

l = 9

pFm

ax E

SR =

70k

Ohm

Acc

urac

y plusmn2

0ppm

AVR1

28D

A48

dat

ashe

et

Cxin

= 4

1pF

Cxou

t = 6

0pF

Cl asymp

1( (

14

1pF)

+ (1

60

pF) )

asymp2

44pF

Max

imum

Loa

d =

125

pFM

axim

um E

SR =

80k

Ohm

Estim

ated

Cpc

b =

05p

F

Estim

ated

load

C =

2 (C

crys

tal-

Cpar

a - C

pcb)

C

= 2

(9pF

- 2

44pF

- 0

5pF)

C =

121

2pF

Sele

cted

in d

esig

n af

ter v

erifi

catio

nC=

12p

F12

pF

NO

TE o

n U

ART

CD

C

RXT

X o

n th

e he

ader

den

otes

the

inpu

tout

put d

irect

ion

of th

e sig

nal

resp

ectiv

e to

its

sour

ce

CDC

TX is

out

put f

rom

the

DEB

UG

GER

CD

C RX

is in

put t

o th

e D

EBU

GG

ER

TX is

out

put f

rom

the

TARG

ET d

evic

eRX

is in

put t

o th

e TA

RGET

dev

ice

NO

TE o

n I2

C

No

pull-

ups o

n bo

ard

Pul

l-ups

shou

ld b

e m

ount

ed c

lose

to sl

ave

devi

ce(s

)

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 29

11

22

33

44

55

66

77

88

DD

CC

BB

AA

3 of

4

AVR1

28D

A48

Curio

sity

Nan

o

102

320

19AV

R128

DA

48_C

urio

sity

_Nan

o_D

ebug

gerS

chD

oc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA R

evisi

on

File

PC

B N

umbe

rPC

B Re

visio

n

Des

igne

d wi

th

Dra

wn

By

PB Shee

t Titl

eD

ebug

ger

Engi

neer

A

H T

F

A08

-300

23

Size

A3

A09

-328

03

Page

D

ateA

ltium

com

DEB

UG

GER

USB

MIC

RO

-B C

ON

NEC

TOR

GN

D

USB

D_P

USB

D_N

100n

C107

100n

C108

RXTXU

ART

CDC_

UART

1kR1

07V

CC_P

3V3

SRST

STAT

US_

LED

SHIE

LD

VBU

S

VCC

_P3V

3G

ND

TP10

0

Testp

oint

Arra

y

12

34

56

78

910

TCK

TDO

TMS

Vsu

pTD

IG

ND

TRST

SRST

VTr

efG

ND

J102

GN

D

47u

F

C100

DBG0

DBG

0

21

GRE

EN L

EDSM

L-P1

2MTT

86R

D10

0

VBUS

1D-

2D+

3

GND

5SH

IELD

16

SHIE

LD2

7

ID4

SHIE

LD3

8SH

IELD

49 M

U-M

B014

2AB2

-269

J105

PAD

33

PA00

1PA

012

PA02

3PA

034

GND 10VDDANA 9

PA04

5PA

056

PA06

7PA

078

PA08 11PA09 12PA10 13PA11 14PA14 15PA15 16

PA16

17PA

1718

PA18

19PA

1920

PA22

21US

B_SO

FPA

2322

USB_

DMP

A24

23US

B_DP

PA2

524

PA2725 RESETN26 PA2827 GND28 VDDCORE29 VDDIN30 SWDCLKPA3031 SWDIOPA3132

SAM

D21

E18A

-MU

TU

100

VOUT

1

VOUT

2

GND 3

EN4

VIN

6

NC5

EP 7

MIC

5528

-33

YM

TU

101

VCC

_P3V

3

GN

D

USB

D_P

USB

D_N

GN

D

1uC106

VCC

_MCU

_CO

RE

VCC

_P3V

3

VCC

_P3V

3

22u

FC1

01

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

3V

CC_P

3V3

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

4V

CC_P

3V3

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

5V

CC_P

3V3

GN

D

GN

D GN

D

GN

D

VCC

_ED

GE

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

7V

CC_P

3V3

GN

DDB

G2

DBG

3_CT

RL

S1_0

_TX

S1_1

_RX

S0_2

_TX

DA

CV

TG_A

DC

RESE

RVED

S0_3

_CLK

DBG0_CTRL

CDC_

TX_C

TRL

BOO

T

DEB

UG

GER

PO

WER

STA

TUS

LED

EN1

BYP

6

VOUT

4

GND

2

VIN

3

NCA

DJ5

GND 7

MIC

5353

U10

2

100n

C102

GN

D

GN

D

47kR101

27kR104 G

ND

33k

R106

22u

F

C103 G

ND

1kR1

08

J100

VCC

_LEV

ELV

CC_R

EGU

LATO

R

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

6V

CC_P

3V3

GN

DDB

G1

CDC_

RXCD

C_TX

DBG3

DBG1_CTRL

DEB

UG

GER

REG

ULA

TOR

REG_ENABLE

REG

_EN

ABL

E

47kR103

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

47kR102

47kR105

SWCL

K

GN

D

47kR100 G

ND

DBG

2

S0_0

_RX

DBG

1_CT

RL

DBG

0_CT

RL

DBG

3 O

PEN

DR

AIN

TAR

GET

AD

JUST

ABL

E R

EGU

LATO

R

SRST

DEB

UG

GER

TES

TPO

INT DBG2_CTRL

VO

FFCD

C_RX

_CTR

L

47kR109

DBG

1

CDC_

TX_C

TRL

CDC_

RX_C

TRL

SWCL

K

REG_ADJUST

DBG2_GPIO

DBG

3_CT

RL

DBG

2_CT

RL

UPD

I

UPD

I

GPI

O

GPI

O

RESE

T

Sign

al

DBG

0

DBG

1

DBG

2

DBG

3

ICSP

Inte

rface

DAT

CLK

GPI

O

MCL

R

DBG

3

CD

C T

X

CD

C R

X

UA

RT R

X

UA

RT T

X

UA

RT R

X

UA

RT T

X

TAR

GET

TAR

GET

1kR1

10

VBUS_ADC

1

23

DM

N65

D8L

FBQ

101

VC

C-

-

ID_S

YS

VOFF

1kR112

VCC

_P3V

3

VTG

_AD

CD

AC

MIC

9416

3

VIN

B2VO

UTA1

VIN

A2

ENC2

GND

C1VO

UTB1

U10

8

GN

D

ID_S

YS

VTG

_EN

VTG_EN

VBUS_ADC

SWD

IO

ID_S

YS

TP10

1G

ND

SWD

IO

VO

FF

47kR111 G

ND

ID P

IN

MC3

6213

F100

VCC

_VBU

S

VCC

_VBU

S

VCC

_VBU

S

J101

VCC

_TA

RGET

47k

R113

Prog

ram

min

g co

nnec

tor f

or

fact

ory

prog

ram

min

g of

D

EBU

GG

ER

MIC

5528

Vi

n 2

5V

to 5

5V

Vout

Fix

ed 3

3V

Imax

500

mA

Dro

pout

260

mV

5

00m

A

PTC

Rese

ttabl

e fu

se

Hol

d cu

rrent

500

mA

Trip

cur

rent

100

0mA

Adj

usta

ble

outp

ut a

nd li

mita

tions

- T

he D

EBU

GG

ER c

an a

djus

t the

out

put v

olta

ge o

f the

regu

lato

r bet

wee

n 1

25V

and

51

V to

the

targ

et

- The

vol

tage

out

put i

s lim

ited

by th

e in

put (

USB

) w

hich

can

var

y be

twee

n 4

40V

to 5

25V

- The

leve

l shi

fters

hav

e a

min

imal

vol

tage

leve

l of 1

65V

and

will

lim

it th

e m

inim

um o

pera

ting

volta

ge a

llow

ed fo

r the

ta

rget

to st

ill a

llow

com

mun

icat

ion

- The

MIC

9416

3 ha

s a m

inim

al v

olta

ge le

vel o

f 17

0V a

nd w

ill li

mit

the

min

imum

vol

tage

del

iver

ed to

the

targ

et

- Firm

war

e co

nfig

urat

ion

will

lim

it th

e vo

ltage

rang

e to

be

with

in th

e th

e ta

rget

spec

ifica

tion

R113

is re

quire

d to

pul

l the

Q

101

gate

to a

def

ined

va

lue

whe

n th

e U

100

is no

t po

wer

ed

J100

Cu

t-stra

p us

ed fo

r ful

l sep

arat

ion

of ta

rget

pow

er fr

om th

e le

vel s

hifte

rs a

nd o

n-bo

ard

regu

lato

rs

- For

cur

rent

mea

sure

men

ts us

ing

an e

xter

nal p

ower

supp

ly t

his s

trap

coul

d be

cut

for m

ore

accu

rate

mea

sure

men

ts L

eaka

ge b

ack

thro

ugh

the

switc

h is

in th

e m

icro

am

pere

rang

e

J101

Th

is is

foot

prin

t for

a 1

x2 1

00m

il pi

tch

pin-

head

er th

at c

an b

e us

ed fo

r eas

y cu

rrent

mea

sure

men

t to

the

targ

et m

icro

cont

rolle

r and

the

LED

Bu

tton

To

use

the

foot

prin

t- C

ut th

e tra

ck b

etw

een

the

hole

s an

d m

ount

a p

in-h

eade

r

MIC

5353

Vi

n 2

6V

to 6

VVo

ut 1

25V

to 5

1V

Imax

500

mA

Dro

pout

(typ

ical

) 50

mV

15

0mA

160

mV

5

00m

AA

ccur

acy

2

initi

alTh

erm

al sh

utdo

wn

and

curre

nt li

mit

Max

imum

out

put v

olta

ge is

lim

ited

by th

e in

put v

olta

ge a

nd th

e dr

opou

t vol

tage

in th

e re

gula

tor

(Vm

ax =

Vin

- dr

opou

t)

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 30

72 Assembly DrawingFigure 7-2 AVR128DA48 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

PAC20002 PAC20001 COC200

PAC20102 PAC20101 COC201

PAC20202 PAC20201 COC202

PAC20301 PAC20302 COC203

PAC20401 PAC20402 COC204

PAC20502

PAC20501 COC205

PAD10002 PAD10001 COD100

PAD20001

PAD20002 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

PAJ20701 PAJ20702 PAJ20705 COJ207

PAJ20801 PAJ20802 PAJ20805 COJ208

PAJ20901 PAJ20902 COJ209

PAJ21002 PAJ21001 COJ210

PAJ21102 PAJ21101 COJ211

PAL20002 PAL20001 COL200

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

PAR20002 PAR20001 COR200

PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203

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

PAU200048 PAU200047 PAU200046 PAU200045 PAU200044 PAU200043 PAU200042 PAU200041 PAU200040 PAU200039 PAU200038 PAU200037 PAU200036 PAU200035 PAU200034 PAU200033 PAU200032 PAU200031 PAU200030 PAU200029 PAU200028 PAU200027 PAU200026 PAU200025 PAU200024 PAU200023 PAU200022 PAU200021 PAU200020 PAU200019 PAU200018 PAU200017 PAU200016 PAU200015 PAU200014 PAU200013

PAU200012 PAU200011 PAU200010 PAU20009 PAU20008 PAU20007 PAU20006 PAU20005 PAU20004 PAU20003 PAU20002 PAU20001

COU200

PAXC20001

PAXC20002

COXC200

Figure 7-3 AVR128DA48 Curiosity Nano Assembly Drawing Bottom

ctR

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20002 PAC20001 COC200

PAC20102 PAC20101 COC201

PAC20202 PAC20201 COC202

PAC20301 PAC20302 COC203

PAC20401 PAC20402 COC204

PAC20502

PAC20501 COC205

PAD10002 PAD10001 COD100

PAD20001

PAD20002 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

PAJ20701 PAJ20702 PAJ20705 COJ207

PAJ20801 PAJ20802 PAJ20805 COJ208

PAJ20901 PAJ20902 COJ209

PAJ21002 PAJ21001 COJ210

PAJ21102 PAJ21101 COJ211

PAL20002 PAL20001 COL200

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

PAR20002 PAR20001 COR200

PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203

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

PAU200048 PAU200047 PAU200046 PAU200045 PAU200044 PAU200043 PAU200042 PAU200041 PAU200040 PAU200039 PAU200038 PAU200037 PAU200036 PAU200035 PAU200034 PAU200033 PAU200032 PAU200031 PAU200030 PAU200029 PAU200028 PAU200027 PAU200026 PAU200025 PAU200024 PAU200023 PAU200022 PAU200021 PAU200020 PAU200019 PAU200018 PAU200017 PAU200016 PAU200015 PAU200014 PAU200013

PAU200012 PAU200011 PAU200010 PAU20009 PAU20008 PAU20007 PAU20006 PAU20005 PAU20004 PAU20003 PAU20002 PAU20001

COU200

PAXC20001

PAXC20002

COXC200

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 31

73 Curiosity Nano Base for Click boardstrade

Figure 7-4 AVR128DA48 Curiosity Nano Pinout Mapping

USB

DEB

UG

GER

AVR1

28D

A48

SW0

LED

0

PS L

EDNC

NC

ID

ID

CDC RX

CDCRX

USART1 TX

PC0

CDC TX

CDCTX

USART1 RX

PC1

DBG1

DBG1

PC6

LED0

DBG2

DBG2

PC7

SW0

PA0

PA0

USART0 TX

PTC XY0

PA1

PA1

USART0 RX

PTC XY1

PC2

PC2

TWI0 SDA

PC3

PC3

TWI0 SCL

PA4

PA4

SPI0 MOSI

PTC XY4

PA5

PA5

SPI0 MISO

PTC XY5

PA6

PA6

SPI0 SCK

PTC XY6

PA7

PA7

SPI0 SS

PTC XY7

GND

GND

PF4

PF4

USART2 TX

PTC XY36

PF5

PF5

USART2 RX

PTC XY37

PF2

PF2

PTC XY34

PF3

PF3

PTC XY35

PB0

PB0

PTC XY8

PB1

PB1

PTC XY9

PB2

PB2

PTC XY10

PB3

PB3

PTC XY11

GND

GND

PC0

PC0

USART1 TX

CDC RX

PC1

PC1

USART1 RX

CDC TX

PC6

PC6

LED0

PC7

PC7

SW0

VBUS

VBUS

VOFF

VOFF

DBG3

DBG3

PF6

DBG0

DBG0

UPDI

GND

GND

VTG

VTG

PD7

PD7

AIN7

PTC XY23

PD6

PD6

AIN6

PTC XY22

PD2

PD2

AIN2

PTC XY18

TCA0 WO2

PD1

PD1

AIN1

PTC XY17

TCA0 WO1

PD0

PD0

AIN0

PTC XY16

TCA0 WO0

PD5

PD5

AIN5

PTC XY21

PD4

PD4

AIN4

PTC XY20

PD3

PD3

AIN3

PTC XY19

GND

GND

PE3

PE3

PTC XY27

PE2

PE2

PTC XY26

PE1

PE1

PTC XY25

PE0

PE0

PTC XY24

PA3

PA3

PTC XY3

PA2

PA2

PTC XY2

PB5

PB5

PTC XY13

PB4

PB4

PTC XY12

GND

GND

PC5

PC5

PC4

PC4

(PF1)

(PF1)

(PTC XY33)

XTAL32K2

(PF0)

(PF0)

(PTC XY32)

XTAL32K1

DEB

UG

GER

AVR1

28D

A48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

Touch

Shared pin

AVR1

28D

A48

Curio

sity

Nan

o

1

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

2

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

3

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

Xpl

aine

d Pr

o Ex

tens

ion

EXT1

12

1920

Curio

sity

Nan

o Ba

sefo

r clic

k bo

ards

TM

PD3

PD0

PD7

PD6

PA7

PA1

PA6

PA0

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

PD4

PD1

PF3

PF2

PE2

PF5

PA6

PF4

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

PD5

PD2

PE1

PE0

PE3

PA1

PA6

PA0

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

ID

GND

PD4

PD5

PF3

PE1

PD1

PD2

PF2

PE3

PC2

PC3

PF5

PF4

PE2

PA4

PA5

PA6

GND

+33V

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 32

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

The block diagram below shows all connections between the debugger and the AVR128DA48 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 7-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 7-6 Details about connecting an external debugger are described in 36 Connecting ExternalDebuggers

Figure 7-5  On-Board Debugger Connections Block Diagram

DEB

UG

GER

TARGETLevel-Shift

PA04PA06PA07PA08PA16PA00PA01

USB

DIR x 5

VCC_P3V3

VBUS

VCC

_LEV

EL

VCC

_TA

RGET

DBG0DBG1DBG2DBG3CDC 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

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 33

Figure 7-6 On-Board Debugger Connection Cut Straps

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

75 Getting Started with IARIAR Embedded Workbenchreg for AVRreg is a proprietary high-efficiency compiler not based on GCC Programming anddebugging of AVR128DA48 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 7-73 In the category Debugger select the Setup tab Select Atmel-ICE as the driver as shown in Figure 7-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 7-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

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 34

Figure 7-7 Select Target Device

Figure 7-8 Select Debugger

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 35

Figure 7-9 Configure Interface

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 36

The Microchip WebsiteMicrochip provides online support via our website at httpwwwmicrochipcom This website is used to make filesand information 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 ServiceMicrochiprsquos 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 httpwwwmicrochipcompcn and follow the registration instructions

Customer SupportUsers 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 httpwwwmicrochipcomsupport

Microchip Devices Code Protection FeatureNote the following details of the code protection feature on Microchip devices

bull Microchip products meet the specification contained in their particular Microchip Data Sheetbull Microchip believes that its family of products is one of the most secure families of its kind on the market today

when used in the intended manner and under normal conditionsbull There are dishonest and possibly illegal methods used to breach the code protection feature All of these

methods to our knowledge require using the Microchip products in a manner outside the operatingspecifications contained in Microchiprsquos Data Sheets Most likely the person doing so is engaged in theft ofintellectual property

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

protection does not mean that we are guaranteeing the product as ldquounbreakablerdquo

Code protection is constantly evolving We at Microchip are committed to continuously improving the code protectionfeatures of our products Attempts to break Microchiprsquos code protection feature may be a violation of the DigitalMillennium Copyright Act If such acts allow unauthorized access to your software or other copyrighted work youmay have a right to sue for relief under that Act

Legal NoticeInformation contained in this publication regarding device applications and the like is provided only for yourconvenience and may be superseded by updates It is your responsibility to ensure that your application meets with

AVR128DA48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 37

your specifications MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHEREXPRESS OR IMPLIED WRITTEN OR ORAL STATUTORY OR OTHERWISE RELATED TO THE INFORMATIONINCLUDING BUT NOT LIMITED TO ITS CONDITION QUALITY PERFORMANCE MERCHANTABILITY ORFITNESS FOR PURPOSE Microchip disclaims all liability arising from this information and its use Use of Microchipdevices in life support andor safety applications is entirely at the buyerrsquos risk and the buyer agrees to defendindemnify and hold harmless Microchip from any and all damages claims suits or expenses resulting from suchuse No licenses are conveyed implicitly or otherwise under any Microchip intellectual property rights unlessotherwise stated

TrademarksThe 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-5760-2

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

AVR128DA48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 38

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupporthttpwwwmicrochipcomsupportWeb AddresshttpwwwmicrochipcomAtlantaDuluth 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 DS50002971A-page 39

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Kit Overview
      • 2 Getting Started
        • 21 Quick Start
        • 22 Design Documentation and Relevant Links
          • 3 Curiosity Nano
            • 31 On-Board Debugger Overview
              • 311 Debugger
              • 312 Virtual Serial Port (CDC)
                • 3121 Overview
                • 3122 Operating System Support
                • 3123 Limitations
                • 3124 Signaling
                • 3125 Advanced Use
                  • 313 Mass Storage Device
                    • 3131 Mass Storage Device Implementation
                    • 3132 Fuse Bytes
                    • 3133 Limitations of Drag-and-Drop Programming
                    • 3134 Special Commands
                      • 314 Data Gateway Interface (DGI)
                        • 3141 Debug GPIO
                        • 3142 Timestamping
                            • 32 Curiosity Nano Standard Pinout
                            • 33 Power Supply
                              • 331 Target Regulator
                              • 332 External Supply
                              • 333 VBUS Output Pin
                              • 334 Power Supply Exceptions
                                • 34 Low Power Measurement
                                • 35 Programming External Microcontrollers
                                  • 351 Supported Devices
                                  • 352 Software Configuration
                                  • 353 Hardware Modifications
                                  • 354 Connecting to External Microcontrollers
                                    • 36 Connecting External Debuggers
                                      • 4 Hardware User Guide
                                        • 41 Connectors
                                          • 411 AVR128DA48 Curiosity Nano Pinout
                                          • 412 Using Pin Headers
                                            • 42 Peripherals
                                              • 421 LED
                                              • 422 Mechanical Switch
                                              • 423 Crystal
                                              • 424 On-Board Debugger Implementation
                                                • 4241 On-Board Debugger Connections
                                                  • 5 Hardware Revision History and Known Issues
                                                    • 51 Identifying Product ID and Revision
                                                    • 52 Revision 3
                                                      • 6 Document Revision History
                                                      • 7 Appendix
                                                        • 71 Schematic
                                                        • 72 Assembly Drawing
                                                        • 73 Curiosity Nano Base for Click boardstrade
                                                        • 74 Disconnecting the On-board Debugger
                                                        • 75 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: AVR128DA48 Curiosity Nano User Guide - Microchip Technologyww1.microchip.com/downloads/en/DeviceDoc/AVR128DA48... · 2020-03-19 · AVR128DA48 Curiosity Nano AVR128DA48 Curiosity

5 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

51 Identifying Product ID and RevisionThe revision and product identifier of the AVR128DA48 Curiosity Nano Board can be found in two ways Either byutilizing the Atmel StudioMicrochip MPLABreg X IDE Kit Window or by looking at the sticker on the bottom side of thePCB

By connecting AVR128DA48 Curiosity Nano to a computer with Atmel StudioMicrochip MPLABreg X IDE running theKit Window will pop up The first six digits of the serial number which is listed under kit information contain theproduct identifier 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 AVR128DA48 Curiosity Nano is A09-3280

52 Revision 3Revision 3 is the initially released revision There are no known issues with this revision

AVR128DA48 Curiosity NanoHardware Revision History and Known Issues

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 27

6 Document Revision HistoryDoc rev Date Comment

A 032020 Initial document release

AVR128DA48 Curiosity NanoDocument Revision History

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 28

7 Appendix

71 SchematicFigure 7-1 AVR128DA48 Curiosity Nano Schematic

11

22

33

44

55

66

77

88

DD

CC

BB

AA

2 of

4

AVR1

28D

A48

Curio

sity

Nan

o

102

320

19AV

R128

DA

48_C

urio

sity

_Nan

o_Ta

rget

_MCU

Sch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA R

evisi

on

File

PC

B N

umbe

rPC

B Re

visio

n

Des

igne

d wi

th

Dra

wn

By

PB Shee

t Titl

eTa

rget

MCU

Engi

neer

A

H T

F

A08

-300

23

Size

A3

A09

-328

03

Page

D

ateA

ltium

com

GN

DV

CC_T

ARG

ET

100n

C201

GN

D

PA5_

SPI0

_MIS

OPA

6_SP

I0_S

CKPA

7_SP

I0_S

SPB

0_U

ART

3_TX

PB1_

UA

RT3_

RXPB

2PB

3PB

4PB

5PC

0_U

ART

1_TX

PC1_

UA

RT1_

RXPC

2_I2

C0_S

DA

PC3_I2C0_SCL

PC4PC5PC6_LED0_GPIO1PC7_SW0_GPIO0PD0_AIN0_WO0PD1_AIN1_WO1PD2_AIN2_WO2PD3_AIN3PD4_AIN4

PA3

PA1_UART0_RX

UPDI

PF5_UART2_RX

PF3

PF2

PF1_

TOSC

2PF

0_TO

SC1

PE3

PE2

PE1

PE0

PD5_

AIN

5PD

6_A

IN6

PD7_

AIN

7

GN

D

VCC

_TA

RGET

100n

C202

GN

DV

CC_T

ARG

ET10

0n

C200

PF1_TOSC2

PF0_TOSC1

PA2

PA0_UART0_TX

PF4_UART2_TX

PA4_SPI0_MOSI

GN

D

PA7_

SPI0

_SS

PA6_

SPI0

_SCK

PA5_

SPI0

_MIS

OPA

4_SP

I0_M

OSI

PA3

PA2

PA1_

UA

RT0_

RXPA

0_U

ART

0_TX

PB0_

UA

RT3_

TXPB

1_U

ART

3_RX

PB2

PB3

PB4

PB5

PD7_

AIN

7PD

6_A

IN6

PF5_

UA

RT2_

RXPF

4_U

ART

2_TX

PF3

PF2

32kH

z C

ryst

al

1kR203

USE

R L

ED

VCC

_TA

RGET

PF6_RESET

PC7_SW0_GPIO0

PC6_LED0_GPIO1

GN

D

USE

R B

UTT

ON

PE3

PE2

PE1

PE0

PC0_

UA

RT1_

TXPC

1_U

ART

1_RX

PC2_

I2C0

_SD

APC

3_I2

C0_S

CL

PC4

PC5

PC6_

LED

0_G

PIO

1PC

7_SW

0_G

PIO

0

1kR202

YELLOWLEDSML-D12Y1WT86

2 1D200

TS604VM1-035CR13

4 2

SW20

0

GN

DV

CC_E

DG

E

GN

DG

ND

GN

DG

ND

UPD

IPF

6_RE

SET

J207

J208

J209

BLM

18PG

471S

N1

L200

AVR1

28D

A48

22u

FC2

05

VCC

_ED

GE

GN

D

DBG0

CDC_

UART

TXRXU

ART

CDC_TXCDC_RX

DBG2

DBG1

DBG3

DBG2

DEB

UG

GER

CO

NN

ECTI

ON

S

DBG1

DBG3DBG0

VOFF

ID_S

YS

ID_SYS

VOFF

TAR

GET

BU

LK

VCC

_TA

RGET

RES

ET P

ull

VBU

S

CDC

RX3

CDC

TX4

DBG

15

DBG

26

0 TX

71

RX8

2 SD

A9

3 SC

L10

4 M

OSI

115

MIS

O12

6 SC

K13

7 SS

14G

ND

150

(TX

)16

1 (R

X)

172

183

190

20

GN

D24

DBG

354

DBG

053

GN

D52

VCC

51

PWM

346

AD

C 2

45A

DC

144

AD

C 0

43G

ND

42

438

434

GN

D33

AD

C 7

50A

DC

649

AD

C 5

48PW

M 4

47

DEB

UG

GER

TARG

ET

ID2

VO

FF55

121

222

323

025

126

227

328

429

530

631

732

535

636

737

539

640

741

RESE

RVED

1V

BUS

56

CNA

NO

56-p

in e

dge

conn

ecto

r

J200

J201

J203

J205

J206

J202

J204

PF1

PF0

PF1_

TOSC

2PF

0_TO

SC1

NC

J211

J210

XOUT

XIN

47kR200

AVR

128D

A48

UPD

I

GPI

O1

GPI

O0

RESE

T

DBG

0

DBG

1

DBG

2

DBG

3

Deb

ugge

r

CD

C T

X

CD

C R

X

UA

RT1

RX

UA

RT1

TX

VTG

18V

- 5

5VPC6

PC7

PF6

UPD

I

PC0

PC1

Nam

ePi

n

PA5

1PA

62

PA7

3PB

04

PB1

5PB

26

PB3

7PB

48

PB5

9PC

010

PC1

11PC

212

PC3 13VDD 14GND 15PC4 16PC5 17PC6 18PC7 19PD0 20PD1 21PD2 22PD3 23PD4 24

PD5

25PD

626

PD7

27AV

DD28

GND

29PE

030

PE1

31PE

232

PE3

33XT

AL32

K1P

F034

XTAL

32K2

PF1

35PF

236

PF337 PF438 PF539 PF640 UPDI41 VDD42 GND43 EXTCLKPA044 PA145 PA246 PA347 PA448

AVR1

28D

A48

TQ

FPU

200

PC0_

UA

RT1_

TXPC

1_U

ART

1_RX

PC6_

LED

0_G

PIO

1PC

7_SW

0_G

PIO

0

AVD

D

PD2_

AIN

2_W

O2

PD1_

AIN

1_W

O1

PD0_

AIN

0_W

O0

PD5_

AIN

5PD

4_A

IN4

PD3_

AIN

3

XC2

00

12p

C203

12p

C204

327

68 k

Hz

Crys

tal d

atas

heet

Cc

rysta

l = 9

pFm

ax E

SR =

70k

Ohm

Acc

urac

y plusmn2

0ppm

AVR1

28D

A48

dat

ashe

et

Cxin

= 4

1pF

Cxou

t = 6

0pF

Cl asymp

1( (

14

1pF)

+ (1

60

pF) )

asymp2

44pF

Max

imum

Loa

d =

125

pFM

axim

um E

SR =

80k

Ohm

Estim

ated

Cpc

b =

05p

F

Estim

ated

load

C =

2 (C

crys

tal-

Cpar

a - C

pcb)

C

= 2

(9pF

- 2

44pF

- 0

5pF)

C =

121

2pF

Sele

cted

in d

esig

n af

ter v

erifi

catio

nC=

12p

F12

pF

NO

TE o

n U

ART

CD

C

RXT

X o

n th

e he

ader

den

otes

the

inpu

tout

put d

irect

ion

of th

e sig

nal

resp

ectiv

e to

its

sour

ce

CDC

TX is

out

put f

rom

the

DEB

UG

GER

CD

C RX

is in

put t

o th

e D

EBU

GG

ER

TX is

out

put f

rom

the

TARG

ET d

evic

eRX

is in

put t

o th

e TA

RGET

dev

ice

NO

TE o

n I2

C

No

pull-

ups o

n bo

ard

Pul

l-ups

shou

ld b

e m

ount

ed c

lose

to sl

ave

devi

ce(s

)

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 29

11

22

33

44

55

66

77

88

DD

CC

BB

AA

3 of

4

AVR1

28D

A48

Curio

sity

Nan

o

102

320

19AV

R128

DA

48_C

urio

sity

_Nan

o_D

ebug

gerS

chD

oc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA R

evisi

on

File

PC

B N

umbe

rPC

B Re

visio

n

Des

igne

d wi

th

Dra

wn

By

PB Shee

t Titl

eD

ebug

ger

Engi

neer

A

H T

F

A08

-300

23

Size

A3

A09

-328

03

Page

D

ateA

ltium

com

DEB

UG

GER

USB

MIC

RO

-B C

ON

NEC

TOR

GN

D

USB

D_P

USB

D_N

100n

C107

100n

C108

RXTXU

ART

CDC_

UART

1kR1

07V

CC_P

3V3

SRST

STAT

US_

LED

SHIE

LD

VBU

S

VCC

_P3V

3G

ND

TP10

0

Testp

oint

Arra

y

12

34

56

78

910

TCK

TDO

TMS

Vsu

pTD

IG

ND

TRST

SRST

VTr

efG

ND

J102

GN

D

47u

F

C100

DBG0

DBG

0

21

GRE

EN L

EDSM

L-P1

2MTT

86R

D10

0

VBUS

1D-

2D+

3

GND

5SH

IELD

16

SHIE

LD2

7

ID4

SHIE

LD3

8SH

IELD

49 M

U-M

B014

2AB2

-269

J105

PAD

33

PA00

1PA

012

PA02

3PA

034

GND 10VDDANA 9

PA04

5PA

056

PA06

7PA

078

PA08 11PA09 12PA10 13PA11 14PA14 15PA15 16

PA16

17PA

1718

PA18

19PA

1920

PA22

21US

B_SO

FPA

2322

USB_

DMP

A24

23US

B_DP

PA2

524

PA2725 RESETN26 PA2827 GND28 VDDCORE29 VDDIN30 SWDCLKPA3031 SWDIOPA3132

SAM

D21

E18A

-MU

TU

100

VOUT

1

VOUT

2

GND 3

EN4

VIN

6

NC5

EP 7

MIC

5528

-33

YM

TU

101

VCC

_P3V

3

GN

D

USB

D_P

USB

D_N

GN

D

1uC106

VCC

_MCU

_CO

RE

VCC

_P3V

3

VCC

_P3V

3

22u

FC1

01

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

3V

CC_P

3V3

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

4V

CC_P

3V3

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

5V

CC_P

3V3

GN

D

GN

D GN

D

GN

D

VCC

_ED

GE

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

7V

CC_P

3V3

GN

DDB

G2

DBG

3_CT

RL

S1_0

_TX

S1_1

_RX

S0_2

_TX

DA

CV

TG_A

DC

RESE

RVED

S0_3

_CLK

DBG0_CTRL

CDC_

TX_C

TRL

BOO

T

DEB

UG

GER

PO

WER

STA

TUS

LED

EN1

BYP

6

VOUT

4

GND

2

VIN

3

NCA

DJ5

GND 7

MIC

5353

U10

2

100n

C102

GN

D

GN

D

47kR101

27kR104 G

ND

33k

R106

22u

F

C103 G

ND

1kR1

08

J100

VCC

_LEV

ELV

CC_R

EGU

LATO

R

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

6V

CC_P

3V3

GN

DDB

G1

CDC_

RXCD

C_TX

DBG3

DBG1_CTRL

DEB

UG

GER

REG

ULA

TOR

REG_ENABLE

REG

_EN

ABL

E

47kR103

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

47kR102

47kR105

SWCL

K

GN

D

47kR100 G

ND

DBG

2

S0_0

_RX

DBG

1_CT

RL

DBG

0_CT

RL

DBG

3 O

PEN

DR

AIN

TAR

GET

AD

JUST

ABL

E R

EGU

LATO

R

SRST

DEB

UG

GER

TES

TPO

INT DBG2_CTRL

VO

FFCD

C_RX

_CTR

L

47kR109

DBG

1

CDC_

TX_C

TRL

CDC_

RX_C

TRL

SWCL

K

REG_ADJUST

DBG2_GPIO

DBG

3_CT

RL

DBG

2_CT

RL

UPD

I

UPD

I

GPI

O

GPI

O

RESE

T

Sign

al

DBG

0

DBG

1

DBG

2

DBG

3

ICSP

Inte

rface

DAT

CLK

GPI

O

MCL

R

DBG

3

CD

C T

X

CD

C R

X

UA

RT R

X

UA

RT T

X

UA

RT R

X

UA

RT T

X

TAR

GET

TAR

GET

1kR1

10

VBUS_ADC

1

23

DM

N65

D8L

FBQ

101

VC

C-

-

ID_S

YS

VOFF

1kR112

VCC

_P3V

3

VTG

_AD

CD

AC

MIC

9416

3

VIN

B2VO

UTA1

VIN

A2

ENC2

GND

C1VO

UTB1

U10

8

GN

D

ID_S

YS

VTG

_EN

VTG_EN

VBUS_ADC

SWD

IO

ID_S

YS

TP10

1G

ND

SWD

IO

VO

FF

47kR111 G

ND

ID P

IN

MC3

6213

F100

VCC

_VBU

S

VCC

_VBU

S

VCC

_VBU

S

J101

VCC

_TA

RGET

47k

R113

Prog

ram

min

g co

nnec

tor f

or

fact

ory

prog

ram

min

g of

D

EBU

GG

ER

MIC

5528

Vi

n 2

5V

to 5

5V

Vout

Fix

ed 3

3V

Imax

500

mA

Dro

pout

260

mV

5

00m

A

PTC

Rese

ttabl

e fu

se

Hol

d cu

rrent

500

mA

Trip

cur

rent

100

0mA

Adj

usta

ble

outp

ut a

nd li

mita

tions

- T

he D

EBU

GG

ER c

an a

djus

t the

out

put v

olta

ge o

f the

regu

lato

r bet

wee

n 1

25V

and

51

V to

the

targ

et

- The

vol

tage

out

put i

s lim

ited

by th

e in

put (

USB

) w

hich

can

var

y be

twee

n 4

40V

to 5

25V

- The

leve

l shi

fters

hav

e a

min

imal

vol

tage

leve

l of 1

65V

and

will

lim

it th

e m

inim

um o

pera

ting

volta

ge a

llow

ed fo

r the

ta

rget

to st

ill a

llow

com

mun

icat

ion

- The

MIC

9416

3 ha

s a m

inim

al v

olta

ge le

vel o

f 17

0V a

nd w

ill li

mit

the

min

imum

vol

tage

del

iver

ed to

the

targ

et

- Firm

war

e co

nfig

urat

ion

will

lim

it th

e vo

ltage

rang

e to

be

with

in th

e th

e ta

rget

spec

ifica

tion

R113

is re

quire

d to

pul

l the

Q

101

gate

to a

def

ined

va

lue

whe

n th

e U

100

is no

t po

wer

ed

J100

Cu

t-stra

p us

ed fo

r ful

l sep

arat

ion

of ta

rget

pow

er fr

om th

e le

vel s

hifte

rs a

nd o

n-bo

ard

regu

lato

rs

- For

cur

rent

mea

sure

men

ts us

ing

an e

xter

nal p

ower

supp

ly t

his s

trap

coul

d be

cut

for m

ore

accu

rate

mea

sure

men

ts L

eaka

ge b

ack

thro

ugh

the

switc

h is

in th

e m

icro

am

pere

rang

e

J101

Th

is is

foot

prin

t for

a 1

x2 1

00m

il pi

tch

pin-

head

er th

at c

an b

e us

ed fo

r eas

y cu

rrent

mea

sure

men

t to

the

targ

et m

icro

cont

rolle

r and

the

LED

Bu

tton

To

use

the

foot

prin

t- C

ut th

e tra

ck b

etw

een

the

hole

s an

d m

ount

a p

in-h

eade

r

MIC

5353

Vi

n 2

6V

to 6

VVo

ut 1

25V

to 5

1V

Imax

500

mA

Dro

pout

(typ

ical

) 50

mV

15

0mA

160

mV

5

00m

AA

ccur

acy

2

initi

alTh

erm

al sh

utdo

wn

and

curre

nt li

mit

Max

imum

out

put v

olta

ge is

lim

ited

by th

e in

put v

olta

ge a

nd th

e dr

opou

t vol

tage

in th

e re

gula

tor

(Vm

ax =

Vin

- dr

opou

t)

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 30

72 Assembly DrawingFigure 7-2 AVR128DA48 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

PAC20002 PAC20001 COC200

PAC20102 PAC20101 COC201

PAC20202 PAC20201 COC202

PAC20301 PAC20302 COC203

PAC20401 PAC20402 COC204

PAC20502

PAC20501 COC205

PAD10002 PAD10001 COD100

PAD20001

PAD20002 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

PAJ20701 PAJ20702 PAJ20705 COJ207

PAJ20801 PAJ20802 PAJ20805 COJ208

PAJ20901 PAJ20902 COJ209

PAJ21002 PAJ21001 COJ210

PAJ21102 PAJ21101 COJ211

PAL20002 PAL20001 COL200

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

PAR20002 PAR20001 COR200

PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203

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

PAU200048 PAU200047 PAU200046 PAU200045 PAU200044 PAU200043 PAU200042 PAU200041 PAU200040 PAU200039 PAU200038 PAU200037 PAU200036 PAU200035 PAU200034 PAU200033 PAU200032 PAU200031 PAU200030 PAU200029 PAU200028 PAU200027 PAU200026 PAU200025 PAU200024 PAU200023 PAU200022 PAU200021 PAU200020 PAU200019 PAU200018 PAU200017 PAU200016 PAU200015 PAU200014 PAU200013

PAU200012 PAU200011 PAU200010 PAU20009 PAU20008 PAU20007 PAU20006 PAU20005 PAU20004 PAU20003 PAU20002 PAU20001

COU200

PAXC20001

PAXC20002

COXC200

Figure 7-3 AVR128DA48 Curiosity Nano Assembly Drawing Bottom

ctR

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20002 PAC20001 COC200

PAC20102 PAC20101 COC201

PAC20202 PAC20201 COC202

PAC20301 PAC20302 COC203

PAC20401 PAC20402 COC204

PAC20502

PAC20501 COC205

PAD10002 PAD10001 COD100

PAD20001

PAD20002 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

PAJ20701 PAJ20702 PAJ20705 COJ207

PAJ20801 PAJ20802 PAJ20805 COJ208

PAJ20901 PAJ20902 COJ209

PAJ21002 PAJ21001 COJ210

PAJ21102 PAJ21101 COJ211

PAL20002 PAL20001 COL200

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

PAR20002 PAR20001 COR200

PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203

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

PAU200048 PAU200047 PAU200046 PAU200045 PAU200044 PAU200043 PAU200042 PAU200041 PAU200040 PAU200039 PAU200038 PAU200037 PAU200036 PAU200035 PAU200034 PAU200033 PAU200032 PAU200031 PAU200030 PAU200029 PAU200028 PAU200027 PAU200026 PAU200025 PAU200024 PAU200023 PAU200022 PAU200021 PAU200020 PAU200019 PAU200018 PAU200017 PAU200016 PAU200015 PAU200014 PAU200013

PAU200012 PAU200011 PAU200010 PAU20009 PAU20008 PAU20007 PAU20006 PAU20005 PAU20004 PAU20003 PAU20002 PAU20001

COU200

PAXC20001

PAXC20002

COXC200

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 31

73 Curiosity Nano Base for Click boardstrade

Figure 7-4 AVR128DA48 Curiosity Nano Pinout Mapping

USB

DEB

UG

GER

AVR1

28D

A48

SW0

LED

0

PS L

EDNC

NC

ID

ID

CDC RX

CDCRX

USART1 TX

PC0

CDC TX

CDCTX

USART1 RX

PC1

DBG1

DBG1

PC6

LED0

DBG2

DBG2

PC7

SW0

PA0

PA0

USART0 TX

PTC XY0

PA1

PA1

USART0 RX

PTC XY1

PC2

PC2

TWI0 SDA

PC3

PC3

TWI0 SCL

PA4

PA4

SPI0 MOSI

PTC XY4

PA5

PA5

SPI0 MISO

PTC XY5

PA6

PA6

SPI0 SCK

PTC XY6

PA7

PA7

SPI0 SS

PTC XY7

GND

GND

PF4

PF4

USART2 TX

PTC XY36

PF5

PF5

USART2 RX

PTC XY37

PF2

PF2

PTC XY34

PF3

PF3

PTC XY35

PB0

PB0

PTC XY8

PB1

PB1

PTC XY9

PB2

PB2

PTC XY10

PB3

PB3

PTC XY11

GND

GND

PC0

PC0

USART1 TX

CDC RX

PC1

PC1

USART1 RX

CDC TX

PC6

PC6

LED0

PC7

PC7

SW0

VBUS

VBUS

VOFF

VOFF

DBG3

DBG3

PF6

DBG0

DBG0

UPDI

GND

GND

VTG

VTG

PD7

PD7

AIN7

PTC XY23

PD6

PD6

AIN6

PTC XY22

PD2

PD2

AIN2

PTC XY18

TCA0 WO2

PD1

PD1

AIN1

PTC XY17

TCA0 WO1

PD0

PD0

AIN0

PTC XY16

TCA0 WO0

PD5

PD5

AIN5

PTC XY21

PD4

PD4

AIN4

PTC XY20

PD3

PD3

AIN3

PTC XY19

GND

GND

PE3

PE3

PTC XY27

PE2

PE2

PTC XY26

PE1

PE1

PTC XY25

PE0

PE0

PTC XY24

PA3

PA3

PTC XY3

PA2

PA2

PTC XY2

PB5

PB5

PTC XY13

PB4

PB4

PTC XY12

GND

GND

PC5

PC5

PC4

PC4

(PF1)

(PF1)

(PTC XY33)

XTAL32K2

(PF0)

(PF0)

(PTC XY32)

XTAL32K1

DEB

UG

GER

AVR1

28D

A48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

Touch

Shared pin

AVR1

28D

A48

Curio

sity

Nan

o

1

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

2

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

3

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

Xpl

aine

d Pr

o Ex

tens

ion

EXT1

12

1920

Curio

sity

Nan

o Ba

sefo

r clic

k bo

ards

TM

PD3

PD0

PD7

PD6

PA7

PA1

PA6

PA0

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

PD4

PD1

PF3

PF2

PE2

PF5

PA6

PF4

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

PD5

PD2

PE1

PE0

PE3

PA1

PA6

PA0

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

ID

GND

PD4

PD5

PF3

PE1

PD1

PD2

PF2

PE3

PC2

PC3

PF5

PF4

PE2

PA4

PA5

PA6

GND

+33V

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 32

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

The block diagram below shows all connections between the debugger and the AVR128DA48 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 7-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 7-6 Details about connecting an external debugger are described in 36 Connecting ExternalDebuggers

Figure 7-5  On-Board Debugger Connections Block Diagram

DEB

UG

GER

TARGETLevel-Shift

PA04PA06PA07PA08PA16PA00PA01

USB

DIR x 5

VCC_P3V3

VBUS

VCC

_LEV

EL

VCC

_TA

RGET

DBG0DBG1DBG2DBG3CDC 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

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 33

Figure 7-6 On-Board Debugger Connection Cut Straps

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

75 Getting Started with IARIAR Embedded Workbenchreg for AVRreg is a proprietary high-efficiency compiler not based on GCC Programming anddebugging of AVR128DA48 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 7-73 In the category Debugger select the Setup tab Select Atmel-ICE as the driver as shown in Figure 7-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 7-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

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 34

Figure 7-7 Select Target Device

Figure 7-8 Select Debugger

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 35

Figure 7-9 Configure Interface

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 36

The Microchip WebsiteMicrochip provides online support via our website at httpwwwmicrochipcom This website is used to make filesand information 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 ServiceMicrochiprsquos 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 httpwwwmicrochipcompcn and follow the registration instructions

Customer SupportUsers 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 httpwwwmicrochipcomsupport

Microchip Devices Code Protection FeatureNote the following details of the code protection feature on Microchip devices

bull Microchip products meet the specification contained in their particular Microchip Data Sheetbull Microchip believes that its family of products is one of the most secure families of its kind on the market today

when used in the intended manner and under normal conditionsbull There are dishonest and possibly illegal methods used to breach the code protection feature All of these

methods to our knowledge require using the Microchip products in a manner outside the operatingspecifications contained in Microchiprsquos Data Sheets Most likely the person doing so is engaged in theft ofintellectual property

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

protection does not mean that we are guaranteeing the product as ldquounbreakablerdquo

Code protection is constantly evolving We at Microchip are committed to continuously improving the code protectionfeatures of our products Attempts to break Microchiprsquos code protection feature may be a violation of the DigitalMillennium Copyright Act If such acts allow unauthorized access to your software or other copyrighted work youmay have a right to sue for relief under that Act

Legal NoticeInformation contained in this publication regarding device applications and the like is provided only for yourconvenience and may be superseded by updates It is your responsibility to ensure that your application meets with

AVR128DA48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 37

your specifications MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHEREXPRESS OR IMPLIED WRITTEN OR ORAL STATUTORY OR OTHERWISE RELATED TO THE INFORMATIONINCLUDING BUT NOT LIMITED TO ITS CONDITION QUALITY PERFORMANCE MERCHANTABILITY ORFITNESS FOR PURPOSE Microchip disclaims all liability arising from this information and its use Use of Microchipdevices in life support andor safety applications is entirely at the buyerrsquos risk and the buyer agrees to defendindemnify and hold harmless Microchip from any and all damages claims suits or expenses resulting from suchuse No licenses are conveyed implicitly or otherwise under any Microchip intellectual property rights unlessotherwise stated

TrademarksThe 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-5760-2

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

AVR128DA48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 38

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupporthttpwwwmicrochipcomsupportWeb AddresshttpwwwmicrochipcomAtlantaDuluth 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 DS50002971A-page 39

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Kit Overview
      • 2 Getting Started
        • 21 Quick Start
        • 22 Design Documentation and Relevant Links
          • 3 Curiosity Nano
            • 31 On-Board Debugger Overview
              • 311 Debugger
              • 312 Virtual Serial Port (CDC)
                • 3121 Overview
                • 3122 Operating System Support
                • 3123 Limitations
                • 3124 Signaling
                • 3125 Advanced Use
                  • 313 Mass Storage Device
                    • 3131 Mass Storage Device Implementation
                    • 3132 Fuse Bytes
                    • 3133 Limitations of Drag-and-Drop Programming
                    • 3134 Special Commands
                      • 314 Data Gateway Interface (DGI)
                        • 3141 Debug GPIO
                        • 3142 Timestamping
                            • 32 Curiosity Nano Standard Pinout
                            • 33 Power Supply
                              • 331 Target Regulator
                              • 332 External Supply
                              • 333 VBUS Output Pin
                              • 334 Power Supply Exceptions
                                • 34 Low Power Measurement
                                • 35 Programming External Microcontrollers
                                  • 351 Supported Devices
                                  • 352 Software Configuration
                                  • 353 Hardware Modifications
                                  • 354 Connecting to External Microcontrollers
                                    • 36 Connecting External Debuggers
                                      • 4 Hardware User Guide
                                        • 41 Connectors
                                          • 411 AVR128DA48 Curiosity Nano Pinout
                                          • 412 Using Pin Headers
                                            • 42 Peripherals
                                              • 421 LED
                                              • 422 Mechanical Switch
                                              • 423 Crystal
                                              • 424 On-Board Debugger Implementation
                                                • 4241 On-Board Debugger Connections
                                                  • 5 Hardware Revision History and Known Issues
                                                    • 51 Identifying Product ID and Revision
                                                    • 52 Revision 3
                                                      • 6 Document Revision History
                                                      • 7 Appendix
                                                        • 71 Schematic
                                                        • 72 Assembly Drawing
                                                        • 73 Curiosity Nano Base for Click boardstrade
                                                        • 74 Disconnecting the On-board Debugger
                                                        • 75 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: AVR128DA48 Curiosity Nano User Guide - Microchip Technologyww1.microchip.com/downloads/en/DeviceDoc/AVR128DA48... · 2020-03-19 · AVR128DA48 Curiosity Nano AVR128DA48 Curiosity

6 Document Revision HistoryDoc rev Date Comment

A 032020 Initial document release

AVR128DA48 Curiosity NanoDocument Revision History

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 28

7 Appendix

71 SchematicFigure 7-1 AVR128DA48 Curiosity Nano Schematic

11

22

33

44

55

66

77

88

DD

CC

BB

AA

2 of

4

AVR1

28D

A48

Curio

sity

Nan

o

102

320

19AV

R128

DA

48_C

urio

sity

_Nan

o_Ta

rget

_MCU

Sch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA R

evisi

on

File

PC

B N

umbe

rPC

B Re

visio

n

Des

igne

d wi

th

Dra

wn

By

PB Shee

t Titl

eTa

rget

MCU

Engi

neer

A

H T

F

A08

-300

23

Size

A3

A09

-328

03

Page

D

ateA

ltium

com

GN

DV

CC_T

ARG

ET

100n

C201

GN

D

PA5_

SPI0

_MIS

OPA

6_SP

I0_S

CKPA

7_SP

I0_S

SPB

0_U

ART

3_TX

PB1_

UA

RT3_

RXPB

2PB

3PB

4PB

5PC

0_U

ART

1_TX

PC1_

UA

RT1_

RXPC

2_I2

C0_S

DA

PC3_I2C0_SCL

PC4PC5PC6_LED0_GPIO1PC7_SW0_GPIO0PD0_AIN0_WO0PD1_AIN1_WO1PD2_AIN2_WO2PD3_AIN3PD4_AIN4

PA3

PA1_UART0_RX

UPDI

PF5_UART2_RX

PF3

PF2

PF1_

TOSC

2PF

0_TO

SC1

PE3

PE2

PE1

PE0

PD5_

AIN

5PD

6_A

IN6

PD7_

AIN

7

GN

D

VCC

_TA

RGET

100n

C202

GN

DV

CC_T

ARG

ET10

0n

C200

PF1_TOSC2

PF0_TOSC1

PA2

PA0_UART0_TX

PF4_UART2_TX

PA4_SPI0_MOSI

GN

D

PA7_

SPI0

_SS

PA6_

SPI0

_SCK

PA5_

SPI0

_MIS

OPA

4_SP

I0_M

OSI

PA3

PA2

PA1_

UA

RT0_

RXPA

0_U

ART

0_TX

PB0_

UA

RT3_

TXPB

1_U

ART

3_RX

PB2

PB3

PB4

PB5

PD7_

AIN

7PD

6_A

IN6

PF5_

UA

RT2_

RXPF

4_U

ART

2_TX

PF3

PF2

32kH

z C

ryst

al

1kR203

USE

R L

ED

VCC

_TA

RGET

PF6_RESET

PC7_SW0_GPIO0

PC6_LED0_GPIO1

GN

D

USE

R B

UTT

ON

PE3

PE2

PE1

PE0

PC0_

UA

RT1_

TXPC

1_U

ART

1_RX

PC2_

I2C0

_SD

APC

3_I2

C0_S

CL

PC4

PC5

PC6_

LED

0_G

PIO

1PC

7_SW

0_G

PIO

0

1kR202

YELLOWLEDSML-D12Y1WT86

2 1D200

TS604VM1-035CR13

4 2

SW20

0

GN

DV

CC_E

DG

E

GN

DG

ND

GN

DG

ND

UPD

IPF

6_RE

SET

J207

J208

J209

BLM

18PG

471S

N1

L200

AVR1

28D

A48

22u

FC2

05

VCC

_ED

GE

GN

D

DBG0

CDC_

UART

TXRXU

ART

CDC_TXCDC_RX

DBG2

DBG1

DBG3

DBG2

DEB

UG

GER

CO

NN

ECTI

ON

S

DBG1

DBG3DBG0

VOFF

ID_S

YS

ID_SYS

VOFF

TAR

GET

BU

LK

VCC

_TA

RGET

RES

ET P

ull

VBU

S

CDC

RX3

CDC

TX4

DBG

15

DBG

26

0 TX

71

RX8

2 SD

A9

3 SC

L10

4 M

OSI

115

MIS

O12

6 SC

K13

7 SS

14G

ND

150

(TX

)16

1 (R

X)

172

183

190

20

GN

D24

DBG

354

DBG

053

GN

D52

VCC

51

PWM

346

AD

C 2

45A

DC

144

AD

C 0

43G

ND

42

438

434

GN

D33

AD

C 7

50A

DC

649

AD

C 5

48PW

M 4

47

DEB

UG

GER

TARG

ET

ID2

VO

FF55

121

222

323

025

126

227

328

429

530

631

732

535

636

737

539

640

741

RESE

RVED

1V

BUS

56

CNA

NO

56-p

in e

dge

conn

ecto

r

J200

J201

J203

J205

J206

J202

J204

PF1

PF0

PF1_

TOSC

2PF

0_TO

SC1

NC

J211

J210

XOUT

XIN

47kR200

AVR

128D

A48

UPD

I

GPI

O1

GPI

O0

RESE

T

DBG

0

DBG

1

DBG

2

DBG

3

Deb

ugge

r

CD

C T

X

CD

C R

X

UA

RT1

RX

UA

RT1

TX

VTG

18V

- 5

5VPC6

PC7

PF6

UPD

I

PC0

PC1

Nam

ePi

n

PA5

1PA

62

PA7

3PB

04

PB1

5PB

26

PB3

7PB

48

PB5

9PC

010

PC1

11PC

212

PC3 13VDD 14GND 15PC4 16PC5 17PC6 18PC7 19PD0 20PD1 21PD2 22PD3 23PD4 24

PD5

25PD

626

PD7

27AV

DD28

GND

29PE

030

PE1

31PE

232

PE3

33XT

AL32

K1P

F034

XTAL

32K2

PF1

35PF

236

PF337 PF438 PF539 PF640 UPDI41 VDD42 GND43 EXTCLKPA044 PA145 PA246 PA347 PA448

AVR1

28D

A48

TQ

FPU

200

PC0_

UA

RT1_

TXPC

1_U

ART

1_RX

PC6_

LED

0_G

PIO

1PC

7_SW

0_G

PIO

0

AVD

D

PD2_

AIN

2_W

O2

PD1_

AIN

1_W

O1

PD0_

AIN

0_W

O0

PD5_

AIN

5PD

4_A

IN4

PD3_

AIN

3

XC2

00

12p

C203

12p

C204

327

68 k

Hz

Crys

tal d

atas

heet

Cc

rysta

l = 9

pFm

ax E

SR =

70k

Ohm

Acc

urac

y plusmn2

0ppm

AVR1

28D

A48

dat

ashe

et

Cxin

= 4

1pF

Cxou

t = 6

0pF

Cl asymp

1( (

14

1pF)

+ (1

60

pF) )

asymp2

44pF

Max

imum

Loa

d =

125

pFM

axim

um E

SR =

80k

Ohm

Estim

ated

Cpc

b =

05p

F

Estim

ated

load

C =

2 (C

crys

tal-

Cpar

a - C

pcb)

C

= 2

(9pF

- 2

44pF

- 0

5pF)

C =

121

2pF

Sele

cted

in d

esig

n af

ter v

erifi

catio

nC=

12p

F12

pF

NO

TE o

n U

ART

CD

C

RXT

X o

n th

e he

ader

den

otes

the

inpu

tout

put d

irect

ion

of th

e sig

nal

resp

ectiv

e to

its

sour

ce

CDC

TX is

out

put f

rom

the

DEB

UG

GER

CD

C RX

is in

put t

o th

e D

EBU

GG

ER

TX is

out

put f

rom

the

TARG

ET d

evic

eRX

is in

put t

o th

e TA

RGET

dev

ice

NO

TE o

n I2

C

No

pull-

ups o

n bo

ard

Pul

l-ups

shou

ld b

e m

ount

ed c

lose

to sl

ave

devi

ce(s

)

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 29

11

22

33

44

55

66

77

88

DD

CC

BB

AA

3 of

4

AVR1

28D

A48

Curio

sity

Nan

o

102

320

19AV

R128

DA

48_C

urio

sity

_Nan

o_D

ebug

gerS

chD

oc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA R

evisi

on

File

PC

B N

umbe

rPC

B Re

visio

n

Des

igne

d wi

th

Dra

wn

By

PB Shee

t Titl

eD

ebug

ger

Engi

neer

A

H T

F

A08

-300

23

Size

A3

A09

-328

03

Page

D

ateA

ltium

com

DEB

UG

GER

USB

MIC

RO

-B C

ON

NEC

TOR

GN

D

USB

D_P

USB

D_N

100n

C107

100n

C108

RXTXU

ART

CDC_

UART

1kR1

07V

CC_P

3V3

SRST

STAT

US_

LED

SHIE

LD

VBU

S

VCC

_P3V

3G

ND

TP10

0

Testp

oint

Arra

y

12

34

56

78

910

TCK

TDO

TMS

Vsu

pTD

IG

ND

TRST

SRST

VTr

efG

ND

J102

GN

D

47u

F

C100

DBG0

DBG

0

21

GRE

EN L

EDSM

L-P1

2MTT

86R

D10

0

VBUS

1D-

2D+

3

GND

5SH

IELD

16

SHIE

LD2

7

ID4

SHIE

LD3

8SH

IELD

49 M

U-M

B014

2AB2

-269

J105

PAD

33

PA00

1PA

012

PA02

3PA

034

GND 10VDDANA 9

PA04

5PA

056

PA06

7PA

078

PA08 11PA09 12PA10 13PA11 14PA14 15PA15 16

PA16

17PA

1718

PA18

19PA

1920

PA22

21US

B_SO

FPA

2322

USB_

DMP

A24

23US

B_DP

PA2

524

PA2725 RESETN26 PA2827 GND28 VDDCORE29 VDDIN30 SWDCLKPA3031 SWDIOPA3132

SAM

D21

E18A

-MU

TU

100

VOUT

1

VOUT

2

GND 3

EN4

VIN

6

NC5

EP 7

MIC

5528

-33

YM

TU

101

VCC

_P3V

3

GN

D

USB

D_P

USB

D_N

GN

D

1uC106

VCC

_MCU

_CO

RE

VCC

_P3V

3

VCC

_P3V

3

22u

FC1

01

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

3V

CC_P

3V3

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

4V

CC_P

3V3

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

5V

CC_P

3V3

GN

D

GN

D GN

D

GN

D

VCC

_ED

GE

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

7V

CC_P

3V3

GN

DDB

G2

DBG

3_CT

RL

S1_0

_TX

S1_1

_RX

S0_2

_TX

DA

CV

TG_A

DC

RESE

RVED

S0_3

_CLK

DBG0_CTRL

CDC_

TX_C

TRL

BOO

T

DEB

UG

GER

PO

WER

STA

TUS

LED

EN1

BYP

6

VOUT

4

GND

2

VIN

3

NCA

DJ5

GND 7

MIC

5353

U10

2

100n

C102

GN

D

GN

D

47kR101

27kR104 G

ND

33k

R106

22u

F

C103 G

ND

1kR1

08

J100

VCC

_LEV

ELV

CC_R

EGU

LATO

R

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

6V

CC_P

3V3

GN

DDB

G1

CDC_

RXCD

C_TX

DBG3

DBG1_CTRL

DEB

UG

GER

REG

ULA

TOR

REG_ENABLE

REG

_EN

ABL

E

47kR103

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

47kR102

47kR105

SWCL

K

GN

D

47kR100 G

ND

DBG

2

S0_0

_RX

DBG

1_CT

RL

DBG

0_CT

RL

DBG

3 O

PEN

DR

AIN

TAR

GET

AD

JUST

ABL

E R

EGU

LATO

R

SRST

DEB

UG

GER

TES

TPO

INT DBG2_CTRL

VO

FFCD

C_RX

_CTR

L

47kR109

DBG

1

CDC_

TX_C

TRL

CDC_

RX_C

TRL

SWCL

K

REG_ADJUST

DBG2_GPIO

DBG

3_CT

RL

DBG

2_CT

RL

UPD

I

UPD

I

GPI

O

GPI

O

RESE

T

Sign

al

DBG

0

DBG

1

DBG

2

DBG

3

ICSP

Inte

rface

DAT

CLK

GPI

O

MCL

R

DBG

3

CD

C T

X

CD

C R

X

UA

RT R

X

UA

RT T

X

UA

RT R

X

UA

RT T

X

TAR

GET

TAR

GET

1kR1

10

VBUS_ADC

1

23

DM

N65

D8L

FBQ

101

VC

C-

-

ID_S

YS

VOFF

1kR112

VCC

_P3V

3

VTG

_AD

CD

AC

MIC

9416

3

VIN

B2VO

UTA1

VIN

A2

ENC2

GND

C1VO

UTB1

U10

8

GN

D

ID_S

YS

VTG

_EN

VTG_EN

VBUS_ADC

SWD

IO

ID_S

YS

TP10

1G

ND

SWD

IO

VO

FF

47kR111 G

ND

ID P

IN

MC3

6213

F100

VCC

_VBU

S

VCC

_VBU

S

VCC

_VBU

S

J101

VCC

_TA

RGET

47k

R113

Prog

ram

min

g co

nnec

tor f

or

fact

ory

prog

ram

min

g of

D

EBU

GG

ER

MIC

5528

Vi

n 2

5V

to 5

5V

Vout

Fix

ed 3

3V

Imax

500

mA

Dro

pout

260

mV

5

00m

A

PTC

Rese

ttabl

e fu

se

Hol

d cu

rrent

500

mA

Trip

cur

rent

100

0mA

Adj

usta

ble

outp

ut a

nd li

mita

tions

- T

he D

EBU

GG

ER c

an a

djus

t the

out

put v

olta

ge o

f the

regu

lato

r bet

wee

n 1

25V

and

51

V to

the

targ

et

- The

vol

tage

out

put i

s lim

ited

by th

e in

put (

USB

) w

hich

can

var

y be

twee

n 4

40V

to 5

25V

- The

leve

l shi

fters

hav

e a

min

imal

vol

tage

leve

l of 1

65V

and

will

lim

it th

e m

inim

um o

pera

ting

volta

ge a

llow

ed fo

r the

ta

rget

to st

ill a

llow

com

mun

icat

ion

- The

MIC

9416

3 ha

s a m

inim

al v

olta

ge le

vel o

f 17

0V a

nd w

ill li

mit

the

min

imum

vol

tage

del

iver

ed to

the

targ

et

- Firm

war

e co

nfig

urat

ion

will

lim

it th

e vo

ltage

rang

e to

be

with

in th

e th

e ta

rget

spec

ifica

tion

R113

is re

quire

d to

pul

l the

Q

101

gate

to a

def

ined

va

lue

whe

n th

e U

100

is no

t po

wer

ed

J100

Cu

t-stra

p us

ed fo

r ful

l sep

arat

ion

of ta

rget

pow

er fr

om th

e le

vel s

hifte

rs a

nd o

n-bo

ard

regu

lato

rs

- For

cur

rent

mea

sure

men

ts us

ing

an e

xter

nal p

ower

supp

ly t

his s

trap

coul

d be

cut

for m

ore

accu

rate

mea

sure

men

ts L

eaka

ge b

ack

thro

ugh

the

switc

h is

in th

e m

icro

am

pere

rang

e

J101

Th

is is

foot

prin

t for

a 1

x2 1

00m

il pi

tch

pin-

head

er th

at c

an b

e us

ed fo

r eas

y cu

rrent

mea

sure

men

t to

the

targ

et m

icro

cont

rolle

r and

the

LED

Bu

tton

To

use

the

foot

prin

t- C

ut th

e tra

ck b

etw

een

the

hole

s an

d m

ount

a p

in-h

eade

r

MIC

5353

Vi

n 2

6V

to 6

VVo

ut 1

25V

to 5

1V

Imax

500

mA

Dro

pout

(typ

ical

) 50

mV

15

0mA

160

mV

5

00m

AA

ccur

acy

2

initi

alTh

erm

al sh

utdo

wn

and

curre

nt li

mit

Max

imum

out

put v

olta

ge is

lim

ited

by th

e in

put v

olta

ge a

nd th

e dr

opou

t vol

tage

in th

e re

gula

tor

(Vm

ax =

Vin

- dr

opou

t)

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 30

72 Assembly DrawingFigure 7-2 AVR128DA48 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

PAC20002 PAC20001 COC200

PAC20102 PAC20101 COC201

PAC20202 PAC20201 COC202

PAC20301 PAC20302 COC203

PAC20401 PAC20402 COC204

PAC20502

PAC20501 COC205

PAD10002 PAD10001 COD100

PAD20001

PAD20002 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

PAJ20701 PAJ20702 PAJ20705 COJ207

PAJ20801 PAJ20802 PAJ20805 COJ208

PAJ20901 PAJ20902 COJ209

PAJ21002 PAJ21001 COJ210

PAJ21102 PAJ21101 COJ211

PAL20002 PAL20001 COL200

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

PAR20002 PAR20001 COR200

PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203

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

PAU200048 PAU200047 PAU200046 PAU200045 PAU200044 PAU200043 PAU200042 PAU200041 PAU200040 PAU200039 PAU200038 PAU200037 PAU200036 PAU200035 PAU200034 PAU200033 PAU200032 PAU200031 PAU200030 PAU200029 PAU200028 PAU200027 PAU200026 PAU200025 PAU200024 PAU200023 PAU200022 PAU200021 PAU200020 PAU200019 PAU200018 PAU200017 PAU200016 PAU200015 PAU200014 PAU200013

PAU200012 PAU200011 PAU200010 PAU20009 PAU20008 PAU20007 PAU20006 PAU20005 PAU20004 PAU20003 PAU20002 PAU20001

COU200

PAXC20001

PAXC20002

COXC200

Figure 7-3 AVR128DA48 Curiosity Nano Assembly Drawing Bottom

ctR

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20002 PAC20001 COC200

PAC20102 PAC20101 COC201

PAC20202 PAC20201 COC202

PAC20301 PAC20302 COC203

PAC20401 PAC20402 COC204

PAC20502

PAC20501 COC205

PAD10002 PAD10001 COD100

PAD20001

PAD20002 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

PAJ20701 PAJ20702 PAJ20705 COJ207

PAJ20801 PAJ20802 PAJ20805 COJ208

PAJ20901 PAJ20902 COJ209

PAJ21002 PAJ21001 COJ210

PAJ21102 PAJ21101 COJ211

PAL20002 PAL20001 COL200

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

PAR20002 PAR20001 COR200

PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203

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

PAU200048 PAU200047 PAU200046 PAU200045 PAU200044 PAU200043 PAU200042 PAU200041 PAU200040 PAU200039 PAU200038 PAU200037 PAU200036 PAU200035 PAU200034 PAU200033 PAU200032 PAU200031 PAU200030 PAU200029 PAU200028 PAU200027 PAU200026 PAU200025 PAU200024 PAU200023 PAU200022 PAU200021 PAU200020 PAU200019 PAU200018 PAU200017 PAU200016 PAU200015 PAU200014 PAU200013

PAU200012 PAU200011 PAU200010 PAU20009 PAU20008 PAU20007 PAU20006 PAU20005 PAU20004 PAU20003 PAU20002 PAU20001

COU200

PAXC20001

PAXC20002

COXC200

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 31

73 Curiosity Nano Base for Click boardstrade

Figure 7-4 AVR128DA48 Curiosity Nano Pinout Mapping

USB

DEB

UG

GER

AVR1

28D

A48

SW0

LED

0

PS L

EDNC

NC

ID

ID

CDC RX

CDCRX

USART1 TX

PC0

CDC TX

CDCTX

USART1 RX

PC1

DBG1

DBG1

PC6

LED0

DBG2

DBG2

PC7

SW0

PA0

PA0

USART0 TX

PTC XY0

PA1

PA1

USART0 RX

PTC XY1

PC2

PC2

TWI0 SDA

PC3

PC3

TWI0 SCL

PA4

PA4

SPI0 MOSI

PTC XY4

PA5

PA5

SPI0 MISO

PTC XY5

PA6

PA6

SPI0 SCK

PTC XY6

PA7

PA7

SPI0 SS

PTC XY7

GND

GND

PF4

PF4

USART2 TX

PTC XY36

PF5

PF5

USART2 RX

PTC XY37

PF2

PF2

PTC XY34

PF3

PF3

PTC XY35

PB0

PB0

PTC XY8

PB1

PB1

PTC XY9

PB2

PB2

PTC XY10

PB3

PB3

PTC XY11

GND

GND

PC0

PC0

USART1 TX

CDC RX

PC1

PC1

USART1 RX

CDC TX

PC6

PC6

LED0

PC7

PC7

SW0

VBUS

VBUS

VOFF

VOFF

DBG3

DBG3

PF6

DBG0

DBG0

UPDI

GND

GND

VTG

VTG

PD7

PD7

AIN7

PTC XY23

PD6

PD6

AIN6

PTC XY22

PD2

PD2

AIN2

PTC XY18

TCA0 WO2

PD1

PD1

AIN1

PTC XY17

TCA0 WO1

PD0

PD0

AIN0

PTC XY16

TCA0 WO0

PD5

PD5

AIN5

PTC XY21

PD4

PD4

AIN4

PTC XY20

PD3

PD3

AIN3

PTC XY19

GND

GND

PE3

PE3

PTC XY27

PE2

PE2

PTC XY26

PE1

PE1

PTC XY25

PE0

PE0

PTC XY24

PA3

PA3

PTC XY3

PA2

PA2

PTC XY2

PB5

PB5

PTC XY13

PB4

PB4

PTC XY12

GND

GND

PC5

PC5

PC4

PC4

(PF1)

(PF1)

(PTC XY33)

XTAL32K2

(PF0)

(PF0)

(PTC XY32)

XTAL32K1

DEB

UG

GER

AVR1

28D

A48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

Touch

Shared pin

AVR1

28D

A48

Curio

sity

Nan

o

1

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

2

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

3

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

Xpl

aine

d Pr

o Ex

tens

ion

EXT1

12

1920

Curio

sity

Nan

o Ba

sefo

r clic

k bo

ards

TM

PD3

PD0

PD7

PD6

PA7

PA1

PA6

PA0

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

PD4

PD1

PF3

PF2

PE2

PF5

PA6

PF4

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

PD5

PD2

PE1

PE0

PE3

PA1

PA6

PA0

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

ID

GND

PD4

PD5

PF3

PE1

PD1

PD2

PF2

PE3

PC2

PC3

PF5

PF4

PE2

PA4

PA5

PA6

GND

+33V

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 32

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

The block diagram below shows all connections between the debugger and the AVR128DA48 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 7-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 7-6 Details about connecting an external debugger are described in 36 Connecting ExternalDebuggers

Figure 7-5  On-Board Debugger Connections Block Diagram

DEB

UG

GER

TARGETLevel-Shift

PA04PA06PA07PA08PA16PA00PA01

USB

DIR x 5

VCC_P3V3

VBUS

VCC

_LEV

EL

VCC

_TA

RGET

DBG0DBG1DBG2DBG3CDC 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

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 33

Figure 7-6 On-Board Debugger Connection Cut Straps

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

75 Getting Started with IARIAR Embedded Workbenchreg for AVRreg is a proprietary high-efficiency compiler not based on GCC Programming anddebugging of AVR128DA48 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 7-73 In the category Debugger select the Setup tab Select Atmel-ICE as the driver as shown in Figure 7-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 7-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

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 34

Figure 7-7 Select Target Device

Figure 7-8 Select Debugger

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 35

Figure 7-9 Configure Interface

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 36

The Microchip WebsiteMicrochip provides online support via our website at httpwwwmicrochipcom This website is used to make filesand information 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 ServiceMicrochiprsquos 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 httpwwwmicrochipcompcn and follow the registration instructions

Customer SupportUsers 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 httpwwwmicrochipcomsupport

Microchip Devices Code Protection FeatureNote the following details of the code protection feature on Microchip devices

bull Microchip products meet the specification contained in their particular Microchip Data Sheetbull Microchip believes that its family of products is one of the most secure families of its kind on the market today

when used in the intended manner and under normal conditionsbull There are dishonest and possibly illegal methods used to breach the code protection feature All of these

methods to our knowledge require using the Microchip products in a manner outside the operatingspecifications contained in Microchiprsquos Data Sheets Most likely the person doing so is engaged in theft ofintellectual property

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

protection does not mean that we are guaranteeing the product as ldquounbreakablerdquo

Code protection is constantly evolving We at Microchip are committed to continuously improving the code protectionfeatures of our products Attempts to break Microchiprsquos code protection feature may be a violation of the DigitalMillennium Copyright Act If such acts allow unauthorized access to your software or other copyrighted work youmay have a right to sue for relief under that Act

Legal NoticeInformation contained in this publication regarding device applications and the like is provided only for yourconvenience and may be superseded by updates It is your responsibility to ensure that your application meets with

AVR128DA48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 37

your specifications MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHEREXPRESS OR IMPLIED WRITTEN OR ORAL STATUTORY OR OTHERWISE RELATED TO THE INFORMATIONINCLUDING BUT NOT LIMITED TO ITS CONDITION QUALITY PERFORMANCE MERCHANTABILITY ORFITNESS FOR PURPOSE Microchip disclaims all liability arising from this information and its use Use of Microchipdevices in life support andor safety applications is entirely at the buyerrsquos risk and the buyer agrees to defendindemnify and hold harmless Microchip from any and all damages claims suits or expenses resulting from suchuse No licenses are conveyed implicitly or otherwise under any Microchip intellectual property rights unlessotherwise stated

TrademarksThe 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-5760-2

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

AVR128DA48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 38

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupporthttpwwwmicrochipcomsupportWeb AddresshttpwwwmicrochipcomAtlantaDuluth 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 DS50002971A-page 39

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Kit Overview
      • 2 Getting Started
        • 21 Quick Start
        • 22 Design Documentation and Relevant Links
          • 3 Curiosity Nano
            • 31 On-Board Debugger Overview
              • 311 Debugger
              • 312 Virtual Serial Port (CDC)
                • 3121 Overview
                • 3122 Operating System Support
                • 3123 Limitations
                • 3124 Signaling
                • 3125 Advanced Use
                  • 313 Mass Storage Device
                    • 3131 Mass Storage Device Implementation
                    • 3132 Fuse Bytes
                    • 3133 Limitations of Drag-and-Drop Programming
                    • 3134 Special Commands
                      • 314 Data Gateway Interface (DGI)
                        • 3141 Debug GPIO
                        • 3142 Timestamping
                            • 32 Curiosity Nano Standard Pinout
                            • 33 Power Supply
                              • 331 Target Regulator
                              • 332 External Supply
                              • 333 VBUS Output Pin
                              • 334 Power Supply Exceptions
                                • 34 Low Power Measurement
                                • 35 Programming External Microcontrollers
                                  • 351 Supported Devices
                                  • 352 Software Configuration
                                  • 353 Hardware Modifications
                                  • 354 Connecting to External Microcontrollers
                                    • 36 Connecting External Debuggers
                                      • 4 Hardware User Guide
                                        • 41 Connectors
                                          • 411 AVR128DA48 Curiosity Nano Pinout
                                          • 412 Using Pin Headers
                                            • 42 Peripherals
                                              • 421 LED
                                              • 422 Mechanical Switch
                                              • 423 Crystal
                                              • 424 On-Board Debugger Implementation
                                                • 4241 On-Board Debugger Connections
                                                  • 5 Hardware Revision History and Known Issues
                                                    • 51 Identifying Product ID and Revision
                                                    • 52 Revision 3
                                                      • 6 Document Revision History
                                                      • 7 Appendix
                                                        • 71 Schematic
                                                        • 72 Assembly Drawing
                                                        • 73 Curiosity Nano Base for Click boardstrade
                                                        • 74 Disconnecting the On-board Debugger
                                                        • 75 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: AVR128DA48 Curiosity Nano User Guide - Microchip Technologyww1.microchip.com/downloads/en/DeviceDoc/AVR128DA48... · 2020-03-19 · AVR128DA48 Curiosity Nano AVR128DA48 Curiosity

7 Appendix

71 SchematicFigure 7-1 AVR128DA48 Curiosity Nano Schematic

11

22

33

44

55

66

77

88

DD

CC

BB

AA

2 of

4

AVR1

28D

A48

Curio

sity

Nan

o

102

320

19AV

R128

DA

48_C

urio

sity

_Nan

o_Ta

rget

_MCU

Sch

Doc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA R

evisi

on

File

PC

B N

umbe

rPC

B Re

visio

n

Des

igne

d wi

th

Dra

wn

By

PB Shee

t Titl

eTa

rget

MCU

Engi

neer

A

H T

F

A08

-300

23

Size

A3

A09

-328

03

Page

D

ateA

ltium

com

GN

DV

CC_T

ARG

ET

100n

C201

GN

D

PA5_

SPI0

_MIS

OPA

6_SP

I0_S

CKPA

7_SP

I0_S

SPB

0_U

ART

3_TX

PB1_

UA

RT3_

RXPB

2PB

3PB

4PB

5PC

0_U

ART

1_TX

PC1_

UA

RT1_

RXPC

2_I2

C0_S

DA

PC3_I2C0_SCL

PC4PC5PC6_LED0_GPIO1PC7_SW0_GPIO0PD0_AIN0_WO0PD1_AIN1_WO1PD2_AIN2_WO2PD3_AIN3PD4_AIN4

PA3

PA1_UART0_RX

UPDI

PF5_UART2_RX

PF3

PF2

PF1_

TOSC

2PF

0_TO

SC1

PE3

PE2

PE1

PE0

PD5_

AIN

5PD

6_A

IN6

PD7_

AIN

7

GN

D

VCC

_TA

RGET

100n

C202

GN

DV

CC_T

ARG

ET10

0n

C200

PF1_TOSC2

PF0_TOSC1

PA2

PA0_UART0_TX

PF4_UART2_TX

PA4_SPI0_MOSI

GN

D

PA7_

SPI0

_SS

PA6_

SPI0

_SCK

PA5_

SPI0

_MIS

OPA

4_SP

I0_M

OSI

PA3

PA2

PA1_

UA

RT0_

RXPA

0_U

ART

0_TX

PB0_

UA

RT3_

TXPB

1_U

ART

3_RX

PB2

PB3

PB4

PB5

PD7_

AIN

7PD

6_A

IN6

PF5_

UA

RT2_

RXPF

4_U

ART

2_TX

PF3

PF2

32kH

z C

ryst

al

1kR203

USE

R L

ED

VCC

_TA

RGET

PF6_RESET

PC7_SW0_GPIO0

PC6_LED0_GPIO1

GN

D

USE

R B

UTT

ON

PE3

PE2

PE1

PE0

PC0_

UA

RT1_

TXPC

1_U

ART

1_RX

PC2_

I2C0

_SD

APC

3_I2

C0_S

CL

PC4

PC5

PC6_

LED

0_G

PIO

1PC

7_SW

0_G

PIO

0

1kR202

YELLOWLEDSML-D12Y1WT86

2 1D200

TS604VM1-035CR13

4 2

SW20

0

GN

DV

CC_E

DG

E

GN

DG

ND

GN

DG

ND

UPD

IPF

6_RE

SET

J207

J208

J209

BLM

18PG

471S

N1

L200

AVR1

28D

A48

22u

FC2

05

VCC

_ED

GE

GN

D

DBG0

CDC_

UART

TXRXU

ART

CDC_TXCDC_RX

DBG2

DBG1

DBG3

DBG2

DEB

UG

GER

CO

NN

ECTI

ON

S

DBG1

DBG3DBG0

VOFF

ID_S

YS

ID_SYS

VOFF

TAR

GET

BU

LK

VCC

_TA

RGET

RES

ET P

ull

VBU

S

CDC

RX3

CDC

TX4

DBG

15

DBG

26

0 TX

71

RX8

2 SD

A9

3 SC

L10

4 M

OSI

115

MIS

O12

6 SC

K13

7 SS

14G

ND

150

(TX

)16

1 (R

X)

172

183

190

20

GN

D24

DBG

354

DBG

053

GN

D52

VCC

51

PWM

346

AD

C 2

45A

DC

144

AD

C 0

43G

ND

42

438

434

GN

D33

AD

C 7

50A

DC

649

AD

C 5

48PW

M 4

47

DEB

UG

GER

TARG

ET

ID2

VO

FF55

121

222

323

025

126

227

328

429

530

631

732

535

636

737

539

640

741

RESE

RVED

1V

BUS

56

CNA

NO

56-p

in e

dge

conn

ecto

r

J200

J201

J203

J205

J206

J202

J204

PF1

PF0

PF1_

TOSC

2PF

0_TO

SC1

NC

J211

J210

XOUT

XIN

47kR200

AVR

128D

A48

UPD

I

GPI

O1

GPI

O0

RESE

T

DBG

0

DBG

1

DBG

2

DBG

3

Deb

ugge

r

CD

C T

X

CD

C R

X

UA

RT1

RX

UA

RT1

TX

VTG

18V

- 5

5VPC6

PC7

PF6

UPD

I

PC0

PC1

Nam

ePi

n

PA5

1PA

62

PA7

3PB

04

PB1

5PB

26

PB3

7PB

48

PB5

9PC

010

PC1

11PC

212

PC3 13VDD 14GND 15PC4 16PC5 17PC6 18PC7 19PD0 20PD1 21PD2 22PD3 23PD4 24

PD5

25PD

626

PD7

27AV

DD28

GND

29PE

030

PE1

31PE

232

PE3

33XT

AL32

K1P

F034

XTAL

32K2

PF1

35PF

236

PF337 PF438 PF539 PF640 UPDI41 VDD42 GND43 EXTCLKPA044 PA145 PA246 PA347 PA448

AVR1

28D

A48

TQ

FPU

200

PC0_

UA

RT1_

TXPC

1_U

ART

1_RX

PC6_

LED

0_G

PIO

1PC

7_SW

0_G

PIO

0

AVD

D

PD2_

AIN

2_W

O2

PD1_

AIN

1_W

O1

PD0_

AIN

0_W

O0

PD5_

AIN

5PD

4_A

IN4

PD3_

AIN

3

XC2

00

12p

C203

12p

C204

327

68 k

Hz

Crys

tal d

atas

heet

Cc

rysta

l = 9

pFm

ax E

SR =

70k

Ohm

Acc

urac

y plusmn2

0ppm

AVR1

28D

A48

dat

ashe

et

Cxin

= 4

1pF

Cxou

t = 6

0pF

Cl asymp

1( (

14

1pF)

+ (1

60

pF) )

asymp2

44pF

Max

imum

Loa

d =

125

pFM

axim

um E

SR =

80k

Ohm

Estim

ated

Cpc

b =

05p

F

Estim

ated

load

C =

2 (C

crys

tal-

Cpar

a - C

pcb)

C

= 2

(9pF

- 2

44pF

- 0

5pF)

C =

121

2pF

Sele

cted

in d

esig

n af

ter v

erifi

catio

nC=

12p

F12

pF

NO

TE o

n U

ART

CD

C

RXT

X o

n th

e he

ader

den

otes

the

inpu

tout

put d

irect

ion

of th

e sig

nal

resp

ectiv

e to

its

sour

ce

CDC

TX is

out

put f

rom

the

DEB

UG

GER

CD

C RX

is in

put t

o th

e D

EBU

GG

ER

TX is

out

put f

rom

the

TARG

ET d

evic

eRX

is in

put t

o th

e TA

RGET

dev

ice

NO

TE o

n I2

C

No

pull-

ups o

n bo

ard

Pul

l-ups

shou

ld b

e m

ount

ed c

lose

to sl

ave

devi

ce(s

)

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 29

11

22

33

44

55

66

77

88

DD

CC

BB

AA

3 of

4

AVR1

28D

A48

Curio

sity

Nan

o

102

320

19AV

R128

DA

48_C

urio

sity

_Nan

o_D

ebug

gerS

chD

oc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA R

evisi

on

File

PC

B N

umbe

rPC

B Re

visio

n

Des

igne

d wi

th

Dra

wn

By

PB Shee

t Titl

eD

ebug

ger

Engi

neer

A

H T

F

A08

-300

23

Size

A3

A09

-328

03

Page

D

ateA

ltium

com

DEB

UG

GER

USB

MIC

RO

-B C

ON

NEC

TOR

GN

D

USB

D_P

USB

D_N

100n

C107

100n

C108

RXTXU

ART

CDC_

UART

1kR1

07V

CC_P

3V3

SRST

STAT

US_

LED

SHIE

LD

VBU

S

VCC

_P3V

3G

ND

TP10

0

Testp

oint

Arra

y

12

34

56

78

910

TCK

TDO

TMS

Vsu

pTD

IG

ND

TRST

SRST

VTr

efG

ND

J102

GN

D

47u

F

C100

DBG0

DBG

0

21

GRE

EN L

EDSM

L-P1

2MTT

86R

D10

0

VBUS

1D-

2D+

3

GND

5SH

IELD

16

SHIE

LD2

7

ID4

SHIE

LD3

8SH

IELD

49 M

U-M

B014

2AB2

-269

J105

PAD

33

PA00

1PA

012

PA02

3PA

034

GND 10VDDANA 9

PA04

5PA

056

PA06

7PA

078

PA08 11PA09 12PA10 13PA11 14PA14 15PA15 16

PA16

17PA

1718

PA18

19PA

1920

PA22

21US

B_SO

FPA

2322

USB_

DMP

A24

23US

B_DP

PA2

524

PA2725 RESETN26 PA2827 GND28 VDDCORE29 VDDIN30 SWDCLKPA3031 SWDIOPA3132

SAM

D21

E18A

-MU

TU

100

VOUT

1

VOUT

2

GND 3

EN4

VIN

6

NC5

EP 7

MIC

5528

-33

YM

TU

101

VCC

_P3V

3

GN

D

USB

D_P

USB

D_N

GN

D

1uC106

VCC

_MCU

_CO

RE

VCC

_P3V

3

VCC

_P3V

3

22u

FC1

01

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

3V

CC_P

3V3

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

4V

CC_P

3V3

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

5V

CC_P

3V3

GN

D

GN

D GN

D

GN

D

VCC

_ED

GE

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

7V

CC_P

3V3

GN

DDB

G2

DBG

3_CT

RL

S1_0

_TX

S1_1

_RX

S0_2

_TX

DA

CV

TG_A

DC

RESE

RVED

S0_3

_CLK

DBG0_CTRL

CDC_

TX_C

TRL

BOO

T

DEB

UG

GER

PO

WER

STA

TUS

LED

EN1

BYP

6

VOUT

4

GND

2

VIN

3

NCA

DJ5

GND 7

MIC

5353

U10

2

100n

C102

GN

D

GN

D

47kR101

27kR104 G

ND

33k

R106

22u

F

C103 G

ND

1kR1

08

J100

VCC

_LEV

ELV

CC_R

EGU

LATO

R

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

6V

CC_P

3V3

GN

DDB

G1

CDC_

RXCD

C_TX

DBG3

DBG1_CTRL

DEB

UG

GER

REG

ULA

TOR

REG_ENABLE

REG

_EN

ABL

E

47kR103

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

47kR102

47kR105

SWCL

K

GN

D

47kR100 G

ND

DBG

2

S0_0

_RX

DBG

1_CT

RL

DBG

0_CT

RL

DBG

3 O

PEN

DR

AIN

TAR

GET

AD

JUST

ABL

E R

EGU

LATO

R

SRST

DEB

UG

GER

TES

TPO

INT DBG2_CTRL

VO

FFCD

C_RX

_CTR

L

47kR109

DBG

1

CDC_

TX_C

TRL

CDC_

RX_C

TRL

SWCL

K

REG_ADJUST

DBG2_GPIO

DBG

3_CT

RL

DBG

2_CT

RL

UPD

I

UPD

I

GPI

O

GPI

O

RESE

T

Sign

al

DBG

0

DBG

1

DBG

2

DBG

3

ICSP

Inte

rface

DAT

CLK

GPI

O

MCL

R

DBG

3

CD

C T

X

CD

C R

X

UA

RT R

X

UA

RT T

X

UA

RT R

X

UA

RT T

X

TAR

GET

TAR

GET

1kR1

10

VBUS_ADC

1

23

DM

N65

D8L

FBQ

101

VC

C-

-

ID_S

YS

VOFF

1kR112

VCC

_P3V

3

VTG

_AD

CD

AC

MIC

9416

3

VIN

B2VO

UTA1

VIN

A2

ENC2

GND

C1VO

UTB1

U10

8

GN

D

ID_S

YS

VTG

_EN

VTG_EN

VBUS_ADC

SWD

IO

ID_S

YS

TP10

1G

ND

SWD

IO

VO

FF

47kR111 G

ND

ID P

IN

MC3

6213

F100

VCC

_VBU

S

VCC

_VBU

S

VCC

_VBU

S

J101

VCC

_TA

RGET

47k

R113

Prog

ram

min

g co

nnec

tor f

or

fact

ory

prog

ram

min

g of

D

EBU

GG

ER

MIC

5528

Vi

n 2

5V

to 5

5V

Vout

Fix

ed 3

3V

Imax

500

mA

Dro

pout

260

mV

5

00m

A

PTC

Rese

ttabl

e fu

se

Hol

d cu

rrent

500

mA

Trip

cur

rent

100

0mA

Adj

usta

ble

outp

ut a

nd li

mita

tions

- T

he D

EBU

GG

ER c

an a

djus

t the

out

put v

olta

ge o

f the

regu

lato

r bet

wee

n 1

25V

and

51

V to

the

targ

et

- The

vol

tage

out

put i

s lim

ited

by th

e in

put (

USB

) w

hich

can

var

y be

twee

n 4

40V

to 5

25V

- The

leve

l shi

fters

hav

e a

min

imal

vol

tage

leve

l of 1

65V

and

will

lim

it th

e m

inim

um o

pera

ting

volta

ge a

llow

ed fo

r the

ta

rget

to st

ill a

llow

com

mun

icat

ion

- The

MIC

9416

3 ha

s a m

inim

al v

olta

ge le

vel o

f 17

0V a

nd w

ill li

mit

the

min

imum

vol

tage

del

iver

ed to

the

targ

et

- Firm

war

e co

nfig

urat

ion

will

lim

it th

e vo

ltage

rang

e to

be

with

in th

e th

e ta

rget

spec

ifica

tion

R113

is re

quire

d to

pul

l the

Q

101

gate

to a

def

ined

va

lue

whe

n th

e U

100

is no

t po

wer

ed

J100

Cu

t-stra

p us

ed fo

r ful

l sep

arat

ion

of ta

rget

pow

er fr

om th

e le

vel s

hifte

rs a

nd o

n-bo

ard

regu

lato

rs

- For

cur

rent

mea

sure

men

ts us

ing

an e

xter

nal p

ower

supp

ly t

his s

trap

coul

d be

cut

for m

ore

accu

rate

mea

sure

men

ts L

eaka

ge b

ack

thro

ugh

the

switc

h is

in th

e m

icro

am

pere

rang

e

J101

Th

is is

foot

prin

t for

a 1

x2 1

00m

il pi

tch

pin-

head

er th

at c

an b

e us

ed fo

r eas

y cu

rrent

mea

sure

men

t to

the

targ

et m

icro

cont

rolle

r and

the

LED

Bu

tton

To

use

the

foot

prin

t- C

ut th

e tra

ck b

etw

een

the

hole

s an

d m

ount

a p

in-h

eade

r

MIC

5353

Vi

n 2

6V

to 6

VVo

ut 1

25V

to 5

1V

Imax

500

mA

Dro

pout

(typ

ical

) 50

mV

15

0mA

160

mV

5

00m

AA

ccur

acy

2

initi

alTh

erm

al sh

utdo

wn

and

curre

nt li

mit

Max

imum

out

put v

olta

ge is

lim

ited

by th

e in

put v

olta

ge a

nd th

e dr

opou

t vol

tage

in th

e re

gula

tor

(Vm

ax =

Vin

- dr

opou

t)

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 30

72 Assembly DrawingFigure 7-2 AVR128DA48 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

PAC20002 PAC20001 COC200

PAC20102 PAC20101 COC201

PAC20202 PAC20201 COC202

PAC20301 PAC20302 COC203

PAC20401 PAC20402 COC204

PAC20502

PAC20501 COC205

PAD10002 PAD10001 COD100

PAD20001

PAD20002 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

PAJ20701 PAJ20702 PAJ20705 COJ207

PAJ20801 PAJ20802 PAJ20805 COJ208

PAJ20901 PAJ20902 COJ209

PAJ21002 PAJ21001 COJ210

PAJ21102 PAJ21101 COJ211

PAL20002 PAL20001 COL200

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

PAR20002 PAR20001 COR200

PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203

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

PAU200048 PAU200047 PAU200046 PAU200045 PAU200044 PAU200043 PAU200042 PAU200041 PAU200040 PAU200039 PAU200038 PAU200037 PAU200036 PAU200035 PAU200034 PAU200033 PAU200032 PAU200031 PAU200030 PAU200029 PAU200028 PAU200027 PAU200026 PAU200025 PAU200024 PAU200023 PAU200022 PAU200021 PAU200020 PAU200019 PAU200018 PAU200017 PAU200016 PAU200015 PAU200014 PAU200013

PAU200012 PAU200011 PAU200010 PAU20009 PAU20008 PAU20007 PAU20006 PAU20005 PAU20004 PAU20003 PAU20002 PAU20001

COU200

PAXC20001

PAXC20002

COXC200

Figure 7-3 AVR128DA48 Curiosity Nano Assembly Drawing Bottom

ctR

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20002 PAC20001 COC200

PAC20102 PAC20101 COC201

PAC20202 PAC20201 COC202

PAC20301 PAC20302 COC203

PAC20401 PAC20402 COC204

PAC20502

PAC20501 COC205

PAD10002 PAD10001 COD100

PAD20001

PAD20002 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

PAJ20701 PAJ20702 PAJ20705 COJ207

PAJ20801 PAJ20802 PAJ20805 COJ208

PAJ20901 PAJ20902 COJ209

PAJ21002 PAJ21001 COJ210

PAJ21102 PAJ21101 COJ211

PAL20002 PAL20001 COL200

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

PAR20002 PAR20001 COR200

PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203

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

PAU200048 PAU200047 PAU200046 PAU200045 PAU200044 PAU200043 PAU200042 PAU200041 PAU200040 PAU200039 PAU200038 PAU200037 PAU200036 PAU200035 PAU200034 PAU200033 PAU200032 PAU200031 PAU200030 PAU200029 PAU200028 PAU200027 PAU200026 PAU200025 PAU200024 PAU200023 PAU200022 PAU200021 PAU200020 PAU200019 PAU200018 PAU200017 PAU200016 PAU200015 PAU200014 PAU200013

PAU200012 PAU200011 PAU200010 PAU20009 PAU20008 PAU20007 PAU20006 PAU20005 PAU20004 PAU20003 PAU20002 PAU20001

COU200

PAXC20001

PAXC20002

COXC200

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 31

73 Curiosity Nano Base for Click boardstrade

Figure 7-4 AVR128DA48 Curiosity Nano Pinout Mapping

USB

DEB

UG

GER

AVR1

28D

A48

SW0

LED

0

PS L

EDNC

NC

ID

ID

CDC RX

CDCRX

USART1 TX

PC0

CDC TX

CDCTX

USART1 RX

PC1

DBG1

DBG1

PC6

LED0

DBG2

DBG2

PC7

SW0

PA0

PA0

USART0 TX

PTC XY0

PA1

PA1

USART0 RX

PTC XY1

PC2

PC2

TWI0 SDA

PC3

PC3

TWI0 SCL

PA4

PA4

SPI0 MOSI

PTC XY4

PA5

PA5

SPI0 MISO

PTC XY5

PA6

PA6

SPI0 SCK

PTC XY6

PA7

PA7

SPI0 SS

PTC XY7

GND

GND

PF4

PF4

USART2 TX

PTC XY36

PF5

PF5

USART2 RX

PTC XY37

PF2

PF2

PTC XY34

PF3

PF3

PTC XY35

PB0

PB0

PTC XY8

PB1

PB1

PTC XY9

PB2

PB2

PTC XY10

PB3

PB3

PTC XY11

GND

GND

PC0

PC0

USART1 TX

CDC RX

PC1

PC1

USART1 RX

CDC TX

PC6

PC6

LED0

PC7

PC7

SW0

VBUS

VBUS

VOFF

VOFF

DBG3

DBG3

PF6

DBG0

DBG0

UPDI

GND

GND

VTG

VTG

PD7

PD7

AIN7

PTC XY23

PD6

PD6

AIN6

PTC XY22

PD2

PD2

AIN2

PTC XY18

TCA0 WO2

PD1

PD1

AIN1

PTC XY17

TCA0 WO1

PD0

PD0

AIN0

PTC XY16

TCA0 WO0

PD5

PD5

AIN5

PTC XY21

PD4

PD4

AIN4

PTC XY20

PD3

PD3

AIN3

PTC XY19

GND

GND

PE3

PE3

PTC XY27

PE2

PE2

PTC XY26

PE1

PE1

PTC XY25

PE0

PE0

PTC XY24

PA3

PA3

PTC XY3

PA2

PA2

PTC XY2

PB5

PB5

PTC XY13

PB4

PB4

PTC XY12

GND

GND

PC5

PC5

PC4

PC4

(PF1)

(PF1)

(PTC XY33)

XTAL32K2

(PF0)

(PF0)

(PTC XY32)

XTAL32K1

DEB

UG

GER

AVR1

28D

A48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

Touch

Shared pin

AVR1

28D

A48

Curio

sity

Nan

o

1

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

2

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

3

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

Xpl

aine

d Pr

o Ex

tens

ion

EXT1

12

1920

Curio

sity

Nan

o Ba

sefo

r clic

k bo

ards

TM

PD3

PD0

PD7

PD6

PA7

PA1

PA6

PA0

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

PD4

PD1

PF3

PF2

PE2

PF5

PA6

PF4

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

PD5

PD2

PE1

PE0

PE3

PA1

PA6

PA0

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

ID

GND

PD4

PD5

PF3

PE1

PD1

PD2

PF2

PE3

PC2

PC3

PF5

PF4

PE2

PA4

PA5

PA6

GND

+33V

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 32

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

The block diagram below shows all connections between the debugger and the AVR128DA48 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 7-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 7-6 Details about connecting an external debugger are described in 36 Connecting ExternalDebuggers

Figure 7-5  On-Board Debugger Connections Block Diagram

DEB

UG

GER

TARGETLevel-Shift

PA04PA06PA07PA08PA16PA00PA01

USB

DIR x 5

VCC_P3V3

VBUS

VCC

_LEV

EL

VCC

_TA

RGET

DBG0DBG1DBG2DBG3CDC 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

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 33

Figure 7-6 On-Board Debugger Connection Cut Straps

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

75 Getting Started with IARIAR Embedded Workbenchreg for AVRreg is a proprietary high-efficiency compiler not based on GCC Programming anddebugging of AVR128DA48 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 7-73 In the category Debugger select the Setup tab Select Atmel-ICE as the driver as shown in Figure 7-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 7-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

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 34

Figure 7-7 Select Target Device

Figure 7-8 Select Debugger

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 35

Figure 7-9 Configure Interface

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 36

The Microchip WebsiteMicrochip provides online support via our website at httpwwwmicrochipcom This website is used to make filesand information 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 ServiceMicrochiprsquos 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 httpwwwmicrochipcompcn and follow the registration instructions

Customer SupportUsers 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 httpwwwmicrochipcomsupport

Microchip Devices Code Protection FeatureNote the following details of the code protection feature on Microchip devices

bull Microchip products meet the specification contained in their particular Microchip Data Sheetbull Microchip believes that its family of products is one of the most secure families of its kind on the market today

when used in the intended manner and under normal conditionsbull There are dishonest and possibly illegal methods used to breach the code protection feature All of these

methods to our knowledge require using the Microchip products in a manner outside the operatingspecifications contained in Microchiprsquos Data Sheets Most likely the person doing so is engaged in theft ofintellectual property

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

protection does not mean that we are guaranteeing the product as ldquounbreakablerdquo

Code protection is constantly evolving We at Microchip are committed to continuously improving the code protectionfeatures of our products Attempts to break Microchiprsquos code protection feature may be a violation of the DigitalMillennium Copyright Act If such acts allow unauthorized access to your software or other copyrighted work youmay have a right to sue for relief under that Act

Legal NoticeInformation contained in this publication regarding device applications and the like is provided only for yourconvenience and may be superseded by updates It is your responsibility to ensure that your application meets with

AVR128DA48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 37

your specifications MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHEREXPRESS OR IMPLIED WRITTEN OR ORAL STATUTORY OR OTHERWISE RELATED TO THE INFORMATIONINCLUDING BUT NOT LIMITED TO ITS CONDITION QUALITY PERFORMANCE MERCHANTABILITY ORFITNESS FOR PURPOSE Microchip disclaims all liability arising from this information and its use Use of Microchipdevices in life support andor safety applications is entirely at the buyerrsquos risk and the buyer agrees to defendindemnify and hold harmless Microchip from any and all damages claims suits or expenses resulting from suchuse No licenses are conveyed implicitly or otherwise under any Microchip intellectual property rights unlessotherwise stated

TrademarksThe 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-5760-2

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

AVR128DA48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 38

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupporthttpwwwmicrochipcomsupportWeb AddresshttpwwwmicrochipcomAtlantaDuluth 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 DS50002971A-page 39

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Kit Overview
      • 2 Getting Started
        • 21 Quick Start
        • 22 Design Documentation and Relevant Links
          • 3 Curiosity Nano
            • 31 On-Board Debugger Overview
              • 311 Debugger
              • 312 Virtual Serial Port (CDC)
                • 3121 Overview
                • 3122 Operating System Support
                • 3123 Limitations
                • 3124 Signaling
                • 3125 Advanced Use
                  • 313 Mass Storage Device
                    • 3131 Mass Storage Device Implementation
                    • 3132 Fuse Bytes
                    • 3133 Limitations of Drag-and-Drop Programming
                    • 3134 Special Commands
                      • 314 Data Gateway Interface (DGI)
                        • 3141 Debug GPIO
                        • 3142 Timestamping
                            • 32 Curiosity Nano Standard Pinout
                            • 33 Power Supply
                              • 331 Target Regulator
                              • 332 External Supply
                              • 333 VBUS Output Pin
                              • 334 Power Supply Exceptions
                                • 34 Low Power Measurement
                                • 35 Programming External Microcontrollers
                                  • 351 Supported Devices
                                  • 352 Software Configuration
                                  • 353 Hardware Modifications
                                  • 354 Connecting to External Microcontrollers
                                    • 36 Connecting External Debuggers
                                      • 4 Hardware User Guide
                                        • 41 Connectors
                                          • 411 AVR128DA48 Curiosity Nano Pinout
                                          • 412 Using Pin Headers
                                            • 42 Peripherals
                                              • 421 LED
                                              • 422 Mechanical Switch
                                              • 423 Crystal
                                              • 424 On-Board Debugger Implementation
                                                • 4241 On-Board Debugger Connections
                                                  • 5 Hardware Revision History and Known Issues
                                                    • 51 Identifying Product ID and Revision
                                                    • 52 Revision 3
                                                      • 6 Document Revision History
                                                      • 7 Appendix
                                                        • 71 Schematic
                                                        • 72 Assembly Drawing
                                                        • 73 Curiosity Nano Base for Click boardstrade
                                                        • 74 Disconnecting the On-board Debugger
                                                        • 75 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: AVR128DA48 Curiosity Nano User Guide - Microchip Technologyww1.microchip.com/downloads/en/DeviceDoc/AVR128DA48... · 2020-03-19 · AVR128DA48 Curiosity Nano AVR128DA48 Curiosity

11

22

33

44

55

66

77

88

DD

CC

BB

AA

3 of

4

AVR1

28D

A48

Curio

sity

Nan

o

102

320

19AV

R128

DA

48_C

urio

sity

_Nan

o_D

ebug

gerS

chD

oc

Proj

ect T

itle

PCB

Ass

embl

y N

umbe

rPC

BA R

evisi

on

File

PC

B N

umbe

rPC

B Re

visio

n

Des

igne

d wi

th

Dra

wn

By

PB Shee

t Titl

eD

ebug

ger

Engi

neer

A

H T

F

A08

-300

23

Size

A3

A09

-328

03

Page

D

ateA

ltium

com

DEB

UG

GER

USB

MIC

RO

-B C

ON

NEC

TOR

GN

D

USB

D_P

USB

D_N

100n

C107

100n

C108

RXTXU

ART

CDC_

UART

1kR1

07V

CC_P

3V3

SRST

STAT

US_

LED

SHIE

LD

VBU

S

VCC

_P3V

3G

ND

TP10

0

Testp

oint

Arra

y

12

34

56

78

910

TCK

TDO

TMS

Vsu

pTD

IG

ND

TRST

SRST

VTr

efG

ND

J102

GN

D

47u

F

C100

DBG0

DBG

0

21

GRE

EN L

EDSM

L-P1

2MTT

86R

D10

0

VBUS

1D-

2D+

3

GND

5SH

IELD

16

SHIE

LD2

7

ID4

SHIE

LD3

8SH

IELD

49 M

U-M

B014

2AB2

-269

J105

PAD

33

PA00

1PA

012

PA02

3PA

034

GND 10VDDANA 9

PA04

5PA

056

PA06

7PA

078

PA08 11PA09 12PA10 13PA11 14PA14 15PA15 16

PA16

17PA

1718

PA18

19PA

1920

PA22

21US

B_SO

FPA

2322

USB_

DMP

A24

23US

B_DP

PA2

524

PA2725 RESETN26 PA2827 GND28 VDDCORE29 VDDIN30 SWDCLKPA3031 SWDIOPA3132

SAM

D21

E18A

-MU

TU

100

VOUT

1

VOUT

2

GND 3

EN4

VIN

6

NC5

EP 7

MIC

5528

-33

YM

TU

101

VCC

_P3V

3

GN

D

USB

D_P

USB

D_N

GN

D

1uC106

VCC

_MCU

_CO

RE

VCC

_P3V

3

VCC

_P3V

3

22u

FC1

01

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

3V

CC_P

3V3

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

4V

CC_P

3V3

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

5V

CC_P

3V3

GN

D

GN

D GN

D

GN

D

VCC

_ED

GE

GN

D

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

7V

CC_P

3V3

GN

DDB

G2

DBG

3_CT

RL

S1_0

_TX

S1_1

_RX

S0_2

_TX

DA

CV

TG_A

DC

RESE

RVED

S0_3

_CLK

DBG0_CTRL

CDC_

TX_C

TRL

BOO

T

DEB

UG

GER

PO

WER

STA

TUS

LED

EN1

BYP

6

VOUT

4

GND

2

VIN

3

NCA

DJ5

GND 7

MIC

5353

U10

2

100n

C102

GN

D

GN

D

47kR101

27kR104 G

ND

33k

R106

22u

F

C103 G

ND

1kR1

08

J100

VCC

_LEV

ELV

CC_R

EGU

LATO

R

74LV

C1T4

5FW

4-7

VCCA

1VC

CB6

A3

GND

2DI

R5

B4

U10

6V

CC_P

3V3

GN

DDB

G1

CDC_

RXCD

C_TX

DBG3

DBG1_CTRL

DEB

UG

GER

REG

ULA

TOR

REG_ENABLE

REG

_EN

ABL

E

47kR103

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

VCC

_LEV

EL

47kR102

47kR105

SWCL

K

GN

D

47kR100 G

ND

DBG

2

S0_0

_RX

DBG

1_CT

RL

DBG

0_CT

RL

DBG

3 O

PEN

DR

AIN

TAR

GET

AD

JUST

ABL

E R

EGU

LATO

R

SRST

DEB

UG

GER

TES

TPO

INT DBG2_CTRL

VO

FFCD

C_RX

_CTR

L

47kR109

DBG

1

CDC_

TX_C

TRL

CDC_

RX_C

TRL

SWCL

K

REG_ADJUST

DBG2_GPIO

DBG

3_CT

RL

DBG

2_CT

RL

UPD

I

UPD

I

GPI

O

GPI

O

RESE

T

Sign

al

DBG

0

DBG

1

DBG

2

DBG

3

ICSP

Inte

rface

DAT

CLK

GPI

O

MCL

R

DBG

3

CD

C T

X

CD

C R

X

UA

RT R

X

UA

RT T

X

UA

RT R

X

UA

RT T

X

TAR

GET

TAR

GET

1kR1

10

VBUS_ADC

1

23

DM

N65

D8L

FBQ

101

VC

C-

-

ID_S

YS

VOFF

1kR112

VCC

_P3V

3

VTG

_AD

CD

AC

MIC

9416

3

VIN

B2VO

UTA1

VIN

A2

ENC2

GND

C1VO

UTB1

U10

8

GN

D

ID_S

YS

VTG

_EN

VTG_EN

VBUS_ADC

SWD

IO

ID_S

YS

TP10

1G

ND

SWD

IO

VO

FF

47kR111 G

ND

ID P

IN

MC3

6213

F100

VCC

_VBU

S

VCC

_VBU

S

VCC

_VBU

S

J101

VCC

_TA

RGET

47k

R113

Prog

ram

min

g co

nnec

tor f

or

fact

ory

prog

ram

min

g of

D

EBU

GG

ER

MIC

5528

Vi

n 2

5V

to 5

5V

Vout

Fix

ed 3

3V

Imax

500

mA

Dro

pout

260

mV

5

00m

A

PTC

Rese

ttabl

e fu

se

Hol

d cu

rrent

500

mA

Trip

cur

rent

100

0mA

Adj

usta

ble

outp

ut a

nd li

mita

tions

- T

he D

EBU

GG

ER c

an a

djus

t the

out

put v

olta

ge o

f the

regu

lato

r bet

wee

n 1

25V

and

51

V to

the

targ

et

- The

vol

tage

out

put i

s lim

ited

by th

e in

put (

USB

) w

hich

can

var

y be

twee

n 4

40V

to 5

25V

- The

leve

l shi

fters

hav

e a

min

imal

vol

tage

leve

l of 1

65V

and

will

lim

it th

e m

inim

um o

pera

ting

volta

ge a

llow

ed fo

r the

ta

rget

to st

ill a

llow

com

mun

icat

ion

- The

MIC

9416

3 ha

s a m

inim

al v

olta

ge le

vel o

f 17

0V a

nd w

ill li

mit

the

min

imum

vol

tage

del

iver

ed to

the

targ

et

- Firm

war

e co

nfig

urat

ion

will

lim

it th

e vo

ltage

rang

e to

be

with

in th

e th

e ta

rget

spec

ifica

tion

R113

is re

quire

d to

pul

l the

Q

101

gate

to a

def

ined

va

lue

whe

n th

e U

100

is no

t po

wer

ed

J100

Cu

t-stra

p us

ed fo

r ful

l sep

arat

ion

of ta

rget

pow

er fr

om th

e le

vel s

hifte

rs a

nd o

n-bo

ard

regu

lato

rs

- For

cur

rent

mea

sure

men

ts us

ing

an e

xter

nal p

ower

supp

ly t

his s

trap

coul

d be

cut

for m

ore

accu

rate

mea

sure

men

ts L

eaka

ge b

ack

thro

ugh

the

switc

h is

in th

e m

icro

am

pere

rang

e

J101

Th

is is

foot

prin

t for

a 1

x2 1

00m

il pi

tch

pin-

head

er th

at c

an b

e us

ed fo

r eas

y cu

rrent

mea

sure

men

t to

the

targ

et m

icro

cont

rolle

r and

the

LED

Bu

tton

To

use

the

foot

prin

t- C

ut th

e tra

ck b

etw

een

the

hole

s an

d m

ount

a p

in-h

eade

r

MIC

5353

Vi

n 2

6V

to 6

VVo

ut 1

25V

to 5

1V

Imax

500

mA

Dro

pout

(typ

ical

) 50

mV

15

0mA

160

mV

5

00m

AA

ccur

acy

2

initi

alTh

erm

al sh

utdo

wn

and

curre

nt li

mit

Max

imum

out

put v

olta

ge is

lim

ited

by th

e in

put v

olta

ge a

nd th

e dr

opou

t vol

tage

in th

e re

gula

tor

(Vm

ax =

Vin

- dr

opou

t)

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 30

72 Assembly DrawingFigure 7-2 AVR128DA48 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

PAC20002 PAC20001 COC200

PAC20102 PAC20101 COC201

PAC20202 PAC20201 COC202

PAC20301 PAC20302 COC203

PAC20401 PAC20402 COC204

PAC20502

PAC20501 COC205

PAD10002 PAD10001 COD100

PAD20001

PAD20002 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

PAJ20701 PAJ20702 PAJ20705 COJ207

PAJ20801 PAJ20802 PAJ20805 COJ208

PAJ20901 PAJ20902 COJ209

PAJ21002 PAJ21001 COJ210

PAJ21102 PAJ21101 COJ211

PAL20002 PAL20001 COL200

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

PAR20002 PAR20001 COR200

PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203

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

PAU200048 PAU200047 PAU200046 PAU200045 PAU200044 PAU200043 PAU200042 PAU200041 PAU200040 PAU200039 PAU200038 PAU200037 PAU200036 PAU200035 PAU200034 PAU200033 PAU200032 PAU200031 PAU200030 PAU200029 PAU200028 PAU200027 PAU200026 PAU200025 PAU200024 PAU200023 PAU200022 PAU200021 PAU200020 PAU200019 PAU200018 PAU200017 PAU200016 PAU200015 PAU200014 PAU200013

PAU200012 PAU200011 PAU200010 PAU20009 PAU20008 PAU20007 PAU20006 PAU20005 PAU20004 PAU20003 PAU20002 PAU20001

COU200

PAXC20001

PAXC20002

COXC200

Figure 7-3 AVR128DA48 Curiosity Nano Assembly Drawing Bottom

ctR

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20002 PAC20001 COC200

PAC20102 PAC20101 COC201

PAC20202 PAC20201 COC202

PAC20301 PAC20302 COC203

PAC20401 PAC20402 COC204

PAC20502

PAC20501 COC205

PAD10002 PAD10001 COD100

PAD20001

PAD20002 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

PAJ20701 PAJ20702 PAJ20705 COJ207

PAJ20801 PAJ20802 PAJ20805 COJ208

PAJ20901 PAJ20902 COJ209

PAJ21002 PAJ21001 COJ210

PAJ21102 PAJ21101 COJ211

PAL20002 PAL20001 COL200

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

PAR20002 PAR20001 COR200

PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203

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

PAU200048 PAU200047 PAU200046 PAU200045 PAU200044 PAU200043 PAU200042 PAU200041 PAU200040 PAU200039 PAU200038 PAU200037 PAU200036 PAU200035 PAU200034 PAU200033 PAU200032 PAU200031 PAU200030 PAU200029 PAU200028 PAU200027 PAU200026 PAU200025 PAU200024 PAU200023 PAU200022 PAU200021 PAU200020 PAU200019 PAU200018 PAU200017 PAU200016 PAU200015 PAU200014 PAU200013

PAU200012 PAU200011 PAU200010 PAU20009 PAU20008 PAU20007 PAU20006 PAU20005 PAU20004 PAU20003 PAU20002 PAU20001

COU200

PAXC20001

PAXC20002

COXC200

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 31

73 Curiosity Nano Base for Click boardstrade

Figure 7-4 AVR128DA48 Curiosity Nano Pinout Mapping

USB

DEB

UG

GER

AVR1

28D

A48

SW0

LED

0

PS L

EDNC

NC

ID

ID

CDC RX

CDCRX

USART1 TX

PC0

CDC TX

CDCTX

USART1 RX

PC1

DBG1

DBG1

PC6

LED0

DBG2

DBG2

PC7

SW0

PA0

PA0

USART0 TX

PTC XY0

PA1

PA1

USART0 RX

PTC XY1

PC2

PC2

TWI0 SDA

PC3

PC3

TWI0 SCL

PA4

PA4

SPI0 MOSI

PTC XY4

PA5

PA5

SPI0 MISO

PTC XY5

PA6

PA6

SPI0 SCK

PTC XY6

PA7

PA7

SPI0 SS

PTC XY7

GND

GND

PF4

PF4

USART2 TX

PTC XY36

PF5

PF5

USART2 RX

PTC XY37

PF2

PF2

PTC XY34

PF3

PF3

PTC XY35

PB0

PB0

PTC XY8

PB1

PB1

PTC XY9

PB2

PB2

PTC XY10

PB3

PB3

PTC XY11

GND

GND

PC0

PC0

USART1 TX

CDC RX

PC1

PC1

USART1 RX

CDC TX

PC6

PC6

LED0

PC7

PC7

SW0

VBUS

VBUS

VOFF

VOFF

DBG3

DBG3

PF6

DBG0

DBG0

UPDI

GND

GND

VTG

VTG

PD7

PD7

AIN7

PTC XY23

PD6

PD6

AIN6

PTC XY22

PD2

PD2

AIN2

PTC XY18

TCA0 WO2

PD1

PD1

AIN1

PTC XY17

TCA0 WO1

PD0

PD0

AIN0

PTC XY16

TCA0 WO0

PD5

PD5

AIN5

PTC XY21

PD4

PD4

AIN4

PTC XY20

PD3

PD3

AIN3

PTC XY19

GND

GND

PE3

PE3

PTC XY27

PE2

PE2

PTC XY26

PE1

PE1

PTC XY25

PE0

PE0

PTC XY24

PA3

PA3

PTC XY3

PA2

PA2

PTC XY2

PB5

PB5

PTC XY13

PB4

PB4

PTC XY12

GND

GND

PC5

PC5

PC4

PC4

(PF1)

(PF1)

(PTC XY33)

XTAL32K2

(PF0)

(PF0)

(PTC XY32)

XTAL32K1

DEB

UG

GER

AVR1

28D

A48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

Touch

Shared pin

AVR1

28D

A48

Curio

sity

Nan

o

1

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

2

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

3

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

Xpl

aine

d Pr

o Ex

tens

ion

EXT1

12

1920

Curio

sity

Nan

o Ba

sefo

r clic

k bo

ards

TM

PD3

PD0

PD7

PD6

PA7

PA1

PA6

PA0

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

PD4

PD1

PF3

PF2

PE2

PF5

PA6

PF4

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

PD5

PD2

PE1

PE0

PE3

PA1

PA6

PA0

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

ID

GND

PD4

PD5

PF3

PE1

PD1

PD2

PF2

PE3

PC2

PC3

PF5

PF4

PE2

PA4

PA5

PA6

GND

+33V

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 32

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

The block diagram below shows all connections between the debugger and the AVR128DA48 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 7-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 7-6 Details about connecting an external debugger are described in 36 Connecting ExternalDebuggers

Figure 7-5  On-Board Debugger Connections Block Diagram

DEB

UG

GER

TARGETLevel-Shift

PA04PA06PA07PA08PA16PA00PA01

USB

DIR x 5

VCC_P3V3

VBUS

VCC

_LEV

EL

VCC

_TA

RGET

DBG0DBG1DBG2DBG3CDC 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

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 33

Figure 7-6 On-Board Debugger Connection Cut Straps

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

75 Getting Started with IARIAR Embedded Workbenchreg for AVRreg is a proprietary high-efficiency compiler not based on GCC Programming anddebugging of AVR128DA48 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 7-73 In the category Debugger select the Setup tab Select Atmel-ICE as the driver as shown in Figure 7-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 7-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

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 34

Figure 7-7 Select Target Device

Figure 7-8 Select Debugger

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 35

Figure 7-9 Configure Interface

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 36

The Microchip WebsiteMicrochip provides online support via our website at httpwwwmicrochipcom This website is used to make filesand information 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 ServiceMicrochiprsquos 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 httpwwwmicrochipcompcn and follow the registration instructions

Customer SupportUsers 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 httpwwwmicrochipcomsupport

Microchip Devices Code Protection FeatureNote the following details of the code protection feature on Microchip devices

bull Microchip products meet the specification contained in their particular Microchip Data Sheetbull Microchip believes that its family of products is one of the most secure families of its kind on the market today

when used in the intended manner and under normal conditionsbull There are dishonest and possibly illegal methods used to breach the code protection feature All of these

methods to our knowledge require using the Microchip products in a manner outside the operatingspecifications contained in Microchiprsquos Data Sheets Most likely the person doing so is engaged in theft ofintellectual property

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

protection does not mean that we are guaranteeing the product as ldquounbreakablerdquo

Code protection is constantly evolving We at Microchip are committed to continuously improving the code protectionfeatures of our products Attempts to break Microchiprsquos code protection feature may be a violation of the DigitalMillennium Copyright Act If such acts allow unauthorized access to your software or other copyrighted work youmay have a right to sue for relief under that Act

Legal NoticeInformation contained in this publication regarding device applications and the like is provided only for yourconvenience and may be superseded by updates It is your responsibility to ensure that your application meets with

AVR128DA48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 37

your specifications MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHEREXPRESS OR IMPLIED WRITTEN OR ORAL STATUTORY OR OTHERWISE RELATED TO THE INFORMATIONINCLUDING BUT NOT LIMITED TO ITS CONDITION QUALITY PERFORMANCE MERCHANTABILITY ORFITNESS FOR PURPOSE Microchip disclaims all liability arising from this information and its use Use of Microchipdevices in life support andor safety applications is entirely at the buyerrsquos risk and the buyer agrees to defendindemnify and hold harmless Microchip from any and all damages claims suits or expenses resulting from suchuse No licenses are conveyed implicitly or otherwise under any Microchip intellectual property rights unlessotherwise stated

TrademarksThe 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-5760-2

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

AVR128DA48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 38

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupporthttpwwwmicrochipcomsupportWeb AddresshttpwwwmicrochipcomAtlantaDuluth 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 DS50002971A-page 39

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Kit Overview
      • 2 Getting Started
        • 21 Quick Start
        • 22 Design Documentation and Relevant Links
          • 3 Curiosity Nano
            • 31 On-Board Debugger Overview
              • 311 Debugger
              • 312 Virtual Serial Port (CDC)
                • 3121 Overview
                • 3122 Operating System Support
                • 3123 Limitations
                • 3124 Signaling
                • 3125 Advanced Use
                  • 313 Mass Storage Device
                    • 3131 Mass Storage Device Implementation
                    • 3132 Fuse Bytes
                    • 3133 Limitations of Drag-and-Drop Programming
                    • 3134 Special Commands
                      • 314 Data Gateway Interface (DGI)
                        • 3141 Debug GPIO
                        • 3142 Timestamping
                            • 32 Curiosity Nano Standard Pinout
                            • 33 Power Supply
                              • 331 Target Regulator
                              • 332 External Supply
                              • 333 VBUS Output Pin
                              • 334 Power Supply Exceptions
                                • 34 Low Power Measurement
                                • 35 Programming External Microcontrollers
                                  • 351 Supported Devices
                                  • 352 Software Configuration
                                  • 353 Hardware Modifications
                                  • 354 Connecting to External Microcontrollers
                                    • 36 Connecting External Debuggers
                                      • 4 Hardware User Guide
                                        • 41 Connectors
                                          • 411 AVR128DA48 Curiosity Nano Pinout
                                          • 412 Using Pin Headers
                                            • 42 Peripherals
                                              • 421 LED
                                              • 422 Mechanical Switch
                                              • 423 Crystal
                                              • 424 On-Board Debugger Implementation
                                                • 4241 On-Board Debugger Connections
                                                  • 5 Hardware Revision History and Known Issues
                                                    • 51 Identifying Product ID and Revision
                                                    • 52 Revision 3
                                                      • 6 Document Revision History
                                                      • 7 Appendix
                                                        • 71 Schematic
                                                        • 72 Assembly Drawing
                                                        • 73 Curiosity Nano Base for Click boardstrade
                                                        • 74 Disconnecting the On-board Debugger
                                                        • 75 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: AVR128DA48 Curiosity Nano User Guide - Microchip Technologyww1.microchip.com/downloads/en/DeviceDoc/AVR128DA48... · 2020-03-19 · AVR128DA48 Curiosity Nano AVR128DA48 Curiosity

72 Assembly DrawingFigure 7-2 AVR128DA48 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

PAC20002 PAC20001 COC200

PAC20102 PAC20101 COC201

PAC20202 PAC20201 COC202

PAC20301 PAC20302 COC203

PAC20401 PAC20402 COC204

PAC20502

PAC20501 COC205

PAD10002 PAD10001 COD100

PAD20001

PAD20002 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

PAJ20701 PAJ20702 PAJ20705 COJ207

PAJ20801 PAJ20802 PAJ20805 COJ208

PAJ20901 PAJ20902 COJ209

PAJ21002 PAJ21001 COJ210

PAJ21102 PAJ21101 COJ211

PAL20002 PAL20001 COL200

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

PAR20002 PAR20001 COR200

PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203

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

PAU200048 PAU200047 PAU200046 PAU200045 PAU200044 PAU200043 PAU200042 PAU200041 PAU200040 PAU200039 PAU200038 PAU200037 PAU200036 PAU200035 PAU200034 PAU200033 PAU200032 PAU200031 PAU200030 PAU200029 PAU200028 PAU200027 PAU200026 PAU200025 PAU200024 PAU200023 PAU200022 PAU200021 PAU200020 PAU200019 PAU200018 PAU200017 PAU200016 PAU200015 PAU200014 PAU200013

PAU200012 PAU200011 PAU200010 PAU20009 PAU20008 PAU20007 PAU20006 PAU20005 PAU20004 PAU20003 PAU20002 PAU20001

COU200

PAXC20001

PAXC20002

COXC200

Figure 7-3 AVR128DA48 Curiosity Nano Assembly Drawing Bottom

ctR

PAC10001 PAC10002 COC100

PAC10101

PAC10102 COC101 PAC10202 PAC10201 COC102

PAC10302 PAC10301 COC103

PAC10601 PAC10602 COC106 PAC10701 PAC10702 COC107

PAC10801 PAC10802 COC108

PAC20002 PAC20001 COC200

PAC20102 PAC20101 COC201

PAC20202 PAC20201 COC202

PAC20301 PAC20302 COC203

PAC20401 PAC20402 COC204

PAC20502

PAC20501 COC205

PAD10002 PAD10001 COD100

PAD20001

PAD20002 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

PAJ20701 PAJ20702 PAJ20705 COJ207

PAJ20801 PAJ20802 PAJ20805 COJ208

PAJ20901 PAJ20902 COJ209

PAJ21002 PAJ21001 COJ210

PAJ21102 PAJ21101 COJ211

PAL20002 PAL20001 COL200

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

PAR20002 PAR20001 COR200

PAR20201

PAR20202 COR202 PAR20301

PAR20302 COR203

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

PAU200048 PAU200047 PAU200046 PAU200045 PAU200044 PAU200043 PAU200042 PAU200041 PAU200040 PAU200039 PAU200038 PAU200037 PAU200036 PAU200035 PAU200034 PAU200033 PAU200032 PAU200031 PAU200030 PAU200029 PAU200028 PAU200027 PAU200026 PAU200025 PAU200024 PAU200023 PAU200022 PAU200021 PAU200020 PAU200019 PAU200018 PAU200017 PAU200016 PAU200015 PAU200014 PAU200013

PAU200012 PAU200011 PAU200010 PAU20009 PAU20008 PAU20007 PAU20006 PAU20005 PAU20004 PAU20003 PAU20002 PAU20001

COU200

PAXC20001

PAXC20002

COXC200

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 31

73 Curiosity Nano Base for Click boardstrade

Figure 7-4 AVR128DA48 Curiosity Nano Pinout Mapping

USB

DEB

UG

GER

AVR1

28D

A48

SW0

LED

0

PS L

EDNC

NC

ID

ID

CDC RX

CDCRX

USART1 TX

PC0

CDC TX

CDCTX

USART1 RX

PC1

DBG1

DBG1

PC6

LED0

DBG2

DBG2

PC7

SW0

PA0

PA0

USART0 TX

PTC XY0

PA1

PA1

USART0 RX

PTC XY1

PC2

PC2

TWI0 SDA

PC3

PC3

TWI0 SCL

PA4

PA4

SPI0 MOSI

PTC XY4

PA5

PA5

SPI0 MISO

PTC XY5

PA6

PA6

SPI0 SCK

PTC XY6

PA7

PA7

SPI0 SS

PTC XY7

GND

GND

PF4

PF4

USART2 TX

PTC XY36

PF5

PF5

USART2 RX

PTC XY37

PF2

PF2

PTC XY34

PF3

PF3

PTC XY35

PB0

PB0

PTC XY8

PB1

PB1

PTC XY9

PB2

PB2

PTC XY10

PB3

PB3

PTC XY11

GND

GND

PC0

PC0

USART1 TX

CDC RX

PC1

PC1

USART1 RX

CDC TX

PC6

PC6

LED0

PC7

PC7

SW0

VBUS

VBUS

VOFF

VOFF

DBG3

DBG3

PF6

DBG0

DBG0

UPDI

GND

GND

VTG

VTG

PD7

PD7

AIN7

PTC XY23

PD6

PD6

AIN6

PTC XY22

PD2

PD2

AIN2

PTC XY18

TCA0 WO2

PD1

PD1

AIN1

PTC XY17

TCA0 WO1

PD0

PD0

AIN0

PTC XY16

TCA0 WO0

PD5

PD5

AIN5

PTC XY21

PD4

PD4

AIN4

PTC XY20

PD3

PD3

AIN3

PTC XY19

GND

GND

PE3

PE3

PTC XY27

PE2

PE2

PTC XY26

PE1

PE1

PTC XY25

PE0

PE0

PTC XY24

PA3

PA3

PTC XY3

PA2

PA2

PTC XY2

PB5

PB5

PTC XY13

PB4

PB4

PTC XY12

GND

GND

PC5

PC5

PC4

PC4

(PF1)

(PF1)

(PTC XY33)

XTAL32K2

(PF0)

(PF0)

(PTC XY32)

XTAL32K1

DEB

UG

GER

AVR1

28D

A48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

Touch

Shared pin

AVR1

28D

A48

Curio

sity

Nan

o

1

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

2

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

3

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

Xpl

aine

d Pr

o Ex

tens

ion

EXT1

12

1920

Curio

sity

Nan

o Ba

sefo

r clic

k bo

ards

TM

PD3

PD0

PD7

PD6

PA7

PA1

PA6

PA0

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

PD4

PD1

PF3

PF2

PE2

PF5

PA6

PF4

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

PD5

PD2

PE1

PE0

PE3

PA1

PA6

PA0

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

ID

GND

PD4

PD5

PF3

PE1

PD1

PD2

PF2

PE3

PC2

PC3

PF5

PF4

PE2

PA4

PA5

PA6

GND

+33V

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 32

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

The block diagram below shows all connections between the debugger and the AVR128DA48 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 7-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 7-6 Details about connecting an external debugger are described in 36 Connecting ExternalDebuggers

Figure 7-5  On-Board Debugger Connections Block Diagram

DEB

UG

GER

TARGETLevel-Shift

PA04PA06PA07PA08PA16PA00PA01

USB

DIR x 5

VCC_P3V3

VBUS

VCC

_LEV

EL

VCC

_TA

RGET

DBG0DBG1DBG2DBG3CDC 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

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 33

Figure 7-6 On-Board Debugger Connection Cut Straps

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

75 Getting Started with IARIAR Embedded Workbenchreg for AVRreg is a proprietary high-efficiency compiler not based on GCC Programming anddebugging of AVR128DA48 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 7-73 In the category Debugger select the Setup tab Select Atmel-ICE as the driver as shown in Figure 7-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 7-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

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 34

Figure 7-7 Select Target Device

Figure 7-8 Select Debugger

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 35

Figure 7-9 Configure Interface

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 36

The Microchip WebsiteMicrochip provides online support via our website at httpwwwmicrochipcom This website is used to make filesand information 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 ServiceMicrochiprsquos 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 httpwwwmicrochipcompcn and follow the registration instructions

Customer SupportUsers 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 httpwwwmicrochipcomsupport

Microchip Devices Code Protection FeatureNote the following details of the code protection feature on Microchip devices

bull Microchip products meet the specification contained in their particular Microchip Data Sheetbull Microchip believes that its family of products is one of the most secure families of its kind on the market today

when used in the intended manner and under normal conditionsbull There are dishonest and possibly illegal methods used to breach the code protection feature All of these

methods to our knowledge require using the Microchip products in a manner outside the operatingspecifications contained in Microchiprsquos Data Sheets Most likely the person doing so is engaged in theft ofintellectual property

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

protection does not mean that we are guaranteeing the product as ldquounbreakablerdquo

Code protection is constantly evolving We at Microchip are committed to continuously improving the code protectionfeatures of our products Attempts to break Microchiprsquos code protection feature may be a violation of the DigitalMillennium Copyright Act If such acts allow unauthorized access to your software or other copyrighted work youmay have a right to sue for relief under that Act

Legal NoticeInformation contained in this publication regarding device applications and the like is provided only for yourconvenience and may be superseded by updates It is your responsibility to ensure that your application meets with

AVR128DA48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 37

your specifications MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHEREXPRESS OR IMPLIED WRITTEN OR ORAL STATUTORY OR OTHERWISE RELATED TO THE INFORMATIONINCLUDING BUT NOT LIMITED TO ITS CONDITION QUALITY PERFORMANCE MERCHANTABILITY ORFITNESS FOR PURPOSE Microchip disclaims all liability arising from this information and its use Use of Microchipdevices in life support andor safety applications is entirely at the buyerrsquos risk and the buyer agrees to defendindemnify and hold harmless Microchip from any and all damages claims suits or expenses resulting from suchuse No licenses are conveyed implicitly or otherwise under any Microchip intellectual property rights unlessotherwise stated

TrademarksThe 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-5760-2

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

AVR128DA48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 38

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupporthttpwwwmicrochipcomsupportWeb AddresshttpwwwmicrochipcomAtlantaDuluth 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 DS50002971A-page 39

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Kit Overview
      • 2 Getting Started
        • 21 Quick Start
        • 22 Design Documentation and Relevant Links
          • 3 Curiosity Nano
            • 31 On-Board Debugger Overview
              • 311 Debugger
              • 312 Virtual Serial Port (CDC)
                • 3121 Overview
                • 3122 Operating System Support
                • 3123 Limitations
                • 3124 Signaling
                • 3125 Advanced Use
                  • 313 Mass Storage Device
                    • 3131 Mass Storage Device Implementation
                    • 3132 Fuse Bytes
                    • 3133 Limitations of Drag-and-Drop Programming
                    • 3134 Special Commands
                      • 314 Data Gateway Interface (DGI)
                        • 3141 Debug GPIO
                        • 3142 Timestamping
                            • 32 Curiosity Nano Standard Pinout
                            • 33 Power Supply
                              • 331 Target Regulator
                              • 332 External Supply
                              • 333 VBUS Output Pin
                              • 334 Power Supply Exceptions
                                • 34 Low Power Measurement
                                • 35 Programming External Microcontrollers
                                  • 351 Supported Devices
                                  • 352 Software Configuration
                                  • 353 Hardware Modifications
                                  • 354 Connecting to External Microcontrollers
                                    • 36 Connecting External Debuggers
                                      • 4 Hardware User Guide
                                        • 41 Connectors
                                          • 411 AVR128DA48 Curiosity Nano Pinout
                                          • 412 Using Pin Headers
                                            • 42 Peripherals
                                              • 421 LED
                                              • 422 Mechanical Switch
                                              • 423 Crystal
                                              • 424 On-Board Debugger Implementation
                                                • 4241 On-Board Debugger Connections
                                                  • 5 Hardware Revision History and Known Issues
                                                    • 51 Identifying Product ID and Revision
                                                    • 52 Revision 3
                                                      • 6 Document Revision History
                                                      • 7 Appendix
                                                        • 71 Schematic
                                                        • 72 Assembly Drawing
                                                        • 73 Curiosity Nano Base for Click boardstrade
                                                        • 74 Disconnecting the On-board Debugger
                                                        • 75 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: AVR128DA48 Curiosity Nano User Guide - Microchip Technologyww1.microchip.com/downloads/en/DeviceDoc/AVR128DA48... · 2020-03-19 · AVR128DA48 Curiosity Nano AVR128DA48 Curiosity

73 Curiosity Nano Base for Click boardstrade

Figure 7-4 AVR128DA48 Curiosity Nano Pinout Mapping

USB

DEB

UG

GER

AVR1

28D

A48

SW0

LED

0

PS L

EDNC

NC

ID

ID

CDC RX

CDCRX

USART1 TX

PC0

CDC TX

CDCTX

USART1 RX

PC1

DBG1

DBG1

PC6

LED0

DBG2

DBG2

PC7

SW0

PA0

PA0

USART0 TX

PTC XY0

PA1

PA1

USART0 RX

PTC XY1

PC2

PC2

TWI0 SDA

PC3

PC3

TWI0 SCL

PA4

PA4

SPI0 MOSI

PTC XY4

PA5

PA5

SPI0 MISO

PTC XY5

PA6

PA6

SPI0 SCK

PTC XY6

PA7

PA7

SPI0 SS

PTC XY7

GND

GND

PF4

PF4

USART2 TX

PTC XY36

PF5

PF5

USART2 RX

PTC XY37

PF2

PF2

PTC XY34

PF3

PF3

PTC XY35

PB0

PB0

PTC XY8

PB1

PB1

PTC XY9

PB2

PB2

PTC XY10

PB3

PB3

PTC XY11

GND

GND

PC0

PC0

USART1 TX

CDC RX

PC1

PC1

USART1 RX

CDC TX

PC6

PC6

LED0

PC7

PC7

SW0

VBUS

VBUS

VOFF

VOFF

DBG3

DBG3

PF6

DBG0

DBG0

UPDI

GND

GND

VTG

VTG

PD7

PD7

AIN7

PTC XY23

PD6

PD6

AIN6

PTC XY22

PD2

PD2

AIN2

PTC XY18

TCA0 WO2

PD1

PD1

AIN1

PTC XY17

TCA0 WO1

PD0

PD0

AIN0

PTC XY16

TCA0 WO0

PD5

PD5

AIN5

PTC XY21

PD4

PD4

AIN4

PTC XY20

PD3

PD3

AIN3

PTC XY19

GND

GND

PE3

PE3

PTC XY27

PE2

PE2

PTC XY26

PE1

PE1

PTC XY25

PE0

PE0

PTC XY24

PA3

PA3

PTC XY3

PA2

PA2

PTC XY2

PB5

PB5

PTC XY13

PB4

PB4

PTC XY12

GND

GND

PC5

PC5

PC4

PC4

(PF1)

(PF1)

(PTC XY33)

XTAL32K2

(PF0)

(PF0)

(PTC XY32)

XTAL32K1

DEB

UG

GER

AVR1

28D

A48

Analog

Debug

I2C

SPI

UART

Peripheral

Port

PWM

Power

Ground

Touch

Shared pin

AVR1

28D

A48

Curio

sity

Nan

o

1

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

2

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

3

AN

PWM

RST

INT

CSRX

SCK

TXM

ISO

SCL

MO

SISD

A+3

3V

+5V

GN

DG

ND

Xpl

aine

d Pr

o Ex

tens

ion

EXT1

12

1920

Curio

sity

Nan

o Ba

sefo

r clic

k bo

ards

TM

PD3

PD0

PD7

PD6

PA7

PA1

PA6

PA0

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

PD4

PD1

PF3

PF2

PE2

PF5

PA6

PF4

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

PD5

PD2

PE1

PE0

PE3

PA1

PA6

PA0

PA5

PC3

PA4

PC2

+33V

+5V

GND

GND

ID

GND

PD4

PD5

PF3

PE1

PD1

PD2

PF2

PE3

PC2

PC3

PF5

PF4

PE2

PA4

PA5

PA6

GND

+33V

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 32

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

The block diagram below shows all connections between the debugger and the AVR128DA48 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 7-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 7-6 Details about connecting an external debugger are described in 36 Connecting ExternalDebuggers

Figure 7-5  On-Board Debugger Connections Block Diagram

DEB

UG

GER

TARGETLevel-Shift

PA04PA06PA07PA08PA16PA00PA01

USB

DIR x 5

VCC_P3V3

VBUS

VCC

_LEV

EL

VCC

_TA

RGET

DBG0DBG1DBG2DBG3CDC 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

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 33

Figure 7-6 On-Board Debugger Connection Cut Straps

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

75 Getting Started with IARIAR Embedded Workbenchreg for AVRreg is a proprietary high-efficiency compiler not based on GCC Programming anddebugging of AVR128DA48 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 7-73 In the category Debugger select the Setup tab Select Atmel-ICE as the driver as shown in Figure 7-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 7-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

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 34

Figure 7-7 Select Target Device

Figure 7-8 Select Debugger

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 35

Figure 7-9 Configure Interface

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 36

The Microchip WebsiteMicrochip provides online support via our website at httpwwwmicrochipcom This website is used to make filesand information 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 ServiceMicrochiprsquos 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 httpwwwmicrochipcompcn and follow the registration instructions

Customer SupportUsers 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 httpwwwmicrochipcomsupport

Microchip Devices Code Protection FeatureNote the following details of the code protection feature on Microchip devices

bull Microchip products meet the specification contained in their particular Microchip Data Sheetbull Microchip believes that its family of products is one of the most secure families of its kind on the market today

when used in the intended manner and under normal conditionsbull There are dishonest and possibly illegal methods used to breach the code protection feature All of these

methods to our knowledge require using the Microchip products in a manner outside the operatingspecifications contained in Microchiprsquos Data Sheets Most likely the person doing so is engaged in theft ofintellectual property

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

protection does not mean that we are guaranteeing the product as ldquounbreakablerdquo

Code protection is constantly evolving We at Microchip are committed to continuously improving the code protectionfeatures of our products Attempts to break Microchiprsquos code protection feature may be a violation of the DigitalMillennium Copyright Act If such acts allow unauthorized access to your software or other copyrighted work youmay have a right to sue for relief under that Act

Legal NoticeInformation contained in this publication regarding device applications and the like is provided only for yourconvenience and may be superseded by updates It is your responsibility to ensure that your application meets with

AVR128DA48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 37

your specifications MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHEREXPRESS OR IMPLIED WRITTEN OR ORAL STATUTORY OR OTHERWISE RELATED TO THE INFORMATIONINCLUDING BUT NOT LIMITED TO ITS CONDITION QUALITY PERFORMANCE MERCHANTABILITY ORFITNESS FOR PURPOSE Microchip disclaims all liability arising from this information and its use Use of Microchipdevices in life support andor safety applications is entirely at the buyerrsquos risk and the buyer agrees to defendindemnify and hold harmless Microchip from any and all damages claims suits or expenses resulting from suchuse No licenses are conveyed implicitly or otherwise under any Microchip intellectual property rights unlessotherwise stated

TrademarksThe 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-5760-2

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

AVR128DA48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 38

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupporthttpwwwmicrochipcomsupportWeb AddresshttpwwwmicrochipcomAtlantaDuluth 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 DS50002971A-page 39

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Kit Overview
      • 2 Getting Started
        • 21 Quick Start
        • 22 Design Documentation and Relevant Links
          • 3 Curiosity Nano
            • 31 On-Board Debugger Overview
              • 311 Debugger
              • 312 Virtual Serial Port (CDC)
                • 3121 Overview
                • 3122 Operating System Support
                • 3123 Limitations
                • 3124 Signaling
                • 3125 Advanced Use
                  • 313 Mass Storage Device
                    • 3131 Mass Storage Device Implementation
                    • 3132 Fuse Bytes
                    • 3133 Limitations of Drag-and-Drop Programming
                    • 3134 Special Commands
                      • 314 Data Gateway Interface (DGI)
                        • 3141 Debug GPIO
                        • 3142 Timestamping
                            • 32 Curiosity Nano Standard Pinout
                            • 33 Power Supply
                              • 331 Target Regulator
                              • 332 External Supply
                              • 333 VBUS Output Pin
                              • 334 Power Supply Exceptions
                                • 34 Low Power Measurement
                                • 35 Programming External Microcontrollers
                                  • 351 Supported Devices
                                  • 352 Software Configuration
                                  • 353 Hardware Modifications
                                  • 354 Connecting to External Microcontrollers
                                    • 36 Connecting External Debuggers
                                      • 4 Hardware User Guide
                                        • 41 Connectors
                                          • 411 AVR128DA48 Curiosity Nano Pinout
                                          • 412 Using Pin Headers
                                            • 42 Peripherals
                                              • 421 LED
                                              • 422 Mechanical Switch
                                              • 423 Crystal
                                              • 424 On-Board Debugger Implementation
                                                • 4241 On-Board Debugger Connections
                                                  • 5 Hardware Revision History and Known Issues
                                                    • 51 Identifying Product ID and Revision
                                                    • 52 Revision 3
                                                      • 6 Document Revision History
                                                      • 7 Appendix
                                                        • 71 Schematic
                                                        • 72 Assembly Drawing
                                                        • 73 Curiosity Nano Base for Click boardstrade
                                                        • 74 Disconnecting the On-board Debugger
                                                        • 75 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: AVR128DA48 Curiosity Nano User Guide - Microchip Technologyww1.microchip.com/downloads/en/DeviceDoc/AVR128DA48... · 2020-03-19 · AVR128DA48 Curiosity Nano AVR128DA48 Curiosity

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

The block diagram below shows all connections between the debugger and the AVR128DA48 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 7-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 7-6 Details about connecting an external debugger are described in 36 Connecting ExternalDebuggers

Figure 7-5  On-Board Debugger Connections Block Diagram

DEB

UG

GER

TARGETLevel-Shift

PA04PA06PA07PA08PA16PA00PA01

USB

DIR x 5

VCC_P3V3

VBUS

VCC

_LEV

EL

VCC

_TA

RGET

DBG0DBG1DBG2DBG3CDC 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

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 33

Figure 7-6 On-Board Debugger Connection Cut Straps

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

75 Getting Started with IARIAR Embedded Workbenchreg for AVRreg is a proprietary high-efficiency compiler not based on GCC Programming anddebugging of AVR128DA48 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 7-73 In the category Debugger select the Setup tab Select Atmel-ICE as the driver as shown in Figure 7-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 7-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

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 34

Figure 7-7 Select Target Device

Figure 7-8 Select Debugger

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 35

Figure 7-9 Configure Interface

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 36

The Microchip WebsiteMicrochip provides online support via our website at httpwwwmicrochipcom This website is used to make filesand information 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 ServiceMicrochiprsquos 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 httpwwwmicrochipcompcn and follow the registration instructions

Customer SupportUsers 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 httpwwwmicrochipcomsupport

Microchip Devices Code Protection FeatureNote the following details of the code protection feature on Microchip devices

bull Microchip products meet the specification contained in their particular Microchip Data Sheetbull Microchip believes that its family of products is one of the most secure families of its kind on the market today

when used in the intended manner and under normal conditionsbull There are dishonest and possibly illegal methods used to breach the code protection feature All of these

methods to our knowledge require using the Microchip products in a manner outside the operatingspecifications contained in Microchiprsquos Data Sheets Most likely the person doing so is engaged in theft ofintellectual property

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

protection does not mean that we are guaranteeing the product as ldquounbreakablerdquo

Code protection is constantly evolving We at Microchip are committed to continuously improving the code protectionfeatures of our products Attempts to break Microchiprsquos code protection feature may be a violation of the DigitalMillennium Copyright Act If such acts allow unauthorized access to your software or other copyrighted work youmay have a right to sue for relief under that Act

Legal NoticeInformation contained in this publication regarding device applications and the like is provided only for yourconvenience and may be superseded by updates It is your responsibility to ensure that your application meets with

AVR128DA48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 37

your specifications MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHEREXPRESS OR IMPLIED WRITTEN OR ORAL STATUTORY OR OTHERWISE RELATED TO THE INFORMATIONINCLUDING BUT NOT LIMITED TO ITS CONDITION QUALITY PERFORMANCE MERCHANTABILITY ORFITNESS FOR PURPOSE Microchip disclaims all liability arising from this information and its use Use of Microchipdevices in life support andor safety applications is entirely at the buyerrsquos risk and the buyer agrees to defendindemnify and hold harmless Microchip from any and all damages claims suits or expenses resulting from suchuse No licenses are conveyed implicitly or otherwise under any Microchip intellectual property rights unlessotherwise stated

TrademarksThe 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-5760-2

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

AVR128DA48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 38

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupporthttpwwwmicrochipcomsupportWeb AddresshttpwwwmicrochipcomAtlantaDuluth 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 DS50002971A-page 39

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Kit Overview
      • 2 Getting Started
        • 21 Quick Start
        • 22 Design Documentation and Relevant Links
          • 3 Curiosity Nano
            • 31 On-Board Debugger Overview
              • 311 Debugger
              • 312 Virtual Serial Port (CDC)
                • 3121 Overview
                • 3122 Operating System Support
                • 3123 Limitations
                • 3124 Signaling
                • 3125 Advanced Use
                  • 313 Mass Storage Device
                    • 3131 Mass Storage Device Implementation
                    • 3132 Fuse Bytes
                    • 3133 Limitations of Drag-and-Drop Programming
                    • 3134 Special Commands
                      • 314 Data Gateway Interface (DGI)
                        • 3141 Debug GPIO
                        • 3142 Timestamping
                            • 32 Curiosity Nano Standard Pinout
                            • 33 Power Supply
                              • 331 Target Regulator
                              • 332 External Supply
                              • 333 VBUS Output Pin
                              • 334 Power Supply Exceptions
                                • 34 Low Power Measurement
                                • 35 Programming External Microcontrollers
                                  • 351 Supported Devices
                                  • 352 Software Configuration
                                  • 353 Hardware Modifications
                                  • 354 Connecting to External Microcontrollers
                                    • 36 Connecting External Debuggers
                                      • 4 Hardware User Guide
                                        • 41 Connectors
                                          • 411 AVR128DA48 Curiosity Nano Pinout
                                          • 412 Using Pin Headers
                                            • 42 Peripherals
                                              • 421 LED
                                              • 422 Mechanical Switch
                                              • 423 Crystal
                                              • 424 On-Board Debugger Implementation
                                                • 4241 On-Board Debugger Connections
                                                  • 5 Hardware Revision History and Known Issues
                                                    • 51 Identifying Product ID and Revision
                                                    • 52 Revision 3
                                                      • 6 Document Revision History
                                                      • 7 Appendix
                                                        • 71 Schematic
                                                        • 72 Assembly Drawing
                                                        • 73 Curiosity Nano Base for Click boardstrade
                                                        • 74 Disconnecting the On-board Debugger
                                                        • 75 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: AVR128DA48 Curiosity Nano User Guide - Microchip Technologyww1.microchip.com/downloads/en/DeviceDoc/AVR128DA48... · 2020-03-19 · AVR128DA48 Curiosity Nano AVR128DA48 Curiosity

Figure 7-6 On-Board Debugger Connection Cut Straps

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

75 Getting Started with IARIAR Embedded Workbenchreg for AVRreg is a proprietary high-efficiency compiler not based on GCC Programming anddebugging of AVR128DA48 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 7-73 In the category Debugger select the Setup tab Select Atmel-ICE as the driver as shown in Figure 7-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 7-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

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 34

Figure 7-7 Select Target Device

Figure 7-8 Select Debugger

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 35

Figure 7-9 Configure Interface

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 36

The Microchip WebsiteMicrochip provides online support via our website at httpwwwmicrochipcom This website is used to make filesand information 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 ServiceMicrochiprsquos 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 httpwwwmicrochipcompcn and follow the registration instructions

Customer SupportUsers 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 httpwwwmicrochipcomsupport

Microchip Devices Code Protection FeatureNote the following details of the code protection feature on Microchip devices

bull Microchip products meet the specification contained in their particular Microchip Data Sheetbull Microchip believes that its family of products is one of the most secure families of its kind on the market today

when used in the intended manner and under normal conditionsbull There are dishonest and possibly illegal methods used to breach the code protection feature All of these

methods to our knowledge require using the Microchip products in a manner outside the operatingspecifications contained in Microchiprsquos Data Sheets Most likely the person doing so is engaged in theft ofintellectual property

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

protection does not mean that we are guaranteeing the product as ldquounbreakablerdquo

Code protection is constantly evolving We at Microchip are committed to continuously improving the code protectionfeatures of our products Attempts to break Microchiprsquos code protection feature may be a violation of the DigitalMillennium Copyright Act If such acts allow unauthorized access to your software or other copyrighted work youmay have a right to sue for relief under that Act

Legal NoticeInformation contained in this publication regarding device applications and the like is provided only for yourconvenience and may be superseded by updates It is your responsibility to ensure that your application meets with

AVR128DA48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 37

your specifications MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHEREXPRESS OR IMPLIED WRITTEN OR ORAL STATUTORY OR OTHERWISE RELATED TO THE INFORMATIONINCLUDING BUT NOT LIMITED TO ITS CONDITION QUALITY PERFORMANCE MERCHANTABILITY ORFITNESS FOR PURPOSE Microchip disclaims all liability arising from this information and its use Use of Microchipdevices in life support andor safety applications is entirely at the buyerrsquos risk and the buyer agrees to defendindemnify and hold harmless Microchip from any and all damages claims suits or expenses resulting from suchuse No licenses are conveyed implicitly or otherwise under any Microchip intellectual property rights unlessotherwise stated

TrademarksThe 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-5760-2

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

AVR128DA48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 38

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupporthttpwwwmicrochipcomsupportWeb AddresshttpwwwmicrochipcomAtlantaDuluth 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 DS50002971A-page 39

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Kit Overview
      • 2 Getting Started
        • 21 Quick Start
        • 22 Design Documentation and Relevant Links
          • 3 Curiosity Nano
            • 31 On-Board Debugger Overview
              • 311 Debugger
              • 312 Virtual Serial Port (CDC)
                • 3121 Overview
                • 3122 Operating System Support
                • 3123 Limitations
                • 3124 Signaling
                • 3125 Advanced Use
                  • 313 Mass Storage Device
                    • 3131 Mass Storage Device Implementation
                    • 3132 Fuse Bytes
                    • 3133 Limitations of Drag-and-Drop Programming
                    • 3134 Special Commands
                      • 314 Data Gateway Interface (DGI)
                        • 3141 Debug GPIO
                        • 3142 Timestamping
                            • 32 Curiosity Nano Standard Pinout
                            • 33 Power Supply
                              • 331 Target Regulator
                              • 332 External Supply
                              • 333 VBUS Output Pin
                              • 334 Power Supply Exceptions
                                • 34 Low Power Measurement
                                • 35 Programming External Microcontrollers
                                  • 351 Supported Devices
                                  • 352 Software Configuration
                                  • 353 Hardware Modifications
                                  • 354 Connecting to External Microcontrollers
                                    • 36 Connecting External Debuggers
                                      • 4 Hardware User Guide
                                        • 41 Connectors
                                          • 411 AVR128DA48 Curiosity Nano Pinout
                                          • 412 Using Pin Headers
                                            • 42 Peripherals
                                              • 421 LED
                                              • 422 Mechanical Switch
                                              • 423 Crystal
                                              • 424 On-Board Debugger Implementation
                                                • 4241 On-Board Debugger Connections
                                                  • 5 Hardware Revision History and Known Issues
                                                    • 51 Identifying Product ID and Revision
                                                    • 52 Revision 3
                                                      • 6 Document Revision History
                                                      • 7 Appendix
                                                        • 71 Schematic
                                                        • 72 Assembly Drawing
                                                        • 73 Curiosity Nano Base for Click boardstrade
                                                        • 74 Disconnecting the On-board Debugger
                                                        • 75 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: AVR128DA48 Curiosity Nano User Guide - Microchip Technologyww1.microchip.com/downloads/en/DeviceDoc/AVR128DA48... · 2020-03-19 · AVR128DA48 Curiosity Nano AVR128DA48 Curiosity

Figure 7-7 Select Target Device

Figure 7-8 Select Debugger

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 35

Figure 7-9 Configure Interface

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 36

The Microchip WebsiteMicrochip provides online support via our website at httpwwwmicrochipcom This website is used to make filesand information 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 ServiceMicrochiprsquos 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 httpwwwmicrochipcompcn and follow the registration instructions

Customer SupportUsers 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 httpwwwmicrochipcomsupport

Microchip Devices Code Protection FeatureNote the following details of the code protection feature on Microchip devices

bull Microchip products meet the specification contained in their particular Microchip Data Sheetbull Microchip believes that its family of products is one of the most secure families of its kind on the market today

when used in the intended manner and under normal conditionsbull There are dishonest and possibly illegal methods used to breach the code protection feature All of these

methods to our knowledge require using the Microchip products in a manner outside the operatingspecifications contained in Microchiprsquos Data Sheets Most likely the person doing so is engaged in theft ofintellectual property

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

protection does not mean that we are guaranteeing the product as ldquounbreakablerdquo

Code protection is constantly evolving We at Microchip are committed to continuously improving the code protectionfeatures of our products Attempts to break Microchiprsquos code protection feature may be a violation of the DigitalMillennium Copyright Act If such acts allow unauthorized access to your software or other copyrighted work youmay have a right to sue for relief under that Act

Legal NoticeInformation contained in this publication regarding device applications and the like is provided only for yourconvenience and may be superseded by updates It is your responsibility to ensure that your application meets with

AVR128DA48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 37

your specifications MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHEREXPRESS OR IMPLIED WRITTEN OR ORAL STATUTORY OR OTHERWISE RELATED TO THE INFORMATIONINCLUDING BUT NOT LIMITED TO ITS CONDITION QUALITY PERFORMANCE MERCHANTABILITY ORFITNESS FOR PURPOSE Microchip disclaims all liability arising from this information and its use Use of Microchipdevices in life support andor safety applications is entirely at the buyerrsquos risk and the buyer agrees to defendindemnify and hold harmless Microchip from any and all damages claims suits or expenses resulting from suchuse No licenses are conveyed implicitly or otherwise under any Microchip intellectual property rights unlessotherwise stated

TrademarksThe 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-5760-2

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

AVR128DA48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 38

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupporthttpwwwmicrochipcomsupportWeb AddresshttpwwwmicrochipcomAtlantaDuluth 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 DS50002971A-page 39

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Kit Overview
      • 2 Getting Started
        • 21 Quick Start
        • 22 Design Documentation and Relevant Links
          • 3 Curiosity Nano
            • 31 On-Board Debugger Overview
              • 311 Debugger
              • 312 Virtual Serial Port (CDC)
                • 3121 Overview
                • 3122 Operating System Support
                • 3123 Limitations
                • 3124 Signaling
                • 3125 Advanced Use
                  • 313 Mass Storage Device
                    • 3131 Mass Storage Device Implementation
                    • 3132 Fuse Bytes
                    • 3133 Limitations of Drag-and-Drop Programming
                    • 3134 Special Commands
                      • 314 Data Gateway Interface (DGI)
                        • 3141 Debug GPIO
                        • 3142 Timestamping
                            • 32 Curiosity Nano Standard Pinout
                            • 33 Power Supply
                              • 331 Target Regulator
                              • 332 External Supply
                              • 333 VBUS Output Pin
                              • 334 Power Supply Exceptions
                                • 34 Low Power Measurement
                                • 35 Programming External Microcontrollers
                                  • 351 Supported Devices
                                  • 352 Software Configuration
                                  • 353 Hardware Modifications
                                  • 354 Connecting to External Microcontrollers
                                    • 36 Connecting External Debuggers
                                      • 4 Hardware User Guide
                                        • 41 Connectors
                                          • 411 AVR128DA48 Curiosity Nano Pinout
                                          • 412 Using Pin Headers
                                            • 42 Peripherals
                                              • 421 LED
                                              • 422 Mechanical Switch
                                              • 423 Crystal
                                              • 424 On-Board Debugger Implementation
                                                • 4241 On-Board Debugger Connections
                                                  • 5 Hardware Revision History and Known Issues
                                                    • 51 Identifying Product ID and Revision
                                                    • 52 Revision 3
                                                      • 6 Document Revision History
                                                      • 7 Appendix
                                                        • 71 Schematic
                                                        • 72 Assembly Drawing
                                                        • 73 Curiosity Nano Base for Click boardstrade
                                                        • 74 Disconnecting the On-board Debugger
                                                        • 75 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: AVR128DA48 Curiosity Nano User Guide - Microchip Technologyww1.microchip.com/downloads/en/DeviceDoc/AVR128DA48... · 2020-03-19 · AVR128DA48 Curiosity Nano AVR128DA48 Curiosity

Figure 7-9 Configure Interface

AVR128DA48 Curiosity NanoAppendix

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 36

The Microchip WebsiteMicrochip provides online support via our website at httpwwwmicrochipcom This website is used to make filesand information 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 ServiceMicrochiprsquos 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 httpwwwmicrochipcompcn and follow the registration instructions

Customer SupportUsers 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 httpwwwmicrochipcomsupport

Microchip Devices Code Protection FeatureNote the following details of the code protection feature on Microchip devices

bull Microchip products meet the specification contained in their particular Microchip Data Sheetbull Microchip believes that its family of products is one of the most secure families of its kind on the market today

when used in the intended manner and under normal conditionsbull There are dishonest and possibly illegal methods used to breach the code protection feature All of these

methods to our knowledge require using the Microchip products in a manner outside the operatingspecifications contained in Microchiprsquos Data Sheets Most likely the person doing so is engaged in theft ofintellectual property

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

protection does not mean that we are guaranteeing the product as ldquounbreakablerdquo

Code protection is constantly evolving We at Microchip are committed to continuously improving the code protectionfeatures of our products Attempts to break Microchiprsquos code protection feature may be a violation of the DigitalMillennium Copyright Act If such acts allow unauthorized access to your software or other copyrighted work youmay have a right to sue for relief under that Act

Legal NoticeInformation contained in this publication regarding device applications and the like is provided only for yourconvenience and may be superseded by updates It is your responsibility to ensure that your application meets with

AVR128DA48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 37

your specifications MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHEREXPRESS OR IMPLIED WRITTEN OR ORAL STATUTORY OR OTHERWISE RELATED TO THE INFORMATIONINCLUDING BUT NOT LIMITED TO ITS CONDITION QUALITY PERFORMANCE MERCHANTABILITY ORFITNESS FOR PURPOSE Microchip disclaims all liability arising from this information and its use Use of Microchipdevices in life support andor safety applications is entirely at the buyerrsquos risk and the buyer agrees to defendindemnify and hold harmless Microchip from any and all damages claims suits or expenses resulting from suchuse No licenses are conveyed implicitly or otherwise under any Microchip intellectual property rights unlessotherwise stated

TrademarksThe 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-5760-2

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

AVR128DA48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 38

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupporthttpwwwmicrochipcomsupportWeb AddresshttpwwwmicrochipcomAtlantaDuluth 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 DS50002971A-page 39

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Kit Overview
      • 2 Getting Started
        • 21 Quick Start
        • 22 Design Documentation and Relevant Links
          • 3 Curiosity Nano
            • 31 On-Board Debugger Overview
              • 311 Debugger
              • 312 Virtual Serial Port (CDC)
                • 3121 Overview
                • 3122 Operating System Support
                • 3123 Limitations
                • 3124 Signaling
                • 3125 Advanced Use
                  • 313 Mass Storage Device
                    • 3131 Mass Storage Device Implementation
                    • 3132 Fuse Bytes
                    • 3133 Limitations of Drag-and-Drop Programming
                    • 3134 Special Commands
                      • 314 Data Gateway Interface (DGI)
                        • 3141 Debug GPIO
                        • 3142 Timestamping
                            • 32 Curiosity Nano Standard Pinout
                            • 33 Power Supply
                              • 331 Target Regulator
                              • 332 External Supply
                              • 333 VBUS Output Pin
                              • 334 Power Supply Exceptions
                                • 34 Low Power Measurement
                                • 35 Programming External Microcontrollers
                                  • 351 Supported Devices
                                  • 352 Software Configuration
                                  • 353 Hardware Modifications
                                  • 354 Connecting to External Microcontrollers
                                    • 36 Connecting External Debuggers
                                      • 4 Hardware User Guide
                                        • 41 Connectors
                                          • 411 AVR128DA48 Curiosity Nano Pinout
                                          • 412 Using Pin Headers
                                            • 42 Peripherals
                                              • 421 LED
                                              • 422 Mechanical Switch
                                              • 423 Crystal
                                              • 424 On-Board Debugger Implementation
                                                • 4241 On-Board Debugger Connections
                                                  • 5 Hardware Revision History and Known Issues
                                                    • 51 Identifying Product ID and Revision
                                                    • 52 Revision 3
                                                      • 6 Document Revision History
                                                      • 7 Appendix
                                                        • 71 Schematic
                                                        • 72 Assembly Drawing
                                                        • 73 Curiosity Nano Base for Click boardstrade
                                                        • 74 Disconnecting the On-board Debugger
                                                        • 75 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: AVR128DA48 Curiosity Nano User Guide - Microchip Technologyww1.microchip.com/downloads/en/DeviceDoc/AVR128DA48... · 2020-03-19 · AVR128DA48 Curiosity Nano AVR128DA48 Curiosity

The Microchip WebsiteMicrochip provides online support via our website at httpwwwmicrochipcom This website is used to make filesand information 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 ServiceMicrochiprsquos 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 httpwwwmicrochipcompcn and follow the registration instructions

Customer SupportUsers 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 httpwwwmicrochipcomsupport

Microchip Devices Code Protection FeatureNote the following details of the code protection feature on Microchip devices

bull Microchip products meet the specification contained in their particular Microchip Data Sheetbull Microchip believes that its family of products is one of the most secure families of its kind on the market today

when used in the intended manner and under normal conditionsbull There are dishonest and possibly illegal methods used to breach the code protection feature All of these

methods to our knowledge require using the Microchip products in a manner outside the operatingspecifications contained in Microchiprsquos Data Sheets Most likely the person doing so is engaged in theft ofintellectual property

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

protection does not mean that we are guaranteeing the product as ldquounbreakablerdquo

Code protection is constantly evolving We at Microchip are committed to continuously improving the code protectionfeatures of our products Attempts to break Microchiprsquos code protection feature may be a violation of the DigitalMillennium Copyright Act If such acts allow unauthorized access to your software or other copyrighted work youmay have a right to sue for relief under that Act

Legal NoticeInformation contained in this publication regarding device applications and the like is provided only for yourconvenience and may be superseded by updates It is your responsibility to ensure that your application meets with

AVR128DA48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 37

your specifications MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHEREXPRESS OR IMPLIED WRITTEN OR ORAL STATUTORY OR OTHERWISE RELATED TO THE INFORMATIONINCLUDING BUT NOT LIMITED TO ITS CONDITION QUALITY PERFORMANCE MERCHANTABILITY ORFITNESS FOR PURPOSE Microchip disclaims all liability arising from this information and its use Use of Microchipdevices in life support andor safety applications is entirely at the buyerrsquos risk and the buyer agrees to defendindemnify and hold harmless Microchip from any and all damages claims suits or expenses resulting from suchuse No licenses are conveyed implicitly or otherwise under any Microchip intellectual property rights unlessotherwise stated

TrademarksThe 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-5760-2

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

AVR128DA48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 38

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupporthttpwwwmicrochipcomsupportWeb AddresshttpwwwmicrochipcomAtlantaDuluth 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 DS50002971A-page 39

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Kit Overview
      • 2 Getting Started
        • 21 Quick Start
        • 22 Design Documentation and Relevant Links
          • 3 Curiosity Nano
            • 31 On-Board Debugger Overview
              • 311 Debugger
              • 312 Virtual Serial Port (CDC)
                • 3121 Overview
                • 3122 Operating System Support
                • 3123 Limitations
                • 3124 Signaling
                • 3125 Advanced Use
                  • 313 Mass Storage Device
                    • 3131 Mass Storage Device Implementation
                    • 3132 Fuse Bytes
                    • 3133 Limitations of Drag-and-Drop Programming
                    • 3134 Special Commands
                      • 314 Data Gateway Interface (DGI)
                        • 3141 Debug GPIO
                        • 3142 Timestamping
                            • 32 Curiosity Nano Standard Pinout
                            • 33 Power Supply
                              • 331 Target Regulator
                              • 332 External Supply
                              • 333 VBUS Output Pin
                              • 334 Power Supply Exceptions
                                • 34 Low Power Measurement
                                • 35 Programming External Microcontrollers
                                  • 351 Supported Devices
                                  • 352 Software Configuration
                                  • 353 Hardware Modifications
                                  • 354 Connecting to External Microcontrollers
                                    • 36 Connecting External Debuggers
                                      • 4 Hardware User Guide
                                        • 41 Connectors
                                          • 411 AVR128DA48 Curiosity Nano Pinout
                                          • 412 Using Pin Headers
                                            • 42 Peripherals
                                              • 421 LED
                                              • 422 Mechanical Switch
                                              • 423 Crystal
                                              • 424 On-Board Debugger Implementation
                                                • 4241 On-Board Debugger Connections
                                                  • 5 Hardware Revision History and Known Issues
                                                    • 51 Identifying Product ID and Revision
                                                    • 52 Revision 3
                                                      • 6 Document Revision History
                                                      • 7 Appendix
                                                        • 71 Schematic
                                                        • 72 Assembly Drawing
                                                        • 73 Curiosity Nano Base for Click boardstrade
                                                        • 74 Disconnecting the On-board Debugger
                                                        • 75 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: AVR128DA48 Curiosity Nano User Guide - Microchip Technologyww1.microchip.com/downloads/en/DeviceDoc/AVR128DA48... · 2020-03-19 · AVR128DA48 Curiosity Nano AVR128DA48 Curiosity

your specifications MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHEREXPRESS OR IMPLIED WRITTEN OR ORAL STATUTORY OR OTHERWISE RELATED TO THE INFORMATIONINCLUDING BUT NOT LIMITED TO ITS CONDITION QUALITY PERFORMANCE MERCHANTABILITY ORFITNESS FOR PURPOSE Microchip disclaims all liability arising from this information and its use Use of Microchipdevices in life support andor safety applications is entirely at the buyerrsquos risk and the buyer agrees to defendindemnify and hold harmless Microchip from any and all damages claims suits or expenses resulting from suchuse No licenses are conveyed implicitly or otherwise under any Microchip intellectual property rights unlessotherwise stated

TrademarksThe 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-5760-2

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

AVR128DA48 Curiosity Nano

copy 2020 Microchip Technology Inc User Guide DS50002971A-page 38

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupporthttpwwwmicrochipcomsupportWeb AddresshttpwwwmicrochipcomAtlantaDuluth 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 DS50002971A-page 39

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Kit Overview
      • 2 Getting Started
        • 21 Quick Start
        • 22 Design Documentation and Relevant Links
          • 3 Curiosity Nano
            • 31 On-Board Debugger Overview
              • 311 Debugger
              • 312 Virtual Serial Port (CDC)
                • 3121 Overview
                • 3122 Operating System Support
                • 3123 Limitations
                • 3124 Signaling
                • 3125 Advanced Use
                  • 313 Mass Storage Device
                    • 3131 Mass Storage Device Implementation
                    • 3132 Fuse Bytes
                    • 3133 Limitations of Drag-and-Drop Programming
                    • 3134 Special Commands
                      • 314 Data Gateway Interface (DGI)
                        • 3141 Debug GPIO
                        • 3142 Timestamping
                            • 32 Curiosity Nano Standard Pinout
                            • 33 Power Supply
                              • 331 Target Regulator
                              • 332 External Supply
                              • 333 VBUS Output Pin
                              • 334 Power Supply Exceptions
                                • 34 Low Power Measurement
                                • 35 Programming External Microcontrollers
                                  • 351 Supported Devices
                                  • 352 Software Configuration
                                  • 353 Hardware Modifications
                                  • 354 Connecting to External Microcontrollers
                                    • 36 Connecting External Debuggers
                                      • 4 Hardware User Guide
                                        • 41 Connectors
                                          • 411 AVR128DA48 Curiosity Nano Pinout
                                          • 412 Using Pin Headers
                                            • 42 Peripherals
                                              • 421 LED
                                              • 422 Mechanical Switch
                                              • 423 Crystal
                                              • 424 On-Board Debugger Implementation
                                                • 4241 On-Board Debugger Connections
                                                  • 5 Hardware Revision History and Known Issues
                                                    • 51 Identifying Product ID and Revision
                                                    • 52 Revision 3
                                                      • 6 Document Revision History
                                                      • 7 Appendix
                                                        • 71 Schematic
                                                        • 72 Assembly Drawing
                                                        • 73 Curiosity Nano Base for Click boardstrade
                                                        • 74 Disconnecting the On-board Debugger
                                                        • 75 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: AVR128DA48 Curiosity Nano User Guide - Microchip Technologyww1.microchip.com/downloads/en/DeviceDoc/AVR128DA48... · 2020-03-19 · AVR128DA48 Curiosity Nano AVR128DA48 Curiosity

AMERICAS ASIAPACIFIC ASIAPACIFIC EUROPECorporate Office2355 West Chandler BlvdChandler AZ 85224-6199Tel 480-792-7200Fax 480-792-7277Technical SupporthttpwwwmicrochipcomsupportWeb AddresshttpwwwmicrochipcomAtlantaDuluth 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 DS50002971A-page 39

  • Preface
  • Table of Contents
  • 1 Introduction
    • 11 Features
    • 12 Kit Overview
      • 2 Getting Started
        • 21 Quick Start
        • 22 Design Documentation and Relevant Links
          • 3 Curiosity Nano
            • 31 On-Board Debugger Overview
              • 311 Debugger
              • 312 Virtual Serial Port (CDC)
                • 3121 Overview
                • 3122 Operating System Support
                • 3123 Limitations
                • 3124 Signaling
                • 3125 Advanced Use
                  • 313 Mass Storage Device
                    • 3131 Mass Storage Device Implementation
                    • 3132 Fuse Bytes
                    • 3133 Limitations of Drag-and-Drop Programming
                    • 3134 Special Commands
                      • 314 Data Gateway Interface (DGI)
                        • 3141 Debug GPIO
                        • 3142 Timestamping
                            • 32 Curiosity Nano Standard Pinout
                            • 33 Power Supply
                              • 331 Target Regulator
                              • 332 External Supply
                              • 333 VBUS Output Pin
                              • 334 Power Supply Exceptions
                                • 34 Low Power Measurement
                                • 35 Programming External Microcontrollers
                                  • 351 Supported Devices
                                  • 352 Software Configuration
                                  • 353 Hardware Modifications
                                  • 354 Connecting to External Microcontrollers
                                    • 36 Connecting External Debuggers
                                      • 4 Hardware User Guide
                                        • 41 Connectors
                                          • 411 AVR128DA48 Curiosity Nano Pinout
                                          • 412 Using Pin Headers
                                            • 42 Peripherals
                                              • 421 LED
                                              • 422 Mechanical Switch
                                              • 423 Crystal
                                              • 424 On-Board Debugger Implementation
                                                • 4241 On-Board Debugger Connections
                                                  • 5 Hardware Revision History and Known Issues
                                                    • 51 Identifying Product ID and Revision
                                                    • 52 Revision 3
                                                      • 6 Document Revision History
                                                      • 7 Appendix
                                                        • 71 Schematic
                                                        • 72 Assembly Drawing
                                                        • 73 Curiosity Nano Base for Click boardstrade
                                                        • 74 Disconnecting the On-board Debugger
                                                        • 75 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