You have to set up your software and programmer hardware.
Install the WinPic software.
Make sure you have RIGHT CLICKED the following configuration file link on
the page http://www.ise.pw.edu.pl/~wzab/opiclab/ and click SAVE LINK AS and select
C:\Program Files\WinPic\interfaces\Wzab2.ini (this is the location for a
standard English install of windows XP if you have a different setup save it in winpic's
interfaces directory.)
If you have built your programmer with the 74LS07 this file is ok
If you built it with the 74ls06 as in the diagram on the page you need to open this file with
notepad and change the following lines:
VppOnOff=!D6 to VppOnOff=D6
ClockOut=D4 to ClockOut=!D4
DataOut=D3 to DataOut=!D3
and save it.
Start up WinPic and select the INTERFACES tab
Under interface type select "Custom, on LPT port , defined by FILE"
Under Custom interface definition file click select and pick "Wzab2.ini"
Select the options tab.
Make sure that "use SMPORT" is selected.
Check if it programs.
If it does not program report back to the list and I will tell you how to check if the hardware
works.
If your only object is to program this chip to build another programmer
I (or I am sure there is someone else closer to you) could program it for you.
> Hi Paul,
>
> You have to set up your software and programmer hardware.
I did so already, as You described bellow.
> Install the WinPic software.
> Make sure you have RIGHT CLICKED the following configuration file
> link on the page http://www.ise.pw.edu.pl/~wzab/opiclab/ and click
> SAVE LINK AS and select C:\Program Files\WinPic\interfaces\Wzab2.ini
> (this is the location for a standard English install of windows XP
> if you have a different setup save it in winpic's interfaces
> directory.)
I did so.
> If you have built your programmer with the 74LS07 this file is ok
> If you built it with the 74ls06 as in the diagram on the page you
> need to open this file with notepad and change the following lines:
> VppOnOff=!D6 to VppOnOff=D6
> ClockOut=D4 to ClockOut=!D4
> DataOut=D3 to DataOut=!D3
> and save it.
I'm using SN7406N.
> Start up WinPic and select the INTERFACES tab
> Under interface type select "Custom, on LPT port , defined by FILE"
> Under Custom interface definition file click select and pick
> "Wzab2.ini"
>
> Select the options tab.
> Make sure that "use SMPORT" is selected.
I did so.
> Check if it programs.
>
> If it does not program report back to the list and I will tell you
> how to check if the hardware works.
So here are the messages from Winpic:
part 2 2313 bytes Info: Loading definitions for "PIC18F2550" from C:\Program Files\WinPic\devices.ini .
Info: Support for some newer PIC18F devices added by Martin v.d. Werff 2005
Parsed "C:\Program Files\Microchip\MPLAB IDE\Device\PIC18F2550.dev" : found 113 bit combinations in 39 configuration bit groups .
PIC18F: family='21'=4550, WriteLatch=32 bytes, EraseLatch=64 bytes .
Failed read back of DATA line (LOW) !
Failed read back of DATA line (HIGH) !
WARNING: Could not initialize programmer !
Testing: delay(500ms) took 0.50 seconds, timer_freq=1866.6900 MHz ... ok
Reading 0x3FFFFE - 0x3FFFFF ...
Reading 0x300000 - 0x30000D ...
Reading 0xF00000 - 0xF000FF ...
Reading 0x000000 - 0x007FFF ...
Reading PIC ok.
Results from LoadHex: LastProgAdr=0x00353C LastDataAdr=0xF00056 (E:\PIC_Programozas\OpenProgrammer\Firmware\HEX_allomany\OProg_v0.6.0.hex)
Programming...
Erasing ("bulk" or "chip") ...
Erasing chip using algorithm "PIC18F" .
Programming CODE, 0x000000..0x00353C
Verifying CODE, 0x000000..0x00353C
Verifying 0x000000..0x00353C
Verify Error: 000000: read 000000, wanted 00EF7E, mask 00FFFF ==> diff=00EF7E
Verify Error: 000002: read 000000, wanted 00F01A, mask 00FFFF ==> diff=00F01A
Verify Error: 000004: read 000000, wanted 000012, mask 00FFFF ==> diff=000012
Verify Error: 000006: read 000000, wanted 00FFFF, mask 00FFFF ==> diff=00FFFF
More Verify Errors, unable to list all (total=6608)
Programming DATA, 0xF00000..0xF00056
Verifying DATA, 0xF00000..0xF00056
Verifying 0xF00000..0xF00056
Verify Error: F00000: read 000000, wanted 00004F, mask 0000FF ==> diff=00004F
Verify Error: F00001: read 000000, wanted 000070, mask 0000FF ==> diff=000070
Verify Error: F00002: read 000000, wanted 000065, mask 0000FF ==> diff=000065
Verify Error: F00003: read 000000, wanted 00006E, mask 0000FF ==> diff=00006E
More Verify Errors, unable to list all (total=86)
Programming CONFIG, 0x300000..0x300006
Verifying CONFIG, 0x300000..0x300006
Verifying 0x300000..0x300006
Verify Error: 300000: read 000000, wanted 000E22, mask 00CF3F ==> diff=000E22
Verify Error: 300002: read 000000, wanted 001E3D, mask 001F3F ==> diff=001E3D
Verify Error: 300006: read 000000, wanted 00FF81, mask 0000E5 ==> diff=000081
ERROR: Programming FAILED !
part 3 263 bytes
> If your only object is to program this chip to build another
> programmer I (or I am sure there is someone else closer to you)
> could program it for you.
>
>
> Kind regards
> Peter van Hoof
> > If you have built your programmer with the 74LS07 this file is ok
> > If you built it with the 74ls06 as in the diagram on the page you
> > need to open this file with notepad and change the following lines:
> > VppOnOff=!D6 to VppOnOff=D6
> > ClockOut=D4 to ClockOut=!D4
> > DataOut=D3 to DataOut=!D3
> > and save it.
>
> I'm using SN7406N.
>
for the SN7406N you also need to change the three lines in the ini file
these are for any open collector inverting buffer chip (the ls just indicates low-power Schottky)
Do not forget to restart WinPic after changing the file
> Hi Paul,
>
>> > If you have built your programmer with the 74LS07 this file is ok
>> > If you built it with the 74ls06 as in the diagram on the page you
>> > need to open this file with notepad and change the following
>> > lines:
>> > VppOnOff=!D6 to VppOnOff=D6
>> > ClockOut=D4 to ClockOut=!D4
>> > DataOut=D3 to DataOut=!D3
>> > and save it.
>>
>> I'm using SN7406N.
>>
>
> for the SN7406N you also need to change the three lines in the ini
> file these are for any open collector inverting buffer chip (the ls
> just indicates low-power Schottky)
I did changed these three lines.
> Do not forget to restart WinPic after changing the file
I did so.
I still get the error messages.
I try out to program this PIC18F2550 with Pikdev too, on the Debian
GNU/Linux Lenny system. Here Pikdev can't even detect the PIC.
We'll stay with WinPic for now (I'm not Unix trained)
Remove the 18F2550 from it's socket
In WinPic on the "interface" tab under "interface check"
-check the Vpp checkbox and measure the voltage to the pin 1 Vpp
verify it is between 9 and 13.25 volt referenced to GND
-uncheck the Vpp checkbox and measure the voltage to the pin
verify it is below 0.7 volt referenced to GND
-check the Clock checkbox and and measure the voltage to the pin 27 PGC
verify it is higher than 2.5 volt referenced to GND
-uncheck the Clock checkbox and and measure the voltage to the pin
verify it is lower than 0.7 volt referenced to GND
-check the Data (to pic) checkbox and and measure the voltage to the pin 28 PGD
verify it is higher than 2.5 volt referenced to GND
also verify you can read Data In = 1 just below the "data to pic" checkbox (the actual status detected)
-uncheck the Data checkbox and and measure the voltage to the pin
verify it is lower than 0.7 volt referenced to GND
also verify you can read Data In = 0
Make sure you have 5 volt on pin 20 ,Vdd
and 0 volt on pin 8 and 19 , Vss