I know nothing about the PICKit1, can you use ICSP with it ?
OK I just looked at AN258 http://www.microchip.com/stellent/id...pnote=en012103
and it clearly shows PICKit1 using ICSP so he can go OFF BOARD with some jumper wires and program chips.
So is it that the PICKit1 firmware does not support bigger chips ?
This will work, until he get's serious. http://cgi.ebay.com/Microchip-PIC-JD...item1e595bbf81
Probably Won't do 18Fs but will do nearly all 16F & 12F series.
Last edited by Archangel; - 19th February 2010 at 06:55.
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
An adapter can be made for the socket, but the PICs supported are limited.
http://www.microchip.com/stellent/id...cName=en010053
Dave
Always wear safety glasses while programming.
Feeling rather pleased with myself this afternoon.
I looked at the diode array diagram in my PICkit1 and the program mackrackit had written for me to run D0 - D1 - D2 in sequence and thought I'd like to add D3. So after much head scratching (believe me) I can up with this:
ANSEL = %00000000
CMCON0 = %00000111
START:
'D0 HIGH
TRISIO = %11001111
GPIO = %00010000
PAUSE 500
'D1 HIGH
TRISIO = %11001111
GPIO = %00100000
PAUSE 500
'D2 HIGH
TRISIO = %11101011
GPIO = %00010000
PAUSE 500
'D3 HIGH
TRISIO = %11101011
GPIO = %00000100
PAUSE 500
GOTO START
The D3 bits mine:-) So I compiled it, no errors and whoosh: D0-D1-D2-D3 chugging along in a nice line and not a hint of burning smoke anywhere.
I know it's only a small step, but still really pleased. I'm going to read and try to fully understand the GPIO / TRISIO port register relationship over the weekend. Still much to learn but Rome wasn't built and all that....!
Dave
COOL!!!!
Progress...
About future programmers.. I would recommend the PicKit2 over anything else. It is a bit more expensive but worth it.
http://www.microchipdirect.com/produ...words=PG164120
In my shop I have a PicKit1, PicStart+, and two PicKit2's. Guess the ones that get used the most..
I will sometimes build a JDM type circuit into a project if it is something the customer may have to update and they work OK and I have a board I make for kids to learn the basics on so they do have their place but...
Just my opinion... not trying to start a programmer war.
Dave
Always wear safety glasses while programming.
I do like the PICKit with it's USB connection, early days but I think I'll stick with them for sure.
I've a lot of basics to learn in the meantime, any thoughts on how I should structure my learning?
I'd like to learn how to program the 12F683 to output a binary pattern (xxxx-bin) when a button gets pressed.
Another thing I'm wondering, does the basic principles of one PIC transfer to others (I'm guessing yes, why re-invent the wheel every time) so learning the 683 chip would be a good place to start for a knowledge base.
Question after question from me at the moment, I do apologize for that.
Interesting stuff these PIC's, I can't wait to get a reasonable working knowledge.
Dave
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Yes, pretty much all are the same. Some of the registers are different but once you learn one or two chips... The 683 is fine for learning. When you get a full copy of PBP give the 16F676 a try for the next one.Another thing I'm wondering, does the basic principles of one PIC transfer to others (I'm guessing yes, why re-invent the wheel every time) so learning the 683 chip would be a good place to start for a knowledge base.
Ask all of the questions you want. That is what the forum is for. Several come here looking for a copy/paste solution. You are not so ask away.Question after question from me at the moment, I do apologize for that.
Do not buy any books!!!! Exception would be the one Bruce is working on.I've a lot of basics to learn in the meantime, any thoughts on how I should structure my learning?
I will try to be nice, but the bozos currently with PBP books are just robbing newbees. They basically copy the PBP manual and some of the examples from Melabs web site. If one of the authors started posting here like Bruce does then I would have a different out look. For now I will say they are trying to make a fast buck.
The only place to get real info on PBP is from this forum and the folks like Darrel, Bruce and Melanie.
You are on the right track.
Start with "blinky" then move on to push buttons. Basic I/Os.
The PICkit1 is forcing you to learn about TRIS so that is covered. Try making the LEDs on that board do what you want with HIGH/LOW commands...
Next would be LOOPS. FOR/NEXT WHILE/WEND, flow control.
Then work on some simple serial stuff, have to have a way to "talk" to your chip.
Start with SERIN2/SEROUT2. Send data to a PC to display on a terminal. The send data to the chip that would replace a button.
Then start playing with on-board ADC and other hardware things.
Dave
Always wear safety glasses while programming.
Bookmarks