The AVR Microcontroller History and Features n n

  • Slides: 28
Download presentation
The AVR Microcontroller: History and Features

The AVR Microcontroller: History and Features

? ? ? n n Microprocessors (CPU) vs Microcontrollers (MCU) ? ? ?

? ? ? n n Microprocessors (CPU) vs Microcontrollers (MCU) ? ? ?

CPU vs. MCU n Microprocessor q q q n No RAM, ROM, I/O Ports

CPU vs. MCU n Microprocessor q q q n No RAM, ROM, I/O Ports on chip itself e. g. Pentium (Intel), Power. PC (Motorola), Spark (SUN) Applications: Desktop, Laptop, workstations, Servers Microcontroller q q q Microprocessor, RAM, ROM, timers, I/O Ports on a single chip. 8051(Intel), 68 HC 08 (Motorola), AVR (Atmel), Z 8 (Zilog), PIC (Microchip), ARM (Advanced RISC Machine). Application: TV Remote Control, video games, robots,

CPU vs. MCU

CPU vs. MCU

Most common MCU/CPU n 8 -bit MCU q q q n 16 -bit MCU/CPU

Most common MCU/CPU n 8 -bit MCU q q q n 16 -bit MCU/CPU q q n AVR PIC 8051 8086/186/96/196 68 HC 12/16 32 -bit MCU q q ARM PIC 32

8 -bit Microcontrollers

8 -bit Microcontrollers

? ? ? n Embedded Systems ? ? ?

? ? ? n Embedded Systems ? ? ?

Embedded Systems n n n An embedded system is controlled by its own internal

Embedded Systems n n n An embedded system is controlled by its own internal microprocessor (or microcontroller) as opposed to an external controller. A PC is connected to various embedded products such as keyboard, printer, modem, disk controller, sound card, CD-ROM driver, mouse and so on. a printer gets data and prints it. A mouse takes coordinates and sends to the PC.

Embedded Products n Computing q q q PC Notebook Laptop Storage Color printer Laser

Embedded Products n Computing q q q PC Notebook Laptop Storage Color printer Laser printer Modem Cable modem Copier Scanner Digital camera n Cars q q q q q Anti-lock breaks Air bags Engine Control Transmission Control Climate control Collusion avoidance Navigation Trip Computer Instrumentation Keyless entry n Communications q q q n Wire-line Phone Cellular Phones PDA Pager Fax machine Intercom Cards q q Banking Electronic Purse Social Security Tolls

Embedded Products n Consumer q q q q q n VCR, CD Video games

Embedded Products n Consumer q q q q q n VCR, CD Video games DVD Player Stereo Smoke alarm Camera Remote Control Garage Door Opener Security System Consumer q q q Toys Answering machine Camcorder Musical Instruments Sewing Machine Exercise equipment n Connectivity q q Cable TV Cable Modem Router Hub

Choosing a microcontroller n n n n Speed: What is the highest speed a

Choosing a microcontroller n n n n Speed: What is the highest speed a microcontroller supports? Packaging: Is it DIP (dual inline package) or a QFP (quad flat package) or some other type? Power Consumption: Critical for battery powered products. The amount of RAM and ROM on chip The number of timers and I/O pins on chip Cost per unite Availability of Compiler, Simulator, Debugger. Availability of chip in market

The AVR microcontroller Family n n n The basic architecture of AVR was designed

The AVR microcontroller Family n n n The basic architecture of AVR was designed by two students of Norwegian Institute of Technology (NTH), Alf-Egil Bogen and Vegard Wollan, and then was bought and developed by Atmel in 1996. The AVR stands for Advanced Virtual RISC, or Alf and Vegard RISC. The AVR is an 8 -bit RISC single-chip microcontroller with Harvard architecture.

RISC and CISC (Complex Instruction Set Computer) n q q A large number of

RISC and CISC (Complex Instruction Set Computer) n q q A large number of instructions, typically from 100 to 250 instructions Some instructions that perform specialized task and are used infrequently A large variety of addressing modes, typically from 5 to 20 different modes Variable-length instruction formats RISC (Reduced Instruction Set Computer) n q q q Relatively few instructions Relatively few addressing modes Fixed-length, easily decoded instruction format

Harvard and von Neumann Architecture n von Neumann (Princeton) architecture. q q The same

Harvard and von Neumann Architecture n von Neumann (Princeton) architecture. q q The same bus is used for accessing both the code and data Pentium Processor is based on von Neumann Architecture Harvard architecture n q q Separate buses are used for accessing the code and data memory. That means that we need four sets of buses: 1. 2. 3. 4. q A set of data buses for carrying data into and out of the CPU, A set of address buses for accessing the data, A set of data buses for carrying code into the CPU, and An address bus for accessing the code This is easy to implement inside an IC chip such as a microcontroller where both ROM code and data RAM are internal (on-chip) and distances are on the micron and millimeter scale

The AVR microcontroller Family The Simplified view of an AVR Microcontroller

The AVR microcontroller Family The Simplified view of an AVR Microcontroller

The AVR Family n n n The AVR can be classified into four groups:

The AVR Family n n n The AVR can be classified into four groups: Classic, Mega, Tiny, and special purpose. Classic AVR (AT 90 Sxxxx) This is the original AVR chip, which has been replaced by newer AVR chips. These are not recommended for new designs. Mega AVR (ATmegaxxxx) These are powerful microcontrollers with more than 120 instructions and lots of different peripheral capabilities, which can be used in different designs. Some of their characteristics are as follows: q Program memory: 4 K to 256 K bytes q Package: 28 to 100 pins q Extensive peripheral set q Extended instruction set: They have rich instruction sets.

The AVR Family

The AVR Family

The AVR Family n Tiny AVR (ATtinyxxxx) This group have less instructions and smaller

The AVR Family n Tiny AVR (ATtinyxxxx) This group have less instructions and smaller packages in comparison to mega family. You can design systems with low costs and power consumptions using the Tiny AVRs. Some of their characteristics are as follows: q q n Program memory: IK to 8 K bytes Package: 8 to 28 pins Limited peripheral set Limited instruction set: The instruction sets are limited. For example, some of them do not have the multiply instruction. Special purpose AVR The ICs of this group can be considered as a subset of other groups, but their special capabilities are made for designing specific applications. Some of the special capabilities are: USB controller, CAN controller, LCD controller, Zigbee, Ethernet controller, FPGA, and advanced PWM.

The AVR Family Embedded Systems

The AVR Family Embedded Systems

AVR different groups n Classic AVR q n Mega q n e. g. ATmega

AVR different groups n Classic AVR q n Mega q n e. g. ATmega 8, ATmega 32, ATmega 128 Tiny q n e. g. AT 90 S 2313, AT 90 S 4433 e. g. ATtiny 13, ATtiny 25 Special Purpose AVR q e. g. AT 90 PWM 216, AT 90 USB 1287

AVR different groups

AVR different groups

AVR different groups

AVR different groups

AVR different groups

AVR different groups

Let’s get familiar with the AVR part numbers ATmega 128 Atmel ATtiny 44 Atmel

Let’s get familiar with the AVR part numbers ATmega 128 Atmel ATtiny 44 Atmel Tiny group Flash =4 K group Flash =128 K AT 90 S 4433 Atmel Classic group Flash =4 K