Welcome
Username or Email:

Password:


Missing Code




[ ]
[ ]
Online
  • Guests: 83
  • Members: 0
  • Newest Member: omjtest
  • Most ever online: 396
    Guests: 396, Members: 0 on 12 Jan : 12:51
Members Birthdays:
All today's birthdays', congrats!
Download (31)
ScottH (37)


Next birthdays
11/03 Electroguy (94)
11/04 nitromarsjipan (2024)
11/04 mb (31)
Contact
If you need assistance, please send an email to forum at 4hv dot org. To ensure your email is not marked as spam, please include the phrase "4hv help" in the subject line. You can also find assistance via IRC, at irc.shadowworld.net, room #hvcomm.
Support 4hv.org!
Donate:
4hv.org is hosted on a dedicated server. Unfortunately, this server costs and we rely on the help of site members to keep 4hv.org running. Please consider donating. We will place your name on the thanks list and you'll be helping to keep 4hv.org alive and free for everyone. Members whose names appear in red bold have donated recently. Green bold denotes those who have recently donated to keep the server carbon neutral.


Special Thanks To:
  • Aaron Holmes
  • Aaron Wheeler
  • Adam Horden
  • Alan Scrimgeour
  • Andre
  • Andrew Haynes
  • Anonymous000
  • asabase
  • Austin Weil
  • barney
  • Barry
  • Bert Hickman
  • Bill Kukowski
  • Blitzorn
  • Brandon Paradelas
  • Bruce Bowling
  • BubeeMike
  • Byong Park
  • Cesiumsponge
  • Chris F.
  • Chris Hooper
  • Corey Worthington
  • Derek Woodroffe
  • Dalus
  • Dan Strother
  • Daniel Davis
  • Daniel Uhrenholt
  • datasheetarchive
  • Dave Billington
  • Dave Marshall
  • David F.
  • Dennis Rogers
  • drelectrix
  • Dr. John Gudenas
  • Dr. Spark
  • E.TexasTesla
  • eastvoltresearch
  • Eirik Taylor
  • Erik Dyakov
  • Erlend^SE
  • Finn Hammer
  • Firebug24k
  • GalliumMan
  • Gary Peterson
  • George Slade
  • GhostNull
  • Gordon Mcknight
  • Graham Armitage
  • Grant
  • GreySoul
  • Henry H
  • IamSmooth
  • In memory of Leo Powning
  • Jacob Cash
  • James Howells
  • James Pawson
  • Jeff Greenfield
  • Jeff Thomas
  • Jesse Frost
  • Jim Mitchell
  • jlr134
  • Joe Mastroianni
  • John Forcina
  • John Oberg
  • John Willcutt
  • Jon Newcomb
  • klugesmith
  • Leslie Wright
  • Lutz Hoffman
  • Mads Barnkob
  • Martin King
  • Mats Karlsson
  • Matt Gibson
  • Matthew Guidry
  • mbd
  • Michael D'Angelo
  • Mikkel
  • mileswaldron
  • mister_rf
  • Neil Foster
  • Nick de Smith
  • Nick Soroka
  • nicklenorp
  • Nik
  • Norman Stanley
  • Patrick Coleman
  • Paul Brodie
  • Paul Jordan
  • Paul Montgomery
  • Ped
  • Peter Krogen
  • Peter Terren
  • PhilGood
  • Richard Feldman
  • Robert Bush
  • Royce Bailey
  • Scott Fusare
  • Scott Newman
  • smiffy
  • Stella
  • Steven Busic
  • Steve Conner
  • Steve Jones
  • Steve Ward
  • Sulaiman
  • Thomas Coyle
  • Thomas A. Wallace
  • Thomas W
  • Timo
  • Torch
  • Ulf Jonsson
  • vasil
  • Vaxian
  • vladi mazzilli
  • wastehl
  • Weston
  • William Kim
  • William N.
  • William Stehl
  • Wesley Venis
The aforementioned have contributed financially to the continuing triumph of 4hv.org. They are deserving of my most heartfelt thanks.
Forums
4hv.org :: Forums :: General Science and Electronics
« Previous topic | Next topic »   

Programming PIC controller PIC18 using a PIC16 hardware.

