Lec 2 - Introduction - MP
Lec 2 - Introduction - MP
Systems
By Dr Mir Yasir Umair
Associate Professor, MCS, NUST
Introduction to
Microprocessor
Lecture 02
Basic Concepts of
Microprocessors
• Differences between:
– Microcomputer – a computer with a
microprocessor as its CPU. Includes memory, I/O
etc.
– Microprocessor – silicon chip which includes
ALU, register circuits & control circuits
– Microcontroller – silicon chip which includes
microprocessor, memory & I/O in a single
package.
What is a Microprocessor?
• The word comes from the combination micro and
processor.
– Processor means a device that processes data
Micro
• Micro:
– In the late 1960’s, processors were built using discrete
elements.
– In the early 1970’s the microchip was invented.
– All of the components that made up the processor
were now placed on a single piece of silicon.
– The size became several thousand times smaller and
the speed became several hundred times faster. The
“Micro”Processor was born.
Definition of the Microprocessor
Input Output
Memory
Inside The Microprocessor
• Internally, the microprocessor is made up of
3 main units.
– The Arithmetic/Logic Unit (ALU)
– The Control Unit.
– An array of registers for holding data while it is
being manipulated.
Organization of a microprocessor- based
system
• Let’s expand the picture a bit.
I/O
Input / Output
ALU Register
Array
System Bus
Control Memory
ROM RAM
Clock speed
Also called clock rate, the clock speed is the speed at which a
microprocessor executes instructions. Every computer
contains an internal clock that regulates the rate at which
instructions are executed and synchronizes all the various
computer components.
The faster the clock, the more instructions the
that they can execute more than one instruction per clock
cycle.
CPU Performance Evaluation
A program consists of instructions
• # of instructions
• On average an instruction takes x
number of clock cycles to be
executed(CPI)
• Clock cycle time of the CPU (1/f)
So the CPU execution time consists of
Address
ALU Register
bus
Section
Data bus
Block diagram of a
microprocessor 31
Data bus
The data bus is 'bi-directional'
data or instruction codes from memory or
input/output are transferred into the
microprocessor
the result of an operation or computation is
sent out from the microprocessor to the
memory or input/output.
Depending on the particular
microprocessor, the data bus can handle
8 bit or 16 bit data.
32
Address bus
The address bus is 'unidirectional',
over which the microprocessor sends an
address code to the memory or
input/output.
The size (width) of the address bus is
specified by the number of bits it can
handle.
The more bits there are in the address
bus, the more memory locations a
microprocessor can access.
A 16 bit address bus is capable of
addressing 65,536 (64K) addresses. 33
Control bus
The control bus is used by the
microprocessor to send out timing and
control signals in order to coordinate and
regulate its operation and to
communicate with other devices, i.e.
memory or input/output.
34
Bus Speed
The processor communicates with other devices via the data
bus, sometimes called the front side bus. Bus speed is
measured in MHz, the same unit used to measure clock speed.
While a processor might be working at up to 3 GHz, quite often
the performance of the computer is hampered by a slower
data bus speed.
Block diagram of micro computer
Questions
Thank You