Comparison between 51 MCU, AVR and PIC MCU

Publisher:epsilon15Latest update time:2020-01-06 Source: elecfans Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

I think 51 is better. Because 51 is a relatively standard complex instruction microcontroller. By learning 51, you can have a relatively comprehensive grasp of microcontroller and general CPU knowledge, and achieve the purpose of learning by analogy (Z80 is also good, but unfortunately it is a bit outdated and the development tools are also backward). PIC is a reduced instruction system. Although the machine code is easy to understand, it has great limitations, that is, it will overemphasize the understanding of MicroChip's design ideas. In fact, it is more cost-effective to fully master the microcontroller technology than to master a certain chip (don't be bound by a certain company).


There are many chips similar to PIC, such as AVR, MSP430, Z8, etc. After mastering the structure and instruction system of 51, it is easy to understand the principles of these microcontrollers. On the other hand, it may be necessary to defeat them one by one.
 

Comparison between 51 MCU, AVR and PIC MCU

Some more reasons:

As for chips: 51 single-chip microcomputers have very low prices and countless derivative chip series, which cover almost the entire automatic control field from low speed (1MPS) to high speed (30MPS). The price of new chips ranges from 5 yuan to hundreds of yuan, and of course there are a large number of disassembled chips available, which is very convenient for self-study and self-help experiments.


As for development tools: 51 has completely free C language compilers and real-time task systems, and of course there are a large number of evaluation versions (including D version) of the world's top development tools, such as KEIL / Tasking / HITech / Resonance / Franklin (the predecessor of Resonance). Of course, appreciating these grand development environments under the premise of non-profit is undoubtedly helpful for cultivating systematic thinking and meticulous insight.


As far as debugging tools are concerned: the 51 series emulators are the cheapest and have the most variety.


For the PIC series:

The use of a single chip is relatively limited, and it is greatly restricted by the capacity of the machine itself, that is, its versatility is slightly poor. This is also the reason why MicroChip's product line is very long. Of course, this idea of ​​MicroChip is very beneficial to business operations, and it is well integrated with users in terms of cost/performance and mass production.


In addition, the PIC instruction system has certain defects, which are often felt by users, forcing people to fall into the maze of MicroChip chip selection and often hesitate on small issues.


In China: The price of PIC is also a fatal reason that hinders its large-scale application, and the supply variety is not sufficient.


So I think:

First learn general-purpose microcontrollers, that is, the 51 series, and then choose to learn other commonly used microcontrollers based on specific application requirements. Think flexibly and choose flexibly. For example, when a small amount of switching resources is needed, use 89C2051, when simple A/D resources are needed, choose PIC16F873, and when a large number of I/Os are needed, consider 89C52; when low speed is required, try to consider the 51 series, when medium speed is required, consider the PIC series, when high speed is required, consider the 90S AVR series, and when very high speed is required, return to consider the 51-compatible SOC series. When low power consumption is required, consider the MSP430 series.


By the way, the PIC16F74/84 that everyone often talks about can be completely replaced by 89C2051, because the general design plan has a speed margin, and these chips do not have A/D, and their basic structures are similar. In order to use PIC, you have to use pure assembly (compilers are hard to find), while with the 51 series, you can use C code calmly, and there is RTOS support.


Finally, a suggestion: in terms of speed, PIC is not the best. The AVR series has achieved single-cycle instructions and pipeline operations. Under the same power consumption, AVR is much faster than PIC and much cheaper (of course, slightly more expensive than the low-end 51 series). AVR is a new model worthy of attention.


Although C should be used as much as possible when doing projects, in order to use C well, you must first learn assembly. After learning the regular assembly system of the 51 series, it feels really easy to appreciate the assembly environment of each small manufacturer. I have to admire Intel's knowledge and planning ability in CPU technology. It is worthy of being a giant in the computer industry.

Reference address:Comparison between 51 MCU, AVR and PIC MCU

Previous article:How to use C code to control LED flashing in PIC microcontroller
Next article:How to switch from assembly to PICC

Recommended ReadingLatest update time:2024-11-16 13:55

51 single chip microcomputer drives passive buzzer
During the learning process, I encountered the following example: 8 light-emitting tubes flow from top to bottom at intervals of 1 second, where each tube is on for 500ms and off for 500ms. The buzzer sounds when it is on and turns off when it is off, and this process repeats continuously. The program of the running l
[Microcontroller]
How is the 51 single-chip microcomputer minimum system constructed?
Before understanding the principle, let us first think about a question, what is a single-chip microcomputer, and what is the use of a single-chip microcomputer? This is an interesting question, because no one can give a concept that is recognized by everyone, so what is a single-chip microcomputer? Generally speaking
[Microcontroller]
How is the 51 single-chip microcomputer minimum system constructed?
51 single chip simple waveform generator (sine wave, sawtooth wave, triangle wave)
The following is the source code of the simple waveform generator of 51 single-chip microcomputer: #include AT89X52.h #include math.h #define ADDR1 0x2c //MAX5820LEUA sbit key_sin=P1^0; sbit key_tran=P1^2; sbit key_tooth=P1^4; sbit SCL = P2 ^ 0; sbit SDA = P2 ^ 1; unsigned char code sin = //sine table      
[Microcontroller]
51 single chip simple waveform generator (sine wave, sawtooth wave, triangle wave)
AVR Learning Notes--Use of Infrared Remote Control Receiver
At present, most of the infrared receivers are integrated, which integrate the infrared receiving diode, amplification, demodulation, shaping and other circuits, and have only three pins, namely +5V power supply, ground, and signal output. Therefore, you only need to care about the output encoding format of the receivi
[Microcontroller]
Design of formaldehyde concentration detector based on 51 microcontroller
1. System Overview The modules used in the system include AT89C51 microcontroller + LCD1602 display + ADC0832 (simulating MQ-4 to detect formaldehyde concentration value) + buzzer alarm + small light + button. This design uses 51 microcontroller as the core control, and uses LCD1602 to display the formaldehyde conce
[Microcontroller]
Design of formaldehyde concentration detector based on 51 microcontroller
STC89LE516AD MCU A/D conversion function program
The STC89LE52AD, 54AD, 58AD, and 516AD 89 series STC microcontrollers have 8-channel 8-bit AD converters distributed on the 8 bits of port P1. When the clock is below 40MHz, an AD conversion can be completed every 17 machine cycles. Several registers related to AD are shown in Table 1. Table 1 STC89 series MCU AD rela
[Microcontroller]
AVR MCU decrypted fuse configuration
There are multiple groups of fuses related to device configuration and operating environment inside the AVR microcontroller. These fuses are very important. Users can set and configure the fuses to make the AVR microcontroller have different local characteristics to be more suitable for practical applications. Howe
[Microcontroller]
51 microcontroller learning: ADC analog-to-digital conversion experiment-photoresistor AD acquisition
Experiment name: ADC analog-to-digital conversion experiment - Photoresistor AD acquisition wiring description: Experimental phenomenon: After downloading the program, the digital tube displays the AD value of the AD module collecting the photoresistor. Notes: ************* ********************************************
[Microcontroller]
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号