Author Topic: Programing PIC  (Read 4477 times)

Offline Walter

  • Full Member
  • ***
  • Posts: 76
Programing PIC
« on: September 03, 2009, »
I'm looking to make my own board to program my pic for the dongle what pins dose the   pickit2 go to on the PIC18F2450 to make this work.
Walter

Offline rrowan

  • Administrator
  • Sr. Member
  • *****
  • Posts: 5899
  • 08096
Re: Programing PIC
« Reply #1 on: September 03, 2009, »
Hi Walter

Take a look at the wiki page for the pic24
You are not allowed to view links. Register or Login


The pins will be different for the 2450
You are not allowed to view links. Register or Login

Looks like

Pickit2 - pic18f2450
1 - 1
2 - 20
3 - 19
4 - 28
5 - 27

a .1uf cap between 20 and 19

should work

Rick R.

Light Animation Hobby - Having fun and Learning at the same time. (21st member of DLA)
You are not allowed to view links. Register or Login
Warning SOME assembly required

Offline Walter

  • Full Member
  • ***
  • Posts: 76
Re: Programing PIC
« Reply #2 on: September 03, 2009, »
i get a message saying check voltage
Walter

Offline rrowan

  • Administrator
  • Sr. Member
  • *****
  • Posts: 5899
  • 08096
Re: Programing PIC
« Reply #3 on: September 03, 2009, »
maybe put pin 8 on the pic to ground also

Rick R.
Light Animation Hobby - Having fun and Learning at the same time. (21st member of DLA)
You are not allowed to view links. Register or Login
Warning SOME assembly required

Offline Walter

  • Full Member
  • ***
  • Posts: 76
Re: Programing PIC
« Reply #4 on: September 03, 2009, »
still no luck   the same message
Walter

Offline memphislights

  • Sr. Member
  • ****
  • Posts: 477
Re: Programing PIC
« Reply #5 on: September 03, 2009, »
Looking at the pin out from the manual off of the mouser site and comparing it to You are not allowed to view links. Register or Login...

Try:

Pickit2PIC18F2450
11
220
38 and 19
428
527
6NC

Looking at it, it does look like the cap should be where Rrowan suggested.


You are not allowed to view links. Register or Login

It may also need an external Vdd of 3.3v.

Quote
All of the PIC24FJ64GA004 family of devices power
their core digital logic at a nominal 2.5V. This may
create an issue for designs that are required to operate
at a higher typical voltage, such as 3.3V. To simplify
system design, all devices in the PIC24FJ64GA family
incorporate an on-chip regulator that allows the device
to run its core logic from VDD.
The regulator is controlled by the DISVREG pin. Tying
VSS to the pin enables the regulator, which in turn, provides
power to the core from the other VDD pins. When
the regulator is enabled, a low-ESR capacitor (such as
ceramic) must be connected to the VDDCORE/VCAP pin
(Figure 23-1). This helps to maintain the stability of the
regulator. The recommended value for the filter capacitor
is provided in Section 26.1 “DC Characteristics”.
If DISVREG is tied to VDD, the regulator is disabled. In
this case, separate power for the core logic at a nominal
2.5V must be supplied to the device on the
VDDCORE/VCAP pin to run the I/O pins at higher voltage
levels, typically 3.3V. Alternatively, the VDDCORE/VCAP
and VDD pins can be tied together to operate at a lower
nominal voltage. Refer to Figure 23-1 for possible
configurations.
« Last Edit: September 03, 2009, by memphislights »
It's not about more, it's about enough.

Offline Walter

  • Full Member
  • ***
  • Posts: 76
Re: Programing PIC
« Reply #6 on: September 03, 2009, »
still no luck

Walter

Offline memphislights

  • Sr. Member
  • ****
  • Posts: 477
Re: Programing PIC
« Reply #7 on: September 04, 2009, »
dumb question, but do you have the latest MPLAB?
It's not about more, it's about enough.

Offline WWNF911

  • Patron Member
  • Sr. Member
  • ****
  • Posts: 1079
Re: Programing PIC
« Reply #8 on: September 04, 2009, »
You are not allowed to view links. Register or Login
i get a message saying check voltage

Are you using the pickit2 program? If so, the voltage is in the mid to upper right and you can change it to what Memphislights suggested? Does it display 3.3 currently?

Leon
Leon

Offline RJ

  • Administrator
  • Sr. Member
  • *****
  • Posts: 8519
Re: Programing PIC
« Reply #9 on: September 04, 2009, »
The dongle pic is 5 volts folks.

RJ
Innovation beats imitation - and it's more satisfying

Offline memphislights

  • Sr. Member
  • ****
  • Posts: 477
Re: Programing PIC
« Reply #10 on: September 04, 2009, »
You are not allowed to view links. Register or Login
The dongle pic is 5 volts folks.

RJ

Quote from: Microchip data sheet
Like all Microchip PIC18 devices, members of the
PIC18F2450/4450 family are available as both standard
and low-voltage devices. Standard devices with
Enhanced Flash memory, designated with an ?F? in the
part number (such as PIC18F2450), accommodate an
operating VDD range of 4.2V to 5.5V. Low-voltage parts,
designated by ?LF? (such as PIC18LF2450), function
over an extended VDD range of 2.0V to 5.5V.

Oops.  I guess I was concentrating on the info from the PIC24.  But the question is, would using an external Vdd from another 5v source help?


It's not about more, it's about enough.

Offline klaasb01

  • Full Member
  • ***
  • Posts: 42
  • Pompton Plains, NJ
Re: Programing PIC
« Reply #11 on: September 04, 2009, »
I have programmed the PIC18F for the Dongle using the PICKIT2.
I do it on a solderless breadboard and connect the PICKIT2 directly to the PIC no external power or components.
I used the following wiring, so what you are trying to do does work and it is simple. Might be as simple as the wires being to long or loose.
PICKIT2 Wiring
PICKIT2 PIN->PIC18F PIN
1 ==>1     MCLR
2 ==>20     VDD
3 ==>8     VSS
4 ==>28     PGD
5 ==>27     PGC
6 ==>NC
« Last Edit: September 04, 2009, by klaasb01 »

Offline memphislights

  • Sr. Member
  • ****
  • Posts: 477
Re: Programing PIC
« Reply #12 on: September 04, 2009, »
Just thought about something.  Are you sure that you have the correct orientation on the cable, ie not reversed?
It's not about more, it's about enough.

Offline mschell

  • Sr. Member
  • ****
  • Posts: 199
    • Christmas in Applegate
Re: Programing PIC
« Reply #13 on: September 04, 2009, »
Walter,
When you get this figured out, then you can program a PIC for my dongle, ok?

Haven't bought the pieces yet, but want to have the dongle as backup for my Entec DMX PRO...

Mark
Kernersville, NC
You are not allowed to view links. Register or Login

Offline memphislights

  • Sr. Member
  • ****
  • Posts: 477
Re: Programing PIC
« Reply #14 on: September 04, 2009, »
You are not allowed to view links. Register or Login
Walter,
When you get this figured out, then you can program a PIC for my dongle, ok?

Haven't bought the pieces yet, but want to have the dongle as backup for my Entec DMX PRO...



There are a lot of people who are also willing to program Lynx PICS for you Mschell.

You are not allowed to view links. Register or Login
It's not about more, it's about enough.