User manual

18
a) b)
Figure 2.11 : a) microC PRO icon b) microC PRO start page software
2.2.7 PICkit 2
The Microchip PICkit 2 device programmer and in-circuit debugger consists
of software which runs on a PC and hardware. Programmer-only software comes
with the PICkit 2. MPLAB includes both programming and in-circuit debugging
software. With the PICkit 2, user can step through assembly source code on-screen
while observing what the hardware is doing. User also can select registers to watch
by their labels as they can step through the program. The breakpoint also can be set.
So that, the program can be run at normal speed and exercise the hardware up to that
breakpoint. Next, the user can observe at the contents of the registers of their
choosing. The unit has a USB connector for serial communication with a host PC and
a 6-pin female header for communication with a flash PIC microcontroller
The PICkit 2 can operate in two operating modes which is programmer mode
and debugger mode. In the programmer mode, only the code is programmed into the
device for standalone where PICkit 2 is not connected during the operation. In both
the programmer and debugger operating modes, the user code is programmed into
the PIC microcontroller. While in the debugger mode, the PIC debugger code used