Microchip Technology PIC18F47K42 Curiosity Nano Hardware User'S Manual Download Page 8

When receiving data from the target, the on-board debugger will queue up the incoming bytes into 64-byte frames,
which are sent to the USB queue for transmission to the host when they are full. Incomplete frames are also pushed
to the USB queue at approximately 100 ms intervals, triggered by USB start-of-frame tokens. Up to 8 x 64-byte
frames can be active at any time.

If the host, or the software running on it, fails to receive data fast enough, an overrun will occur. When this happens,
the last-filled buffer frame will be recycled instead of being sent to the USB queue, and a full frame of data will be
lost. To prevent this occurrence, the user must ensure that the CDC data pipe is being read continuously, or the
incoming data rate must be reduced.

3.1.2 

Mass Storage Disk

A simple way to program the target device is through drag and drop with 

.hex

 files.

3.1.2.1 

Mass Storage Device

The on-board debugger implements a highly optimized variant of the FAT12 file system that has a number of
limitations, partly due to the nature of FAT12 itself and optimizations made to fulfill its purpose for its embedded
application.

The CURIOSITY drive is USB Chapter 9-compliant as a mass storage device but does not, in any way, fulfill the
expectations of a general purpose mass storage device. This behavior is intentional.

The on-board debugger enumerates as a Curiosity Nano USB device that can be found in the disk drives section of
the Windows device manager. The CURIOSITY drive appears in the file manager and claims the next available drive
letter in the system.

The CURIOSITY drive contains approximately one MB of free space. This does not reflect the size of the target
device’s Flash in any way. When programming a 

.hex

 file, the binary data are encoded 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 filename may appear in
the disk directory listing. This is merely the operating system’s view of the directory, which in reality has not been
updated. It is not possible to read out the file contents. Removing and replugging the kit will return the file system to
its original state, but the target will still contain the application that has been previously 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 the development board website

KIT-INFO.TXT

 - a text file containing details about the kit firmware, name, serial number, and device

STATUS.TXT

 - a text file containing the programming status of the board

Info: 

 

STATUS.TXT

 is dynamically updated by the on-board debugger, the contents may be cached by the

OS and therefore not reflect the correct status.

3.1.2.2 

Configuration Words

Configuration Words (PIC

®

 MCU Targets)

Configuration Word settings included in the project being programmed after program Flash is programmed. The
debugger will 

not

 mask out any bits in the Configuration Words when writing them, but since it uses Low-Voltage

Programming mode, it is unable to clear the LVP Configuration bit. If the incorrect clock source is selected, for
example, and the board does not boot, it is always possible to perform a bulk erase (always done before
programming) and restore the device to its default settings.

 PIC18F47K42 Curiosity Nano

Curiosity Nano

©

 2019 Microchip Technology Inc.

 User Guide

DS50002899B-page 8

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: