All About Circuits Forum  

Go Back   All About Circuits Forum > Software, Microcomputing, and Communications Forums > Embedded Systems and Microcontrollers

Notices

Embedded Systems and Microcontrollers Discussion forum for projects and working with embedded systems and microcontrollers (FPGAs, PICs, AVRs). Get help with hardware issues and embedded programming.

Reply   Post New Thread
 
Thread Tools Display Modes
  #1  
Old 05-09-2006, 12:54 AM
lz5480 lz5480 is offline
New Member
 
Join Date: May 2006
Posts: 4
Default PIC vs AVRs

hi...

I'm newbie in microcontroller and I need your help.
What is the different between PIC and AVR.
Which of both have better support (forums,tools..etc), easy to use and to programmed.

Thank you.
Reply With Quote
  #2  
Old 05-09-2006, 01:34 AM
Papabravo's Avatar
Papabravo Papabravo is offline
Senior Member
 
Join Date: Feb 2006
Location: Michigan, USA (GMT-5)
Posts: 3,292
Default

I'm not sure that it makes sense to do a side by side comparison. Part of this reticence comes from the fact that each family has a large number of variants. In many cases the choice of a part often comes down to the number of pins, the package, the cost of the chip, the peripherals, the cost of the halo, the operating voltage, the current consumption, and so forth. The internal architecture of the ALU and the instructions is pretty low on my list of priorities.

They both have assemblers, they both have compilers for high level languages, they both have emulators, development tools, and programmers. Once you use one, you develop a feel for what it can and cannot do. If you have the luxury I would try to learn multiple parts. If not, let's see what the other folks think on this isssue.
__________________
We never have time to do it right,
But we always have time to do it over.
Reply With Quote
  #3  
Old 05-09-2006, 10:22 AM
hgmjr's Avatar
hgmjr hgmjr is online now
Super Moderator
 
Join Date: Jan 2005
Location: Tennessee, USA (GMT-5)
Posts: 7,146
Blog Entries: 11
Default

Quote:
Originally posted by lz5480@May 8 2006, 07:54 PM
hi...

I'm newbie in microcontroller and I need your help.
What is the different between PIC and AVR.
Which of both have better support (forums,tools..etc), easy to use and to programmed.

Thank you.
Greetings lz5480,

The following reply is strictly IMHO.

Papabravo is correct, your choice of PIC or AVR is largely a matter of what you plan to do with the microcontroller. Both device families have similar features as well as unique features so the process of choosing one can be daunting.

I am blatantly biased as I recently purchased an ATSTK500 Starter kit from Digikey ($80) for use in program development for Atmel's AVR series of microcontrollers.

I chose the AVR over the PIC mainly for economic reasons. Atmel has elected to make all of their AVR series development tools available FREE from their website. You can download their very flexible assembly language development tool called AVRStudio 4.12 from www.atmel.com. The software development tools I looked at for the PIC series cost several hundred dollars.

I am not very familiar with PIC but I believe that the PIC series devices are mainly one-time-programmable. That means that you will probably have to discard the PIC if your code has a bug in it. That means no do-overs.

The AVR series devices are FLASH, EEPROM and SRAM based devices so they can be reprogrammed thousands of times. They are also In-System Programmable which means you can layout your PC board and then refine your program afterwards.

I have had my ATSTK500 for a month or so and it has proven to be a real blast.

I'm certain that the PIC series is a terrific family of microcontrollers with many great features. It is just that the AVR series made more sense for my budget and application.

hgmjr
__________________
"No human being should be allowed to have this much fun."
hgmjr

Engineering is the discipline of designing in the presence of real world constraints.
Reply With Quote
  #4  
Old 05-10-2006, 05:24 AM
lz5480 lz5480 is offline
New Member
 
Join Date: May 2006
Posts: 4
Default

Quote:
Originally posted by hgmjr@May 9 2006, 02:22 AM
Greetings lz5480,

The following reply is strictly IMHO.

Papabravo is correct, your choice of PIC or AVR is largely a matter of what you plan to do with the microcontroller. Both device families have similar features as well as unique features so the process of choosing one can be daunting.

