background image

4. 

Curiosity Nano

Curiosity Nano is an evaluation platform of small boards with access to most of the microcontrollers I/Os. The
platform consists of a series of low pin count microcontroller (MCU) boards with on-board debuggers, which are
integrated with MPLAB

®

 X IDE and Atmel Studio 7. Each board is identified in the IDE. When plugged in, a Kit

Window is displayed with links to key documentation, including relevant user guides, application notes, data sheets,
and example code. Everything is easy to find. The on-board debugger features a virtual serial port (CDC) for serial
communication to a host PC and a Data Gateway Interface (DGI) with debug GPIO pin(s).

4.1 

On-Board Debugger Overview

AVR128DB48 Curiosity Nano contains an on-board debugger for programming and debugging. The on-board
debugger is a composite USB device consisting of several interfaces:

• A debugger that can program and debug the AVR128DB48 in both MPLAB

®

 X IDE and Atmel Studio 7

• A mass storage device that allows drag-and-drop programming of the AVR128DB48
• A virtual serial port (CDC) that is connected to a Universal Asynchronous Receiver/Transmitter (UART) on the

AVR128DB48, and provides an easy way to communicate with the target application through terminal software

• A Data Gateway Interface (DGI) for code instrumentation with logic analyzer channels (debug GPIO) to visualize

program flow

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

Table 4-1. On-Board Debugger LED Control

Operation Mode

Power and Status LED

Boot Loader mode

The LED blinks slowly during power-up

Power-up

The LED is ON

Normal operation

The LED is ON

Programming

Activity indicator: The LED blinks slowly during programming/debugging

Drag-and-drop
programming

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

Sleep/Off

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

Info: 

 Slow blinking is approximately 1 Hz, and rapid blinking is approximately 5 Hz.

4.1.1 

Debugger

The on-board debugger on the AVR128DB48 Curiosity Nano Board appears as a Human Interface Device (HID) on
the host computer’s USB subsystem. The debugger supports full-featured programming and debugging of the
AVR128DB48 using both MPLAB

®

 X IDE and Atmel Studio 7, as well as some third-party IDEs.

 AVR128DB48 Curiosity Nano

Curiosity Nano

©

 2020 Microchip Technology Inc.

 User Guide

DS50003037A-page 8

Содержание AVR128DB48 Curiosity Nano

Страница 1: ...tegrate the device into a custom design The Curiosity Nano series of evaluation boards include an on board debugger No external tools are necessary to program and debug the AVR128DB48 MPLAB X IDE and Atmel Studio Software to discover configure develop program and debug Microchip microcontrollers Code examples on GitHub Get started with code examples AVR128DB48 website Find documentation data sheet...

Страница 2: ...ss Storage Device 11 4 1 3 1 Mass Storage Device Implementation 12 4 1 3 2 Limitations of Drag and Drop Programming 12 4 1 3 3 Special Commands 12 4 1 4 Data Gateway Interface DGI 13 4 1 4 1 Debug GPIO 13 4 1 4 2 Timestamping 14 4 2 Curiosity Nano Standard Pinout 14 4 3 Power Supply 15 4 3 1 Target Regulator 15 4 3 2 External Supply 17 4 3 3 VBUS Output Pin 17 4 3 4 Power Supply Exceptions 18 4 4 ...

Страница 3: ...2 6 1 Identifying Product ID and Revision 32 6 2 Revision 3 32 6 3 Revision 2 32 7 Document Revision History 33 8 Appendix 34 8 1 Schematic 34 8 2 Assembly Drawing 36 8 3 Curiosity Nano Base for Click boards 37 8 4 Disconnecting the On board Debugger 38 8 5 Getting Started with IAR 39 The Microchip Website 42 Product Change Notification Service 42 Customer Support 42 Microchip Devices Code Protect...

Страница 4: ...ator controlled by the on board debugger 1 8 5 1V output voltage limited by USB input voltage 500 mA maximum output current limited by ambient temperature and output voltage 1 2 Board Overview The Microchip AVR128DB48 Curiosity Nano Evaluation Kit is a hardware platform to evaluate the AVR128DB48 microcontroller Figure 1 1 AVR128DB48 Curiosity Nano Board Overview User Switch User LED LED0 AVR128DB...

