background image

Remember: 

 Keep the debugger’s firmware up-to-date. Firmware upgrades are done automatically when

using MPLAB

®

 X IDE or Atmel Studio 7.

4.1.2 

Virtual Serial Port (CDC)

The virtual serial port (CDC) is a general purpose serial bridge between a host PC and a target device.

4.1.2.1 

Overview

The 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 in
both directions between the host computer and the target: All characters sent through the virtual serial port on the
host computer will be transmitted as UART on the debugger’s CDC TX pin, and UART characters captured on the
debugger’s CDC RX pin will be returned to the host computer through the virtual serial port.

Figure 4-1. CDC Connection

Target MCU

UART TX

UART RX

Debugger

USB

CDC RX

CDC TX

PC

Terminal

Software

Target

Receive

Target

Send

Terminal

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 Virtual COM Port

 and appear in the Ports section of the

Windows 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 installations

of both MPLAB

®

 X IDE and Atmel Studio 7.

On Linux machines, the CDC will enumerate and appear as 

/dev/ttyACM#

.

Info: 

 tty* devices belong to the “dialout” group in Linux, so it may be necessary to become a member of

that group to have permissions to access the CDC.

On MAC machines, the CDC will enumerate and appear as 

/dev/tty.usbmodem#

. Depending on which terminal

program is used, it will appear in the available list of modems as 

usbmodem#

.

 AVR128DB48 Curiosity Nano

Curiosity Nano

©

 2020 Microchip Technology Inc.

 User Guide

DS50003037A-page 9

Summary of Contents for AVR128DB48 Curiosity Nano

Page 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...

Page 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 ...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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 ...

Page 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...

Page 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...

Page 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 ...

Page 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...

Page 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...

Page 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 ...

Page 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...

Page 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...

Page 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 ...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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 ...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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 ...

Page 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 ...

Page 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...

Page 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 ...

Page 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...

Page 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...

Page 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...

Page 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 ...

Page 41: ...Figure 8 9 Configure Interface AVR128DB48 Curiosity Nano Appendix 2020 Microchip Technology Inc User Guide DS50003037A page 41 ...

Page 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...

Page 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...

Page 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 ...

Page 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...

Page 46: ...Mouser Electronics Authorized Distributor Click to View Pricing Inventory Delivery Lifecycle Information Microchip EV35L43A ...

Reviews: