AVR Microcontroller : PinOut, Working & Its Applications
The advanced version of a microprocessor is a microcontroller that includes a CPU, Interrupts controller, RAM, ROM, I/O unit, etc. A microcontroller is mainly used for the operation of high-speed signal processing in an embedded system. So it performs like a major component while designing an embedded system. There are different kinds of microcontrollers available which are used based on requirements like 8051, PIC, AVR, etc. So this article gives brief information on one of the types of microcontrollers namely the AVR microcontroller.
AVR microcontroller was manufactured by Atmel Corporation in 1996 and its architecture was developed by “Alf-Egil Bogen & Vegard Wollan. The name of this microcontroller was taken from its developers namely Alf-Egil Bogen & Vegard Wollan RISC microcontroller. The first microcontroller based on AVR architecture is AT90S8515 but the first commercial microcontroller was AT90S1200.
What is AVR Microcontroller?
An advanced version of a microcomputer that is integrated into a tiny chip is known as the AVR microcontroller. This microcontroller includes a processor, programmable I/O peripherals & memory. The AVR microcontroller provides digital control over any kind of electrical, automotive, or mechanical system, industrial plants, different devices, electronic gadgets, etc. These microcontrollers are available in 8, 16, and 32-bit ICs. So, the most commonly used AVR microcontrollers are; ATmega8, ATmega16, ATmega32 & ATmega328 microcontrollers.
AVR Microcontrollers are available in 3 categories like TinyAVR, MegaAVR & XmegaAVR.
- TinyAVR microcontrollers are available in small sizes, have less memory & opt for only simpler applications.
- MegaAVR microcontrollers are very famous because they have upto 256 KB of memory, include a maximum number of peripherals & used in moderate to complex-based applications.
- XmegaAVR is frequently used for complex applications where high speed & large program memory is required.
Name of Series | Number of Pins | Flash Memory | Special Feature |
TinyAVR | 6 to 32 | 0.5 to 8KB | Tiny Size |
MegaAVR | 28 to 100 | 4 to 256KB | Extended Peripherals |
XmegaAVR | 44 to 100 | 16 to 384KB | Included DMA and Event System. |
AVR Microcontroller Features
The features of the AVR microcontroller include the following.
- Flash memory is 16KB. SRAM is 1KB.
- 10-bit •8-Channel ADC.
- EPROM is 512 Bytes.
- ISP or In-System Programmer.
- Serial USART.
- DIP package.
- 16-bit Timer or Counter -1.
- 8-bit Timers or Counters -2.
- Digital to Analog Comparator.
- Master or slave SPI serial interface.
- SPI Interface.
- It is available in 40-Pin.
- PWM Channels -4.
- Programmable serial USART.
- Programmable watchdog timer including separate on-chip oscillator.
- ARM CPU
Types of AVR Microcontroller
AVR microcontrollers are available in four types like ATmega8, ATmega16, ATmega32 & ATmega328 microcontrollers where each microcontroller and its function are discussed below.
Atmega8 AVR Microcontroller
This microcontroller is a 28-pin IC including Internal SRAM- 1KByte, flash memory-8kb, and two external interrupt support. This microcontroller is based on RISC architecture & it is designed by Microchip. This microcontroller is available in three packages PDIP, TQFP & MLF, wherever the first package includes 28 pins & the remaining two packages will be available with 32-pins on every module.
The Program memory or flash memory of this microcontroller is 8KB which is used for storing programming code & permanent settings. This microcontroller is used to make electrical and electronic projects.
Atmega16 AVR Microcontroller
This is a high-performance 8-bit microcontroller from the family of Atmel’s Mega AVR. This microcontroller includes 40 pins based on enhanced RISC architecture including 131 powerful instructions. So this is one of the most used & cheapest microcontrollers because it has several pins & features.
It has a programmable flash memory-16 KB, 1 KB of static RAM, and 512 Bytes of EEPROM. This type of microcontroller includes 32 general-purpose registers & an instruction set that are connected directly to the ALU & allowed 2- separate registers to be accessed within single instruction which is performed in a single CLK cycle.
The flash memory’s endurance cycle, as well as EEPROM, is about 10K & 100Krespectively. Most of the instructions in this microcontroller perform in a single machine cycle and it can work on 16MHz of maximum frequency.
The Atmega16 AVR microcontroller is used in commercial products, and small industrial machines, This microcontroller can also be used to measure the duty cycle and frequency of the external device..
Atmega32 AVR Microcontroller
The Atmega32 AVR microcontroller is a low-power, high-performance RISC-based microcontroller. This controller operates from 1.8 to 5.5 volts.
This microcontroller has different features like it combines 32 KB ISP flash memory with 1 KB-EEPROM, 2 KB-SRAM, read-while-write capabilities, general purpose Input/Output lines, general-purpose working registers-32, a JTAG interface for on-chip debugging or programming, 3- flexible timer/counters including compare modes, serial programmable USART, SPI serial port, internal & external interrupts, a USI (universal serial interface) with start condition detector, programmable watchdog timer including an internal oscillator, 10-bit 8-channel A/D converter, etc.
Atmega32 AVR microcontroller is used in motor control systems, DSP, peripheral Interface systems, temperature control systems, measuring analog signals, and different embedded systems like vending machines, coffee machines, etc
Atmega328 AVR Microcontroller
The Atmega328 AVR microcontroller is a high-performance and low-power 8-bit RISC-based microchip that simply combines 32 KB ISP Flash memory with read-while-write capabilities. The operating voltage of this AVR microcontroller ranges from 1.8 to 5.5 volts.
The main features of the Atmega328 AVR microcontroller mainly include EEPROM-1 KB, SRAM-2 KB, 32 general-purpose registers, 23-general purpose I/O lines, flexible timer or counters-3 including compare modes, serial programmable USART, internal & external interrupts, SPI serial port, a 2-wire serial interface, 10-bit 6-channel A/D converter, programmable watchdog timer including internal oscillator & five software selectable power saving modes.
The applications of the Atmega328 AVR microcontroller mainly include autonomous systems and different electronic projects where a low-powered, simple, low-cost microchip is required. This is the most popular AVR controller so it is used in Arduino development platforms like different ARDUINO boards like Arduino Uno, Arduino Nano & Arduino Pro Mini models.
AVR Microcontroller PinOut/PinDiagram
The AVR Atmega 32 microcontroller pin configuration is shown below. This microcontroller includes four ports port-A, port-B, port-C, and port-D. Port-A mainly includes pins from PA7to PA0, port-B includes PB7 to PB0, port-C includes from PC7 to PC0 and port-D includes from PD7 to PD0.
Comments
Post a Comment