It’s a good chip. I’ve worked with it. Pick up a PICDEM FS USB Demo Board, and you’re good to go.
However you’ll give up about 1/2 your RAM and CODE space in support of the USB. If you don’t need USB (you really want to trail a FAT USB cable?), then go with the 18F4620 family.
I’m using the '4620 in my 'bot designs. There is a $15 “QwikFlash” board (PICBOOK.COM) available. It’s about 4" square, a little big, but quite usable.
So even if I remove the USB support, half the RAM/FLASH is still taken up?
In other words, you’re saying that if I don’t care about USB (which I don’t), then I should look at getting another chip?
I still need a pretty powerful chip. I need to control servos (so generate PWM signals), do floating point math, possibly parse data from a vision system, etc…
On actually programming the chip, you said something about a “boot loader.” Does this mean I can use free software and not have to purchase a physical piece of hardware?
That’s about it. Here’s some statistics for two builds on the same set of files Hitech C PICC18 compiler
[code]Program statistics: PIC18F4550
Total ROM used 25469 bytes (77.7%)
Total RAM used 752 bytes (73.4%) Near RAM used 16 bytes (16.7%)
Loaded 3DoF_C.cof.
BUILD SUCCEEDED: Thu Mar 20 16:20:01 2008
[/code]
[code]Program statistics: PIC18F4620
Total ROM used 26012 bytes (39.7%)
Total RAM used 761 bytes (19.2%) Near RAM used 16 bytes (12.5%)
Loaded 3DoF_C.cof.
BUILD SUCCEEDED: Thu Mar 20 16:21:39 2008
[/code]
But I believe you can “steal” some RAM back.
The '4620 (and some others) are basically pin-compatible, if not hardware function compatible. Same power (40 Mhz)!
The Microchip website has the info on the project. As do several other sites: Look up the PICDEM board for the files.
Yes, you need a way to program the PICs you use. I highly recommend the Olimex ICD2. I have one and have never been disappointed in it. It will program any PIC or dsPIC you might want to use. This not true of all programmers. I recommend spending the extra money and getting the ICD2 as it can be used for debugging as well as programming. I have read about so many problems with other programmers, and personally, I don’t need that kind of frustration. You will thank yourself for spending the extra money on the ICD2, which works with MPLAB perfectly.
I’ll see if I can get that programmer board, it’s kind of expensive though…
Thanks for the statistics and links Alan. I had no idea a chip with “USB support” would have most of its resources taken up, that really stinks and should be made more clear.
I really don’t know very much about PICs, does anyone have any more recommendations for me? It seems like all the PICs are priced very low, so price isn’t a problem. What’s the most powerful PIC for me to use? I know Alan suggested the PIC18F4620, but I just want to see if there are any other recommendations.