DiyLightAnimation

Hardware => Lynx USB DMX Dongle => Topic started by: Walter on September 03, 2009,

Title: Programing PIC
Post by: Walter 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.
Title: Re: Programing PIC
Post by: rrowan on September 03, 2009,
Hi Walter

Take a look at the wiki page for the pic24
http://diylightanimation.com/wiki/index.php?title=Red_Neck_Pic24_programmer


The pins will be different for the 2450
http://ww1.microchip.com/downloads/en/DeviceDoc/39760d.pdf

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.

Title: Re: Programing PIC
Post by: Walter on September 03, 2009,
i get a message saying check voltage
Title: Re: Programing PIC
Post by: rrowan on September 03, 2009,
maybe put pin 8 on the pic to ground also

Rick R.
Title: Re: Programing PIC
Post by: Walter on September 03, 2009,
still no luck   the same message
Title: Re: Programing PIC
Post by: memphislights on September 03, 2009,
Looking at the pin out from the manual off of the mouser site and comparing it to http://diylightanimation.com/wiki/index.php?title=Red_Neck_Pic24_programmer (http://diylightanimation.com/wiki/index.php?title=Red_Neck_Pic24_programmer)...

Try:

Pickit2PIC18F2450
11
220
38 and 19
428
527
6NC

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


ICSP implementation guide (http://ww1.microchip.com/downloads/en/devicedoc/30277d.pdf)

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.
Title: Re: Programing PIC
Post by: Walter on September 03, 2009,
still no luck

Title: Re: Programing PIC
Post by: memphislights on September 04, 2009,
dumb question, but do you have the latest MPLAB?
Title: Re: Programing PIC
Post by: WWNF911 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
Title: Re: Programing PIC
Post by: RJ on September 04, 2009,
The dongle pic is 5 volts folks.

RJ
Title: Re: Programing PIC
Post by: memphislights 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?


Title: Re: Programing PIC
Post by: klaasb01 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
Title: Re: Programing PIC
Post by: memphislights on September 04, 2009,
Just thought about something.  Are you sure that you have the correct orientation on the cable, ie not reversed?
Title: Re: Programing PIC
Post by: mschell 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...

Title: Re: Programing PIC
Post by: memphislights 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.

http://diylightanimation.com/wiki/index.php?title=PIC_Programming (http://diylightanimation.com/wiki/index.php?title=PIC_Programming)
Title: Re: Programing PIC
Post by: mschell on September 04, 2009,
You are not allowed to view links. Register or Login
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.

http://diylightanimation.com/wiki/index.php?title=PIC_Programming (http://diylightanimation.com/wiki/index.php?title=PIC_Programming)


I know there are other folks.  Bill is just down the road from me. 

This was more of a dig at Walter to get it working.... :D
Title: Re: Programing PIC
Post by: Walter on September 04, 2009,
now i get the message   programing falied at program memory address 0x000000
Title: Re: Programing PIC
Post by: WWNF911 on September 05, 2009,
You are not allowed to view links. Register or Login
now i get the message   programing falied at program memory address 0x000000

Here Walter,.... this should help.

http://cgi.ebay.com/ICSP-Adapter-ZIF-40-pin-PIC-use-with-PICkit-2-or-3_W0QQitemZ330316206643QQcmdZViewItemQQptZLH_DefaultDomain_0?hash=item4ce8615233&_trksid=p3286.m20.l1116

or this

http://cgi.ebay.com/ICSP-Adapter-ZIF-Kit-PIC-use-with-PICkit-2-or-3_W0QQitemZ330316477624QQcmdZViewItemQQptZLH_DefaultDomain_0?hash=item4ce86574b8&_trksid=p3286.m20.l1116

 ;D
Title: Re: Programing PIC
Post by: Walter on September 05, 2009,
Ok Guys thank you for all your help!!!!!! Second I got it to work someone cant cout to 20 so pin 21 was being used insted of 20 (retard)   ;D  but it works!!!

Thank you for all your help