Professional Documents
Culture Documents
PIC18F57Q43 Curiosity Nano Hardware User Guide
PIC18F57Q43 Curiosity Nano Hardware User Guide
Preface
The PIC18F57Q43 Curiosity Nano Evaluation Kit is a hardware platform to evaluate microcontrollers in the PIC18-
Q43 family. This board has the PIC18F57Q43 microcontroller (MCU) mounted.
Supported by Microchip MPLAB® X Integrated Development Environment (IDE), the board provides easy access to
the features of the PIC18F57Q43 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 PIC18F57Q43.
• MPLAB® X IDE - Software to discover, configure, develop, program, and debug Microchip microcontrollers.
• Code examples on GitHub - Get started with code examples.
• PIC18F57Q43 website - Find documentation, data sheets, sample, and purchase microcontrollers.
• PIC18F57Q43 Curiosity Nano website - Find schematics, design files, and purchase this kit.
Table of Contents
Preface........................................................................................................................................................... 1
1. Introduction............................................................................................................................................. 3
1.1. Features....................................................................................................................................... 3
1.2. Kit Overview................................................................................................................................. 3
2. Getting Started........................................................................................................................................ 4
2.1. Quick Start....................................................................................................................................4
2.2. Design Documentation and Relevant Links................................................................................. 4
3. Curiosity Nano.........................................................................................................................................5
3.1. On-Board Debugger Overview..................................................................................................... 5
3.2. Curiosity Nano Standard Pinout................................................................................................. 10
3.3. Power Supply............................................................................................................................. 11
3.4. Low Power Measurement...........................................................................................................15
3.5. Programming External Microcontrollers..................................................................................... 16
3.6. Connecting External Debuggers................................................................................................ 19
7. Appendix............................................................................................................................................... 26
7.1. Schematic...................................................................................................................................26
7.2. Assembly Drawing......................................................................................................................28
™
7.3. Curiosity Nano Base for Click boards ...................................................................................... 29
7.4. Disconnecting the On-board Debugger......................................................................................30
Customer Support........................................................................................................................................ 32
Legal Notice................................................................................................................................................. 32
Trademarks.................................................................................................................................................. 33
1. Introduction
1.1 Features
• PIC18F57Q43-I/PT Microcontroller
• One Yellow User LED
• One Mechanical User Switch
• Footprint for 32.768 kHz Crystal
• On-Board Debugger:
– Board identification in Microchip MPLAB® X IDE
– One green power and status LED
– Programming and debugging
– Virtual serial port (CDC)
– One debug GPIO channel (DGI GPIO)
• USB Powered
• Adjustable Target Voltage:
– MIC5353 LDO regulator controlled 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)
Micro USB Power/Status 32.768 kHz PIC18F57Q43 User LED User Switch
Debugger
Connector LED Crystal footprint MCU (LED0) (SW0)
2. Getting Started
Tip: The Kit Window can be opened in MPLAB X IDE through the menu bar Window > Kit Window.
• MPLAB® X IDE - MPLAB X IDE is a software program that runs on a PC (Windows®, Mac OS®, Linux®) to
develop applications for Microchip microcontrollers and digital signal controllers. It is called an Integrated
Development Environment (IDE) because it provides a single integrated “environment” to develop code for
embedded microcontrollers.
• MPLAB® Code Configurator - MPLAB Code Configurator (MCC) is a free software plug-in that provides a
graphical interface to configure peripherals and functions specific to your application.
• Microchip Sample Store - Microchip sample store where you can order samples of devices.
• MPLAB Data Visualizer - MPLAB Data Visualizer is a program used for processing and visualizing 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 AVR Solutions - Microchip PIC and AVR Device Solutions contains complete applications
for use with Microchip development boards, ready to be adapted and extended.
• PIC18F57Q43 Curiosity Nano website - Find schematics, design files, and purchase this kit.
• PIC18F57Q43 Curiosity Nano on microchipDIRECT - Purchase this kit on microchipDIRECT.
3. Curiosity Nano
Curiosity Nano is an evaluation platform of small boards with access to most of the microcontrollers I/Os. The
platform consists of a series of low pin count microcontroller (MCU) boards with on-board debuggers, which are
integrated with Microchip MPLAB® X IDE. Each board is identified in the IDE. When plugged in, a Kit Window is
displayed with links to key documentation, including relevant user guides, application notes, data sheets, and
example code. Everything is easy to find. The on-board debugger features a virtual serial port (CDC) for serial
communication to a host PC and a Data Gateway Interface (DGI) with debug GPIO pin(s).
Info: Slow blinking is approximately 1 Hz, and rapid blinking is approximately 5 Hz.
3.1.1 Debugger
The on-board debugger on the PIC18F57Q43 Curiosity Nano Board appears as a Human Interface Device (HID) on
the host computer’s USB subsystem. The debugger supports full-featured programming and debugging of the
PIC18F57Q43 using Microchip MPLAB® X IDE.
Remember: Keep the debugger’s firmware up-to-date. Firmware upgrades are done automatically when
using Microchip MPLAB® X IDE.
3.1.2.1 Overview
The on-board debugger implements a composite USB device that includes a standard Communications Device Class
(CDC) interface, which appears on the host as a virtual serial port. The CDC can be used to stream arbitrary data in
both directions between the host computer and the target: All characters sent through the virtual serial port on the
host computer will be transmitted as UART on the debugger’s CDC TX pin, and UART characters captured on the
debugger’s CDC RX pin will be returned to the host computer through the virtual serial port.
Figure 3-1. CDC Connection
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.
Info: On older Windows systems, a USB driver is required for CDC. This driver is included in installations
of Microchip MPLAB® X IDE.
Info: tty* devices belong to the “dialout” group in Linux, so it may be necessary to become a member of
that group to have permissions to access the CDC.
On MAC machines, the CDC will enumerate and appear as /dev/tty.usbmodem#. Depending on which terminal
program is used, it will appear in the available list of modems as usbmodem#.
Info: For all operating systems: Be sure to use a terminal emulator that supports DTR signaling. See
3.1.2.4 Signaling.
3.1.2.3 Limitations
Not all UART features are implemented in the on-board debugger CDC. The constraints are outlined here:
• Baud rate: Must be in the range of 1200 bps to 500 kbps. Any baud rate outside this range will be set to the
closest limit, without warning. Baud rate can be changed on-the-fly.
• Character format: Only 8-bit characters are supported.
• Parity: Can be odd, even, or none.
• Hardware flow control: Not supported.
• Stop bits: One or two bits are supported.
3.1.2.4 Signaling
During USB enumeration, the host OS will start both communication and data pipes of the CDC interface. At this
point, it is possible to set and read back the baud rate and other UART parameters of the CDC, but data sending and
receiving will not be enabled.
When a terminal connects on the host, it must assert the DTR signal. As this is a virtual control signal implemented
on the USB interface, it is not physically present on the board. Asserting the DTR signal from the host will indicate to
the on-board debugger that a CDC session is active. The debugger will then enable its level shifters (if available), and
start the CDC data send and receive mechanisms.
Deasserting the DTR signal will not disable the level shifters but disable the receiver so no further data will be
streamed to the host. Data packets that are already queued up for sending to the target will continue to be sent out,
but no further data will be accepted.
Remember: Set up the terminal emulator to assert the DTR signal. Without the signal, the on-board
debugger will not send or receive any data through its UART.
Tip: The on-board debugger’s CDC TX pin will not be driven until the CDC interface is enabled by the
host computer. Also, there are no external pull-up resistors on the CDC lines connecting the debugger and
the target, which means that during power-up, these lines are floating. To avoid any glitches resulting in
unpredictable behavior like framing errors, the target device should enable the internal pull-up resistor on
the pin connected to the debugger’s CDC TX pin.
The maximum message length is 50 characters – all remaining data in the frame are ignored.
The default baud rate used in this mode is 9600 bps, but if the CDC is already active or has been configured, the
previously used baud rate still applies.
Info: STATUS.TXT is dynamically updated by the on-board debugger. The contents may be cached by
the OS and, therefore, do not reflect the correct status.
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.
Debug GPIO channels are timestamped, so the resolution of DGI GPIO events is determined by the resolution of the
DGI timestamp module.
Important: Although bursts of higher-frequency signals can be captured, the useful frequency range of
signals for which debug GPIO can be used is up to about 2 kHz. Attempting to capture signals above this
frequency will result in data saturation and overflow, which may cause the DGI session to be aborted.
3.1.4.2 Timestamping
DGI sources are timestamped as they are captured by the debugger. The timestamp counter implemented in the
Curiosity Nano debugger increments at 2 MHz frequency, providing a timestamp resolution of a half microsecond.
...........continued
Debugger Signal Target MCU Description
DBG1 ICSPCLK Debug clock line
USB
PS LED
NC VBUS
ID VOFF
CDC RX DEBUGGER DBG3
CDC TX DBG0
DBG1 GND
DBG2 CURIOSITY NANO VTG
Measure
On/Off Target
VUSB On/Off
USB Adjust MCU
Info: The target voltage is set to 3.3V when the board is manufactured. It can be changed through
MPLAB X IDE project properties. Any change to the target voltage is persistent, even through a power
toggle. The resolution is less than 5 mV but may be limited to 10 mV by the adjustment program.
Info: Voltage settings that are set up in Microchip MPLAB® X IDE are not immediately applied to the
board. The new voltage setting is applied to the board when the debugger is accessed in any way, like
pushing the Refresh Debug Tool Status button in the project dashboard tab, or programming/reading
program memory.
Info: There is a simple option to adjust the target voltage with a drag and drop command text file to the
board. This only supports settings of 0.0V, 3.3V, and 5.0V. 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 voltage, and the ambient temperature.
The figure below shows the safe operating area for the regulator, with an input voltage of 5.1V and an ambient
temperature of 23°C.
The voltage output of the target regulator is continuously monitored (measured) by the on-board debugger. If it is
more than 100 mV over/under the voltage setting value, an error condition will be flagged, and the target voltage
regulator will be turned off. This will detect and handle any short-circuit conditions. It will also detect and handle if an
external voltage which causes VCC_TARGET to move outside of the voltage setting monitoring window of ±100 mV
is suddenly applied to the VTG pin, without setting the VOFF pin low.
Info: If the external voltage is lower than the monitoring window lower limit (target voltage setting - 100
mV), the on-board debugger status LED will blink rapidly. If the external voltage is higher than the
monitoring window upper limit (target voltage setting + 100 mV), the on-board debugger status LED will
continue to shine. If the external voltage is removed, the status LED will start to blink rapidly until the on-
board debugger detects the new situation and turns the target voltage regulator back on.
Applying an external voltage to the VTG pin without shorting VOFF to GND may cause permanent damage
WARNING
to the board.
Do not apply any voltage to the VOFF pin. Let the pin float to enable the power supply.
WARNING
Absolute maximum external voltage is 5.5V for the on-board level shifters, and the standard operating
WARNING
condition of the PIC18F57Q43 is 1.8-5.5V. Applying a higher voltage may cause permanent damage to the
board.
Info: If an external voltage is applied without pulling the VOFF pin low and an external supply pulls the
voltage lower than the monitoring window 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 debugger detects the new situation and switches the target voltage regulator back on.
Programming, debugging, and data streaming is still possible with an external power supply – the debugger and
signal level shifters will be powered from the USB cable. Both regulators, the debugger and the level shifters, are
powered down when the USB cable is removed.
Info: In addition to the power consumed by the PIC18F57Q43 and its peripherals, approximately 100 µA
will be drawn from any external power source to power the on-board level shifters and voltage monitor
circuitry when a USB cable is plugged in the DEBUG connector on the board. When a USB cable is not
plugged in, some current is used to supply the level shifters voltage pins, which have a worst-case current
consumption of approximately 5 µA. Typical values may be as low as 100 nA.
Tip: A 100-mil pin header can be soldered into the Target Power strap (J101) footprint for easy
connection of an ammeter. Once the ammeter is no longer needed, place a jumper cap on the pin header.
Info: The on-board level shifters will draw a small amount of current even when they are not in use. A
maximum of 2 µA can be drawn from each I/O pin connected to a level shifter for a total of 10 µA. Keep
any I/O pin connected to a level shifter are tri-state to prevent leakage. All I/Os connected to the on-board
debugger is listed in 4.2.4.1 On-Board Debugger Connections. To prevent any leakage to the on-board
level shifters, they can be disconnected completely, as described in 7.4 Disconnecting the On-board
Debugger.
To program and debug a different microcontroller than what is mounted on the board, Atmel Studio must be
configured to allow free selection of devices and programming interfaces.
1. Navigate to Tools > Options through the menu system at the top of the application.
2. Select the Tools > Tool settings category in the options window.
3. Set the Hide unsupported devices option to False .
Figure 3-8. Hide Unsupported Devices
Info: Atmel Studio allows any microcontroller and interface to be selected when Hide unsupported
devices is set to False, also microcontrollers and interfaces which are not supported by the on-board
debugger.
Info: Cutting the connections to the debugger will disable programming, debugging, and data streaming
from the PIC18F57Q43 mounted on the board.
Tip: Solder in 0Ω resistors across the footprints or short-circuit them with solder to reconnect the signals
between the on-board debugger and the PIC18F57Q43.
Remember:
• Connect GND and VTG to the external microcontroller
• Tie the VOFF pin to GND if the external hardware has its own 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
USB
PS LED
NC VBUS
ID VOFF
CDC RX DEBUGGER DBG3
CDC TX DBG0
DBG1 GND
DBG2 CURIOSITY NANO VTG
1 = MCLR
8 7 6 5 4 3 2 1
MCLR
VDD
Ground
CLOCK DATA
USB
PS LED
NC VBUS
ID VOFF
CDC RX DEBUGGER DBG3
CDC TX DBG0
DBG1 GND
DBG2 CURIOSITY NANO VTG
The MPLAB PICkit 4 In-circuit Debugger/Programmer is capable of delivering high voltage on the MCLR
CAUTION
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 PIC18F57Q43, and will typically fail at reading the device ID.
To avoid contention between the external debugger and the on-board debugger, do not start any
CAUTION
programming/debug operation with the on-board debugger through Microchip MPLAB® X IDE or mass
storage programming while the external tool is active.
4.1 Connectors
Analog Port
PIC18F57Q43 Debug
I2C
PWM
Power
Curiosity Nano SPI Ground
UART Shared pin
USB
Peripheral
PS LED
VBUS
NC VBUS
NC
VOFF
ID VOFF
ID
CDC RX
DBG3
RF0 UART[1/3/5] TX CDC RX DEBUGGER DBG3 RE3 MCLR
CDC TX
DBG0
RF1 UART[1/3/5] RX CDC TX DBG0 RB7 ICSPDAT
DBG1
GND
ICSPCLK RB6 DBG1 GND
DBG2
VTG
RB3
RB0
RA0
GND
GND GND
RA3
RD7
RD6
RE2 RD5
RE2
RC7
RB5
RC7 RB5
RD0
RD0 RF7
RF7
RD1
RD1 RF6
RF6
RD2
RD2 RF5
RF5
RD3
RD3 RF4
RF4
GND
GND
GND GND
CDC RX UART[1/3/5] TX RF0 RE1
RE1
RF0
LED0
RC1
RC0
SW0
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 using the Peripheral Pin Select (PPS) feature in the PIC18F57Q43.
Tip: Start at one end of the pin header 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 to the pin headers and PCB.
4.2 Peripherals
4.2.1 LED
There is one yellow user LED available on the PIC18F57Q43 Curiosity Nano Board that can be controlled by either
GPIO or PWM. The LED can be activated by driving the connected I/O line to GND.
Table 4-1. LED Connection
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 RB4.
4.2.3 Crystal
The PIC18F57Q43 Curiosity Nano Board has a 32.768 kHz crystal footprint made for standard 3.2mm by 1.5mm
surface mount crystals with two terminals.
The crystal footprint is not connected to the PIC18F57Q43 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. This can be done by cutting the two straps on the bottom side of the board, marked RC0
and RC1, as shown in the figure below. Next, solder on a solder blob on each of the circular solder points next to the
crystal on the top side of the board, as shown in the figure below.
®
Tip: 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 identifier, revision, and serial
number.
The serial number string has the following format:
"nnnnrrssssssssss"
n = product identifier
r = revision
s = serial number
5.2 Revision 3
Revision 3 is the initially released version.
7.1
1 2 3 4 5 6 7 8
Schematic
Appendix
47k
47k
R205
R204
CDC TX is output from the DEBUGGER.
CDC RX is input to the DEBUGGER.
TX is output from the TARGET device.
RC6_SPI1_SCK
RC5_SPI1_MISO
RC4_SPI1_MOSI
RD3
RD2
RD1_UART4_RX
RD0_UART4_TX
RC3_UART1_RX
RC2_UART1_TX
RF3_LED0
RF2
RF1_UART5_RX
RX is input to the TARGET device
GND
U200 VBUS
48
47
46
45
44
43
42
41
40
39
38
37
PIC18F57Q43T-I/PT
J200
DEBUGGER
DBG2
DBG1
CDC_TX
CDC_RX
ID_SYS
VOFF
DBG3
DBG0
RC6
RC5
RC4
RD3
RD2
RD1
RD0
RC3
RC2
RF3
RF2
RF1
1 56
RESERVED VBUS
RC7 1
RC7 RF0
36 RF0_UART5_TX 2
ID VOFF
55
RD4_SPI1_SS 2 35 RC1_SOSCI RF0_UART5_TX J201 3 54 J202 RE3_MCLR
RD4 SOSCIN/RC1 CDC RX DBG3
RD5 3 34 RC0_SOSCO RF1_UART5_RX J203 4
CDC TX DBG0
53 J204 RB7_ICSPDAT
RD5 SOSCO/RC0 GND
GND RD6 4 33 RA6_ANA6 RB6_ICSPCLK J205 5 52
RD6 CLKOUT/OSC2/RA6 DBG1 GND GND
RD7 5 32 RA7_ANA7 RB4_SW0 J206 6 51
B RD7 CLKIN/OSC1/RA7 DBG2 VCC VCC_EDGE B
6 31 RC2_UART1_TX 7
0 TX ADC 7
50 RA7_ANA7
C202 VSS VSS C200
7 30 RC3_UART1_RX 8 49 RA6_ANA6
100n VDD VDD 100n 1 RX ADC 6
RB0_ANA3_PWM 8 29 RE2 RB2_I2C1_SDA 9 48 RA5_ANA5
RB0 RE2 2 SDA ADC 5
RB1_I2C1_SCL 9
RB1 RE1
28 RE1 RB1_I2C1_SCL 10
3 SCL PWM 4
47 RB3_ANA4_PWM
RB2_I2C1_SDA 10 27 RE0 RC4_SPI1_MOSI 11
4 MOSI PWM 3
46 RB0_ANA3_PWM
VCC_TARGET RB2 RE0 VCC_TARGET
RB3_ANA4_PWM 11 26 RA5_ANA5 RC5_SPI1_MISO 12 45 RA2_ANA2
RB3 RA5 5 MISO ADC 2
RF4 12 25 RA4_UART3_RX RC6_SPI1_SCK 13 44 RA1_ANA1
RF4 RA4 6 SCK ADC 1
RD4_SPI1_SS 14 43 RA0_ANA0
7 SS ADC 0
15 42
GND GND GND GND
RA3_UART3_TX 16 41 RD7
Figure 7-1. PIC18F57Q43 Curiosity Nano Schematic
RF5
RF6
RF7
RB4
RB5
RB6/ICSPCLK
RB7/ICSPDAT
RE3/MCLR/VPP
RA0
RA1
RA2
RA3
0 (TX) 7
MCLR PULL-UP RA4_UART3_RX 17 40 RD6
1 (RX) 6
VCC_TARGET RE2 18
2 5
39 RD5
13
14
15
16
17
18
19
20
21
22
23
24
RC7 19 38 RB5
3 4
RD0_UART4_TX 20 37 RF7
0 7
RD1_UART4_RX 21 36 RF6
1 6
RD2 22
2 5
35 RF5
47k
RD3 RF4
R200
23 34
3 4
24 33
GND GND GND GND
RF0_UART5_TX 25 32 RE1
0 7
RF1_UART5_RX 26
1 6
31 RE0
RF5
RF6
RF7
RB4_SW0
RB5
RB6_ICSPCLK
RB7_ICSPDAT
RE3_MCLR
RA0_ANA0
RA1_ANA1
RA2_ANA2
RA3_UART3_TX
RF2 27 30 RC1 J207 RC1_SOSCI
2 5
RE3_MCLR RF3_LED0 28
3 4
29 RC0 J208 RC0_SOSCO
TARGET
CNANO56-pin edge connector
C C
NOTE on I2C:
RB4_SW0
RF3_LED0
RC1_SOSCI
RC0_SOSCO
mounted close to slave device(s).
J210
J211
VCC_TARGET VCC_EDGE
1k
R202
2
XC200
J209
C205 N.M.
D200
3
4
2.2uF
32.768 kHz
YELLOW LED
1
SML-D12Y1WT86
SW200 N.M. C203 N.M. C204
8.2p 8.2p
Drawn By:
1
2
TS604VM1-035CR
D GND GND GND TF, PB D
1k
Engineer:
R203
GND TF, PB
Project Title
Designed with
PIC18F 57Q43 Curiosity Nano
Sheet Title
Target MCU Altium.com
Size Assembly Number: A09-3290 PCBA Revision: 3
A3 PCB PCB Number: A08-3021 PCB Revision: 3 Date: 2019-12-19
File: PIC18F57Q43_Curiosity_Nano_Target_MCU.SchDoc Page: 2 of 4
1 2 3 4 5 6 7 8
DS40002186A-page 26
Appendix
PIC18F57Q43 Curiosity Nano
1 2 3 4 5 6 7 8
Interface
ICSP UPDI
TARGET ADJ USTABLE REGULATOR TARGET TARGET
Signal
J100:
VCC_VBUS VCC_REGULATOR VCC_LEVEL VCC_EDGE CDC TX UART RX UART RX
- Cut-strap used for full separation of target power from the level shifters and on-board regulators.
U102 MIC5353 U108
- For current measurements using the on-board power supply, this strap must be cut and an
3 4 A2 A1 J100 CDC RX UART TX UART TX
VIN VOUT
B2
VIN VOUT
B1 ammeter connected across.
VIN VOUT - For current measurements using an external power supply, this strap could be cut for more
REG_ENABLE 1 5 C2 C1 DBG0 DAT UPDI
EN NC/ADJ EN GND accurate measurements. Leakage back through the switch is in the micro ampere range.
J101
DBG1 CLK GPIO
47k
6 2
47k
47k
A A
R109
BYP GND
R101
R102
GND C103 MIC94163
GND
VTG_EN
C102 DBG2 GPIO GPIO
7
MIC5353:
47k
100n 2.2uF
R103
Vin: 2.6V to 6V
DBG3 MCLR RESET
VCC_TARGET Vout: 1.25V to 5.1V
GND
47k
27k
47k
47k
Imax: 500mA
R100
R104
R105
R111
VCC - -
Dropout (typical): 50mV@150mA, 160mV @ 500mA
Accuracy: 2% initial
VBUS_ADC
GND
Thermal shutdown and current limit
REG_ADJUST
VTG_ADC
R106 (Vmax = Vin - dropout) MIC5528:
DAC
33k Vin: 2.5V to 5.5V
Vout: Fixed 3.3V
Imax: 500mA
Dropout: 260mV @ 500mA
Adjustable output and limitations: DEBUGGER TESTPOINTs DEBUGGER REGULATOR
- The DEBUGGER can adjust the output voltage of the regulator between 1.25V and 5.1V to the target.
- The voltage output is limited by the input (USB), which can vary between 4.40V to 5.25V J102 VCC_VBUS U101 MIC5528-3.3YMT VCC_P3V3
- The level shifters have a minimal voltage level of 1.65V and will limit the minimum operating voltage allowed for the SWCLK 1 2 6 1
TCK GND GND VIN VOUT
target to still allow communication. 3 4 C100
TDO VTref VCC_P3V3 C101
- The MIC94163 has a minimal volatege level of 1.70V and will limit the minimum voltage delivered to the target. SWDIO 5 6 SRST 4 2
TMS SRST EN VOUT
2.2uF
- Firmware configuration will limit the voltage range to be within the the target specification. 7 8 4.7uF
9 Vsup TRST 10 5
GND
EP
TDI GND NC
GND GND
Programming connector Testpoint Array
3
7
VCC_MCU_CORE
DEBUGGER POWER/STATUS LED
C106 GND R107 D100
STATUS_LED 1 2
1u 1k VCC_P3V3
GND GREEN LED
VCC_P3V3
SML-P12MTT86R
C107
100n
U103 74LVC1T45FW4-7 SWCLK TP100 TP101
BOOT DEBUGGER USB MICRO-B CONNECTOR
6 1 GND
VCCB VCCA SWDIO
SRST
CDC_TX_CTRL
VCC_LEVEL 5 2 VCC_P3V3
DIR GND
4 3 GND PTC Resettable fuse:
B A U100 VBUS VCC_VBUS
32
31
30
29
28
27
26
25
CDC_RX_CTRL
VCC_LEVEL 5 2 VCC_P3V3 J105
VDDIN
DIR GND
RESETN
4 3 GND 1
VDDCORE
B A VBUS
S1_0_TX 1
PA00 USB_DP/PA25
24 USBD_P USBD_N 2
D-
S1_1_RX 2 USBD_N USBD_P
SWDIO/PA31
23 3
PA01 USB_DM/PA24 D+
SWDCLK/PA30
DBG1 B A
GND
ID PIN
9
VCC_P3V3
10
11
12
13
14
15
16
U107 74LVC1T45FW4-7
6 1
VCCB VCCA VCC_P3V3
DBG2_CTRL
VCC_LEVEL 5 2 VCC_P3V3
DIR GND
DBG2 4 3 GND C108
DBG2 B A
1k
100n
GND
R112
ID_SYS
DBG2_CTRL
DBG2_GPIO
REG_ENABLE
VBUS_ADC
DBG0_CTRL
DBG1_CTRL
ID_SYS
DS40002186A-page 27
PIC18F57Q43 Curiosity Nano
Appendix
PIC18F57Q43 Curiosity Nano
Appendix
PIC®
b
MCU
c
t
R
Analog Port
Debug PWM
PIC18F57Q43
NC
NC VBUS RA0 AN PWM RB0 RA2 AN PWM RA5
VBUS
ID
ID VOFF RA7 RST INT RA6 RD5 RST INT RB5
VOFF
RF0 UART[1/3/5] TX CDC RX DEBUGGER DBG3 RE3 MCLR RD4 CS RX RC3 RD7 CS RX RC3
DBG3
CDC RX
RF1 UART[1/3/5] RX CDC TX DBG0 RB7 ICSPDAT RC6 SCK TX RC2 RC6 SCK TX RC2
DBG0
CDC TX
ICSPCLK RB6 DBG1
GND
GND RC5 MISO SCL RB1 RC5 MISO SCL RB1
DBG1
VTG
SW0 RB4 DBG2 VTG RC4 MOSI SDA RB2 RC4 MOSI SDA RB2
DBG2
DEBUGGER
RC2
PIC18F57Q43
RA7
UART1 TX RC2 RA7 ANA7 +3.3V +3.3V +5V +5V +3.3V +3.3V +5V +5V
RC3
RA6
UART1 RX RC3 RA6 ANA6 GND GND 1 GND GND GND GND 3 GND GND
RB2
RA5
I2C1 SDA RB2 RA5 ANA5
RB1
RB3
I2C1 SCL RB1 RB3 ANB3 PWM[2/3]
Curiosity Nano Base for Click boards™
RC4
RB0
SPI1 MOSI RC4 RB0 ANB0 PWM[2/3]
RC5
RA2
SPI1 MISO RC5 RA2 ANA2
Xplained Pro Extension
RC6
RA1
SPI1 SCK RC6 RA1 ANA1
EXT1
Figure 7-4. PIC18F57Q43 Curiosity Nano Pinout Mapping
RD4
RA0
SPI1 SS RD4 RA0 ANA0 1 2
PIC18F57Q43
GND
GND
GND
GND ID GND
RA3
RD7
UART3 TX RA3 RD7 RA1 AN PWM RB3 RA1 RA2
RA4
RD6
UART3 RX RA4 RD6 RC7 RST INT RE2 RC7 RD5
RE2
RD5
RE2 RD5 RD6 CS RX RA4 RB3 RA5
RC7
RB5
RC7 RB5 RC6 SCK TX RA3 RE2 RD7
RF7
RD0
RD0 RF7 RC5 MISO SCL RB1 RB2 RB1
RF6
RD1
RD1 RF6 RC4 MOSI SDA RB2 RA4 RA3
RF5
RD2
RD2 RF5 +3.3V +3.3V +5V +5V RD6 RC4
RF4
RD3
RD3 RF4 GND GND 2 GND GND RC5 RC6
GND
GND
GND
GND GND +3.3V
RF0
RE1
CDC RX UART[1/3/5] TX RF0 RE1 19 20
RF1
RE0
CDC TX UART[1/3/5] RX RF1 RE0
LED0
RF2
RC1
RF2 RC1 (SOSCI)
RF3
RC0
LED0 RF3 SW0 RC0 (SOSCO)
DS40002186A-page 29
Appendix
PIC18F57Q43 Curiosity Nano
PIC18F57Q43 Curiosity Nano
Appendix
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: 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 7-6. Details about connecting an external debugger are described in 3.6 Connecting External
Debuggers.
VCC_TARGET
VCC_LEVEL
LDO
VCC_P3V3
GPIO straps
PA04/PA06 DBG0
PA07 DBG1
DEBUGGER
PA08 DBG2
PA16 Level-Shift DBG3 TARGET
PA00 CDC TX UART RX
PA01 CDC RX UART TX
DIR x 5
CDC RX DBG0
CDC TX DBG1
DBG2
DBG3
Customer Support
Users of Microchip products can receive assistance through several channels:
• Distributor or Representative
• Local Sales Office
• Embedded Solutions Engineer (ESE)
• Technical Support
Customers should contact their distributor, representative or ESE for support. Local sales offices are also available to
help customers. A listing of sales offices and locations is included in this document.
Technical support is available through the website at: http://www.microchip.com/support
Legal Notice
Information contained in this publication regarding device applications and the like is provided only for your
convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with
Trademarks
The Microchip name and logo, the Microchip logo, Adaptec, AnyRate, AVR, AVR logo, AVR Freaks, BesTime,
BitCloud, chipKIT, chipKIT logo, CryptoMemory, CryptoRF, dsPIC, FlashFlex, flexPWR, HELDO, IGLOO, JukeBlox,
KeeLoq, Kleer, LANCheck, LinkMD, maXStylus, maXTouch, MediaLB, megaAVR, Microsemi, Microsemi logo, MOST,
MOST logo, MPLAB, 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, Hyper Speed Control,
HyperLight Load, IntelliMOS, Libero, motorBench, mTouch, Powermite 3, Precision Edge, ProASIC, ProASIC Plus,
ProASIC 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 Key Suppression, AKS, Analog-for-the-Digital Age, Any Capacitor, AnyIn, AnyOut, BlueSky, BodyCom,
CodeGuard, CryptoAuthentication, CryptoAutomotive, CryptoCompanion, CryptoController, dsPICDEM,
dsPICDEM.net, Dynamic Average Matching, DAM, ECAN, EtherGREEN, In-Circuit Serial Programming, ICSP,
INICnet, Inter-Chip Connectivity, JitterBlocker, KleerNet, KleerNet logo, memBrain, Mindi, MiWi, MPASM, MPF,
MPLAB Certified logo, MPLIB, MPLINK, MultiTRAK, NetDetach, Omniscient Code Generation, PICDEM,
PICDEM.net, PICkit, PICtail, PowerSmart, PureSilicon, QMatrix, REAL ICE, Ripple Blocker, SAM-ICE, Serial Quad
I/O, SMART-I.S., SQI, SuperSwitcher, SuperSwitcher II, Total Endurance, TSHARC, USBCheck, VariSense,
ViewSpan, WiperLock, Wireless DNA, and ZENA are trademarks of Microchip Technology Incorporated in the U.S.A.
and other countries.
SQTP is a service mark of Microchip Technology Incorporated in the U.S.A.
The Adaptec logo, Frequency on Demand, Silicon Storage Technology, and Symmcom are registered trademarks of
Microchip Technology Inc. in other countries.
GestIC is a registered trademark of Microchip Technology Germany II GmbH & Co. KG, a subsidiary of Microchip
Technology Inc., in other countries.
All other trademarks mentioned herein are property of their respective companies.
© 2020, Microchip Technology Incorporated, Printed in the U.S.A., All Rights Reserved.
ISBN: 978-1-5224-5774-9