background image

7.4 

Connecting External Debuggers

Even though there is an on-board debugger, external debuggers can be connected directly to the PIC18F47K42
Curiosity Nano to program/debug the PIC18F47K42. The on-board debugger keeps all the pins connected to the
PIC18F47K42 and board edge in tri-state when not actively used. Therefore, the on-board debugger will not interfere
with any external debug tools.

Figure 7-5. Connecting the MPLAB PICkit

 4 In-Circuit Debugger/Programmer to PIC18F47K42 Curiosity

Nano

2

3

4

5

6

7

8

1

MCLR

V

DD

 

Ground
DATA

CLOCK

3 = Ground

4 = PGD

5 = PGC

6 = Unused

7 = Unused

8 = Unused

2   =  V

DD

 

1 = MCLR

MPLAB® PICkit™ 4

USB

DEBUGGER

PS LED

NC

ID

CDC RX

CDC TX

DBG1

DBG2

VBUS

VOFF

DBG3

DBG0

GND

VTG

CURIOSITY NANO

CAUTION

The MPLAB PICkit 4 In-circuit Debugger/Programmer is capable 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 PIC18F47K42, 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 Microchip MPLAB

®

 X or mass storage

programming while the external tool is active.

 PIC18F47K42 Curiosity Nano

Appendix

©

 2019 Microchip Technology Inc.

 User Guide

DS50002899B-page 24

Summary of Contents for PIC18F47K42 Curiosity Nano

Page 1: ...Supported by Microchip MPLAB X Integrated Development Environment IDE the kit provides easy access to the features of the PIC18F47K42 to explore how to integrate the device into a custom design The C...

Page 2: ...nnectors 15 4 2 Peripherals 16 5 Hardware Revision History and Known Issues 18 5 1 Identifying Product ID and Revision 18 5 2 Revision 2 18 5 3 Revision 1 18 6 Document Revision History 19 7 Appendix...

Page 3: ...wered Adjustable Target Voltage MIC5353 LDO regulator controlled by the on board debugger 2 3 5 1V output voltage limited by USB input voltage 500 mA maximum output current limited by ambient temperat...

Page 4: ...nected Microchip MPLAB X IDE will present relevant information like data sheets and kit documentation The PIC18F47K42 device is programmed and debugged by the on board debugger and therefore no extern...

Page 5: ...information latest user guide and design documentation PIC18F47K42 Curiosity Nano on microchipDIRECT Purchase this kit on microchipDIRECT PIC18F47K42 Curiosity Nano Getting Started 2019 Microchip Tech...

Page 6: ...shows how the LED is controlled in different operation modes Table 3 1 On Board Debugger LED Control Operation Mode Status LED Boot Loader mode LED blink at 1 Hz during power up Power up LED is ON No...

Page 7: ...ding to the target will continue to be sent out but no further data will be accepted Remember Enable to set up your terminal emulator to assert the DTR signal Without it the on board debugger will not...

Page 8: ...ded in ASCII with metadata 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 fil...

Page 9: ...age Off input VTG Target voltage GND Common ground Figure 3 1 Curiosity Nano Standard Pinout USB DEBUGGER PS LED NC NC ID ID CDC RX CDCRX CDC TX CDCTX DBG1 DBG1 DBG2 DBG2 VBUS VBUS VOFF VOFF DBG3 DBG3...

Page 10: ...output voltage never exceeds the hardware limits of the PIC18F47K42 microcontroller The voltage limits configured in the on board debugger on PIC18F47K42 Curiosity Nano are 2 3 5 1V Info The target vo...

Page 11: ...V Applying a higher voltage may cause permanent damage to the kit Programming debugging and data streaming are still possible with an external power supply The debugger and signal level shifters will...

Page 12: ...he PIC18F47K42 and other peripherals connected to the board cut the Target Power strap and connect an ammeter over the strap Figure 3 5 Target Power Strap Target Power strap top side Tip A 100 mil pin...

Page 13: ...tions to the PIC18F47K42 DEBUGGER TARGET Level Shift PA04 PA06 PA07 PA08 PA16 PA00 PA01 USB DIR x 5 VCC_P3V3 VBUS VCC_LEVEL VCC_TARGET DBG0 DBG1 DBG2 DBG3 CDC TX CDC RX CDC RX CDC TX DBG3 DBG2 DBG1 DB...

Page 14: ...Figure 3 7 Kit Modifications GPIO straps bottom side Power Supply strap top side PIC18F47K42 Curiosity Nano Curiosity Nano 2019 Microchip Technology Inc User Guide DS50002899B page 14...

Page 15: ...RD6 RD5 RD5 RB5 RB5 RC1 RC1 SOSCI RC0 RC0 SOSCO RE1 RE1 RE0 RE0 LED0 GND GND PIC18F47K42 CURIOSITY NANO Analog Debug I2C SPI UART Shared pinout Peripheral Port PWM Power Ground Info Peripheral signals...

Page 16: ...pressed it will drive the I O line to ground GND Tip There is no externally connected pull up resistor on the switch To use the switch make sure that an internal pull up resistor is enabled on pin RE2...

Page 17: ...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 interface Hence t...

Page 18: ...vision The boards with limited space have a sticker with only a QR code containing the product identifier revision and the serial number The serial number string has the following format nnnnrrsssssss...

Page 19: ...ion History Doc rev Date Comment B 10 2019 Updated for rev 2 of kit A 06 2019 Initial document release PIC18F47K42 Curiosity Nano Document Revision History 2019 Microchip Technology Inc User Guide DS5...

Page 20: ...C 1 36 ADC 0 35 GND 34 4 30 4 26 GND 25 ADC 7 42 ADC 6 41 ADC 5 40 PWM 4 39 DEBUGGER TARGET ID 2 VOFF 47 1 21 2 22 3 23 5 27 6 28 7 29 5 31 6 32 7 33 RESERVED 1 VBUS 48 CNANO48 pin edge connector J200...

Page 21: ...SWCLK GND 47k 47k R100 GND DBG2 S0_0_RX DBG1_CTRL DBG0_CTRL GND DBG3 OPEN DRAIN TARGET ADJUSTABLE REGULATOR SRST 100n C104 GND SRST VCC_P3V3 GND Testpoint Array 1 2 3 4 5 6 7 8 9 10 TCK TDO TMS Vsup...

Page 22: ...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 PAJ200048 PAJ200047 PAJ200024 P A J 2 0 0 0 2 P A J 2 0 0 0 1 P A J 2 0 0 0...

Page 23: ...6 RD6 RD5 RD5 RB5 RB5 RC1 RC1 SOSCI RC0 RC0 SOSCO RE1 RE1 RE0 RE0 LED0 GND GND PIC18F47K42 CURIOSITY NANO Analog Debug I2C SPI UART Shared pinout Peripheral Port PWM Power Ground 1 AN PWM RST INT CS R...

Page 24: ...8 Unused 2 VDD 1 MCLR MPLAB PICkit 4 USB DEBUGGER PS LED NC ID CDC RX CDC TX DBG1 DBG2 VBUS VOFF DBG3 DBG0 GND VTG CURIOSITY NANO CAUTION The MPLAB PICkit 4 In circuit Debugger Programmer is capable o...

Page 25: ...able through the website at http www microchip com support Microchip Devices Code Protection Feature Note the following details of the code protection feature on Microchip devices Microchip products m...

Page 26: ...SIC Plus logo Quiet Wire SmartFusion SyncWorld Temux TimeCesium TimeHub TimePictra TimeProvider Vite WinPath and ZL are registered trademarks of Microchip Technology Incorporated in the U S A Adjacent...

Page 27: ...7252 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 7...

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

Reviews: