background image

Figure 8-6. On-Board Debugger Connection Cut Straps

GPIO straps (bottom side)

Power Supply strap (top side)

 PIC18F16Q41 Curiosity Nano

Appendix

©

 2020 Microchip Technology Inc.

 User Guide

DS50003048A-page 36

Summary of Contents for Curiosity Nano Series

Page 1: ...egrate 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 PIC18F16Q41 MPLAB X IDE Software to discover configure develop program and debug Microchip microcontrollers Code examples on GitHub Get started with code examples PIC18F16Q41 website Find documentation data sheets sample and pur...

Page 2: ... 4 1 3 1 Mass Storage Device Implementation 12 4 1 3 2 Configuration Words 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 Low Power Measurement 19 4 5 Programming ...

Page 3: ...ID and Revision 29 6 2 Revision 3 29 6 3 Revision 2 29 7 Document Revision History 30 8 Appendix 31 8 1 Schematic 31 8 2 Assembly Drawing 33 8 3 Curiosity Nano Base for Click boards 34 8 4 Disconnecting the On Board Debugger 35 The Microchip Website 37 Product Change Notification Service 37 Customer Support 37 Microchip Devices Code Protection Feature 37 Legal Notice 38 Trademarks 38 Quality Manag...

Page 4: ...olled 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 PIC18F16Q41 Curiosity Nano Evaluation Kit is a hardware platform to evaluate the PIC18F16Q41 microcontroller Figure 1 1 PIC18F16Q41 Curiosity Nano Board Overview User Switch SW0 User LED LED0 PIC18F16Q41...

Page 5: ...nal programmer or debugger tool is required Tip The Kit Window can be opened in MPLAB X IDE through the menu bar Window Kit Window 2 1 3 MPLAB X IDE Device Family Packs Microchip MPLAB X IDE requires specific information to support devices and tools This information is contained in versioned packs For the PIC18F16Q41 Curiosity Nano board MPLAB X version 5 40 with device family pack PIC18F Q_DP ver...

Page 6: ...g data The Data Visualizer can receive data from various sources such as serial ports and on board debugger s Data Gateway Interface as found on Curiosity Nano and Xplained Pro boards Microchip PIC and AVR Examples Microchip PIC and AVR Device Examples is a collection of examples and labs that use Microchip development boards to showcase the use of PIC and AVR device peripherals Microchip PIC and ...

Page 7: ...ith an application ready to utilize the integrated operational amplifier To get started with the application find the user guide code and hex files for this application available online on GitHub PIC18F16Q41 Curiosity Nano Preprogrammed Application 2020 Microchip Technology Inc User Guide DS50003048A page 7 ...

Page 8: ...t 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 PIC18F16Q41 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 Powe...

Page 9: ... 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 Virt...

Page 10: ...he 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 t...

Page 11: ...ith 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 ...

Page 12: ...reviously 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 Explorer to show the icon file KIT INFO HTM redirect to the...

Page 13: ... 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 and timestamped data between on board debuggers and host computer...

Page 14: ... 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 and fig...

Page 15: ...ccording to the USB specification and will limit the maximum voltage to the target The figure below shows the entire power supply system on PIC18F16Q41 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: ...ard 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 the selected output vo...

Page 17: ...xternal 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 rapidly until the on...

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: ...tion on the VBUS pin to fix this issue 4 4 Low Power Measurement Power to the PIC18F16Q41 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 PIC18F16Q41 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: ...controllers 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 PIC18F16Q41 Curiosity Nano can program and debug external PIC18F16Q41 ...

Page 21: ... on board debugger 4 5 3 Hardware Modifications The on board debugger is connected to the PIC18F16Q41 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 PIC18F16Q41 from the on board debugger PIC18F16Q41 Curiosity Nano Curiosity Nano 2020 Microchip Technolog...

Page 22: ...ers 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 PIC18F16Q41 Curiosity Nano has pull down resistors R204 a...

Page 23: ...cting External Debuggers Even though there is an on board debugger external debuggers can be connected directly to the PIC18F16Q41 Curiosity Nano to program debug the PIC18F16Q41 The on board debugger keeps all the pins connected to the PIC18F16Q41 and board edge in tri state when not actively used Therefore the on board debugger will not interfere with any external debug tools PIC18F16Q41 Curiosi...

Page 24: ...pable of delivering high voltage on the MCLR pin R110 can be permanently damaged by the high voltage If R110 is broken the on board debugger can not enter Programming mode of the PIC18F16Q41 and will typically fail at reading the device ID 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 thro...

Page 25: ...A2 RA2 ANA2 OPA1 IN2 DAC1 RC3 RC3 ANC3 OPA1 IN1 GND GND DEBUGGER PIC18F16Q41 Analog Debug I2C SPI UART Peripheral Port PWM Power Ground OPAMP Shared pin PIC18F16Q41 Curiosity Nano Info Peripheral signals shown in the image above such as UART I2C SPI ADC PWM and others are shown at specific pins to comply with the Curiosity Nano Board standard These signals can usually be routed to alternate pins u...

Page 26: ...d to remove by hand Use a set of pliers and carefully remove the pin headers to avoid damage to the pin headers and PCB 5 1 3 Operational Amplifier PIC18F16Q41 features an internal operational amplifier OPA with a flexible connection scheme using multiple inputs inverting and non inverting This allows a large number of analog signal conditioning configurations many requiring no external components...

Page 27: ...e PIC18F16Q41 by default as the GPIOs are routed out to the edge connector To use the crystal some hardware modifications are required The two I O lines routed to the edge connector must be disconnected to reduce the chance of contention to the crystal and to remove excessive capacitance on the lines Disconnect the edge connector by cutting the two cut straps on the bottom side of the board marked...

Page 28: ... 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 interface Hence since there are 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 4 1 On Board Debugger Overview Table 5 ...

Page 29: ...p 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 containing the product iden...

Page 30: ...7 Document Revision History Revision Date Description A 09 2020 Initial document release PIC18F16Q41 Curiosity Nano Document Revision History 2020 Microchip Technology Inc User Guide DS50003048A page 30 ...

Page 31: ..._ICSPDAT RA3_MCLR RC0_ANC0_SW0 RB7_UART_TX RB5_UART_RX TARGET BULK PROG DEBUG Pull 47k R204 47k R205 GND VTG 1 8V 5 5V VOFF ID_SYS ID_SYS VOFF DBG0 DBG1 CDC RX 3 CDC TX 4 DBG1 5 DBG2 6 0 TX 7 1 RX 8 2 SDA 9 3 SCL 10 4 MOSI 11 5 MISO 12 6 SCK 13 7 SS 14 GND 15 DBG3 28 DBG0 27 GND 26 VCC 25 PWM 3 20 ADC 2 19 ADC 1 18 ADC 0 17 GND 16 ADC 7 24 ADC 6 23 ADC 5 22 PWM 4 21 DEBUGGER TARGET ID 2 VOFF 29 RE...

Page 32: ...DBG1 CDC_TX_CTRL CDC_RX_CTRL SWCLK REG_ADJUST DBG2_GPIO DBG3_CTRL DBG2_CTRL DBG3 1k R110 VBUS_ADC 1 2 3 DMN65D8LFB Q101 ID_SYS VOFF 1k R112 VCC_P3V3 VTG_ADC DAC MIC94163 VIN B2 VOUT A1 VIN A2 EN C2 GND C1 VOUT B1 U108 GND ID_SYS VTG_EN VTG_EN VBUS_ADC SWDIO ID_SYS TP101 GND SWDIO VOFF 47k R111 GND ID PIN VCC_VBUS MC36213 F100 VCC_VBUS VCC_VBUS J101 VCC_TARGET 47k R113 DEBUGGER UPDI UPDI GPIO GPIO ...

Page 33: ...C O J 1 0 0 P A J 1 0 1 0 1 P A J 1 0 1 0 2 C O J 1 0 1 P A J 1 0 2 0 1 P A J 1 0 2 0 2 P A J 1 0 2 0 3 P A J 1 0 2 0 4 P A J 1 0 2 0 5 P A J 1 0 2 0 6 C O J 1 0 2 P A J 1 0 5 0 1 1 P A J 1 0 5 0 1 0P A J 1 0 5 0 8 P A J 1 0 5 0 9 P A J 1 0 5 0 7 P A J 1 0 5 0 6 P A J 1 0 5 0 1 P A J 1 0 5 0 2 P A J 1 0 5 0 3 P A J 1 0 5 0 4 P A J 1 0 5 0 5 P A J 1 0 5 0 0 COJ105 P A J 2 0 0 0 2 7 P A J 2 0 0 0 2 ...

Page 34: ...ED0 RC2 RC2 ANC2 OPA1 OUT RA2 RA2 ANA2 OPA1 IN2 DAC1 RC3 RC3 ANC3 OPA1 IN1 GND GND DEBUGGER PIC18F16Q41 Analog Debug I2C SPI UART Peripheral Port PWM Power Ground OPAMP Shared pin PIC18F16Q41 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 CS RX SCK TX MISO SCL MOSI SDA 3 3V 5V GND GND 3 AN PWM RST INT CS RX SCK TX MISO SCL MOSI SDA 3 3V 5V GND GND X...

Page 35: ... 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 36: ...Figure 8 6 On Board Debugger Connection Cut Straps GPIO straps bottom side Power Supply strap top side PIC18F16Q41 Curiosity Nano Appendix 2020 Microchip Technology Inc User Guide DS50003048A page 36 ...

Page 37: ...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 38: ...PLAB 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 Hyp...

Page 39: ...Management System For information regarding Microchip s Quality Management Systems please visit www microchip com quality PIC18F16Q41 Curiosity Nano 2020 Microchip Technology Inc User Guide DS50003048A page 39 ...

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

Reviews: