English
Language : 

DS51795A Datasheet, PDF (32/98 Pages) Microchip Technology – PICkit™ 3 Programmer/Debugger
PICkit™ 3 User’s Guide
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.
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.
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)”
DS51795A-page 28
© 2009 Microchip Technology Inc.