5.2.4
On-Board Debugger Implementation
PIC18F16Q40 Curiosity Nano features an on-board debugger that can be used to program and debug the
PIC18F16Q40 using ICSP. The on-board debugger also includes a virtual serial port (CDC) interface over UART and
debug GPIO. MPLAB
®
X IDE can be used as a front-end for the on-board debugger for programming and debugging.
can be used as a front-end for the CDC and debug GPIO.
5.2.4.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 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
.
Table 5-4. On-Board Debugger Connections
PIC18F16Q40
Pin
Debugger Pin
Function
Shared Functionality
RB5
CDC TX
UART RX (PIC18F16Q40 RX line)
RB7
CDC RX
UART TX (PIC18F16Q40 TX line)
RA0
DBG0
ICSPDAT
RA1
DBG1
ICSPCLK
RC0
DBG2
SW0/GPIO
RA3
DBG3
MCLR
PIC18F16Q40 Curiosity Nano
Hardware User Guide
©
2020 Microchip Technology Inc.
User Guide
DS50003047A-page 28