Cheap USB PIC16F628 programmer options? (Solved - use an arduino) - Page 1
Forum section: electronics / general

author: setq
author_rank: Frequent Contributor
timestamp: October 31, 2016, 04:42:07 pm
content: I need to program a few PIC16F628s I have floating around from years ago. Unfortunately I dug my PIC programmer out (circa 2002) and it's got a serial port. I don't have any serial ports any more! My one USB<->serial cable doesn't appear to work any more either.So, screw serial! USB it is!So as I'm coming from the dark ages here, what's the cheapest nastiest method of getting code onto PIC16F628 with a USB port from Windows at the current time? Any Chinese one shot junk programmer is good enough. Even programming one from an arduino is fair game as long as it works properly. Suggestions welcome. This is probably going to be chucked in a box for 15 years like the last one was afterwards so I don't want to throw the cash down on an quality programmer/pickit.

author: Bruce Abbott
author_rank: Frequent Contributor
timestamp: October 31, 2016, 04:50:09 pm
content: Arduino as a Pic Programmer

author: setq
author_rank: Frequent Contributor
timestamp: October 31, 2016, 05:02:23 pm
content: Thanks for that. After following links around I found this which appears to be the bodge I need:http://rweather.github.io/ardpicprog/Found an arduino in my junk box as well. Thanks for the pointer.

author: setq
author_rank: Frequent Contributor
timestamp: October 31, 2016, 05:42:35 pm
content: Argh just blew the arduino up! **Insert swearing**Ordered another one... expensive cock up.

author: ez24
author_rank: Super Contributor
timestamp: October 31, 2016, 07:19:23 pm
content: A long shothttp://www.microchip.com/Developmenttools/ProductDetails.aspx?PartNO=DM164137It is (in the US) $20 + shipping + tax = $28

author: setq
author_rank: Frequent Contributor
timestamp: October 31, 2016, 09:40:11 pm
content: Interesting. So far spent £5.50 on a new arduino (~$7)

author: Bruce Abbott
author_rank: Frequent Contributor
timestamp: November 01, 2016, 02:12:57 am
content: Quote from: ez24 on October 31, 2016, 07:19:23 pmSadly, I don't think it will program the 16F628.Curiosity Development Board User's GuideQuote

author: Skimask
author_rank: Super Contributor
timestamp: November 01, 2016, 02:14:49 am
content: Somethng wrong with a knockoff PICKIT2 off ebay?

author: setq
author_rank: Frequent Contributor
timestamp: November 01, 2016, 07:17:16 am
content: Yes. They all come from China or have 3-5 days lead and I want this job done today. Got a new arduino arriving today so will frig that. This time I'm not going to poke the 13v programming supply on an arduino data pin...

author: obiwanjacobi
author_rank: Super Contributor
timestamp: November 01, 2016, 09:44:16 am
content: Quote from: Skimask on November 01, 2016, 02:14:49 amMy thoughts exactly...http://www.ebay.com/itm/Micro-PICkit2-PIC-KIT2-debugger-programmer-for-PIC-dsPIC-PIC32-PIC24-/112025462344?hash=item1a153ce648:g:-QYAAOSwOVpXXWec

author: CJay
author_rank: Super Contributor
timestamp: November 01, 2016, 09:52:51 am
content: Want to borrow a PICKit2? I've got a couple sat on my desk at home and am in Manchester if that's useful?

author: setq
author_rank: Frequent Contributor
timestamp: November 01, 2016, 10:08:03 am
content: I'm good now - will frig it with this arduino which is arriving between 14:30 and 15:30 according to UKMail. Thanks for the offer however.

author: Ammar
author_rank: Regular Contributor
timestamp: November 01, 2016, 10:10:12 am
content: I got a USB one off eBay for $20. They have heaps of them with the zif sockets

author: CJay
author_rank: Super Contributor
timestamp: November 01, 2016, 11:06:33 am
content: Quote from: setq on November 01, 2016, 10:08:03 amNo problem, PM if you find you need to use one.

author: CJay
author_rank: Super Contributor
timestamp: November 01, 2016, 11:09:27 am
content: Interesting on the Arduino programmer though, there used to be a way to defeat CP on those chips, I might program up a few spares and see if I can make it work

author: setq
author_rank: Frequent Contributor
timestamp: November 02, 2016, 02:43:24 pm
content: Ok it's all done and working a day late. Managed to sort this last night.Action shots for reference. Messy hack job but was fun which makes a change.If you do this, take the picprog package from the github site - that one works with the latest Arduino crap.Breadboard. LM317L generates a 13v supply dropped from my bench PSU. My bench PSU drifts +/-1v at the moment due to a dicky resistor somewhere so I don't trust it. Set it high, drop it via LM317. BC547 switches programming voltage. Carefully checked for no ground loops and shorts via laptop - make sure you do this.Mess created:Victory:5 PICs programmed. Life is good.