Microprocessor Slide 1
Microprocessor Slide 1
Embedded Systems
2
Basic Architecture of a Microprocessor
Memory
RAM/ROM
• ALU (Arithmetic Logic Unit)
Register • Control Unit
• Registers
ALU Control • Bus Interface
(Data, Address, Control Buses)
Unit
I/O
Devices
3
Application of Microprocessor
• ATM Booth
• AC Remote
• Traffic Light Controller
4
What is Microprocessor ?
5
Task of Microprocessor
6
Functions of Microprocessor
7
Functional Block Diagram of Microprocessor
8
What is a Micro-computer?
9
Architecture of Micro-computer
10
Difference Between Microprocessor and Micro-computer
Microprocessor Microcomputer
A semi conductor device, a clock driven, A computer having CPU, memory, i/o
multipurpose register based electronic devices, but is a small scale is called micro-
device computer.
Microprocessor is a stand-alone device. It is Microcomputer is a combination of
connected with peripherals microprocessor, i/o device, clock, timer,
serial port and memory
Designer can choose size of RAM, ROM and Designer can’t choose
others
General Purpose Use Fixed Purpose use
Expensive, Versatile Less expensive, less versatile
11
Major Parts of Computer Systems
• CPU
• Memory
• Input
• Output
12
Block Diagram of CPU
Address
Instruction Pointer
Instruction Register
Flag ALU Instruction Decoder CONTROL BUS
Control Unit
Register DATA BUS
ALU Control Reg A
Unit
Reg B
Reg C
Reg D
13
Classification of Microprocessor Based Systems
14
General Purpose Microprocessor
15
Microcontroller
16
Computer Architecture
17
Von Neumann Architecture
▪ In this architecture, the program data and the instructions are stored
in the same memory. The CPU is connected with the memory through
Address Bus, Data Bus, and Control Bus.
▪ In Von Neumann, in one cycle, only one action is performed, such as
read or write. The program can be read, but data can be read and
written.
18
Von Neumann Architecture
Read
Program
Read
MPU MEMORY
Data
Write
Program
19
Von Neumann Architecture
IN CPU OUT
Address BUS
Data BUS
Control BUS
MEMORY
Data + Program
20
Harvard Architecture
▪ It has separate memory for instructions (program code) and data
(variables, inputs, etc.).
▪ It uses different buses for data and instructions.
▪ That means one bus is only for data, and another bus is only for
instructions.
▪ Because of the separate paths, the system can read an instruction and
access data at the same time.
▪ Each bus can work in one clock cycle, allowing faster performance.
21
Harvard Architecture
MEMORY
For Data
IN MPU OUT
MEMORY
for Instructions
22
Difference Between Von Neumann and Harvard Architecture
23
Evolution of Microprocessor
24
Second Generation (1973 onwards) Third Generation (1978 onwards)
• Technology: NMOS • Technology: HMOS (High-density MOS)
• Features: • Features:
• Faster and denser than PMOS • Faster and better density
• Compatible with TTL • 16-bit processors (e.g., Intel 8086)
• 4 / 8 / 16-bit processors (e.g., Intel 8085) • 40 / 48 / 64 pins
• 40 pins • Arithmetic hardware for multiplication/division
• Addressed larger memory and I/O • Easier programming, flexible I/O
• Improved interrupt handling and subroutine levels • Stronger interrupt support
• Examples: Intel 8085 • Examples: Intel 8086
25
Sixth Generation (Late 1990s – 2000s) Seventh Generation (2006 onwards)
• Technology: Deep pipelines, parallelism • Technology: Multicore technology
• Features: • Features:
• Advanced 64-bit processors (e.g., Intel Pentium Pro, • Dual-core, quad-core, and more (e.g., Intel Core 2 Duo, i3,
Pentium III, AMD Athlon) i5, i7)
• Better branch prediction • Improved energy efficiency
• Hyper-threading (Intel) • Virtualization support
• Support for multimedia, SIMD instructions • Integrated GPU (Graphics)
• Large on-chip cache • 64-bit architecture standard
• Examples: Intel Pentium III, AMD Athlon • Examples: Intel Core series (i3/i5/i7), AMD Phenom
▪ *Both are internally 16-bit MPU as similar registers are used for both
MPU but due to the availability of 8-bit peripheral controllers IBM
decided to build PC using externally 8-bit MPU ( Intel 8088 and
Motorola 68008)
27
INTEL 80286 Microprocessor
28
INTEL 80386 Microprocessor
INTEL 80386 was a first 32-bit processor, developed in 1986
The main features are:
• Data Bus- 80386 has 32-bit data bus
• Address Bus – it has 32-bit bus having addressing capacity of 4 GB
• Clock Signal – up to 33 MHz
• Instruction set – higher instructions as compared to 8086, 8088
29
INTEL 80486 Microprocessor
INTEL 80486 incorporated 80386 like processor and 80387 like
math/numeric processor in a single chip.
The main features are:
• Data Bus- 80486 has 32-bit data bus
• Address Bus – it has 32-bit bus having addressing capacity of 4 GB
• Clock Signal – up to 100 MHz
• Cache memory– it contains 8 KB Level 1 cache memory system
30
Difference between 8086, 80268, 80386, 80486
31
Cache
A cache is a small, fast memory used to store data that is often needed,
so it can be accessed more quickly.
Instead of getting the data from the slower main memory every time,
the computer first checks the cache. If the data is there, it can be used
immediately, which saves time and makes the system faster.
Analogy:
Use a bookmark to remember the page. Next time, instead of flipping
through all the pages, just go straight to the bookmarked page.
32
INTEL Pentium Microprocessor
The main features are:
• Data Bus- it has 32-bit data bus
• Address Bus – it has 32-bit bus having addressing capacity of 4 GB
• Clock Signal – up to 100 MHz
• Cache memory– it contains 8 KB data cache and 8 KB instruction
cache.
33
INTEL Core i7 Microprocessor (10th gen)
The main features are:
• Data Bus- it has 64-bit data bus
• Cores– it has 8 cores
• Max Clock frequency – 5 GHz
• Cache memory– it contains 16 MB cache.
34
Multi-Core Processors
A multi-core processor is a single chip that has two or more processing
units, called cores. Each core can read and run instructions like adding
numbers or moving data. These cores can work at the same time, which
makes the computer run faster, especially for programs that are
designed to use multiple tasks at once (this is called multithreading or
parallel computing).
Analogy
A road with only one lane, all cars have to move one after another, so traffic moves
slowly. But if a highway with four lanes, cars can drive side by side, and traffic moves
much faster.
35
Microprocessor with Multicore and Cache Memory
Control Unit
L3 Shared Cache
36
Threaded Processor
A thread is like a small task or part of a program that the computer
needs to work on. Every program creates one or more threads to do its
work. If your computer has only one core, it can handle only one thread
at a time. But when user open many apps (like a browser, music player,
or game), the computer has to quickly switch between threads to keep
everything running smoothly. This is called multitasking. So, a thread is
just a piece of work from a program that the processor needs to handle.
Analogy
A thread is like a task on to-do list. If only one person is doing all the tasks, they have
to switch between them one by one, just like a processor handling threads.
37
Thank You
38