Страница 5: ... Studio 7 2 1 2 Kit Window Once the board is powered the green status LED will be lit and both MPLAB X IDE and Atmel Studio 7 will auto detect which boards are connected The Kit Window in MPLAB X IDE and Atmel Studio 7 will present relevant information like data sheets and board documentation The AVR128DB48 device on the AVR128DB48 Curiosity Nano board is programmed and debugged by the on board de...

Страница 6: ...x MPLAB XC8 supports all 8 bit PIC and AVR microcontrollers MCUs MPLAB Code Configurator MPLAB Code Configurator MCC is a free software plug in that provides a graphical interface to configure peripherals and functions specific to your application Atmel START Atmel START is an online tool that hosts code examples helps the user to select and configure software components and tailor your embedded a...

Страница 7: ... ready to utilize the integrated operational amplifiers To get started with the application you can find the user guide code and hex files for this application available online on GitHub MPLAB X IDE Atmel Studio 7 AVR128DB48 Curiosity Nano Preprogrammed Application 2020 Microchip Technology Inc User Guide DS50003037A page 7 ...

Страница 8: ...cation through terminal software A Data Gateway Interface DGI for code instrumentation with logic analyzer channels debug GPIO to visualize program flow The on board debugger controls a Power and Status LED marked PS on the AVR128DB48 Curiosity Nano Board The table below shows how the LED is controlled in different operation modes Table 4 1 On Board Debugger LED Control Operation Mode Power and St...

Страница 9: ...erminal Receive Terminal Send Info As shown in Figure 4 1 the debugger s CDC TX pin is connected to a UART RX pin on the target for receiving characters from the host computer Similarly the debugger s CDC RX pin is connected to a UART TX pin on the target for transmitting characters to the host computer 4 1 2 2 Operating System Support On Windows machines the CDC will enumerate as Curiosity Virtua...

Страница 10: ...the following behavior Debugger UART receiver is disabled so no further data will be transferred to the host computer Debugger UART transmitter will continue to send data that is queued for sending but no new data is accepted from the host computer Level shifters if available are not disabled so the debugger CDC TX line remains driven Deasserting DTR in debugger firmware version 1 21 or later has ...

Страница 11: ...h explicit baud rates CMD SEND_9600 CMD SEND_115200 CMD SEND_460800 USB Level Framing Considerations Sending data from the host to the CDC can be done byte wise or in blocks which will be chunked into 64 byte USB frames Each such frame will be queued up for sending to the debugger s CDC TX pin Transferring a small amount of data per frame can be inefficient particularly at low baud rates as the on...

Страница 12: ...get will still contain the application that has been previously programmed To erase the target device copy a text file starting with CMD ERASE onto the disk By default the CURIOSITY drive contains several read only files for generating icons as well as reporting status and linking to further information AUTORUN ICO icon file for the Microchip logo AUTORUN INF system file required for Windows Explo...

Страница 13: ...ewer CMD 5V0 Sets the target voltage to 5 0V If external power is provided this has no effect Debugger firmware v1 16 or newer Info The commands listed here are triggered by the content being sent to the mass storage emulated disk and no feedback is provided in the case of either success or failure 4 1 4 Data Gateway Interface DGI Data Gateway Interface DGI is a USB interface for transporting raw ...

Страница 14: ...stamp counter implemented in the Curiosity Nano debugger increments at 2 MHz frequency providing a timestamp resolution of a half microsecond 4 2 Curiosity Nano Standard Pinout The 12 edge connections closest to the USB connector on Curiosity Nano boards have a standardized pinout The program debug pins have different functions depending on the target programming interface as shown in the table an...

Страница 15: ...according to the USB specification and will limit the maximum voltage to the target The figure below shows the entire power supply system on AVR128DB48 Curiosity Nano Figure 4 4 Power Supply Block Diagram USB Target MCU Power source Cut strap Power consumer P3V3 DEBUGGER Power converter DEBUGGER Regulator VUSB Target Regulator Power Supply strap Adjust Level shifter VLVL VREG I O I O GPIO straps I...

Страница 16: ...nd text file to the board This supports a set of common target voltages See section 4 1 3 3 Special Commands for further details The MIC5353 supports a maximum current load of 500 mA It is an LDO regulator in a small package placed on a small printed circuit board PCB and the thermal shutdown condition can be reached at lower loads than 500 mA The maximum current load depends on the input voltage ...

Страница 17: ...rd Info If an external voltage is applied without pulling the VOFF pin low and an external supply pulls the voltage lower than the monitoring window s lower limit target voltage setting 100 mV the on board debugger status LED will blink rapidly and shut the on board regulator off If an external voltage is suddenly removed when the VOFF pin is not pulled low the status LED will start to blink rapid...

Страница 18: ...nt From Setting This can be caused by an externally applied voltage to the VTG pin without setting the VOFF pin low If the target voltage differs more than 100 mV over under the voltage setting it will be detected by the on board debugger and the internal voltage regulator will be shut down To fix this issue remove the applied voltage from the VTG pin and the on board debugger will enable the on b...

Страница 19: ...mption on the VBUS pin to fix this issue 4 4 Low Power Measurement Power to the AVR128DB48 is connected from the on board power supply and VTG pin through a 100 mil pin header marked with POWER in silkscreen J101 To measure the power consumption of the AVR128DB48 and other peripherals connected to the board cut the Target Power strap and connect an ammeter over the strap To measure the lowest poss...

Страница 20: ...ocontrollers on external hardware 4 5 1 Supported Devices All external AVR microcontrollers with the UPDI interface can be programmed and debugged with the on board debugger with Atmel Studio External SAM microcontrollers that have a Curiosity Nano Board can be programmed and debugged with the on board debugger with Atmel Studio AVR128DB48 Curiosity Nano can program and debug external AVR128DB48 m...

Страница 21: ...board debugger 4 5 3 Hardware Modifications The on board debugger is connected to the AVR128DB48 by default These connections must be removed before any external microcontroller can be programmed or debugged Cut the GPIO straps shown in the figure below with a sharp tool to disconnect the AVR128DB48 from the on board debugger AVR128DB48 Curiosity Nano Curiosity Nano 2020 Microchip Technology Inc U...

Страница 22: ...er Supply The on board debugger and level shifters actively drive data and clock signals DBG0 DBG1 and DBG2 used for programming and debugging and in most cases the external resistor on these signals can be ignored Pull down resistors are required on the ICSP data and clock signals to debug PIC microcontrollers DBG3 is an open drain connection and requires a pull up resistor to function AVR128DB48...

Страница 23: ...necting External Debuggers Even though there is an on board debugger external debuggers can be connected directly to the AVR128DB48 Curiosity Nano to program debug the AVR128DB48 The on board debugger keeps all the pins connected to the AVR128DB48 and board edge in tri state when not actively used Therefore the on board debugger will not interfere with any external debug tools AVR128DB48 Curiosity...

Страница 24: ...3 4 5 6 7 8 1 VDD Ground DATA 2 VDD 3 Ground 4 PGD 5 Unused 6 Unused 7 Unused 8 Unused 1 Unused MPLAB PICkit 4 USB DEBUGGER PS LED NC ID CDC RX CDC TX DBG1 DBG2 VBUS VOFF DBG3 DBG0 GND VTG CURIOSITY NANO AVR128DB48 Curiosity Nano Curiosity Nano 2020 Microchip Technology Inc User Guide DS50003037A page 24 ...

Страница 25: ...C RX CDC TX DBG1 DBG2 VBUS VOFF DBG3 DBG0 GND VTG CURIOSITY NANO CAUTION To avoid contention between the external debugger and the on board debugger do not start any programming debug operation with the on board debugger through MPLAB X IDE or Atmel Studio 7 or mass storage programming while the external tool is active AVR128DB48 Curiosity Nano Curiosity Nano 2020 Microchip Technology Inc User Gui...

Страница 26: ...VBUS VBUS VOFF VOFF DBG3 DBG3 PF6 DBG0 DBG0 UPDI GND GND VTG VTG PD6 PD6 AIN6 PD3 PD3 AIN3 OP0 INN PD2 PD2 AIN2 OP0 OUT TCA0 WO2 PD1 PD1 AIN1 OP0 INP TCA0 WO1 PD0 PD0 AIN0 TCA0 WO0 PD7 PD7 AIN7 OP1 INN PD5 PD5 AIN5 OP1 OUT PD4 PD4 AIN4 OP1 INP GND GND PE3 PE3 OP2 INN PE2 PE2 OP2 OUT PE1 PE1 OP2 INP PE0 PE0 PC7 PC7 PC6 PC6 PC5 PC5 PC4 PC4 GND GND PB5 PB5 PB4 PB4 PF1 PF1 XTAL32K2 PF0 PF0 XTAL32K1 DE...

