What is the relationship between AVR and Arduino? Analysis of the advantages of AVR microcontroller and Arduino

Publisher:TechWhizKidLatest update time:2020-01-11 Source: eefocusKeywords:avr  arduino Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

       Many times we can see that AVR and Arduino can appear almost at the same time, so what is the difference between them? This article mainly focuses on the differences and advantages between AVR and Arduino.

  AVR Introduction

  AVR microcontroller is an enhanced RISC (Reduced InstrucTIon Set Computer) 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. In 1997, Mr. A and Mr. V from Atmel's Norwegian Design Center jointly developed a RISC high-speed 8-bit microcontroller with reduced instruction set, referred to as AVR, using Atmel's new Flash technology.

What is the relationship between AVR and Arduino? Analysis of the advantages of AVR microcontroller and Arduino

  Features of avr microcontroller:

  1. Fast speed. AVR microcontrollers execute powerful instructions in a single clock cycle, and can achieve a processing capacity of 100 MIPS per MHz. They are the 8-bit microcontrollers with the highest MIPS/mW capability. AVR microcontrollers use large fast access register files and fast single-cycle instructions. Its fast access RISC register file consists of 32 general-purpose working registers. AVR uses 32 general-purpose registers to replace the accumulator, avoiding the traditional data transfer between the accumulator and the memory. It can execute one instruction in one clock cycle to access two independent registers. The code efficiency is ten times faster than that of conventional CISC microcontrollers. AVR microcontrollers execute one instruction in one clock cycle, that is, the next instruction is taken out when the previous instruction is executed, and then the instruction is executed in one cycle (similar to DSP). It is the first true RISC microcontroller among 8-bit microcontrollers.

  2. High performance-price ratio. AVR microcontrollers include devices with fewer pins (8 pins) and devices with larger storage capacity and more pins, giving users ample choice. AVR microcontrollers use Harvard structure, and the program memory and data memory are separate. You can directly access 8M bytes of program memory and 8M of data memory. AVR microcontrollers have rich on-chip resources. Including: 1K-128K bytes of downloadable Flash memory, 64-4K bytes of EEPROM, 128-4K bytes of RAM, 5-32 general I/O lines, 32 general working registers, analog comparators, timers/counters, programmable asynchronous serial ports, internal and external interrupts, programmable watchdog timers with internal crystal oscillators, SPI serial ports designed for downloading programs, 10-bit AD converters, and two selectable power-saving modes: idle mode and power-down mode. AVR microcontrollers have a high degree of confidentiality. The program memory FLASH has multiple password protection lock (LOCK) functions, and it is impossible to decrypt.

  3. In-System Programming (ISP In-System Programming) Function The AVR MCU has downloadable FLASH memory inside, which can be reprogrammed in the system (ISP In-System Programming) through the SPI serial interface or a general programmer, bringing great convenience to the development of new products and the upgrading and maintenance of old products.

  4. Wide operating voltage range (2.7-6V) and strong anti-interference ability. In short, the AVR microcontroller combines the enhanced performance RISC 8-bit CPU with the downloadable FLASH in one chip, making it an embedded and efficient microcontroller suitable for many requirements, with high flexibility and low cost.

What is the relationship between AVR and Arduino? Analysis of the advantages of AVR microcontroller and Arduino

  Advantages of avr microcontroller:

  1: AVR runs fastest under the same system clock;

  2: The capacity of Flsah, EEPROM and SRAM inside the chip is large;

  3: All models of Flash and EEPROM can be burned repeatedly, and all support online programming (ISP);

  4: Multiple frequency internal RC oscillators, power-on automatic reset, watchdog, start-up delay and other functions, zero peripheral circuit can also work; 5: Each IO port can output high and low levels in a push-to-switch drive mode, with strong driving ability;

  6: Rich internal resources, generally integrated AD, DA analog-to-digital devices; PWM; SPI, USART, TWI, I2C communication ports; rich interrupt sources, etc.

Keywords:avr  arduino Reference address:What is the relationship between AVR and Arduino? Analysis of the advantages of AVR microcontroller and Arduino

Previous article:Detailed explanation of avr shift algorithm
Next article:Power supply design based on AVR Butterfly

Recommended ReadingLatest update time:2024-11-15 07:27

Programmable digital potentiometer and AVR microcontroller communication instructions
1 Introduction   AVR embedded microcontrollers have rich hardware and software resources. The serial I2C interface can meet the requirements of many applications. Two AVR microcontrollers can communicate with each other by directly connecting them through the I2C bus. AVR microcontrollers can also be directly connec
[Microcontroller]
Programmable digital potentiometer and AVR microcontroller communication instructions
Definition and advantages and disadvantages of AVR microcontrollers
Introduction: What is an AVR microcontroller? What are the advantages of an AVR microcontroller? Why should you choose an AVR microcontroller? Let's learn about it together: What is an AVR microcontroller? What are the advantages of an AVR microcontroller? Why should you choose an AVR microcontroller? AVR microcontr
[Microcontroller]
AVR IO input chain key scanning program
System functions Connect 28 buttons to the 8 IOs of AVR and perform chain scanning. Once a button is pressed, an indication of the pressed button is given. hardware design For details about the I/O structure and related introduction of AVR, please refer to the Datasheet. Here we only briefly introduce some of them.
[Microcontroller]
AVR IO input chain key scanning program
AVR microcontroller control AC motor test program
MCU: at90s2313  Clock: 4MHz #include  avr/io.h   #include  avr/delay.h   #define uchar unsigned char  #define uint unsigned int #define SET_RED_LED PORTD|=_BV(5) //PD5接红色发光管  #define CLR_RED_LED PORTD&=~_BV(5)  #define SET_GRN_LED PORTD|=_BV(4) //PD4接绿色发光管  #define CLR_GRN_LED PORTD&=~_BV(4)  class  CC ontrol  {  publ
[Microcontroller]
AVR Timer Program
#include //header file interrupt void timer0(void) //Timer interrupt service function {     TCNT0=0xff; // Reset the initial value of TCNT0     PORTD.4 = ~PORTD.4; // PD4 reverse output } void main(void) {     DDRD=0XF0; //PD port direction register, high is output, low is input     PORTD=0XFF; //PD port dat
[Microcontroller]
AVR timer T0, T1, T2 initialization configuration and description
#include #include macros.h unsigned char shi,fen,miao; unsigned char t=0; #define DATA_T0_INIT 156 #define DATA_T1_INIT 31249 #define DATA_T2_INIT 156 unsigned int T0_CAPT=0; //T0/C0 overflow interrupt vector port #pragma interrupt_handler Timer0_over:iv_TIMER0_OVF    //T0/C0 compare match interrupt vector
[Microcontroller]
5. AVR timer/counter 1 fast PWM output (comparison output--fast PWM mode)
Fast PWM mode (WGM13:0 = 5, 6, 7, 14 or 15) can be used to generate high-frequency PWM waveforms. The difference between fast PWM mode and other PWM modes is its single-sided slope operation. The counter counts from BOTTOM to TOP, and then immediately returns to BOTTOM to restart. For the normal comparison output mode
[Microcontroller]
AVR IO usage notes
AVR's IO has three registers, DDRX, PORTX, and PINX. DDRX direction, DDRX=1, output; DDRX=0, input. For example, to set the PA0 port as input, you can write DDRA&=~(1 PORTX has two cases If DDR=1, that is, in output state, then the level of the IO port is changed by setting the value of PORTX If DDR=0, that
[Microcontroller]
Latest Microcontroller 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号