Using an Arduino Uno, I want to program a PIC16F628 to blink an LED. To do this, I have built a shield for the Arduino to communicate with the PIC as found on this page http://rweather.github.io/ardpicprog/pic14_zif_circuit.html: . A sketch has been uploaded to the Arduino to communicate with the PIC [url https://github.com/rweather/ardpicprog/blob/f5ddf24341587013b5027f7951c72064df63f8b2/ProgramPIC/ProgramPIC.pde[/url] Elsewhere, the hex instructions for the PIC to blink an LED have been obtained and are waiting to be banged into the PIC.
The shield is on a breadboard and resembles that of the diagram except the ICSP header is excluded and 12V is applied to Q1, rather than 13V (an extra volt can be found if necessary). Since the 16F628 has 18 pins, D2 is connected to pin 14 on the PIC.
So far, all I can say is the reset button works. The red LED glows but the yellow LED doesn't show any activity when I upload the sketch to the Arduino. Assuming everything's the way it should be, except possibly the 12V/13V issue, how do I get the sketch to reference the hex code? Can I paste the code in the sketch (where?) or in a .h file and modify the sketch to reference it?
The reason I want to do it this way (from Arduino 1.01 IDE) is the programpic IDE (for Linux in my case) doesn't seem to be available to download. https://freecode.com/projects/ardpicprog