1. Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
    Dismiss Notice

How to program DIP PICs with Breadboard

Discussion in 'Electronic Books' started by Funny NYPD, Jan 22, 2008.

  1. Funny NYPD

    Funny NYPD New Member

    Joined:
    Oct 4, 2007
    Messages:
    177
    Likes:
    2
    Location:
    USA
    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.
    [​IMG]
     

    Attached Files:

    Last edited: Apr 15, 2008
  2. mamadoux

    mamadoux New Member

    Joined:
    Feb 22, 2008
    Messages:
    1
    Likes:
    0
    Thank you very much
     
  3. srmd

    srmd New Member

    Joined:
    Mar 19, 2008
    Messages:
    4
    Likes:
    0
    Thank you for the information
     
  4. dave

    Dave New Member

    Joined:
    Jan 12, 1997
    Messages:
    -
    Likes:
    0


     
  5. Joesamuel

    Joesamuel New Member

    Joined:
    Sep 19, 2007
    Messages:
    28
    Likes:
    0
    Location:
    In India,Tamil Nadu

    Never Better.........
     
  6. Kryten

    Kryten New Member

    Joined:
    Oct 29, 2007
    Messages:
    376
    Likes:
    1
    Location:
    Stavern, Norway
    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
     
  7. blueroomelectronics

    blueroomelectronics Well-Known Member

    Joined:
    Jan 21, 2007
    Messages:
    12,536
    Likes:
    170
    Location:
    Toronto, Canada
  8. Kryten

    Kryten New Member

    Joined:
    Oct 29, 2007
    Messages:
    376
    Likes:
    1
    Location:
    Stavern, Norway
    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?
     
    Last edited: Mar 26, 2008
  9. Funny NYPD

    Funny NYPD New Member

    Joined:
    Oct 4, 2007
    Messages:
    177
    Likes:
    2
    Location:
    USA
    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,
     
  10. Funny NYPD

    Funny NYPD New Member

    Joined:
    Oct 4, 2007
    Messages:
    177
    Likes:
    2
    Location:
    USA
    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.
     
  11. Funny NYPD

    Funny NYPD New Member

    Joined:
    Oct 4, 2007
    Messages:
    177
    Likes:
    2
    Location:
    USA
    This tutorial can also be used with the new PICkit 2 V2.50 "Programmer-To-Go" feature.
     
  12. Funny NYPD

    Funny NYPD New Member

    Joined:
    Oct 4, 2007
    Messages:
    177
    Likes:
    2
    Location:
    USA
    With the universal programmer, the job is even easier:
    [​IMG]
    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.
     
    Last edited: Dec 8, 2008
  13. jigzpad

    jigzpad New Member

    Joined:
    Dec 26, 2008
    Messages:
    6
    Likes:
    0
    wow thanx man! great help!! :)
     
  14. Funny NYPD

    Funny NYPD New Member

    Joined:
    Oct 4, 2007
    Messages:
    177
    Likes:
    2
    Location:
    USA
    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?id=159805&sid=381dc5d1fa60bd0817a6a588c14bac0d

    The Hex file for 628A LED Binary Counter is available here:
    http://www.edaboard.com/download.php?id=159804&sid=381dc5d1fa60bd0817a6a588c14bac0d

    [​IMG]

    Program without PC:
    [​IMG]
     
    Last edited: Dec 26, 2008
  15. Funny NYPD

    Funny NYPD New Member

    Joined:
    Oct 4, 2007
    Messages:
    177
    Likes:
    2
    Location:
    USA
    Tricks to play with the new 13/14K50 chips:
     
  16. Funny NYPD

    Funny NYPD New Member

    Joined:
    Oct 4, 2007
    Messages:
    177
    Likes:
    2
    Location:
    USA
  17. bonomonod

    bonomonod New Member

    Joined:
    Jun 9, 2009
    Messages:
    2
    Likes:
    0
    what would be the cost for the Universal Programmer and the adapter?
     
  18. Funny NYPD

    Funny NYPD New Member

    Joined:
    Oct 4, 2007
    Messages:
    177
    Likes:
    2
    Location:
    USA
    Last edited: Jul 17, 2009
  19. Funny NYPD

    Funny NYPD New Member

    Joined:
    Oct 4, 2007
    Messages:
    177
    Likes:
    2
    Location:
    USA
    Some tricks Regarding PICKit2 debugging mode on 16F873A
     
    Last edited: Jul 31, 2009

Share This Page