Difference between revisions of "PICkit 1"
From Mech
Jump to navigationJump to searchm (→MPLAB IDE) |
m (→Using MPLAB) |
||
(10 intermediate revisions by the same user not shown) | |||
Line 10: | Line 10: | ||
<ol> |
<ol> |
||
<li>Insert the PICkit 1 Flash Starter Kit CD |
<li>Insert the PICkit 1 Flash Starter Kit CD</li> |
||
<li>The CD should autostart. If it doesn't, run the "AutorunPro.exe" file on the disk. You will see the screen below</li> |
<li>The CD should autostart. If it doesn't, run the "AutorunPro.exe" file on the disk. You will see the screen below</li> |
||
[[image:pickit1.png|center]] |
[[image:pickit1.png|center]] |
||
Line 30: | Line 30: | ||
==Programming your PIC== |
==Programming your PIC== |
||
===Connecting to PC=== |
|||
<ol> |
|||
<li>First insert your PIC chip into the PICkit board (<b>ALWAYS DO THIS FIRST</b>)</li> |
|||
[[image:pickit4.jpg|center]] |
|||
<li>Use the USB cable to connect the board to a free USB port on your PC</li> |
|||
[[image:pickit5.jpg|center]] |
|||
</ol> |
|||
===Using MPLAB=== |
|||
<ol> |
|||
<li>Start MPLAB by opening it from the Start menu or desktop icon</li> |
|||
<li>Make sure the PICkit is connected through the USB cable (there are lights on the board)</li> |
|||
<li>Tell MPLAB to target the PICkit by selecting it from the Programmer menu</li> |
|||
[[image:pickit6.jpg|center]] |
|||
<li>Once you write your program or load one from somewhere else (try [[media:Picpwmcode.zip|this program]] if you don't have one), you need to build the project. Select "Build All" from the Project menu.</li> |
|||
[[image:pickit7.jpg|center]] |
|||
<li>If the build is successful, program the chip by selecting "Program Device" from the Programmer menu.</li> |
|||
[[image:pickit8.jpg|center]] |
|||
</ol> |
Latest revision as of 11:47, 4 August 2006
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.
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
- Insert the PICkit 1 Flash Starter Kit CD
- The CD should autostart. If it doesn't, run the "AutorunPro.exe" file on the disk. You will see the screen below
- Click on "Quickstart" and begin installing the three programs listed by clicking on the links. (the default options work just fine)
- Once all three programs have been installed, remove the CD.
MPLAB IDE
- Insert the MPLAB IDE CD.
- The CD should autostart and will open a webpage
- Click the small icon next to "Choose Open to install on your PC".
- When asked for setup type, select "Custom".
- When you reach a dialog titled "Select Features", make sure the PICkit is checked in the list.
- Finish the installation and restart the PC
Programming your PIC
Connecting to PC
- First insert your PIC chip into the PICkit board (ALWAYS DO THIS FIRST)
- Use the USB cable to connect the board to a free USB port on your PC
Using MPLAB
- Start MPLAB by opening it from the Start menu or desktop icon
- Make sure the PICkit is connected through the USB cable (there are lights on the board)
- Tell MPLAB to target the PICkit by selecting it from the Programmer menu
- 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.
- If the build is successful, program the chip by selecting "Program Device" from the Programmer menu.