Shown above is the programming pod that I use and have found to be very reliable. Due to space limitations (as well as a lack of knowledge at the time) the TinyCNC-II has a fairly non-standard programming pin configuration. I made an adapter cable from a piece of old ribbon cable and soldered some connector pins to the individual wires to make a cable that gets the job done. If this causes you any teeth gnashing then I do apologize but I hope that the above pictures are enough to get you over the hump.
The pins are a rather snug fit but have not failed (yet) to reprogram the CPU literally hundreds of times for testing, correcting problems and adding new features. The Pickit-3 powers and programs the CPU without the need of an external power supply. Finally, the sixth hole position has no connection installed as that is for a low voltage programming process that I do not use in this project.
NOTE: With Microchip no longer maintaining the PICkit 3 v3.10 programming application software as well as announcing dropping support for the PICkit 3 and PICkit 2 programmers as of the IPE v6.25 application software, I wanted to find other software that I could still use my trusty PICkit 3 programmer with. I was pleasantly surprised to find that the following product fit the bill.
PICKitPlus
(https://pickitplus.co.uk/Typesetter/).Â
By PICKitPlus Team
The PICKitPlus product offers Windows software that supports my PICkit 3 (as well as the PICkit 2) programmer and looks to function identically to the PICkit 3 v3.10 application software. PICKitPlus Team also continues to update the software and add support for new devices. The PICKitPlus product also offers Linux command line software with an optional GUI interface.
Step #1
Connecting to the TinyCNC-II Board.
Step #2
Set Software for Fast Programming.
Step #3
Set for Verify and Clear Memory.
Step #4
Erasing the CPU.
Step #5
Loading the TinyCNC-II Hex File.
Step #6
Hex File Loaded and Ready.
Step #7
CPU Successfully Programmed.
Step #8
Program Verified in the CPU.
Step #9
Connect a 9 Volt Battery Across the 33 Volt Zener Diode to Test.
The series of pictures above show the steps involved in using the PICKitPlus programming software from PICKitPlus Team to program the PIC18F6722 CPU.
If you first bring up the software and it does not correctly read the chip ID as a "PIC18F6722" (as pictured in the first of the nine pictures above) then there is something wrong with the CPU hardware section of the PCB or the settings in the programming software are not correct.
Please review each panel to ensure that your software is set up the same. If it reads the CPU ID properly you should have no issues programming the CPU.
The PICKitPlus Linux product uses the "pkcmd-lx" command line software.
After the installation of the PICKitPlus pkcmd-lx product, the user should copy the desired hex file into the installation directory and then change into that directory. Executing the following command should successfully program the TinyCNC-II unit.
./pkcmd-lx-x86_64.AppImage -fTinyCNC-II.hex -3 -w -p18f6722 -mpce
The user should see a command response similar to the following screen shot once the programming process has been successively completed.