Presidency Univeristy,: School of Engineering Department of Computer Science & Engineering
Presidency Univeristy,: School of Engineering Department of Computer Science & Engineering
School of Engineering
IV Semester 2019-20
Microprocessor & Microcontrollers
Course Outcomes
3
Evaluation Components
As per
Test1 & Test2 60 40 80 As per CoE
CoE
4
Text Books
Text Book(s):
• T1: Douglas V. Hall & S.S.S.P. Rao, “Microprocessors and
Interfacing (SIE)”, 3rd ed., Mc Graw Hill, 2017.
• T2: Barry B Brey, “The Intel Microprocessors”, 8th edition,
Pearson, 2014.
Reference Book(s):
• R1: Muhammad Ali Mazidi, “Microprocessors and
Microcontrollers”, First Impression, Pearson Education.
• R2: Ramesh S. Gaonkar, “Microprocessor Architecture,
Programming, and Applications with the 8085”, 4e, Prentice
Hall, 1998
5
Module-1
• Introduction
• Organization of Computer Systems
• Architecture of Computers
• RISC and CISC
• Microprocessor Evolution
• Main Features of 8086
• 8086 Pin Diagram/Description
• 8086 Internal Architecture
6
1.1 Organization of Computer Systems
• Components of a Computer
– Central Processing Unit
– Main Memory
– Secondary Memory
– I/O interfaces
Device
– Devices
Device
Main Memory
Controller
I/O Interface
CPU Device
Controller
Device
7
1.1 Organization of Computer Systems
8
1.2 Architecture of Computers
Definition of architecture
• Computer architecture is a specification detailing how a set
of software and hardware technology standards interact to
form a computer system or platform.
• In short, computer architecture refers to how a computer
system is designed and what technologies it is compatible
with.
2 types of architecture
– Von Neumann architecture
– Harvard architecture
9
Von Neumann architecture
10
Von Neumann architecture
11
Harvard architecture
12
Instruction Set architecture
13
RISC and CISC
14
RISC and CISC
15
RISC and CISC
Characteristics of CISC:-
1. Complex instruction, hence complex instruction decoding.
2. Instruction are larger than one word size.
3. Instruction may take more than single clock cycle to get
executed.
4. Less number of general purpose register as operation get
performed in memory itself.
5. Complex Addressing Modes.
6. More Data types.
Example – Suppose we have to add two 8-bit number:
CISC approach: There will be a single command or
instruction for this like ADD which will perform the task.
16
RISC and CISC
17
RISC and CISC
Characteristics of RISC:-
1. Simpler instruction, hence simple instruction decoding.
2. Instruction come under size of one word.
3. Instruction take single clock cycle to get executed.
4. More number of general purpose register.
5. Simple Addressing Modes.
6. Less Data types.
7. Pipelining can be achieved.
Example – Suppose we have to add two 8-bit number:
RISC approach: Here programmer will write first load command to
load data in registers then it will use suitable operator and then it
will store result in desired location.
18
Difference between RISC and CISC
CISC RISC
• Focus on hardware • Focus on software
• Transistors are used for storing • Transistors are used for more
complex Instructions registers
19
Microprocessor Evolution
20
Microprocessor Evolution
• 1972
• Intel introduces first 8 bit microprocessor intel 8008
• It can address 16K bytes of memory
• 3500 transistors were used based on 10 micron
technology
• Speed was 60000 operations per second
• 1974
• intel released its 2MHz 8080 chip, an 8 bity
microprocessor
• It can address 64K bytes of memory
• 6000 transistors were used based on 6 micron
technology
• Speed was 0.64 MIPS
21
Microprocessor Evolution
• 1978
• Intel introduced 4.77 M Hz 8086 microprocessor.
• It has 16 bit registers, 16 bit data bus
• 29000 transistors were used based on 3 micron
technology
• It can address 1 M bytes of memory
• 1979
• Intel introduced 4.77 M Hz 8088 microprocessor.
• It operates on 16 bits internally, but supports 8 bit data
bits to use existing 8 bit devices
• 29000 transistors were used based on 3 micron
technology
• It can address 1 M bytes of memory
• Its speed is 0.33 M Hz
22
Microprocessor Evolution
• 1985
• Intel introduced 6 M Hz 80286 microprocessor
• 134000 transistors were used based on 1.5 micron
technology
• Offers protected mode operation
• It can address 16 M bytes of memory or 1 GB of Virtual
memory
• Its speed is 0.9 M Hz
• 1989
• Intel announced 25 MHz 486 microprocessor
• It integrated the 386, 387 math coprocessor & added an
8 KB primary cache
• It used 1.2 million transistors based on 1 micron
technology
• Its speed is 20 MIPS
23
Microprocessor Evolution
• 1991
• Intel introduced 50 MHz 486 microprocessor.
• Speed is 41 MIPS
• 1992
• Intel introduced 486 SL processor designed for
notebook computers.
• Speed is 20 MHz. It can address 64MB of physical
memory
• 1.4 million transistors were used based on 0.8 micron
technology
• 1993
• Intel introduced Pentium processor & used 32 bit
registers with a 64 bit data bus
• It can address 4GB of memory. Its speed was 60 MHz
• 3.1million transistors were used based on 0.8 micron
technology
24
Microprocessor Evolution
• 1994
• Intel introduced 75 MHz Pentium processor. Speed was
126.5 MIPS.
• It uses 3.2 million transistors based on 0.6 micron
technology
• 1995
• Intel released Pentium pro which contained 5.5 million
transistors
• 1996
• Intel released 150 MHz mobile pentium processor
designed for use in portable computers
• 1997
• Intel released 7.7 million transistor Pentium II
processor
• 1999
• Intel released 450 MHz Pentium III processor. Its speed
was 450 to 1.15 GHz frequency
25
Microprocessor Evolution
• 2000
• Intel released Pentium IV operating at 2GHz
• 2005
• Intel released its first desktop dual core processor called
Pentium D
• 291 million transistors were used at 3.2 GHz initial
speed.
• Present status
• Intel stops Pentium series and started Intel Core i3
series from 2012.
• As of June 2018, the lineup of core processors included
the Intel Core i9, Intel Core i7, Intel Core i5 and Intel
Core i3.
26
8086 Microprocessor
27
8086 Microprocessor
28
Main Features of 8086
• 16 bit processor
• 16 bit data bus
• 20 bit address bus
• Frequency range is 6-10 MHz
• Can do only fixed point arithmetic operations
• Along with coprocessor 8087, 8086 can do both fixed and
floating point operations
• It can operate in 2 modes
• Minimum
• Maximum
29
Main Features of 8086
30
Pins and signals
8086 Microprocessor Pins and Signals Common signals
AD0-AD15 (Bidirectional)
Address/Data bus
Low order address bus; these are multiplexed
with data.
32
8086 Microprocessor Pins and Signals Common signals
MN/ MX
MINIMUM / MAXIMUM
This pin signal indicates what mode the
processor is to operate in.
It is an output signal.
33
8086 Microprocessor Pins and Signals Common signals
TEST
input is tested by the ‘WAIT’ instruction.
READY
This is the acknowledgement from the slow
device or memory that they have completed the
data transfer.
34
8086 Microprocessor Pins and Signals Common signals
RESET (Input)
Causes the processor to immediately
terminate its present activity.
The signal must be active HIGH for at least
four clock cycles.
CLK
The clock input provides the basic timing
for processor operation and bus control
activity. Its an asymmetric square wave
with 33% duty cycle.
35
8086 Microprocessor Pins and Signals Min/ Max Pins
36
8086 Microprocessor Pins and Signals Minimum mode signals
Pins 24 -31
37
8086 Microprocessor Pins and Signals Minimum mode signals
Pins 24 -31
For minimum mode operation, the MN/
is tied to VCC (logic high)
8086 itself generates all the bus control
signals
HOLD: Input signal to the processor form
the bus masters as a request to grant the
control of the bus.
Usually used by the DMA controller to get
the control of the bus.
HLDA: (Hold Acknowledge) Acknowledge
signal by the processor to the bus master
requesting the control of the bus through
HOLD.
The acknowledge is asserted high, when the
processor accepts HOLD.
38
8086 Microprocessor Pins and Signals Maximum mode signals
39
8086 Microprocessor Pins and Signals Maximum mode signals
40
8086 Microprocessor Pins and Signals Maximum mode signals
41
Architecture
8086 Microprocessor Architecture
EU executes instructions
that have already been
fetched by the BIU.
43
8086 Microprocessor Architecture
Dedicated Adder to
generate 20 bit address
44
8086 Microprocessor Architecture Bus Interface Unit (BIU)
Segment
Registers
45
8086 Microprocessor Architecture Bus Interface Unit (BIU)
16-bit
46
8086 Microprocessor Architecture Bus Interface Unit (BIU)
16-bit
47
8086 Microprocessor Architecture Bus Interface Unit (BIU)
16-bit
48
8086 Microprocessor Architecture Bus Interface Unit (BIU)
16-bit
49
8086 Microprocessor Architecture Bus Interface Unit (BIU)
16-bit
50
8086 Microprocessor Architecture Bus Interface Unit (BIU)
Instruction queue
A group of First-In-First-
Out (FIFO) in which up to 6
bytes of instruction code
are pre fetched from the
memory ahead of time.
51
8086 Microprocessor Architecture Execution Unit (EU)
A decoder in the EU
control system translates
instructions.
and
53
8086 Microprocessor Architecture Bus Interface Unit (BIU)
54
8086 Microprocessor Architecture Bus Interface Unit (BIU)
Example:
55
8086 Microprocessor Architecture Bus Interface Unit (BIU)
56
8086 Microprocessor Architecture Bus Interface Unit (BIU)
57
8086 Microprocessor Architecture Bus Interface Unit (BIU)
58
8086 Microprocessor Architecture Execution Unit (EU)
Flag Register
Auxiliary Carry
Flag Carry Flag
Undefined
Parity Flag
Sign Flag
Zero Flag
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
U U U U OF DF IF TF SF ZF U AF U PF U CF
Direction Flag
Interrupt Flag
59
8086 Microprocessor Architecture
8086 registers
categorized into 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
4 groups U U U U OF DF IF TF SF ZF U AF U PF U CF
60
8086 Microprocessor Architecture Registers and Special Functions
61
Thank You