1 2011-2015 Microchip Technology X IDEUser s GuideDS50002027D-page 2 2011-2015 Microchip Technology contained in this publication regarding deviceapplications and the like is provided only for your convenienceand may be superseded by updates. It is your responsibility toensure that your application meets with your MAKES NO REPRESENTATIONS ORWARRANTIES OF ANY KIND WHETHER EXPRESS ORIMPLIED, WRITTEN OR ORAL, STATUTORY OROTHERWISE, RELATED TO THE INFORMATION,INCLUDING BUT NOT LIMITED TO ITS CONDITION,QUALITY, PERFORMANCE, MERCHANTABILITY ORFITNESS FOR PURPOSE.
2 Microchip disclaims all liabilityarising from this information and its use. Use of Microchipdevices in life support and/or safety applications is entirely atthe buyer s risk, and the buyer agrees to defend, indemnify andhold harmless Microchip from any and all damages, claims,suits, or expenses resulting from such use. No licenses areconveyed, implicitly or otherwise, under any Microchipintellectual property rights unless otherwise the following details of the code protection feature on Microchip devices: Microchip products meet the specification contained in their particular Microchip Data Sheet.
3 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.
4 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 ourproducts. Attempts to break Microchip s code protection feature may be a violation of the Digital Millennium Copyright Act. If such actsallow unauthorized access to your software or other copyrighted work, you may have a right to sue for relief under that 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.
5 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 MANAGEMENT SYSTEM CERTIFIE D BY DNV == ISO/TS 16949 == TrademarksThe Microchip name and logo, the Microchip logo, dsPIC, FlashFlex, flexPWR, JukeBlox, KEELOQ, KEELOQ logo, Kleer, LANC heck, MediaLB, MOST, MOST logo, MPLAB , OptoLyzer, PIC, PICSTART, PIC32 logo, RightTouch, SpyNIC, SST, SST Logo, SuperFlash and UNI/O are registered trademarks of Microchip Technology Incorporated in the and other Embedded Control Solutions Company and mTouch are registered trademarks of Microchip Technology Incorporated in the Age, BodyCom, chipKIT, chipKIT logo, CodeGuard, dsPICDEM, , ECAN.
6 In-Circuit Serial Programming, ICSP, Inter-Chip Connectivity, KleerNet, KleerNet logo, MiWi, MPASM, MPF, MPLAB Certified logo, MPLIB, MPLINK, MultiTRAK, NetDetach, Omniscient Code Generation, PICDEM, , PICkit, PICtail, RightTouch logo, REAL ICE, SQI, Serial Quad I/O, Total Endurance, TSHARC, USBC heck, VariSense, ViewSpan, WiperLock, Wireless DNA, and ZENA are trademarks of Microchip Technology Incorporated in the and other is a service mark of Microchip Technology Incorporated in the Storage Technology is a registered trademark of Microchip Technology Inc. in other is a registered trademark of Microchip Technology Germany II GmbH & Co.
7 KG, a subsidiary of Microchip Technology Inc., in other countries. All other trademarks mentioned herein are property of their respective companies. 2011-2015, Microchip Technology Incorporated, Printed in the , All Rights Reserved. ISBN: 978-1-63277-614-3 2011-2015 Microchip Technology 3 MPLAB X IDEUSER S GUIDET able of ContentsPreface .. 9 Chapter 1. What is MPLAB x ide ? Introduction .. An Overview of Embedded Systems .. The Development Cycle .. Project Manager .. Language Tools .. Target Debugging .. Device Programming .. Components of MPLAB x ide .. MPLAB x ide Online Help .. Other MPLAB x ide Documentation.
8 Web Site .. MPLAB X Store .. MPLAB x ide Updates .. 30 Chapter 2. Before You Introduction .. Install JRE and MPLAB x ide .. Install the USB Device Drivers (For Hardware Tools) .. Connect to a Target (For Hardware Tools) .. Install the Language Tools .. Launch the IDE and View the Desktop .. Access Information from the Start Page .. Shop the MPLAB X Store .. Launch Multiple Instances of the IDE .. Launch Multiple Versions of the IDE .. 43 Chapter 3. Introduction .. Setting Up the Hardware and Software .. Creating and Setting Up a Project .. Running and Debugging Code.
9 64 Chapter 4. Basic Working with MPLAB x ide Projects .. Create a New Project .. View Changes In Desktop Panes .. 82 MPLAB IDE user s GuideDS50002027D-page 4 2011-2015 Microchip Technology View or Make Changes to Project Properties .. Set Up or Change Debugger/Programmer Tool Options .. Set Up or Change Language Tool Options .. Set Language Tool Locations .. Set Other Tool Options .. Create a New File .. Add Existing Files to a Project .. Editor Usage .. Add and Set Up Library and Object Files .. Set File and Folder Properties .. Set Build Properties .. Build a Project .. Run Code.
10 Debug Run Code .. Control Program Execution with Breakpoints .. Step Through Code .. Watch Symbol Values Change .. Watch Local Variable Values Change .. View/Change Device Memory (including Configuration Bits) .. Program a Device .. 116 Chapter 5. Additional Performing Additional Tasks .. Import MPLAB Legacy Project .. Prebuilt Projects .. Loadable Projects, Files and Symbols .. Loadable Projects and Files: Bootloaders .. Library Projects .. Other Embedded Projects .. Sample Projects .. Work with Other Types of Files .. Modify or Create Code Templates .. Switch Hardware or Language Tools.