SlideShare a Scribd company logo
1 of 39
Instruction cycle, Machine
cycle & T-states
1
Instruction cycle
• Instructions are contained in the memory and is pointed by the
program counter.
• It is first moved to the instruction register and is decoded in binary
form and stored as an instruction in the memory.
• The computer takes a certain period to complete this task i.e.,
instruction fetching, decoding and executing on the basis of clock
speed.
• Such a time period is called ‘Instruction cycle’ and consists two cycles
namely Fetch cycle and Execute cycle.
2
Instruction cycle
• Instruction cycle can be defined as the time taken to complete an
instruction.
• We can also say that an instruction cycle is defined as the sequence of
operations that are required by the CPU to fetch an instruction and
data from the memory and to execute it.
• The instruction cycle consists of a fetch cycle and a execute cycle.
• The sequence of operations which are required to fetch an opcode
from the memory constitute a fetch cycle.
• The necessary steps which are required to get data from the memory
and to perform the operation specified by an instruction constitute an
execute cycle.
3
• Instruction Cycle = Fetch Cycle + Execute Cycle
• An instruction cycle consists of one to six machine cycles
4
Machine Cycle
• Each READ or WRITE operations of the 8085 is referred to
as Machine Cycle.
• An 8085 instruction’s execution consists of a number of machine
cycles.
• These cycles vary from one to five (M1 to M5) depending on the
instruction.
• Each machine cycle contains a number of clock cycles (also referred
to as T-states).
5
• The time required to complete one operation; accessing either the
memory or I/O device.
• A machine cycle consists of three to six T-states.
6
T-state
• T-state may be defined as the time taken by the clock to complete one
period.
• Time corresponding to one clock period.
• It is the basic unit to calculate execution of instructions or programs in
a processor.
• A T-state is measured from the falling edge of one clock pulse to the
falling edge of the next clock pulse.
• Fetch cycle takes four t-states and execution cycle takes three t-states
7
T-States
Machine Cycle
Instruction Cycle
8
T-States, Machine and Instruction Cycle
9
Instruction Cycle
Machine Cycle
T-States
Time required to complete execution of an
instruction.
Time required by the microprocessor to complete
an operation.
Operation performed in one clock period.
T-States
• “T-States are defined as operation performed in one clock period.”
• These sub-divisions are internal states synchronized with system clock
& each T-state is precisely equal to one clock period.
10
CLK
Clock Period
Machine Cycle
• “Machine Cycle is defined as time required by the microprocessor to complete an
operation.“
• This cycle may consist 3 to 6 T-states.
• The basic microprocessor operation such as reading a byte from I/O port or
writing a byte to memory.
11
T1 T2 T3 T4 T1 T2 T3 T1 T2 T3
Opcode Fetch Memory Read
CLK
I/O Write
Machine Cycle-1 Machine Cycle-2 Machine Cycle-3
m/m Read
Instruction Cycle
• “Instruction Cycle is defined as time required to complete execution of
an instruction. “
• In 8085 microprocessor instruction cycle consists of 1 to 6 Machine
Cycles or 1 to 6 operations.
12
CLK
Timing Diagram
13
Timing Diagram
• Representation of Various Control signals generated during Execution
of an Instruction.
• Following Buses and Control Signals must be shown in a Timing
Diagram:
•Higher Order Address Bus.
•Lower Address/Data bus
•ALE
•RD
•WR
•IO/M’
14
15
High order memory address Unspecified
Low order
M/m addr.
Opcode
CLK
A8
AD0
AD7
ALE
IO/M
RD
A15
Opcode Fetch
16
High order memory address
Low order
M/m addr.
Data from memory
CLK
A8
AD0
AD7
ALE
IO/M
RD
A15
Memory read cycle
S1 S0 Mode
0 0 HLT
0 1 WRITE
1 0 READ
IO/M=0, S1=1 , S0=0
S1
S0
17
High order memory address
Low order
M/m addr.
Data from
Microprocessor
CLK
A8
AD0
AD7
ALE
IO/M
WR
A15
Memory write cycle
S1 S0 Mode
0 0 HLT
0 1 WRITE
1 0 READ
IO/M=0, S1=0 , S0=1
S0
S1
18
High order I/O address
Low order
I/O addr.
I/O data
CLK
A8
AD0
AD7
ALE
IOR
A15
I/O read cycle
S1 S0 Mode
0 0 HLT
0 1 WRITE
1 0 READ
IO/M=1, S1=1 , S0=0
IO/M
S1
S0
19
High order I/O address
Low order
I/O addr.
Data from
Microprocessor
CLK
A8
AD0
AD7
ALE
IOW
A15
I/O write cycle
S1 S0 Mode
0 0 HLT
0 1 WRITE
1 0 READ
IO/M=1, S1=0 , S0=1
IO/M
S0
S1
20
Timing Diagram : MOV B,M
T1 T2 T3 T4 T5 T6 T7
CLK
A8
AD0
AD7
ALE
IO/M
A15 High order memory
address
Unspe
cified
High order memory
address
Low order
M/m
addr.
Opcode
Low order
M/m
addr.
Data from
memory
RD
Opcode Fetch Memory Read
21
Timing Diagram : MVI A, 32H
T1 T2 T3 T4 T5 T6 T7
CLK
A8
AD0
AD7
ALE
IO/M
A15 High order memory
address
Unspe
cified
High order memory
address
Low order
M/m
addr.
Opcode
Low order
M/m
addr.
Read
Immediate
RD
Opcode Fetch Memory Read
Calculate Execution time of MVI A,32H
Given: Clock Frequency (f) = 2 MHz
Calculation:
Step-1: T-state = clock period =
1
𝑓
=
1
2
= 0.5 sec
Step-2: Execution time for Opcode Fetch
= 4T x 0.5 = 2sec
Step-3: Execution time for Memory Read
= 3T x 0.5 = 1.5sec
Step-4: Execution time for Instruction
= (4T + 3T) x 0.5
= 7T x 0.5
= 3.5sec
22
Timing Diagram : IN 02H
Opcode Fetch Memory Read
T1 T2 T3 T4 T1 T2 T3 T1 T2 T3
CLK
A8
AD0
AD7
ALE
IO/M
A15
High order memory
address
High order memory
address
Unspecif
ied
Port address 02H
RD
IOR
Low
addr
02H
Low
addr
Opcode
Port
addr
Acc.
content
I/O Read
23
Timing Diagram : OUT 02H
Opcode Fetch Memory Read
T1 T2 T3 T4 T1 T2 T3 T1 T2 T3
CLK
A8
AD0
AD7
ALE
IO/M
A15
High order
memory address
High order
memory address
Unspecif
ied
Port address 02H
RD
IOW
Low
addr
02H
Low
addr
Opcode
Port
addr
Acc.
content
I/O Write
24
More Notes in with
explanation
25
MACHINE CYCLES OF 8085
The 8085 microprocessor has 5 basic machine cycles.
They are
1. Opcode fetch cycle (4T)
2. Memory read cycle (3 T)
3. Memory write cycle (3 T)
4. I/O read cycle (3 T)
5. I/O write cycle (3 T)
MACHINE CYCLES OF 8085
• The processor takes a definite time to execute the machine cycles. The
time taken by the processor to execute a machine cycle is expressed in
T-states.
• One T-state is equal to the time period of the internal clock signal of
the processor.
• The T-state starts at the falling edge of a clock.
OPCODE FETCH MACHINE CYCLE OF
8085
OPCODE FETCH MACHINE CYCLE OF
8085
• Each instruction of the processor has one byte opcode.
• The opcodes are stored in memory. So, the processor executes the opcode fetch machine
cycle to fetch the opcode from memory.
• Hence, every instruction starts with opcode fetch machine cycle.
• The time taken by the processor to execute the opcode fetch cycle is 4T.
• In this time, the first, 3 T-states are used for fetching the opcode from memory and the
remaining T-states are used for internal operations by the processor.
MEMORY READ MACHINE CYCLE OF
8085
MEMORY READ MACHINE CYCLE OF
8085
• The memory read machine cycle is executed by the processor to read a
data byte from memory.
• The processor takes 3T states to execute this cycle
• The instructions which have more than one byte word size will use the
machine cycle after the opcode fetch machine cycle.
MEMORY WRITE MACHINE CYCLE OF
8085
MEMORY WRITE MACHINE CYCLE OF
8085
• The memory write machine cycle is executed by the processor to write
a data byte in a memory location.
• The processor takes, 3T states to execute this machine cycle
I/O READ CYCLE OF 8085
• The I/O Read cycle is executed by the processor to read a data byte
from I/O port or from the peripheral.
• The processor takes 3T states to execute this machine cycle.
• The IN instruction uses this machine cycle during the execution.
I/O READ CYCLE OF 8085
I/O WRITE CYCLE OF 8085
• The I/O write machine cycle is executed by the processor to write a
data byte in the I/O port or to a peripheral, which is I/O, mapped in the
system.
• The processor takes, 3T states to execute this machine cycle.
I/O WRITE CYCLE OF 8085
EXAMPLE INSTRUCTION :
MVI B, 43
EXAMPLE INSTRUCTION :
STA 526A

