logo资料库

官方手册(52116A).pdf

第1页 / 共94页
第2页 / 共94页
第3页 / 共94页
第4页 / 共94页
第5页 / 共94页
第6页 / 共94页
第7页 / 共94页
第8页 / 共94页
资料共94页,剩余部分请下载后查看
PICkit 3 In-Circuit Debugger/Programmer User’s Guide For MPLAB X IDE
EU Declaration of Conformity
Table of Contents
Preface
INTRODUCTION
DOCUMENT LAYOUT
CONVENTIONS USED IN THIS GUIDE
DOCUMENTATION CONVENTIONS
RECOMMENDED READING
Part 1 – Getting Started
Chapter 1. About the In-Circuit Debugger/Programmer
1.1 Introduction
1.2 PICkit 3 In-Circuit Debugger/Programmer Defined
Figure 1-1: PICkit™ 3 MCU In-Circuit Debugger/Programmer
1.2.1 Lanyard Loop
1.2.2 USB Port Connection
1.2.3 Pin 1 Marker
1.2.4 Programming Connector
Figure 1-2: PICKIT™ 3 Programmer Connector PinOut
1.2.5 Indicator LEDs
1.2.6 Push Button
1.3 How the PICkit 3 In-Circuit Debugger/Programmer Helps You
1.4 PICkit 3 In-Circuit Debugger/Programmer Components
Figure 1-3: Basic Debugger System
Chapter 2. Operation
2.1 Introduction
2.2 Tools Comparison
Table 2-1: Debug Tools Comparison
2.3 PICkit 3 vs. PICkit 2
2.4 Debugger to Target Communication
Figure 2-1: Standard Debugger System – Device with On-Board ICE Circuitry
Figure 2-2: Standard Debugger System – ICE Device
2.5 Communication Connections
2.5.1.1 Using Single In-Line Connector
Table 2-2: Target Connector Pinout
2.5.1.2 Using An Adapter
Figure 2-3: Standard RJ-11 Connection at Target
Figure 2-4: Standard Connection Target Circuitry
Figure 2-5: Improper Circuit components
2.6 Debugging
Figure 2-6: Proper connections for programming
2.7 Requirements for Debugging
Figure 2-7: PICkit™ 3 Debugger Ready for Debugging
2.8 Programming
2.9 Resources Used by the Debugger
Chapter 3. Debugger Usage
3.1 Introduction
3.2 Installation and Setup
3.3 Common Debug Features
3.4 Connecting the Target
Figure 3-1: Insert Communications and USB/Power Cables
3.5 Setting Up the Target Board
3.5.1 Using Production Devices
3.5.2 Using ICE Devices
Figure 3-2: Using an ICD Header Board
3.5.4 Powering the Target
3.6 Setting Up MPLAB X IDE
3.7 Starting and Stopping Debugging
3.8 Viewing Processor Memory and Files
Chapter 4. PICkit 3 Debug Express
4.1 Introduction
4.2 PICkit 3 Debug Express Kit Contents
4.3 Installing the Hardware and Software
4.3.1 Reserved Resources
Figure 4-1: Connecting the Demo Board to the PICkit™ 3
Chapter 5. PICkit 3 Programmer-To-Go
5.1 Introduction
5.2 USB Power for PICkit 3 Programmer-To-Go
5.2.1 Power Requirements
5.3 PICkit 3 Programmer-To-Go Supported Devices
Table 5-1: Programmer-To-Go Supported Devices
5.4 Setting up PICkit 3 for Programmer-To-Go Operation
5.4.1 Set Up Programmer-to-Go
Figure 5-1: PICkit 3 Project Properties
Figure 5-2: Name the Image
Figure 5-3: Programmer To Go Tab
5.4.2 Download to PICkit 3 Complete
Figure 5-4: Download to PICkit 3
5.5 Using PICkit 3 Programmer-To-Go
Table 5-2: Programmer-To-Go Operation Feedback Codes
5.6 Exiting Programmer-To-Go Mode
Part 2 – Troubleshooting
Chapter 6. Troubleshooting First Steps
6.1 Introduction
6.2 The 5 Questions to Answer First
6.3 Top 10 Reasons Why You Can’t Debug
6.4 Other Things to Consider
Chapter 7. Frequently Asked Questions (FAQs)
7.1 Introduction
7.2 How Does It Work
7.3 What’s Wrong
Chapter 8. Error Messages
8.1 Introduction
8.2 Specific Error Messages
8.3 General Corrective Actions
Chapter 9. Engineering Technical Notes (ETNs)
Part 3 – Reference
Appendix A. Hardware Specification
A.1 Introduction
A.2 Highlights
A.3 Declaration of Conformity
A.4 USB Port/Power
A.5 PICkit 3 In-Circuit Debugger/Programmer
A.6 Standard Communication Hardware
Figure A-1: 6-Pin Standard Pinout
A.6.2.1 Modular Connector Specification
Figure A-2: Modular Connector Pinout of Target Board
A.6.2.2 Modular Plug Specification
A.6.2.3 Modular Cable Specification
A.7 Target Board Considerations
Appendix B. PICkit 3 Schematics
Figure B-1: PICkit™ 3 Schematic Diagram (Page 1 of 2)
Figure B-2: PICkit™ 3 Schematic Diagram (Page 2 of 2)
Appendix C. Revision History
Glossary
Index
Worldwide Sales and Service
PICkit™ 3 In-Circuit Debugger/Programmer User’s Guide For MPLAB® X IDE  2013 Microchip Technology Inc. DS52116A
Note the following details of the code protection feature on Microchip devices: • Microchip products meet the specification contained in their particular Microchip Data Sheet. • • • • Microchip believes that its family of products is one of the most secure families of its kind on the market today, when used in the intended manner and under normal conditions. There are dishonest and possibly illegal methods used to breach the code protection feature. All of these methods, to our knowledge, require using the Microchip products in a manner outside the operating specifications contained in Microchip’s Data Sheets. Most likely, the person doing so is engaged in theft of intellectual property. Microchip is willing to work with the customer who is concerned about the integrity of their code. Neither Microchip nor any other semiconductor manufacturer can guarantee the security of their code. Code protection does not mean that we are guaranteeing the product as “unbreakable.” Code protection is constantly evolving. We at Microchip are committed to continuously improving the code protection features of our products. Attempts to break Microchip’s code protection feature may be a violation of the Digital Millennium Copyright Act. If such acts allow unauthorized access to your software or other copyrighted work, you may have a right to sue for relief under that Act. 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 your specifications. MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY OR OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY OR FITNESS FOR PURPOSE. Microchip disclaims all liability arising from this information and its use. Use of Microchip devices in life support and/or safety applications is entirely at the buyer’s risk, and the buyer agrees to defend, indemnify and hold harmless Microchip from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any Microchip intellectual property rights. QUALITY MANAGEMENT SYSTEM CERTIFIED BY DNV == ISO/TS 16949 == Trademarks The Microchip name and logo, the Microchip logo, dsPIC, FlashFlex, KEELOQ, KEELOQ logo, MPLAB, PIC, PICmicro, PICSTART, PIC32 logo, rfPIC, SST, SST Logo, SuperFlash and UNI/O are registered trademarks of Microchip Technology Incorporated in the U.S.A. and other countries. FilterLab, Hampshire, HI-TECH C, Linear Active Thermistor, MTP, SEEVAL and The Embedded Control Solutions Company are registered trademarks of Microchip Technology Incorporated in the U.S.A. Silicon Storage Technology is a registered trademark of Microchip Technology Inc. in other countries. Analog-for-the-Digital Age, Application Maestro, BodyCom, chipKIT, chipKIT logo, CodeGuard, dsPICDEM, dsPICDEM.net, dsPICworks, dsSPEAK, ECAN, ECONOMONITOR, FanSense, HI-TIDE, In-Circuit Serial Programming, ICSP, Mindi, MiWi, MPASM, MPF, MPLAB Certified logo, MPLIB, MPLINK, mTouch, Omniscient Code Generation, PICC, PICC-18, PICDEM, PICDEM.net, PICkit, PICtail, REAL ICE, rfLAB, Select Mode, SQI, Serial Quad I/O, Total Endurance, TSHARC, UniWinDriver, WiperLock, ZENA and Z-Scale 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. GestIC and ULPP are registered trademarks 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. © 2013, Microchip Technology Incorporated, Printed in the U.S.A., All Rights Reserved. Printed on recycled paper. ISBN: 978-1-62077-008-5 Microchip received ISO/TS-16949:2009 certification for its worldwide headquarters, design and wafer fabrication facilities in Chandler and Tempe, Arizona; Gresham, Oregon and design centers in California and India. The Company’s quality system processes and procedures are for its PIC® MCUs and dsPIC® DSCs, KEELOQ® code hopping devices, Serial EEPROMs, microperipherals, nonvolatile memory and analog products. In addition, Microchip’s quality system for the design and manufacture of development systems is ISO 9001:2000 certified. DS52116A-page 2  2013 Microchip Technology Inc.
Object of Declaration: PICkit™3 In-Circuit Debugger/Programmer  2013 Microchip Technology Inc. DS52116A-page 3
MPLAB® X PICkit™ 3 User’s Guide NOTES: DS52116A-page 4  2013 Microchip Technology Inc.
MPLAB® X PICkit™ 3 USER’S GUIDE Table of Contents Preface ........................................................................................................................... 7 Getting Started Chapter 1. About the In-Circuit Debugger/Programmer 1.1 Introduction ................................................................................................... 13 1.2 PICkit 3 In-Circuit Debugger/Programmer Defined ...................................... 13 1.3 How the PICkit 3 In-Circuit Debugger/Programmer Helps You .................... 16 1.4 PICkit 3 In-Circuit Debugger/Programmer Components .............................. 16 Chapter 2. Operation 2.1 Introduction ................................................................................................... 17 2.2 Tools Comparison ........................................................................................ 18 2.3 PICkit 3 vs. PICkit 2 ...................................................................................... 18 2.4 Debugger to Target Communication ............................................................ 19 2.5 Communication Connections ....................................................................... 21 2.6 Debugging .................................................................................................... 24 2.7 Requirements for Debugging ....................................................................... 25 2.8 Programming ................................................................................................ 27 2.9 Resources Used by the Debugger ............................................................... 27 Chapter 3. Debugger Usage 3.1 Introduction ................................................................................................... 29 3.2 Installation and Setup ................................................................................... 29 3.3 Common Debug Features ............................................................................ 30 3.4 Connecting the Target .................................................................................. 30 3.5 Setting Up the Target Board ......................................................................... 31 3.6 Setting Up MPLAB X IDE ............................................................................. 33 3.7 Starting and Stopping Debugging ................................................................ 33 3.8 Viewing Processor Memory and Files .......................................................... 33 Chapter 4. PICkit 3 Debug Express 4.1 Introduction ................................................................................................... 35 4.2 PICkit 3 Debug Express Kit Contents ........................................................... 35 4.3 Installing the Hardware and Software .......................................................... 35  2013 Microchip Technology Inc. DS52116A-page 5
MPLAB® X PICkit™ 3 User’s Guide Chapter 5. PICkit 3 Programmer-To-Go 5.1 Introduction ................................................................................................... 37 5.2 USB Power for PICkit 3 Programmer-To-Go ................................................ 37 5.3 PICkit 3 Programmer-To-Go Supported Devices ......................................... 38 5.4 Setting up PICkit 3 for Programmer-To-Go Operation ................................. 39 5.5 Using PICkit 3 Programmer-To-Go .............................................................. 42 5.6 Exiting Programmer-To-Go Mode ................................................................ 43 Troubleshooting Chapter 6. Troubleshooting First Steps 6.1 Introduction ................................................................................................... 47 6.2 The 5 Questions to Answer First .................................................................. 47 6.3 Top 10 Reasons Why You Can’t Debug ...................................................... 47 6.4 Other Things to Consider ............................................................................. 48 Chapter 7. Frequently Asked Questions (FAQs) 7.1 Introduction ................................................................................................... 49 7.2 How Does It Work ........................................................................................ 49 7.3 What’s Wrong ............................................................................................... 50 Chapter 8. Error Messages 8.1 Introduction ................................................................................................... 53 8.2 Specific Error Messages .............................................................................. 53 8.3 General Corrective Actions .......................................................................... 54 Chapter 9. Engineering Technical Notes (ETNs) Reference Appendix A. Hardware Specification A.1 Introduction .................................................................................................. 61 A.2 Highlights ..................................................................................................... 61 A.3 Declaration of Conformity ............................................................................ 61 A.4 USB Port/Power ........................................................................................... 62 A.5 PICkit 3 In-Circuit Debugger/Programmer ................................................... 62 A.6 Standard Communication Hardware ............................................................ 63 A.7 Target Board Considerations ....................................................................... 65 Appendix B. PICkit 3 Schematics Appendix C. Revision History Glossary .......................................................................................................................71 Index .............................................................................................................................91 Worldwide Sales and Service......................................................................................94 DS52116A-page 6  2013 Microchip Technology Inc.
MPLAB® X PICkit™ 3 USER’S GUIDE Preface NOTICE TO CUSTOMERS All documentation becomes dated, and this manual is no exception. Microchip tools and documentation are constantly evolving to meet customer needs, so some actual dialogs and/or tool descriptions may differ from those in this document. Please refer to our web site (www.microchip.com) to obtain the latest documentation available. Documents are identified with a “DS” number. This number is located on the bottom of each page, in front of the page number. The numbering convention for the DS number is “DSXXXXXA”, where “XXXXX” is the document number and “A” is the revision level of the document. For the most up-to-date information on development tools, see the MPLAB® X IDE online help. Select the Help menu, and then Topics to open a list of available online help files. INTRODUCTION This chapter contains general information that will be useful to know before using the PICkit 3™ starter kit. Items discussed in this chapter include: • Document Layout • Conventions Used in this Guide • Recommended Reading  2013 Microchip Technology Inc. DS52116A-page 7
MPLAB® X PICkit™ 3 User’s Guide DOCUMENT LAYOUT This document describes how to use the PICkit 3 as a development tool to emulate and debug firmware on a target board, as well as how to program devices. The document is organized as follows: Part 1 – Getting Started • Chapter 1. About the In-Circuit Debugger/Programmer Describes the PICkit 3, and how it can help you develop your application. • Chapter 2. Operation Presents the theory of PICkit 3 operation. Explains configuration options. • Chapter 3. Debugger Usage Discusses installation and set up, common debug features, using targets, setting up MPLAB® Integrated Development Environment (IDE), and related debugger topics. • Chapter 4. PICkit 3 Debug Express Provides basic information about using the PICkit 3 Debug Express. • Chapter 5. PICkit 3 Programmer-To-Go Provides instructions for using the PICkit 3 unit to program a device even though it is not connected to a personal computer (PC). Part 2 – Troubleshooting • Chapter 6. Troubleshooting First Steps – The first things you should try if you are having issues with debugger operation. • Chapter 7. Frequently Asked Questions (FAQs) – A list of frequently asked questions, useful for troubleshooting. • Chapter 8. Error Messages – A list of error messages and suggested resolutions. • Chapter 9. Engineering Technical Notes (ETNs) Part 3 – Reference • Appendix A. Hardware Specification – The hardware and electrical specifications of the debugger system. • Appendix B. PICkit 3 Schematics • Appendix C. Revision History DS52116A-page 8  2013 Microchip Technology Inc.
分享到:
收藏