Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

DIY USB PIC incircuit programmer

Status
Not open for further replies.

Buriedcode

Full Member level 6
Joined
May 6, 2004
Messages
357
Helped
43
Reputation
86
Reaction score
7
Trophy points
1,298
Location
London
Activity points
8,887
diy usb pic programmer

Hi,

I've been desgining a dev board for PIC's (18-40 pins DIP's) and although its gonna have bootloading capability, I've been thinking about making a USB programmer for 'HV' programming. I simply cannot afford the ones currently on the market, and seeing as how I have almost all of the components here already all I need is a PCB made up.

Its pretty tricky, as most USB programmers come with their own software, but I would like to build one that is supported by free programming software (ponyprog, and the ever-faithful IC-prog). Its tricky, so far I am thinking of two options:

1) Standard USB to serial cable (shows up as a com port on win XP, so I can use IC-prog) with a 5-13V DC-DC converter, JDM style. Essentially, just a JDM programmer with a more stable Vpp voltage powered from the USB port. It'll go something like: USB -> Serial -> JDM (with HV supply) and ICSP header. The speed is limited by the PC, and since most USB to serial cables only support up to 115kb/s, it'll not be any faster than the original JDM (it bit bangs the serial lines), however, it WILL be able to program any PIC IC-prog can, by USB. Doable.

2) A custom USB programmer, using a USB PIC, or a PIC with a FT232. Again, with a 5-13V converter on board for Vpp. This would probably require custom software on the PC, which I can't do (not really a software man, except PIC's). very similar to the above, but the speed limit would be down to the PIC and the USB. Which means it can be VERY fast. Downside? it'll require a custom prog on the PC, so unless I can find said software for free, that supports USB (NOT via a com port) and get detailed information on it to write the programmer PIC's software, its not going to happen.

Either way, ultimately I would like a circuit that can operate at as a bog standard USB- serial cable (with high speed capability, around 1.5Mb/s at the UART end), a PIC programmer (with a ICSP header), and possibly the ability to program eeproms. Sounds complicated, but I'm sure it can be done 'fairly' simply.

I'm going to buy a cheap USB to serial cable from ebay to test it with the JDM (with my own Vpp power supply, so the JDM doesn't provide it) and take it apart to see if theres anything 'programmable' in there. you never know, maybe a few tweaks and wires could get it to program a PIC Very Happily.

Experts wanted here, I have yet to find a 'free' USB PIC programmer design that is self powered from USB, external power is not an option (I'm not carrying around a 15v wallwart just for 13v @ a few ma for Vpp). I'm fine with the hardware, any idea's are welcome. The point of this is simplicity, like a 'USB JDM', but also reliable, and useful, and preferably 'quick'.

Regards,

BuriedCode.
 

usb pic programmer

Try this one I have not built it myself so i can not say how good it is but look simple to build and easy too try it

**broken link removed**
 

    Buriedcode

    Points: 2
    Helpful Answer Positive Rating
diy usb programmer

wats the language for the site??dun understand.....
 

usb pic programmer schematic

Hi Wizpic,

Wow, beaten to it :( I don't speak german (but I can sort of get by reading it) but hey, thats why babelfish was invented. This is pretty much spot on what I was looking for, and although I've only skimmed the page, I assume it has PC software, PIC firmware (which may be modded by my own horrible purposes) and it looks like its USB powered. Perfect! I was looking forward to designing my own, but this will save me LOTS of time with software tweaks. I'll opf course email the author of the site with some questions....now wheres my german phrase book..

Thankyou very much. Although i googled my heart out on this one, I honestly didn't find it.

BuriedCode.
 

diy pic usb programmer

BuriedCode your are welcome my friend
Yes the software is there along with all the files you need to build it and the best part about it is thta it's free, The auhter has done a great job and by the looks of things it keeps getting updated

i would no even consider designing my own programmer, I use the Winpic800 and the GTP usb plus programmer which the best i have tried not had any problems and tried loads of type of pics

I will get that built up though look good it's always worth having a bcak up

regards,

wizpic
 

homebrew pic programmer

gtp usb lite is a free usb pic programmer
gtp usb is a paying one
you can search for gtp usb on the forum there is a topic with schematics and firmwares.

original paying = www.winpic800.com
 

pic programmer usb diy

Hi, Buriedcode

I also think about similar solution and want to add following comments:

- Standart serial not suitable since it cannot drive DTR and other lines in "direct" mode.

- Since we want to low-cost device (otherwise you have to build ICD2 clone), we should minimize amount of components.

- IMHO, there are two choices:

1) FT232R based device in "bit-bang" mode plus 13V step-up - similar to JDM, but much stable. All programming logic resides on PC, programming speed limited on USB latency.

2) PIC182550 based device. Much flexible, but requires custom firmware.

