| Author |
Message |
alirezaregister
Joined: 26 Aug 2005 Posts: 5
|
02 Mar 2006 17:23 pic vs avr |
|
|
|
|
Hi
can anyone tell me i learn PIC or AVR assembly?
and why?
bye
|
|
| Back to top |
|
 |
ceaser
Joined: 26 Dec 2005 Posts: 122 Helped: 10 Location: Egypt
|
02 Mar 2006 20:25 pic or avr |
|
|
|
|
pic is the most famous for every one
because it has little cost for chip and for programing kit
it has large number of registers and it is easy to learn
while atmel is expensive for chip and programing kit
it has some registers can't accept immediate values in it
|
|
| Back to top |
|
 |
silvio
Joined: 31 Dec 2001 Posts: 801 Helped: 90
|
03 Mar 2006 0:10 avr is better than pic or not |
|
|
|
|
| ceaser wrote: |
it has some registers can't accept immediate values in it |
Come on man, be serious ! Give me an example of MOV literal to f in PIC without going through W register. At least in AVR you have 16 registers you can load immediat with a constant. You want 32 ? Give me a reason for that.
We can talk hours about PIC and AVR but not this way.
|
|
| Back to top |
|
 |
thuvu
Joined: 03 Jan 2006 Posts: 70 Helped: 6
|
03 Mar 2006 0:43 avr vs pic low power |
|
|
|
|
1)AVR is less expensive than PIC
2)You can find very good assembler,compilers for free.
3)PIC is copied from AVR
4)Actually AVR has 32 registers and very useful instruction set
5)PIC IS FOR HOBBYISTS BUT AVR FOR PROFESSIONALS
|
|
| Back to top |
|
 |
bobsanjose
Joined: 13 Jan 2006 Posts: 264 Helped: 25 Location: SF-Bay
|
03 Mar 2006 1:41 pic czy avr |
|
|
|
|
Thuvu,
there are very inexpensive PICs, there are expensive PICs, same is true for AVRs (and HC08 and LPC900 and Silicon Labratories and ST7lite and ...)
PIC is copied from AVR that's a joke as PIC existed some years earlier than AVR and it would be a miserable copy all together.
AVR is the more modern architecture with single cycle execution and a nice set of devices. PICs are many similar architectures PIC12/14/16/18/24 with an even wider variety of peripherals and more selection than AVRs. Most pics need 4 clock cycles to execute one instruction, so a 20 MHz PIC runs as fast as a 5 MHz AVR.
PIC and AVR are both used in many hobby applications as well as in many professional designs.
The higher end PICs e.g. PIC18 have to be compared to ATMEGA and they are both too expensive because there are less expensive 32-bit solutions based on ARM 7, e.g. LPC2000 from Philips.
The smaller PICS and the TINY AVRs are cheaper and have only a few kb of flash.
Bob
|
|
| Back to top |
|
 |
BeeBop
Joined: 19 Feb 2006 Posts: 161 Helped: 15
|
03 Mar 2006 3:12 avr instruction set easy to learn |
|
|
|
|
They are both ABOUT the same. They are both good.
Just pick one and go with it.
Some people just want to start a flame war with their comments! Bob's comment seems accurate.
robert
|
|
| Back to top |
|
 |
Led_Zep
Joined: 22 Nov 2004 Posts: 1 Helped: 1
|
03 Mar 2006 3:43 avr vs pic price comparison |
|
|
|
|
Why assembly???
There are many compilers outside for high level languages...If you know C you know C for every microcontroller.
|
|
| Back to top |
|
 |
Google AdSense

|
03 Mar 2006 3:43 Ads |
|
|
|
|
|
|
| Back to top |
|
 |
Picstudent
Joined: 05 May 2004 Posts: 536 Helped: 13 Location: India
|
03 Mar 2006 4:21 pic vs avr ease |
|
|
|
|
Hai
PIC
Low cost
Easily Available
More Assembly friendly
More free tools available
More example projects and support.
Easy sampling
AVR
More C compiler friendly
More Instructions and more difficult to learn and Do in Assembly.
But best if you Do it In C
sampling difficult
faster than PIC
Costly than PIC
Many comparisons are based on my local situation.
And as a matter of fact
" All generalisations are wrong,Including this one"
picstudent
|
|
| Back to top |
|
 |
saudrehman
Joined: 20 Dec 2005 Posts: 46 Helped: 1
|
03 Mar 2006 4:24 14 pin pic devices |
|
|
|
|
It doesnt really matter which controller you study PIC or AVR or any other.
Both are really easy and fun to learn and there is good development support tools available for both of them.
|
|
| Back to top |
|
 |
IanP
Joined: 05 Oct 2004 Posts: 6490 Helped: 1542 Location: West Coast
|
03 Mar 2006 4:41 what is avr? |
|
|
|
|
| Quote: |
And the winner is.....
If you've read the above, you'll have realised that the answer is Neither of course, it all depends on what your requirements are.
|
http://www.electricstuff.co.uk/picvsavr.html
Regards,
IanP
|
|
| Back to top |
|
 |
