Part Number Hot Search : 
CP2102 RD15HV 168T314V 2508DX KSC3503 P34AH 8F452 NTE2547
Product Description
Full Text Search
 

To Download DS51795A Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  ? 2009 microchip technology inc. DS51795A pickit? 3 programmer/debugger user?s guide
DS51795A-page ii ? 2009 microchip technology inc. 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. trademarks the microchip name and logo, the microchip logo, accuron, dspic, k ee l oq , k ee l oq logo, mplab, pic, picmicro, picstart, rfpic, smartshunt and uni/o are registered trademarks of microchip tec hnology incorporated in the u.s.a. and other countries. filterlab, linear active thermistor, mxdev, mxlab, seeval, smartsensor and the embedded control solutions company are registered trademarks of microchip technology incorporated in the u.s.a. analog-for-the-digital age, appl ication maestro, codeguard, dspicdem, dspicdem.net, dspicworks, dsspeak, ecan, economonitor, fansense, in-circuit serial programming, icsp, icepic, mindi, miwi, mpasm, mplab certified logo, mplib, mplink, mtouch, pickit, picdem, picdem.net, pictail, pic 32 logo, powercal, powerinfo, powermate, powertool, real ice, rflab, select mode, total endurance, wiperlock 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. all other trademarks mentioned herein are property of their respective companies. ? 2009, microchip technology incorporated, printed in the u.s.a., all rights reserved. printed on recycled paper. note the following details of the code protection feature on microchip devices: ? microchip products meet the specification cont ained in their particular microchip data sheet. ? microchip believes that its family of products is one of the mo st secure families of its kind on the market today, when used i n 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 produc ts 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 c an 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 co mmitted to continuously improvi ng the code protection features of our products. attempts to break microchip?s c ode 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. microchip received iso/ts-16949:2002 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, k ee l oq ? 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.
pickit? 3 user?s guide ? 2009 microchip technology inc. DS51795A-page iii table of contents preface ....................................................................................................................... .... 1 chapter 1. overview 1.1 introduction ..................................................................................................... 9 1.2 pickit 3 programmer/debugger defined ........................................................ 9 1.3 how the pickit 3 programmer/debugger helps you ................................... 11 1.4 pickit 3 programmer/debugger components .............................................. 12 1.5 device and feature support ........................................................................ 13 chapter 2. theory of operation 2.1 introduction ................................................................................................... 15 2.2 pickit 3 vs. pickit 2 ...................................................................................... 15 2.3 debugger to target communication ............................................................ 15 2.4 communication connections ....................................................................... 17 2.5 debugging .................................................................................................... 19 2.6 requirements for debugging ....................................................................... 20 2.7 programming ................................................................................................ 22 2.8 resources used by the debugger ............................................................... 22 chapter 3. installation 3.1 introduction ................................................................................................... 23 3.2 installing the software .................................................................................. 23 3.3 connecting the target .................................................................................. 23 3.4 setting up the target board ......................................................................... 24 3.5 setting up mplab ide ................................................................................ 25 chapter 4. general setup 4.1 introduction ................................................................................................... 27 4.2 starting the mplab ide software ................................................................ 27 4.3 creating a project ......................................................................................... 27 4.4 viewing the project ....................................................................................... 28 4.5 building the project ...................................................................................... 28 4.6 setting configuration bits ............................................................................. 28 4.7 setting the debugger or programmer .......................................................... 28 4.8 debugger/programmer limitations .............................................................. 29 chapter 5. pickit 3 debug express 5.1 introduction ................................................................................................... 31 5.2 pickit 3 debug express kit contents ........................................................... 31 5.3 installing the hardware and software .......................................................... 31
pickit? 3 user?s guide DS51795A-page iv ? 2009 microchip technology inc. chapter 6. troubleshooting first steps 6.1 introduction ................................................................................................... 35 6.2 the 5 questions to answer first .................................................................. 35 6.3 top 10 reasons why you can?t debug ...................................................... 35 6.4 other things to consider ............................................................................. 36 chapter 7. frequently asked questions (faqs) 7.1 introduction ................................................................................................... 37 7.2 how does it work ........................................................................................ 37 7.3 what?s wrong ............................................................................................... 38 chapter 8. error messages 8.1 introduction ................................................................................................... 41 8.2 specific error messages .............................................................................. 41 8.3 general corrective actions .......................................................................... 44 chapter 9. debugger function summary 9.1 introduction ................................................................................................... 49 9.2 debugging functions ................................................................................... 49 9.3 debugging dialogs/windows ....................................................................... 51 9.4 programming functions ............................................................................... 55 9.5 settings dialog ............................................................................................. 56 chapter 10. hardware specification 10.1 introduction ................................................................................................. 59 10.2 highlights .................................................................................................... 59 10.3 declaration of conformity ........................................................................... 59 10.4 usb port/power ......................................................................................... 60 10.5 pickit 3 programmer/debugger ................................................................. 60 10.6 standard communication hardware .......................................................... 61 10.7 target board considerations ..................................................................... 63 appendix a. pickit 3 schematics appendix b. operational advisory glossary ...................................................................................................................... .71 index ......................................................................................................................... ....91 worldwide sales and service .....................................................................................94
pickit? 3 user?s guide ? 2009 microchip technology inc. DS51795A-page 1 preface introduction this chapter contains general information that will be useful to know before using pickit? 3 programmer/debugger. items discussed include: ? document layout ? conventions used in this guide ? warranty registration ? recommended reading ? the microchip web site ? development systems customer change notification service ? customer support 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 ? ide on-line help. select the help menu, and then topics to open a list of available on-line help files.
pickit? 3 user?s guide DS51795A-page 2 ? 2009 microchip technology inc. document layout this document describes how to use the pickit 2as a development tool to emulate and debug firmware on a target board. the manual layout is as follows: ? chapter 1. overview ? an overview of the pickit 3 programmer/debugger. ? chapter 2. theory of operation ? a simplified description of how the pickit 3 programmer/debugger works. ? chapter 3. installation ? how to install the pickit 3 programmer/debugger. ? chapter 4. general setup ? provides instructions on how to get started using the pickit 3 programmer/debugger to program supported devices. ? chapter 5. pickit 3 debug express ? provides basic information on using the pickit? 3 debug express. ? chapter 6. troubleshooting first steps ? begins the troubleshooting process by identifying first steps and common reasons for problems with debugging. ? chapter 7. frequently asked questions (faqs) ? provides information on solving common problems. ? chapter 8. error messages ? provides specific error messages and general corrective actions. ? chapter 9. debugger function summary ? summarizes the available debugging functions. ? chapter 10. hardware specification ? details hardware and electrical specifications for the pickit 3. ? appendix a. pickit 3 schematics ? provides hardware schematic diagrams for the pickit 3 programmer/debugger. ? appendix b. operational advisory ? addresses operational issues to be considered when designing applications.
preface ? 2009 microchip technology inc. DS51795A-page 3 conventions used in this guide the following conventions may appear in this documentation: documentation conventions description represents examples arial font: italic referenced books mplab ? ide user?s guide emphasized text ...is the only compiler... initial caps a window the output window a dialog the settings dialog a menu selection select enable programmer quotes a field name in a window or dialog ?save project before build? underlined, italic with right angle bracket a menu path file>save bold characters a dialog button click ok a tab click the power tab text in angle brackets < > a key on the keyboard press , courier new font: plain sample source code #define start filenames autoexec.bat file paths c:\mcc18\h keywords _asm, _endasm, static command-line options -opa+, -opa- bit values 0, 1 constants 0xff,?a? italic a variable argument file .o , where file can be any valid filename square brackets [ ] optional arguments mpasmwin [options] file [options] curly brackets and pipe character: { | } choice of mutually exclusive arguments; an or selection errorlevel {0|1} ellipses... replaces repeated text var_name [, var_name...] represents code supplied by user void main (void) { ... }
pickit? 3 user?s guide DS51795A-page 4 ? 2009 microchip technology inc. warranty registration please complete the enclosed warranty registration card and mail it promptly. sending in the warranty registration card entitles users to receive new product updates. interim software releases are available at the microchip web site. recommended reading this user's guide describes how to use pickit 2. other useful documents are listed below. the following microchip documents are available and recommended as supplemental reference resources. 44-pin demo board user?s guide (ds41296) consult this document for instructions on how to use the 44-pin demo board as a development tool to emulate and debug firmware on a target board. low pin count demo board user?s guide (ds51556) consult this document for instructions on how to use microchip technology?s low pin count device (8-pin, 14-pin and 20-pin). this document includes a series of tutorials. mplab ? ide user?s guide/help (ds51519) consult this document for more information pertaining to the installation and features of the mplab integrated development environment (ide) software. an on-line help version is also available. in-circuit serial programmer? (icsp?) guide (ds30277) this document contains helpful design guidelines for successful icsp programming. it includes application notes on hardware designs and the icsp programming specifications. mpasm? assembler, mplink? object linker, mplib? object librarian user?s guide (ds33014) describes how to use the microchip pic ? mcu assembler (mpasm assembler), linker (mplink linker), and librarian (mplib librarian). readme for pickit? 3 debug express for the latest information on using the pickit 3 debug express, read the ? readme for pickit 3.htm ? file (an html file) in the readmes subdirectory of the mplab ide installation directory. the readme file contains updated information and known issues that may not be included in this user?s guide. pickit? 3 debug express c18 lessons these tutorials guide you through using the pickit 3 debug express with the mplab c compiler for pic18 mcu?s. they are available on the mplab ide cdrom and on the microchip web site. readme files for the latest information on using other tools, read the tool-specific readme files in the readmes subdirectory of the mplab ide installation directory. the readme files contain updated information and known issues that may not be included in this user?s guide.
preface ? 2009 microchip technology inc. DS51795A-page 5 the microchip web site microchip provides online support via our web site at www.microchip.com . this web site is used as a means to make files and information easily available to customers. accessible by using your favorite internet browser, the web site contains the following information: ? product support ? data sheets and errata, application notes and sample programs, design resources, user?s guides and hardware support documents, latest software releases and archived software ? general technical support ? frequently asked questions (faqs), technical support requests, online discussion groups, microchip consultant program member listing ? business of microchip ? product selector and ordering guides, latest microchip press releases, listing of seminars and events, listings of microchip sales offices, distributors and factory representatives development systems custome r change notification service microchip?s customer notification service helps keep customers current on microchip products. subscribers will receive e-mail notification whenever there are changes, updates, revisions or errata related to a specified product family or development tool of interest. to register, access the microchip web site at www.microchip.com , click on customer change notification and follow the registration instructions. the development systems product group categories are: ? compilers ? the latest information on microchip c compilers, assemblers, linkers and other language tools. these include all mplab c compilers; all mplab assemblers (including mpasm? assembler); all mplab linkers (including mplink? object linker); and all mplab librarians (including mplib? object librarian). ? emulators ? the latest information on microchip in-circuit emulators.these include the mplab real ice?, mplab ice 2000 in-circuit emulators ? in-circuit debuggers ? the latest information on the microchip in-circuit debuggers. these include the mplab icd 2, icd 3, pickit? 2 and pickit? 3. ? mplab ? ide ? the latest information on microchip mplab ide, the windows ? integrated development environment for development systems tools. this list is focused on the mplab ide, mplab ide project manager, mplab editor and mplab sim simulator, as well as general editing and debugging features. ? programmers ? the latest information on microchip programmers. these include the mplab pm3 device programmer and the picstart ? plus, pickit 2 and pickit 3 development programmers.
pickit? 3 user?s guide DS51795A-page 6 ? 2009 microchip technology inc. customer support users of microchip products can receive assistance through several channels: ? distributor or representative ? local sales office ? field application engineer (fae) ? technical support customers should contact their distributor, representative or field application engineer (fae) for support. local sales offices are also available to help customers. a listing of sales offices and locations is included in the back of this document. see our web site for a complete, up-to-date listing of sales offices. technical support is available through the web site at: http://support.microchip.com .
pickit? 3 user?s guide ? 2009 microchip technology inc. DS51795A-page 7 part 1 ? getting started chapter 1. overview....................................................................................................... 9 chapter 2. theory of operation .................................................................................. 15 chapter 3. installation.................................................................................................. 23 chapter 4. general setup ............................................................................................ 27 chapter 5. pickit 3 debug express ............................................................................ 31
pickit? 3 user?s guide DS51795A-page 8 ? 2009 microchip technology inc. notes:
pickit? 3 user?s guide ? 2009 microchip technology inc. DS51795A-page 9 chapter 1. overview 1.1 introduction an overview of the pickit 3 programmer/debugger system is given. ? pickit 3 programmer/debugger defined ? how the pickit 3 programmer/debugger helps you ? pickit 3 programmer/debugger components ? device and feature support 1.2 pickit 3 programmer/debugger defined the pickit 3 programmer/debugger (see figure 1-1) is a simple, low-cost in-circuit debugger that is controlled by a pc running mplab ide (v8.20 or greater) software on a windows ? platform. the pickit 3 programmer/debugger is an integral part of the development engineer?s toolsuite. the application usage can vary from software development to hardware integration. the pickit 3 programmer/d ebugger is a deb ugger syst em used for hardware and software development of microchip pic ? microcontrollers (mcus) and dspic ? digital signal controllers (dscs) that are based on in-circuit serial programming? (icsp?) and enhanced in-circuit serial programming 2-wire serial interfaces. in addition to debugger functions, the pickit 3 programmer/debugger system also may be used as a development programmer. the debugger system executes code like an actual device because it uses a device with built-in emulation circuitry, instead of a special debugger chip, for emulation. all available features of a given device are accessible interactively, and can be set and modified by the mplab ide interface. the pickit 3 debugger was developed for emulating embedded processors with debug facilities. the pickit 3 features include: ? full-speed usb support using windows standard drivers ? real-time execution ? processors run at maximum speeds ? built-in over-voltage/short circuit monitor ? low voltage to 5v (1.8-5v range) ? diagnostic leds (power, active, status) ? read/write program and data memory of microcontroller ? erase of all memory types (eeprom, id, configuration and program) with verification ? peripheral freeze at breakpoint note: the pickit 3 is intended for development programming. for production programming, please consider the mplab pm3 device programmer or other third party programmers designed for a production environment.
pickit? 3 user?s guide DS51795A-page 10 ? 2009 microchip technology inc. figure 1-1: pickit? 3 mcu programmer/debugger 1.2.1 lanyard connection a convenient lanyard connection is available on the programmer. 1.2.2 usb port connection the usb port connection is a usb mini-b connec tor. connect the pickit 3 to the pc using the supplied usb cable. 1.2.3 pin 1 marker this marker designates the location of pin 1 for proper connector alignment. 1.2.4 programming connector the programming connector is a 6-pin header (0.100" spacing) that connects to the target device. see the pinout specification in figure 1-2. 6 2 1 3 4 legend: 1 ? lanyard connection 2 ? usb port connection 3 ? pin 1 marker 4 ? programming connector 5 ? status leds 6 ? push button (future use) 5
overview ? 2009 microchip technology inc. DS51795A-page 11 figure 1-2: pickit? 3 pr ogrammer connector pinout 1.2.5 status leds the status leds indicate the status of the pickit 3. 1. power (green) ? power is supplied to the pickit 3 via the usb port. 2. active (blue) ? the pickit 3 has connection to the pc usb port and the communication link is active. 3. status: busy (yellow) ? the pickit 3 is busy with a function in progress, such as programming. error (red) ? the pickit 3 has encountered an error. 1.3 how the pickit 3 programmer/debugger helps you the pickit 3 programmer/debugger allows you to: ? debug your application on your own hardware in real time ? debug with hardware breakpoints ? set breakpoints based on internal events ? monitor internal file registers ? emulate at full speed ? program your device 1 2 3 4 5 6 * the 6-pin header (0.100" spacing) accepts 0.025" square pins. pin description* 1 = v pp /mclr 2 = v dd target 3 = v ss (ground) 4 = icspdat/pgd 5 = icspclk/pgc 6 = lvp pin 1 indicator note: the programming connector pin functions are different for programming serial eeproms and hcs devices. see the readme file for the pickit 3 ( h elp>readme) included with the mplab ide software for these pinouts.
pickit? 3 user?s guide DS51795A-page 12 ? 2009 microchip technology inc. 1.4 pickit 3 programmer/debugger components the components of the pickit 3 programmer/debugger system are: 1. pickit 3 with indicator lights for power, activity and status. 2. usb cable to provide communications between the debugger and a pc and to provide power to the debugger. 3. cd-rom with mplab ide software and on-line documentation. figure 1-3: basic debugger system additional hardware that may be ordered separately: ? pickit 3 debug express kit which includes: - a 44-pin demo board with a pic18f45k20 mcu - free version of mplab c compiler for pic18 mcus - easy-to-understand lessons and tutorials - other software utilities, examples with source code and full documentation ? transition socket ? icd headers ? mplab ide processor extension kits pickit? 3 to target board usb cable to pc indicator lights
overview ? 2009 microchip technology inc. DS51795A-page 13 1.5 device and feature support table 1-1 and table 1-2 show the support for devices and device features. table 1-1: 16-bit (data memory) devices feature dspic33f, pic24f/h dspic30f smps (1) dspic30f reset application c c c run, halt c c c single step c c c animate c c c full-speed emulation c c c hardware breakpoints c c c peripheral freeze (2) c c c break on data fetch or write c c c break on stack overflow n n n stopwatch c c n pass counter c c c wdt overflow c c n standard speed communication c c c processor pak f f n legend: c = current support d = support dependent on device f = no support now, but planned in the future n = support not available note 1: current switch mode power supply (smps) devices: dspic30f1010/2020/2023. 2: this feature operates differently depending on the selected device.
pickit? 3 user?s guide DS51795A-page 14 ? 2009 microchip technology inc. table 1-2: 8-bit (data memory) devices feature pic18fxxj pic18f, pic18f enh, pic18fxxk pic12f, pic16f reset application c c c run, halt c c c single step c c c animate c c c full-speed emulation c c c hardware breakpoints c c c peripheral freeze (1) c c c break on data fetch or write c c n break on stack overflow c c n stopwatch c n n pass counter c c n wdt overflow c n n standard speed communication c c c processor pak f f f legend: c = current support f = no support now, but planned in the future n = support not available note 1: this feature operates differently depending on the selected device.
pickit? 3 user?s guide ? 2009 microchip technology inc. DS51795A-page 15 chapter 2. theory of operation 2.1 introduction a simplified description of how the pickit 3 programmer/debugger system works is provided here. it is intended to provide enough information so a target board can be designed that is compatible with the debugger for both emulation and programming operations. the basic theory of in-circuit emulation and programming is described so that problems, if encountered, are quickly resolved. ? pickit 3 vs. pickit 2 ? debugger to target communication ? communication connections ? debugging ? requirements for debugging ? programming ? resources used by the debugger 2.2 pickit 3 vs. pickit 2 the pickit 3 programmer/debugger system is similar in function to the pickit 2 in-circuit debugger system. similarities of the two debuggers include: ? powered via usb cable to pc ? provides a programmable voltage power supply the pickit 3 differs from the pickit 2 by providing: ? extended ee program image space (512 kbytes) ? true voltage reference ? increased voltage range (1.8-5v v dd ; 1.8-14v v pp ) 2.3 debugger to target communication the debugger system configurations are discussed in the following sections. standard icsp device communication the debugger system can be configured to use standard icsp communication for both programming and debugging functions. this 6-pin connection is the same one used by the pickit 2 programmer/debugger. caution do not change hardware connections while the pickit 3 or target is powered.
pickit? 3 user?s guide DS51795A-page 16 ? 2009 microchip technology inc. the modular cable can be either (1) inserted into a matching socket at the target, where the target device is on the target board (figure 2-1), or (2) inserted into a standard adapter/header board combo (available as a processor pak), which in then plugged into the target board (figure 2-2). for more on standard communication, see chapter 10. ?hardware specification? . figure 2-1: standard debugger system ? device with on-board ice circuitry figure 2-2: standard debugger system ? ice device note: older header boards used a 6-pin (rj-11) connector instead of an 8-pin connector, so these headers may be connected to the debugger with the ac164110 icsp adapter. target device or pim power pickit? 3 mini-usb to pc cable target board target board transition socket device-ice ac164110 adapter header power pickit? 3 mini-usb to pc cable
theory of operation ? 2009 microchip technology inc. DS51795A-page 17 2.4 communication connections 2.4.1 communication target connections 2.4.1.1 using single in-line connector use the 6-pin in-line connector between the pickit 3 programmer/debugger and the target board connector. see figure 2-1. also see table 2-1 and section 10.6 ?standard communication hardware? . 2.4.1.2 using an adapter use the ac164110 adapter between the pickit 3 programmer/debugger and the target device with the modular interface (six conductor) cable. the pin numbering for the connector is shown from the bottom of the target pc board in figure 2-3. figure 2-3: standard rj-11 connection at target 2.4.2 target connection circuitry figure 2-4 shows the interconnections of the pickit 3 programmer/debugger to the connector on the target board. the diagram also shows the wiring from the connector to a device on the target pc board. a pull-up resistor (usually around 10 k ) is recommended to be connected from the v pp /mclr line to v dd so that the line may be strobed low to reset the device. table 2-1: target connector pinout connector pin microcontroller pin 1mclr /v pp 2v dd 3 ground 4 pdg (icspdat) 5 pgc (icspclk) 6lvp note: cable connections at the debugger and target are mirror images of each other, i.e., pin 1 on one end of the cable is connected to pin 6 on the other end of the cable. see section 10.6.2.3 ?modular cable specification? . 1 2 3 4 5 6 target connector target bottom side pc board v pp /mclr vss pgc v dd pgd lvp
pickit? 3 user?s guide DS51795A-page 18 ? 2009 microchip technology inc. figure 2-4: standard connection target circuitry 2.4.3 target powered in the following descriptions, only three lines are active and relevant to core debugger operation: pins 1 (v pp /mclr ), 5 (pgc) and 4 (pgd). pins 2 (v dd ) and 3 (v ss ) are shown on figure 2-4 for completeness. pickit 3 has two configurations for powering the target device: internal debugger and external target power. the recommended source of power is external and derived from the target application. in this configuration, target v dd is sensed by the debugger to allow level translation for the target low voltage operation. if the debugger does not sense voltage on its v dd line (pin 2 of the interface connector), it will not operate. 2.4.4 debugger powered the internal debugger power is limited to 30 ma. this may be of benefit for very small applications that have the device v dd separated from the rest of the application circuit for independent programming, but is not recommended for general usage as it imposes more current demands from the usb power system derived from the pc. not all devices have the av dd and av ss lines, but if they are present on the target device, all must be connected to the appropriate levels in order for the debugger to operate. they cannot be left floating. in general, it is recommended that all v dd /av dd and v ss /av ss lines be connected to the appropriate levels. also, devices with a v cap line (pic18fxxj for example) should be connected to the appropriate capacitor or level. v dd v pp /mclr pgc pgd v ss av dd av ss 2 1 5 4 3 user reset 4.7k-10k interface connector application pc board device note: the interconnection is very simple. any problems experienced are often caused by other connections or components on these critical lines that interfere with the operation of the pickit 3 programmer/debugger, as discussed in the following section.
theory of operation ? 2009 microchip technology inc. DS51795A-page 19 2.4.5 circuits that will prevent the debugger from functioning figure 2-5 shows the active debugger lines with some components that will prevent the pickit 3 debugger system from functioning. figure 2-5: improper circuit components specifically, these guidelines must be followed: ? do not use pull-ups on pgc/pgd ? they will disrupt the voltage levels, since these lines have 4.7 k pull-down resistors in the debugger. ? do not use capacitors on pgc/pgd ? they will prevent fast transitions on data and clock lines during programming and debug communications. ? do not use capacitors on mclr ? they will prevent fast transitions of v pp . a simple pull-up resistor is generally sufficient. ? do not use diodes on pgc/pgd ? they will prevent bidirectional communication between the debugger and the target device. 2.5 debugging there are two steps to using the pickit 3 programmer/debugger system as a debugger. the first requires that an application be programmed into the target device (usually with the pickit 3 itself). the second uses the internal in-circuit debug hardware of the target flash device to run and test the application program. these two steps are directly related to the mplab ide operations: 1. program the code into the target and activate special debug functions (see the next section for details). 2. use the debugger to set breakpoints and run. if the target device cannot be programmed correctly, the pickit 3 programmer/debugger will not be able to debug. figure 2-6 shows the basic interconnections required for programming. note that this is the same as figure 2-4, but for the sake of clarity, the v dd and v ss lines from the debugger are not shown. no! no! no! no! v pp /mclr pgc pgd 1 5 4 interface connector
pickit? 3 user?s guide DS51795A-page 20 ? 2009 microchip technology inc. figure 2-6: proper conne ctions for programming a simplified diagram of some of the internal interface circuitry of the pickit 3 programmer/debugger is shown. for programming, no clock is needed on the target device, but power must be supplied. when programming, the debugger puts programming levels on v pp /mclr , sends clock pulses on pgc and serial data via pgd. to verify that the part has been programmed correctly, clocks are sent to pgc and data is read back from pgd. this conforms to the icsp protocol of the device under development. 2.6 requirements for debugging to debug (set breakpoints, see registers, etc.) with the pickit 3 programmer/debugger system, there are critical elements that must be working correctly: ? the debugger must be connected to a pc. it must be powered by the pc via the usb cable, and it must be communicating with the mplab ide software via the usb cable. see chapter 3. ?installation? for details. ? the debugger must be connected as shown to the v pp , pgc and pgd pins of the target device with the modular interface cable (or equivalent). v ss and v dd are also required to be connected between the debugger and target device. ? the target device must have power and a functional, running oscillator. if the target device does not run, for any reason, the pickit 3 programmer/debugger cannot debug. ? the target device must have its configuration words programmed correctly: - the oscillator configuration bits should correspond to rc, xt, etc., depending upon the target design. - for some devices, the watchdog timer is enabled by default and needs to be disabled. - the target device must not have code protection enabled. - the target device must not have table read protection enabled. ? lvp should be disabled. once the above conditions are met, you may proceed to the following: ? sequence of operations leading to debugging ? debugging details +5v programming 4.7 k 4.7 k v pp /mclr pgc pgd 1 5 4 internal circuits v ss v dd voltage
theory of operation ? 2009 microchip technology inc. DS51795A-page 21 2.6.1 sequence of operations leading to debugging given that the requirements for debugging (see previous section) are met, these actions can be performed when the pickit 3 programmer/debugger is set as the current debugger from the mplab ide menu ( debugger>select tool>pickit 3 ): ? the application code is compiled/assembled by selecting project>build configuration>debug . ? when debugger>program is selected, the application code is programmed into the device?s memory via the icsp protocol as described above. ? a small ?debug executive? program is loaded into the high area of program memory of the target device automatically by mplab ide. since the debug executive must reside in program memory, the application program must not use this reserved space. some devices have special memory areas dedicated to the debug executive. check your device data sheet for details. ? special ?in-circuit debug? registers in the target device are enabled. these allow the debug executive to be activated by the debugger. ? the target device is held in reset by keeping the v pp /mclr line low. 2.6.2 debugging details figure 2-7 illustrates the pickit 3 programmer/debugger system when it is ready for debugging. figure 2-7: pickit? 3 debu gger ready for debugging typically, in order to find out if an application program will run correctly, a breakpoint is set early in the program code. when a breakpoint is set from the user interface of mplab ide, the address of the breakpoint is stored in the special internal debug registers of the target device. commands on pgc and pgd communicate directly to these registers to set the breakpoint address. next, the debugger>run function or the run icon (forward arrow) is usually pressed from mplab ide. the debugger will then tell the debug executive to run. the target will start from the reset vector and execute until the program counter reaches the breakpoint address previously stored in the internal debug registers. after the instruction at the breakpoint address is executed, the in-circuit debug mechanism of the target device ?fires? and transfers the device?s program counter to the debug executive (much like an interrupt) and the user?s application is effectively +5v +12v 4.7 k 4.7 k internal circuits program memory file registers internal debug registers v pp /mclr pgc pgd 1 5 4 executive debug area used by target be running must for debug executive to function area v dd hardware stack shared by debug exec debug exec reserved for debug executive
pickit? 3 user?s guide DS51795A-page 22 ? 2009 microchip technology inc. halted. the debugger communicates with the debug executive via pgc and pgd, gets the breakpoint status information and sends it back to mplab ide. mplab ide then sends a series of queries to the debugger to get information about the target device, such as file register contents and the state of the cpu. these queries are ultimately performed by the debug executive. the debug executive runs just like an application in program memory. it uses some locations on the stack for its temporary variables. if the device does not run, for whatever reason, such as no oscillator, a faulty power supply connection, shorts on the target board, etc., then the debug executive cannot communicate to the pickit 3 programmer/debugger and mplab ide will issue an error message. another way to get a breakpoint is to press the mplab ide?s halt button (the ?pause? symbol to the right of the run arrow). this toggles the pgc and pgd lines so that the in-circuit debug mechanism of the target device switches the program counter from the user?s code in program memory to the debug executive. again, the target application program is effectively halted, and mplab ide uses the debugger communications with the debug executive to interrogate the state of the target device. 2.7 programming use the pickit 3 programmer/debugger as a programmer to program an actual (non -ice/-icd) device, i.e., a device not on a header board. select ?pickit 3? from programmer>select programmer and compile/assemble your application code with the ?build configuration? list box on the mplab ide toolbar set to ?release?. also, it may be set by selecting project>build configuration>release . all debug features are turned off or removed when the debugger is used as a programmer. when using the programmer>program selection to program a device, mplab ide will disable the in-circuit debug registers so the pickit 3 programmer/debugger will program only the target application code and the configuration bits (and eeprom data, if available and selected) into the target device. the debug executive will not be loaded. as a programmer, the debugger can only toggle the mclr line to reset and start the target. a breakpoint cannot be set, and register contents cannot be seen or altered. the pickit 3 programmer/debugger system programs the target using icsp. v pp , pgc and pgd lines should be connected as described previously. no clock is required while programming, and all modes of the processor can be programmed, including code protection, watchdog timer and table read protection. 2.8 resources used by the debugger for a complete list of resources used by the debugger for your device, please see the on-line help file in mplab ide for the pickit 3 programmer/debugger.
pickit? 3 user?s guide ? 2009 microchip technology inc. DS51795A-page 23 chapter 3. installation 3.1 introduction how to install the pickit 3 programmer/debugger system is discussed. ? installing the software ? connecting the target ? setting up the target board ? setting up mplab ide 3.2 installing the software to install the mplab ide software, first acquire the latest mplab ide installation executable ( mp xxxxx .exe , where xxxxx represents the version of mplab ide) from either the microchip web site (www.microchip.com) or the mplab ide cd-rom (ds51123). then run the executable and follow the screens to install mplab ide. 3.3 connecting the target a connection is built-in to select the type of communication with the target. see section 2.3 ?debugger to target communication? for more details and a diagram. 1. plug in the usb/power cable if not already connected. 2. attach the communication cable(s) between debugger and target if using rj11 plug or connect directly to a 6-pin inline header. figure 3-1: insert communi cations and usb/power cables note: mplab ide v8.20 or greater is required to use the pickit 3 programmer/debugger. pickit? 3 to target board usb cable to pc or header 2 1
pickit? 3 user?s guide DS51795A-page 24 ? 2009 microchip technology inc. 3.4 setting up the target board 3.4.1 using production devices for production devices, the debugger may be connected directly to the target board. the device on the target board must have built-in debug circuitry in order for the pickit 3 programmer/debugger to perform emulation with it. consult the device data sheet to see if the device has the needed debug circuitry, i.e., it should have a ?background debugger enable? configuration bit. the target board must have a connector to accommodate the communications chosen for the debugger. for connection information, see section 2.3 ?debugger to target communication? , ?standard icsp device communication?. 3.4.2 using ice devices for ice devices, an ice header board is required. the header board contains the hardware necessary to emulate a specific device or family of devices. for more information on ice headers, see the ? header board specification? (ds51292). a transition socket is used with the ice header to connect the header to the target board. transition sockets are available in various styles to allow a common header to be connected to one of the supported surface mount package styles. for more information on transition sockets, see the ?transition socket specification? (ds51194). header board layout will be different for headers or processor extension packs. for connection information, see section 2.3 ?debugger to target communication? , ?standard icsp device communication?. 3.4.3 using an icd header all baseline and some mid-range pic microcontrollers require a special ?icd device mounted on a debug header circuit board to enable the debugging feature. for a list of these devices and the required icd header board part number, please see the ? header board specification ? (ds51292). the header board specification is included on the pickit 3 cd-rom, and is available online at www.microchip.com. each icd header board comes with the necessary ?icd device, and is used on the target board instead of the production microcontroller. however, most header boards have an rj-11 debug connector which requires the ac164110 rj-11 to icsp adapter kit to connect it to pickit 3. figure 3-2 illustrates using the ac162061 icd header for the pic18f45k20 with the ac164110 adapter kit and low pin count demo board. note: in the future, devices with circuitry that support icd may be used. note: in the future, icd header boards with icd devices ( device -icd) may be used.
installation ? 2009 microchip technology inc. DS51795A-page 25 figure 3-2: using an icd header board many mid-range pic microcontrollers and all pic18 and 16-bit pic microcontroller devices do not require an icd header and can be debugged directly through the icsp programming connections. 3.4.4 powering the target these are configuration essentials: ? when using the usb connection, pickit 3 can be powered from the pc but it can only provide a limited amount of current, up to 30 ma, at v dd from 1.8-5v to a small target board. ? the desired method is for the target to provide v dd since it can provide a higher current. the additional benefit is that plug-and-play target detection facility is inherited, i.e., mplab ide will let you know in the output window when it has detected the target and has detected the device. if you have not already done so, connect the pickit 3 to the target using the appropriate cables (see section 3.3 ?connecting the target? ). then power the target. if you are powering the target through the pickit 3, see section 9.5.8 ?settings dialog, power tab? for instructions. 3.5 setting up mplab ide once the hardware is connected and powered, mplab ide may be set up for use with the pickit 3 programmer/debugger. on some devices, you must select the communications channel in the configuration bits, e.g., pgc1/emuc1 and pgd1/emud1. make sure the pins selected here are the same ones physically connected to the device. for more on setting up a project and getting started with pickit 3, see chapter 4. ?general setup? . note: the target voltage is only used for powering up the drivers for the icsp interface; the target voltage does not power up the pickit 3. the pickit 3 power is derived strictly from the usb port.
pickit? 3 user?s guide DS51795A-page 26 ? 2009 microchip technology inc. notes:
pickit? 3 user?s guide ? 2009 microchip technology inc. DS51795A-page 27 chapter 4. general setup 4.1 introduction how to get started using the pickit 3 programmer/debugger is discussed. ? starting the mplab ide software ? creating a project ? viewing the project ? building the project ? setting configuration bits ? setting the debugger or programmer ? debugger/programmer limitations 4.2 starting the mplab ide software after installing the mplab ide software ( section 3.2 ?installing the software? ), invoke it by using any of these methods: ?select start>programs>microchip>mplab ide vx.xx>mplab ide , where vx.xx is the version number. ? double click the mplab ide desktop icon. ? execute the file mplab.exe in the mplab ide\core subdirectory of the mplab ide installation directory. for more information on using the software, see: ? ?mplab ide user's guide? (ds51519) ? comprehensive guide for using mplab ide. ? the on-line help files ? the most up-to-date information on mplab ide and pickit 3 programmer/debugger. ? readme files ? last minute information on each release is included in readme for mplab ide.txt and readme for pickit 3 debugger.txt . both files are found in the readmes subdirectory of the mplab ide installation directory. 4.3 creating a project the easiest way to create a new project is to select project>project wizard . with the help of the project wizard, a new project and the language tools for building that project can be created. the wizard will guide you through the process of adding source files, libraries, etc., to the various ?nodes? on the project window. see mplab ide documentation for more detail on using this wizard. the basic steps are provided here: ? select your device (e.g., pic18f45k20) ? select a language toolsuite (e.g., microchip c compiler toolsuite) ? name the project ? add application files (e.g., program.c , support.s , counter.asm ) note: if you do not have a custom linker script in your project, the project manager will select the appropriate linker script for you.
pickit? 3 user?s guide DS51795A-page 28 ? 2009 microchip technology inc. 4.4 viewing the project after the project wizard has created a project, the project and its associated files are visible in the project window. right click on any line in the project window tree to pop up a menu with additional options for adding and removing files. see mplab ide documentation for more detail on using the project window. 4.5 building the project after the project is created, the application needs to be built. this will create object (hex) code for the application that can be programmed into the target by the pickit 3 programmer/debugger. to set build options, select project>build options>project . when done, choose project>build all to build the project. 4.6 setting configuration bits although device configuration bits may be set in code, they also may be set in the mplab ide configuration window. select configure>configuration bits . by clicking on the text in the ?settings? column, these can be changed. some configuration bits of interest are: ? watchdog timer enable ? on most devices, the watchdog timer is enabled initially. it is usually a good idea to disable this bit. ? comm channel select ? for some devices, you will need to select the communi- cations channel for the device, e.g., pgc1/emuc1 and pgd1/emud1. make sure the pins selected here are the same ones physically connected to the device. ? oscillator ? select the configuration setting that matches the target oscillator. 4.7 setting the debugger or programmer select debugger>select tool>pickit 3 to choose the pickit 3 programmer/debugger as the debug tool. the debugger menu and mplab ide toolbar will change to display debug options once the tool is selected. also, the output window will open and messages concerning pickit 3 status and communications will be displayed on the pickit 3 tab. for more information, see section 9.2 ?debugging functions? and section 9.3 ?debugging dialogs/windows? . select programmer>select programmer>pickit 3 to choose the pickit 3 programmer/debugger as the programmer tool. the programmer menu and mplab ide toolbar will change to display programmer options once the tool is selected. also, the output window will open and messages concerning ice status and communications will be displayed on the pickit 3 tab. for more information, see section 9.4 ?programming functions? . select debugger>settings or programmer>settings to open the settings dialog ( section 9.5 ?settings dialog? ) and set up options as needed. if errors occurs, see: ? chapter 8. ?error messages? ? chapter 7. ?frequently asked questions (faqs)? note: on the project manager toolbar ( view>toolbars>project manager ), select ?debug? from the drop-down list when using the pickit 3 as a debugger, or select ?release? when using it as a programmer.
general setup ? 2009 microchip technology inc. DS51795A-page 29 4.8 debugger/programmer limitations for a complete list of debugger limitations for your device, please see the pickit 3 on-line help file in mplab ide by selecting help>topics>pickit 3 and click ok .
pickit? 3 user?s guide DS51795A-page 30 ? 2009 microchip technology inc. notes:
pickit? 3 user?s guide ? 2009 microchip technology inc. DS51795A-page 31 chapter 5. pickit 3 debug express 5.1 introduction the pickit 3 debug express kit works in conjunction with the mplab ide application to run, stop and single-step through programs. one or more breakpoints can be set and the processor can be reset. once the processor is stopped, the register?s contents can be examined and modified. for more information on how to use mplab ide, reference the following documentation: ? mplab ? ide user?s guide (ds51519) ? mplab ? ide on-line help 5.2 pickit 3 debug express kit contents the pickit 3 debug express kit (dv164131) contains the following items: 1. the pickit 3 development programmer/debugger 2. usb cable 3. 44-pin demo board with device* 4. mplab ide cd-rom 5. pickit 3 debug express c18 lessons (tutorials) on cd-rom * the explorer 16 board may also be used to debug. 5.3 installing the hardware and software install the pickit 3 hardware and software, if not already done, as specified in chapter 3. ?installation? . 5.3.1 reserved resources due to the built-in in-circuit debugging capability of icd devices and the icsp function offered by the debugger, the pickit 3 debug express uses some on-chip resources when debugging. for information on device resources that are needed for in-circuit debugging, please refer to the mplab pickit 3 help, found in the mplab ide under help>topics . the device reserved resource information found under ?resources used by mplab pickit 3? is the same for the pickit 3 debug express. 5.3.2 connecting the demo board the pic18f45k20 included on the 44-pin demo board can be debugged by simply connecting the demo board to the pickit 3 as shown in figure 5-1. note: pickit 3 debug express requires mplab ide version 8.20 or later.
pickit? 3 user?s guide DS51795A-page 32 ? 2009 microchip technology inc. figure 5-1: connecting the demo board to the pickit? 3 5.3.3 configuration bits and debug express pic microcontroller devices that do not require an icd header and may be debugged directly contain a debug bit in the configuration word(s) that enables and disables the debug mode on the pic microcontroller. this bit is automatically set appropriately by the mplab ide when using pickit 3 debug express and should not be specified in source code configuration settings. many 16-bit pic microcontroller devices such as pic24 and dspic33 families have multiple icsp programming and debugging port pins labeled pgc1/emuc1 and pgd1/emud1, pgc2/emuc2 and pgd2/emud2, etc. while any icsp port may be used for programming, only one port is active at a time for debugging. the active emu port is set in the device configuration bits. if the active port setting does not match the emu port to which the pickit 3 is connected, the device will be unable to enter debug mode. in the mplab ide configuration bits dialog, these bits are usually referred to as the ?comm channel select? bits. caution the debug configuration bit value should not be specified in source code configura- tion settings under normal conditions. doing so may cause the bit to be asserted when programming a device outside the debugger. this will cause the device to function improperly or not all at in the application circuit.
pickit? 3 user?s guide ? 2009 microchip technology inc. DS51795A-page 33 part 2 ? troubleshooting chapter 6. troubleshooting first steps ..................................................................... 35 chapter 7. frequently asked questions (faqs) ....................................................... 37 chapter 8. error messages.......................................................................................... 41
pickit? 3 user?s guide DS51795A-page 34 ? 2009 microchip technology inc. notes:
pickit? 3 user?s guide ? 2009 microchip technology inc. DS51795A-page 35 chapter 6. troubleshooting first steps 6.1 introduction if you are having problems with pickit 3 programmer/debugger operation, start here. ? the 5 questions to answer first ? top 10 reasons why you can?t debug ? other things to consider 6.2 the 5 questions to answer first 1. what device are you working with? often an upgrade to a newer version of mplab ide is required to support newer devices. that is, yellow light = untested support. 2. are you using a microchip demo board or one of your own design? have you fol- lowed the guidelines for resistors/capacitors for communications connections? see chapter 2. ?theory of operation? . 3. have you powered the target? the debugger cannot power the target if greater than 30 ma. 4. are you using a usb hub in your set up? is it powered? if you continue to have problems, try using the debugger without the hub (plugged directly into the pc.) 5. are you using the standard communication cable (rj-11) shipped with debug- ger? if you have made a longer cable, it can cause communications errors. 6.3 top 10 reasons why you can?t debug 1. the oscillator is not working. check your configuration bits setting for the oscillator. 2. the target board is not powered. check the power cable connection. 3. the debugger has become physically disconnected from the pc and/or the tar- get board. check the communications cables? connections. 4. the device is code-protected. check your configuration bit?s setting for code protection. 5. you are trying to rebuild the project while in release mode. select debug in the build configuration drop-down list on the project toolbar, then rebuild the project. 6. the debugger is selected as a programmer, and not as a debugger, in mplab ide. 7. the debugger to pc communications has been interrupted. reconnect to the debugger in mplab ide. 8. the target application has become corrupted or contains errors.try rebuilding and reprogramming the target application. then initiate a power-on reset of the target. 9. other configuration settings are interfering with debugging. any configuration setting that would prevent the target from executing code will also prevent the debugger from putting the code into debug mode. 10. the debugger cannot always perform the action requested. for example, the debugger cannot set a breakpoint if the target application is currently running.
pickit? 3 user?s guide DS51795A-page 36 ? 2009 microchip technology inc. 6.4 other things to consider 1. it is possible the error was a one-time glitch. try the operation again. 2. there may be a problem programming in general. as a test, switch to program- mer mode and program the target with the simplest application possible (e.g., a program to blink an led). if the program will not run, then you know that something is wrong with the target setup. 3. it is possible that the target device has been damaged in some way (e.g., over current.) development environments are notoriously hostile to components. consider trying another target device. 4. microchip technology inc. offers demonstration boards to support most of its microcontrollers. consider using one of these applications, which are known to work, to verify correct pickit 3 programmer/debugger functionality. 5. review debugger debug operation to ensure proper application setup ( chapter 2. ?theory of operation? .) 6. if the problem persists contact microchip.
pickit? 3 user?s guide ? 2009 microchip technology inc. DS51795A-page 37 chapter 7. frequently asked questions (faqs) 7.1 introduction look here for answers to frequently asked questions about the pickit 3 programmer/debugger system. ? how does it work ?what?s wrong 7.2 how does it work ? what's in the silicon that allows it to communicate with the pickit 3 programmer/debugger? pickit 3 programmer/debugger can communicate with flash silicon via the icsp interface. it uses the debug executive downloaded into program or test memory. ? how is the throughput of the processor affected by having to run the debug executive? the debug executive doesn?t run while in run mode, so there is no throughput reduction when running your code, i.e., the debugger doesn?t ?steal? any cycles from the target device. ? how does the pickit 3 programmer/debugger compare with other in-circuit emulators/debuggers? please refer to section 2.2 ?pickit 3 vs. pickit 2? . ? on the mplab ice 2000/4000 debuggers, the data must come out on the bus in order to perform a complex trigge r on that data. is this also required on the pickit 3 programmer/debugger? for example, could i halt based on a flag going high? the mplab ice 2000/4000 debuggers use a special debugger chip (-me) for monitoring. there is no -me with the pickit 3 programmer/debugger so there are no busses to monitor externally. with the pickit 3 programmer/debugger, rather than using external breakpoints, the built-in breakpoint circuitry of the debug engine is used ? the busses and breakpoint logic are monitored inside the part. ? does the pickit 3 programmer/debugger have complex breakpoints like mplab ice 2000/4000? no. but you can break based on a value in a data memory location or program address. see section 9.3.1 ?breakpoints dialog? for more information. ? is the pickit 3 optoisolated or electrically isolated? no. you cannot apply a floating or high voltage (120v) to the current system. ? what limitations are there with the standard cable? the standard icsp rj-11 cable does not allow for clock speeds greater than about 15 mbps.
pickit? 3 user?s guide DS51795A-page 38 ? 2009 microchip technology inc. ? will the pickit 3 slow down the running of the program? no, the device will run at any device speed as specified in the data sheet. ? is it possible to debug a dspic dsc running at any speed? the pickit 3 is capable of debugging at any device speed as specified in the device?s data sheet. ? what is the function of pin 6, the lvp pin? pin 6 is reserved for the lvp (low-voltage programming) connection. 7.3 what?s wrong ? my pc went into power-down/hibernate mode, and now my debugger won?t work. what happened? when using the debugger for prolonged periods of time, and especially as a debugger, be sure to disable the hibernate mode in the power options dialog window of your pc?s operating system. go to the hibernate tab and clear or uncheck the ?enable hibernation? check box. this will ensure that all communication is maintained across all the usb subsystem components. ? i set my peripheral to not freeze on halt, but it is suddenly freezing. what's going on? for dspic30f/33f and pic24f/h devices, a reserved bit in the peripheral control register (usually either bit 14 or 5) is used as a freeze bit by the debugger. if you have performed a write to the entire register, you may have overwritten this bit. (the bit is user-accessible in debug mode.) to avoid this problem, write only to the bits you wish to change for your application ( bts , btc ) instead of to the entire register ( mov ). ? when using a 16-bit device, an unexpected reset occurred. how do i determine what caused it? some things to consider: - to determine a reset source, check the rcon register. - handle traps/interrupts in an interrupt service routine (isr). you should include trap.c style code, i.e., void __attribute__((__interrupt__)) _oscillatorfail(void); : void __attribute__((__interrupt__)) _altoscillatorfail(void); : void __attribute__((__interrupt__)) _oscillatorfail(void) { intcon1bits.oscfail = 0; //clear the trap flag while (1); } : void __attribute__((__interrupt__)) _altoscillatorfail(void) { intcon1bits.oscfail = 0; while (1); } : - use asserts.
frequently asked questions (faqs) ? 2009 microchip technology inc. DS51795A-page 39 ? i have finished debugging my code. now i?ve programmed my part, but it won?t run. what?s wrong? some things to consider are: - have you selected the debugger as a programmer and then tried to program a header board? a header board contains an -ice/-icd version of the device and may not function like the actual device. only program regular devices with the debugger as a programmer. regular devices include devices that have on-board ice/icd circuitry, but are not the special -ice/-icd devices found on header boards. - have you selected the debugger as a debugger and then tried to program a production device? programming a device when the debugger is a debugger will program a debug executive into program memory and set up other device features for debug (see section 2.6.1 ?sequence of operations leading to debugging? ). to program final (release) code, select the debugger as a programmer. - have you selected ?release? from the build configuration drop-down list or project menu? you must do this for final (release) code. rebuild your project, reprogram the device, and try to run your code again. ? i don?t see my problem here. now what? try the following resources: - chapter 9. ?limitations? - section 2.8 ?resources used by the debugger? - section 8.2 ?specific error messages? - section 8.3 ?general corrective actions?
pickit? 3 user?s guide DS51795A-page 40 ? 2009 microchip technology inc. notes:
pickit? 3 user?s guide ? 2009 microchip technology inc. DS51795A-page 41 chapter 8. error messages 8.1 introduction the pickit 3 programmer/debugger produces many different error messages; some are specific and others can be resolved with general corrective actions. ? specific error messages ? general corrective actions 8.2 specific error messages pickit 3 programmer/debugger error messages are listed below in numeric order. text in error messages listed below of the form %x (a variable) will display as text relevant to your particular situation in the actual error message. pk3err0001: failed while writing to program memory. pk3err0002: failed while writing to eeprom. pk3err0003: failed while writing to configuration memory. see section 8.3.1 ?read/write error actions? . pk3err0005: pickit 3 is currently busy and cannot be unloaded at this time. if you receive this error when attempting to deselect the debugger as a debugger or programmer: 1. wait ? give the debugger time to finish any application tasks. then try to deselect the debugger again. 2. select halt to stop any running applications. then try to deselect the debugger again. 3. unplug the debugger from the pc. then try to deselect the debugger again. 4. shut down mplab ide. pk3err0006: failed while writing to user id memory. pk3err0007: failed while reading program memory. pk3err0008: failed while reading eeprom. pk3err0009: failed while reading configuration memory. pk3err0010: failed while reading user id memory. see section 8.3.1 ?read/write error actions? . pk3err0011: bulk erase failed. see section 8.3.1 ?read/write error actions? . if these do not work, try another device. note: numbers may not yet appear in displayed messages. use the search tab on the help viewer to find your message and highlight it below.
pickit? 3 user?s guide DS51795A-page 42 ? 2009 microchip technology inc. pk3err0012: download debug exec failed if you receive this error while attempting to program from the debugger menu: 1. deselect the debugger as the debug tool. 2. close your project and then close mplab ide. 3. restart mplab ide and re-open your project. 4. reselect the debugger as your debug tool and attempt to program your target device again. if this does not work, see section 8.3.4 ?corrupted installation actions? . pk3err0013: nmmr register write failed. pk3err0014: file register write failed. see section 8.3.2 ?debugger-to-target communication error actions? . pk3err0015: data transfer was unsuccessful. %d byte(s) expected, %d byte(s) transferred. see section 8.3.3 ?debugger-to-pc communication error actions? . pk3err0016: cannot transmit. pickit 3 not found. the debugger is not connected to the pc. pk3err0017: file register read failed. pk3err0018: nmmr register read failed. pk3err0019: failed while reading emulation registers. pk3err0020: failed while writing emulation registers. see section 8.3.2 ?debugger-to-target communication error actions? . pk3err0021: command not echoed properly. sent %x, received %x. pk3err0022: failed to get pickit 3 version information. pk3err0024: download rs failed. pk3err0025: download ap failed. see section 8.3.3 ?debugger-to-pc communication error actions? . pk3err0026: download program exec failed. if you receive this error while attempting to program from the debugger menu: 1. deselect the debugger as the debug tool. 2. close your project and then close mplab ide. 3. restart mplab ide and re-open your project. 4. reselect the debugger as your debug tool and attempt to program your target device again. if this does not work, see section 8.3.4 ?corrupted installation actions? . pk3err0027: bulk transfer failed due to invalid checksum see section 8.3.3 ?debugger-to-pc communication error actions? . also, ensure that the cables used are the correct length. pk3err0028: download device database failed if you receive this error: 1. try downloading again. it may be a one-time error. 2. try manually downloading. select debugger>settings , configuration tab, and click manual download . select the highest number .jam file and click open .
error messages ? 2009 microchip technology inc. DS51795A-page 43 pk3err0029: communication failure. unexpected command echo response %x received from pickit 3. see section 8.3.3 ?debugger-to-pc communication error actions? . pk3err0030: unable to read /find firmware file %s. if the hex file exists: ? reconnect and try again. ? if this does not work, the file may be corrupted. reinstall mplab ide. if the hex file does not exist: ? reinstall mplab ide. pk3err0031: failed to get pc. pk3err0032: failed to set pc. see section 8.3.2 ?debugger-to-target communication error actions? . pk3err0033: %d bytes expected, %d bytes received. see section 8.3.3 ?debugger-to-pc communication error actions? . pk3err0034: this version of mplab ide does not support hardware revision %06x. please upgrade to the latest version of mplab ide before continuing. find the latest mplab ide at www.microchip.com. pk3err0035: failed to get device id. see section 8.3.1 ?read/write error actions? . pk3err0036: mplab ide has lost communication with pickit 3. see section 8.3.3 ?debugger-to-pc communication error actions? . pk3err0037: timed out waiting for response from pickit 3. pk3err0038: failed to initialize pickit 3. pk3err0039: pickit 3 self-test failed. for this error, the debugger is not responding: 1. unplug and plug in the debugger. 2. reconnect to the debugger in mplab ide. 3. if the problem persists contact microchip. pk3err0040: the target device is not ready for debugging. please check your configuration bit settings and program the device before proceeding. you will receive this message when you have not programmed your device for the first time and try to run. if you receive this message after this, or immediately after programming your device, please refer to section 8.3.6 ?debug failure actions? . pk3err0043: rs download failed. pk3err0044: ap download failed. pk3err0045: you must connect to a target device to use pickit 3. no power has been found. 1. ensure v dd and gnd are connected between the debugger and target. 2. ensure that the target is powered. 3. ensure that the target power is sufficient to be detected by the debugger (see chapter 10. ?hardware specification? .) pk3err0046: an error occurred while trying to read the stopwatch count. the stopwatch count may not be accurate.
pickit? 3 user?s guide DS51795A-page 44 ? 2009 microchip technology inc. see section 8.3.2 ?debugger-to-target communication error actions? . pk3err0047: bootloader download failed. see section 8.3.3 ?debugger-to-pc communication error actions? . pk3err0052: the current pickit 3 hardware version %x, is out of date. this version of mplab ide will support only version %x or higher. did you click cancel when asked to download the latest firmware? if so, you will need to download it now. select debugger>settings , configuration tab, and click manual download . select the highest number .jam file and click open . if you cannot find any files to download or if this does not work (corrupted file), you will need to get the latest version of mplab ide and install it. find the latest mplab ide at www.microchip.com. pk3err0053: unable to get pickit 3 protocol versions. see section 8.3.3 ?debugger-to-pc communication error actions? . pk3err0054: mplab ide's pickit 3 protocol definitions are out of date. you must upgrade mplab ide to continue. find the latest mplab ide at www.microchip.com. pk3err0055: unable to set firmware suite version. pk3err0056: unable to get voltages from pickit 3. see section 8.3.3 ?debugger-to-pc communication error actions? . pk3err0068: failed while writing to boot flash memory. pk3err0069: failed while reading boot flash memory. pk3err0070: failed while writing peripheral memory. pk3err0071: failed while reading peripheral memory. see section 8.3.1 ?read/write error actions? . pk3err0073: device is code protected. the device on which you are attempting to operate (read, program, blank check or verify) is code protected, i.e., the code cannot be read or modified. check your configuration bits setting for code protection. to disable code protection, set or clear the appropriate configuration bits in code or in the configuration bits window ( configure>configuration bits ), according to the device data sheet. then erase and reprogram the entire device. pk3err0075: unable to set power. pickit 3 cannot supply power to the target. pk3err0080: failed setting shadow bit(s). 8.3 general corrective actions these general corrective actions may solve your problem: ? read/write error actions ? debugger-to-target communication error actions ? debugger-to-pc communication error actions ? corrupted installation actions ? usb port communication error actions ? debug failure actions ? internal error actions
error messages ? 2009 microchip technology inc. DS51795A-page 45 8.3.1 read/write error actions if you receive a read or write error: 1. did you hit abort? this may produce read/write errors. 2. try the action again. it may be a one-time error. 3. ensure that the target is powered and at the correct voltage levels for the device. see the device data sheet for required device voltage levels. 4. ensure that the debugger-to-target connection is correct (pgc and pgd are connected.) 5. for write failures, ensure that ?erase all before program? is checked on the program memory tab of the settings dialog. 6. ensure that the cables used are of the correct length. 8.3.2 debugger-to-target communication error actions the pickit 3 programmer/debugger and the target device are out-of-sync with each other. 1. select reset and then try the action again. 2. ensure that the cable(s) used are the correct length. 8.3.3 debugger-to-pc communication error actions the pickit 3 programmer/debugger and mplab ide are out-of-sync with each other. 1. unplug and then plug in the debugger. 1. reconnect to the debugger. 2. try the operation again. it is possible the error was a one time glitch. 3. the version of mplab ide installed may be incorrect for the version of firmware loaded on the pickit 3 programmer/debugger. follow the steps outlined in section 8.3.4 ?corrupted installation actions? . 8.3.4 corrupted installation actions the problem is most likely caused by a incomplete or corrupted installation of mplab ide. 1. uninstall all versions of mplab ide from the pc. 2. reinstall the desired mplab ide version. 3. if the problem persists contact microchip. 8.3.5 usb port communication error actions the problem is most likely caused by a faulty or non-existent communications port. 1. reconnect to the pickit 3 programmer/debugger 2. make sure the debugger is physically connected to the pc on the appropriate usb port. 3. make sure the appropriate usb port has been selected in the debugger settings. 4. make sure the usb port is not in use by another device. 5. if using a usb hub, make sure it is powered. 6. make sure the usb drivers are loaded. 8.3.6 debug failure actions the pickit 3 programmer/debugger was unable to perform a debugging operation. there are numerous reasons why this might occur. see section 6.3 ?top 10 reasons why you can?t debug? and section 6.4 ?other things to consider? .
pickit? 3 user?s guide DS51795A-page 46 ? 2009 microchip technology inc. 8.3.7 internal error actions internal errors are unexpected and should not happen. they are primarily used for internal microchip development. the most likely cause is a corrupted installation ( section 8.3.4 ?corrupted installation actions? ). another likely cause is exhausted system resources. 1. try rebooting your system to free up memory. 2. make sure you have a reasonable amount of free space on your hard drive (and that it is not overly fragmented.) if the problem persists contact microchip.
pickit? 3 user?s guide ? 2009 microchip technology inc. DS51795A-page 47 part 3 ? reference chapter 9. debugger function summary .................................................................. 49 chapter 10. hardware specification ........................................................................... 59
pickit? 3 user?s guide DS51795A-page 48 ? 2009 microchip technology inc. notes:
pickit? 3 user?s guide ? 2009 microchip technology inc. DS51795A-page 49 chapter 9. debugge r function summary 9.1 introduction a summary of the pickit 3 programmer/debugger functions on menus, in windows and on dialogs is listed here. ? debugging functions ? debugging dialogs/windows ? programming functions ? settings dialog 9.2 debugging functions when you select the pickit 3 from the debugger menu, the following items will be added to the mplab ide functions: ? debugger menu ? additional options are added to the drop-down menu ? right mouse button debugger menu ? additional options are added to this menu ? toolbars/status bar ? a toolbar appears below the menu bar; additional information appears in the status bar 9.2.1 debugger menu run f9 execute program code until a breakpoint is encountered or until halt is selected. execution starts at the current program counter (as displayed in the status bar). the current program counter location is also represented as a pointer in the program memory window. while the program is running, several other functions are disabled. animate animate causes the debugger to actually execute single steps while running, updating the values of the registers as it runs. animate runs slower than the run function, but allows you to view changing register values in the special function register window or in the watch window. to halt animate, use the menu option debugger>halt , the toolbar halt or . halt f5 halt (stop) the execution of program code. when you click halt, status information is updated. step into f7 single step through program code. for assembly code, this command executes one instruction (single or multiple cycle instructions) and then halts. after execution of one instruction, all the windows are updated.
pickit? 3 user?s guide DS51795A-page 50 ? 2009 microchip technology inc. for c code, this command executes one line of c code, which may mean the execution of one or more assembly instruction, and then halts. after execution, all the windows are updated. step over f8 execute the instruction at the current program counter location. at a call instruction, step over executes the called subroutine and halts at the address following the call . if the step over is too long or appears to ?hang?, click halt. step out not available. reset > processor reset f6 issue a reset sequence to the target processor. this issues a mclr to reset the program counter to the reset vector. breakpoints open the breakpoint dialog (see section 9.3.1 ?breakpoints dialog? ). use hardware breakpoints to halt code execution at specified lines in your code. set multiple breakpoints in this dialog. program download your code to the target device. read read target memory. information uploaded to mplab ide. erase flash device erase all flash memory. abort operation abort any programming operation (e.g., program, read, etc.). terminating an operation will leave the device in an unknown state. reconnect attempt to re-establish communications between the pc and the pickit 3 programmer/debugger. the progress of this connection is shown on the pickit 3 tab of the output dialog. settings open the pickit 3 settings dialog (see section 9.5 ?settings dialog? ). set up program and firmware options. note: do not step into a sleep instruction. note: you may also right click or double click on a line of code to set a simple breakpoint.
debugger function summary ? 2009 microchip technology inc. DS51795A-page 51 9.2.2 right mouse button debugger menu these debugger menu options will appear on the right mouse menus in code displays, such as program memory and source code files. descriptions of other menu options not listed here can be found in the mplab ide help or the mplab editor help. set breakpoint set or remove a breakpoint at the currently selected line. breakpoints remove, enable or disable all breakpoints. run to cursor run the program to the current cursor location. formerly run to here. set pc at cursor set the program counter (pc) to the cursor location. center debug location center the current pc line in the window. 9.2.3 toolbars/status bar when the pickit 3 programmer/debugger is selected as a debugger, these toolbars are displayed in mplab ide: ? basic debug toolbar (run, halt, animate, step into, step over, step out, reset, breakpoints). ? simple program toolbar (program, read, erase flash device). the selected debug tool (pickit 3), as well as other development information, is displayed in the status bar on the bottom of the mplab ide desktop. refer to the mplab ide on-line help for information on the contents of the status bar. 9.3 debugging dialogs/windows open the following debug dialogs and windows using the menu items mentioned in section 9.2 ?debugging functions? . ? breakpoints dialog - set breakpoint dialog - stopwatch dialog - event breakpoints dialog 9.3.1 breakpoints dialog to set up breakpoints, select debugger>breakpoints . set up different types of breakpoints in this dialog. click on add breakpoint to add breakpoints to the dialog window. depending on your selected device, there may be other buttons for more advanced breakpoint options.
pickit? 3 user?s guide DS51795A-page 52 ? 2009 microchip technology inc. 9.3.1.1 breakpoint dialog window information about each breakpoint is visible in this window. once a breakpoint has been added to the window, you may right click on it to open a menu of options: ? delete ? delete selected breakpoint ? edit/view ? open the set breakpoint dialog ? delete all ? delete all listed breakpoints ? disable all ? disable all listed breakpoints 9.3.1.2 breakpoint dialog buttons use the buttons to add a breakpoint and set up additional break conditions. also, a stopwatch is available for use with breakpoints and triggers. table 9-1: breakpoint dialog window control function breakpoint type type of breakpoint ? program or data address hex address of breakpoint location file line #/symbol name file name and line number of breakpoint location enabled check to enable a breakpoint note: buttons displayed will depend on the selected device. table 9-2: breakpoint dialog buttons control function related dialog add breakpoint add a breakpoint section 9.3.2 ?set breakpoint dialog? stopwatch set up the stopwatch section 9.3.3 ?stopwatch dialog? event breakpoints set up break on an event section 9.3.4 ?event breakpoints dialog?
debugger function summary ? 2009 microchip technology inc. DS51795A-page 53 9.3.2 set breakpoint dialog click add breakpoint in the breakpoints dialog to display this dialog. select a breakpoint for the breakpoints dialog here. 9.3.2.1 program memory tab set up a program memory breakpoint here. 9.3.2.2 data memory tab set up a data memory breakpoint here. table 9-3: program memory breakpoint control function address location of breakpoint in hex breakpoint type the type of program memory breakpoint. see the device data sheet for more information on table reads/writes. program memory execution ? break on execution of above address tblrd program memory ? break on table read of above address tblwt program memory ? break on table write to above address pass count break on pass count condition. always break ? always break as specified in ?breakpoint type? break occurs count instructions after event ? wait count (0-255) instructions before breaking after event specified in ?breakpoint type? event must occur count times ? break only after event specified in ?breakpoint type? occurs count (0-255) times table 9-4: data memory breakpoint control function address location of breakpoint in hex breakpoint type the type of data memory breakpoint. see the device data sheet for more information on x bus reads/writes. x bus read ? break on an x bus read of above address x bus read specific byte ? break on an x bus read of above address for the specific byte value in ?specific value? x bus read specific word ? break on an x bus read of above address for the specific word value in ?specific value? x bus write ? break on an x bus write of above address x bus write specific byte ? break on an x bus write of above address for the specific byte value in ?specific value? x bus write specific word ? break on an x bus write of above address for the specific word value in ?specific value? pass count break on pass count condition. always break ? always break as specified in ?breakpoint type? break occurs count instructions after event ? wait count (0-255) instructions before breaking after event specified in ?breakpoint type? event must occur count times ? break only after event specified in ?breakpoint type? occurs count (0-255) times
pickit? 3 user?s guide DS51795A-page 54 ? 2009 microchip technology inc. 9.3.3 stopwatch dialog click stopwatch in the breakpoints dialog to display the stopwatch setup dialog. use the stopwatch with breakpoints to time code execution. the stopwatch allows tim- ing from one breakpoint/trigger condition to the next. the stopwatch value is in decimal. to set a breakpoint in code, do one of the following: ? double click or right click on a line of code to set up an individual breakpoint. ?select debugger>breakpoints to open the breakpoints dialog and set up multiple breakpoints and breakpoint conditions. see section 9.3.1 ?breakpoints dialog? for more information. to determine the time between the breakpoints, use the stopwatch: 1. open the breakpoints dialog ( debugger>breakpoints ). 1. click stopwatch on the breakpoints dialog to open the stopwatch dialog. 2. under ?start condition?, select a breakpoint from the drop-down list. also decide if ?start condition will cause the target device to halt?. 3. under ?stop condition?, select another breakpoint from the drop-down list. also decide if ?stop condition will cause the target device to halt?. 4. decide if there will be a ?reset stopwatch on run?. 5. click ok . 9.3.4 event breakpoints dialog click event breakpoints in the breakpoints dialog to display this dialog. select a condition where the program will always break: ? break on watchdog timer ? break every time the watchdog timer times out. make sure the watchdog timer is enabled in the configuration bits. ? break on sleep instruction ? break when a sleep instruction is encountered in the program. table 9-5: stopwatch setup control function start condition select an available breakpoint or trigger condition to start the stop- watch. available breakpoints/triggers are those previously added to the breakpoint dialog. select none to clear the start condition. to halt the program run on this condition, check the check box next to ?start condition will cause the target device to halt?. stop condition select an available breakpoint or trigger condition to stop the stop- watch. available breakpoints/triggers are those previously added to the breakpoint dialog. select none to clear the stop condition. to halt the program run on this condition, check the check box next to ?stop condition will cause the target device to halt?. reset stopwatch on run reset the stopwatch values to zero every time the program is run.
debugger function summary ? 2009 microchip technology inc. DS51795A-page 55 9.4 programming functions when you select the pickit 3 programmer/debugger from the programmer menu, program items will be added to the following mplab ide functions: ? programmer menu ? toolbars/status bar 9.4.1 programmer menu program program specified memory areas: program memory, configuration bits, id locations and/or eeprom data. see the settings dialog for programming options. verify verify programming of specified memory areas: program memory, configuration bits, id locations and/or eeprom data. read read specified memory areas: program memory, configuration bits, id locations and/or eeprom data. see the settings dialog for read options. blank check all check to see that all device memory is erased/blank. erase flash device erase all flash memory. abort operation abort any programming operation (e.g., program, read, etc.). terminating an operation will leave the device in an unknown state. reconnect attempt to re-establish communications between the pc and the pickit 3 programmer/debugger. the progress of this connection is shown on the pickit 3 tab of the output dialog. settings open the programmer dialog (see section 9.5 ?settings dialog? ). set up program and firmware options. 9.4.2 toolbars/status bar when the pickit 3 programmer/debugger is selected as a programmer, these toolbars are displayed in mplab ide: ? basic program toolbar (program, read, verify, erase flash device, blank check all). the selected programmer (pickit 3), as well as other programming information, is displayed in the status bar on the bottom of the mplab ide desktop. refer to the mplab ide on-line help for information on the contents of the status bar.
pickit? 3 user?s guide DS51795A-page 56 ? 2009 microchip technology inc. 9.5 settings dialog select either debugger>settings or programmer>settings to open the settings dialog and set up the pickit 3 programmer/debugger. ? settings dialog, program memory tab ? settings dialog, configuration tab ? settings dialog, freeze on halt tab ? settings dialog, status tab ? settings dialog, clock tab ? settings dialog, secure segment tab ? settings dialog, warnings tab ? settings dialog, power tab ? settings dialog, limitations tab 9.5.1 settings dialog, program memory tab this tab allows you to set up debug/programming options. note: tabs displayed will depend on the selected device. table 9-6: program memory options allow pickit 3 to select memories and ranges if selected, the pickit? 3 uses your selected device and default settings to determine what to program. manually select memories and ranges if selected, you must determine the memories, program memory range, and program options for the selected device. memories: program check to program program memory into target. configuration check to program configuration bits into target. note: this memory is always programmed when debugger selected as a debugger. eeprom check to erase and then program eeprom memory on target, if available. uncheck to erase eeprom memory on target. id check to program id memory into target. boot flash if supported, check to program boot memory on target program memory range: start, end the starting and ending hex address range in program memory for programming, reading, or verification. if you receive a programming error due to an incorrect end address, you need to perform a reconnect, correct the end address and program again. note: the address range does not apply to the erase function. the erase function will erase all data on the device. program options : erase all before program check to erase all memory before programming begins. unless programming new or already erased devices, it is important to have this box checked. if not checked, the device is not erased and program code will be merged with the code already in the device. preserve program memory range check to preserve memory range. start, end ? the starting and ending hex address range in program memory for preservation.
debugger function summary ? 2009 microchip technology inc. DS51795A-page 57 9.5.2 settings dialog, configuration tab configure debugger operation on this tab. 9.5.3 settings dialog, freeze on halt tab select peripherals to freeze on halt on this tab. pic18 mcu devices to freeze/unfreeze all device peripherals on halt, check/uncheck the ?freeze on halt? checkbox. if this does not halt your desired peripheral, be aware that some peripherals have no freeze on halt capability and cannot be controlled by the debugger. dspic30f/33f, pic24f/h and pic32mx devices for peripherals in the list ?peripherals to freeze on halt?, check to freeze that peripheral on a halt. uncheck the peripheral to let it run while the program is halted. if you do not see a peripheral on the list, check ?all other peripherals?. if this does not halt your desired peripheral, be aware that some peripherals have no freeze on halt capability and cannot be controlled by the debugger. to select all peripherals, including ?all other peripherals?, click check all . to deselect all peripherals, including ?all other peripherals?, click uncheck all . 9.5.4 settings dialog, status tab view the status of your pickit 3 system on this tab. automatically program after successful build after the application code successfully builds, program this code into the device. run after successful program after the application code is successfully programmed into the target device, run the code. table 9-7: conf iguration items download firmware set up firmware download options. auto download latest firmware check to allow automatic download of the latest version of firmware for the target device ( recommended ). manual download manually select a firmware file to download to the target device. table 9-8: status items versions firmware suite version debugger firmware suite version. the firmware suite consists of the three items specified below. algorithm plug-in version debugger algorithm plug-in version. for your selected device, an algorithm is used to support the device plugged into the target. os version debugger operating system version. voltages pickit? 3 v pp debugger v pp . pickit 3 v dd debugger v dd . refresh voltages sensing of status tab items occurs when the tab is activated. to see updates, click this button. table 9-6: program memory options (continued)
pickit? 3 user?s guide DS51795A-page 58 ? 2009 microchip technology inc. 9.5.5 settings dialog, clock tab the debug clock mode is selected on this tab. check the box for ?frc in debug mode? to use the fast rc clock while debugging. device emulation occurs at the speed of the processor. if it is running at low frequency (for example 32khz), all operations such as stepping, refreshing the watch window, etc. are slow. however, some processors have a built-in fast rc oscillator. if the ?frc in debug mode? option is checked, after the application running at normal speed halts, it switches to the faster oscillator enabling emulation and peripherals (if not frozen) to run faster. 9.5.6 settings dialog, secure segment tab for codeguard? security devices, set up secure segment properties on this tab. for more details on codeguard security functionality, please refer to the codeguard security reference manual for 16-bit devices (ds70180) and dspic33f/pic24h and dspic30f device programming specifications found on our website. 9.5.7 settings dialog, warnings tab a list of all pickit 3 programmer/debugger warnings are displayed on this tab. ? check a warning to enable it. the warning will be displayed in the output window. ? uncheck a warning to disable it. warnings are not errors and will not stop your project from building. if you receive error messages, please see chapter 8. ?error messages? . 9.5.8 settings dialog, power tab set up the power options on this tab. click in the checkbox to enable/disable ?power target circuit from pickit 3?. adjust the slide bar to select the voltage. the value in the field changes according to your adjustments. 9.5.9 settings dialog, limitations tab this tab displays general limitations for the selected device. for specific limitation information, click details . table 9-9: secure segment options full chip programming click to select to program all program memory segments. segment programming click to select segment programming. select from: - boot, secure and general segments - secure and general segments - general segment only
pickit? 3 user?s guide ? 2009 microchip technology inc. DS51795A-page 59 chapter 10. hardware specification 10.1 introduction the hardware and electrical specifications of the pickit 3 programmer/debugger system are detailed. 10.2 highlights this chapter discusses: ? declaration of conformity ? usb port/power ? pickit 3 programmer/debugger ? standard communication hardware ? target board considerations 10.3 declaration of conformity we microchip technology, inc. 2355 w. chandler blvd. chandler, arizona 85224-6199 usa hereby declare that the product: pickit 3 programmer/debugger complies with the following standards, provided that the restrictions stated in the operating manual are observed: standards: en61010-1 laboratory equipment microchip technology, inc. date: january 2009 important information concerning the use of the pickit 3 programmer/ debugger due to the special nature of the pickit 3 programmer/debugger, the user is advised that it can generate higher than normal levels of electromagnetic radiation which can interfere with the operation of all kinds of radio and other equipment. to comply with the european approval regulations therefore, the following restrictions must be observed: 1. the development system must be used only in an industrial (or comparable) area. 2. the system must not be operated within 20 meters of any equipment which may be affected by such emissions (radio receivers, tvs etc.).
pickit? 3 user?s guide DS51795A-page 60 ? 2009 microchip technology inc. 10.4 usb port/power the pickit 3 programmer/debugger is connected to the host pc via a mini universal serial bus (usb) port, version 2.0 compliant. the usb connector is located on the top of the pod. the system is capable of reloading the firmware via the usb interface. system power is derived from the usb interface. the debugger is classified as a high power system per the usb specification, and requires slightly more than 100 ma of power from the usb to function in all operational modes (debugger/programmer). cable length ? the pc-to-debugger cable length for proper operation is shipped in the debugger kit. powered hubs ? if you are going to use a usb hub, make sure it is self-powered. also, usb ports on pc keyboards do not have enough power for the debugger to operate. pc hibernate/power-down modes ? disable the hibernate or other power saver modes on your pc to ensure proper usb communications with the debugger. 10.5 pickit 3 programmer/debugger the debugger consists of a main board enclosed in the casing with a usb connector and a single in-line connector. on the debugger enclosure are indicator lights (leds). 10.5.1 main board this component has the interface processor with integrated usb 2.0 interface capable an spi, serial ee for programming into the emulation device on-board flash and led indicators. 10.5.2 indicator lights (leds) the indicator lights have the following significance. note: the pickit 3 programmer/debugger is powered through its usb connection. the target board is powered from its own supply. alternatively, the pickit 3 can power it only if the target consumes less than 30 ma. led color description power green lit when power is first applied or when target is connected. active blue lit when the pickit? 3 has established communication with the pc or sending/receiving commands. status green lit when the debugger is operating normally ? standby. yellow lit when an operation is busy. red lit when the debugger has failed.
hardware specification ? 2009 microchip technology inc. DS51795A-page 61 10.6 standard communication hardware for standard debugger communication with a target ( section 2.3 ?debugger to target communication? , ?standard icsp device communication?), use an adapter with an rj-11 connector. to use this type of communication with a header board, you may need a device-specific processor pak, which includes an 8-pin connector header board containing the desired ice/icd device and a standard adapter board. for more on available header boards, see the ? header board specification? (ds51292). 10.6.1 standard communication the standard communication is the main interface to the target processor. it contains the connections to the high voltage (v pp ), v dd sense lines, and clock and data connections required for programming and connecting with the target devices. the v pp high-voltage lines can produce a variable voltage that can swing from 1.8 to 14 volts to satisfy the voltage requirements for the specific emulation processor. the v dd sense connection draws current from the target processor. the clock and data connections are interfaces with the following characteristics: ? clock and data signals are in high-impedance mode (even when no power is applied to the pickit 3 programmer/debugger system) ? clock and data signals are protected from high voltages caused by faulty targets systems, or improper connections ? clock and data signals are protected from high current caused from electrical shorts in prototype or target systems figure 10-1: 6-pi n standard pinout note: older header boards used a 6-pin (rj-11) connector instead of an 8-pin connector, so these headers may be connected directly to the debugger. 1 2 3 4 5 6 pin name function 1mclr /v pp power 2v dd _tgt power on target 3 gnd ground 4 pgd (icspdat) standard com data 5 pgc (icspclk) standard com clock 6 lvp low voltage programming bottom of target board standard socket target board target device or pim
pickit? 3 user?s guide DS51795A-page 62 ? 2009 microchip technology inc. 10.6.2 modular cable and connector for standard communications, a modular cable connects the debugger and the target application. the specifications for this cable and its connectors are listed below. 10.6.2.1 modular connector specification ? manufacturer, part number ? amp incorporated, 555165-1 ? distributor, part number ? digi-key, a9031nd the table within figure 10-2 shows how the modular connector pins on an application correspond to the microcontroller pins. this configuration provides full icd functionality. figure 10-2: modular connector pinout of target board 10.6.2.2 modular plug specification ? manufacturer, part number ? amp incorporated, 5-554710-3 ? distributor, part number ? digi-key, a9117nd modular connector pin microcontroller pin 6lvp 5 rb6 4rb7 3 ground 2v dd targ et 1 v pp 1 6 bottom view of modular connector pinout on target board 16 front view of modular connector on target board target board transition socket device-ice ac164110 adapter header power pickit? 3 mini-usb to pc cable
hardware specification ? 2009 microchip technology inc. DS51795A-page 63 10.6.2.3 modular cable specification ? manufacturer, part number ? microchip technology, 07-00024 10.7 target board considerations the target board should be powered according to the requirements of the selected device (1.8v-5.0v) and the application. depending on the type of debugger-to-target communications used, there will be some considerations for target board circuitry: ? section 2.4.2 ?target connection circuitry? ? section 2.4.5 ?circuits that will prevent the debugger from functioning?
pickit? 3 user?s guide DS51795A-page 64 ? 2009 microchip technology inc. notes:
pickit? 3 user?s guide ? 2009 microchip technology inc. DS51795A-page 65 appendix a. pickit 3 schematics pickit 3 development programmer/debugger schematic diagrams are shown here. demo board schematics are found in their respective user?s guides. figure a-1: pickit? 3 schematic diagram (page 1 of 2)
pickit? 3 user?s guide DS51795A-page 66 ? 2009 microchip technology inc. figure a-2: pickit? 3 schematic diagram (page 2 of 2) use
pickit? 3 user?s guide ? 2009 microchip technology inc. DS51795A-page 67 appendix b. operational advisory when designing applications that use the pickit 3, these operational issues should be considered: ? oscillator circuit setup ? icsp? implementation and considerations ? recommended configuration ? alternate configuration ? communication channel ? grounding and ac applications ? correcting crosstalk ? hibernation oscillator circuit setup primary oscillator often differences between the mplab ide default settings and the unique target requirements cause the following message to display in the output window ?the target device is not ready for debugging. please check your configuration bit settings and pro- gram the device before proceeding.? to correct this, set the configuration bits to match the oscillator setting of the target configuration. for debugging operations, the application (target) oscillator must be functioning before in-circuit debugging can take place. ensure the oscillator configuration and the mplab ide configuration bit setup are configured properly. for example, if your application uses a 20 mhz crystal oscillator, select the hs (high speed) selection in mplab ide. for any other applicable device oscillator modes, consult the device data sheet. crystal oscillator if the mplab icd header or processor extension packs are used to connect to the target, there may be problems with starting the crystal resonator. to avoid potential problems, consider the following: 1. ensure the crystal is connected near the device footprint. 2. keep all lines as short as possible in the target application without unnecessary discontinuities such as pcb vias and test points. 3. minimize any capacitive loading on these nodes. 4. avoid using a socket for the placement of the crystal and capacitor. solder the devices directly to pcb pads. icsp? implementation and considerations the pickit 3 uses a serial signaling scheme to program and debug a target device. the signals utilized are a clock and a data signal. in most devices they are also mapped to a port (typically rb6 and rb7), but they are also defined in some data sheets as pgc and pgd or icspclk and icspdat.
pickit? 3 user?s guide DS51795A-page 68 ? 2009 microchip technology inc. additionally, mclr is also used as either a high voltage programming signal or as an attention indicator to the device. in order to have trouble free in-circuit debugging, careful planning must be done by the designer to avoid any problems during the application development or production phase of the product. recommended configuration the signals pgc and pgd are active bidirectional signals driven by the pickit 3 and target emulation device. if these signals can be kept free from any other passive circuits or active logic in the application, it will ensure trouble free debugging and programming sessions. also, cable length and/or type may be negligible with this configuration. additionally, the mclr signal is used by pickit 3 to provide the voltage used for pro- gramming some devices or to signal attention. in instances where the application has a large capacitor, it will cause the signal rise and fall time to degrade. this will hinder the ability of pickit 3 and the device to communicate effectively. it is recommended to keep the signal pulled up to v dd with a 10k resistor, and to utilize the power-on timer features of the device to ensure a proper power-up sequence. alternate configuration in some cases, especially with low pin count devices, the pins must be utilized by the application. if this is the case, as a minimum, a resistive isolation is required between the device and the application active node. this will ensure that both the application circuit and pickit 3 are able to drive the pgc or pgd node to ground and to the proper v dd levels. figure b-1 depicts this configuration. figure b-1: typical icsp? application circuit the resistive isolation value will differ depending on the application and how it is being used. values ranging from 1k to 10k are suggested. in any case, ensure the levels on pgd and pgc can be driven to their appropriate logic voltage levels. communication channel some devices have the flexibility to use one of several communication channels or pins for programming and debugging. these channels are generally referred to in data sheets as pgcx/pgdx, where x is channel number identifier. these channels are often multiplexed with some peripherals (i 2 c?, spi, a/d). if your application uses those
operational advisory ? 2009 microchip technology inc. DS51795A-page 69 peripherals and pins which are common to the default pgc/pgd pins, you must select a different channel and make provisions for the required icsp connections. likewise, when using mplab ide to communicate with the target using this new chan- nel pin assignment, you must ensure that the configuration bits in mplab ide match the connection channel in your target. grounding and ac applications pickit 3 connects to earth ground from the usb connector interface through the pc. for ac line powered applications which are not referenced to ground, this presents a path where the different system voltage potential can cause damage to both systems. in these instances, the pickit 3 must be isolated. carefully consider the ground system and signal return connections before connecting the pickit 3 to the target. for hot or floating applications, a usb self-powered isolated hub should be used between the pc and the pickit 3 to provide isolation from the pc?s earth ground through the usb cable (see figure b-2). usb isolated hub such as the following are suggestions: ? high/low-speed 4-port usb hub, model uisohub 4, b&b electronics mfg. co. ? high-speed, 7-port usb hub, model hub7p, sealevel systems, inc. figure b-2: example pickit? 3 setup for non-isolated ac power systems warning using the pickit 3 without ensuring ground isolation will result in damage to the pickit 3 or the target system as the full ac mains voltage will be applied. this condition can be hazardous to the operator in the form of an electric shock. therefore, take adequate precautions to avoid this situation. pc a/c a/c optoisolated self-powered pickit 3 tar g e t application earth ground ta r g e t ground usb hub hot warning using an optoisolated usb hub will create a hot area marked with the dotted line in figure b-2. this condition can be hazardous to the operator in the form of an electric shock, therefore, take adequate precautions to avoid this situation.
pickit? 3 user?s guide DS51795A-page 70 ? 2009 microchip technology inc. correcting crosstalk in some cases a crosstalk problem may exist when the device is being programmed. due to the locations of the pgc and pgd pins, crosstalk may degrade the signal and cause the pickit 3 to fail programming of the target device. to correct this, try the following: ? construct a rj12 modular cable. keep the length as short as possible, preferably under 6 inches. also, remove the jacket from the cable, so that the conductors are far apart from each other (especially the pgc and pgd signals). the standard modular cable is wired as shown in figure b-3, that is, rj12 pin 1 on one end connects to rj12 pin 6 on the other end. this solves the problem in nearly all cases. figure b-3: target connector pinout hibernation when using the pickit 3 for prolonged periods of time, especially while the debugger is in emulation mode, disable the hibernate mode in the power options dialog window of the pc?s operating system. click on the hibernate tab and clear or uncheck the ?enable hibernation? check box. this will ensure that all communication is maintained across all the usb subsystem components. 1 2 3 4 5 6 target connector target bottom side pc board vpp/mclr vss pgc vdd pgd lvp note 1: noise-inducing equipment (motors, light dimmers, etc.) must be on separate power strips from the target application and the pickit 3.
pickit? 3 user?s guide ? 2009 microchip technology inc. DS51795A-page 71 glossary absolute section a section with a fixed (absolute) address that cannot be changed by the linker. access memory (pic18 only) special registers on pic18 devices that allow access regardless of the setting of the bank select register (bsr). access entry points access entry points provide a way to transfer control across segments to a function which may not be defined at link time. they support the separate linking of boot and secure application segments. address value that identifies a location in memory. alphabetic character alphabetic characters are those characters that are letters of the arabic alphabet (a, b, ?, z, a, b, ?, z). alphanumeric alphanumeric characters are comprised of alphabetic characters and decimal digits (0,1, ?, 9). anded breakpoints set up an anded condition for breaking, i.e., breakpoint 1 and breakpoint 2 must occur at the same time before a program halt. this can only be accomplished if a data breakpoint and a program memory breakpoint occur at the same time. anonymous structure an unnamed structure. anonymous structure an unnamed structure that is a member of a c union. the members of an anonymous structure may be accessed as if they were members of the enclosing union. for exam- ple, in the following code, hi and lo are members of an anonymous structure inside the union caster. union castaway int intval; struct { char lo; //accessible as caster.lo char hi; //accessible as caster.hi }; } caster; ansi american national standards institute is an organization responsible for formulating and approving standards in the united states. application a set of software and hardware that may be controlled by a pic microcontroller.
pickit? 3 user?s guide DS51795A-page 72 ? 2009 microchip technology inc. archive a collection of relocatable object modules. it is created by assembling multiple source files to object files, and then using the archiver to combine the object files into one library file. a library can be linked with object modules and other libraries to create executable code. archiver a tool that creates and manipulates libraries. ascii american standard code for information interchange is a character set encoding that uses 7 binary digits to represent each character. it includes upper and lower case letters, digits, symbols and control characters. assembler a language tool that translates assembly language source code into machine code. assembly language a programming language that describes binary machine code in a symbolic form. assigned section a section which has been assigned to a target memory block in the linker command file. asynchronously multiple events that do not occur at the same time. this is generally used to refer to interrupts that may occur at any time during processor execution. asynchronous stimulus data generated to simulate external inputs to a simulator device. attribute characteristics of variables or functions in a c program which are used to describe machine-specific properties. attribute, section characteristics of sections, such as ?executable?, ?readonly?, or ?data? that can be specified as flags in the assembler .section directive. binary the base two numbering system that uses the digits 0-1. the rightmost digit counts ones, the next counts multiples of 2, then 2 2 = 4, etc. bookmarks use bookmarks to easily locate specific lines in a file. under the edit menu, select bookmarks to manage bookmarks. toggle (enable / disable) a bookmark, move to the next or previous bookmark, or clear all bookmarks. breakpoint, hardware an event whose execution will cause a halt. breakpoint, software an address where execution of the firmware will halt. usually achieved by a special break instruction. build compile and link all the source files for an application. c a general-purpose programming language which features economy of expression, modern control flow and data structures, and a rich set of operators.
glossary ? 2009 microchip technology inc. DS51795A-page 73 calibration memory a special function register or registers used to hold values for calibration of a pic microcontroller on-board rc oscillator or other device peripherals. central processing unit the part of a device that is responsible for fetching the correct instruction for execution, decoding that instruction, and then executing that instruction. when necessary, it works in conjunction with the arithmetic logic unit (alu) to complete the execution of the instruction. it controls the program memory address bus, the data memory address bus, and accesses to the stack. clean under the mplab ide project menu, clean removes all intermediary project files, such as object, hex and debug files, for the active project. these files are recreated from other files when a project is built. coff common object file format. an object file of this format contains machine code, debugging and other information. command line interface a means of communication between a program and its user based solely on textual input and output. compiler a program that translates a source file written in a high-level language into machine code. conditional assembly assembly language code that is included or omitted based on the assembly-time value of a specified expression. conditional compilation the act of compiling a program fragment only if a certain constant expression, specified by a preprocessor directive, is true. configuration bits special-purpose bits programmed to set pic microcontroller modes of operation. a configuration bit may or may not be preprogrammed. control directives directives in assembly language code that cause code to be included or omitted based on the assembly-time value of a specified expression. cpu see central processing unit. cross reference file a file that references a table of symbols and a list of files that references the symbol. if the symbol is defined, the first file listed is the location of the definition. the remaining files contain references to the symbol. data directives data directives are those that control the assembler?s allocation of program or data memory and provide a way to refer to data items symbolically; that is, by meaningful names.
pickit? 3 user?s guide DS51795A-page 74 ? 2009 microchip technology inc. data memory on microchip mcu and dsc devices, data memory (ram) is comprised of general purpose registers (gprs) and special function registers (sfrs). some devices also have eeprom data memory. debugging information compiler and assembler options that, when selected, provide varying degrees of infor- mation used to debug application code. see compiler or assembler documentation for details on selecting debug options. deprecated features features that are still supported for legacy reasons, but will eventually be phased out and no longer used. device programmer a tool used to program electrically programmable semiconductor devices such as microcontrollers. digital signal controller a microcontroller device with digital signal processing capability, i.e., microchip dspic dsc devices. digital signal processing the computer manipulation of digital signals, commonly analog signals (sound or image) which have been converted to digital form (sampled). digital signal processor a microprocessor that is designed for use in digital signal processing. directives statements in source code that provide control of the language tool?s operation. download download is the process of sending data from a host to another device, such as an debugger, programmer or target board. dsc see digital signal controller. dsp see digital signal processor. dwarf debug with arbitrary record format. dwarf is a debug information format for elf files. eeprom electrically erasable programmable read only memory. a special type of prom that can be erased electrically. data is written or erased one byte at a time. eeprom retains its contents even when power is turned off. elf executable and linking format. an object file of this format contains machine code. debugging and other information is specified in with dwarf. elf/dwarf provide better debugging of optimized code than coff. emulation the process of executing software loaded into emulation memory as if it were firmware residing on a microcontroller device.
glossary ? 2009 microchip technology inc. DS51795A-page 75 emulation memory program memory contained within the debugger. debugger hardware that performs emulation. debugger system the mplab ice 2000 and mplab ice 4000 debugger systems include the pod, pro- cessor module, device adapter, target board, cables, and mplab ide software. the pickit 3 system consists of a pod, a driver (and potentially a receiver) card, target board, cables, and mplab ide software. endianess the ordering of bytes in a multi-byte object. environment ? ide the particular layout of the desktop for application development. environment ? mplab pm3 a folder containing files on how to program a device. this folder can be transferred to a sd/mmc card. epilogue a portion of compiler-generated code that is responsible for deallocating stack space, restoring registers and performing any other machine-specific requirement specified in the runtime model. this code executes after any user code for a given function, immediately prior to the function return. eprom erasable programmable read only memory. a programmable read-only memory that can be erased usually by exposure to ultraviolet radiation. error file a file containing error messages and diagnostics generated by a language tool. errors errors report problems that make it impossible to continue processing your program. when possible, errors identify the source file name and line number where the problem is apparent. event a description of a bus cycle which may include address, data, pass count, external input, cycle type (fetch, r/w), and time stamp. events are used to describe triggers, breakpoints and interrupts. executable code software that is ready to be loaded for execution. export send data out of the mplab ide in a standardized format. expressions combinations of constants and/or symbols separated by arithmetic or logical operators. extended microcontroller mode in extended microcontroller mode, on-chip program memory as well as external mem- ory is available. execution automatically switches to external if the program memory address is greater than the internal memory space of the pic17 or pic18 device.
pickit? 3 user?s guide DS51795A-page 76 ? 2009 microchip technology inc. extended mode in extended mode, the compiler will utilize the extended instructions (i.e., addfsr , addulnk , callw , movsf , movss , pushl , subfsr and subulnk ) and the indexed with literal offset addressing. external label a label that has external linkage. external linkage a function or variable has external linkage if it can be referenced from outside the module in which it is defined. external symbol a symbol for an identifier which has external linkage. this may be a reference or a definition. external symbol resolution a process performed by the linker in which external symbol definitions from all input modules are collected in an attempt to resolve all external symbol references. any external symbol references which do not have a corresponding definition cause a linker error to be reported. external input line an external input signal logic probe line (trigin) for setting an event based upon external signals. external ram off-chip read/write memory. fatal error an error that will halt compilation immediately. no further messages will be produced. file registers on-chip data memory, including general purpose registers (gprs) and special function registers (sfrs). filter determine by selection what data is included/excluded in a trace display or data file. flash a type of eeprom where data is written or erased in blocks instead of bytes. fnop forced no operation. a forced nop cycle is the second cycle of a two-cycle instruction. since the pic microcontroller architecture is pipelined, it prefetches the next instruction in the physical address space while it is executing the current instruction. however, if the current instruction changes the program counter, this prefetched instruction is explicitly ignored, causing a forced nop cycle. frame pointer a pointer that references the location on the stack that separates the stack-based arguments from the stack-based local variables. provides a convenient base from which to access local variables and other values for the current function.
glossary ? 2009 microchip technology inc. DS51795A-page 77 free-standing an implementation that accepts any strictly conforming program that does not use complex types and in which the use of the features specified in the library clause (ansi ?89 standard clause 7) is confined to the contents of the standard headers , , , , , and . gpr general purpose register. the portion of device data memory (ram) available for general use. halt a stop of program execution. executing halt is the same as stopping at a breakpoint. heap an area of memory used for dynamic memory allocation where blocks of memory are allocated and freed in an arbitrary order determined at runtime. hex code executable instructions stored in a hexadecimal format code. hex code is contained in a hex file. hex file an ascii file containing hexadecimal addresses and values (hex code) suitable for programming a device. hexadecimal the base 16 numbering system that uses the digits 0-9 plus the letters a-f (or a-f). the digits a-f represent hexadecimal digits with values of (decimal) 10 to 15. the rightmost digit counts ones, the next counts multiples of 16, then 16 2 = 256, etc. high level language a language for writing programs that is further removed from the processor than assembly. icd in-circuit debugger. mplab icd 3 is a microchip?s in-circuit debugger. ice in-circuit emulator. mplab ice 2000 and mplab ice 4000 are microchip?s in-circuit emulators. icsp in-circuit serial programming. a method of programming microchip embedded devices using serial communication and a minimum number of device pins. ide integrated development environment. mplab ide is microchip?s integrated development environment. identifier a function or variable name. ieee institute of electrical and electronics engineers. import bring data into the mplab ide from an outside source, such as from a hex file.
pickit? 3 user?s guide DS51795A-page 78 ? 2009 microchip technology inc. initialized data data which is defined with an initial value. in c, int myvar=5; defines a variable which will reside in an initialized data section. instruction set the collection of machine language instructions that a particular processor understands. instructions a sequence of bits that tells a central processing unit to perform a particular operation and can contain data to be used in the operation. internal linkage a function or variable has internal linkage if it can not be accessed from outside the module in which it is defined. international organization for standardization an organization that sets standards in many businesses and technologies, including computing and communications. interrupt a signal to the cpu that suspends the execution of a running application and transfers control to an interrupt service routine (isr) so that the event may be processed. upon completion of the isr, normal execution of the application resumes. interrupt handler a routine that processes special code when an interrupt occurs. interrupt request an event which causes the processor to temporarily suspend normal instruction exe- cution and to start executing an interrupt handler routine. some processors have several interrupt request events allowing different priority interrupts. interrupt service routine a function that handles an interrupt. interrupt service routine user-generated code that is entered when an interrupt occurs. the location of the code in program memory will usually depend on the type of interrupt that has occurred. interrupt vector address of an interrupt service routine or interrupt handler. irq see interrupt request. iso see international organization for standardization. isr see interrupt service routine. l-value an expression that refers to an object that can be examined and/or modified. an l-value expression is used on the left-hand side of an assignment. latency the time between an event and its response.
glossary ? 2009 microchip technology inc. DS51795A-page 79 librarian see archiver. library see archive. linker a language tool that combines object files and libraries to create executable code, resolving references from one module to another. linker script files linker script files are the command files of a linker. they define linker options and describe available memory on the target platform. listing directives listing directives are those directives that control the assembler listing file format. they allow the specification of titles, pagination and other listing control. listing file a listing file is an ascii text file that shows the machine code generated for each c source statement, assembly instruction, assembler directive, or macro encountered in a source file. little endian a data ordering scheme for multibyte data whereby the least significant byte is stored at the lower addresses. local label a local label is one that is defined inside a macro with the local directive. these labels are particular to a given instance of a macro?s instantiation. in other words, the symbols and labels that are declared as local are no longer accessible after the endm macro is encountered. logic probes up to 14 logic probes can be connected to some microchip debuggers. the logic probes provide external trace inputs, trigger output signal, +5v, and a common ground. loop-back test board used to test the functionality of the mplab icd 3 in-circuit debugger. lvds low voltage differential signaling. a low noise, low-power, low amplitude method for high-speed (gigabits per second) data transmission over copper wire. lvds differs from normal input/output (i/o) in a few ways: normal digital i/o works with 5 volts as a high (binary ?1?) and 0 volts as a low (binary ?0?). when you use a differential, you add a third option (-5 volts), which provides an extra level with which to encode, and results in a higher maximum data transfer rate. a higher data transfer rate means fewer wires are required, as in uw (ultra wide) and uw-2/3 scsi hard disks, which use only 68 wires. these devices require a high trans- fer rate over short distances. using standard i/o transfer, scsi hard drives would require a lot more than 68 wires. low voltage means that the standard 5 volts is replaced by either 3.3 volts or 1.5 volts. lvds uses a dual wire system, running 180 degrees of each other. this enables noise to travel at the same level, which in turn can get filtered more easily and effectively.
pickit? 3 user?s guide DS51795A-page 80 ? 2009 microchip technology inc. with standard i/0 signaling, data storage is contingent upon the actual voltage level. voltage level can be affected by wire length (longer wires increase resistance, which lowers voltage). but with lvds, data storage is distinguished only by positive and neg- ative voltage values, not the voltage level. therefore, data can travel over greater lengths of wire while maintaining a clear and consistent data stream. source: http://www.webopedia.com/term/l/lvds.html. machine code the representation of a computer program that is actually read and interpreted by the processor. a program in binary machine code consists of a sequence of machine instructions (possibly interspersed with data). the collection of all possible instructions for a particular processor is known as its ?instruction set?. machine language a set of instructions for a specific central processing unit, designed to be usable by a processor without being translated. macro macro instruction. an instruction that represents a sequence of instructions in abbrevi- ated form. macro directives directives that control the execution and data allocation within macro body definitions. makefile export to a file the instructions to make the project. use this file to make your project outside of mplab ide, i.e., with a make . under project>build options>project , directories tab, you must have selected ?assemble/compile/link in the project directory? under ?build directory policy? for this feature to work. make project a command that rebuilds an application, recompiling only those source files that have changed since the last complete compilation. mcu microcontroller unit. an abbreviation for microcontroller. also c. memory models a representation of the memory available to the application. memory model a description that specifies the size of pointers that point to program memory. message text displayed to alert you to potential problems in language tool operation. a message will not stop operation. microcontroller a highly integrated chip that contains a cpu, ram, program memory, i/o ports and timers. microcontroller mode one of the possible program memory configurations of pic17 and pic18 microcon- trollers. in microcontroller mode, only internal execution is allowed. thus, only the on-chip program memory is available in microcontroller mode.
glossary ? 2009 microchip technology inc. DS51795A-page 81 microprocessor mode one of the possible program memory configurations of pic17 and pic18 microcon- trollers. in microprocessor mode, the on-chip program memory is not used. the entire program memory is mapped externally. mnemonics text instructions that can be translated directly into machine code. also referred to as opcodes. mpasm? assembler microchip technology?s relocatable macro assembler for pic microcontroller devices, keeloq ? devices and microchip memory devices. mplab asm30 microchip?s relocatable macro assembler for dspic digital signal controller and pic24 pic devices. mplab c compilers refers to the mplab c c compilers from microchip: ? mplab c compiler for pic18 mcu devices (formerly mplab c18) ? mplab c compiler for dspic digital signal controller and pic24 pic devices (formerly mplab c30) ? mplab c compiler for pic32mx mcu?s (formerly mplab c32) mplab icd 2 microchip?s in-circuit debugger that works with mplab ide. the icd supports flash devices with built-in debug circuitry. the main component of each icd is the pod. a complete system consists of a pod, header board (with a device -icd), target board, cables, and mplab ide software. mplab icd 3 in-circuit debugger microchip?s in-circuit debuggers that works with mplab ide. the mplab icd 3 debugger supports pic18f and pic24 mcus and dspic dscs. the main component of each ice is the pod. a complete system consists of a pod, a driver (and potentially a receiver) card, cables, and mplab ide software. mplab ice 2000 microchip?s in-circuit debugger that works with mplab ide. mplab ice 2000 supports 8-bit pic mcus. the main component of each ice is the pod. a complete system con- sists of a pod, processor module, cables, and mplab ide software. mplab ice 4000 not recommended for new designs. see the mplab icd 3 in-circuit debugger. microchip?s in-circuit debugger that works with mplab ide. mplab ice 4000 supports pic18f and pic24 mcus and dspic dscs. the main component of each ice is the pod. a complete system consists of a pod, processor module, cables, and mplab ide software. mplab ide microchip?s integrated development environment. mplab lib30 mplab lib30 archiver/librarian is an object librarian for use with object modules created using either mplab asm30 or mplab c30 c compiler. mplab link30 mplab link30 is an object linker for the microchip mplab asm30 assembler and the microchip mplab c30 c compiler.
pickit? 3 user?s guide DS51795A-page 82 ? 2009 microchip technology inc. mplab pm3 a device programmer from microchip. programs pic18 microcontrollers and dspic digital signal controllers. can be used with mplab ide or stand-alone. will obsolete pro mate ii. mplab sim microchip?s simulator that works with mplab ide in support of pic mcu and dspic dsc devices. mplib? object librarian microchip?s librarian that can work with mplab ide. mplib librarian is an object librar- ian for use with coff object modules created using either mpasm assembler (mpasm or mpasmwin v2.0) or mplab c compilers. mplink? object linker mplink linker is an object linker for the microchip mpasm assembler and the micro- chip mplab c compilers. mplink linker also may be used with the microchip mplib librarian. mplink linker is designed to be used with mplab ide, though it does not have to be. mru most recently used. refers to files and windows available to be selected from mplab ide main pull down menus. native data size for native trace, the size of the variable used in a watch window must be of the same size as the selected device?s data memory: bytes for pic18 devices and words for 16-bit devices. nesting depth the maximum level to which macros can include other macros. node mplab ide project component. non-extended mode in non-extended mode, the compiler will not utilize the extended instructions nor the indexed with literal offset addressing. non real time refers to the processor at a breakpoint or executing single-step instructions or mplab ide being run in simulator mode. non-volatile storage a storage device whose contents are preserved when its power is off. nop no operation. an instruction that has no effect when executed except to advance the program counter. object code the machine code generated by an assembler or compiler. object file a file containing machine code and possibly debug information. it may be immediately executable or it may be relocatable, requiring linking with other object files, e.g., libraries, to produce a complete executable program. object file directives directives that are used only when creating an object file.
glossary ? 2009 microchip technology inc. DS51795A-page 83 octal the base 8 number system that only uses the digits 0-7. the rightmost digit counts ones, the next digit counts multiples of 8, then 8 2 = 64, etc. off-chip memory off-chip memory refers to the memory selection option for the pic17 or pic18 device where memory may reside on the target board, or where all program memory may be supplied by the debugger. the memory tab accessed from options>development mode provides the off-chip memory selection dialog box. one-to-one project-workspace model the most common configuration for application development in mplab ide to is have one project in one workspace. select configure>settings , projects tab and check ?use one-to-one project-workspace model?. opcodes operational codes. see mnemonics. operators symbols, like the plus sign ?+? and the minus sign ?-?, that are used when forming well-defined expressions. each operator has an assigned precedence that is used to determine order of evaluation. otp one time programmable. eprom devices that are not in windowed packages. since eprom needs ultraviolet light to erase its memory, only windowed devices are eras- able. pass counter a counter that decrements each time an event (such as the execution of an instruction at a particular address) occurs. when the pass count value reaches zero, the event is satisfied. you can assign the pass counter to break and trace logic, and to any sequential event in the complex trigger dialog. pc personal computer or program counter. pc host any pc running a supported windows operating system. persistent data data that is never cleared or initialized. its intended use is so that an application can preserve data across a device reset. phantom byte an unimplemented byte in the dspic architecture that is used when treating the 24-bit instruction word as if it were a 32-bit instruction word. phantom bytes appear in dspic hex files. pic mcus pic microcontrollers (mcus) refers to all microchip microcontroller families. picstart plus a developmental device programmer from microchip. programs 8-, 14-, 28-, and 40-pin pic microcontrollers. must be used with mplab ide software.
pickit? 3 user?s guide DS51795A-page 84 ? 2009 microchip technology inc. plug-ins the mplab ide has both built-in components and plug-in modules to configure the system for a variety of software and hardware tools. several plug-in tools may be found under the tools menu. pod mplab real ice system: the box that contains the emulation control circuitry for the ice device on the header or target board. an ice device can be a production device with built-in ice circuitry or a special ice version of a production device (i.e., device -ice). mplab icd 2/3: the box that contains the debug control circuitry for the icd device on the header or target board. an icd device can be a production device with built-in icd circuitry or a special icd version of a production device (i.e., device -icd). mplab ice 2000/4000: the external debugger box that contains emulation memory, trace memory, event and cycle timers, and trace/breakpoint logic. power-on-reset emulation a software randomization process that writes random values in data ram areas to simulate uninitialized values in ram upon initial power application. pragma a directive that has meaning to a specific compiler. often a pragma is used to convey implementation-defined information to the compiler. mplab c30 uses attributes to convey this information. precedence rules that define the order of evaluation in expressions. pro mate ii no longer in production. see the mplab pm3 device programmer. a device programmer from microchip. programs most pic microcontrollers as well as most memory and k ee l oq devices. can be used with mplab ide or stand-alone. profile for mplab sim simulator, a summary listing of executed stimulus by register. program counter the location that contains the address of the instruction that is currently executing. program counter unit a conceptual representation of the layout of program memory. the program counter increments by 2 for each instruction word. in an executable section, 2 program counter units are equivalent to 3 bytes. in a read-only section, 2 program counter units are equivalent to 2 bytes. program memory the memory area in a device where instructions are stored. also, the memory in the debugger or simulator containing the downloaded target application firmware. program memory the memory area in a device where instructions are stored. project a project contains the files needed to build an application (source code, linker script files, etc.) along with their associations to various build tools and build options.
glossary ? 2009 microchip technology inc. DS51795A-page 85 prologue a portion of compiler-generated code that is responsible for allocating stack space, pre- serving registers and performing any other machine-specific requirement specified in the runtime model. this code executes before any user code for a given function. prototype system a term referring to a user's target application, or target board. pwm signals pulse-width modulation signals. certain pic mcu devices have a pwm peripheral. qualifier an address or an address range used by the pass counter or as an event before another operation in a complex trigger. radix the number base, hex, or decimal, used in specifying an address. ram random access memory (data memory). memory in which information can be accessed in any order. raw data the binary representation of code or data associated with a section. read only memory memory hardware that allows fast access to permanently stored data but prevents addition to or modification of the data. real time when an in-circuit debugger or debugger is released from the halt state, the processor runs in real-time mode and behaves exactly as the normal chip would behave. in real-time mode, the real time trace buffer of an debugger is enabled and constantly captures all selected cycles, and all break logic is enabled. in an in-circuit debugger or debugger, the processor executes in real time until a valid breakpoint causes a halt, or until the user halts the execution. in the simulator, real time simply means execution of the microcontroller instructions as fast as they can be simulated by the host cpu. real-time watch a watch window where the variables change in real-time as the application is run. see individual tool documentation to determine how to set up a real-time watch. not all tools support real-time watches. recursive calls a function that calls itself, either directly or indirectly. recursion the concept that a function or macro, having been defined, can call itself. great care should be taken when writing recursive macros; it is easy to get caught in an infinite loop where there will be no exit from the recursion. reentrant a function that may have multiple, simultaneously active instances. this may happen due to either direct or indirect recursion or through execution during interrupt processing.
pickit? 3 user?s guide DS51795A-page 86 ? 2009 microchip technology inc. relaxation the process of converting an instruction to an identical, but smaller instruction. this is useful for saving on code size. mplab asm30 currently knows how to relax a call instruction into an rcall instruction. this is done when the symbol that is being called is within +/- 32k instruction words from the current instruction. relocatable an object whose address has not been assigned to a fixed location in memory. relocatable section a section whose address is not fixed (absolute). the linker assigns addresses to relocatable sections through a process called relocation. relocation a process performed by the linker in which absolute addresses are assigned to relo- catable sections and all symbols in the relocatable sections are updated to their new addresses. rom read only memory (program memory). memory that cannot be modified. run the command that releases the debugger from halt, allowing it to run the application code and change or respond to i/o in real time. run-time model describes the use of target architecture resources. scenario for mplab sim simulator, a particular setup for stimulus control. section a portion of an application located at a specific address of memory. section attribute a characteristic ascribed to a section (e.g., an access section). sequenced breakpoints breakpoints that occur in a sequence. sequence execution of breakpoints is bottom-up; the last breakpoint in the sequence occurs first. serialized quick turn programming serialization allows you to program a serial number into each microcontroller device that the device programmer programs. this number can be used as an entry code, password or id number. sfr see special function registers. shell the mpasm assembler shell is a prompted input interface to the macro assembler. there are two mpasm assembler shells: one for the dos version and one for the windows version. simulator a software program that models the operation of devices.
glossary ? 2009 microchip technology inc. DS51795A-page 87 single step this command steps though code, one instruction at a time. after each instruction, mplab ide updates register windows, watch variables, and status displays so you can analyze and debug instruction execution. you can also single step c compiler source code, but instead of executing single instructions, mplab ide will execute all assembly level instructions generated by the line of the high level c statement. skew the information associated with the execution of an instruction appears on the proces- sor bus at different times. for example, the executed opcodes appears on the bus as a fetch during the execution of the previous instruction, the source data address and value and the destination data address appear when the opcodes is actually executed, and the destination data value appears when the next instruction is executed. the trace buffer captures the information that is on the bus at one instance. therefore, one trace buffer entry will contain execution information for three instructions. the number of cap- tured cycles from one piece of information to another for a single instruction execution is referred to as the skew. skid when a hardware breakpoint is used to halt the processor, one or more additional instructions may be executed before the processor halts. the number of extra instructions executed after the intended breakpoint is referred to as the skid. source code the form in which a computer program is written by the programmer. source code is written in a formal programming language which can be translated into machine code or executed by an interpreter. source file an ascii text file containing source code. special function registers the portion of data memory (ram) dedicated to registers that control i/o processor functions, i/o status, timers or other modes or peripherals. sqtp see serialized quick turn programming. stack, hardware locations in pic microcontroller where the return address is stored when a function call is made. stack, software memory used by an application for storing return addresses, function parameters, and local variables. this memory is typically managed by the compiler when developing code in a high-level language. static ram or sram static random access memory. program memory you can read/write on the target board that does not need refreshing frequently. status bar the status bar is located on the bottom of the mplab ide window and indicates such current information as cursor position, development mode and device, and active tool bar. step into this command is the same as single step. step into (as opposed to step over) follows a call instruction into a subroutine.
pickit? 3 user?s guide DS51795A-page 88 ? 2009 microchip technology inc. step over step over allows you to debug code without stepping into subroutines. when stepping over a call instruction, the next breakpoint will be set at the instruction after the call . if for some reason the subroutine gets into an endless loop or does not return properly, the next breakpoint will never be reached. the step over command is the same as single step except for its handling of call instructions. step out step out allows you to step out of a subroutine which you are currently stepping through. this command executes the rest of the code in the subroutine and then stops execution at the return address to the subroutine. stimulus input to the simulator, i.e., data generated to exercise the response of simulation to external signals. often the data is put into the form of a list of actions in a text file. stimulus may be asynchronous, synchronous (pin), clocked and register. stopwatch a counter for measuring execution cycles. storage class determines the lifetime of the memory associated with the identified object. storage qualifier indicates special properties of the objects being declared (e.g., const ). symbol a symbol is a general purpose mechanism for describing the various pieces which comprise a program. these pieces include function names, variable names, section names, file names, struct/enum/union tag names, etc. symbols in mplab ide refer mainly to variable names, function names and assembly labels. the value of a symbol after linking is its value in memory. symbol, absolute represents an immediate value such as a definition through the assembly .equ directive. system window control the system window control is located in the upper left corner of windows and some dia- logs. clicking on this control usually pops up a menu that has the items ?minimize,? ?maximize,? and ?close.? target refers to user hardware. target application software residing on the target board. target board the circuitry and programmable device that makes up the target application. target processor the microcontroller device on the target application board. template lines of text that you build for inserting into your files at a later time. the mplab editor stores templates in template files. tool bar a row or column of icons that you can click on to execute mplab ide functions.
glossary ? 2009 microchip technology inc. DS51795A-page 89 trace an debugger or simulator function that logs program execution. the debugger logs pro- gram execution into its trace buffer which is uploaded to mplab ide?s trace window. trace memory trace memory contained within the debugger. trace memory is sometimes called the trace buffer. trace macro a macro that will provide trace information from debugger data. since this is a software trace, the macro must be added to code, the code must be recompiled or reassembled, and the target device must be programmed with this code before trace will work. trigger output trigger output refers to an debugger output signal that can be generated at any address or address range, and is independent of the trace and breakpoint settings. any number of trigger output points can be set. trigraphs three-character sequences, all starting with ??, that are defined by iso c as replacements for single characters. unassigned section a section which has not been assigned to a specific target memory block in the linker command file. the linker must find a target memory block in which to allocate an unassigned section. uninitialized data data which is defined without an initial value. in c, int myvar; defines a variable which will reside in an uninitialized data section. upload the upload function transfers data from a tool, such as an debugger or programmer, to the host pc or from the target board to the debugger. usb universal serial bus. an external peripheral interface standard for communication between a computer and external peripherals over a cable using bi-serial transmission. usb 1.0/1.1 supports data transfer rates of 12 mbps. also referred to as high-speed usb, usb 2.0 supports data rates up to 480 mbps. vector the memory locations that an application will jump to when either a reset or interrupt occurs. warning an alert that is provided to warn you of a situation that would cause physical damage to a device, software file, or equipment. warning warnings report conditions that may indicate a problem, but do not halt processing. in mplab c30, warning messages report the source file name and line number, but include the text ? warning: ? to distinguish them from error messages. watch variable a variable that you may monitor during a debugging session in a watch window.
pickit? 3 user?s guide DS51795A-page 90 ? 2009 microchip technology inc. watch window watch windows contain a list of watch variables that are updated at each breakpoint. watchdog timer a timer on a pic microcontroller that resets the processor after a selectable length of time. the wdt is enabled or disabled and set up using configuration bits. wdt see watchdog timer. workbook for mplab sim stimulator, a setup for generation of scl stimulus. workspace a workspace contains mplab ide information on the selected device, selected debug tool and/or programmer, open windows and their location, and other ide configuration settings.
? 2009 microchip technology inc. DS51795A-page 91 pickit? 3 user?s guide index numerics 44-pin demo board ................................................. 31 a abort operation...................................................50 , 55 animate .................................................................... 49 avdd ........................................................................ 18 avss......................................................................... 18 b blank check............................................................. 55 breakpoints dialog................................................................ 51 enabling............................................................ 51 setup ................................................................ 50 build configuration..............................................22 , 35 c cables length ..........................................................60 , 63 capacitors ...........................................................18 , 19 cd-rom .................................................................. 12 circuits that will prevent the debugger from functioning ................................................. 19 code protect ............................................................ 20 codeguard security ................................................ 58 configuration bits................................................20 , 28 connector, 6-pin ...................................................... 10 customer notification service.................................... 5 customer support ...................................................... 6 d debug executive .......................................................... 22 registers........................................................... 22 debug express ........................................................ 31 debug mode sequence of operations ................................... 21 debug read............................................................. 50 debug, top reasons why you can?t ...................... 35 device and feature support .................................... 13 documentation conventions........................................................ 3 layout ................................................................. 2 download firmware ................................................. 57 driver board standard ........................................................... 61 durability, card guide.............................................. 60 e erase........................................................................ 55 erase flash device .................................................. 50 f feature support ....................................................... 13 firmware downloads ............................................... 57 freeze on halt.......................................................... 38 g general corrective actions ...................................... 44 h halt........................................................................... 49 hibernate mode.................................................. 38 , 60 hubs, usb ............................................................... 60 i icd headers ............................................................ 12 icsp........................................................20 , 21 , 22 , 61 icspclk.................................................................. 61 icspdat.................................................................. 61 indicator lights......................................................... 60 internet address, microchip ....................................... 5 l leds .................................................................. 11 , 60 m modular interface cable........................................... 20 mplab ide .............................................................. 23 p pc, power down................................................ 38 , 60 pgc .................................................. 17 , 18 , 19 , 20 , 21 pgd .................................................. 17 , 18 , 19 , 20 , 21 pickit 3 components ............................................... 12 pickit 3 debug express kit...................................... 12 pickit 3 defined ......................................................... 9 pim........................................................................... 16 pk3err0001.............................................................. 41 pk3err0002.............................................................. 41 pk3err0003.............................................................. 41 pk3err0006.............................................................. 41 pk3err0007.............................................................. 41 pk3err0008.............................................................. 41 pk3err0009.............................................................. 41 pk3err0010.............................................................. 41 pk3err0011.............................................................. 41 pk3err0012.............................................................. 42 pk3err0013.............................................................. 42 pk3err0014.............................................................. 42 pk3err0015.............................................................. 42 pk3err0016.............................................................. 42 pk3err0017.............................................................. 42 pk3err0018.............................................................. 42 pk3err0019.............................................................. 42
pickit? 3 user?s guide DS51795A-page 92 ? 2009 microchip technology inc. pk3err0020.............................................................. 42 pk3err0021.............................................................. 42 pk3err0022.............................................................. 42 pk3err0023.............................................................. 42 pk3err0024.............................................................. 42 pk3err0025.............................................................. 42 pk3err0026.............................................................. 42 pk3err0027.............................................................. 42 pk3err0028.............................................................. 42 pk3err0029.............................................................. 43 pk3err0030.............................................................. 43 pk3err0031.............................................................. 43 pk3err0032.............................................................. 43 pk3err0033.............................................................. 43 pk3err0034.............................................................. 43 pk3err0035.............................................................. 43 pk3err0036.............................................................. 43 pk3err0037.............................................................. 43 pk3err0038.............................................................. 43 pk3err0039.............................................................. 43 pk3err0040.............................................................. 43 pk3err0041.............................................................. 43 pk3err0043.............................................................. 43 pk3err0044.............................................................. 43 pk3err0045.............................................................. 43 pk3err0046.............................................................. 43 pk3err0047.............................................................. 44 pk3err0052.............................................................. 44 pk3err0053.............................................................. 44 pk3err0054.............................................................. 44 pk3err0055.............................................................. 44 pk3err0056.............................................................. 44 pk3err0063.............................................................. 44 pk3err0068.............................................................. 44 pk3err0069.............................................................. 44 pk3err0070.............................................................. 44 pk3err0071.............................................................. 44 pk3err0073.............................................................. 44 pk3err0075.............................................................. 44 power-down mode............................................. 38 , 60 processor extension kits ......................................... 12 program ............................................................. 50 , 55 project wizard .......................................................... 28 pull-ups .................................................................... 19 r read................................................................... 50 , 55 reading, recommended............................................ 4 readme...................................................................... 4 reconnect .......................................................... 50 , 55 reserved resources by device ............................... 22 reset processor .......................................................... 50 resistors .................................................................. 19 run........................................................................... 49 s secure segments..................................................... 58 smps ....................................................................... 13 standard communication connections ...................................................... 17 driver board ...................................................... 61 standard icsp device communication ................... 15 step .......................................................................... 49 t table read protect .................................................. 20 target connection circuitry ............................................................. 17 improper circuits............................................... 19 standard............................................................ 17 target device ........................................................... 20 transition socket...................................................... 12 specification...................................................... 24 u usb .................................................................... 60 , 89 cables ............................................................... 12 hubs.................................................................. 60 usb port .................................................................. 10 v vcap ......................................................................... 18 vdd ..........................................................17 , 18 , 19 , 20 verify ........................................................................ 55 vpp .................................................... 17 , 18 , 19 , 20 , 21 vss ..........................................................17 , 18 , 19 , 20 w warranty registration................................................. 4 watchdog timer ................................................. 20 , 90 web site, microchip ................................................... 5
index ? 2009 microchip technology inc. DS51795A-page 93 notes:
DS51795A-page 94 ? 2009 microchip technology inc. americas corporate office 2355 west chandler blvd. chandler, az 85224-6199 tel: 480-792-7200 fax: 480-792-7277 technical support: http://support.microchip.com web address: www.microchip.com atlanta duluth, ga tel: 678-957-9614 fax: 678-957-1455 boston westborough, ma tel: 774-760-0087 fax: 774-760-0088 chicago itasca, il tel: 630-285-0071 fax: 630-285-0075 dallas addison, tx tel: 972-818-7423 fax: 972-818-2924 detroit farmington hills, mi tel: 248-538-2250 fax: 248-538-2260 kokomo kokomo, in tel: 765-864-8360 fax: 765-864-8387 los angeles mission viejo, ca tel: 949-462-9523 fax: 949-462-9608 santa clara santa clara, ca tel: 408-961-6444 fax: 408-961-6445 toronto mississauga, ontario, canada tel: 905-673-0699 fax: 905-673-6509 asia/pacific asia pacific office suites 3707-14, 37th floor tower 6, the gateway harbour city, kowloon hong kong tel: 852-2401-1200 fax: 852-2401-3431 australia - sydney tel: 61-2-9868-6733 fax: 61-2-9868-6755 china - beijing tel: 86-10-8528-2100 fax: 86-10-8528-2104 china - chengdu tel: 86-28-8665-5511 fax: 86-28-8665-7889 china - hong kong sar tel: 852-2401-1200 fax: 852-2401-3431 china - nanjing tel: 86-25-8473-2460 fax: 86-25-8473-2470 china - qingdao tel: 86-532-8502-7355 fax: 86-532-8502-7205 china - shanghai tel: 86-21-5407-5533 fax: 86-21-5407-5066 china - shenyang tel: 86-24-2334-2829 fax: 86-24-2334-2393 china - shenzhen tel: 86-755-8203-2660 fax: 86-755-8203-1760 china - wuhan tel: 86-27-5980-5300 fax: 86-27-5980-5118 china - xiamen tel: 86-592-2388138 fax: 86-592-2388130 china - xian tel: 86-29-8833-7252 fax: 86-29-8833-7256 china - zhuhai tel: 86-756-3210040 fax: 86-756-3210049 asia/pacific india - bangalore tel: 91-80-4182-8400 fax: 91-80-4182-8422 india - new delhi tel: 91-11-4160-8631 fax: 91-11-4160-8632 india - pune tel: 91-20-2566-1512 fax: 91-20-2566-1513 japan - yokohama tel: 81-45-471- 6166 fax: 81-45-471-6122 korea - daegu tel: 82-53-744-4301 fax: 82-53-744-4302 korea - seoul tel: 82-2-554-7200 fax: 82-2-558-5932 or 82-2-558-5934 malaysia - kuala lumpur tel: 60-3-6201-9857 fax: 60-3-6201-9859 malaysia - penang tel: 60-4-227-8870 fax: 60-4-227-4068 philippines - manila tel: 63-2-634-9065 fax: 63-2-634-9069 singapore tel: 65-6334-8870 fax: 65-6334-8850 taiwan - hsin chu tel: 886-3-572-9526 fax: 886-3-572-6459 taiwan - kaohsiung tel: 886-7-536-4818 fax: 886-7-536-4803 taiwan - taipei tel: 886-2-2500-6610 fax: 886-2-2508-0102 thailand - bangkok tel: 66-2-694-1351 fax: 66-2-694-1350 europe austria - wels tel: 43-7242-2244-39 fax: 43-7242-2244-393 denmark - copenhagen tel: 45-4450-2828 fax: 45-4485-2829 france - paris tel: 33-1-69-53-63-20 fax: 33-1-69-30-90-79 germany - munich tel: 49-89-627-144-0 fax: 49-89-627-144-44 italy - milan tel: 39-0331-742611 fax: 39-0331-466781 netherlands - drunen tel: 31-416-690399 fax: 31-416-690340 spain - madrid tel: 34-91-708-08-90 fax: 34-91-708-08-91 uk - wokingham tel: 44-118-921-5869 fax: 44-118-921-5820 w orldwide s ales and s ervice 01/02/08


▲Up To Search▲   

 
Price & Availability of DS51795A

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X