Analysis of the advantages and disadvantages of AVR microcontrollers with unique technology and comprehensive advantages

Publisher:星光曲折Latest update time:2014-01-16 Source: 电源网Keywords:AVR Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

AVR microcontroller is an enhanced RISC (Reduced Instruction Set CPU) high-speed 8-bit microcontroller with built-in Flash developed by ATMEL in 1997. AVR microcontrollers can be widely used in various fields such as computer peripherals, industrial real-time control, instrumentation, communication equipment, and household appliances.

Features and advantages of AVR microcontroller

High reliability, powerful functionality, high speed, low power consumption and low price have always been important indicators for measuring the performance of microcontrollers, and are also necessary conditions for microcontrollers to occupy the market and survive.

The early single-chip microcomputers adopted a safe solution mainly due to the low level of technology and design, high power consumption and poor anti-interference performance: using a higher frequency division coefficient to divide the clock, which makes the instruction cycle long and the execution speed slow. Although the later CMOS single-chip microcomputers adopted measures such as increasing the clock frequency and reducing the frequency division coefficient, this situation has not been completely changed (51 and 51 compatible). Although some reduced instruction set microcontrollers (RISC) have been introduced, they still follow the practice of clock division.

The introduction of AVR microcontrollers completely broke this old design pattern, abolished the machine cycle, abandoned the practice of complex instruction computers (CISC) to pursue complete instructions; adopted a reduced instruction set, using words as the unit of instruction length, and arranged rich operands and operation codes in one word (most of the single-cycle instructions in the instruction set are like this), with a short instruction fetch cycle, and can pre-fetch instructions to achieve pipeline operation, so instructions can be executed at high speed. Of course, this speed jump is backed by high reliability.

The hardware structure of AVR microcontroller adopts a compromise strategy between 8-bit and 16-bit machines, that is, a local register storage stack (32 register files) and a single high-speed input/output solution (i.e. input capture register, output comparison match register and corresponding control logic). It improves the instruction execution speed (1Mips/MHz), overcomes the bottleneck phenomenon, and enhances the function; at the same time, it reduces the cost of peripheral management, relatively simplifies the hardware structure, and reduces the cost. Therefore, AVR microcontroller has achieved an optimized balance in software/hardware cost, speed, performance and cost, and is a cost-effective microcontroller.

AVR microcontrollers have built-in high-quality Flash program memory, which is easy to erase and write, supports ISP and IAP, and is convenient for product debugging, development, production, and updating. The built-in long-life EEPROM can store key data for a long time to avoid power loss. The large-capacity RAM on the chip can not only meet the use of general occasions, but also more effectively support the use of high-level languages ​​to develop system programs, and can expand external RAM like the MCS-51 microcontroller.

All I/O lines of AVR microcontrollers have configurable pull-up resistors, can be individually set as input/output, can be set (initial) high-impedance input, and have strong driving capabilities (power driver devices can be omitted), making the I/O port resources flexible, powerful, and fully utilized.

AVR microcontrollers have multiple independent clock dividers for URAT, I2C, and SPI. Among them, the pre-divider with up to 10 bits in combination with the 8/16-bit timer can provide various levels of timing by setting the frequency division coefficient through software. The unique design method of AVR microcontrollers, "using timer/counter (single) bidirectional counting to form a triangular wave, and then cooperating with the output comparison matching register to generate a square wave with variable duty cycle, variable frequency, and variable phase (i.e. pulse width modulation output PWM)", is even more refreshing. The enhanced high-speed synchronous/asynchronous serial port has functions such as hardware generation of checksum, hardware detection and check error detection, two-level receiving buffer, automatic baud rate adjustment positioning (when receiving), and shielding of data frames, which improves the reliability of communication, facilitates program writing, and is more convenient for forming distributed networks and realizing complex applications of multi-machine communication systems. The serial port function greatly exceeds that of MCS-51/96 microcontrollers. In addition, the AVR microcontroller is high-speed and has a short interrupt service time, so high baud rate communication can be achieved.

Byte-oriented high-speed hardware serial interface TWI, SPI. TWI is compatible with I2C interface, and has functions such as ACK signal hardware transmission and recognition, address recognition, bus arbitration, etc., and can realize multi-machine communication of all 4 combinations of master/slave receiving/transmitting. SPI supports multi-machine communication of 4 combinations such as master/slave.

The AVR microcontroller has an automatic power-on reset circuit, an independent watchdog circuit, a low voltage detection circuit BOD, multiple reset sources (automatic power-on and power-off reset, external reset, watchdog reset, BOD reset), and a programmable delay after startup, which enhances the reliability of the embedded system.

