![]() | ![]() | ![]() |
| | |||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
| | LinkBack | Thread Tools | Display Modes |
| | (permalink) |
| Hi, I was wondering which microcontroller set you think is better and of course WHY? I really know nothing about Atmel AVR microcontrollers, I have seen alot of projects made by them on the internet and they seem to be alot more complex then most PIC projects I have seen.. So please share your opinion Peter Wadley
__________________ "Stick around" - Arnold Schwarzenegger in The Predator after impaling a soldier to a wood post 9vDC Guitar Pedal PSU PIC16F84a Game Module | |
| |
| | (permalink) | |
| Quote:
Microchip also has an advantage in internet microcontrollers, as their new PIC18 can directly connect with 10B-T and has an internal TCP/IP stack. I know of no other chips that can do that.
__________________ "Everything that is done in the world is done by hope." -Martin Luther "There are two ways to live your life. One is as though nothing is a miracle. The other is as though everything is a miracle."-Albert Einstein | ||
| |
| | (permalink) |
| Its really down the line, and comes down to device features and development software. Put simply, I have not come across a better compiler than Swordfish. Sure its only for 18F PIC’s, but its flexibility / stability and extreme performance really puts it in a class of its own. Many people seem to stay out of the 18F PIC realm, and put them in the "too hard" basket. You have no idea how much simpler the 18F's are, especially when used in conjunction with a decent compiler. PIC's seem to change a lot more from model to model than AVR's, and many see it as a 'downfall'. I really disagree. This is great, and allows the end user to really work thier projects with a PIC that's jammed packed with features for the job. You have to remember that this forum, when it comes to PIC's, is a 16F/18F based 'PIC community', and projects involving the 24/dsPIC series are far and few between. I'm yet to see one, only read about their features… Well, if you can't tell, I'm die hard PIC... Sure the AVR's are cheaper and easier to program, but they don’t cut the mustard for me at the end of the day. You pay for what you get, and PIC’s have more features and overall bang than AVR’s.
__________________ Spency. PIC Micro's - Your mind is the limit PIC's and interfacing with other devices - a PIC Basic Guide @ digital-diy.net | |
| |
| | (permalink) |
| Give this thread 2 days, and it will be 3 pages +
__________________ Spency. PIC Micro's - Your mind is the limit PIC's and interfacing with other devices - a PIC Basic Guide @ digital-diy.net | |
| |
| | (permalink) |
| I think it more comes down to what you need and what kind of resources you have availiable. I went with AVR, still have too much to learn to say its any better or worse. They take a lot of abuse, haven't destroyed one yet out of nearly 20 now. I am having a few programming problems, but haven't had as much spare time past month or so to work out the bugs. I found that most of the issues I've had, were of my own inexperience, and yet the chips survive. | |
| |
| | (permalink) |
| AVR's do have an advantage in the I/O department, because they don't use a clock prescaler while pics use a divide by four clock, so the accuracy and speed of an AVR can be much higher if there is a lot of I/O going on. As far as processing ability goes they're pretty equally matched although highly optimized assembly code on an AVR will always run faster than on a PIC because the core logic instructions will execute four times faster than on a PIC due to the clock prescaler. A real world program with a lot of jumps and interrupts going on the playing field evens out very quickly excepting in the case of tightly controlled ASM loops and heavy I/O. I use AVR's myself but I think that's primarily because there are fewer devices to chose from compared to the massive army of PIC styles out there. The register file setup of an AVR is also much more intuitive to learn how to use than banking PIC registers though interrupt routines can be a little hard to code on an AVR if you have a lot of things going on.
__________________ "Because I be what I be. I would tell you what you want to know if I could, mum, but I be a cat, and no cat anywhere ever gave anyone a straight answer, har har." Last edited by Sceadwian; 15th April 2007 at 07:28 PM. | |
| |
| | (permalink) | |
| Quote:
Almost every 18F pic comes with PLL (Phase Locked Loop circuit) for users that want to multiply the frequency of the incoming crystal oscillator signal by 4. Its controllable by a couple of config settings. If your going to base speeds on higher models, dont forget about the 24 and dsPIC series, the range is by no means 'limited' to 16F's.
__________________ Spency. PIC Micro's - Your mind is the limit PIC's and interfacing with other devices - a PIC Basic Guide @ digital-diy.net | ||
| |
| | (permalink) |
| An AVR running at 16Mhz runs at 16MIPS max. So that means an 18F would have to be running at 64mhz in order to get the same MIPS. I know very little about PIC's, is 64Mhz common with the PLL of an 18F? The reason I ask and the reason I like AVR's is because EVERY AVR runs at it's clock speed without a PLL. For raw performance AVR's are simply better pound for pound.
__________________ "Because I be what I be. I would tell you what you want to know if I could, mum, but I be a cat, and no cat anywhere ever gave anyone a straight answer, har har." | |
| |
| | (permalink) |
| MIPS isn't everything, an 18F series PIC runs as fast, or faster, than an AVR. And considering it's EXCEEDINGLY rare to require anything near maximum speed from a micro-controller, it's a pretty pointless point to compare on. This PIC vs AVR question comes up all the time, there's no outright winner, both have advantages, both have disadvantages - choose which you like, or use them both - it really makes very little difference. | |
| |
| | (permalink) | |
| Quote:
| ||
| |
| | (permalink) |
| If you want fast sample speeds, you could always try the PIC 24HJ128GP306 It runs at 40MIPS (40 million instructions a second), and is capable of 1.1 Million ADC Samples/Second (10 Bit, 500Khz @ 12bit) All that for $11 Creating programs for the devices is not as hard as you think. Download mikroBasic for dsPIC/24PIC, and have a look at some of the samples provided
__________________ Spency. PIC Micro's - Your mind is the limit PIC's and interfacing with other devices - a PIC Basic Guide @ digital-diy.net | |
| |
| | (permalink) |
| Dont get me wrong - its complete overkill, just an example..
__________________ Spency. PIC Micro's - Your mind is the limit PIC's and interfacing with other devices - a PIC Basic Guide @ digital-diy.net | |
| |
| | (permalink) | |
| Quote:
For a PIC to run at 10MIPS, an external 10Mhz crystal is required, and the PLL config is enabled within the PIC
__________________ Spency. PIC Micro's - Your mind is the limit PIC's and interfacing with other devices - a PIC Basic Guide @ digital-diy.net | ||
| |
| | (permalink) |
| More like $6 It is not overkill for everything. If you get into complex stuff (like vision) it might be just the ticket. 128K bytes flash 16K bytes ram 40 Mhz CPU Newark 1 search result found for “PIC24HJ128GP306” 56K7358 MICROCHIP PIC24HJ128GP306-I/PT 16-Bit Microcontroller IC 160 (in stock) Newark InOne 1 Each $5.80 EDIT: Mouser and DIgiKey are asking over $11 each for the same chip. I am still amazed/glad to have Newark selling popular processors in single quan at 1000 unit prices.
__________________ search engine for electronic partsJunebug USB PIC programmer kit., USB Bit Wacker, 3v0's Homepage The 15 Minute Printed Circuit Board! (+drill time) Last edited by 3v0; 16th April 2007 at 02:05 PM. | |
| |
| | (permalink) |
| What the PICs aren't famous for is lots of flash memory. | |
| |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
| | ||||
| Title | Starter | Forum | Replies | Latest |
| ULTRA clean 9VDC Power Supply Project | Peter_wadley | Electronic Projects | 47 | 19th November 2008 01:54 PM |
| interfacing PIC to 4511 and ICs | mikedf | Micro Controllers | 2 | 1st March 2007 07:04 AM |
| PIC Project advice - doubling frequency | coze | Micro Controllers | 8 | 26th February 2007 08:05 PM |
| An old thread, which is better PIC or AVR never compare the 18F or higher PICs | blueroomelectronics | Micro Controllers | 24 | 17th February 2007 07:26 PM |
| Newcomers, please read! (PIC regarded) Upd. 0xD | Jay.slovak | Micro Controllers | 0 | 17th April 2005 02:05 PM |