Purchasing A Programmer
The Microchip ICD2 is the original low cost microchip in circuit programmer. This has been superceeded by the ICD3 which has full Windows 7 compatability. You can purchase this programmer from:
It is the Microchip part number “DV164035″ you need.
The MPLAB software to use with the programmers is downloaded for free. See here for details on how to use the programmer.
Standard IBEX Programmer To PCB Header Cable
The Microchip ICD2 / ICD3 may be used to programme PIC microcontrollers in circuit. We typically use a low cost SIL header on PCB’s to allow in circuit programming which differs from the RJ11 cable supplied with the Microchip ICD2 / ICD3. This guide details our standard connecting cable:-
You can either use the RJ11 cable supplied with the programmer or buy a RJ11 cable from RS Components (rswww.com) 446-664.
Cut off one end, leaving the programming cable as short as possible (100mm total lenth is recomended which is shorter than shown in the above photo) .
Fit a blue MTA5 socket (or an alternative SIL5 connector that will accept thin cable cores) to the cut end.
ICD Programming Connection
RJ11 Connector
With the locking tab down and the connector contacts away from you, the left pin is 1, the right pin is 6.
| 1 | |
| 2 | RB6/PGC |
| 3 | RB7/PGD |
| 4 | Gnd |
| 5 | Vdd |
| 6 | MCLR/Vpp |
The IBEX standard 5 pin header pinout is:
| 1 | MCLR/Vpp |
| 2 | +5V |
| 3 | Gnd |
| 4 | RB7/PGD |
| 5 | RB6/PGC |
Therefore, build cable as follows:
| RJ 6 Pin | MTA5 |
| 1 | |
| 2 | 5 |
| 3 | 4 |
| 4 | 3 |
| 5 | 2 |
| 6 | 1 |
Keep the overall cable length short (<=100mm).
Mark pin 1 on the MTA5 connector in some way to make it obvious which way the cable connects to the PCB. Our PCB’s are marked with a pair of white triangles pointing to pin 1. When connecting to PCB headers which have 7 pins the 5 pin MTA may still be used in the same way with pin 1 connecting to pin 1 of the 7 pin header (pins 6 & 7 are not connected).
Miniature Surface Mount IBEX Connector Cable
Use one end of ready made cable RS Components (rswww.com) 446-664 connected and a Molex 1.25mm socket using pre crimped wires.
Parts
RS Components (rswww.com) 446-664 – 1off
Farnell (www.farnell.com) 615-109 – 1off
Farnell (www.farnell.com) 112-5272 – 1 pack of 10
And if you need one the Microchip ICD3 programmer is Farnell 166-4878 (this is supplied with the RS 446-664 type cable that you could instead use instead of buying from it RS).
RJ11 Connector
With the locking tab down and the connector contacts away from you, the left pin is 1, the right pin is 6.
| 1 | |
| 2 | RB6/PGC |
| 3 | RB7/PGD |
| 4 | Gnd |
| 5 | Vdd |
| 6 | MCLR/Vpp |
The IBEX standard Molex 5pin 1.25mm pinout is:
| 1 | MCLR/Vpp |
| 2 | +5V |
| 3 | Gnd |
| 4 | RB7/PGD |
| 5 | RB6/PGC |
In the picture below pin 1 is on the right:
Therefore, build cable as follows:
| RJ 6 Pin | Molex 1.25mm |
| 1 | |
| 2 | 5 |
| 3 | 4 |
| 4 | 3 |
| 5 | 2 |
| 6 | 1 |
Keep the overall cable length short (<=100mm).