More Related Content

What's hot

Pipeline hazard
Pipeline hazardPipeline hazard
Pipeline hazardAJAL A J
 
presentation on timing diagram
presentation on timing diagrampresentation on timing diagram
presentation on timing diagramAlisha Korpal
 
DELD Unit IV ring and twisted ring counter
DELD Unit IV ring and twisted ring counterDELD Unit IV ring and twisted ring counter
DELD Unit IV ring and twisted ring counterKanchanPatil34
 
Interfacing memory with 8086 microprocessor
Interfacing memory with 8086 microprocessorInterfacing memory with 8086 microprocessor
Interfacing memory with 8086 microprocessorVikas Gupta
 
Counters & time delay
Counters & time delayCounters & time delay
Counters & time delayHemant Chetwani
 
Interfacing with peripherals: analog to digital converters and digital to ana...
Interfacing with peripherals: analog to digital converters and digital to ana...Interfacing with peripherals: analog to digital converters and digital to ana...
Interfacing with peripherals: analog to digital converters and digital to ana...NimeshSingh27
 
8086 pin details
8086 pin details8086 pin details
8086 pin detailsAJAL A J
 
Stack in 8085 microprocessor
Stack in 8085 microprocessorStack in 8085 microprocessor
Stack in 8085 microprocessorhepzijustin
 
Addressing modes of 8051
Addressing modes of 8051Addressing modes of 8051
Addressing modes of 8051SARITHA REDDY
 
Memory & I/O interfacing
Memory & I/O  interfacingMemory & I/O  interfacing
Memory & I/O interfacingdeval patel
 
8051 Microcontroller PPT's By Er. Swapnil Kaware
8051 Microcontroller PPT's By Er. Swapnil Kaware8051 Microcontroller PPT's By Er. Swapnil Kaware
8051 Microcontroller PPT's By Er. Swapnil KawareProf. Swapnil V. Kaware
 
8237 / 8257 DMA
8237 / 8257 DMA8237 / 8257 DMA
8237 / 8257 DMAAJAL A J
 
Types of Addressing modes- COA
Types of Addressing modes- COATypes of Addressing modes- COA
Types of Addressing modes- COARuchi Maurya
 
8086 microprocessor-architecture
8086 microprocessor-architecture8086 microprocessor-architecture
8086 microprocessor-architectureprasadpawaskar
 
Computer architecture input output organization
Computer architecture input output organizationComputer architecture input output organization
Computer architecture input output organizationMazin Alwaaly
 

What's hot (20)

Pipeline hazard
Pipeline hazardPipeline hazard
Pipeline hazard
 
8255 PPI
8255 PPI8255 PPI
8255 PPI
 
Direct access memory
Direct access memoryDirect access memory
Direct access memory
 
presentation on timing diagram
presentation on timing diagrampresentation on timing diagram
presentation on timing diagram
 
DELD Unit IV ring and twisted ring counter
DELD Unit IV ring and twisted ring counterDELD Unit IV ring and twisted ring counter
DELD Unit IV ring and twisted ring counter
 
Interfacing memory with 8086 microprocessor
Interfacing memory with 8086 microprocessorInterfacing memory with 8086 microprocessor
Interfacing memory with 8086 microprocessor
 
Counters & time delay
Counters & time delayCounters & time delay
Counters & time delay
 
8259 a
8259 a8259 a
8259 a
 
Interfacing with peripherals: analog to digital converters and digital to ana...
Interfacing with peripherals: analog to digital converters and digital to ana...Interfacing with peripherals: analog to digital converters and digital to ana...
Interfacing with peripherals: analog to digital converters and digital to ana...
 
8086 pin details
8086 pin details8086 pin details
8086 pin details
 
8086 Instruction set
8086 Instruction set8086 Instruction set
8086 Instruction set
 
Stack in 8085 microprocessor
Stack in 8085 microprocessorStack in 8085 microprocessor
Stack in 8085 microprocessor
 
Addressing modes of 8051
Addressing modes of 8051Addressing modes of 8051
Addressing modes of 8051
 
Memory & I/O interfacing
Memory & I/O  interfacingMemory & I/O  interfacing
Memory & I/O interfacing
 
8051 Microcontroller PPT's By Er. Swapnil Kaware
8051 Microcontroller PPT's By Er. Swapnil Kaware8051 Microcontroller PPT's By Er. Swapnil Kaware
8051 Microcontroller PPT's By Er. Swapnil Kaware
 
8237 / 8257 DMA
8237 / 8257 DMA8237 / 8257 DMA
8237 / 8257 DMA
 
Types of Addressing modes- COA
Types of Addressing modes- COATypes of Addressing modes- COA
Types of Addressing modes- COA
 
8086 microprocessor-architecture
8086 microprocessor-architecture8086 microprocessor-architecture
8086 microprocessor-architecture
 
Instruction format
Instruction formatInstruction format
Instruction format
 
Computer architecture input output organization
Computer architecture input output organizationComputer architecture input output organization
Computer architecture input output organization
 

Similar to Timing Diagram.pptx

Timing Diagram 8085.pdf
Timing Diagram 8085.pdfTiming Diagram 8085.pdf
Timing Diagram 8085.pdfkkamaldeep115
 
Timing Diagram.pptx
Timing Diagram.pptxTiming Diagram.pptx
Timing Diagram.pptxssuser823c58
 
5415Microprocessor-Lecture-11.pdf
5415Microprocessor-Lecture-11.pdf5415Microprocessor-Lecture-11.pdf
5415Microprocessor-Lecture-11.pdfAsif Iqbal
 
Timing Diagram of 8085 Instructions.pdf
Timing Diagram of 8085 Instructions.pdfTiming Diagram of 8085 Instructions.pdf
Timing Diagram of 8085 Instructions.pdfVedantSarawagi
 
timing_diagram_of_8085.ppt
timing_diagram_of_8085.ppttiming_diagram_of_8085.ppt
timing_diagram_of_8085.pptAmiShete2
 
Instruction cycle & machine cycle
Instruction cycle & machine cycleInstruction cycle & machine cycle
Instruction cycle & machine cycleManishTadhiyal
 
Unit 2 Timing Diagram.pdf
Unit 2 Timing Diagram.pdfUnit 2 Timing Diagram.pdf
Unit 2 Timing Diagram.pdfHimanshuPant41
 
Clock-8086 bus cycle
Clock-8086 bus cycleClock-8086 bus cycle
Clock-8086 bus cycleRani Rahul
 
Timing diag
Timing diagTiming diag
Timing diagStudent
 
Ree602 microprocessor unit ii
Ree602  microprocessor unit iiRee602  microprocessor unit ii
Ree602 microprocessor unit iiMAHMOOD ilahi
 
Computer Organization : CPU, Memory and I/O organization
Computer Organization : CPU, Memory and I/O organizationComputer Organization : CPU, Memory and I/O organization
Computer Organization : CPU, Memory and I/O organizationAmrutaMehata
 
Machine language program execution 1.1.2.pptx
Machine language program execution 1.1.2.pptxMachine language program execution 1.1.2.pptx
Machine language program execution 1.1.2.pptxAmarRaj22
 
Pin diagram of 8085
Pin diagram of 8085Pin diagram of 8085
Pin diagram of 8085ShivamSood22
 
5 pin-diagram-of-8085-181203034237
5 pin-diagram-of-8085-1812030342375 pin-diagram-of-8085-181203034237
5 pin-diagram-of-8085-181203034237sunilkumar4879
 
Machine cycles
Machine cyclesMachine cycles
Machine cyclesWafaAbied
 
timing_diagram_of_8085.pptx
timing_diagram_of_8085.pptxtiming_diagram_of_8085.pptx
timing_diagram_of_8085.pptxBhagyarajKosamia
 
Control unit design
Control unit designControl unit design
Control unit designDhaval Bagal
 

Similar to Timing Diagram.pptx (20)

Timing Diagram.pptx
Timing Diagram.pptxTiming Diagram.pptx
Timing Diagram.pptx
 
