Searching \ for '[PIC] Programming PIC18F2550 with a simple LPT pro' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: massmind.org/techref/microchip/devprogs.htm?key=programming
Search entire site for: 'Programming PIC18F2550 with a simple LPT pro'.

Exact match. Not showing close matches.
PICList Thread
'[PIC] Programming PIC18F2550 with a simple LPT pro'
2009\08\08@050200 by Paul Csanyi

picon face
Hi,

I'm trying to program the PIC 18F2550 with this programmer:
'PIC programmer for LPT port' that can be find here:
http://www.ise.pw.edu.pl/~wzab/opiclab/

I'm using the Winpic programmer software on Windows XP system
downloaded from this site above.

The HEX file is this:
http://openprog.altervista.org/OProg_v0.6.0.hex


When I program the PIC in Winpic I get these messages:
-------------------->
Initialising PIC-Programmer: Success.
Results from LoadHex: LastProgAdr=0x00353C LastDataAdr=0xF00056
(E:\PIC_Programozas\OpenProgrammer\Firmware\HEX_allomany\OProg_v0.6.0.hex)
Erasing chip using algorithm "PIC18F" .
Device has been erased.
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 00FFFF, wanted 00EF7E, mask 00FFFF  ==> diff=001081
Verify Error: 000002: read 00FFFF, wanted 00F01A, mask 00FFFF  ==> diff=000FE5
Verify Error: 000004: read 00FFFF, wanted 000012, mask 00FFFF  ==> diff=00FFED
Verify Error: 000008: read 00FFFF, wanted 00EF9B, mask 00FFFF  ==> diff=001064
More Verify Errors, unable to list all (total=6800)
Programming DATA, 0xF00000..0xF00056
Verifying DATA, 0xF00000..0xF00056
Verifying 0xF00000..0xF00056
Verify Error: F00000: read 0000FF, wanted 00004F, mask 0000FF  ==> diff=0000B0
Verify Error: F00001: read 0000FF, wanted 000070, mask 0000FF  ==> diff=00008F
Verify Error: F00002: read 0000FF, wanted 000065, mask 0000FF  ==> diff=00009A
Verify Error: F00003: read 0000FF, wanted 00006E, mask 0000FF  ==> diff=000091
More Verify Errors, unable to list all (total=87)
Programming CONFIG, 0x300000..0x300006
Verifying CONFIG, 0x300000..0x300006
Verifying 0x300000..0x300006
Verify Error: 300000: read 00FFFF, wanted 000E22, mask 00FFFF  ==> diff=00F1DD
Verify Error: 300002: read 00FFFF, wanted 001E3D, mask 00FFFF  ==> diff=00E1C2
Verify Error: 300004: read 00FFFF, wanted 0000FF, mask 00FFFF  ==> diff=00FF00
Verify Error: 300006: read 00FFFF, wanted 00FF81, mask 00FFFF  ==> diff=00007E
ERROR: Programming FAILED !
-------------------->

I have selected the Part: PIC 18F2550.

In the loaded HEX file the Code begin with these lines:
-------------------->
000000: EF7E F01A 0012 FFFF EF9B F014 0012 FFFF
000010: FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF
000020: FFFF FFFF FFFF FFFF FFFF 0002 353D 0000
000030: 00FD 0000 0001 0000 3528 0000 0000 0000
...
-------------------->

Why failed the programming?
Please help me, this would be the first time to program a PIC!
Any advices will be appreciated!

--
Regards, Paul Chany
http://csanyi-pal.info

2009\08\08@094233 by Peter van Hoof

face picon face
Hi Paul,

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.


Kind regards
Peter van Hoof


{Original Message removed}

2009\08\08@101300 by Peter van Hoof

face picon face
I have to clarify one line


> Install the WinPic software.
> Make sure you have RIGHT CLICKED the  following configuration file link on

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


     

2009\08\08@110247 by Csanyi Pal

picon face
part 1 1487 bytes
Peter van Hoof <spam_OUTpvhoofTakeThisOuTspamyahoo.com> writes:

Hi Peter,

> 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

--
Regards, Paul Chany
http://csanyi-pal.info


part 4 35 bytes content-type:text/plain; charset="us-ascii"
(decoded 7bit)

2009\08\08@114825 by Peter van Hoof
face picon face
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)

Do not forget to restart WinPic after changing the file

Peter van Hoof


     

2009\08\08@125910 by Csanyi Pal

picon face
Peter van Hoof <.....pvhoofKILLspamspam@spam@yahoo.com> writes:

> 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.

--
Regards, Paul Chany
http://csanyi-pal.info

2009\08\08@140436 by Peter van Hoof

face picon face
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




{Original Message removed}

More... (looser matching)
- Last day of these posts
- In 2009 , 2010 only
- Today
- New search...