Страница 27: ...d PCB 5 1 3 Multi Voltage I O The AVR128DB48 Curiosity Nano MCU has support for Multi Voltage I O MVIO AVR128DB48 MVIO pins are connected to the edge connector at PC0 PC7 MVIO pins are capable of regular I O pin behavior MVIO can be configured in one of two supply modes Single Supply mode All I O pins including MVIO capable pins are powered by VCC_TARGET By default VCC_TARGET is connected to VDDIO...

Страница 28: ...ity to J212 pin 2 The resistor R204 VDDIO2 and J212 can be seen in Figure 5 4 Figure 5 4 MVIO and VDDIO2 Connections J212 R204 WARNING Applying an external voltage to VDDIO2 pin without removing resistor R204 may cause permanent damage to the board WARNING J212 does not have reverse polarity protection Applying voltage to the wrong pin may cause permanent damage to the board 5 1 4 Operational Ampl...

Страница 29: ...g the External 32 768 kHz Crystal Oscillator XOSC32K module in AVR128DB48 with the mounted 32 768 kHz crystal generates a clock signal that is significantly more accurate than the Internal 32 768 kHz Ultra Low Power Oscillator OSC32K module can generate alone With the Auto Tune feature the 32 768 kHz can be used as a reference to improve the accuracy of the internal oscillator This is an ideal ref...

Страница 30: ...e in AVR128DB48 with the mounted 16 00 MHz crystal generates a clock signal that is significantly more accurate than the Internal High Frequency Oscillator OSCHF module The 16 00 MHz crystal is connected to AVR128DB48 on PA0 and PA1 which are also routed to the edge connector through two solder points PA0 and PA1 are disconnected from the edge connector by default to reduce the chance of an extern...

Страница 31: ...can be used as a front end for the on board debugger for programming and debugging MPLAB Data Visualizer can be used as a front end for the CDC and debug GPIO 5 2 5 1 On Board Debugger Connections The table below shows the connections between the target and the debugger section All connections between the target and the debugger are tri stated as long as the debugger is not actively using the inte...

Страница 32: ...ier and revision Tip The Kit Window can be opened in MPLAB X IDE through the menu bar Window Kit Window The same information can be found on the sticker on the bottom side of the PCB Most boards will have the identifier and revision printed in plain text as A09 nnnn rr where nnnn is the identifier and rr is the revision Boards with limited space have a sticker with only a data matrix code containi...

Страница 33: ...7 Document Revision History Doc Rev Date Comments A 09 2020 Initial document release AVR128DB48 Curiosity Nano Document Revision History 2020 Microchip Technology Inc User Guide DS50003037A page 33 ...

Страница 34: ...1 26 2 27 3 28 4 29 5 30 6 31 7 32 5 35 6 36 7 37 5 39 6 40 7 41 RESERVED 1 VBUS 56 CNANO56 pin edge connector J200 J201 J203 J205 J206 J202 J204 PF1_XTAL32K2 PF0_XTAL32K1 NC XOUT XIN 47k R200 AVR128DB48 UPDI GPIO1 GPIO0 RESET DBG0 DBG1 DBG2 DBG3 Debugger CDC TX CDC RX UART3 RX UART3 TX VTG 1 8V 5 5V PB3 PB2 PF6 UPDI PB0 PB1 Name Pin PE3_OP2_INN PE2_OP2_OUT PE1_OP2_INP PE0 J207 J208 PF0 PF1 PA5 1 ...

Страница 35: ...0_0_RX DBG1_CTRL DBG0_CTRL DBG3 OPEN DRAIN TARGET ADJUSTABLE REGULATOR SRST DEBUGGER TESTPOINT DBG2_CTRL VOFF CDC_RX_CTRL 47k R109 DBG1 CDC_TX_CTRL CDC_RX_CTRL SWCLK REG_ADJUST DBG2_GPIO DBG3_CTRL DBG2_CTRL UPDI UPDI GPIO GPIO RESET Signal DBG0 DBG1 DBG2 DBG3 ICSP Interface DAT CLK GPIO MCLR DBG3 CDC TX CDC RX UART RX UART TX UART RX UART TX TARGET TARGET 1k R110 VBUS_ADC 1 2 3 DMN65D8LFB Q101 VCC...

Страница 36: ... 0 1 P A J 1 0 5 0 0 COJ105 PAJ200056 PAJ200053 PAJ200028 P A J 2 0 0 0 2 P A J 2 0 0 0 1 P A J 2 0 0 0 5 1 P A J 2 0 0 0 5 0 P A J 2 0 0 0 5 2 P A J 2 0 0 0 4 9 P A J 2 0 0 0 4 8 P A J 2 0 0 0 4 7 P A J 2 0 0 0 4 6 P A J 2 0 0 0 4 5 P A J 2 0 0 0 4 4 P A J 2 0 0 0 4 3 P A J 2 0 0 0 4 2 P A J 2 0 0 0 4 1 P A J 2 0 0 0 4 0 P A J 2 0 0 0 3 9 P A J 2 0 0 0 3 8 P A J 2 0 0 0 3 7 P A J 2 0 0 0 3 6 P A ...

Страница 37: ...D5 AIN5 OP1 OUT PD4 PD4 AIN4 OP1 INP GND GND PE3 PE3 OP2 INN PE2 PE2 OP2 OUT PE1 PE1 OP2 INP PE0 PE0 PC7 PC7 PC6 PC6 PC5 PC5 PC4 PC4 GND GND PB5 PB5 PB4 PB4 PF1 PF1 XTAL32K2 PF0 PF0 XTAL32K1 DEBUGGER AVR128DB48 Analog Debug I2C SPI UART Peripheral Port PWM Power Ground MVIO OPAMP Shared pin AVR128DB48 Curiosity Nano 1 AN PWM RST INT CS RX SCK TX MISO SCL MOSI SDA 3 3V 5V GND GND 2 AN PWM RST INT C...

Страница 38: ... strap will disconnect the on board power supply Tip Any connection that is cut can be reconnected using solder Alternatively a 0Ω 0402 resistor can be mounted Tip When the debugger is disconnected an external debugger can be connected to holes shown in Figure 8 6 Details about connecting an external debugger are described in 4 6 Connecting External Debuggers Figure 8 5 On Board Debugger Connectio...

Страница 39: ...ke sure you have opened the project you want to configure Open the OPTIONS dialog for the project 2 In the category General Options select the Target tab Select the device for the project or if not listed the core of the device as shown in Figure 8 7 3 In the category Debugger select the Setup tab Select Atmel ICE as the driver as shown in Figure 8 8 4 In the category Debugger Atmel ICE select the...

Страница 40: ...Figure 8 7 Select Target Device Figure 8 8 Select Debugger AVR128DB48 Curiosity Nano Appendix 2020 Microchip Technology Inc User Guide DS50003037A page 40 ...

Страница 41: ...Figure 8 9 Configure Interface AVR128DB48 Curiosity Nano Appendix 2020 Microchip Technology Inc User Guide DS50003037A page 41 ...

Страница 42: ... A listing of sales offices and locations is included in this document Technical support is available through the website at www microchip com support Microchip Devices Code Protection Feature Note the following details of the code protection feature on Microchip devices Microchip products meet the specifications contained in their particular Microchip Data Sheet Microchip believes that its family...

Страница 43: ...MPLAB OptoLyzer PackeTime PIC picoPower PICSTART PIC32 logo PolarFire Prochip Designer QTouch SAM BA SenGenuity SpyNIC SST SST Logo SuperFlash Symmetricom SyncServer Tachyon TempTrackr TimeSource tinyAVR UNI O Vectron and XMEGA are registered trademarks of Microchip Technology Incorporated in the U S A and other countries APT ClockWorks The Embedded Control Solutions Company EtherSynch FlashTec Hy...

Страница 44: ... Management System For information regarding Microchip s Quality Management Systems please visit www microchip com quality AVR128DB48 Curiosity Nano 2020 Microchip Technology Inc User Guide DS50003037A page 44 ...

Страница 45: ...2 China Xiamen Tel 86 592 2388138 China Zhuhai Tel 86 756 3210040 India Bangalore Tel 91 80 3090 4444 India New Delhi Tel 91 11 4160 8631 India Pune Tel 91 20 4121 0141 Japan Osaka Tel 81 6 6152 7160 Japan Tokyo Tel 81 3 6880 3770 Korea Daegu Tel 82 53 744 4301 Korea Seoul Tel 82 2 554 7200 Malaysia Kuala Lumpur Tel 60 3 7651 7906 Malaysia Penang Tel 60 4 227 8870 Philippines Manila Tel 63 2 634 9...

Страница 46: ...Mouser Electronics Authorized Distributor Click to View Pricing Inventory Delivery Lifecycle Information Microchip EV35L43A ...

Отзывы: