background image

 PIC18F57Q84 Curiosity Nano

 PIC18F57Q84 Curiosity Nano Hardware User Guide

Preface

The PIC18F57Q84 Curiosity Nano evaluation kit is a hardware platform to evaluate microcontrollers in the PIC18-
Q84 family. This board has the PIC18F57Q84 microcontroller (MCU) mounted.

Supported by MPLAB

®

 X IDE, the board provides easy access to the features of the PIC18F57Q84 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 PIC18F57Q84.

MPLAB

®

 X IDE

 - Software to discover, configure, develop, program, and debug Microchip microcontrollers.

Code examples on GitHub

 - Get started with code examples.

PIC18F57Q84 website

 - Find documentation, data sheets, sample, and purchase microcontrollers.

PIC18F57Q84 Curiosity Nano website

 - Kit information, latest user guide, and design documentation.

©

 2021 Microchip Technology Inc.

 User Guide

DS50003011B-page 1

Summary of Contents for PIC18F57Q84 Curiosity Nano

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

Page 2: ...nnectors 23 4 2 Peripherals 24 5 Hardware Revision History and Known Issues 28 5 1 Identifying Product ID and Revision 28 5 2 Revision 4 28 6 Document Revision History 29 7 Appendix 30 7 1 Schematic 30 7 2 Assembly Drawing 32 7 3 Curiosity Nano Base for Click boards 33 7 4 Disconnecting the On Board Debugger 34 The Microchip Website 36 Product Change Notification Service 36 Customer Support 36 Mic...

Page 3: ...ontrolled 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 PIC18F57Q84 Curiosity Nano evaluation kit is a hardware platform to evaluate the PIC18F57Q84 microcontroller Figure 1 1 PIC18F57Q84 Curiosity Nano Board Overview User Switch User LED LED0 PIC18F57Q84...

Page 4: ... debugger tool is required Tip If closed the Kit Window in MPLAB X IDE can be reopened 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 PIC18F57Q84 Curiosity Nano board Microchip MPLAB X IDE version 5 40 with device family pack PIC18F...

Page 5: ...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 6: ...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 PIC18F57Q84 Curiosity Nano board The table below shows how the LED is controlled in different operation modes Table 3 1 On Board Debugger LED Control Operation Mode Power ...

Page 7: ...d Terminal Receive Terminal Send Info As shown in Figure 3 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 3 1 2 2 Operating System Support On Windows machines the CDC will enumerate as Curiosity Vir...

Page 8: ...the following behavior Debugger UART receiver is disabled and 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 and the debugger CDC TX line remains driven Deasserting DTR in debugger firmware version 1 21 or later ha...

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

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

Page 11: ...power is provided this has no effect Debugger firmware v1 16 or newer Info The content sent to the mass storage emulated disk triggers the commands listed here and provides no feedback in the case of either success or failure 3 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 based vi...

Page 12: ... counter implemented in the Curiosity Nano debugger increments at 2 MHz frequency providing a timestamp resolution of a half microsecond 3 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 13: ...ccording to the USB specification and will limit the maximum voltage to the target The figure below shows the entire power supply system on PIC18F57Q84 Curiosity Nano Figure 3 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 14: ... which supports a set of common target voltages See section 3 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 volt...

Page 15: ...tage 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 board debu...

Page 16: ... 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 shut down To fix this issue remove the applied voltage from the VTG pin and the on board debugger will enable the on board volta...

Page 17: ...tion on the VBUS pin to fix this issue 3 4 Low Power Measurement Power to the PIC18F57Q84 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 PIC18F57Q84 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 18: ...llers on external hardware 3 5 1 Supported Devices All external AVR microcontrollers with the UPDI interface can be programmed and debugged with the on board debugger with Microchip Studio External SAM microcontrollers that have a Curiosity Nano Board can be programmed and debugged with the on board debugger with Microchip Studio PIC18F57Q84 Curiosity Nano can program and debug external PIC18F57Q8...

Page 19: ... by the on board debugger 3 5 3 Hardware Modifications The on board debugger is connected to the PIC18F57Q84 by default Remove these connections 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 PIC18F57Q84 from the on board debugger PIC18F57Q84 Curiosity Nano Curiosity Nano 2021 Microchip Technology ...

Page 20: ...hifters actively drive data and clock signals used for programming and debugging DBG0 DBG1 and DBG2 Usually 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 PIC18F57Q84 Curiosity Nano has pull down resistors R204 and R20...

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

Page 22: ...is capable of delivering high voltage on the MCLR pin High voltage can permanently damage R110 If R110 is broken the on board debugger can not enter Programming mode of the PIC18F57Q84 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 through MP...

Page 23: ... ANA1 RA0 RA0 ANA0 GND GND RD7 RD7 RD6 RD6 RD5 RD5 RA4 RA4 RF7 RF7 RF6 RF6 RF5 RF5 RF4 RF4 GND GND RE1 RE1 RE0 RE0 RA7 RA7 OSC1 RA6 RA6 OSC2 DEBUGGER PIC18F57Q84 Analog Debug I2C SPI UART Peripheral Port PWM Power Ground CAN Shared pin PIC18F57Q84 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 Cu...

Page 24: ...eader and gradually insert the header along the length of the board Once 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 solder them in place Important Once the pin headers are in place they are hard to remove by hand Use a set of pliers and carefully remove the pin headers to avoid damage t...

Page 25: ...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 RC0 and RC1 Connect the crystal by soldering on a solder blob on each of the circular solder point...

Page 26: ... strap and adding a 0402 SMD resistor across the strap More information about oscillator allowance and safety factor can be found in the AN2648 application note from Microchip Cut straps and solder points can be seen in Figure 4 5 Table 4 4 Crystal Connections PIC18F57Q84 Pin Function Shared Functionality RA6 OSC2 Edge connector RA7 OSC1 Edge connector RA6 and RA7 can be used as GPIO To do so some...

Page 27: ...et 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 3 1 On Board Debugger Overview Table 4 5 On Boar...

Page 28: ...ted under kit information contain the product identifier and revision Tip If closed the Kit Window can be opened in MPLAB X IDE through the menu bar Window Kit Window The same information is 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...

Page 29: ...6 Document Revision History Revision Date Description B 02 2021 Initial document release PIC18F57Q84 Curiosity Nano Document Revision History 2021 Microchip Technology Inc User Guide DS50003011B page 29 ...

Page 30: ...B0_UART2 4_TX RB1_I2C1_SCL RB2_I2C1_SDA RC0_ANC0 RA6_OSC2 RA7_OSC1 RE2 RE1 RE0 RA5_ANA5 RA4 RB3_UART2 4_RX RB4_ANB4_PWM2 3 RB5_ANB5_PWM2 3 RB6_ICSPCLK RB7_ICSPDAT RE3_MCLR RA0_ANA0 RA1_ANA1 RA2_ANA2 RA3_SW0 RC6_SPI1_SCK RC5_SPI1_MISO RC4_SPI1_MOSI RD3 RD2 RD0_UART2 4_TX RD1_UART2 4_RX RC3 RC2 RC1_ANC1 RF7 RF6 RF5 RF1_UART1 3 5_RX RF2 RF3_LED0 RF4 RF0_UART1 3 5_TX RA3_SW0 RF3_LED0 J210 J207 J208 J2...

Page 31: ... VOUT A1 VIN A2 EN C2 GND C1 VOUT B1 U108 GND ID_SYS VTG_EN VTG_EN VBUS_ADC SWDIO TP101 GND SWDIO VOFF 47k R111 GND DEBUGGER USB MICRO B CONNECTOR GND USBD_P USBD_N 1k R107 VCC_P3V3 SHIELD VBUS GND 4 7uF C100 2 1 GREEN LED SML P12MTT86R D100 VBUS 1 D 2 D 3 GND 5 SHIELD1 6 SHIELD2 7 ID 4 SHIELD3 8 SHIELD4 9 MU MB0142AB2 269 J105 VOUT 1 VOUT 2 GND 3 EN 4 VIN 6 NC 5 EP 7 MIC5528 3 3YMT U101 VCC_VBUS ...

Page 32: ...e 7 2 PIC18F57Q84 Curiosity Nano Assembly Drawing Top PIC MCU b Figure 7 3 PIC18F57Q84 Curiosity Nano Assembly Drawing Bottom t c R PIC18F57Q84 Curiosity Nano Appendix 2021 Microchip Technology Inc User Guide DS50003011B page 32 ...

Page 33: ...2 3 RB4 RB4 ANB4 PWM 2 3 RA2 RA2 ANA2 RA1 RA1 ANA1 RA0 RA0 ANA0 GND GND RD7 RD7 RD6 RD6 RD5 RD5 RA4 RA4 RF7 RF7 RF6 RF6 RF5 RF5 RF4 RF4 GND GND RE1 RE1 RE0 RE0 RA7 RA7 OSC1 RA6 RA6 OSC2 DEBUGGER PIC18F57Q84 Analog Debug I2C SPI UART Peripheral Port PWM Power Ground CAN Shared pin PIC18F57Q84 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 T...

Page 34: ...wer supply strap will disconnect the on board power supply Tip Reconnect any cut connection by using solder Alternatively mount a 0Ω 0402 resistor Tip When the debugger is disconnected an external debugger can be connected to holes as shown in Figure 7 6 Details about connecting an external debugger are described in 3 6 Connecting External Debuggers Figure 7 5 On Board Debugger Connections Block D...

Page 35: ...Figure 7 6 On Board Debugger Connection Cut Straps GPIO straps bottom side Power Supply strap top side PIC18F57Q84 Curiosity Nano Appendix 2021 Microchip Technology Inc User Guide DS50003011B page 35 ...

Page 36: ...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 37: ... Designer QTouch SAM BA SenGenuity SpyNIC SST SST Logo SuperFlash Symmetricom SyncServer Tachyon TimeSource tinyAVR UNI O Vectron and XMEGA are registered trademarks of Microchip Technology Incorporated in the U S A and other countries AgileSwitch APT ClockWorks The Embedded Control Solutions Company EtherSynch FlashTec Hyper Speed Control HyperLight Load IntelliMOS Libero motorBench mTouch Powerm...

Page 38: ...Management System For information regarding Microchip s Quality Management Systems please visit www microchip com quality PIC18F57Q84 Curiosity Nano 2021 Microchip Technology Inc User Guide DS50003011B page 38 ...

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