7 Appendix

Schematic, Assembly Drawing, Adapter Pinout, Programming External MCUs, External Debuggers

7.1 Schematic

Figure 7-1 7-5. PIC18F56Q24 Curiosity Nano MCU Schematic
Figure 7-2. PIC18F56Q24 Curiosity Nano Debugger Schematic

7.2 Assembly Drawing

Figure 7-3. PIC18F56Q24 Curiosity Nano Assembly Drawing Top
Figure 7-4. PIC18F56Q24 Curiosity Nano Assembly Drawing Bottom

7.3 Curiosity Nano Base for Click boards

Figure 7-1 7-5. PIC18F56Q24 Curiosity Nano Pinout Mapping

7.4 Programming External Microcontrollers

Use the on-board debugger on PIC18F56Q24 Curiosity Nano to program and debug microcontrollers on external hardware.

7.4.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 having a Curiosity Nano Board can be programmed and debugged with the on-board debugger with Microchip Studio.

PIC18F56Q24 Curiosity Nano can program and debug external PIC18F56Q24 microcontrollers with MPLAB X IDE.

7.4.2 Software Configuration

No software configuration is required to program and debug the same device mounted on the board.

To program and debug a different microcontroller than the one mounted on the board, configure Microchip Studio to allow an independent selection of devices and programming interfaces.

  1. Navigate to Tools > Options through the menu system at the application top.
  2. Select the Tools > Tool settings category in the options window.
  3. Set the Hide unsupported devices option to False.
Figure 7-6. Hide Unsupported Devices
Info: Microchip Studio allows any microcontroller and interface to be selected when the Hide unsupported devices setting is set to False - also microcontrollers and interfaces not supported by the on-board debugger.

7.4.3 Connecting to External Microcontrollers

The figure and table below show where to connect the programming and debugging signals to program and debug external microcontrollers. The on-board debugger can supply power to the external hardware or use an external voltage reference for its level shifters. Read more about the power supply in 4.5 Power Supply.

The on-board debugger and level shifters actively drive data and clock signals used for programming and debugging (DBG0, DBG1, and DBG2). Pull-down resistors are required on the ICSP™ data and clock signals to debug PIC® microcontrollers. All other interfaces are functional with or without pull-up or pull-down resistors.

DBG3 is an open-drain connection and requires a pull-up resistor to function.

PIC18F56Q24 Curiosity Nano has pull-down resistors R100 and R101 connected to the ICSP data and clock signal (DBG0 and DBG1). A pull-up resistor R102 is connected to the MCLR signal (DBG3). 7.2 Assembly Drawing in the appendix shows the location of pull resistors.

Remember:
  • Connect GND and VTG to the external microcontroller
  • Tie the VOFF pin to GND if the external hardware has a power supply
  • Make sure there are pull-down resistors on the ICSP data and clock signals (DBG0 and DBG1) to support the debugging of PIC microcontrollers
Figure 7-7. Curiosity Nano Standard Pinout
Table 7-1. Programming and Debugging Interfaces
Curiosity Nano PinUPDIICSP™SWD
DBG0UPDIDATASWDIO
DBG1CLKSWCLK
DBG2
DBG3MCLRRESET

7.5 Connecting External Debuggers

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

Figure 7-8. Connecting the MPLAB® PICkit 5 In-Circuit Debugger/Programmer to PIC18F56Q24 Curiosity Nano
CAUTION: The MPLAB® PICkit 5 In-circuit Debugger/Programmer can deliver high voltage on the MCLR pin. High voltage can permanently damage R209. If R209 is broken, the on-board debugger cannot enter the programming mode of the PIC18F56Q24 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 MPLAB® X IDE or mass storage programming while the external tool is active.

7.6 Disconnecting the On-Board Debugger

The on-board debugger and level shifters can be disconnected from the PIC18F56Q24.

The power supply block diagram (Figure 4-7 4-9) shows all connections between the debugger and the PIC18F56Q24. The signal names are also printed in silkscreen on the top or bottom side of the board.

To disconnect the debugger, cut the GPIO straps shown in 4.5.1 Cut Straps.

Attention: Cutting the GPIO straps to the on-board debugger will disable the virtual serial port, programming, debugging, and data streaming. Cutting the power 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 the holes. 7.5 Connecting External Debuggers describes how to connect an external debugger.