DV164121 Microchip Technology, DV164121 Datasheet - Page 50

KIT PICKIT 2 DEBUG EXPRESS

DV164121

Manufacturer Part Number
DV164121
Description
KIT PICKIT 2 DEBUG EXPRESS
Manufacturer
Microchip Technology
Series
PICkit™ 2r
Type
Microcontrollerr
Datasheets

Specifications of DV164121

Contents
Board, PICkit™ 2 Programmer, Cable, CD
Processor To Be Evaluated
PIC family
Data Bus Width
8 bit, 16 bit, 32 bit
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With/related Products
PIC Micro® MCU
Lead Free Status / Rohs Status
Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
DV164121
Manufacturer:
Microchip Technology
Quantity:
135
Part Number:
DV164121
Manufacturer:
MICROCHIP
Quantity:
12 000
DS51553E-page 46
FIGURE 4-21:
9. Select ADCON0 from the first drop-down list and then click Add SFR to add
FIGURE 4-22:
10. Select Debugger>Run to the run the program. Again, the program will stop after
11. Examine the values of the ADCON0 and ADCON1 registers in the Watch
Note:
ADCON0 to the Watch window. Repeat this to add ADCON1 and ADRESH to the
Watch window. The selected SFRs should be visible in the Watch window as
shown in Figure 4-22.
it reaches the breakpoint.
window. The ADCON0 value is ‘0x40’ (b’01000000’). This corresponds to the
hex value designated in the program. However, this is not correct. A review of the
“PIC16F882/883/884/886/887 Data Sheet” (DS41291), Analog-to-Digital (A/D)
Converter Module section, indicates that the last bit should be a ‘1’
(b’01000001’) to turn on the A/D module. To fix this bug, change:
movlw 0x40
to
movlw 0x41, as shown in Figure 4-23.
It is not recommended to use the View>File Registers and View>Special
Function Registers windows when debugging with PICkit 2 Debug Express.
When these windows are open, the entire contents must be written then
read back from the target device on every operation. This may slow down
debugging operations significantly. Instead, only add the SFR and File
Register variables of interest to a Watch window as described in this
tutorial.
NEW WATCH WINDOW
ADD SFRs TO WATCH
© 2008 Microchip Technology Inc.

Related parts for DV164121