Microchip Technology PIC18F47K42 Curiosity Nano Скачать руководство пользователя страница 6

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, and relevant user guides, application

notes, data sheets, and example code are easy to find. The on-board debugger features a Virtual COM port (CDC)
for serial communication to a host PC, and a Data Gateway Interface (DGI) GPIO logic analyzer pin.

3.1 

On-board Debugger

The PIC18F47K42 Curiosity Nano contains an on-board debugger for programming and debugging. The on-board
debugger is a composite USB device of several interfaces: A debugger, a mass storage device, a data gateway, and
a Virtual COM port (CDC).

Together with Microchip MPLAB

®

 X IDE, the on-board debugger can program and debug the PIC18F47K42.

A Data Gateway Interface (DGI) is available for use with the logic analyzer channels for code instrumentation to
visualize the program flow. DGI GPIOs can be graphed using the 

Data Visualizer

.

The Virtual COM port (CDC) is connected to a Universal Asynchronous Receiver/Transmitter (UART) on the
PIC18F47K42 and provides an easy way to communicate with the target application through terminal software.

The on-board debugger controls a Power and Status LED (marked PS) on the PIC18F47K42 Curiosity Nano. The
table below 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.

Normal operation

LED is ON.

Programming

Activity indicator: The LED flashes slowly during programming/debugging.

Fault

The LED flashes fast if a power fault is detected.

Sleep/Off

LED is OFF. The on-board debugger is either in Sleep mode or powered down. This
can occur if the kit is externally powered.

3.1.1 

Virtual COM Port (CDC)

The Virtual COM port (CDC) is a general purpose serial bridge between a host PC and a target device.

3.1.1.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 COM port. The CDC can be used to stream arbitrary data in
both directions between the host and the target: All characters sent from the host will be sent through a UART on the
CDC TX pin, and UART characters sent into the CDC RX pin will be sent back to the host through the Virtual COM
port.

On Windows machines, the CDC will enumerate as 

Curiosity Virtual COM Port

 and appear in the Ports section of the

Windows Device Manager. The COM port number can also be found there.

On Linux machines, the CDC will enumerate and appear as 

/dev/ttyACM#

.

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#

.

 PIC18F47K42 Curiosity Nano

Curiosity Nano

©

 2019 Microchip Technology Inc.

 User Guide

DS50002899B-page 6

Содержание PIC18F47K42 Curiosity Nano

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 28: ...Mouser Electronics Authorized Distributor Click to View Pricing Inventory Delivery Lifecycle Information Microchip DM182028...

Отзывы: