EasyManua.ls Logo

Microchip Technology PICkit 2 - Setting Debug Options; Loading Program Code for Debugging

Microchip Technology PICkit 2
53 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
PICkit™ 2 User’s Guide
DS51553B-page 32 © 2006 Microchip Technology Inc.
4.2.7 Setting Debug Options
Before debugging can begin, the device Configuration bits need to be selected.
4.2.7.1 CONFIGURATION BITS
The Configuration bits that are to be programmed into the device are set from within
the program. These bits can be verified using the Configuration Bits dialog window.
•Select Configure > Configuration Bits
.
To change the setting for a category, double click on the text in the “Setting”
column and select the appropriate setting for the corresponding category.
The following Configuration bits should be set for this tutorial:
Oscillator – INTOSC
Watchdog Timer – Off
Power-Up Timer – On
•MCLR
Pin Function Select – Normal Function
Code Protect – Off
Data EE Protect – Off
Brown-Out Detect – BOD enabled, SBODEN disabled
Internal-External Switch Over – Disabled
Fail Clock Monitor Enable – Disabled
FIGURE 4-18: CONFIGURATION BIT SETTINGS
4.2.8 Loading Program Code for Debugging
•Select Debugger > Select Tool > PICkit 2
to select the PICkit 2 Microcontroller
Programmer as the debug tool.
•Select Debugger > Program
to program the PIC16F917 Debug Demo.hex file
into the PIC16F917 on the 44-Pin Demo Board.

Table of Contents

Related product manuals