Greetings lz5480,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.
[post=16931]Quoted post[/post]
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
[post=16943]Quoted post[/post]
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).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
[post=16961]Quoted post[/post]
hi..GadgetOriginally 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...
[post=16962]Quoted post[/post]
hi..GadgetOriginally 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...
[post=16962]Quoted post[/post]
I am not exactly clear on your question but I think you are asking "Is it better to use asssmbly language than Basic compiler?".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
[post=16961]Quoted post[/post]
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.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
[post=16999]Quoted post[/post]
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.
[post=17066]Quoted post[/post]
Hello to all, first post here.Originally posted by hgmjr@May 9 2006, 12:22 PM
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.
[post=16943]Quoted post[/post]
Hi and welcome to the forums,Originally posted by Turbokeu@May 28 2006, 07:33 AM
Hello to all, first post here.
All Microchip PIC microcontrollers with an 'F' in their denomination (ex. 16F628, 18F458) are flash-based controllers which can, like the AVR's, be reprogrammed thousands of times. All PIC's also contain SRAM and EEPROM memory.
Only PIC's with a 'C' (ex. 16C54) are OTP (One Time Programmable).
Microchip has a free Integrated Development Environment (IDE) which is MPLAB, basically meant for ASM (assembler) programming.
Several third party programming languages environments (C, Basic, ...) can be easily integrated into MPLAB.
Most of these (commercial) third party programming languages have a free download version with a 2 kilobyte generated code limitation.
I have no experience with those packages as I only program in ASM.
CD
Edit: I just saw it's my second post on this forum...
[post=17365]Quoted post[/post]
Thanks!Originally posted by Dave@May 28 2006, 05:03 PM
Hi and welcome to the forums,
I was always under the impression that the C18 compiler for programming PICs in C was a paid for software with no limited free version, having looked around Microchip's website I cannot find anything to the contrary. There is a free student version which functions under certain time-limiting restrictions which alters certain optimisations making your code less efficient.
Dave
[post=17377]Quoted post[/post]
Having only used the PIC18F series of microcintrollers, this will explain why I am not familiar with these other C-compilers for PIC microcontrollers. Thanks.Originally posted by Turbokeu@May 28 2006, 07:17 PM
Thanks!
I wasn't really talking about the Microchip C18 compiler (I even forgot about it!), which is BTW only meant for the PIC 18F-series, but more about about the CCS and Hitech C-compilers for the 16F-series...
PS: Again, I have no experience with these packages as I only program in ASM (even on 18F PICs).
CD
[post=17384]Quoted post[/post]
Actually, the free version IS the student version and can be used for free indefinately with a single restriction that kicks in after a week, but let me clarify something about this restriction. It doesn't make your code less efficient (I don't know why Microchip words it like this unless they believe people want to use their PICS so much they would pay for the compiler rather than use the student version). The compiler doesn't go out of its way to make your code less efficient. Rather, what it does is not optimize your code as much as the paid version (level 2 instead of level 5 optimization if I remember right). So it's really not a problem, especially if you want you code to run exactly as you have written it. So really the worst thing that can happen is that you get what you coded.Dave said:Hi and welcome to the forums,
I was always under the impression that the C18 compiler for programming PICs in C was a paid for software with no limited free version, having looked around Microchip's website I cannot find anything to the contrary. There is a free student version which functions under certain time-limiting restrictions which alters certain optimisations making your code less efficient.
Dave
Thank you for clarifying this point. How stringent are they at enforcing the Student criteria? i.e. Do they require verification of student status, similar to the way MathWorks do with the student version of Matlab?DKNguyen said:Actually, the free version IS the student version and can be used for free indefinately with a single restriction that kicks in after a week, but let me clarify something about this restriction. It doesn't make your code less efficient (I don't know why Microchip words it like this unless they believe people want to use their PICS so much they would pay for the compiler rather than use the student version). The compiler doesn't go out of its way to make your code less efficient. Rather, what it does is not optimize your code as much as the paid version (level 2 instead of level 5 optimization if I remember right). So it's really not a problem, especially if you want you code to run exactly as you have written it. So really the worst thing that can happen is that you get what you coded.
That is something very important to know if you are deciding between PIC and AVR. The free Microchip PIC compiler DOES NOT ACTIVELY MAKE YOUR CODE LESS EFFICIENT- what it does is not go through your code and optimize it as much as the paid version. It's practically the same product. The worst that can happen is that your code is as bad (or as good) as you wrote it.
Thread starter | Similar threads | Forum | Replies | Date |
---|---|---|---|---|
S | AVRs or PICs | Microcontrollers | 25 | |
P | SCR on generator AVRs | General Electronics Chat | 1 | |
![]() |
Personal comparison between PICs and AVRs | Microcontrollers | 20 | |
![]() |
Personal comparison between PICs and AVRs | General Electronics Chat | 18 |