{"id":256,"date":"2012-01-08T22:30:54","date_gmt":"2012-01-09T02:30:54","guid":{"rendered":"http:\/\/jimlund.org\/blog\/?p=256"},"modified":"2012-01-08T22:30:54","modified_gmt":"2012-01-09T02:30:54","slug":"usbpicprog","status":"publish","type":"post","link":"http:\/\/jimlund.org\/blog\/?p=256","title":{"rendered":"Usbpicprog"},"content":{"rendered":"<p>Built a USB PIC microcontroller programmer, the <a href=\"http:\/\/usbpicprog.org\/\">usbpicprog<\/a>.  I used <a href=\"pics\/usbpicprog.pdf\">Marcelo Maggi&#8217;s version<\/a> with daughter boards for the USB and ZIF.  The boards had some narrow traces&#8211;I had two small defects after eteching, and lost a few more pads soldering the components on.  Small wires fixed things up and it worked first time.  <\/p>\n<p>The instructions aren&#8217;t very clear.  The bootloader .hex gets burned using a JDM programmer using the self programmer header.  Then place a jumper on the self programming header Vpp and Vdd, plug it into the USB port, run usbpicprog.  These messages appear on the command line:<br \/>\n<code>Bootloader Devid: 11240<br \/>\nAutodetected PIC ID: 0x11240<br \/>\n<\/code><\/p>\n<p>Then open the firmware .hex and burn it.  The program said it completed OK.  Then quit the program, remove the USB cord, and add a second jumper on the self programming header from the Clk pin to Gnd.<\/p>\n<p>After this it I connected my PIC18F46K20 to the ICSP header (on a breadboard), plugged in the USB cable, and ran usbpicprog again.  I opened my .hex and burned it.  It said the code burned OK but gave an error for the configuration bits (like I was getting from the JDM programmers).  Then I tried erasing it followed by running blank check.  Both of these completed OK.  I re-burned my program, and this time it worked!  Configuration bits were programmed and verified!<\/p>\n<p>So far I&#8217;ve only finished the main board.  I made the USB board but haven&#8217;t populated it yet.  I intend this mainly for ICSP programming, so I haven&#8217;t decided on whether to make the ZIF board.  I do need to make an enclosure.<\/p>\n<p><img decoding=\"async\" src=\"pics\/usbpicprog_1-2012.jpg\" alt=\"usbpicprog top side\" \/><br \/>\n<img decoding=\"async\" src=\"pics\/usbpicprog2_1-2012.jpg\" alt=\"usbpicprog bottom side\" \/><br \/>\nYou can see some of the trace repairs.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Built a USB PIC microcontroller programmer, the usbpicprog. I used Marcelo Maggi&#8217;s version with daughter boards for the USB and ZIF. The boards had some narrow traces&#8211;I had two small defects after eteching, and lost a few more pads soldering the components on. Small wires fixed things up and it worked first time. The instructions [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,8,1],"tags":[],"class_list":["post-256","post","type-post","status-publish","format-standard","hentry","category-hobbies","category-howto","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/jimlund.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/256","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/jimlund.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/jimlund.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/jimlund.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/jimlund.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=256"}],"version-history":[{"count":0,"href":"http:\/\/jimlund.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/256\/revisions"}],"wp:attachment":[{"href":"http:\/\/jimlund.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=256"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/jimlund.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=256"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/jimlund.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=256"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}