+ Reply to Thread
Results 1 to 9 of 9

Thread: how to attach a zif socket to inchworm +

  1. #1
    pkshima Good pkshima Good
    Join Date
    Jan 2003
    Location
    New Delhi, India
    Posts
    328

    Default how to attach a zif socket to inchworm +

    Just finished fabricating the inchworm + on a breadboard. after much struggle, mplab is successfully connecting and os download went ok.

    anyways, what I am now wondering is how to add a 40 pin zif socket to it so that i can use it as a simple programmer untill i grow up to in-circuit debugging etc.

    sorry for noob question. I am just another sw guy so got all confused with the 'pull-up' stuff in the Target PIC Notes of the inchworm plus assembly guide.

    Edit : I have also looked at the firefly instructions and schematic but I dontr have th brains to extract the circuit that just converts the ICD connection to the zif socket. especially where does the MCLR connection come from.
    Last edited by pkshima; 10th June 2007 at 06:08 PM.
    Its not the Practice that makes a man perfect. Its the Man who makes the practice perfect
    ----- Pradeep K. Shima -----


  2. #2
    Help us help you blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent
    Join Date
    Jan 2007
    Location
    Toronto, Canada
    Posts
    10,709
    Blog Entries
    5

    Default

    Mclr goes to pin #1 in the 28 or greater PICs and it goes to pin 4 on the smaller 8 - 20pin PICs. It's selected via a switch.
    Bill
    Smart Kits build Smart People

    http://www.blueroomelectronics.com/

  3. #3
    pkshima Good pkshima Good
    Join Date
    Jan 2003
    Location
    New Delhi, India
    Posts
    328

    Default

    thanks for quick turn around Bill.
    what I meant was, where does it come from.
    do I connect the pin marked VPP in the ICD connector to pin 1, 6 and 15 of the 40 pin ZIF ?

    could you also help me understand if the pull-up stuff is required only for in-circuit debugging or otherwise also ?
    Its not the Practice that makes a man perfect. Its the Man who makes the practice perfect
    ----- Pradeep K. Shima -----

  4. #4
    Help us help you blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent
    Join Date
    Jan 2007
    Location
    Toronto, Canada
    Posts
    10,709
    Blog Entries
    5

    Default

    The MCLR pullup is required for your target to run. The ICD2 will complain if you set the internal MCLR off and use the internal OSC in your target.

    Only pins 1 and 14 are connected to MCLR on the ZIF, only enable one at a time.
    Bill
    Smart Kits build Smart People

    http://www.blueroomelectronics.com/

  5. #5
    pkshima Good pkshima Good
    Join Date
    Jan 2003
    Location
    New Delhi, India
    Posts
    328

    Default

    Hmmm . I think I am asking a simple question in the wrong way. so heres the question again

    There are 5 wires that end up in the ICD connector. How do I connect these 5 wires to the 40 pins of the ZIF so that I have a plain vanila PIC programmer (no debugging reqd at present).

    There is no wire named MCLR in the ICD connector.:-(.
    Its not the Practice that makes a man perfect. Its the Man who makes the practice perfect
    ----- Pradeep K. Shima -----

  6. #6
    3v0
    3v0 is offline
    3v0 Excellent 3v0 Excellent 3v0 Excellent 3v0 Excellent 3v0 Excellent 3v0 Excellent 3v0 Excellent 3v0 Excellent 3v0 Excellent 3v0 Excellent 3v0 Excellent
    Join Date
    Jul 2006
    Location
    USA
    Posts
    6,464
    Blog Entries
    11

    Default

    Quote Originally Posted by pkshima
    Hmmm . I think I am asking a simple question in the wrong way. so heres the question again

    There are 5 wires that end up in the ICD connector. How do I connect these 5 wires to the 40 pins of the ZIF so that I have a plain vanila PIC programmer (no debugging reqd at present).

    There is no wire named MCLR in the ICD connector.:-(.
    You could have figured this out by looking at the pinout diagram on the 16F877A data sheet. If you want to do anything useful you need to start reading them!

    You only need 3 lines plus power and GND.

    MCLR and VPP are the same and go from VPP on the Inchworm to pin 1 on a 40 pin PIC.

    You need two more lines PGC (Program Clock) and PGD (Program Data). The clock goes to 39 and the data does to 40.

    Inchworm 16F877A
    VPP------- 1
    PGC----- 39
    PGD ---- 40

    Then you need to hook the Inchworm +5 and GND to the PIC.

    It is easy to put a 5 pin header on your target as indicated in the inchworm instructions.

    No additional connections are needed for debugging. You will like the debugger.
    Last edited by 3v0; 10th June 2007 at 09:22 PM.
    Please post questions to the forums. PM's are for personal communication.

    BCHS/3v0's Tutorials
    Junebug USB PIC programmer kit., USB Bit Whacker,
    The 15 Minute Printed Circuit Board! (+drill time)

  7. #7
    Sig239 Newbie
    Join Date
    May 2006
    Location
    USA-Ohio
    Posts
    202

    Default

    Hello pkshima, I think this is what you are looking for. It is from the Inchworm assembly instructions and the Firefly schematics. Also keep in mind what Bill said about the MCLR, it should be switched to a different pin depending on the number of pins on the PIC you are programming.
    Attached Images

  8. #8
    pkshima Good pkshima Good
    Join Date
    Jan 2003
    Location
    New Delhi, India
    Posts
    328

    Default

    Ah :-) perfect. This is what I was looking for. hope to see the led blinking finally.

    For the time being, I will sleep wondering how I will fix the next problem ...

    ICDWarn0033: MPLAB ICD 2 does not support programming this device if both the internal oscillator and internal MCLR are selected. You may continue programming, but you are encouraged to cancel, reconfigure your device, and try again.

    when I try to burn in the hex produced from nigels tutorials :-(
    Its not the Practice that makes a man perfect. Its the Man who makes the practice perfect
    ----- Pradeep K. Shima -----

  9. #9
    Sig239 Newbie
    Join Date
    May 2006
    Location
    USA-Ohio
    Posts
    202

    Default

    Check this thread out.

+ Reply to Thread

Similar Threads

  1. Inchworm ICD2 questions
    By BOBKA in forum Micro Controllers
    Replies: 12
    Latest: 5th July 2009, 06:50 PM
  2. Zif Socket (easy question)
    By chui in forum Micro Controllers
    Replies: 3
    Latest: 19th March 2007, 10:50 AM
  3. More inchworm help needed
    By Andy1845c in forum Micro Controllers
    Replies: 24
    Latest: 6th March 2007, 12:40 AM
  4. Inchworm built: Next step
    By Hedos in forum Micro Controllers
    Replies: 3
    Latest: 17th December 2006, 11:30 PM
  5. L298n IC socket, urgent!!!
    By microzone in forum Datasheet/Parts Requests
    Replies: 14
    Latest: 16th August 2006, 06:20 PM

Tags for this Thread