- As of programmer - I'd like WinPIC https://www.qsl.net/dl4yhf/winpicpr.html and it has free sources and configurable. First variant (FT232R) requires minimal code modification i.e. use of FTD2XX.dll instead of COM-port. Second - requires development of communication protocol, but allow to burn faster and much flexible solution.

Disadvantages of Brenner8 is in propietary protocol & custom programmer.

As for me - I going to build FT232R variant, draft of software patch for WinPIC is ready. Approximate cost:
FT232R - $3.1
78S40 - $1.5
misc. - $3
============
$7.6

Leonid
 

homemade usb pic programmer

Hi lopen,

The two choices were pretty much exactly as I stated :D but...

As of programmer - I'd like WinPIC h**p://www.qsl.net/dl4yhf/winpicpr.html and it has free sources and configurable. First variant (FT232R) requires minimal code modification i.e. use of FTD2XX.dll instead of COM-port. Second - requires development of communication protocol, but allow to burn faster and much flexible solution

I knew roughly how the FT2*** IC's worked, but you explained it better.

But, I buckled and bought one ready made (shock horror!) because it was only 20UKP (37USD?) came with lots of documentation etc... the PICkit 2. Funnily enough, after attempting to desing my own with the PIC18F2550....the schematic for the PICkit 2 is almost identical, and this way I don't have to get a board made up (wanted all SMT). I'm pretty pleased with, but in future I may design an 'all in one' programmer that will work with IC-Prog/ponyprog (with my own 'programmer' option, NOT JDM) so that I can program almost anything I like, like eeproms, flash, and AVR's as well as pics.

However, you did outline the pro's/con's of both approaches well, thankyou. The PICkit 2 programmer works like a charm, and supports all the PIC's I would need, so I think I'm happy, I hope this topic could be useful for others who wish to build their own though. :D

BuriedCOde.
 

diy pic programmer usb

Well done !

But it would definitely help us if you could verify the schematic provided by Microchip on their site with your PICKit2 as I heard thtey had revised the design.

Also, once I have time, I will definitely translate the SMT parts of the PICKit2 to PDIP versions.
 

usb pic programator

Hi again,

I'll try to trace the schem after I'm certain its pretty robust, as a programmer. I've heard that the PICkit2 isn't production quality as far as reliability soon, but its all good so far, even with the programming pins moderately loaded. The schematic on the CD is different from the schematic given on the microchip website, but my pdf is a more recent document, possibly for revision 2 (which is what this programmer is).

BuriedCode
 

usb pic programer diy

This information is exactly what I have.

Microchip has not updated their site with the new schematic.

Since you have the latest, it would help all us guys at EDABoard if you could atleast trace it out or diff out the new schematic with the old.
 

pic programmer usb

Hi!

I have build the BIC-Brenner 8 from www.sprut.de . He works realy fine. The language an this site is german. You can download Schematic and Board by this site.

Christian from Germany
 

ft232rl pic programmer

there is also this open source project which is described in the last circ cellar magazine

ftp://ftp.circellar.com/pub/Circuit_Cellar/2006/196/Enzmann-196.zip

the schematic is in the archive in a .gif, just search for it
there is also all the firmwares and windows software
if you need more, all is explained in the november circ cellar magazine.

the sourceforge project is located at :
https://sourceforge.net/projects/evausb

but there is currently nothing in it.. may be in some weeks. the magazine is recent...
 

build pic programmer

There is the Microchip´s free programmer PICKIT2:

**broken link removed**

Regards.

Martín
 

usb programátor pic

First PICKIT2 is not free. it's $39 to $49

Second most USB programmers like the K150 use an FT232 chip which is simply a USB to RS232 surface mount chip. Also homebrew programmers like the K150 will only support the PICs that DIY writes the software for.

Thirdly get a debugger like Microchips PICKIT2 or my Inchworm :D. Seriously for about the same price as a PICKIT2 I've made the PCBs and included schematics on the site. The PICKIT2 only debugs one PIC so...

Forth, USB is cool but I avoided it in my design because..
1. You CAN blow those little picofuses inside your laptop with just one mistake.
2. I didn't want surface mount chips in the design
3. I wanted the kit to be simple and inexpensive.
4. You can power the Inchworm off a 9V battery
5. You can buy USB to RS232 adapters for $14 from Tiger Direct.
6. You get a nice 7805 1A regulator with thermal shutdown. And it wont damage your USB port.
7. I'm running a contest for a Firefly PCB. See my site for details.
**broken link removed**
 

diy jdm programmer

You can search around in the internet for
"Toolkit TK3 PIC programmer" published from the
magazine, Practical Everyday Electronics.
It has a charge pump IC to supply the 12v for
programming the PIC microcontroller.
The software & hardware schematic are free for reference.

I have tried building it years ago,
you might like to refer for
your design reference.
**broken link removed**
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top