ICD2 Easy PIC Programmer
www.micro4you.com
Easy ICD2 & Easy Programming Module Manual Part 1 Begin to use ICD2, first step we have to configuration of serial port by right click at My Computer then select to Properties, then it’ll appear System Properties window as follow picture.
- Select to Hardware tap and click at Device Manager after that will appear window details of computer hardware.
www.micro4you.com
1
ICD2 Easy PIC Programmer
www.micro4you.com
- Click to select at Ports (COM & LPT).
www.micro4you.com
2
ICD2 Easy PIC Programmer
www.micro4you.com
- Double click at Port COM that you use to connect to ICD2 , it will appear window as follow picture.
- Select at Port Setting tap and Bits per second trap have to selected to 57600 as follow picture.
www.micro4you.com
3
ICD2 Easy PIC Programmer
www.micro4you.com
- Click at Advanced button will appear Advanced Settings for COM1 window, then click cancel Use FIFO buffers (requires 16550 compatible UART) and then click OK.
- Then restart your computer. - After restart your computer complete, you have to connect ICD2 to serial port of computer and then have to connected VCC, GND, PGD, PGC, MCLR to Target board ( How to Connect see in Part 2 ). This example using PIC16F873A. - Open MPLAB IDE program and select at Configure--> Select Device menu as follow picture.
- Then will appear Select Device window, you have to select number of microcontroller (example used 16F873A) then click OK as follow picture.
www.micro4you.com
4
ICD2 Easy PIC Programmer
www.micro4you.com
- Select at Programmer-->Select Programmer-->MPLAB ICD 2 menu as picture below.
- Then click at the menu Programmer-->Setting as picture below.
www.micro4you.com
5
ICD2 Easy PIC Programmer
www.micro4you.com
- Then will appear MPLAB ICD 2 Settings window as picture below.
www.micro4you.com
6
ICD2 Easy PIC Programmer
www.micro4you.com
- Click at Communication tap select Com Port to COM1 and Baud Rate selected to 57600 as picture below and then click OK.
- Select Programmer-->Connect menu for connected to ICD2 as follow picture.
www.micro4you.com
7
ICD2 Easy PIC Programmer
www.micro4you.com
- Then will appear message as follow picture.
- Select at Programmer-->Download ICD2 Operating System menu for download operating system of ICD2 as follow picture.
www.micro4you.com
8
ICD2 Easy PIC Programmer
www.micro4you.com
- Then will appear the window for choosing ICD2 Firmware File (This file will be auto setting by program that will suitable for PIC family) Then click OK as picture below.
- Then the program will be download Firmware Files into ICD2 board, this step will take time for a while. When the process completed will appear the message as picture below. That will show the Target of board we using (this example used 16F873A) and the message is “Operating System download completed”.
www.micro4you.com
9
ICD2 Easy PIC Programmer
www.micro4you.com
Now our ICD2 board is ready to use. The next step will suggest to take file from outside to programmer by ICD2 and use ICD2 cooperate with CCS. ************************************************************** From the last part we learned how to configuration ICD2. This part will mention to use *.HEX to programmer by ICD2. - Open MPLAB IDE program and select at Configure-->Select Device...menu as picture below.
www.micro4you.com
10
ICD2 Easy PIC Programmer
www.micro4you.com
- Select PIC number that we want to programmer and then click OK as follow picture.
* * * Note you can see at Microchip Programmer Tool Support part and at MPLAB ICD2 if there’s a green light that mean this PIC number can programmer by ICD2 but if there’s a red light that mean you can’t programmer that PIC by ICD2.
www.micro4you.com
11
ICD2 Easy PIC Programmer
www.micro4you.com
- Then select at Programmer-->Select Programmer-->MPLAB ICD 2 menu as follow picture.
- Then click at Programmer-->Setting menu as picture below.
- Then will appear MPLAB ICD 2 Settings window as picture below.
www.micro4you.com
12
ICD2 Easy PIC Programmer
www.micro4you.com
- Click to select at Communication tap and select Com Port to COM1 and select Baud Rate to 57600 and then click OK as picture below.
www.micro4you.com
13
ICD2 Easy PIC Programmer
www.micro4you.com
- Then will appearing message to remind for disabled FIFO buffer as picture below.
www.micro4you.com
14
ICD2 Easy PIC Programmer
www.micro4you.com
- Select Programmer-->Connect menu for connected to ICD2 as follow picture or click at icon Reset and Connect to ICD button as picture below.
- Then will appear message as picture below that mean we can connect with PIC that we want to program.
www.micro4you.com
15
ICD2 Easy PIC Programmer
www.micro4you.com
- Then select at File-->Import...menu for import file *.hex as picture below.
- Then will appear Open window for select *.hex file as desired as follow picture.
www.micro4you.com
16
ICD2 Easy PIC Programmer
www.micro4you.com
- Will appear message that say “ *.hex file is already import into the program” as picture below.
- If you want to change configuration, you can change by select at Configure-->Configuration bits...menu as picture below.
www.micro4you.com
17
ICD2 Easy PIC Programmer
www.micro4you.com
- When your configuration has been complete then can start to program by click at Programmer-->Program menu or click at Program target device icon as picture below.
- When PIC programmer was completed will appear message as follow picture.
www.micro4you.com
18
ICD2 Easy PIC Programmer
www.micro4you.com
- In case that we’re programmer PIC we can click at the Release from Reset icon for running program, for MPLAB V7.xx can rapid configuration running after programmer completed.
************************************************************************************ This part will mention to use CCS by MPLAB for Editor, for advantage of this method is when we write the source code finished, we can programmer immediately to ICD2 after compiler was completed, without import as the last part.
www.micro4you.com
19
ICD2 Easy PIC Programmer
www.micro4you.com
- First step you have to download MPLAB Plug-in to install in your computer. You can download by the link below. http://www.ccsinfo.com/download.shtml#MPLAB6 - After install MPLAB Plug-in completed, then go to select at Project-->Set Language Tool Locations...menu. Then will appear Set Language Tool Locations window, this window will show tools of CCS C Compiler for PIC12/14/16/18 as picture below.
www.micro4you.com
20
ICD2 Easy PIC Programmer
www.micro4you.com
- Create a new project by click at Project-->New...as follow picture.
- Then will appear New Project window, give a name of the project as desired and click OK as follow picture.
www.micro4you.com
21
ICD2 Easy PIC Programmer
www.micro4you.com
- Go to Project-->Select Language Tool suite...menu as picture below.
- Will appear Select Language Tool suite window, select Active Tool suite to CCS C Compiler for PIC12/14/16/18 and then click OK as picture below.
www.micro4you.com
22
ICD2 Easy PIC Programmer
www.micro4you.com
- Go to File-->New menu for write the new source code as follow picture.
- Then write source code as your desired.
www.micro4you.com
23
ICD2 Easy PIC Programmer
www.micro4you.com
- Save the source code that you has wrote by go to File-->Save menu, give the name of file as desired and click to save the program.
- For add C file into the project, go to Project-->Add Files to Project...menu as picture below.
www.micro4you.com
24
ICD2 Easy PIC Programmer
www.micro4you.com
- Will appear Add Files to Project window, select C file that you has wrote as picture below.
- Then compile program, go to Project-->Compile menu as the picture below.
www.micro4you.com
25
ICD2 Easy PIC Programmer
www.micro4you.com
- Then will appear Output window…show compiler result as follow picture.
- After this you can go to select Programmer-->Select Programmer-->MPLAB ICD 2 menu for configuration and then you can immediately programmer. The program will automatic to take *.hex
www.micro4you.com
26
ICD2 Easy PIC Programmer
www.micro4you.com
file that had already compile to programmer into PIC. When programmer was completed will appear window as follow.
www.micro4you.com
27