Machine cycles
Machine cyclesMachine cycles
Machine cycles
 
Timing Diagram 8085.pdf
Timing Diagram 8085.pdfTiming Diagram 8085.pdf
Timing Diagram 8085.pdf
 
Timing Diagram.pptx
Timing Diagram.pptxTiming Diagram.pptx
Timing Diagram.pptx
 
5415Microprocessor-Lecture-11.pdf
5415Microprocessor-Lecture-11.pdf5415Microprocessor-Lecture-11.pdf
5415Microprocessor-Lecture-11.pdf
 
Timing Diagram of 8085 Instructions.pdf
Timing Diagram of 8085 Instructions.pdfTiming Diagram of 8085 Instructions.pdf
Timing Diagram of 8085 Instructions.pdf
 
timing_diagram_of_8085.ppt
timing_diagram_of_8085.ppttiming_diagram_of_8085.ppt
timing_diagram_of_8085.ppt
 
Instruction cycle & machine cycle
Instruction cycle & machine cycleInstruction cycle & machine cycle
Instruction cycle & machine cycle
 
Unit 2 Timing Diagram.pdf
Unit 2 Timing Diagram.pdfUnit 2 Timing Diagram.pdf
Unit 2 Timing Diagram.pdf
 
Clock-8086 bus cycle
Clock-8086 bus cycleClock-8086 bus cycle
Clock-8086 bus cycle
 
Timing diag
Timing diagTiming diag
Timing diag
 
Ree602 microprocessor unit ii
Ree602  microprocessor unit iiRee602  microprocessor unit ii
Ree602 microprocessor unit ii
 
Computer Organization : CPU, Memory and I/O organization
Computer Organization : CPU, Memory and I/O organizationComputer Organization : CPU, Memory and I/O organization
Computer Organization : CPU, Memory and I/O organization
 
Machine language program execution 1.1.2.pptx
Machine language program execution 1.1.2.pptxMachine language program execution 1.1.2.pptx
Machine language program execution 1.1.2.pptx
 
Pin diagram of 8085
Pin diagram of 8085Pin diagram of 8085
Pin diagram of 8085
 
5 pin-diagram-of-8085-181203034237
5 pin-diagram-of-8085-1812030342375 pin-diagram-of-8085-181203034237
5 pin-diagram-of-8085-181203034237
 
Machine cycles
Machine cyclesMachine cycles
Machine cycles
 
timing_diagram_of_8085.pptx
timing_diagram_of_8085.pptxtiming_diagram_of_8085.pptx
timing_diagram_of_8085.pptx
 
Chapter 8
Chapter 8Chapter 8
Chapter 8
 
Control unit design
Control unit designControl unit design
Control unit design
 

More from ISMT College

Time delays & counter.ppt
Time delays & counter.pptTime delays & counter.ppt
Time delays & counter.pptISMT College
 
4. Instruction Set Of MP 8085.pptx
4. Instruction Set Of MP 8085.pptx4. Instruction Set Of MP 8085.pptx
4. Instruction Set Of MP 8085.pptxISMT College
 
3. Addressing Modes in 8085 microprocessor.pptx
3. Addressing Modes in 8085 microprocessor.pptx3. Addressing Modes in 8085 microprocessor.pptx
3. Addressing Modes in 8085 microprocessor.pptxISMT College
 
2. 8085-Microprocessor.pptx
2. 8085-Microprocessor.pptx2. 8085-Microprocessor.pptx
2. 8085-Microprocessor.pptxISMT College
 
1. Introduction to Microprocessor.pptx
1. Introduction to Microprocessor.pptx1. Introduction to Microprocessor.pptx
1. Introduction to Microprocessor.pptxISMT College
 
Digital Logic BCA TU Chapter 2.2
Digital Logic BCA TU Chapter 2.2Digital Logic BCA TU Chapter 2.2
Digital Logic BCA TU Chapter 2.2ISMT College
 
Chapter 1 Introduction to Digital Logic
Chapter 1 Introduction to Digital LogicChapter 1 Introduction to Digital Logic
Chapter 1 Introduction to Digital LogicISMT College
 
Access Control List (ACL)
Access Control List (ACL)Access Control List (ACL)
Access Control List (ACL)ISMT College
 
Introduction to Counters
Introduction to CountersIntroduction to Counters
Introduction to CountersISMT College
 