I am blantantly biased as I recently purchased an ATSTK500 Starter kit from Digikey ($80) for use in program development for Atmel's AVR series of microcontrollers.

I chose the AVR over the PIC mainly for economic reasons. Atmel has elected to make all of their AVR series development tools available FREE from their website. You can download their very flexible assembly language development tool called AVRStudio 4.12 from www.atmel.com. The software development tools I looked at for the PIC series cost several hundred dollars.

I am not very familiar with PIC but I believe that the PIC series devices are mainly one-time-programmable. That means that you will probably have to discard the PIC if your code has a bug in it. That means no do-overs.

The AVR series devices are FLASH, EEPROM and SRAM based devices so they can be reprogrammed thousands of times. They are also In-System Programmable which means you can layout your PC board and then refine your program afterwards.

I have had my ATSTK500 for a month or so and it has proven to be a real blast.

I'm certain that the PIC series is terrific family of microcontrollers with many great features. It is just that the AVR series made more sense for my budget and application.

hgmjr

hi... hgmjr

Thank you for your help.I look at the internet there are many compiler for both.
How about Basic compiler? Does it raise the result as good as if it use assembly directly?

lz5480
Reply With Quote
  #5  
Old 05-10-2006, 06:33 AM
Gadget Gadget is offline
Senior Member
 
Join Date: Jan 2006
Location: Queenstown, New Zealand
Posts: 614
Send a message via MSN to Gadget
Default

Quote:
Originally posted by lz5480@May 10 2006, 12:24 AM
hi... hgmjr

Thank you for your help.I look at the internet there are many compiler for both.
How about Basic compiler? Does it raise the result as good as if it use assembly directly?

lz5480
If you want to program in BASIC, then I would suggest the PICaxe series from Revolution Education. They are basicaly a PIC with a basic interpreter loaded onboard (similar in operation to the "STAMP" series but cheaper). They have internal osc, and require only a very minumum interface (5 volt supply and a lead to connect to the RS232 port on your PC) and can be reprogrammed. I use them for a lot of small one off projects, and the tiny PICaxe8M is my favourite, with 5 combination I/O's (which can also be configured as 10bit ADC, IR input or PWM out or even Servo control) and Serial I/O all in an 8 pin package, with enough progam memory for 80 lines of code..(as I recall).
The chips are as Cheap a Chips..( about $4 or $5 each landed here in NZ) and the software is Free from the Revolution Education website, along with lots of sample Apps, instructions, command list and ideas. The PICaxe 18 series is also popular for the more intense projects.
Probably not the way to go if you want high speed or complex functions...
Reply With Quote
  #6  
Old 05-11-2006, 06:13 AM
lz5480 lz5480 is offline
New Member
 
Join Date: May 2006
Posts: 4
Default

Quote:
Originally posted by Gadget@May 9 2006, 10:33 PM
If you want to program in BASIC, then I would suggest the PICaxe series from Revolution Education. They are basicaly a PIC with a basic interpreter loaded onboard (similar in operation to the "STAMP" series but cheaper). They have internal osc, and require only a very minumum interface (5 volt supply and a lead to connect to the RS232 port on your PC) and can be reprogrammed. I use them for a lot of small one off projects, and the tiny PICaxe8M is my favourite, with 5 combination I/O's (which can also be configured as 10bit ADC, IR input or PWM out or even Servo control) and Serial I/O all in an 8 pin package, with enough progam memory for 512 lines of code..(as I recall).
The chips are as Cheap a Chips..( about $4 or $5 each landed here in NZ) and the software is Free from the Revolution Education website, along with lots of sample Apps, instructions, command list and ideas. The PICaxe 18 series is also popular for the more intense projects.
Probably not the way to go if you want high speed or complex functions...
hi..Gadget

Thank you for your suggestion, but... what is the different with Basic Stam?

lz5480
Reply With Quote
  #7  
Old 05-11-2006, 06:14 AM
lz5480 lz5480 is offline
New Member
 
Join Date: May 2006
Posts: 4
Default

