What are the advantages of AVR microcontrollers?[Copy link]
Selected from the AVR seminar speech outline! Shuanglong Lao Geng (1) Why choose AVR microcontroller? Flash program memory can be erased and written more than 1,000 times, and no scrapped products will be produced. Some PICs are OTP and can only be burned once. AVR program memory data is organized as 16 bits, and can also be understood as 8 bits. PIC is a 12/14-bit program memory, which brings inconvenience to register transfer and arithmetic and logical operations. (2) Why choose AVR microcontroller? High speed (50ns), low power consumption! The hardware uses Harward structure and has a pre-fetch instruction function, so that instructions can be executed within one clock cycle. PIC takes 4 clock cycles to execute an instruction. MSC-51 takes 12 clock cycles to execute an instruction. (3) Why choose AVR microcontroller? Super-function and streamlined instructions! It has 32 general working registers (equivalent to the 32 accumulators in 8051, overcoming the bottleneck phenomenon caused by single accumulator data processing), 128B~4KB SRAM, and can flexibly use instruction operations. (4) Why choose AVR microcontroller? Industrial-grade product! It has a large current (sink current) of 10-20mA or 40mA (single output), which can directly drive SSR or relay; it has a watchdog timer (WDT) for safety protection, preventing the program from running away, and improving the product's anti-interference ability. (5) Why choose AVR microcontroller? Program writing can be written in parallel (using a universal programmer), or it can be erased using a serial online ISP. In other words, there is no need to remove the IC and burn it on a universal programmer, but you can directly perform program modification and burning operations on the circuit board, which is convenient for product on-site upgrades. It has ISP, JTAG and self-editing functions, which is the future development direction of microcontroller programming. (6) Why choose AVR microcontroller? The I/O port of AVR is a real I/O port, which can correctly reflect the actual situation of the I/O port. The I/O port has input/output, tri-state high-impedance input, and can also set the internal pull-up resistor as the input terminal function, which is convenient for various application characteristics (multi-function I/O port) (7) Why choose AVR microcontroller? High confidentiality (LOCK)! - Unbreakable Lock bit technology - Unlike Mask ROM, which can be cracked by electron microscope - Flash unit is hidden deep inside the chip - Flash that can be burned multiple times and has multiple password protection lock (LOCK) functions, so the product can be commercialized quickly, and the program can be changed multiple times (product upgrade) without wasting IC or circuit board, greatly improving product quality and competitiveness. (8) Why choose AVR microcontroller? AVR has an analog comparator inside, and the I/O port can be used for A/D conversion, which can form a cheap A/D converter. (9) Why choose AVR microcontroller? Resetable startup reset. The AVR series has an internal power switch to start the counter, and the low level reset (/RESET) can be directly connected to the Vcc terminal. When the power is turned on, the MCU can delay the start of the execution program due to the use of the internal RC watchdog timer. This delay allows the I/O port to stabilize before executing the program, thereby improving the reliability of the microcontroller. Some also have an internal reset voltage detection circuit BOD, and the detection voltage is adjustable. (10) Why choose an AVR microcontroller? It has a power-saving function (POWER DOWN) and an idle (IDLE) low-power function. The general power consumption is 1 to 2.5 mA, and the typical power consumption is 100 nA when the WDT is turned off. (11) Why choose an AVR microcontroller? Like the 8051, it has multiple fixed interrupt vector entry addresses, which can quickly respond to interrupts. However, the PIC has only one interrupt entry, and it must be queried before responding to the interrupt, which loses the best response interrupt time. (12) Why choose an AVR microcontroller? Some AVR devices such as AT90S1200/2343/ATtiny15 have an internal RC oscillator-1MHz operating frequency, which makes this type of microcontroller work without external components. It is just a chip, which is simple and convenient, and it is even better to use it as an encryption device. (13) Why choose AVR microcontroller? Counter/timer, C/T has 8-bit and 16-bit, can be used as comparator; counter external interrupt and PWM (can also be used as D/A) are used to control output, some have 3-4 PWM, it is an ideal device for stepless motor speed regulation. (14) Why choose AVR microcontroller? It has serial asynchronous communication UART interface, does not occupy timer and SPI transmission function, because of its high speed, it can work at general standard integer frequency, and the baud rate can reach 576K. (15) Why choose AVR microcontroller? AT90S4414/AT90S8515 has expandable external data memory up to 64KB. Their pin arrangement and functions are similar to 8051, and can replace the application system of 8051 series microcontroller (8751 or 8752). Only the reset level is different, just swap the reset resistor and capacitor position. Many new functions are added, such as WDT, A/D, PWM, etc. (16) Why choose AVR microcontroller? The operating voltage range is wide (2.7~6.0V), and the power supply has strong anti-interference ability. AT90LXX is a low-voltage device (2.7~6.0V), AT90SXX voltage is (4.0~6.0V), and the lowest device ATtiny12 has reached 1.8V~5.5V. (17) Why choose AVR microcontroller? AT90S4434/8535 has 8-channel 10-bit A/D; AT90S2333/4433 has 6-channel 10-bit A/D; the more powerful ATmega103/128 has Flash 128KB, EEPROM 4KB, RAM 4KB, 48 I/O ports, 16 interrupt sources, 8 external interrupts, SPI, UART, 8-channel 10-bit A/D, ISP. (18) Why choose AVR microcontroller? It has a large capacity EEPROM that can be erased and written 100,000 times, which is convenient for data preservation after power failure. After power is restored, it can remember the working state when power is off. EEPROM (64B~4KB). (19) Why choose AVR microcontroller? The new high-end AVR ATmega16/32/64/128 also has JTAG boundary scan, simulation, and programming functions, which will not cause the previous phenomenon of passing simulation but failing offline. (20) Why choose AVR microcontroller? AVR microprocessor---can program itself. ATmega161 is designed for ease of use – No external devices are required to write new code – Small sectors: 128 bytes – Boot area is variable – Read-While-Write technology – Reduce programming time – Hardware-controlled programming method – Opens the door to a new world – Programming through any interface (parallel programmer, ISP, JTGA, UART, self-programming) – Repeated programming without external devices – 100% secure remote encryption update method (21) Why choose AVR microcontroller? From the high-level language C code, see the performance comparison of various microcontrollers: Take a small C function as an example: /* Return the maximum value of a table of 16 integers */; Return the maximum value of a table of 16 integers int max(int *array); array *array { char a; int maximum="-32768"; maximum = -32768 for (a=0;a<16;a++) if (array[a]>maximum) maximum = array [a]; return (maximum); return} Performance comparison: AT90S8515 8 MHz 80C51 24 MHz 68HC11A8 12 MHz PIC16C74 20 MHz Compilation results Conclusion: 8 MHz AVR —— 224 MHz 80C51 HC11: High code efficiency, but the processing power is only 1/10 of AVR, and the power consumption is 2.5 times higher PIC is fast, but the performance of AVR is 3.5 times higher than that of AVR at the same power consumption (22) Why choose AVR microcontroller? AVR uses many powerful high-level languages ● IAR AVR C compiler The compiler is designed synchronously with AVR and supports C and EC++,The Demo version only generates debug files. ● ICC AVR C compiler supports devices without SRAM; adds software modules; Icc Demo version is the full version for 30 days, and after 30 days it will be converted to a 2KB version. Ssangyong is the exclusive agent of Icc. ● Code Vision AVR C compiler has software modules, and the Demo version is limited to 2KB version. ● GNU C compiler is a free version of the User Alliance, and the upgrade is slow. ● BASCOM-AVR Demo version is limited to 2KB version (23) Why choose AVR microcontrollers? AVR has various grades of development tools Evaluation tools – AVR Studio – STK500 – SL-MEGA/SL-AVR/SL-AVRS (developed by Ssangyong) – GNU GCC compiler High-performance development tools – AVR Studio – STK500/SL-AVRL – ICE10 / ICE30/ICE200 – IAR C Low-cost development tools – AVR Studio – SL-MEGA/SL-AVR/SL-AVRS – SL-AVRL – ICE200 / JTAGICE – Imagecraft C (23) Why choose AVR microcontroller? With the AVR foundation, we learn FPSLIC (=AVR+FPGA+SRAM) to enable my country's microcontroller development to enter chip-level development.
Our company is the general agent of Taiwan McCann MCU. MDT low-cost, high-performance 8-bit MCU adopts RISC structure, low power consumption, high-speed CMOS EPROM technology, fully compatible with PIC, strong anti-interference ability, wide temperature range, and is the most cost-effective MCU on the market. If you are interested in our products, please call us! The company undertakes various small household appliance control panels and smart appliances cases, free development, welcome to communicate! MDT MCU (full series): (Welcome to apply for free samples) MDT10P53 (Fully compatible with PIC12C508, PIC12C509) MDT10P55 (Fully compatible with PIC16C505) MDT2005 MDT10P05 MDT1005 (Fully compatible with PIC16C54) MDT2010 MDT10P10 MDT1010 (Fully compatible with PIC16C56) MDT2020 MDT10P20 MDT1020 (Fully compatible with PIC16C57) MDT2030 MDT1030 (Fully compatible with PIC16C58) MDT2051 MDT1051 (Fully compatible with PIC16C711) MDT2060 MDT1060 (Fully compatible with PIC16C61) MDT10P62 (PIN pin compatible, less I2C and post-scaler timer than PIC16C62) MDT10P64 (PIN pin compatible, less SCI than PIC16C64 and PIC16C64A) MDT10C65 (PIN pin compatible, 2 more I/O ports than PIC16C65 and PIC16C65A, no serial port, parallel port and CCP) MDT10P72 (PIN pin compatible, less I2C and SCI than PIC16C72) MDT10P73 (PIN pin compatible, less I2C and SCI than PIC16C73 and PIC16C73A) MDT10P74 (PIN pin compatible, less I2C than PIC16C74) MDT10F630 (compatible with PIC16F630)…… MDT10F676 ((compatible with PIC16F676) MDT10P712 (Compatible with PIC16F712) MDT10P716 (Compatible with PIC16F716) Replacement advantage: It is very simple to replace the PIC chip with the McCann microcontroller. No modification is required to the program or hardware, but 30-50% of the cost can be saved. Shenzhen Eshitong Technology Co., Ltd. Wu Yusheng 159 8933 8961 Fax 0755-83552524 QQ: 1413213000
Details
Published on 2011-3-2 17:21
The newly launched 90 series microcontrollers of ATMEL contain high-speed flash memory FLASH. They are microcontrollers based on the enhanced reduced instruction set CPU (RISC) structure, referred to as AVR microcontrollers. This series of microcontrollers has made significant improvements on the basis of absorbing the advantages of PIC and 8051 microcontrollers. Features of AVR microcontrollers 1. Fast speed AVR microcontrollers execute powerful instructions in a single clock cycle, and can achieve a processing capacity of stage MIPS per MHz. It is a Dacron 8-bit microcontroller 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 working registers. AVR uses 32 general 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, and the code efficiency is ten times faster than that of conventional CISC microcontrollers. AVR microcontroller executes one instruction in one clock cycle, that is, it fetches the next instruction while executing the previous instruction, and then executes the instruction in one cycle (similar to DSP). It is the first real RISC microcontroller among 8-bit microcontrollers. 2. High performance-price ratio AVR microcontrollers have both devices with fewer pins (8 pins) and devices with larger storage capacity and more pins, giving users ample choice. AVR microcontrollers use Harvard structure, the program memory and data memory are separate, and 8M bytes of program memory and 8M data memory can be directly accessed. AVR microcontrollers have rich internal resources. Includes: 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 comparator, timer/counter, programmable asynchronous serial port, internal and external interrupts, programmable watchdog timer with internal crystal oscillator, SPI serial port designed for downloading programs, 10-bit AD converter, and 2 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 reprogramming (ISP In-System Programming) function The AVR microcontroller has a downloadable FLASH memory, which can be reprogrammed in the system (ISP In-System Programming) through the SPI serial interface or a general programmer, which brings 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.
Our company is the general agent of Taiwan McCann MCU. MDT low-cost, high-performance 8-bit MCU adopts RISC structure, low power consumption, high-speed CMOS EPROM technology, fully compatible with PIC, strong anti-interference ability, wide temperature range, and is the most cost-effective MCU on the market. If you are interested in our products, please call us! The company undertakes various small household appliance control panels and smart appliances cases, free development, welcome to communicate! MDT MCU (full series): (Welcome to apply for free samples) MDT10P53 (Fully compatible with PIC12C508, PIC12C509) MDT10P55 (Fully compatible with PIC16C505) MDT2005 MDT10P05 MDT1005 (Fully compatible with PIC16C54) MDT2010 MDT10P10 MDT1010 (Fully compatible with PIC16C56) MDT2020 MDT10P20 MDT1020 (Fully compatible with PIC16C57) MDT2030 MDT1030 (Fully compatible with PIC16C58) MDT2051 MDT1051 (Fully compatible with PIC16C711) MDT2060 MDT1060 (Fully compatible with PIC16C61) MDT10P62 (PIN pin compatible, less I2C and post-scaler timer than PIC16C62) MDT10P64 (PIN pin compatible, less SCI than PIC16C64 and PIC16C64A) MDT10C65 (PIN pin compatible, 2 more I/O ports than PIC16C65 and PIC16C65A, no serial port, parallel port and CCP) MDT10P72 (PIN pin compatible, less I2C and SCI than PIC16C72) MDT10P73 (PIN pin compatible, less I2C and SCI than PIC16C73 and PIC16C73A) MDT10P74 (PIN pin compatible, less I2C than PIC16C74) MDT10F630 (compatible with PIC16F630)…… MDT10F676 ((compatible with PIC16F676) MDT10P712 (Compatible with PIC16F712) MDT10P716 (Compatible with PIC16F716) Replacement advantage: It is very simple to replace the PIC chip with the McCann microcontroller. No modification is required to the program or hardware, but 30-50% of the cost can be saved. Shenzhen Eshitong Technology Co., Ltd. Wu Yusheng 159 8933 8961 Fax 0755-83552524 QQ: 1413213000