Hi,
I am trying to see if I can program a PIC16F628a based on your circuit and software. I think I have wired up everything correctly. I added 4 led's( each with a 1KOhm resistor) for debugging: 3 green led's in parallel with the Clock, Data, and VPP, and 1 yellow led in parallel with the T3/Gpio8 for read.
But when I run sudo ./rpp - the device is not recognised.
Code: Select all
sudo ./rpp
Raspberry Pi PIC Programmer, v0.1
device_id = 0x0000
Error: unknown device or programmer not connected.
The 3 green led's blink momentarily when I run "sudo ./rpp", like expected.The yellow led does not blink ( probably meaning that no data was read).
I also tested each individual green led, by high/low of pins 4, 7, 9 successfully.
Maybe I have not connected the PIC correctly - I am a newbie, and your post did not have detailed instructions on how to connect the pic, hence I connected
1. T5/Clock to RB6/T1OSO/T1CKI/PGC
2. T6/Data to RB7/T1OSI/PGD
3. T7/VPP to RA5/MCLR/VPP.
Based on what I read online on PIC programming, I also connected
4. 5V ( from the L7806 VR) to VDD,
5. Vss to ground ( all the grounds where connected to each other and to the ground of RPi)
6. I also tried with and without RB4/PGM connected to ground.
http://kannvin.freeshell.net/wiki/doku. ... ojects:rpi is a picture of my circuit on breadboard. I will happily provide more details, more comments on the pic, or any other information if needbe.
Can you please tell me how to debug this further and get it to work?
Thanks