PICkit 1

From Mech
Revision as of 10:47, 4 August 2006 by Stephens (talk | contribs) (→‎Using MPLAB)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

The PICkit 1 is a cheap developement board for programming PIC chips. The retail package includes the board, USB cable, driver CD and MPLAB IDE CD. These are shown below.

PICkit 1.jpg

Installing

The first step to programming your PIC is to install the software that will interface with the PICkit through the USB port on your Windows PC.

PICkit Drivers

  1. Insert the PICkit 1 Flash Starter Kit CD
  2. The CD should autostart. If it doesn't, run the "AutorunPro.exe" file on the disk. You will see the screen below
  3. Pickit1.png
  4. Click on "Quickstart" and begin installing the three programs listed by clicking on the links. (the default options work just fine)
  5. Once all three programs have been installed, remove the CD.

MPLAB IDE

  1. Insert the MPLAB IDE CD.
  2. The CD should autostart and will open a webpage
  3. Pickit2.png
  4. Click the small icon next to "Choose Open to install on your PC".
  5. When asked for setup type, select "Custom".
  6. When you reach a dialog titled "Select Features", make sure the PICkit is checked in the list.
  7. Pickit3.png
  8. Finish the installation and restart the PC

Programming your PIC

Connecting to PC

  1. First insert your PIC chip into the PICkit board (ALWAYS DO THIS FIRST)
  2. Pickit4.jpg
  3. Use the USB cable to connect the board to a free USB port on your PC
  4. Pickit5.jpg

Using MPLAB

  1. Start MPLAB by opening it from the Start menu or desktop icon
  2. Make sure the PICkit is connected through the USB cable (there are lights on the board)
  3. Tell MPLAB to target the PICkit by selecting it from the Programmer menu
  4. Pickit6.jpg
  5. Once you write your program or load one from somewhere else (try this program if you don't have one), you need to build the project. Select "Build All" from the Project menu.
  6. Pickit7.jpg
  7. If the build is successful, program the chip by selecting "Program Device" from the Programmer menu.
  8. Pickit8.jpg