Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
LinkBack Thread Tools Display Modes
Old 15th April 2007, 04:07 AM   (permalink)
Default Atmel AVR vs PIC

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
Peter_wadley is offline  
Old 15th April 2007, 12:12 PM   (permalink)
Default

Quote:
Originally Posted by Peter_wadley
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
I visited the Atmel booth and Microchip booth at the embedded systems conference a couple of weeks ago. I've never designed with Atmel, but I am quite familiar with uChip. Based on what I saw, they can pretty much compete with one another. The question may be which one has the better set of tools to get the development done.

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
Analog is offline  
Old 15th April 2007, 02:43 PM   (permalink)
Default

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
gramo is offline  
Old 15th April 2007, 02:44 PM   (permalink)
Default

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
gramo is offline  
Old 15th April 2007, 03:51 PM   (permalink)
Default

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.
HarveyH42 is offline  
Old 15th April 2007, 07:24 PM   (permalink)
Default

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.
Sceadwian is offline  
Old 15th April 2007, 11:11 PM   (permalink)
Default

Quote:
Originally Posted by Sceadwian
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.
Yet another phalacy based on 16F pics..

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
gramo is offline  
Old 16th April 2007, 07:37 AM   (permalink)
Default

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."
Sceadwian is offline  
Old 16th April 2007, 09:12 AM   (permalink)
Default

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.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is online now  
Old 16th April 2007, 12:21 PM   (permalink)
Default

Quote:
Originally Posted by Nigel Goodwin
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.
Well said, but it's still odd that most AVRs are compared to the 30yr old PIC 14bit core and it still can hold its own. Now lets compare them to the dsPIC like the wee dsPIC30F3013 which is only $9 and has a 200ksps 12bit A/D and can run up to 30MIPs. Now that might make a for a nice DSO project.
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is online now  
Old 16th April 2007, 01:15 PM   (permalink)
Default

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
gramo is offline  
Old 16th April 2007, 01:22 PM   (permalink)
Default

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
gramo is offline  
Old 16th April 2007, 01:25 PM   (permalink)
Default

Quote:
Originally Posted by Sceadwian
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.
Almost every 18F pic runs at 10MIPS, many have internal 8Mhz oscillators allowing them to run up to 8MIPS without external devices.

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
gramo is offline  
Old 16th April 2007, 01:58 PM   (permalink)
Default

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.

Last edited by 3v0; 16th April 2007 at 02:05 PM.
3v0 is offline  
Old 16th April 2007, 02:02 PM   (permalink)
Default

What the PICs aren't famous for is lots of flash memory.
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is online now  
Reply

Bookmarks

Thread Tools
Display Modes



Similar Threads
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



All times are GMT. The time now is 06:05 PM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker