Ch01 Microcontroller History and Features
Ch01 Microcontroller History and Features
Microprocessor
No RAM, ROM, I/O Ports on chip itself
e.g. Pentium (Intel), PowerPC (Motorola), Spark (SUN)
Applications: Desktop, Laptop, workstations, Servers
Microcontroller
Microprocessor, RAM, ROM, timers, I/O Ports on a single
chip.
8051(Intel), 68HC08 (Motorola), AVR (Atmel), Z8 (Zilog),
PIC (Microchip), ARM (Advanced RISC Machine).
Application: TV Remote Control, video games, robots,
General Purpose Microprocessors vs. Microcontrollers
Data BUS
General Serial
IO
Purpose RAM ROM Timer COM
Port
Micro Port
processor Address BUS
Control BUS
Serial
Timer I/O
Port
Microcontrollers
ARM , Motorola 68K, PowerPC, PIC32
8-bit Microcontrollers are 32-bit µC
Table 1-6: Some of the Companies that Produce Widely Used 8-bit Microcontrollers
Company Web Site Architecture
Atmel http://www.atmel.com AVR and 8051
Microchip http://www.microchip.com PIC16xxx/18xxx
Intel http://www.intel.com/design/mcs51 8051
Philips/Signetics http://www.semiconductors.philips.com 8051
Zilog http://www.zilog.com Z8 and Z80
Dallas Semi/Maxim http://www.maxim-ic.com 8051
Freescale Semi http://freescale.com 68HC11/HCS08
Table 1-7: Comparison of 8051, PIC18 Family and AVR (40-pin package)
Feature 8052 PIC18F452 ATmega32
Program ROM 8K 32K 32K
Data RAM (maximum space) 256 bytes 2K 2K
EEPROM 0 bytes 256 bytes 1K
Timers 3 4 4
I/O Pins 32 35 32
Embedded Systems
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
Computing Cars Communications
PC Anti-lock breaks Wire-line
Air bags Phone
Notebook
Engine Control Cellular
Laptop Phones
Storage Transmission
Control PDA
Color printer Climate control Pager
Laser printer Collusion Fax machine
Modem avoidance Intercom
Cable modem Navigation Cards
Copier Trip Computer Banking
Scanner Instrumentation Electronic
Keyless entry Purse
Digital camera
Social Security
Tolls
Embedded Products
Consumer Consumer Connectivity
VCR, CD Toys Cable TV
Video games Answering Cable Modem
machine Router
DVD Player Camcorder Switch
Stereo Musical Hub
Smoke alarm Instruments
Firewall
Sewing
Camera Machine
Remote Control Exercise
Garage Door equipment
Opener
Security System
Choosing a microcontroller
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
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
CISC(Complex Instruction Set Computer)
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
Harvard architecture
Code Data
Memory Memory
Data bus
CPU Address bus
Control bus
I/O
PINS
Package: 6 to 32 pins
AT32UC3L0256
ATtiny44
Atmel 32-bit
Flash =256K
Atmel group
Tiny Flash =4K
group