Microchip Technology PICkit 3 Скачать руководство пользователя страница 24

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

Страница 1: ...ss mainly focus on the distribution of electronic components Line cards we deal with include Microchip ALPS ROHM Xilinx Pulse ON Everlight and Freescale Main products comprise IC Modules Potentiometer...

Страница 2: ...2009 Microchip Technology Inc DS51795A PICkit 3 Programmer Debugger User s Guide...

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

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

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

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

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

Страница 8: ...h 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 Enter F1 Courier New font Plain Sample...

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

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

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

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

Страница 13: ...PICkit 3 User s Guide DS51795A page 8 2009 Microchip Technology Inc NOTES...

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

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

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

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

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

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

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

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

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

Страница 23: ...nefit for very small applications that have the device VDD separated from the rest of the application circuit for independent programming but is not recommended for general usage as it imposes more cu...

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

Страница 25: ...cating with the MPLAB IDE software via the USB cable See Chapter 3 Installation for details The debugger must be connected as shown to the VPP PGC and PGD pins of the target device with the modular in...

Страница 26: ...llustrates the PICkit 3 programmer debugger system when it is ready for debugging FIGURE 2 7 PICkit 3 DEBUGGER READY FOR DEBUGGING Typically in order to find out if an application program will run cor...

Отзывы: