JOY-2-PIC Joystick to Microchip PIC MCU ICSP Programmer
A simple programmer that connects to, and draws power from your A8's joystick port, that will allow you to program numerous Microchip PIC MCU's via the In-Circuit-Serial-Programming (ICSP) interface.
Programming the Flash memory of the PIC chip requires a PICPROG.COM file which is first created with the READHEX.COM program (both programs run on any A8 computer). This newly created 'flashing' file can be incorporated into an auto loading ATR, thus allowing for easy distribution of project firmware (this is what I do for many of the projects here at AtariBits).
Using the Programming Software
Program Author Notes
From the bwdos prompt, type:
READHEX SAMPLE.HEX SAMPLE.COM
Now, you see a prompt with the available PIC models. Select the one you want by entering the number and RETURN.
This takes a while, reading "SAMPLE.HEX", and producing "SAMPLE.COM". If you omit the output name in the command line, the default is the same as input with ".COM" instead of any existing extension. If you omit both parameters, the program asks for the input HEX file name.
After the end, press RETURN to return to DOS.
Now, you have in the disk a new binary, run it to program the PIC.
Now, pressing START begins the programming. The background color flashes to indicate progress.
The programming is a little slow, because I have limited the speed to one WSYNC per clock transition, this is about 7.7kbaud, and the programming protocol takes 28 bits for each word plus 3 ms of "programming time", so 2kword of PIC memory should take about 15 seconds.
- Daniel Serpell
This project was a joint effort by Daniel Serpell (dmsc) and myself, that began in December of 2015. The main thrust being to provide an inexpensive and easy to use method for the DIY person to update the firmware in the TK-II boards that were under development. It has since been put to use for a few other projects, and likely will find itself useful for even more to come.