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

Where can I find the complete circuit diagram for PIC pgrogrammer?

Discussion in 'Microcontrollers' started by thecritic, Sep 10, 2010.

  1. thecritic

    thecritic Member

    Joined:
    Nov 23, 2009
    Messages:
    242
    Likes:
    0
    Location:
    Kathmandu, Nepal
    This is How I added the cap and the resister for the filtering.
    [​IMG]
     
  2. ericgibbs

    ericgibbs Well-Known Member Most Helpful Member

    Joined:
    Jan 4, 2007
    Messages:
    21,177
    Likes:
    644
    Location:
    Ex Yorks' Hants UK
    hi,
    Ran the hex file, the PORTB.0 pin only goes high once for a VERY short time and the program gets locked into repeating delay loop.
     
  3. thecritic

    thecritic Member

    Joined:
    Nov 23, 2009
    Messages:
    242
    Likes:
    0
    Location:
    Kathmandu, Nepal
    :mad:
    The port C0 is input. It should be tied high for the b0 to blink.
    But the program is non-issue here. I am not able to write out a single bit. :(
     
  4. dave

    Dave New Member

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


     
  5. Wp100

    Wp100 Active Member

    Joined:
    Feb 3, 2009
    Messages:
    958
    Likes:
    43
    Location:
    England

    Hi,

    One thing to check, your Parallel Port Bios settings - worth trying all three types - just checked mine - its the default value of ECP+EPP.

    What you must consider is that although you can correctly test all the lines in a static condition, when you are actually programming its at a high frequency and long unshielded wires can cause all sorts of problems.
    By long I mean over 150mm - have even had failures on a Pickit2 with loose wiring like that.

    Would strongly suggest if you want to continue down this line of programmer you either use a pcb or rebuild your strip board as close as possible to a pcb layout /size.

    Have just found and updated a slightly later pfd for the one I did, it now has 2 pic sockets - also just got the old boards out and tested both types and they worked first time on 16F and 18F chips.
     

    Attached Files:

  6. thecritic

    thecritic Member

    Joined:
    Nov 23, 2009
    Messages:
    242
    Likes:
    0
    Location:
    Kathmandu, Nepal
    Tried that. No success. In EPP mode, it took quite long (about 5 seconds) to attempt to program, but as usual the verification failed. In other modes it takes fraction of a second.

    Here is the image of what my programmer looks like.
    [​IMG][​IMG].[​IMG]
    I think the wire is good length.
     
    Last edited: Sep 17, 2010
  7. Pommie

    Pommie Well-Known Member Most Helpful Member

    Joined:
    Mar 18, 2005
    Messages:
    10,008
    Likes:
    316
    Location:
    Brisbane Australia
    We should point future posters to this thread. Two pages of "Don't do it because it will be a pain to get working" followed by 7 pages of "Why isn't it working". And only 1 "told you so". LOL.

    Mike.
     
  8. thecritic

    thecritic Member

    Joined:
    Nov 23, 2009
    Messages:
    242
    Likes:
    0
    Location:
    Kathmandu, Nepal
    It would be my honor I think. Lol.

    But, I thought, Electronics wouldn't, Work/Don't Work by throwing a Dice inside them. There must be some theory or reasons, why it works/don't work. I thought, by the help of forum members, I would be able to spot the reason. No, hard feeling even if I don't succeed, But I will try, until I get bored.
     
  9. 3v0

    3v0 Coop Build Coordinator Forum Supporter

    Joined:
    Jul 14, 2006
    Messages:
    9,404
    Likes:
    227
    Location:
    OKLAHOMA USA
    Perhaps you should try building a LVP cable. It is just a cable with 4 resistors.

    You loose 1 IO pin and I am not sure how many chips are LVP enabled. A small price to pay by comparison.
     
  10. Pommie

    Pommie Well-Known Member Most Helpful Member

    Joined:
    Mar 18, 2005
    Messages:
    10,008
    Likes:
    316
    Location:
    Brisbane Australia
    The problem is that PCs and components vary. This is especially true of serial ports where the voltage can range from ±3 to ±12V. The parallel port programmers are usually more stable but it is very easy to damage the parallel port whilst learning.

    Mike.
     
  11. thecritic

    thecritic Member

    Joined:
    Nov 23, 2009
    Messages:
    242
    Likes:
    0
    Location:
    Kathmandu, Nepal
    Oh! sounds great. If the Price for such a simple programming interface is "Loose a single I/O pin", I am happy for that. I initially thought LVP would involve more complexities than HVP, so never ever thought in that side. The Datasheet of 16f877A says, LVP bit is factory set. Sounds Great. Are there more downsides to LVP?

    But what software do I use? The IC-prog supports only com port? Do you know of parallel port LVP programmer?
     
    Last edited: Sep 17, 2010
  12. ericgibbs

    ericgibbs Well-Known Member Most Helpful Member

    Joined:
    Jan 4, 2007
    Messages:
    21,177
    Likes:
    644
    Location:
    Ex Yorks' Hants UK
    Why has my offer to run your hex file, which you posted for me to try, earned me a 'mad' smiley.????
     
  13. thecritic

    thecritic Member

    Joined:
    Nov 23, 2009
    Messages:
    242
    Likes:
    0
    Location:
    Kathmandu, Nepal
    Never mind. sorry. That was not the intention. Are you really serious or kidding? Lol.
    I messed up with the smilies. Real apologies.
     
  14. ericgibbs

    ericgibbs Well-Known Member Most Helpful Member

    Joined:
    Jan 4, 2007
    Messages:
    21,177
    Likes:
    644
    Location:
    Ex Yorks' Hants UK
    No problemo!
    I just get the impression that you are feeling negative towards the posters trying to help you...:)

    Do you live in the UK,???? I see that the stated location is Nepal.??
     
  15. thecritic

    thecritic Member

    Joined:
    Nov 23, 2009
    Messages:
    242
    Likes:
    0
    Location:
    Kathmandu, Nepal
    Nope. I live in my stated location, Nepal. :)
     
  16. 3v0

    3v0 Coop Build Coordinator Forum Supporter

    Joined:
    Jul 14, 2006
    Messages:
    9,404
    Likes:
    227
    Location:
    OKLAHOMA USA
    Nope. I have never build one. MPLAB does not have a driver for it so that is a deal breaker for me.

    I think if you look at the parallel TAIT PROGRAMMER you might be able to figure out how to make a LVP cable that uses its driver. Could involve a 7404. I would just find a computer with a serial port.

    No other down side.
     
    Last edited: Sep 18, 2010
  17. thecritic

    thecritic Member

    Joined:
    Nov 23, 2009
    Messages:
    242
    Likes:
    0
    Location:
    Kathmandu, Nepal
    Found it. And Going to make the LVP cable. Best of luck to myself.
    BTW, how to I tell ICprog that I am using LVP cable?
     
  18. 3v0

    3v0 Coop Build Coordinator Forum Supporter

    Joined:
    Jul 14, 2006
    Messages:
    9,404
    Likes:
    227
    Location:
    OKLAHOMA USA
    I strongly suggest you read all of the text on the page on how to build the LVP cable.

     
  19. thecritic

    thecritic Member

    Joined:
    Nov 23, 2009
    Messages:
    242
    Likes:
    0
    Location:
    Kathmandu, Nepal
    I think I can safely Declare Now that: The parallel port PIC programmer and Software I tried Parallel Port PIC Programmer, don't work, and expert members here, can't make any more suggestions for making it work. So, Project Dead. :eek:

    I know, people out there might be saying that I was far early told how my project was going to fail. But, No worries to me, I learned many things,and thats important to me. :)

    Moreover, as Pommie has mentioned, you can redirect future people who tend to make such programmer, to here, to show them the risk involved.
    :rolleyes: (I don't quite know, which smilies I should be posting. :))
     
  20. Wp100

    Wp100 Active Member

    Joined:
    Feb 3, 2009
    Messages:
    958
    Likes:
    43
    Location:
    England
    Hi,

    Well wonder why I wasted my time building several PP programmers and taking the trouble to write a PDF for others to use to complete a pic project I did, if they don't work ?
    Have just programmed a chip with one as you can see on the screenshot below.

    As already mentioned you may have damaged your parallel ports or still have some damage or incorrect wiring on your programmer board or possibly even blown your pic chip.
    You also have to check the programmer software that all the options / parameters are also correcly specified -its easy to miss them.

    Thats why its so difficult for a beginner with limited knowledge, abiltiy and parts to get them working first time.
    Often you find it easier to totaly scrap you existing board and build a new one with new components.

    With all you have now learnt why not give it a fresh try....
     

    Attached Files:

  21. 3v0

    3v0 Coop Build Coordinator Forum Supporter

    Joined:
    Jul 14, 2006
    Messages:
    9,404
    Likes:
    227
    Location:
    OKLAHOMA USA
    @WP100

    I have come to the conclusion that there are just too many variables in getting most programmers working the first time.

    Lets see how thecritic makes out with the LVP method. If that works for him maybe we can get the new people up to speed faster.

    I know the programmer is only part of the initial startup problem.
     

Share This Page