Some opinions on the development of 51 and AVR microcontrollers

Publisher:第二眼帅哥Latest update time:2013-02-23 Source: 21IC Keywords:AVR Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

The chips I used before are: AT89C51, 2051, PIC16C711, 16F84, LPC76X, ADuC812/834

But after seeing AVR, I think AVR has many advantages:

1. With 10-bit A/D, it generally meets the basic requirements of industrial control;

2. With FLASH and EEPROM, especially EEPROM, logic bombs can be placed to prevent some people from using it without paying;

3. Few pins, no external expansion bus, and good anti-interference performance;

4. Easy to develop, low hardware cost (I now use assembly language, I don't use C language, C language is too slow for high-speed real-time control). Using assembly language, to write a more complex control program (such as a high-power welding equipment SCR voltage regulator controller), including key display, PID, trigger and protection, 4K*16 bits are enough. Even if you develop a very complex industrial control system, 16K*8 bits ATmega16 is more than enough. The key lies in whether your programming level is enough;

5. The encryption performance is relatively good;

6. The price is cheap. For high-power industrial control equipment (at least more than 10,000 yuan), that little cost is nothing at all;

7. I originally wanted to use uPD7810 or 68HC11A8, but the price of the development system was too high and I couldn't afford it. Besides, it would take you a few days to use it.

So, I am still using 51 now, mainly using software simulation and dedicated emulators together. I use software simulation for AVR because the JTAG port takes up too much resources, and modifying the program is not as quick and convenient as ISP.

AVR is the chip I want now. It has all the basic functions, no external bus, and the possibility of being cracked by others is much smaller than 51. I really can't stand the paging of PIC, it's really annoying. The operating temperature range of AVR can also meet my industrial control requirements. Therefore, now I continue to work on 51 while learning AVR.

For real industrial control, DSP is useless except for space vector transformation and complex signal solution, and it wastes money and national resources:) Moreover, it is not easy to process, and it is not cost-effective if the quantity is not large, so I don’t use 320LF3407/2812, ARM, etc.

To see whether a chip is useful, I think the following points should be considered:

1. Whether your product can meet the market demand;

2. The cost is relatively low;

3. Low development cost, including hardware cost and software cost;

4. Printed board design is easy;

5. Excellent encryption performance;

6. There is room for upgrading;

7. You can place logic bombs (no other way, it is suitable for China's national conditions where "the one who owes money is the father, and the one who collects the debt is the grandson");

8. The pin driving capability is large, and the number of external expansion devices can be minimized;

9. The development language can easily add software anti-interference and takes up less code resources;

10. Wide operating temperature range and strong power adaptability.

I am not developing a Mars rover or the Shenzhou spacecraft. At most, I have only been exposed to some simple equipment in military electronic equipment (not phased array radar fire control systems or sonar processing equipment), so there is no need for VXworks or uC-OSII or other "fancy" things. In fact, for a good assembly language system, program transplantation is not difficult to achieve as long as you modularize the program and carefully allocate resources. However, I have not seen any prawn who can directly transplant C51 to AVR. Transplantation often means compatibility with this series of chips, not with different MCUs. It may be unified in the future, but at least it is not unified now, so be patient, haha. Moreover, for a company of your own, for example, you used to make mobile phone chargers, and now you are suddenly asked to make 250KW high-power welding equipment. It seems that you can't get started without 3 to 5 years of experience, let alone make money. If you start a company or work for a company, if you do everything, you will definitely not be the best at anything, just like Haier Electric in China.

Therefore, I still use assembly language and still don't use C language. I am still engaged in high-power electronic equipment control. Although the development speed is slower (than C language), at least users will not return the goods I send. This is the law of survival in the market, not the law of survival for academic fraudsters.

Keywords:AVR Reference address:Some opinions on the development of 51 and AVR microcontrollers

Previous article:What kind of microcontroller is the most promising?
Next article:Performance comparison of AVR, C51 and PIC 8-bit microcontrollers

Recommended ReadingLatest update time:2024-11-16 16:33

How to design a portable thermostat based on 51 microcontroller
1. Function introduction This project uses Proteus8.12 to simulate 51 microcontroller controller, and uses alarm module, LCD1602 display module, DS18B20 temperature module, heating and cooling module, button module, HC05 Bluetooth module, etc. The main function: After the system is running, LCD1602 displays the te
[Microcontroller]
How to design a portable thermostat based on 51 microcontroller
stm32f030c8t6 MCU enters low power mode
1.   Sleep mode 2. Stop mode. In this mode, the IO pins maintain the level in the run state and the RAM remains unchanged. Therefore, before entering this state, configure the IO port first, otherwise there may be leakage current. 3. In standby mode, RAM is not retained, IO pins enter high impedance state, and activat
[Microcontroller]
#singlechip#ds18b20 unit conversion 30 degree alarm
#include "reg52.h" #define uchar unsigned char #define uint   unsigned int sbit DSPORT=P3^7; sbit key3 = P3^2; sbit beep = P1^0; uchar flag; int tmp; float t; uint warn_d = 300;   // upper temperature limit, the temperature is the value after multiplying by 10 uchar code table ={0xc0,0xf9,0xa4,0xb0,0
[Microcontroller]
PIC microcontroller AD to C conversion program sharing
The A/D converter is used to convert analog quantities into digital quantities through a certain circuit. Analog quantities can be electrical signals such as voltage and current, or non-electrical signals such as pressure, temperature, humidity, displacement, and sound. However, before A/D conversion, the input signal
[Microcontroller]
PIC microcontroller AD to C conversion program sharing
51 MCU Introduction VI: 1602 LCD Display
This section mainly introduces the 1602 LCD display, which displays "Hello, Welcome to my site, my friends.". The schematic diagram is as follows: The procedure is as follows: #include reg52.h #define uchar unsigned char #define uint unsigned int sbit RS=P3^0; //Data/command selection terminal (H/L) sbit EN=P3^2; /
[Microcontroller]
51 MCU Introduction VI: 1602 LCD Display
STM8 MCU software determines the reset source
Let me tell you about the port remapping of STM32 microcontroller. Here we take the remapping of USART1 as an example. There are many I/O ports on STM32, and there are also many built-in peripherals such as I2C, ADC, ISP, USART, etc. In order to save lead pins, these built-in peripherals basically share pins with I/
[Microcontroller]
51 Single Chip Microcomputer (Twenty-nine) - Matrix Keyboard Input Experiment
1. Introduction to the principle of matrix keyboard In the previous article, we introduced the use of independent keys. Independent keys require each key to use an IO port for reading. If there are many keys, more IO resources will be occupied. Using a matrix keyboard and scanning to read the keys is an effective way
[Microcontroller]
51 Single Chip Microcomputer (Twenty-nine) - Matrix Keyboard Input Experiment
Design of mobile power supply based on MC32P21 microcontroller
A mobile power bank is a portable charger that integrates power supply and charging functions. It can charge or power standby for mobile phones and other digital devices anytime and anywhere. It usually uses lithium batteries or dry batteries as power storage units. Different from the battery configured inside the pro
[Power Management]
Design of mobile power supply based on MC32P21 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号