thuvu
Joined: 03 Jan 2006 Posts: 70 Helped: 6
|
03 Mar 2006 11:09 what is avr |
|
|
|
|
| How about develloping tools cost?
|
|
| Back to top |
|
 |
brendan99
Joined: 03 Mar 2006 Posts: 6
|
03 Mar 2006 11:47 what is avr |
|
|
|
|
I would use neither.
Have you checked out Zilog. Good 8 bit range XP,Encore and Accclaim(with an ethernet mac), Dev tools are Free. Dev kits available for all at low price.
Dont ingnore fact that ARM7 based micros are now <$5 . Check out Atmels SAM7 range or Philips LPC21XX. You can use open source tools for these. All you need is a JTAG pod(~100$)
Good Luck.
Brendan.
|
|
| Back to top |
|
 |
Picstudent
Joined: 05 May 2004 Posts: 536 Helped: 13 Location: India
|
03 Mar 2006 11:55 msp430 versus nanowatt |
|
|
|
|
Hai
On that area I think AVR will score.
JTAGICE MKII supports almost all AVRs.
debugging using single wire through reset pin.
OLD version of this is available from third parties JTAGICE...Very cheep.
But many new chips are not supported in that version.
JTAGICE MKII supports all. but prized.!
But JTAG of AVR may be more powerfull debugger than ICD of PIC.
ICD is actually not halting during debug. But a software trick.
I think the debugging flexibility of JTAG OF AVR and ICD of PIC is something which to be discussed so that it can be helpfull..
Please..
picstudent
Added after 2 minutes:
| brendan99 wrote: |
. All you need is a JTAG pod(~100$)
Good Luck.
Brendan. |
What is it? Can we use it to debugg Keil MCB2130 board,Which uses LPC2138?
picstudent
|
|
| Back to top |
|
 |
mmohamed15
Joined: 23 Mar 2005 Posts: 117 Helped: 5
|
03 Mar 2006 15:56 what is avr and pic |
|
|
|
|
| AVR IS BETTER THAN PIC
|
|
| Back to top |
|
 |
medap
Joined: 21 Feb 2004 Posts: 99 Helped: 7 Location: near Finland
|
03 Mar 2006 20:40 pic better than avr |
|
|
|
|
Price PIC16F876 vs. ATmega88
http://www.elfa.se/elfa-bin/dyndok.pl?dok=9551.htm
http://www.elfa.se/elfa-bin/dyndok.pl?dok=4586.htm
AVR have free C compiler Avr-GCC Winavr
AVR have fast arch. with similar quarz.
|
|
| Back to top |
|
 |
Beeblebrox
Joined: 14 Sep 2002 Posts: 43 Helped: 1 Location: Somewhere in the known universe
|
07 Mar 2006 12:20 Re: Which them is good! PIC or AVR? |
|
|
|
|
Good question to start a flame war...
I had to solve the same question in a company I work for. In the end I found the architecture similar on both sides with their pros and cons.
So I included the price for development tools, development boards, etc. and I went for Microchip. But you should think first how much you want invest in development, what is expected benefit and count in possible risks.
I went for PIC18Fxxxx series because we're small company developing small series of products. There is free preemptive RTOS for PIC18, cheap In Circuit Debugger/Programmer, cheap development boards and I'm happy with 10MIPS of computing power for our projects. IDE is free of charge as well and Linux tools also exist not mentioning learning curve and thousands of examples and projects. Power consumption in another reason to go for PIC thanks to their nanoWatt technology.
I believe that AVR guys are similarly motivated but these are simply my reasons I went for PICs
|
|
| Back to top |
|
 |
LBdgWgt
Joined: 06 Mar 2006 Posts: 83 Helped: 5
|
07 Mar 2006 12:46 Re: Which them is good! PIC or AVR? |
|
|
|
|
| IanP wrote: |
| Quote: |
And the winner is.....
If you've read the above, you'll have realised that the answer is Neither of course, it all depends on what your requirements are.
|
h**p://www.electricstuff.co.uk/picvsavr.html
Regards,
IanP |
this is the best answer !!!
|
|
| Back to top |
|
 |
giaochu
Joined: 07 Dec 2005 Posts: 6 Helped: 1
|
07 Mar 2006 12:56 Which them is good! PIC or AVR? |
|
|
|
|
I think PiC is Better than AVR.
you should learn it first. the second is AVR
|
|
| Back to top |
|
 |
waseem
Joined: 13 Apr 2005 Posts: 241 Helped: 35
|
08 Mar 2006 5:55 Re: Which them is good! PIC or AVR? |
|
|
|
|
Hi!
I have been working with PIC's for the past two years and i have found them really nice. They are easy to learn and work with. Another important thing is that they have a huge collection which vary in pin count from 6 pins to 84 pins and may be more. The instruction set is very compact and easy to learn as far as assembly programming is concerned. MPLAB has really matured into a state of the art tool and is free to users.
Last year i also started with AVR's. They have also got a plathora of features and in certain cases they are better than PIC's. e.g let us compare 16F877A with ATmega8535.
16F877 has got an MSSP module that can interface with serial eeproms or other devices that support SPI or IIC. The problem is that u can connect either an SPI or an IIC device to the controller.
ATmeaga8535 has got both an SPI and a TWI module that can independently interface with other devices.
The ADC of PIC devices can be configured in cetain predefined configurations i.e you cannot configure each pin independently as analog or digital(Though the latest 14 pin and 8 pin devices have solved this problem).
The ADC of the AVR devices can configure each pin to be analog or digital independently. Moreover they have got the additional advantage of having an interanl 2.56v reference in addition to the external reference.
But the conclusion in the end is that i have never preffered one microcontroller over another just because of there make. I select microcontrollers on the basis of my application. As i am planning to start working on Texas instruments MSP430 series of microcontrollers.
Regards.
|
|
| Back to top |
|
 |
Razamuhammad
Joined: 20 Nov 2005 Posts: 29
|
08 Mar 2006 18:01 Re: Which them is good! PIC or AVR? |
|
|
|
|
If u learn assembly first then u will have a good idea of optimazation of C-code. i prefer atleast you have good idea of assembly then switch direct to C or basic whatever u like but c is beeter than basic.
Shakil
Systems Engineer
|
|
| Back to top |
|
 |
ahmedshakeel
Joined: 07 Feb 2007 Posts: 41 Helped: 2 Location: Pakistan
|
14 Jan 2008 13:22 Re: Which them is good! PIC or AVR? |
|
|
|
|
hi
i think it depends a lot on the kind of application that decides the choice,for example i have mostly worked on avr but i just used 12f675 pic when i needed a 8 pin controller with adc .12f675 is 8 pin pic with 10 bit adc.
regards
|
|
| Back to top |
|
 |
master_picengineer
Joined: 03 Sep 2007 Posts: 1050 Helped: 62
|
14 Jan 2008 13:28 Which them is good! PIC or AVR? |
|
|
|
|
Hi,
They are the same however PICs are cheapper and can be found everywhere.
|
|
| Back to top |
|
 |
inifinitrix
Joined: 30 Jul 2006 Posts: 80 Location: MALAYSIA
|
14 Jan 2008 13:43 Which them is good! PIC or AVR? |
|
|
|
|
pic is the best
|
|
| Back to top |
|
 |
robot.freefprums.org
Joined: 10 Jan 2008 Posts: 4 Location: http://robot.freeforums.org
|
14 Jan 2008 15:31 Which them is good! PIC or AVR? |
|
|
|
|
| DSPIC > AVR > PIC
|
|
| Back to top |
|
 |
segmex
Joined: 25 Oct 2006 Posts: 223 Helped: 6
|
14 Jan 2008 16:18 Re: Which them is good! PIC or AVR? |
|
|
|
|
| thuvu wrote: |
1)AVR is less expensive than PIC
2)You can find very good assembler,compilers for free.
3)PIC is copied from AVR
4)Actually AVR has 32 registers and very useful instruction set
5)PIC IS FOR HOBBYISTS BUT AVR FOR PROFESSIONALS |
well??....
are u joking ??!!
ur third and fifth sentence is completly wrong i think.
|
|
| Back to top |
|
 |
funnynypd
Joined: 09 May 2007 Posts: 918 Helped: 21 Location: USA & Canada
|
14 Jan 2008 16:37 Which them is good! PIC or AVR? |
|
|
|
|
| Both are good. Pick one family as your favorites.
|
|
| Back to top |
|
 |
jit_singh_tara
Joined: 22 Dec 2006 Posts: 110 Helped: 6
|
15 Jan 2008 7:54 Re: Which them is good! PIC or AVR? |
|
|
|
|
| i am working with pic for the past 1 year , very satisfactory ,easy to learn , easily available , too good.i would recommend pic !
|
|
| Back to top |
|
 |
aupa
Joined: 22 Feb 2007 Posts: 58 Helped: 1
|
15 Jan 2008 14:15 Re: Which them is good! PIC or AVR? |
|
|
|
|
i think AVRs ar more powerful, but PICs are cheaper.
you have to decide what are you going to do and how to do.
|
|
| Back to top |
|
 |
blueroomelectronics
Joined: 17 Sep 2006 Posts: 1681 Helped: 99 Location: Toronto, Canada
|
15 Jan 2008 16:20 Which them is good! PIC or AVR? |
|
|
|
|
16F < AVR
18F = AVR
24F > AVR
30F >>> AVR
33F forgetaboutit
|
|
| Back to top |
|
 |
waseem
Joined: 13 Apr 2005 Posts: 241 Helped: 35
|
16 Jan 2008 8:44 Re: Which them is good! PIC or AVR? |
|
|
|
|
Hi!
I agree with blueroomelectronics. If u want to compare PIC's with AVR then check the entire range of PIC microcontrollers.
Regards.
|
|
| Back to top |
|
 |