DiyLightAnimation

Hardware => Lynx USB DMX Dongle => Topic started by: IndianaChristmas on February 18, 2010,

Title: Another PIC programming question.
Post by: IndianaChristmas on February 18, 2010,
I have the following:
PicKit 2 - connected to PC and found by the Pickit software.
Placed the dongle PIC18F on a breadboard such that it straddles the midline of the board.
Connected wires as described in other posts from the PicKit to the PIC.
I tried loading the Hex file but get error that the device isn't found.

So as many others have asked - what is wrong with this besides wires in the wrong place?
I'm sorry to ask but have reviewed videos, PDF's and other posts without a solution.
Thanks
Title: Re: Another PIC programming question.
Post by: RJ on February 18, 2010,
Can you post a picture or two?  This would help us in helping you get going.

RJ
Title: Re: Another PIC programming question.
Post by: riri7707 on February 18, 2010,
Hi,
Try to connect as below  and check if your wires are ok:

from programmer to pic

Pin 1 to 1 (Vpp)
Pin 2 to 20 (Vdd)
Pin 3 to 8 and 19 (Vss)
Pin 4 to 28 (PGD)
Pin 5 to 27 (PGC)

Put in parallel also a 10k resistor between pin 1 &2 of the programmer

Must to work... ;)

Henri
Title: Re: Another PIC programming question.
Post by: bisquit476 on February 19, 2010,
Just to make it simpler, I bought this board from ebay, it works flawlessly. Depending on the PIC, move some shunts around, hit the auto import button, within seconds I was done.

Probably help if I posted the hyperlink

http://cgi.ebay.com/ICSP-Adapter-ZIF-28-pin-PIC-use-with-PICkit-2-or-3_W0QQitemZ230432414015QQcmdZViewItemQQptZLH_DefaultDomain_0?hash=item35a6d7993f
Title: Re: Another PIC programming question.
Post by: riri7707 on February 19, 2010,
For sure,
This is the most convenient to use the ICSP Adapters.
On the same way, you can get 4 different boards for most of PICs devices for around $30.

But for just programming some chips, if you have a Bread Board, it just takes 1 minute to insert the right wires, and the result is the same... ;)

Henri

Title: Re: Another PIC programming question.
Post by: IndianaChristmas on February 19, 2010,
I set up the wires without the 0.1uf Cap as noted in some solutions.  Is this why I get the device not recognized option?
Also in the pickit software I have set the device to PIC18F.  Should I be using a different PIC18 option?
PS: I'll post a pic of my work when I can get an image.
Title: Re: Another PIC programming question.
Post by: Jeffl on February 19, 2010,
I was playing with a Pic16f506 unit the other day and it wouldn't auto detect it either.  Here is what I did (I'm new so take it for what its worth).

Start the PICKit 2 Programmer
Choose
   Device Family -> Baseline -> Device -> Select the Pic


This is just an example of what I had to do to get the programmer to work for my specific PIC.  You might have to pick the device manually  (PIC18F....).  I have also seen that a cap is needed as well to make some work.

Title: Re: Another PIC programming question.
Post by: IndianaChristmas on February 19, 2010,
OK, lets chalk this up to the new DIY'er learning.  I figured it out and it does work without the cap; of course it is nothing more than a pin counting error!
Or at least I was able to program and verify the progam without the cap.  Actually getting the dongel to work is the next step!
thanks for the input thus far.  I'm sure I'll be asking more noob questions in the near future.
Title: Re: Another PIC programming question.
Post by: riri7707 on February 24, 2010,
One important remark to take care on programming chips from files:

1°) the file must to be in xxxx.hex to be loaded by PicII sw.

2°)Check the connections and  be sure the right device was choosed and display. Most of times using automatic detection found the right device. If not, something is wrong on basic parameters.

Once it's ok :

3°) Very important : the checksum to notify

When you load the file, you need to verify the checksum on the window...

After programming, you need to compare file to programmed chip.

Last verification, to be sure: you read the PIC at the end and always check for checksum...

Most of times, if you use a Bread Board, you can have bad connections...

Cheers ;)
Title: Re: Another PIC programming question.
Post by: tennhillbilly on February 27, 2010,
Just received my order from Mouser with the dongle Parts. I assume that the Pic Mouser #579-pic18F2450-I/SP is the part I need to send to someone to get it programed , is this correct? Thought I would send it off while I am waiting on the PCB's from the co-op.
Title: Re: Another PIC programming question.
Post by: bisquit476 on February 27, 2010,
You are correct