Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic 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.

Register Log in

How to decide when to use PIC or AVR ?

Status
Not open for further replies.

pripi

Newbie level 6
Joined
Jul 15, 2002
Messages
13
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
49
PIC or AVR how to decide

how to decide when to use a avr and when pic. I have some experience with avr so i prefere 8515 in most cases but is it a good solution. Thx
 

gabby

Member level 5
Joined
Mar 18, 2002
Messages
94
Helped
4
Reputation
8
Reaction score
4
Trophy points
1,288
Location
Israel
Activity points
1,239
Hi

Is nice to know some fammily of uc and what they give for you
it open 8O your eays and make your life more easy for desing in
future. :p

The first problem with the most of the people is that they study one uc
and continue to work only with it( :lol: good for fast work easy debbuging,
:x bad some time you need impemelt somting that hard in the specific
uc but very easy in other).

The second big problem chose a project for uc and not a uc for the project.

Now ask yourself for what i need it(hobby,work,mass-production cost,time-market)?

All the uc are great avr , pic ,8051, m8, x86, dsp ,

If you are look for low cost in small qty,
you don't want buy ice and others tool then look
for easy interface like programming on chip that the avr give to you
but you can not debbug the system and the prog interface if i remeber is isp(i think is popular at atmel)
today you have also 8051 from atmel/siemes that give you the option for
programm isp and news ver also from the uart interface.

the pic also give you the option to prog it and some debbuging of the
system from the special serial.

all the serial tools and compillers you can find in the internet.

now after you now your otions
look on the prof that you want to build, and see howmuch mips i/o mem
pheriparial moduls you need then cose your uc.

My rec if you have time take a look on some datasheets familliar form pic avr 8051 from some comp only for the know what avaliable in the market
this not bad and will make your life easy in future for chose the correct uc for the system.

Best regards.
 

techie

Advanced Member level 3
Joined
Feb 5, 2002
Messages
839
Helped
58
Reputation
116
Reaction score
9
Trophy points
1,298
Location
Pakistan
Activity points
7,800
PIC or AVR

PICs are great commercially but suck while developing. They have a weird non-standard architecture for each chip and unless you have a good C compiler (CCS is great), be ready to spend a lot of time wondering on the architecture rather than on the algorithm.
 

panalog9

Full Member level 2
Joined
Feb 25, 2002
Messages
133
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,296
Location
USA
Activity points
850

carllucas

Junior Member level 1
Joined
Jul 12, 2002
Messages
15
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
62
Hi,
I am using (commercially) controllers from small A*mels up to ST10 (PIC too - of course). In the past there was only one reason for using a PIC - if we needed A/D conversion (because all the small 8051's didn't have A/D). In my opinion the real disadvantage of PICs is, that it takes a very long time to program and that they are not really cheap if you compare their performance with other controllers. Maybe cypre*s pSOC, ST7 or 68HCxx could be an alternative (for small designs)?
best regards
carllucas
 

pripi

Newbie level 6
Joined
Jul 15, 2002
Messages
13
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
49
Thanks! :D
The problem that I'm on is, is it OK to force usage of one chip that I'm familiare with or is there something better for some typical solutions.
The idea is to make communication from sensors to computer and register the events in some log file. I'm in a problem to decide bcause I've never made AVR 8515 talk serial RS232 standard. Now I'm stuck in a lot of papers and informations about standard, searching for some tutorial and trying to understand that.
Some practical tutorial on the web is welcome. :idea:

Thx
 

jetmarc

Member level 3
Joined
Dec 17, 2001
Messages
54
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,235
Re: PIC or AVR how to decide

pripi said:
how to decide when to use a avr and when pic. I have some experience with avr so i prefere 8515 in most cases but is it a good solution. Thx
If you want the easy way: choose the avr.

If you want to gain experience: choose the pic.

If you want the best/cheapest for a particular project, post more details about the project.

jetmarc
 

jetmarc

Member level 3
Joined
Dec 17, 2001
Messages
54
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,235
pripi said:
Thanks! :D
The problem that I'm on is, is it OK to force usage of one chip that I'm familiare with or is there something better for some typical solutions.
The idea is to make communication from sensors to computer and register the events in some log file. I'm in a problem to decide bcause I've never made AVR 8515 talk serial RS232 standard. Now I'm stuck in a lot of papers and informations about standard, searching for some tutorial and trying to understand that.
Some practical tutorial on the web is welcome. :idea:

