PIC KIT 2 BASIC-USERS GUIDE FEMTO ELECTRONICS SPECIFICATIONS: ICSP (In Circuit Serial Programmer). Compatible with PIC Microcontrollers (5V chips only). Compatible with MPLAB, MPLAB X and PIC KIT 2 software. USB Interface to PC. Status LED s. Web: www.femtoelectronics.co.za Email: enquiries@femtoelectronics.co.za sales@femtoelectronics.co.za help@femtoelectronics.co.za Contact us: FEMTO electronics (c) 2015
CONTENTS Category Page Assembly 1 Installation 2 ICSP Setup 3-4 Programming a PIC 5 FEMTO ELECTRONICS (c) 2015
Assembly 1 FEMTO ELECTRONICS (c) 2015
Installation Installation of the PIC KIT software. In order to install and use the PIC KIT you will be required to download the appropriate software from Microchip.com. There are several software versions available. If you choose to use the PIC KIT 2 software supplied with the programmer or downloaded from Microchip please proceed as follows. STEP 1: Find the PIC KIT 2 installation files on the CD provided under the folder name PK2 Software. Proceed into the folder and double click on the setup.exe file. Continue and agree to all terms and conditions and select an appropriate file path. STEP 2: Once the software has been completely installed, an icon will be created on your desktop. Installation Completed Additional files will be supplied namely, DotNetFix. If it is required that you need to install DotNetFix You may proceed to install those files. It is unlikely that this will happen. 2 FEMTO ELECTRONICS (c) 2015
ICSP Setup ICSP (In Circuit Serial Programmer). In order to program your PIC MCU you will need to connect your PIC in a specified manner. Note the 10k resistor on the MCLR pin this is essential to keep your PIC MCU out of reset, once the programmer has been removed. Various circuits my be used here, but for simplicity and its effectiveness we will stick to a single resistor set up. The following pins need to be identified on the PIC MCU: MCLR VDD / +5V GND / VSS DATA / PGD / ICSPDAT CLOCK / PGC / ICSPCLK On some PIC s the names differ and can cause confusion, to prevent this refer to the image below for more assistance. MCLR DATA CLOCK VDD VSS VDD VSS Once the 5 required pins have been identified, connect the PIC MCU and required resistor as in the circuit diagram depicted. In some cases your existing circuit might use the programming pins such as data or clock. This could give you false reason to believe your circuit is not working. In such cases as with any other PIC Programmer you will need an additional circuit for those pins, But to keep it simple if you have external components connected to the programming pins simply un-plug the PIC KIT from the circuit after programming to view original operation of the now programmed PIC in the circuit. 3 FEMTO ELECTRONICS (c) 2015
ICSP Setup Connect the PIC and PIC KIT in the following manner. +5V PIC KIT 2 CLOCK DATA Pull up resistor: 10K Resistor to +5V GND / VSS +5V / VDD MCLR MCLR Pin indicator on PIC KIT Note that this PIC KIT cannot power the target device. Ensure you have an external power source connected to the MCU circuit. Connect the 5V lines to the circuit AND the PIC KIT. This also applies for the GND lines. Thus we form a Common Circuit between the programmer and target device. *NB: The 10k resistor must remain in the circuit, this is a permanent resistor if your are not using the internal pull ups of the PIC. 4 FEMTO ELECTRONICS (c) 2015
Programming a PIC To program a PIC using the PIC KIT 2 software you will need to acquire a HEX file from your compiler. Once you have found the HEX file you may import it to the PIC KIT 2 software and then click WRITE. Make sure your PICkit2 is connected to the target device. STEP 1: STEP 2: STEP 3: Click the Write button. Once the Write button has been pressed the PIC MCU will begin to program. You should see an RED led being illuminated during this process. 5 FEMTO ELECTRONICS (c) 2015