Chapter 2.1 introduction to number system
Chapter 2.1 introduction to number systemChapter 2.1 introduction to number system
Chapter 2.1 introduction to number systemISMT College
 
Chapter 1 Introduction to Digital Logic
Chapter 1 Introduction to Digital LogicChapter 1 Introduction to Digital Logic
Chapter 1 Introduction to Digital LogicISMT College
 
Programmable logic devices
Programmable logic devicesProgrammable logic devices
Programmable logic devicesISMT College
 
Basic Gates in Digital Logic
Basic Gates in Digital LogicBasic Gates in Digital Logic
Basic Gates in Digital LogicISMT College
 
Adder & subtractor (Half adder, Full adder, Half subtractor, Full subtractor)
Adder & subtractor (Half adder, Full adder, Half subtractor, Full subtractor)Adder & subtractor (Half adder, Full adder, Half subtractor, Full subtractor)
Adder & subtractor (Half adder, Full adder, Half subtractor, Full subtractor)ISMT College
 
Register in Digital Logic
Register in Digital LogicRegister in Digital Logic
Register in Digital LogicISMT College
 

More from ISMT College (18)

Attack.pptx
Attack.pptxAttack.pptx
Attack.pptx
 
Time delays & counter.ppt
Time delays & counter.pptTime delays & counter.ppt
Time delays & counter.ppt
 
4. Instruction Set Of MP 8085.pptx
4. Instruction Set Of MP 8085.pptx4. Instruction Set Of MP 8085.pptx
4. Instruction Set Of MP 8085.pptx
 
Instruction.pdf
Instruction.pdfInstruction.pdf
Instruction.pdf
 
3. Addressing Modes in 8085 microprocessor.pptx
3. Addressing Modes in 8085 microprocessor.pptx3. Addressing Modes in 8085 microprocessor.pptx
3. Addressing Modes in 8085 microprocessor.pptx
 
2. 8085-Microprocessor.pptx
2. 8085-Microprocessor.pptx2. 8085-Microprocessor.pptx
2. 8085-Microprocessor.pptx
 
1. Introduction to Microprocessor.pptx
1. Introduction to Microprocessor.pptx1. Introduction to Microprocessor.pptx
1. Introduction to Microprocessor.pptx
 
Digital Logic BCA TU Chapter 2.2
Digital Logic BCA TU Chapter 2.2Digital Logic BCA TU Chapter 2.2
Digital Logic BCA TU Chapter 2.2
 
Chapter 1 Introduction to Digital Logic
Chapter 1 Introduction to Digital LogicChapter 1 Introduction to Digital Logic
Chapter 1 Introduction to Digital Logic
 
VLAN
VLANVLAN
VLAN
 
Access Control List (ACL)
Access Control List (ACL)Access Control List (ACL)
Access Control List (ACL)
 
Introduction to Counters
Introduction to CountersIntroduction to Counters
Introduction to Counters
 
Chapter 2.1 introduction to number system
Chapter 2.1 introduction to number systemChapter 2.1 introduction to number system
Chapter 2.1 introduction to number system
 
Chapter 1 Introduction to Digital Logic
Chapter 1 Introduction to Digital LogicChapter 1 Introduction to Digital Logic
Chapter 1 Introduction to Digital Logic
 
Programmable logic devices
Programmable logic devicesProgrammable logic devices
Programmable logic devices
 
Basic Gates in Digital Logic
Basic Gates in Digital LogicBasic Gates in Digital Logic
Basic Gates in Digital Logic
 
Adder & subtractor (Half adder, Full adder, Half subtractor, Full subtractor)
Adder & subtractor (Half adder, Full adder, Half subtractor, Full subtractor)Adder & subtractor (Half adder, Full adder, Half subtractor, Full subtractor)
Adder & subtractor (Half adder, Full adder, Half subtractor, Full subtractor)
 
Register in Digital Logic
Register in Digital LogicRegister in Digital Logic
Register in Digital Logic
 

Recently uploaded

GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSCAESB
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidNikhilNagaraju
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSRajkumarAkumalla
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝soniya singh
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptxthe ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptxhumanexperienceaaa
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxpranjaldaimarysona
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 

Recently uploaded (20)

Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentation
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfid
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptxthe ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 