Quote:
Originally posted by Gadget@May 9 2006, 10:33 PM
If you want to program in BASIC, then I would suggest the PICaxe series from Revolution Education. They are basicaly a PIC with a basic interpreter loaded onboard (similar in operation to the "STAMP" series but cheaper). They have internal osc, and require only a very minumum interface (5 volt supply and a lead to connect to the RS232 port on your PC) and can be reprogrammed. I use them for a lot of small one off projects, and the tiny PICaxe8M is my favourite, with 5 combination I/O's (which can also be configured as 10bit ADC, IR input or PWM out or even Servo control) and Serial I/O all in an 8 pin package, with enough progam memory for 512 lines of code..(as I recall).
The chips are as Cheap a Chips..( about $4 or $5 each landed here in NZ) and the software is Free from the Revolution Education website, along with lots of sample Apps, instructions, command list and ideas. The PICaxe 18 series is also popular for the more intense projects.
Probably not the way to go if you want high speed or complex functions...
hi..Gadget

Thank you for your suggestion, but... what is the different with Basic Stam?

lz5480
Reply With Quote
  #8  
Old 05-11-2006, 09:47 AM
hgmjr's Avatar
hgmjr hgmjr is online now
Super Moderator
 
Join Date: Jan 2005
Location: Tennessee, USA (GMT-5)
Posts: 7,146
Blog Entries: 11
Default

Quote:
Originally posted by lz5480@May 10 2006, 12:24 AM
hi... hgmjr

Thank you for your help.I look at the internet there are many compiler for both.
How about Basic compiler? Does it raise the result as good as if it use assembly directly?

lz5480
I am not exactly clear on your question but I think you are asking "Is it better to use asssmbly language than Basic compiler?".

When it comes to the different programming languages, there are several trade-offs that exist. You can use a high-level language like Basic or "C" to make it easier to write the program. The trade-off is that the high-level language puts you at the mercy of the Compiler designer's implementation of the high level commands using assembly language. Portability of code across many different devices is one of the advantages of high-level languages. Another advantage to high-level languages is that other programmers can easily take your high-level language coded program and modify it to suit their needs.

Using assembly language is a bit (no pun intended) more complicated since you must take care of all of the low-level routines yourself. For this extra effort you get the ability to write very compact code from the stand-point of memory usage. This advantage can sometimes be critical in the microcontroller world since the available memory is often limited.

It has been my opinion that a programmer with a good grasp of assembly language can make better use of a high-level language since they can alway resort occassionally to writing their own assembly languge subroutines to take greater advantage of the hardware. Of course by doing so, they have to be willing to abandon portability.

In the end, the choice of programming language to use comes down to personal preference and your specific application.

hgmjr
__________________
"No human being should be allowed to have this much fun."
hgmjr

Engineering is the discipline of designing in the presence of real world constraints.
Reply With Quote
  #9  
Old 05-14-2006, 03:29 AM
Gadget Gadget is offline
Senior Member
 
Join Date: Jan 2006
Location: Queenstown, New Zealand
Posts: 614
Send a message via MSN to Gadget
Default

Quote:
Originally posted by lz5480@May 11 2006, 01:14 AM
hi..Gadget

Thank you for your suggestion, but... what is the different with Basic Stam?

lz5480
To program.... very little, but it is a single chip (a PIC with a bootstrapping routine loaded to allow direct connection to RS232 without an interface) and is very cheap...probably less than 1/10 the cost of a Basic Stamp.
If it interests you I suggest you google PICAXE or Revolution Education.
Reply With Quote
  #10  
Old 05-14-2006, 06:23 AM
lz5480 lz5480 is offline
New Member
 
Join Date: May 2006
Posts: 4
Default

Quote:
Originally posted by Gadget@May 13 2006, 07:29 PM
To program.... very little, but it is a single chip (a PIC with a bootstrapping routine loaded to allow direct connection to RS232 without an interface) and is very cheap...probably less than 1/10 the cost of a Basic Stamp.
If it interests you I suggest you google PICAXE or Revolution Education.

Thank you very much for your help.

lz5480
Reply With Quote
Reply   Post New Thread

Bookmarks

Tags
,

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PIC vs AVR's PART 2 xphere Embedded Systems and Microcontrollers 6 09-29-2006 10:01 PM


All times are GMT. The time now is 10:16 PM.


User-posted content, unless source quoted, is licensed under a Creative Commons Public Domain License. Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.