Hi all
Today i've tryed my first attempt to programming pic. I use the Digital Board of original 32input schematic , with all component fitted in place ( atmega644, 6n138 , cap's and resistors )
The pcb works perfectly (browse to menu, send/receive MIDI with midi interface, led activity works good etc).
My voltage on the pin wih ICSP and Usb connected are:
1: 5.07v
8: 0v
9: 2.03v
10: 2.33v
14: 3.34v
15: 0v
16: 2.99v
17: 5.06v
18: 5.06v
19: 0v
20: 5.08
26 -0.60 (negative tension)
27 -0.60 (negative tension)
28 -0.60 (negative tension)
I've tryed with WinPic following this instruction:
1) Connected all in place
2) Run WinPic
3 Go to Interface tab, select inferface type to COM84 or JDM(2), (Make sure the COM port is right,in my case is COM1)
4)Go to Device Configuration tab, select Pic18F2550
5)File-->Load--->Loading the Firmware pic18f2550usb_12MHz.hex
6) Go to Device Tab, click on Program (CODE + DATA + CONFIG )
The file log
Programming...
Erasing ("bulk" or "chip") ...
Programming CODE, 0x000000..0x001692
Verifying CODE, 0x000000..0x001692
Verifying 0x000000..0x001692
Verify Error: 000000: read 00FFFF, wanted 00EF30, mask 00FFFF ==> diff=0010CF
Verify Error: 000002: read 00FFFF, wanted 00F00B, mask 00FFFF ==> diff=000FF4
Verify Error: 000004: read 00FFFF, wanted 000012, mask 00FFFF ==> diff=00FFED
Verify Error: 000006: read 00FFFF, wanted 000012, mask 00FFFF ==> diff=00FFED
More Verify Errors, unable to list all (total=2890)
Programming CONFIG, 0x300000..0x30000C
Verifying CONFIG, 0x300000..0x30000C
Verifying 0x300000..0x30000C
Verify Error: 300000: read 00FFFF, wanted 000E22, mask 00FFFF ==> diff=00F1DD
Verify Error: 300002: read 00FFFF, wanted 001E3F, mask 00FFFF ==> diff=00E1C0
Verify Error: 300004: read 00FFFF, wanted 0081FF, mask 00FFFF ==> diff=007E00
Verify Error: 300006: read 00FFFF, wanted 00FF85, mask 00FFFF ==> diff=00007A
More Verify Errors, unable to list all (total=7)
ERROR: Programming FAILED !
I've tryed on the same PC but in another partition with windows XP, results? The same problem.
The ICSP cable is correct, the same for the resistor (10k).
I can't remove the atmega because i soldered the IC directly on the PCB, is possible cause for programming PIC?
Thanks in advance.