Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Which them is good! PIC or AVR?

Status
Not open for further replies.

alirezaregister

Newbie level 4
Joined
Aug 26, 2005
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,346
pic vs avr

Hi
can anyone tell me i learn PIC or AVR assembly?
and why?
bye
 

ceaser

Advanced Member level 4
Joined
Dec 26, 2005
Messages
112
Helped
13
Reputation
26
Reaction score
5
Trophy points
1,298
Location
Egypt
Activity points
2,681
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
 

silvio

Advanced Member level 3
Joined
Dec 31, 2001
Messages
716
Helped
105
Reputation
210
Reaction score
16
Trophy points
1,298
Location
Romania
Activity points
11,470
avr is better than pic or not

ceaser said:
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.
 

thuvu

Member level 3
Joined
Jan 3, 2006
Messages
65
Helped
9
Reputation
18
Reaction score
3
Trophy points
1,288
Activity points
1,819
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
 

bobsanjose

Advanced Member level 1
Joined
Jan 13, 2006
Messages
416
Helped
56
Reputation
112
Reaction score
21
Trophy points
1,298
Location
Silicon Valley
Activity points
5,228
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
 

BeeBop

Full Member level 3
Joined
Feb 19, 2006
Messages
158
Helped
15
Reputation
30
Reaction score
1
Trophy points
1,298
Activity points
3,696
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
 

Led_Zep

Newbie level 1
Joined
Nov 21, 2004
Messages
0
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,280
Activity points
26
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.
 

UroBoros

Advanced Member level 2
Joined
May 5, 2004
Messages
642
Helped
19
Reputation
38
Reaction score
8
Trophy points
1,298
Location
Cochin - India
Activity points
6,459
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":D

picstudent
 

saudrehman

Member level 1
Joined
Dec 20, 2005
Messages
41
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,286
Activity points
1,713
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.
 

thuvu

Member level 3
Joined
Jan 3, 2006
Messages
65
Helped
9
Reputation
18
Reaction score
3
Trophy points
1,288
Activity points
1,819
what is avr

How about develloping tools cost?
 

brendan99

Newbie level 4
Joined
Mar 3, 2006
Messages
6
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,283
Activity points
1,342
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.
 

UroBoros

Advanced Member level 2
Joined
May 5, 2004
Messages
642
Helped
19
Reputation
38
Reaction score
8
Trophy points
1,298
Location
Cochin - India
Activity points
6,459
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 said:
. 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
 

mmohamed15

Advanced Member level 4
Joined
Mar 23, 2005
Messages
112
Helped
5
Reputation
10
Reaction score
0
Trophy points
1,296
Activity points
2,116
what is avr and pic

AVR IS BETTER THAN PIC
 

Beeblebrox

Member level 2
Joined
Sep 14, 2002
Messages
44
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Location
Somewhere in the known universe
Activity points
330
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 ;)
 

LBdgWgt

Member level 5
Joined
Mar 6, 2006
Messages
83
Helped
5
Reputation
10
Reaction score
0
Trophy points
1,286
Activity points
2,066
IanP said:
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 !!! :D
 

giaochu

Newbie level 1
Joined
Dec 7, 2005
Messages
0
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,280
Activity points
1,296
I think PiC is Better than AVR.
you should learn it first. the second is AVR
 

waseem

Full Member level 5
Joined
Apr 13, 2005
Messages
284
Helped
64
Reputation
128
Reaction score
19
Trophy points
1,298
Location
Pakistan
Activity points
3,674
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.
 

Razamuhammad

Newbie level 5
Joined
Nov 20, 2005
Messages
8
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,363
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
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top