Thx

Check out:

h**p://www.atmel.com/atmel/acrobat/doc1451.pdf
f*p://www.atmel.com/pub/atmel/avr306.zip
 

wutc

Newbie level 5
Joined
Jul 23, 2002
Messages
9
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
31
You can try TI's MSP430 seriers.

Best rgard!
 

jltebar

Junior Member level 2
Joined
Jan 28, 2002
Messages
20
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Spain - Russia
Activity points
133
Troubleshotting PsOC

I'd like to know why sometimes the ADC API gets into an infinite loop as in the next
example:

ADC_IN_X_Start(ADC_IN_X_HIGHPOWER);
ADC_IN_X_ClearFlag();
ADC_IN_X_GetSamples(0x01); //Starts sampling, single sample
do {
byte = ADC_IN_X_fIsData();
} while(byte == NO);
ADC_IN_X_ClearFlag();
Val_ADC_X = ADC_IN_X_iGetData(); //conversion's value


This code has been working fine in earlier versions of my application, but as the code is getting bigger,
one point is reached where the compiler doesn't cross while awaiting the conversion to end.

Can anyone of you help me with this stuff??
Tanks in avance
 

felix1200

Junior Member level 3
Joined
Dec 31, 1999
Messages
29
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,283
Activity points
207
Do you program the avr in assembler language or in c ?
I made best experiences with cod*vision avr C. It's cheap
and very easy to use.
felix1200
 

SphinX

Advanced Member level 3
Joined
Jan 25, 2002
Messages
822
Helped
58
Reputation
116
Reaction score
29
Trophy points
1,308
Location
EGYPT
Activity points
7,051
Hi,

PICs are great for beginner.
But AVR are betters for non-beginner.

Pharaoh Of Egypt
 

fastbrain

Newbie level 3
Joined
Jan 15, 2003
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
24
It doesn't matter what UC you have but what is more important are the development tools. For developing you should have a stable development enviornment which includes C compilers , debugers and ICE. Having a good and stable development tools does decrease your devlopment time
 

Nick C.

Full Member level 5
Joined
Dec 19, 2002
Messages
281
Helped
33
Reputation
66
Reaction score
25
Trophy points
1,308
Activity points
2,213
I think you are going about this backwards. First
figure out what your requirements are (OTP or
Flash, speed, PWM, comparators, ADC's, etc).
Then go and look at what is available to fit your
needs.

Nick C.
 

Kripton2035

Advanced Member level 4
Joined
Jul 19, 2001
Messages
1,160
Helped
208
Reputation
420
Reaction score
181
Trophy points
1,353
Location
Western Europe
Activity points
7,796
the final project is important for choosing the right uc. one nice thing I found about avr's is that you can make all in-out pins in high impedance state, which you can only on some (rare) pins on the pics...
I made a small project for a pic which took almost twice more pins than it would have taken with avr. I saw it after I finished it...
so I think you should know (and also use) 3 to 4 different uc's to make your choice when the project comes out.
 

eltonjohn

Advanced Member level 4
Joined
Feb 22, 2002
Messages
1,435
Helped
64
Reputation
126
Reaction score
28
Trophy points
1,328
Activity points
16,328
PIC OR AVR OR ??????????????????????

YES I WILL INCLUDE THE MPS430

I HAD USED PICS AND AVR FOR THE LONGUEST TIME . LATELY I AORKED WITH THE MPS430 IT'S A BEAUTY I CERTAINLY RECOMEND IT

ITS SO LOW POWER ,ITS VERY CHEAP ,IT CAME WITH FLASH & IT"S NOT REQUIRED TO BUY A PROGRAMMER I BUILD MY OEN FET TOOL (JTAG CABLE FOR PROGRAMMING & DEBUGGING)

SEE YA!!
 

OskarDust

Newbie level 4
Joined
Apr 14, 2003
Messages
7
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
65
Re: PIC or AVR how to decide

Pic if you are developing a project for small series. Those are widely used, are cheap, and you can find them everywhere.

Better if you use a good C compiler.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top