Professional Documents
Culture Documents
Introduction To Microprocessors 2019-1
Introduction To Microprocessors 2019-1
Microprocessors
(2 0 3 3 units)
Prof G. A. Chukwudebe
Course Content
• Introduction to Microprocessors and Microcomputers.
• Basic architecture of the 8 bit Microprocessor, the Intel 8085/86
and the Motorola 6800 and 68000;
• Instruction set and addressing scheme. Microprogramming and
Assembly language instructions.
• Interfacing to the real world and embedded system design with
microcontrollers.
Background
• The advent of low-cost computers and integrated circuits has
transformed modern society.
• General-purpose microprocessors in personal computers are used
for
computation,
text editing,
multimedia display,
communication over the Internet, etc.
• Many more microprocessors are part of embedded systems,
providing digital control of a myriad of functions:
Home appliances
automobiles
cellular phones
industrial process control, etc.
HISTORICAL DEVELOPMENT OF COMPUTERS
• First Generation Computers
ENIAC and UNIVAC were built with vacuum tubes in the 1940s.
Their power consumption was high and their reliability was very poor.
They were also very expensive.
memory elements
and input/output ports for Von Neumann Architecture
interfacing to the peripherals
Von Neumann contribution-
• Early computer programs were hard wired.
• To reprogram a computer meant changing the hardware switches manually,
that took a long time with potential errors.
• Computer memory was only used for storing data.
• John von Neumann suggested that data and programs should be stored
together in memory.
• Programs are fetched from memory for execution by a central unit that we
call the CPU.
• Basically programs and data are represented in memory in the same way.
• Many DSPs are modified Harvard architectures, designed to simultaneously access three
distinct memory areas:
• the program instructions, the signal data samples, and the filter coefficients (often called
the P, X, and Y memories).
• In theory, such three-way Harvard architectures can be three times as fast as a Princeton
architecture that is forced to read the instruction, the data sample, and the filter
coefficient, one at a time.
• In Princeton architecture systems, there is only one memory area. Any particular memory
location that can be written to and read as data at any one time can also be executed as
an instruction at other times.
Non-von Neumann architectures use more
than one processor eg
• Systolic Array- Single Instruction Multiple Data (SIMD)
• MIMD- Multicore
• Manycore
• Control bus.
DATA DATA
• Data bus.
• Address bus. D A C
• Thus communication
D O
A D N
T R T
E R
CPU - Microprocessor
A microprocessor system?
• Microprocessors are powerful pieces of
hardware, but not much useful on their own
• A microprocessor system is
• microprocessor plus all the components it
requires to do a certain task.
• A microcomputer is an example of a
microprocessor system.
The Microprocessor?
• CPU integrated on a chip
• Most of the size of an IC comes form the pins and packaging; the
actual Silicon occupies a very small piece of the volume.
• The first microprocessor to make a real splash in the market was the
Intel 8088, introduced in 1979 and incorporated into the IBM PC
(which first appeared around 1982).
• The PC market moved from the 8088 to the 80286 to the 80386 to the
80486 to the Pentium, Pentium Pro to the Pentium II to the Pentium
III to the Pentium 4.
Types of Microprocessors ctd
• All of these microprocessors are made by Intel and all of them are
improvements on the basic design of the 8088.
• The Pentium 4 can execute any piece of code that ran on the original 8088,
but it does it about 5,000 times faster!
• 8008
• 8080,
• 8085,
• 8086,
• 80125,
• 80286,
• 80386,
• 80486,
• 80586,
• PentuimPro,
• Pentium I, II, III & IV, Itanium.
Other microprocessors
• Zilog Z80 (1976),
• Motorola 6800 was released August 1974 and the similar MOS
Technology 6502.
• 68000
Inside an 8 bit Microprocessor
Arithmetic and Logic Unit (ALU):
• The ALU performs the numerical
calculations and comparative logic
functions, including all add, subtract, INSTRUCTION REGISTER
divide, multiply, equal to, greater than, A Register
less than, and other arithmetic and logic INSTRUCTION DECODER 8 bits.
operations. B Register C Register
functions Control
8 bits. 8 bits.
8 bits. 8 bits.
D Register E Register
Control ALU
8 bits.
H Register
8 bits.
L Register
Stack pointer
16 bits.
Program counter
16 bits.
PROCESSOR
cache
Packaging of microprocessors
• Dual in line packages -8080, 8086.
• Multicore designs
• A different approach to improving a computer's performance is to add extra
processors, as in symmetric multiprocessing designs, which have been popular in
servers and workstations since the early 1990s.
• A multi-core processor is simply a single chip containing more than one
microprocessor core.
• This effectively multiplies the processor's potential performance by the number of
cores (as long as the operating system and software is designed to take advantage of
more than one processor core).
• Some components, such as bus interface and cache, may be shared between cores.
• Because the cores are physically very close to each other, they can communicate with
each other much faster than separate processors in a multiprocessor system, which
improves overall system performance.
• In 2005, the first personal computer dual-core processors were announced.
• As of 2012, dual-core and quadcore processors are widely used in home PCs and
laptops while quad, six, eight, ten, twelve, and sixteen-core processors are common
in the professional and enterprise markets with workstations and servers.
• Sun Microsystems has released the Niagara and Niagara 2 chips, both of which feature
an eight-core design.
• The Niagara 2 supports more threads and operates at 1.6 GHz.
Microprocessor Memory
ROM chip
• ROM stands for read-only memory.
• A ROM chip is programmed with a permanent collection of
pre-set bytes. The address bus tells the ROM chip which byte
to get and place on the data bus.
RAM stands for random-access memory.
• contains bytes of information, and the microprocessor can
read or write to
• RAM chips are volatile- they forget everything once the power
goes off.
• There are two types
• DRAMs and SRAMS.
How Microprocessor uses the ROM
and RAM
• On a PC, there is a ROM BIOS (Basic Input/Output System).
• When the microprocessor starts, it begins executing instructions it
finds in the BIOS.
• The BIOS instructions do things like test the hardware in the
machine, and then it goes to the hard disk to fetch the boot sector
• This boot sector is another small program, and the BIOS stores it in
RAM after reading it off the disk.
• The microprocessor then begins executing the boot sector's
instructions from RAM.
• The boot sector program will tell the microprocessor to fetch
operating system from the hard disk into RAM, which the
microprocessor then executes, and so on.
• This is how the microprocessor loads and executes the entire
operating system.
Microprocessor Instructions
Examples of assembly language instructions:
• LOAD A mem - Load register A from memory address
• LOAD B mem - Load register B from memory address
• SAVE B mem - Save register B to memory address
• SAVE C mem - Save register C to memory address
• JUMP addr - Jump to an address
• JEQ addr - Jump, if equal, to address
• JNEQ addr - Jump, if not equal, to address
• STOP - Stop execution
General Purpose
• A general purpose processing unit, typically referred to as a
"microprocessor" is a chip that is designed to be
integrated into a larger system with peripherals and external RAM.
These chips can typically be used with a very wide array of software.
Application Specific Processors
A Digital Signal Processor -DSP
• A Digital Signal Processor, or DSP for short, is a chip that is specifically designed for fast
arithmetic operations, especially addition and multiplication.
• These chips are designed with processing speed in mind, and don't typically have the same
flexibility as general purpose microprocessors.
• DSPs also have special address generation units that can manage circular buffers, perform bit-
reversed addressing, and simultaneously access multiple memory spaces with little to no
overhead.
• They also support zero-overhead looping, and a single-cycle multiply-accumulate instruction.
• They are not typically more powerful than general purpose microprocessors, but can perform
signal processing tasks using far less power (as in watts).
Embedded Controller
• Embedded controllers, or "microcontrollers" are microprocessors with additional hardware
integrated into a single chip.
• Many microcontrollers have RAM, ROM, A/D and D/A converters, interrupt controllers, timers,
and even oscillators built into the chip itself.
• These controllers are designed to be used in situations where a whole computer system isn't
available, and only a small amount of simple processing needs to be performed.