Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronic Content > Electronic Books


Electronic Books Recommended books of interest to any electronic enthusiasts.

Reply
 
Tools
Old 23rd January 2008, 04:18 AM   #1
Default How to program DIP PICs with Breadboard

This is a tutorial about How to program DIP PICs with Breadboard. A BB0703 (PICKit2) is used as a demonstration, however ICD2 and other ICSP programmer can also be adapted.
File will be loaded by the administrator later.
Attached Images
File Type: jpg 101_0227.JPG (446.1 KB, 367 views)
Attached Files
File Type: pdf HowToProgram_DIP_PICs_withBreadboard.pdf (2.50 MB, 1049 views)
__________________
F.N.

Last edited by Funny NYPD; 15th April 2008 at 05:07 PM.
Funny NYPD is offline  
Old 22nd February 2008, 07:16 PM   #2
Default

Thank you very much
mamadoux is offline  
Old 19th March 2008, 12:20 PM   #3
Default

Thank you for the information
srmd is offline  
Old 22nd March 2008, 07:44 PM   #4
Default

Never Better.........
Joesamuel is offline  
Old 26th March 2008, 06:43 PM   #5
Default

Is it just the same with the ICD2? Im trying to programm a 12f629 but am not abel to do this....

I have looked and conected the icd2 and pic correctly. I have tripple checked

pleas help me
__________________
The best is yet to come

Good enough - its perfect !!

2 Gig of free online backup space

cq cq de LA3BNA
Kryten is offline  
Old 26th March 2008, 06:51 PM   #6
Default

The ICD has certain rules if you want to be able to program a PIC in circuit. You have to be careful with what's on the programming pins.
http://ww1.microchip.com/downloads/e...Doc/51265g.pdf
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com/
blueroomelectronics is offline  
Old 26th March 2008, 06:54 PM   #7
Default

Yes i know and so far i got the pic directly conected to the ICD2 (wich i got from a former employer and it says very dodgy so im not sure it works properly)

Edit:
The ICD2 contains a PIC16F877 if that helps
and here are hte error messages i get

ICDWarn0020: Invalid target device id (expected=0x7C, read=0x0)
ICDWarn0044: Target has an invalid calibration memory value (0x0).

i cant seem to understand exactly what they mean

btw are there any restrictions on the cable length?
__________________
The best is yet to come

Good enough - its perfect !!

2 Gig of free online backup space

cq cq de LA3BNA

Last edited by Kryten; 26th March 2008 at 07:32 PM.
Kryten is offline  
Old 13th April 2008, 04:44 AM   #8
Default

Quote:
Originally Posted by Kryten
Yes i know and so far i got the pic directly conected to the ICD2 (wich i got from a former employer and it says very dodgy so im not sure it works properly)

Edit:
The ICD2 contains a PIC16F877 if that helps
and here are hte error messages i get

ICDWarn0020: Invalid target device id (expected=0x7C, read=0x0)
ICDWarn0044: Target has an invalid calibration memory value (0x0).

i cant seem to understand exactly what they mean

btw are there any restrictions on the cable length?
According to Microchip, Cable length normally should be around 6 inches. Mine works on 12 inches cable though.

some time the ICD2 requires certain power on sequence, can you connect the ICD2 without target board first, then connect to your target chip.

Also power the target board with external power supply if you can. This will help get rid of many issues. The Microchip ICD2 ICSP interface circuit is kind of "weak" and easy to broke. So make sure all pin-out are correct and connected to the correct pins on the PIC.

Regards,
__________________
F.N.
Funny NYPD is offline  
Old 13th April 2008, 04:51 AM   #9
Default

Quote:
Originally Posted by Kryten
Is it just the same with the ICD2? Im trying to programm a 12f629 but am not abel to do this....

I have looked and conected the icd2 and pic correctly. I have tripple checked

pleas help me
The ICSP signal is exactly the same as the ICD2, though the PIN-out sequence is on the opposite way. I don't know why Microchip released the PICkit2 with a opposite pin sequence compare with ICD2.

Please make sure your PC has a good USB power supply or simply power your ICD2 with external power supply. The ICD2 seems working more reliably than power by USB on my personal experience.
__________________
F.N.
Funny NYPD is offline  
Old 15th April 2008, 05:15 PM   #10
Default

This tutorial can also be used with the new PICkit 2 V2.50 "Programmer-To-Go" feature.
__________________
F.N.
Funny NYPD is offline  
Old 9th December 2008, 03:32 AM   #11
Default

