PPT_ECE21121-MODULE_1_Introduction_to_Microprocessor_Systems
PPT_ECE21121-MODULE_1_Introduction_to_Microprocessor_Systems
MODULE 1
INTRODUCTION TO
MICROPROCESSOR SYSTEMS
INTRODUCTION
WHAT IS A MICROPROCESSOR SYSTEM?
A microprocessor is just an
integrated circuit. On its own, without
a surrounding circuit and applied
voltages, it is quite useless.
A useful microprocessor-based
computer system must have a
memory, I/O devices, and a
processing unit. Fig. 1. Intel 8086 Microprocessor
INTRODUCTION
TERMINOLOGIES
MICROPROCESSOR
LEVELS OF INTEGRATION
According to Gordon
Moore, co-founder of Intel,
the number of transistors
per square inch on
Integrated Circuits doubles
approximately every two
years.
Fig. 2. Moore’s Law
FACULTY OF ENGINEERING ELECTRONICS ENGINEERING DEPARTMENT
UNIVERSITY OF SANTO TOMAS
MICROPROCESSOR
LEVELS OF INTEGRATION
MICROPROCESSOR
LOGIC CIRCUIT TERMINOLOGIES
MICROPROCESSOR
LOGIC CIRCUIT TERMINOLOGIES
MICROPROCESSOR
LOGIC CIRCUIT TERMINOLOGIES
4. Emitter-Coupled Logic (ECL) – a high speed bipolar transistor logic
family which uses an overdriven BJT differential amplifier with single-
ended input.
5. PMOS Logic – uses p-channel metal oxide semiconductor FET to
implement logic gates.
6. NMOS Logic – uses n-channel metal oxide semiconductor FET to
implement logic gates.
7. CMOS Logic – complementary MOSFETs designed using symmetrical
pairs of p- and n- channel.
FACULTY OF ENGINEERING ELECTRONICS ENGINEERING DEPARTMENT
UNIVERSITY OF SANTO TOMAS
MICROPROCESSOR
LOGIC CIRCUIT TERMINOLOGIES
MICROPROCESSOR
LOGIC CIRCUIT TERMINOLOGIES
MICROPROCESSOR
DEVELOPMENT OF MICROPROCESSOR
First IC was Intel was founded by
developed by Robert Noyce and
Jack Kilby Gordon Moore
MICROPROCESSOR
DEVELOPMENT OF MICROPROCESSOR
4 bit / 1 nibble
microprocessor
INTEL 8-bit microprocessor
1st microprocessor by Intel INTEL 8080
4004/4040 64 kb of memory
45 instructions
500 KIPS
Uses PMOS
MICROPROCESSOR
DEVELOPMENT OF MICROPROCESSOR
1 MB of memory
INTEL 8086 1st 16 bit MPU (2.5 MIPS with 2000
INTEL 8088 instructions)
Capable of multiplication and division
1977 1978
MICROPROCESSOR
SYSTEM BUS
MICROPROCESSOR
SYSTEM BUS
MICROPROCESSOR
SYSTEM BUS
MICROPROCESSOR
SYSTEM BUS
MICROPROCESSOR
SYSTEM BUS
Type 1
Type 1 is a bus buffering technique which is characterized
by a single source and multiple destination transfer of signals.
Design Issues:
• Number of gates that can be driven
RAM ROM
• Necessity of Buffers
Microprocessor (Multiple Destination)
(Single Source)
FACULTY OF ENGINEERING ELECTRONICS ENGINEERING DEPARTMENT
UNIVERSITY OF SANTO TOMAS
MICROPROCESSOR
SYSTEM BUS
Type 2
Type 2 is a bus buffering technique which is characterized
by a multiple source and single destination transfer of signals.
Design Issues:
• Bus Contention
Registers MPU
(Multiple Source) (Single Destination)
MICROPROCESSOR
SYSTEM BUS
Type 2 - Bus Contention (Design Issue)
Bus contention is a Type 2 design which can possibly
damage the devices involved because an excessive current flows
from the logic 1 output to the logic 0 output.
Possible Solutions:
1. Using Tri-state
Buffers
2. Using Open Drain
3. Using Multiplexers
Fig. 7. Example of Bus Contention
FACULTY OF ENGINEERING ELECTRONICS ENGINEERING DEPARTMENT
UNIVERSITY OF SANTO TOMAS
MICROPROCESSOR
SYSTEM BUS
MICROPROCESSOR
SYSTEM BUS
0 0 1 0 Z
0 1 1 0 Z
y
1 0 1 1 0
Fig. 8. Schematic Symbol 1 1 0 0 1
MICROPROCESSOR
SYSTEM BUS
Note: IN2
Using Tri-state Buffers, the outputs share EN2
OUT
a common bus line but no more than one buffer IN3
is active at any given time.
EN3
IN4
EN4
MICROPROCESSOR
SYSTEM BUS
Type 2 – Solution for Bus Contention +Vcc
IN1 oc
OUT
IN2 oc
IN3 oc
IN4 oc
MICROPROCESSOR
SYSTEM BUS
Type 2 – Solution for Bus Contention
3. Using Multiplexers
Note:
Using Multiplexers, the outputs share
a common bus line but no more than one input
is reflected at the output at any given time due
to the presence of select lines, S1 and S0.
MICROPROCESSOR
SYSTEM BUS
Type 3
Type 3 is a bus buffering technique which is characterized
by a multiple source and multiple destination transfer of signals.
MICROPROCESSOR
DIGITAL CIRCUIT PARAMETERS
MICROPROCESSOR
DIGITAL CIRCUIT PARAMETERS
Logic 1 and Logic 0
These logic levels are not simply 5V and 0V, or even Vcc and
Ground. Within any family of ICs, voltages and currents indicating
1 and 0 cover defined ranges unique to that logic family.
Logic Families
TTL LSTTL CMOS
MICROPROCESSOR
DIGITAL CIRCUIT PARAMETERS
TTL Family LSTTL Family CMOS
OUTPUT INPUT OUTPUT INPUT OUTPUT INPUT
5V 5V 5V 5V 5V 5V
4.6 V LOGIC 1
3.5 V
LOGIC 1 LOGIC 1
2.7 V
INVALID
2.4 V
2V 2V
1.5 V
INVALID INVALID
0.8 V 0.5 V 0.8 V
0.4 V 0.4 V
MICROPROCESSOR
DIGITAL CIRCUIT PARAMETERS
Notice that logic levels for outputs (left column) and inputs
(right column) in all the families are different. This ensures that
provided that the output voltage of a gate is within its defined
logic limits for 1 and 0.
Hence, any compatible gate input connected to that output
will recognize the correct 1 or 0 levels.
The difference between levels at the output and input in
any particular family is called Noise Margin.
FACULTY OF ENGINEERING ELECTRONICS ENGINEERING DEPARTMENT
UNIVERSITY OF SANTO TOMAS
MICROPROCESSOR
DIGITAL CIRCUIT PARAMETERS
MICROPROCESSOR
DIGITAL CIRCUIT PARAMETERS
A. Noise Margin
LSTTL Family
OUTPUT INPUT
5V 5V
This is the difference
between the worst-case
voltage at the output and the LOGIC 1
2.7 V
minimum or maximum voltage HIGH
to be recognized at the input. NOISE MARGIN 2V
INVALID
0.5 V 0.8 V LOW
NOISE MARGIN
0V LOGIC 0 0V
FACULTY OF ENGINEERING ELECTRONICS ENGINEERING DEPARTMENT
UNIVERSITY OF SANTO TOMAS
MICROPROCESSOR
DIGITAL CIRCUIT PARAMETERS
LSTTL Family High Noise Margin (HNM) = VOH – VIH
OUTPUT INPUT
5V 5V where:
VOH – worst-case voltage for logic 1 at the output
VOH VIH – minimum voltage required for logic 1 to be recognized
VIH at the input
LOGIC 1
2.7 V Low Noise Margin (LNM) = VIL – VOL
HIGH
where:
NOISE MARGIN 2V
VOL – worst-case voltage for logic 0 at the output
INVALID VIL – maximum voltage required for logic 0 to be recognized
LOW at the input
0.5 V 0.8 V
NOISE MARGIN
VO LOGIC 0 VIL Noise Margin (NM) = min(HNM, LNM)
L 0V 0V
FACULTY OF ENGINEERING ELECTRONICS ENGINEERING DEPARTMENT
UNIVERSITY OF SANTO TOMAS
MICROPROCESSOR
DIGITAL CIRCUIT PARAMETERS
MICROPROCESSOR
DIGITAL CIRCUIT PARAMETERS
Current Sinking and Sourcing
MICROPROCESSOR
DIGITAL CIRCUIT PARAMETERS
B. Fan Out
This specifies the number of standard loads or maximum
number of inputs that can be connected to the output of a gate
without degrading its normal operation.
It depends on the amount of electric current a gate can
source or sink while driving other gates.
MICROPROCESSOR
DIGITAL CIRCUIT PARAMETERS
B. Fan Out
It is calculated from the amount of current available in the
output of the gate and the amount of current needed in each
input of a gate.
IOH IOL
0 1 IIH 1 0 IIL
0 1
IIH IIL
0 1
MICROPROCESSOR
DIGITAL CIRCUIT PARAMETERS
IOH IOL
0 1 IIH 1 0 IIL
0 1
IIH IIL
0 1
Fan Out High (FOH) = |IOH/IIH| Fan Out Low (FOL) = |IOL/IIL|
where: where:
IOH – maximum high level output source current IOL – maximum low level output sink current
IIH – minimum high level input sink current IIL – minimum low level input source current
MICROPROCESSOR
DIGITAL CIRCUIT PARAMETERS
C. Propagation Delay
When gate inputs change, outputs do not change
instantaneously. This delay is known as gate or propagation
delay.
It is the time required for the input to be propagated to the
output. In other words, propagation delay is defined as the time
it takes for the effect of change in input to be visible at the
output.
FACULTY OF ENGINEERING ELECTRONICS ENGINEERING DEPARTMENT
UNIVERSITY OF SANTO TOMAS
MICROPROCESSOR
DIGITAL CIRCUIT PARAMETERS
Terminologies
• tPHL – signal delay time between the input and output when the
output changes from high to low level.
• tPLH – signal delay time between the input and output when the
output changes from low to high level.
• tPDave – average propagation time equivalent to (tPHL+tPLH)/2
MICROPROCESSOR
DIGITAL CIRCUIT PARAMETERS
C. Propagation Delay
Note that 50% is the logic threshold where output is
assumed to switch states.
MICROPROCESSOR
DIGITAL CIRCUIT PARAMETERS
C. Propagation Delay
MICROPROCESSOR
DIGITAL CIRCUIT PARAMETERS
D. Power Dissipation
It is calculated from the supply voltage VCC and the current
ICC that is drawn by the circuit.
NOTE:
ICC = (ICCH + ICCL)/2
PDave = ICC*VCC where:
ICCH – current when the output of the gate is high logic level
ICCL – current when the output of the gate is low logic level
MICROPROCESSOR
DIGITAL CIRCUIT PARAMETERS
Sample Problem No. 1
A 7400 TTL gate is driving a bus line with 74LS04 receiver.
Calculate the noise margin for this case.
Table 2. Voltage Level Specifications
MICROPROCESSOR
DIGITAL CIRCUIT PARAMETERS
Sample Problem No. 2
Assume that a type 1 bus is to be buffered with a 74LS04
source. Calculate the standard TTL loads that can be driven by
this source. Table 3. Current Level Specifications
IOL Max ‘0’ level output sink current 16mA 8mA 0.36mA
IIL Min ‘0’ level input source current -1.6mA -0.4mA -1uA
IOH Max ‘1’ level output source current -400uA -400uA -360uA
IIH Min ‘1’ level input sink current 40uA 20uA 1uA
FACULTY OF ENGINEERING ELECTRONICS ENGINEERING DEPARTMENT
UNIVERSITY OF SANTO TOMAS
MICROPROCESSOR
DIGITAL CIRCUIT PARAMETERS
Sample Problem No. 3
Calculate the number of 74LS04 loads that a 7400 source
can safely drive without exceeding its drive capabilities.
Table 3. Current Level Specifications
IOL Max ‘0’ level output sink current 16mA 8mA 0.36mA
IIL Min ‘0’ level input source current -1.6mA -0.4mA -1uA
IOH Max ‘1’ level output source current -400uA -400uA -360uA
IIH Min ‘1’ level input sink current 40uA 20uA 1uA
FACULTY OF ENGINEERING ELECTRONICS ENGINEERING DEPARTMENT
UNIVERSITY OF SANTO TOMAS
MICROPROCESSOR
DIGITAL CIRCUIT PARAMETERS
Sample Problem No. 4
The propagation delay times for a 74LS08 AND gate are
tpLH=15ns, tpHL=20ns and for a 7402 NOR gate, they are tpLH=20ns,
tpHL=15ns. Sketch Vout1 and Vout2 showing the effects of
propagation delay.
MICROPROCESSOR
DIGITAL CIRCUIT PARAMETERS
MICROPROCESSOR
DIGITAL CIRCUIT PARAMETERS
Seatwork No. 4
1. Explain the significance of noise margin, fan out, propagation
delay, and power dissipation based on your understanding of the
discussion.
MICROPROCESSOR
DIGITAL CIRCUIT PARAMETERS
Seatwork No. 4
2. Determine the High-level and Low-level noise margins for both
type of CMOS by using the information on the table below.
Table 4. Voltage Level Specifications for CMOS
MICROPROCESSOR
DIGITAL CIRCUIT PARAMETERS
Seatwork No. 4
3. How many 7432 OR gates can a single OR gate safely drive?
Refer on the specification sheet for 7432 OR gate on the next
slides.
MICROPROCESSOR
DIGITAL CIRCUIT PARAMETERS
Table 5. 7432 OR Gate Specification Sheet (Part 1)
MICROPROCESSOR
DIGITAL CIRCUIT PARAMETERS
Seatwork No. 4
4. Calculate the average total propagation delay of the circuit
below.
Input
Inverter:
tPHL= 15ns
tPLH = 22ns
FACULTY OF ENGINEERING ELECTRONICS ENGINEERING DEPARTMENT
UNIVERSITY OF SANTO TOMAS
MICROPROCESSOR
DIGITAL CIRCUIT PARAMETERS
Seatwork No. 5
5. Speed Power Product (SPP) is a figure of merit of a logic circuit
which is based on the product of propagation delay and the power
dissipation at a specified frequency. Given the following values for
a certain gate: propagation delay of 5 ns, ICCH = 1 mA, and ICCL = 2.5
mA, with a DC supply of 5V. Determine the speed power product
or SPP.
1. Wordlength
Microprocessors are often described in terms of the length
of their data words. Each microprocessor work on data word or
fixed length.
An 8-bit microprocessor means that its wordlength is 8 bits.
Consequently, a 16-bit microprocessor has a wordlength of 16
bits.
3. Speed of Operation
Microprocessor’s speed is determined by the time it takes
the microprocessor to complete the fetch-decode-execute cycle
for one program step. Each microprocessor has an oscillator
circuit that sets its pace.
There are two ways to specify the speed of operation of a
microprocessor: (1) speed at which the clock operates, and (2)
number of instructions per second or IPS
FACULTY OF ENGINEERING ELECTRONICS ENGINEERING DEPARTMENT
UNIVERSITY OF SANTO TOMAS
MICROPROCESSOR SYSTEMS
FACTORS
How is an instruction executed?
1. The first step the CPU carries out is to fetch some data and instructions
from the main memory.
2. The CPU then decodes the instruction and understands a specific set of
commands.
3. Then, the CPU executes the instruction as specified on the decoding
part.
4. Once an instruction is executed, the CPU sets itself up to begin another
cycle.
FACULTY OF ENGINEERING ELECTRONICS ENGINEERING DEPARTMENT
UNIVERSITY OF SANTO TOMAS
MICROPROCESSOR SYSTEMS
FACTORS
5. Instruction Set
In designing the instruction set of a microprocessor, it is
important to consider orthogonal instructions or the redundancy
of instructions.
Instruction Types
Microprocessor instructions can be categorized as data
transfer instructions, data operation instructions, or program
control instructions.
Table 4. Examples per Instruction Type
Data Transfer Program Control
Data Operation Instructions
Instructions Instructions
MOV Arithmetic Operations (ADD, SUB) Unconditional Jump (JMP)
OUT Logical Operations (AND, OR, XOR) Conditional Jump (JXX)
IN Shift Instructions (ROR, ROL)
FACULTY OF ENGINEERING ELECTRONICS ENGINEERING DEPARTMENT
UNIVERSITY OF SANTO TOMAS
MICROPROCESSOR SYSTEMS
INSTRUCTION SET
Instruction Format
• Three-operand Instruction Format
ADD B,C,D ADD B C D
B ß C+D Mnemonic Operand 1 Operand 2 Operand 3
Instruction Format
• One-operand Instruction Format
DEC AH DEC AH
AH ß AH-1 Mnemonic Operand 1
Direct Addressing
o LDAC 20H
AC ß contents of address 20H
Indirect Addressing
o LDAC @20H
AC ß contents of register R
Immediate Addressing
o LDAC #20H
AC ß from stack
Relative Addressing
1000H: LDAC $05H (2-byte instruction)
1002H: Next Instruction
: :
1007H: 7BH à to AC
AC ß contents of
{address of next instruction + offset value}
FACULTY OF ENGINEERING ELECTRONICS ENGINEERING DEPARTMENT
UNIVERSITY OF SANTO TOMAS
MICROPROCESSOR SYSTEMS
ADDRESSING MODE
7. Data Types
There are four data types that a microprocessor can
understand and process.
• Unsigned and Signed Integers
• Unpacked and Packed Binary Coded Decimal (BCD)
• Single and Double Precision Floating Point Format
• Alphanumeric Codes
FACULTY OF ENGINEERING ELECTRONICS ENGINEERING DEPARTMENT
UNIVERSITY OF SANTO TOMAS
ECE21121 MODULE 1
REFERENCES