AVR microcontrollers have multiple power-saving sleep modes and can operate in a wide voltage range (5-2.7V). They have strong anti-interference capabilities and can reduce the software anti-interference design workload and hardware usage in general 8-bit machines.

AVR single-chip microcomputer technology embodies the integration of multiple devices (including FLASH program memory, watchdog, EEPROM, synchronous/asynchronous serial port, TWI, SPI, A/D analog-to-digital converter, timer/counter, etc.) and multiple functions (reset system for enhanced reliability, sleep mode for reduced power consumption and anti-interference, interrupt system with a wide variety of categories, timer/counter with diversified functions such as input capture and compare match output, I/O port with replacement function...), which fully reflects the development direction of single-chip microcomputer technology from "self-operating" to "system on chip SoC".

In summary, AVR microcontrollers are well-rounded and have unique technology, making them the best among 8-bit machines. AVR microcontrollers are complete and can be applied to various occasions. AVR microcontrollers have three grades:

Low-end Tiny series AVR MCU: mainly Tiny11/12/13/15/26/28, etc.;

Mid-range AT90S series AVR MCU: mainly AT90S1200/2313/8515/8535, etc. (being phased out or transitioning to Mega)

High-end ATmega series AVR microcontrollers: mainly include ATmega8/16/32/64/128 (storage capacity is 8/16/32/64/128 KB) and ATmega8515/8535, etc.

AVR device pins range from 8 to 64 pins, and there are various packages to choose from.

Keywords:AVR Reference address:Analysis of the advantages and disadvantages of AVR microcontrollers with unique technology and comprehensive advantages

Previous article:See how the single-chip microcomputer reset circuit can help the microcomputer system stand out
Next article:Design of Display Panel for CAN Bus of AVR Single Chip Microcomputer

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

PIC microcontroller learning independent buttons
Hardware circuit: independent button connected to RA5 Effect: Make the LED at port RD0 light up when the independent button is 0. Note: The default state of PORTA is not a digital IO port, we need to configure it as a digital IO port. This involves the ADCON1 register. //Basic application of buttons Independent
[Microcontroller]
Introduction to the principle and structure of 8051 series microcontrollers
A microcontroller is a control chip, a microcomputer, and with the addition of crystal oscillator, memory, address latch, logic gate, seven-segment decoder (display), buttons (similar to a keyboard), expansion chip, interface, etc., it is a microcontroller system, the following is a basic introduction to the principle
[Microcontroller]
Introduction to the principle and structure of 8051 series microcontrollers
Design of automatic metering feeding system based on single chip microcomputer 8031
  1 Introduction   In order to increase the proportion of domestic equipment, save foreign exchange, facilitate maintenance and ensure production, this paper, at the request of the manufacturer, has developed an embedded microcomputer automatic metering and feeding system based on 8031 ​​on the basis of a thorough
[Microcontroller]
Design of automatic metering feeding system based on single chip microcomputer 8031
Hands-on teaching of 51 single chip microcomputer | 1602 LCD
For components like this that contain chips, the most important thing is to learn how to understand the pin functions of the chip, rather than to memorize the statements of the chip. The same components from different manufacturers have slight differences, so when purchasing such things, ask the manufacturer for a chi
[Microcontroller]
Hands-on teaching of 51 single chip microcomputer | 1602 LCD
51 single chip microcomputer course design - LED dot matrix billboard program design
The final assignment for last semester was LED dot matrix billboards. The requirements were as follows: (1) LED dot matrix billboards capable of displaying different characters; (2) Press buttons to switch between different display effects (such as flashing, still, panning, etc.); (3) Press the button to switch differ
[Microcontroller]
51 single chip microcomputer course design - LED dot matrix billboard program design
51 MCU UART communication sends and receives numbers, letters and Chinese characters, and controls the LED on and off
1. Receive what you send /* Project creation MCU selection, Atmel 89C55 MCU: STC12C5A60S2 Crystal oscillator: 12M Function: Serial port application Baud rate: 4800 8 None 1 None */ #include REG51.h // You can use the general header file //Serial port interrupt initialization program void UART_init(void){
[Microcontroller]
51 MCU UART communication sends and receives numbers, letters and Chinese characters, and controls the LED on and off
Design of infrared communication interface in single chip microcomputer system
In many application systems based on single-chip microcomputers, the system needs to realize remote control function, and infrared communication is a method that is widely used. The remote control protocols on the market are generally simple, not very confidential, and have weak anti-interference capabilities. Here, we
[Microcontroller]
Low-power system design based on Atmega48 microcontroller
With the development of microelectronics and computer technology, especially the widespread application of microcomputers in various fields, indicators such as power consumption, cost, volume, and reliability have become important issues that designers are concerned about. Especially in battery-powered devices, how to
[Microcontroller]
Latest Power Management Articles
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号