Move Thread LAN_403
cavemen
Thu Sept 16 2010, 04:59AM Print
cavemen Registered Member #2008 Joined: Tue Mar 03 2009, 05:11AM
Location: USA, Frederick, MD
Posts: 118
Hello.
I stumbled on another problem.
I started to build a PIC programmer and geathered all the parts and I am almost done.

This programmer can program everything up to 18 pins. THe design came from this website:
Link2

PIC18F4550 has 40 pins.
Can I use this same circuit to burn the 40 pin pic18?

All pics should have the nearly-same protocol, but I am not sure how to modify by circuit and connect it with jumper wires to the breadboard so I can program this PIC.

Here is a pic184550 pinout. Link2

Here is the pinout for pic16f84 :http://www.best-microcontroller-projects.com/ image-files/chip-pinout-16f84.png

The programmer is universal so it is kinda hard to get what pins really need the signal/voltage/ground at the time of programming.

Solving this mystery by laying pic12 and pic18 over the circuit to find the right pind doesn't work. The eight PIC12 pins are so multifunctional that it is very hard to understand how that circuit even works.

Should I build another programmer for pic18?

Thank you for your time.
Jdm


Is this the fundamental circuit for a programmer I am seeking?
Link2
(second one from the bottom)
Back to top
cavemen
Thu Sept 16 2010, 06:57AM
cavemen Registered Member #2008 Joined: Tue Mar 03 2009, 05:11AM
Location: USA, Frederick, MD
Posts: 118
All programmers seem to have same components.
Is this waht everything can be simplified to when it comes to programming a PIC controller of any size: Link2
Back to top
Bjørn
Thu Sept 16 2010, 07:03AM
Bjørn Registered Member #27 Joined: Fri Feb 03 2006, 02:20AM
Location: Hyperborea
Posts: 2058
Go to the microchip website and look up a document called "Flash Microcontroller Programming Specification" that applies for your chip, it will tell you what pins to use and what types of programming it supports.

Even better, get a PICkit 2 Link2
It can be had for cheap on ebay and other places and will make your life a lot easier. Home made programmers generally are a pain, particulary on modern computers. They tend to refuse to work with some chips and cause a lot of frustration.
Back to top
Electroholic
Thu Sept 16 2010, 12:04PM
Electroholic Registered Member #191 Joined: Fri Feb 17 2006, 02:01AM
Location: Esbjerg Denmark
Posts: 720
only 5 pins are used during programming, it is called ICSP. Link2
Back to top
big5824
Thu Sept 16 2010, 12:48PM
big5824 Registered Member #1687 Joined: Tue Sept 09 2008, 08:47PM
Location: UK, Darlington
Posts: 240
Id second the pickit 2, iv successfully programmed 16F887s and dspic33fs with mine, so im pretty sure it can handle everything inbetween
Back to top
Bjørn
Thu Sept 16 2010, 01:16PM
Bjørn Registered Member #27 Joined: Fri Feb 03 2006, 02:20AM
Location: Hyperborea
Posts: 2058
It does and it even has a programmable voltage output for driving small projects at different voltages and a 3 channel logical analyser among other features.

Have a look for example here: Link2,739,786&Prod=PG164120
Back to top
cavemen
Fri Sept 17 2010, 06:24AM
cavemen Registered Member #2008 Joined: Tue Mar 03 2009, 05:11AM
Location: USA, Frederick, MD
Posts: 118
Thank you.
Now i get it all.
I found an article that was written by someone who tried to build a programmer.

Bigger PICS = Easier pinouts.
Back to top

Moderator(s): Chris Russell, Noelle, Alex, Tesladownunder, Dave Marshall, Dave Billington, Bjørn, Steve Conner, Wolfram, Kizmo, Mads Barnkob

Go to:

Powered by e107 Forum System
 
Legal Information
This site is powered by e107, which is released under the GNU GPL License. All work on this site, except where otherwise noted, is licensed under a Creative Commons Attribution-ShareAlike 2.5 License. By submitting any information to this site, you agree that anything submitted will be so licensed. Please read our Disclaimer and Policies page for information on your rights and responsibilities regarding this site.