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

Programming 16F628A

Discussion in 'Microcontrollers' started by konservatorium, Oct 3, 2006.

  1. konservatorium

    konservatorium New Member

    Joined:
    Oct 3, 2006
    Messages:
    6
    Likes:
    0
    I used to use this circuitry
    [​IMG]
    to program the 16F628 PIC using FPP. It doesn't work with the 16F628A.

    What to change (hw and sw) to program this kind of device
     
  2. kchriste

    kchriste New Member Forum Supporter

    Joined:
    Jul 23, 2006
    Messages:
    3,677
    Likes:
    47
    Location:
    Victoria BC, Canada
    Have a look at http://www.winpicprog.co.uk which also uses the parallel port. You will need to build a new programmer to use the WinPicPro software but all the info you need is on that site.
     
  3. konservatorium

    konservatorium New Member

    Joined:
    Oct 3, 2006
    Messages:
    6
    Likes:
    0
    Thank you for your suggestion. I do not need to design and build a new circuitry but I need to adjust the values for the program to work with my device.

    Currently WPP treats the device as it wasn't there. Do you see the problem's cause on the attached screenshots ?
     

    Attached Files:

  4. dave

    Dave New Member

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


     
  5. kchriste

    kchriste New Member Forum Supporter

    Joined:
    Jul 23, 2006
    Messages:
    3,677
    Likes:
    47
    Location:
    Victoria BC, Canada

    The 16F628A and 16F628 use totally different programming algorithms....
    Your problem is that you need to select 16F628A instead of 16F628:
     

    Attached Files:

  6. eblc1388

    eblc1388 Active Member

    Joined:
    Jan 25, 2005
    Messages:
    2,228
    Likes:
    18
    Location:
    UK
    If only he had to select 16F628A then I don't think he had asked. The following is the device list included in FPP.

    Code (text):


    DEVICE device[] = {             /* list of known devices and sizes */
        {"16F83", 83, 512, 64}, {"16F84", 84, 1024, 64},
        {"16F85", 85, 1024, 64}, {"16F86", 86, 2048, 64},
        {"16F627", 627, 1024, 128}, {"16F628", 628, 2048, 128},
        {"16F870", 870, 2048, 64}, {"16F871", 871, 2048, 64},
        {"16F872", 872, 2048, 64}, {"16F873", 873, 4096, 128},
        {"16F874", 874, 4096, 128}, {"16F876", 876,  8192, 256},
        {"16F877", 877, 8192, 256}, {NULL, 0, MAXPM, MAXDM}
    };
     
    The FPP programming software was created in 2001 and does not in its device list has the newer "A" types of PIC which require a different algorithm to program them. I have the feeling that Nigel's WinPicPro is a more updated or expanded version based on FPP judging by the hardware menu.

    Since you have tried using WinPicPro but it does not work, you have no choice but to upgrade your hardware. Perhaps you can try searching on the NET for other successful programming arrangement using very few parts. Have a look on the following thread.

    Yet another PIC parallel port programmer

    Edited: Added pointer to another thread related to a simple parallel port programmer
     
    Last edited: Oct 4, 2006
  7. Nigel Goodwin

    Nigel Goodwin Super Moderator Most Helpful Member

    Joined:
    Nov 17, 2003
    Messages:
    39,234
    Likes:
    641
    Location:
    Derbyshire, UK
    No, I've never heard of FPP - I suspect he showed screen shots from both programs - and WinPicProg far predates FPP, WinPicProg was the worlds first Windows based PIC programmer (long before MicroChip moved to Windows).
     
  8. eblc1388

    eblc1388 Active Member

    Joined:
    Jan 25, 2005
    Messages:
    2,228
    Likes:
    18
    Location:
    UK
  9. konservatorium

    konservatorium New Member

    Joined:
    Oct 3, 2006
    Messages:
    6
    Likes:
    0
    Good idea, I also came to this conclusion before.

    This programmer is to be used with another program than FPP; I used it with FPP and it worked. It is similar to DT's "Quick and Dirty". Additionally I don't know if it doesn't work at all. This is why I uploaded these two screenshots for you to understand what was entered/adjusted wrong.

    Have a look at this link. The screenshot I uploaded not being titled FPP is showing WPP's properties.

    I don't understand your intention. Please explain.
     
  10. eblc1388

    eblc1388 Active Member

    Joined:
    Jan 25, 2005
    Messages:
    2,228
    Likes:
    18
    Location:
    UK
    That post is meant to show Nigel how I have found the "FPP" program.
     
  11. konservatorium

    konservatorium New Member

    Joined:
    Oct 3, 2006
    Messages:
    6
    Likes:
    0
    Which circuitry do you recommend ?
     
  12. eblc1388

    eblc1388 Active Member

    Joined:
    Jan 25, 2005
    Messages:
    2,228
    Likes:
    18
    Location:
    UK
    Parallel port PIC programmer P16PRO40, detail webpage link in Nigel Goodwin's signature.

    Built several, all worked first time.
     
  13. konservatorium

    konservatorium New Member

    Joined:
    Oct 3, 2006
    Messages:
    6
    Likes:
    0
    "P16PRO programmer for PIC16Cxx microcontrollers by Bojan Dobaj".

    I am using the 16F628A.
     
  14. eng1

    eng1 New Member

    Joined:
    Apr 7, 2006
    Messages:
    951
    Likes:
    19
    Location:
    Italy
    The PIC16F628A can be programmed with any "Tait" programmer, if that microcontroller is supported by the software. A couple of suggestions:
    1) use the 7406 inverting buffers or the 7407 non-inverting buffers, because they have high voltage open collector outputs;
    2) update the original design by adding a resistor to pull PGM to ground.

    I use this programmer: www.eeng.biz/ppp_e.htm with PIC16F628A, PIC16F88, PIC12F675 (Vpp = 12.7 V)
     
  15. konservatorium

    konservatorium New Member

    Joined:
    Oct 3, 2006
    Messages:
    6
    Likes:
    0
    Interesting.

    Does this programmer [​IMG](STK200 Programmer) work with the 16F628A ?
     
  16. Nigel Goodwin

    Nigel Goodwin Super Moderator Most Helpful Member

    Joined:
    Nov 17, 2003
    Messages:
    39,234
    Likes:
    641
    Location:
    Derbyshire, UK
    I wouldn't have thought so?, it's not a PIC programmer of any kind!.
     
  17. tunedwolf

    tunedwolf Well-Known Member

    Joined:
    Aug 9, 2006
    Messages:
    1,080
    Likes:
    62
    Location:
    UK
    it would be great for programming perhaps one of the Atmel devices...
     

Share This Page