With the universal programmer, the job is even easier:

For more info, check out the following links:
2-in-1 and 3-in-1 Mini Labs
User Manual for 2-in-1 and 3-in-1 Mini Labs

3-in-1 Universal Programmer, support the following chips:
1. Flash-based PIC Microcontroller (PIC12F, PIC16F, PIC18F, PIC24F, dsPIC33F, dsPIC30F, PIC32F),
2. KEELOQ HCS,
3. MCP250xx
4. EEPROMs (I2C 24LCxx, SPI 25LcXX, 93LCxx, 11LCxx)

Some other features such as:
0. ZIF technology for long life operation.
1. support both SMD and through hole package, SOIC-SMD upto 28 pins, DIP (through-hole upto 40 pins.
2. On board power regulator, provide +5V, +3.3V and +2.5V
3. Dual bi-directional Level shift for EEPROMs requires 3.3V and lower voltage programming.
4. 6 LEDs on board
5. 3 pull-up
6. 2 pull-down
7. 1 cap
8 10 uf Vdd cap for PIC programming
9. LED indicator on VDD
10. support both RJ12 and PICkit2 type connector, easily connected to PICkit2, ICD2, ICD3, RealICE, etc.
11. Jumper wire technology guarantee no worry for future PIC pin compatibility.
__________________
F.N.

Last edited by Funny NYPD; 9th December 2008 at 04:21 AM.
Funny NYPD is offline  
Old 26th December 2008, 04:26 PM   #12
Default

wow thanx man! great help!!
jigzpad is offline  
Old 26th December 2008, 04:59 PM   #13
Default

Thanks for the good comment.
Here is another tutorial on programming and testing with 16F628A. It is based on the 3-in-1 mini-Lab, however, You can always use breadboard and get it working.

Au Group Electronics 3-in-1 mini-Lab application note for PIC16F628A Rev. B:
http://www.edaboard.com/download.php...a6a588c14bac0d

The Hex file for 628A LED Binary Counter is available here:
http://www.edaboard.com/download.php...a6a588c14bac0d



Program without PC:
__________________
F.N.

Last edited by Funny NYPD; 26th December 2008 at 05:00 PM.
Funny NYPD is offline  
Old 30th May 2009, 06:27 PM   #14
Default

Tricks to play with the new 13/14K50 chips:
Quote:
The problem is unique to this part, and is this:

The PGC and PGD pins of the 18F14K50 are shared with the USB D+ and D- pins. Although the part may be run with a 5 Volt VDD, the maximum voltage that the D+/D- pins can handle is about 3.3V. This is noted in the datasheet and programming spec.

The PICkit 2 (and most other programmers) cannot limit the PGx signal voltages to a range different from VDD, so to prevent damaging a part when a user is unaware of the PGx limitation, the supply voltage is limited.

One way to work around this issue is to
1) Power the 18F14K50 VDD from a 5 volt supply.
2) Do not connect the PICkit 2 VDD pin to the target 5 Volt VDD (leave it unconnected)
- This makes the PICkit 2 think it needs to supply power, so it turns on VDD @ 3.3V
3) The target will now be powered at 5 V, but the PICkit 2 PGx signals will be limited to 3.3V

Another way is to power the target at 5V from a supply and use zeners or other clamping voltage limiters on the PGx pins.
__________________
F.N.
Funny NYPD is offline  
Old 19th June 2009, 02:59 AM   #15
Default

Now all BB0703/BB0703+ are available at our On-Line Store:
BB0703: Enhanced PICkit 2 Progrmmers Au Group Electronics
__________________
F.N.
Funny NYPD is offline  
Reply

Tags
breadboard, dip, pics, program

Thread Tools
Display Modes


Similar
Title Starter Forum Replies Latest
Odd problem, My program kills pics 2camjohn Micro Controllers 6 27th November 2007 06:30 PM
Question about Inchworm+ Quan Micro Controllers 54 28th October 2007 01:21 AM
New to PIC's trying to get a program running have a few Q's lompa Micro Controllers 9 25th November 2004 10:27 PM
Anybody program PICs? ab0tj Electronic Projects Design/Ideas/Reviews 1 13th April 2004 07:51 PM
good websites on learning to program PIC's ohiostguy Micro Controllers 1 30th June 2003 04:24 PM



All times are GMT. The time now is 08:48 AM.


Electronic Circuits  |  Learning Electronics
eXTReMe Tracker