Como progamar pick 2 en un protoboard
How to Program PICs (DIP) with Breadboard (Rev. A)
! "
#$
By Au Groups
Jan. 2008
PC
USB Cable
BB0703 (PICkit 2)
RJ12 6 pin reverse cable RJ12 programming Extension Cable
Target Chip
Website: www.AuElectronics.selfip.com
1/9
Support: AuGroups@hotmail.com
Au Group Electronics
How to Program PICs (DIP) with Breadboard (Rev. A)
Thereare many different approaches to program the DIP (Dual In-Line) PIC chips without very expensive programming fixtures. This document provides one of the many possible solutions for Microchip PIC fans and Engineering students. It illustrates step by step instructions on how to use the AU Group Electronics BB0703 (PICkit2) and breadboard for downloading programs into the DIP PIC chips.
What youneed:
1. Au Group Electronics BB0703 (Enhanced PICkit 2 System, AU Group Electronics part #: BB0703 ) 2. RJ12 programming extension cable (Au Group Electronics part #: CBL-RJ12-Program) 3. RJ12 6 pin Reverse cable (Au Group Electronics part #: CBL-RJ12-RVS) 4. Target Chips in DIP package, for instance: PIC12F508-I/P, PIC18F4550-I/P 5. Breadboard 6. USB cable 7. Application software installed onPC: MPLAB IDE or PICkit 2 programmer
How to connect the target PIC chip to PC for programming:
As illustrated in figure 1, by using USB cable, RJ12 6-pin reverse cable, and RJ12 programming extension cable, the target chip can be connected to your PC through BB0703 (PICkit 2),. USB Cable
PC
BB0703 (PICkit 2)
Figure 1
RJ12 6 pin reverse cable RJ12 programming Extension CableProgramming connection
Target Chip
Note: Make sure using the exact parts as described in figure 1. Otherwise, ICSP (In-Circuit Serial Programming) signal sequence on programming cable might be different than table 1 illustrated.
Signal definition of RJ12 programming extension cable on figure 1
The signal of each color wire on RJ12 programming extension cable is identified in table 1: Table 1signal definition on RJ12 programming extension cable Color of the 6 wires on RJ12 Signal Programming Extension cable Blue VPP Black VDD-Target (+5V) Red VSS (GND) Green ICSPDAT (PGD) Yellow ICSPCLK (PGC) White AUX-OUTPUT (Not used in ICSP) Website: www.AuElectronics.selfip.com 2/9 Support: AuGroups@hotmail.com
Au Group Electronics
How to Program PICs (DIP) with Breadboard (Rev. A)
PinNumber/Signal Identification of Target PIC Chips:
The following figures show two examples of ICSP pins on two DIP microcontrollers: a PIC12F508-I/P and a PIC18F4550-I/P. For any other type of chips, please refer to related Microchip Data Sheet.
• PIC12F508-I/P
For PIC12F508-I/P, pin 1, 4, 6, 7, and 8 will be used for ICSP programming, these pins are highlighted with the same wire color of RJ12programming extension cable, as shown in figure 2.
Figure 2
PIC12F508 Pins/Signals Identification
• PIC18F4550-I/P
Pin 1, 11, 12, 39, and 40 of PIC18F4550-I/P are used for ICSP programming, and they are illustrated in figure 3 with the same wire color as the RJ12 programming extension cable.
Figure 3 Website: www.AuElectronics.selfip.com
PIC18F4550 Pins/Signals Identification 3/9Support: AuGroups@hotmail.com
Au Group Electronics
Step by Step connections:
How to Program PICs (DIP) with Breadboard (Rev. A)
1. Insert a target DIP PIC chip to breadboard. 2. Inset the 5 wires of RJ12 programming extension cable to respective position of the breadboard where the above 5 programming pins seated. 3. Using USB cable to connect BB0703 (PICkit 2) with PC. 4. Using RJ12 6 pinReverse cable (Au Group Electronics part # CBL-RJ12-RVS) to connect RJ12 programming extension cable and BB0703 (PICkit 2). 5. Program the target chip with PC application software: MPLAB IDE or PICkit 2 programmer. (step by step operation is illustrated in next chapter.) 6. After target chip is programmed, disconnect “RJ12 programming extension cable” and BB0703 (PICkit 2) by removing one end of...
Regístrate para leer el documento completo.