Author Topic: Cheap USB PIC16F628 programmer options? (Solved - use an arduino)  (Read 5321 times)

0 Members and 1 Guest are viewing this topic.

Offline setqTopic starter

  • Frequent Contributor
  • **
  • Posts: 443
  • Country: gb
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.
« Last Edit: November 02, 2016, 03:19:42 pm by setq »
 

Offline Bruce Abbott

  • Frequent Contributor
  • **
  • Posts: 627
  • Country: nz
    • Bruce Abbott's R/C Models and Electronics
Re: Cheap USB PIC16F628 programmer options?
« Reply #1 on: October 31, 2016, 04:50:09 pm »
 

Offline setqTopic starter

  • Frequent Contributor
  • **
  • Posts: 443
  • Country: gb
Re: Cheap USB PIC16F628 programmer options?
« Reply #2 on: October 31, 2016, 05:02:23 pm »
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.
 

Offline setqTopic starter

  • Frequent Contributor
  • **
  • Posts: 443
  • Country: gb
Re: Cheap USB PIC16F628 programmer options?
« Reply #3 on: October 31, 2016, 05:42:35 pm »
Argh just blew the arduino up! **Insert swearing**

Ordered another one... expensive cock up.
 

Offline ez24

  • Super Contributor
  • ***
  • Posts: 3082
  • Country: us
  • L.D.A.
Re: Cheap USB PIC16F628 programmer options?
« Reply #4 on: October 31, 2016, 07:19:23 pm »
A long shot

http://www.microchip.com/Developmenttools/ProductDetails.aspx?PartNO=DM164137

It is (in the US) $20 + shipping + tax  = $28   

YouTube and Website Electronic Resources ------>  https://www.eevblog.com/forum/other-blog-specific/a/msg1341166/#msg1341166
 

Offline setqTopic starter

  • Frequent Contributor
  • **
  • Posts: 443
  • Country: gb
Re: Cheap USB PIC16F628 programmer options?
« Reply #5 on: October 31, 2016, 09:40:11 pm »
Interesting. So far spent £5.50 on a new arduino (~$7)
 

Offline Bruce Abbott

  • Frequent Contributor
  • **
  • Posts: 627
  • Country: nz
    • Bruce Abbott's R/C Models and Electronics
Re: Cheap USB PIC16F628 programmer options?
« Reply #6 on: November 01, 2016, 02:12:57 am »
A long shot

http://www.microchip.com/Developmenttools/ProductDetails.aspx?PartNO=DM164137
Sadly, I don't think it will program the 16F628.
 
Curiosity Development Board User's Guide
Quote
Chapter 3. Troubleshooting
3.2 THE MCU WILL NOT PROGRAM USING THE PKOB
The Curiosity Development Board's PICkit on board (PKOB) uses low-voltage programming...
 

Offline Skimask

  • Super Contributor
  • ***
  • Posts: 1433
  • Country: us
Re: Cheap USB PIC16F628 programmer options?
« Reply #7 on: November 01, 2016, 02:14:49 am »
Somethng wrong with a knockoff PICKIT2 off ebay?
I didn't take it apart.
I turned it on.

The only stupid question is, well, most of them...

Save a fuse...Blow an electrician.
 

Offline setqTopic starter

  • Frequent Contributor
  • **
  • Posts: 443
  • Country: gb
Re: Cheap USB PIC16F628 programmer options?
« Reply #8 on: November 01, 2016, 07:17:16 am »
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...
 

Offline obiwanjacobi

  • Frequent Contributor
  • **
  • Posts: 988
  • Country: nl
  • What's this yippee-yayoh pin you talk about!?
    • Marctronix Blog
Arduino Template Library | Zalt Z80 Computer
Wrong code should not compile!
 

Offline CJay

  • Super Contributor
  • ***
  • Posts: 4136
  • Country: gb
Re: Cheap USB PIC16F628 programmer options?
« Reply #10 on: November 01, 2016, 09:52:51 am »
Want to borrow a PICKit2? I've got a couple sat on my desk at home and am in Manchester if that's useful?
 

Offline setqTopic starter

  • Frequent Contributor
  • **
  • Posts: 443
  • Country: gb
Re: Cheap USB PIC16F628 programmer options?
« Reply #11 on: November 01, 2016, 10:08:03 am »
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.
 

Offline Ammar

  • Regular Contributor
  • *
  • Posts: 154
  • Country: au
Re: Cheap USB PIC16F628 programmer options?
« Reply #12 on: November 01, 2016, 10:10:12 am »
I got a USB one off eBay for $20. They have heaps of them with the zif sockets
 

Offline CJay

  • Super Contributor
  • ***
  • Posts: 4136
  • Country: gb
Re: Cheap USB PIC16F628 programmer options?
« Reply #13 on: November 01, 2016, 11:06:33 am »
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.

No problem, PM if you find you need to use one. 
 

Offline CJay

  • Super Contributor
  • ***
  • Posts: 4136
  • Country: gb
Re: Cheap USB PIC16F628 programmer options?
« Reply #14 on: November 01, 2016, 11:09:27 am »
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  >:D >:D
 

Offline setqTopic starter

  • Frequent Contributor
  • **
  • Posts: 443
  • Country: gb
Re: Cheap USB PIC16F628 programmer options?
« Reply #15 on: November 02, 2016, 02:43:24 pm »
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.
« Last Edit: November 02, 2016, 03:33:42 pm by setq »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf