Instructions
Install the PICkit 2
Plug one end of the USB connector cable into the USB port on your PICkit 2. Plug the other end of the connector cable into a USB port on your computer.
Attach the 6-pin connector cable from the PICkit 2 to the demo board for the PICkit 2 or another target board. This is to provide power to the board. Do not attach the 6-pin cable to a target board that uses its own power supply.
Insert the PICkit 2 Starter Kit CD-ROM into the CD-DVD drive on your computer. Window then reads the CD and will display the Setup screen. Follow the instructions on the screen to install the application on your system.
Double-click the ̶0;PICkit 2̶1; icon to run the application. You will see information for the target board in the Configuration window.
Update the Operating System
Double-click the icon for ̶0;PICkit̶1; to open the application. Click on the ̶0;OK̶1; button when the ̶0;Update Operating System̶1; box appears on the screen. If you experience an error, then the application will need to be updated manually.
Click the ̶0;Tools̶1; drop-down menu and select ̶0;Download PICkit 2 Operating System.̶1; Save the file to the default folder location at ̶0;C:\Program Files\Microchip\PICkit 2.̶1;
Click the ̶0;File̶1; drop-down menu and select ̶0;Open̶1; Navigate to the default PICkit 2 folder location on your system. Highlight the ̶0;PK2*.hex̶1; file and then click the ̶0;Open̶1; button. The update file will then be installed.
Import Hex File and Write to Device
Insert the installation CD if it is not currently in the drive. Click the ̶0;File̶1; drop-down menu and select the option for ̶0;Import Hex File.̶1;
Select the drive letter for your CD/DVD drive and navigate to the Install\Lessons folder. Go to the ̶0;07 Reversible̶1; folder and highlight the ̶0;Reversible.hex̶1; file. Click the ̶0;Open̶1; button to load the hex file into the program.
Click the "Verify" button, This is used to verify that the program in the memory for the device matches the hex file imported into the application.
Click the ̶0;Write̶1; button to send the code to the demo board. The code that is on the device is then erased and replaced with the code from the hex file. You will see a ̶0;Programming Successful̶1; status if the code was successfully written to the device.