Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Programming PIC18F2550

Status
Not open for further replies.

The_JinJ

Newbie level 3
Joined
Mar 10, 2010
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Scotland
Activity points
1,310
Hi all :)

I'm trying to program a PIC18F2550 with a custom firmware.
I have tried several ways including using circuits from
**broken link removed**
http://tomeko.net/misc.php#COM84
grounding the appropriate VSS pins, tried adding caps to pin 27 & 28.
I've tried both low and high voltage programming with no success - Winpic seems to read the chip (I get 00ffff back when read and all 0's if no power or serial connection)

Winpic gives the following messages:


Code:
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\WinPic\MPLAB\MPLAB IDE\Device\PIC18F2550.dev" : found 113 bit combinations in 39 configuration bit groups .
PIC18F: family='21'=4550, WriteLatch=32 bytes, EraseLatch=64 bytes .
Initialising PIC-Programmer: Success.
Testing: delay(500ms) took 0.50 seconds, timer_freq=2994.9300 MHz ... ok
Results from LoadHex: LastProgAdr=0x001692 LastDataAdr=0xEFFFFF (C:\Documents and Settings\pic18f2550usb.hex)
Programming...
Erasing ("bulk" or "chip") ...
Erasing chip using algorithm "PIC18F" .
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 00CF3F  ==> diff=00C11D
Verify Error: 300002: read 00FFFF, wanted 001E3F, mask 001F3F  ==> diff=000100
Verify Error: 300004: read 00FFFF, wanted 0081FF, mask 008700  ==> diff=000600
Verify Error: 300006: read 00FFFF, wanted 00FF85, mask 0000E5  ==> diff=000060
ERROR: Programming FAILED !

The fuses are set correctly although I don't think I could write them anyway!

When doing high voltage programming I have 10.55v on pin 1 which should be enough to enter programming mode. Pin 26 in pulled to griound to make sure it stays out of low voltage programming mode.

I have tried this with 2 PICs so don't think they are faulty.

Any pointers where to go next (sorry if I have missed any required info)
 

Here is the circuit I'm using to try and program

ICSP-2550.jpg


R1 - 10k
R2 - 10k
R3 - 10k
R4 - 10k
R5 - 100
C1 - 22uf
C1 - 22uf

USB holds a steady 5v even when programming
Pin 1 of PIC rises to 10.5v (which should be enough to enter HV programming mode)
 

Hi,

Its been covered many times in this forum, but the JDM serial programmers can be very problematic, although some folk swear by them.

The next better step is a parallel port programmer that can be made for a few pounds with bits from Maplin - it does program the 2550 - just.
Can send you the circuit / pcb design for that, if you cannot find it in this forum.

If you intend doing more pic micro work then building a Pickit2 Lite is the way to go.
Its detailed a lot in these forums, costs about £10, but of course it need its 2550 to be programmed first. - however I could always program it for you if there is no one you know who can do so.
 

    The_JinJ

    Points: 2
    Helpful Answer Positive Rating
wp100 said:
Hi,

Its been covered many times in this forum, but the JDM serial programmers can be very problematic, although some folk swear by them.

The next better step is a parallel port programmer that can be made for a few pounds with bits from Maplin - it does program the 2550 - just.
Can send you the circuit / pcb design for that, if you cannot find it in this forum.

If you intend doing more pic micro work then building a Pickit2 Lite is the way to go.
Its detailed a lot in these forums, costs about £10, but of course it need its 2550 to be programmed first. - however I could always program it for you if there is no one you know who can do so.

I'd be obliged if you could send accross the schematics :)
Where are you based?
 

Hi,

The plans for both programmers attached including Bills Blueroom version, who rightly describes your current design.

If you do want to do more pics then the Pickit2 will save you hours of wasted time and money. I'm the other side of the border but hope you won't hold that against me !
 

    The_JinJ

    Points: 2
    Helpful Answer Positive Rating
Cheers for that....think I'm going to buy a programmer! lol
 

Hi,

They are not too bad to build either of them, particularly if you can make a pcb for them.

If you do buy one, then please run it by this forum before you buy, there are so many duffers out there.

Really recommend the Pickit2 or Pickit3 , with or without the little starter / debugger borards. - See Farnells for details.
If you want a lo cost programmer / development board then something like Bluerooms Junebug is basically a Pickit2 with all the expansion parts and exercises etc.

Out of interest what are you programming into the 2550 - a programmer or something for connecting to USB - there are easier ways to get usb with simpler chips.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top