Timing Diagram.pptx

  • 2. Instruction cycle • Instructions are contained in the memory and is pointed by the program counter. • It is first moved to the instruction register and is decoded in binary form and stored as an instruction in the memory. • The computer takes a certain period to complete this task i.e., instruction fetching, decoding and executing on the basis of clock speed. • Such a time period is called ‘Instruction cycle’ and consists two cycles namely Fetch cycle and Execute cycle. 2
  • 3. Instruction cycle • Instruction cycle can be defined as the time taken to complete an instruction. • We can also say that an instruction cycle is defined as the sequence of operations that are required by the CPU to fetch an instruction and data from the memory and to execute it. • The instruction cycle consists of a fetch cycle and a execute cycle. • The sequence of operations which are required to fetch an opcode from the memory constitute a fetch cycle. • The necessary steps which are required to get data from the memory and to perform the operation specified by an instruction constitute an execute cycle. 3
  • 4. • Instruction Cycle = Fetch Cycle + Execute Cycle • An instruction cycle consists of one to six machine cycles 4
  • 5. Machine Cycle • Each READ or WRITE operations of the 8085 is referred to as Machine Cycle. • An 8085 instruction’s execution consists of a number of machine cycles. • These cycles vary from one to five (M1 to M5) depending on the instruction. • Each machine cycle contains a number of clock cycles (also referred to as T-states). 5
  • 6. • The time required to complete one operation; accessing either the memory or I/O device. • A machine cycle consists of three to six T-states. 6
  • 7. T-state • T-state may be defined as the time taken by the clock to complete one period. • Time corresponding to one clock period. • It is the basic unit to calculate execution of instructions or programs in a processor. • A T-state is measured from the falling edge of one clock pulse to the falling edge of the next clock pulse. • Fetch cycle takes four t-states and execution cycle takes three t-states 7
  • 9. T-States, Machine and Instruction Cycle 9 Instruction Cycle Machine Cycle T-States Time required to complete execution of an instruction. Time required by the microprocessor to complete an operation. Operation performed in one clock period.
  • 10. T-States • “T-States are defined as operation performed in one clock period.” • These sub-divisions are internal states synchronized with system clock & each T-state is precisely equal to one clock period. 10 CLK Clock Period
  • 11. Machine Cycle • “Machine Cycle is defined as time required by the microprocessor to complete an operation.“ • This cycle may consist 3 to 6 T-states. • The basic microprocessor operation such as reading a byte from I/O port or writing a byte to memory. 11 T1 T2 T3 T4 T1 T2 T3 T1 T2 T3 Opcode Fetch Memory Read CLK I/O Write Machine Cycle-1 Machine Cycle-2 Machine Cycle-3 m/m Read
  • 12. Instruction Cycle • “Instruction Cycle is defined as time required to complete execution of an instruction. “ • In 8085 microprocessor instruction cycle consists of 1 to 6 Machine Cycles or 1 to 6 operations. 12 CLK
  • 14. Timing Diagram • Representation of Various Control signals generated during Execution of an Instruction. • Following Buses and Control Signals must be shown in a Timing Diagram: •Higher Order Address Bus. •Lower Address/Data bus •ALE •RD •WR •IO/M’ 14
  • 15. 15 High order memory address Unspecified Low order M/m addr. Opcode CLK A8 AD0 AD7 ALE IO/M RD A15 Opcode Fetch
  • 16. 16 High order memory address Low order M/m addr. Data from memory CLK A8 AD0 AD7 ALE IO/M RD A15 Memory read cycle S1 S0 Mode 0 0 HLT 0 1 WRITE 1 0 READ IO/M=0, S1=1 , S0=0 S1 S0
  • 17. 17 High order memory address Low order M/m addr. Data from Microprocessor CLK A8 AD0 AD7 ALE IO/M WR A15 Memory write cycle S1 S0 Mode 0 0 HLT 0 1 WRITE 1 0 READ IO/M=0, S1=0 , S0=1 S0 S1
  • 18. 18 High order I/O address Low order I/O addr. I/O data CLK A8 AD0 AD7 ALE IOR A15 I/O read cycle S1 S0 Mode 0 0 HLT 0 1 WRITE 1 0 READ IO/M=1, S1=1 , S0=0 IO/M S1 S0
  • 19. 19 High order I/O address Low order I/O addr. Data from Microprocessor CLK A8 AD0 AD7 ALE IOW A15 I/O write cycle S1 S0 Mode 0 0 HLT 0 1 WRITE 1 0 READ IO/M=1, S1=0 , S0=1 IO/M S0 S1
  • 20. 20 Timing Diagram : MOV B,M T1 T2 T3 T4 T5 T6 T7 CLK A8 AD0 AD7 ALE IO/M A15 High order memory address Unspe cified High order memory address Low order M/m addr. Opcode Low order M/m addr. Data from memory RD Opcode Fetch Memory Read
  • 21. 21 Timing Diagram : MVI A, 32H T1 T2 T3 T4 T5 T6 T7 CLK A8 AD0 AD7 ALE IO/M A15 High order memory address Unspe cified High order memory address Low order M/m addr. Opcode Low order M/m addr. Read Immediate RD Opcode Fetch Memory Read
  • 22. Calculate Execution time of MVI A,32H Given: Clock Frequency (f) = 2 MHz Calculation: Step-1: T-state = clock period = 1 𝑓 = 1 2 = 0.5 sec Step-2: Execution time for Opcode Fetch = 4T x 0.5 = 2sec Step-3: Execution time for Memory Read = 3T x 0.5 = 1.5sec Step-4: Execution time for Instruction = (4T + 3T) x 0.5 = 7T x 0.5 = 3.5sec 22
  • 23. Timing Diagram : IN 02H Opcode Fetch Memory Read T1 T2 T3 T4 T1 T2 T3 T1 T2 T3 CLK A8 AD0 AD7 ALE IO/M A15 High order memory address High order memory address Unspecif ied Port address 02H RD IOR Low addr 02H Low addr Opcode Port addr Acc. content I/O Read 23
  • 24. Timing Diagram : OUT 02H Opcode Fetch Memory Read T1 T2 T3 T4 T1 T2 T3 T1 T2 T3 CLK A8 AD0 AD7 ALE IO/M A15 High order memory address High order memory address Unspecif ied Port address 02H RD IOW Low addr 02H Low addr Opcode Port addr Acc. content I/O Write 24
  • 25. More Notes in with explanation 25
  • 26. MACHINE CYCLES OF 8085 The 8085 microprocessor has 5 basic machine cycles. They are 1. Opcode fetch cycle (4T) 2. Memory read cycle (3 T) 3. Memory write cycle (3 T) 4. I/O read cycle (3 T) 5. I/O write cycle (3 T)
  • 27. MACHINE CYCLES OF 8085 • The processor takes a definite time to execute the machine cycles. The time taken by the processor to execute a machine cycle is expressed in T-states. • One T-state is equal to the time period of the internal clock signal of the processor. • The T-state starts at the falling edge of a clock.
  • 28. OPCODE FETCH MACHINE CYCLE OF 8085
  • 29. OPCODE FETCH MACHINE CYCLE OF 8085 • Each instruction of the processor has one byte opcode. • The opcodes are stored in memory. So, the processor executes the opcode fetch machine cycle to fetch the opcode from memory. • Hence, every instruction starts with opcode fetch machine cycle. • The time taken by the processor to execute the opcode fetch cycle is 4T. • In this time, the first, 3 T-states are used for fetching the opcode from memory and the remaining T-states are used for internal operations by the processor.
  • 30. MEMORY READ MACHINE CYCLE OF 8085
  • 31. MEMORY READ MACHINE CYCLE OF 8085 • The memory read machine cycle is executed by the processor to read a data byte from memory. • The processor takes 3T states to execute this cycle • The instructions which have more than one byte word size will use the machine cycle after the opcode fetch machine cycle.
  • 32. MEMORY WRITE MACHINE CYCLE OF 8085
  • 33. MEMORY WRITE MACHINE CYCLE OF 8085 • The memory write machine cycle is executed by the processor to write a data byte in a memory location. • The processor takes, 3T states to execute this machine cycle
  • 34. I/O READ CYCLE OF 8085 • The I/O Read cycle is executed by the processor to read a data byte from I/O port or from the peripheral. • The processor takes 3T states to execute this machine cycle. • The IN instruction uses this machine cycle during the execution.
  • 35. I/O READ CYCLE OF 8085
  • 36. I/O WRITE CYCLE OF 8085 • The I/O write machine cycle is executed by the processor to write a data byte in the I/O port or to a peripheral, which is I/O, mapped in the system. • The processor takes, 3T states to execute this machine cycle.
  • 37. I/O WRITE CYCLE OF 8085