Author Topic: Another PIC programming question.  (Read 2807 times)

Offline IndianaChristmas

  • Patron Member
  • Sr. Member
  • ****
  • Posts: 304
Another PIC programming question.
« 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

Offline RJ

  • Administrator
  • Sr. Member
  • *****
  • Posts: 8519
Re: Another PIC programming question.
« Reply #1 on: February 18, 2010, »
Can you post a picture or two?  This would help us in helping you get going.

RJ
Innovation beats imitation - and it's more satisfying

Offline riri7707

  • Full Member
  • ***
  • Posts: 82
Re: Another PIC programming question.
« Reply #2 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

Offline bisquit476

  • Patron Member
  • Sr. Member
  • ****
  • Posts: 873
Re: Another PIC programming question.
« Reply #3 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

You are not allowed to view links. Register or Login
« Last Edit: February 19, 2010, by bisquit476 »

Offline riri7707

  • Full Member
  • ***
  • Posts: 82
Re: Another PIC programming question.
« Reply #4 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


Offline IndianaChristmas

  • Patron Member
  • Sr. Member
  • ****
  • Posts: 304
Re: Another PIC programming question.
« Reply #5 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.

Offline Jeffl

  • Sr. Member
  • ****
  • Posts: 1020
  • Just remember. Wireless is nice. Copper is king!
    • Christmas In Brandon
Re: Another PIC programming question.
« Reply #6 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.


Offline IndianaChristmas

  • Patron Member
  • Sr. Member
  • ****
  • Posts: 304
Re: Another PIC programming question.
« Reply #7 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.

Offline riri7707

  • Full Member
  • ***
  • Posts: 82
Re: Another PIC programming question.
« Reply #8 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 ;)

Offline tennhillbilly

  • Sr. Member
  • ****
  • Posts: 115
Re: Another PIC programming question.
« Reply #9 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.

Offline bisquit476

  • Patron Member
  • Sr. Member
  • ****
  • Posts: 873
Re: Another PIC programming question.
« Reply #10 on: February 27, 2010, »
You are correct