Introduction To Microprocessor: (ACSE0405)
Introduction To Microprocessor: (ACSE0405)
Unit: 1
Microprocessor
Karan Singh
Assistant Professor
B.Tech 4th Semester
ECE
• These relate to the skills, knowledge, and behavior that students acquire
through the programmed.
Course PO1 PO2 PO3 PO4 PO5 PO6 PO7 PO8 PO9 PO10 PO11 PO12
Outcome
ACSE0405.1 3 1 2 1 - - - - - - 3
3 1 - 1 - - - - - - 2
ACSE0405.2
3 1 3 1 - - - - - - 2
ACSE0405.3
3 1 - 1 - - - - - - 2
ACSE0405.4
3 1 2 1 - - - - - - 2
ACSE0405.5
3 1 2.3 1 - - - - - - 2.1
Average
Course
Sr. No. Outcome PSO1 PSO2 PSO3
1 ACSE0405.1 3 2 1
2 ACSE0405.2 3 2 1
3 ACSE0405.3 3 2 1
4 ACSE0405.4 3 2 1
5 ACSE0405.5 3 2 2
Average 3 2 1.2
Address bus
3. I/O Unit
• Input/output (I/O), refers to the communication between an
information processing system (such as a computer), and the outside
world possibly a human, or another information processing system.
• Inputs are the signals or data received by the system, and outputs are the
signals or data sent from it
• Devices that provide input or output to the computer are called
peripherals.
• On a typical personal computer, peripherals include input devices like
the keyboard and mouse, and output devices such as the display and
printer. Hard disk drives, floppy disk drives and optical disc drives serve
as both input and output devices. Computer networking is another form
of I/O.
Byte 8 bit
Word 16 bit
Address bus
ALU Register
Section
Data bus
Answers
1. (25)10 = (11001)2
2. 2008
3. 8016
4. (1101)2 = (13)10
5. 228 = 1810
6. 12116 = 28910
7. (89)16 = (10001001)2
8. (214)8 = (010001100)2
https://slideplayer.com/slide/3944912/
https://www.bu.edu.eg/portal/uploads/Engineering,%20Shoubra/Electrical%20Engineering
/3515/crs-14315/Files/Lec%201%20Intro%20to%20mp.ppt
Intel 8008
Year of introduction 1972
• 8-bit version of 4004
• 16 KB main memory
• 48 instructions
• PMOS technology
Intel 80386
• Year of introduction 1986
• Intel’s first practical 32-bit microprocessor
• 4 GB main memory
• Improvements include page handling in virtual environment
• Includes hardware circuitry for memory management and memory assignment
• Memory paging and enhanced I/O permissions
RISC Processor
RISC stands for Reduced Instruction Set Computer. It is designed to reduce the execution
time by simplifying the instruction set of the computer. Using RISC processors, each
instruction requires only one clock cycle to execute results in uniform execution time. This
reduces the efficiency as there are more lines of code, hence more RAM is needed to store
the instructions. The compiler also has to work more to convert high-level language
instructions into machine code.
Some of the RISC processors are:
• Power PC: 601, 604, 615, 620
• DEC Alpha: 210642, 211066, 21068, 21164
• MIPS: TS (R10000) RISC Processor
• PA-RISC: HP 7100LC
2/2/2024 31
Karan Singh Microprocessor UNIT- 1
Cont..
Characteristics of RISC
The major characteristics of a RISC processor are as follows:
• It consists of simple instructions.
• It supports various data-type formats.
• It utilizes simple addressing modes and fixed length instructions for
pipelining.
• It supports register to use in any context.
• One cycle execution time.
• “LOAD” and “STORE” instructions are used to access the memory location.
• It consists of larger number of registers.
• It consists of less number of transistors.
CISC Processor
CISC stands for Complex Instruction Set Computer. It is designed to minimize the
number of instructions per program, ignoring the number of cycles per instruction.
The compiler has to do very little work to translate a high-level language into assembly
level language/machine code because the length of the code is relatively short, so very little
RAM is required to store the instructions.
Some of the CISC Processors are: IBM 370/168, VAX 11/780, Intel 80486
2/2/2024 Karan Singh Microprocessor UNIT- 1 33
Cont..
Characteristics of CISC
• Variety of addressing modes.
• Larger number of instructions available.
• Variable length of instruction formats.
• Several cycles may be required to execute one instruction.
• Instruction-decoding logic is complex.
• One instruction is required to support multiple addressing modes.
1. What is Microprocessor?
2. What are the different types of Microprocessor?
3. Explain the evolution of Microprocessor.
4. How many generation of Microprocessors are there?
5. Which is the fastest speed of microprocessor?
https://www.youtube.com/watch?v=mU7wpeThu7A
https://www.javatpoint.com/microprocessor-architecture
Tri-state Buffer
• A Tri-state Buffer can be thought of as an input controlled switch which has an
output that can be electronically turned "ON" or "OFF" by means of an
external "Enable" signal input.
• This Enable signal can be either a logic "0" or a logic "1" type signal.
• When Enable line is high (logic “1‟), the circuit functions as a buffer.
Encoder
• The encoder is a logic circuit that provides the appropriate code (binary, BCD,
etc.) as output for each input signal.
Binary Encoder
• A binary encoder, is a multi-input combinational logic circuit that converts the
logic level "1" data at its inputs into an equivalent binary code at its output.
• Generally, digital encoders produce outputs of 2-bit, 3-bit or 4-bit codes
depending upon the number of data input lines.
• An "n-bit" binary encoder has 2n input lines and n-bit output lines with common
types that include 4-to-2, 8-to-3 and 16-to-4 line configurations.
• The output lines of a digital encoder generate the binary equivalent of the input
line whose value is equal to "1" and are available to encode either a decimal or
hexadecimal input pattern to typically a binary or B.C.D. output code.
• They can generate the wrong output code when there is more than one input
present at logic level "1".
Priority Encoder
• The Priority Encoder solves the problems mentioned above by allocating a
priority level to each input.
• The priority encoders output corresponds to the currently active input which has
the highest priority.
• So when an input with a higher priority is present, all other inputs with a lower
priority will be ignored.
• The priority encoder comes in many different forms with an example of an 8-
input priority encoder along with its truth table shown below.
A simple SR flip-flop requires two inputs, one to "SET" the output and one to "RESET" the
output. By connecting NOT gate to the SR flip-flop one can "SET" and "RESET" the flip-
flop using just one input as now the two input signals are complements of each other. This
complement avoids “forbidden state” in the SR latch when both inputs are LOW, since that
state is no longer possible.
Thus the single input is called the "DATA" input. If this data input is HIGH the flip-flop
would be "SET" and when it is LOW the flip-flop would be "RESET". However, this would
be rather pointless since the flip-flop's output would always change on every data input. To
avoid this an additional input called the "CLOCK" or "ENABLE" input is used to isolate the
data input from the flip-flop after the desired data has been stored. The effect is that D is only
copied to the output Q when the clock is active. This forms the basis of a D flip-flop.
2/2/2024 Karan Singh Microprocessor UNIT- 1 68
Cont..
The D flip-flop will store and output whatever logic level is applied to its data
terminal so long as the clock input is HIGH. Once the clock input goes LOW the
"set" and "reset" inputs of the flip-flop are both held at logic level "1" so it will
not change state and store whatever data was present on its output before the
clock transition occurred. In other words the output is "latched" at either logic "0"
or logic "1".
Truth Table for the D Flip-flop:
https://www.youtube.com/watch?v=_EJDoLnJ5BM
https://www.youtube.com/watch?v=bXOpC0z-8o8
RESET IN
• It is used to reset the microprocessor.
• It is active low signal.
• When the signal on this pin is low
For at least 3 clocking cycles, it
forces the microprocessor to reset itself.
– Resetting the microprocessor means:
1) Clearing the PC and IR.
2) Disabling all interrupts(except TRAP).
3) Disabling the SOD pin.
4) Gives HIGH output to RESET OUT pin
S1 S0 Operation
0 0 Halt
0 1 Write
1 0 Read
1 1 Opcode Fetch
Operations IO/M S1 S0
Opcode Fetch 0 1 1
Memory Read 0 1 0
Memory Write 0 0 1
I/O Read 1 1 0
I/O Write 1 0 1
Interrupt Ack. 1 1 1
Halt High Impedance 0 0
WR Pin 31 (Output)
RD Pin 32 (Output)
Instruction Cycle
M1 M2 M3
M = Machine Cycle
T = T States
T1 T2 T3
Single Signal
Instruction
Opcode Operand
Example
MOV A, B
MVI B, 64H
• The first step of executing any instruction is the Opcode fetch cycle.
• In this cycle, the microprocessor brings in the instruction’s Opcode
from memory.
1) T1
Microprocessor uses IO/M , S0, S1 to instruct processor to fetch opcode,
16 bit address & ALE signal.
2) T2
Uses read signal & make data ready from that memory location to read
the opcode & PC is incremented by one. And also check READY signal.
If READY signal = 0: wait state between T2 & T3.
3) T3
Microprocessor reads opcode & store into the instruction register to
decode it further.
4) T4
Microprocessor performs internal operation.
1) Decoding opcode (T5 or T6 is required or not)
2) Providing necessary action
ALE
RD
IO/ M
S1
S0
ALE
RD
IO/ M
S1
S0
ALE
RD
IO/ M
S1
S0
ALE
RD
WR
IO/ M
S1
S0
ALE
RD
WR
IO/ M
S1
S0
INR M
OPCODE FETCH READ WRITE
CLK
T1 T2 T3 T4 T5 T6 T7 T8 T9 T10
ALE
RD
WR
IO/ M
S1
S0
AD7 - AD0 PCL OPCODE PCL + 1 Data = 30H PCL + 2 Data = 40H
ALE
RD
IO/ M
S1
S0
• Software interrupts :
RST 0 , RST 1 , RST 2, RST 3, RST 4 , RST 5 , RST 6 , RST 7
Based on execution:
• Maskable interrupt − In this type of interrupt, we can disable the
interrupt by writing some instructions into the program.
For example: RST7.5, RST6.5, RST5.5.
• Non-Maskable interrupt − In this type of interrupt, we cannot disable
the interrupt by writing some instructions into the program.
For example: TRAP.
Example
RST 5 = 8 * 5= 4010 = 28 16
https://www.youtube.com/watch?v=79icCUmqyPc
https://www.youtube.com/watch?v=1aG3aFEKxyA
• The term addressing mode refers to the way in which the operand
of the instruction is specified.
https://www.youtube.com/watch?v=VK3wnxEbaqI
https://www.youtube.com/watch?v=STnM8a4hUII
https://www.youtube.com/watch?v=4PemFcazH_A
https://www.youtube.com/watch?v=UWekjor55pc
• Not Available