SlideShare a Scribd company logo
• THE TIME NEEDED FOR COMPLETING ONE OPERATION OF ACCESSING
MEMORY, I/O OR ACKNOWLEDGING AN EXTERNAL REQUEST IS TERMED AS
MACHINE CYCLE. IT IS COMPRISED OF T-STATES.
T-STATE
• ONE PORTION OF THE OPERATION COMPLETED IN ONE CLOCK PERIOD IS TERMED AS T-
STATE.
8085 PROCESSOR HAVE 7 BASIC MACHINE CYCLES:
1. OPCODE FETCH (OF)
2. MEMORY READ (MR)
3. MEMORY WRITE (MW)
4. I/O READ (IOR)
5. I/O WRITE (IOW)
6. INTERRUPT ACKNOWLEDGE (IA)
7. BUS IDLE (B)
• THE OPCODE IS STORED IN MEMORY. IN ORDER TO
FETCH THE OPCODE FROM MEMORY, PROCESSOR
EXECUTES THE OPCODE FETCH MACHINE
CYCLE. SO, EVERY INSTRUCTION STARTS WITH
OPCODE FETCH MACHINE (OFM) CYCLE.
• THE TIME TAKEN BY THE MICROPROCESSOR TO
EXECUTE THE OPCODE FETCH CYCLE IS 4T (T-
STATES).
• INORDER TO FETCH THE OPCODE FROM MEMORY,
THE FIRST 3 T-STATES ARE USED. THE REMAINING
T-STATE IS USED FOR INTERNAL OPERATIONS BY THE
MICROPROCESSOR.
S. No T state Operation
1
T1
The microprocessor places the higher order 8-bits of the memory address on A15 – A8
address bus and the lower order 8-bits of the memory address on AD7 – AD0 address /
data bus.
2 The microprocessor makes the ALE signal HIGH and at the middle of T1 state, ALE signal
goes LOW.
3 The status signals are changed as IO/𝑀’ = 0, S1 =1 and S0 = 1. These status signals do
not change throughout the OF machine cycle.
4
T2
The microprocessor makes the RD’ line LOW to enable memory read and increments the
Program Counter.
5 The contents on D7 – D0 (i.e. the Opcode) are placed on the address / data bus.
6
T3
The microprocessor transfers the Opcode on the address / data bus to Instruction
Register (IR).
7 The microprocessor makes the RD’ line HIGH to disable memory read.
8 T4
The microprocessor decodes the instruction.
• Single byte instructions require only
Opcode Fetch machine cycles. But, 2-
byte and 3-byte instructions require
additional machine cycles to read the
operands from memory. The
additional machine cycle is called
Memory Read machine cycle.
• The MR machine cycle takes 3 T-
states.
Sr.No T state Operation
1
T1
The microprocessor places the higher order 8-bits of the memory address on A15 – A8
address bus and the lower order 8-bits of the memory address on AD7 – AD0 address /
data bus.
2 The microprocessor make the ALE Signal HIGH and at the middle of T1 state ,ALE signal
goes LOW
3 The status signals are changed as IO/𝑀’ = 0, S1 =1 and S0 = 0. These status signals do
not change throughout the memory read machine cycle.
4
T2
The microprocessor makes the RD’ line LOW to enable memory read and increments
the Program Counter.
5 The contents on D7 – D0 (i.e. the data) are placed on the address / data bus.
6
T3
The data loaded on the address / data bus is moved to the microprocessor.
7 The microprocessor makes the RD’ line HIGH to disable the memory read operation.
• Microprocessor uses the Memory
Write machine cycle for sending
the data in one of the registers to
memory.
• The MW machine cycle takes 3 T-
states.
S. No T state Operation
1
T1
The microprocessor places the higher order 8-bits of the memory address on A15 – A8
address bus and the lower order 8-bits of the memory address on AD7 – AD0 address /
data bus.
2 The microprocessor makes the ALE signal HIGH and at the middle of T1 state, ALE signal
goes LOW.
3 The status signals are changed as IO/𝑀’ = 0, S1 =0 and S0 = 1. These status signals do
not change throughout the memory write machine cycle.
4
T2
The microprocessor makes the 𝑊𝑅’ line LOW to enable memory write.
5 The contents of the specified register are placed on the address / data bus.
6
T3
The data placed on the address / data bus is transferred to the specified memory
location.
7 The microprocessor makes the 𝑊𝑅’ line HIGH to disable the memory write operation.
• Microprocessor uses the I/O Read
machine cycle for receiving a data
byte from the I/O port or from the
peripheral in I/O mapped I/O
systems.
• The IN instruction uses this machine
cycle during execution. The IOR
machine cycle takes 3 T-states.
S. No T state Operation
1
T1
The microprocessor places the address of the I/O port specified in the instruction on
A15 – A8 address bus and also on AD7 – AD0 address / data bus.
2 The microprocessor makes the ALE signal HIGH and at the middle of T1 state, ALE signal
goes LOW.
3 The status signals are changed as IO/𝑀’ = 0, S1 =1 and S0 = 0. These status signals do
not change throughout the I/O read machine cycle.
4
T2
The microprocessor makes the 𝑅𝐷’ line LOW to enable I/O read.
5 The contents on D7 – D0 (i.e. the data) are placed on the address / data bus.
6
T3
The data loaded on the address / data bus is moved to the microprocessor ie., to the
accumulator.
7 The microprocessor makes the 𝑅𝐷’ line HIGH to disable the I/O read operation.
• Microprocessor uses the I/O Write
machine cycle for sending a data
byte to the I/O port or to the
peripheral in I/O mapped I/O
systems.
• The OUT instruction uses this
machine cycle during execution.
• The IOR machine cycle takes 3 T-
states.
S. No T state Operation
1
T1
The microprocessor places the address of the I/O port specified in the instruction on
A15 – A8 address bus and also on AD7 – AD0 address / data bus.
2 The microprocessor makes the ALE signal HIGH and at the middle of T1 state, ALE signal
goes LOW.
3 The status signals are changed as IO/𝑀’ = 0, S1 =0 and S0 = 1. These status signals do
not change throughout the I/O write machine cycle.
4
T2
The microprocessor makes the 𝑊𝑅’ line LOW to enable I/O write.
5 The contents of the Accumulator are placed on the address / data bus.
6
T3
The data placed on the address / data bus is transferred to the specified I/O port.
7 The microprocessor makes the 𝑊𝑅’ line HIGH to disable the I/O write operation
IN RESPONSE TO INTR SIGNAL, 8085 EXECUTES INTERRUPT ACKNOWLEDGE MACHINE CYCLE
TO READ AN INSTRUCTION FROM THE EXTERNAL DEVICE. THEORETICALLY, THE EXTERNAL
DEVICE CAN PLACE ANY INSTRUCTION ON THE DATA BUS IN RESPONSE TO INTA. HOWEVER,
ONLY RST AND CALL, SAVE THE PC CONTENTS (RETURN ADDRESS) BEFORE TRANSFERRING
CONTROL TO THE INTERRUPT SERVICE ROUTINE. THE NEXT SECTIONS EXPLAIN INTERRUPT
ACKNOWLEDGE CYCLE OF 8085 FOR RST AND CALL INSTRUCTIONS.
The interrupt
acknowledge cycle is
similar to the opcode
fetch cycle, with two
exceptions.The INTA
signal is activated
instead of the RD
signal.The status lines
(IO/M, S0 and S1) are
111 instead of 011:
RST Instruction
CALL Instruction
• THERE ARE FEW SITUATIONS WHERE THE MACHINE CYCLES ARE NEITHER READ NOR WRITE.
THESE SITUATIONS ARE:
• FOR EXECUTION OF DAD INSTRUCTION (THIS INSTRUCTION ADDS THE CONTENTS OF A
SPECIFIED REGISTER PAIR TO THE CONTENTS OF HL REGISTER PAIR) TEN T STATES ARE
REQUIRED. THIS MEANS THAT AFTER EXECUTION OF OPCODE FETCH MACHINE CYCLE, DAD
INSTRUCTION REQUIRES 6 EXTRA T-STATES TO ADD 16 BIT CONTENTS OF A SPECIFIED
REGISTER PAIR TO THE CONTENTS OF HL REGISTER PAIR. THESE EXTRA T-STATES WHICH ARE
DIVIDED INTO TWO MACHINE CYCLES DO NOT INVOLVE ANY MEMORY OR I/O OPERATION.
THESE MACHINE CYCLE IN 8085 ARE CALLED BUS IDLE MACHINE CYCLES
Bus Idle Cycle
THANK YOU

More Related Content

Similar to COA PRESENTATION 8085 machine cycle.pptx

PPT-1.pptx
PPT-1.pptxPPT-1.pptx
PPT-1.pptx
Ansal Valappil
 
PPT-1.pptx
PPT-1.pptxPPT-1.pptx
PPT-1.pptx
Ansal Valappil
 
timing_diagram_of_8085.pptx
timing_diagram_of_8085.pptxtiming_diagram_of_8085.pptx
timing_diagram_of_8085.pptx
BhagyarajKosamia
 
T-states in microprocessor 8085
T-states in microprocessor 8085T-states in microprocessor 8085
T-states in microprocessor 8085yedles
 
8085
80858085
8085
tsajuraj
 
8085 Architecture
8085 Architecture8085 Architecture
8085 Architecture
tsajuraj
 
architect.ppt
architect.pptarchitect.ppt
architect.ppt
SELVAPRIYAA2
 
MICROPROCESSOR AND INTERFACING
MICROPROCESSOR AND INTERFACING MICROPROCESSOR AND INTERFACING
MICROPROCESSOR AND INTERFACING
Radhika Talaviya
 
8085 (1)
8085 (1)8085 (1)
8085 (1)
Mani Kandan K
 
EE8551 mpmc unit 1 module 5
EE8551 mpmc unit 1   module 5EE8551 mpmc unit 1   module 5
EE8551 mpmc unit 1 module 5
CHAIRMA LAKSHMI
 
Microprocessor Basics 8085 Ch-1
Microprocessor Basics 8085 Ch-1Microprocessor Basics 8085 Ch-1
Microprocessor Basics 8085 Ch-1
Neelam Kapoor
 
8085 microproceesor ppt
8085 microproceesor ppt8085 microproceesor ppt
8085 microproceesor ppt
RJ Aniket
 
Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086
anil_gaur
 
EEE- BEE603 - Microprocessor and Microcontroller- Mr K Dwarakesh_220819_18121...
EEE- BEE603 - Microprocessor and Microcontroller- Mr K Dwarakesh_220819_18121...EEE- BEE603 - Microprocessor and Microcontroller- Mr K Dwarakesh_220819_18121...
EEE- BEE603 - Microprocessor and Microcontroller- Mr K Dwarakesh_220819_18121...
NaWinNK
 
Microprocessor and Microcontroller.pdf
Microprocessor and Microcontroller.pdfMicroprocessor and Microcontroller.pdf
Microprocessor and Microcontroller.pdf
Latif Khan
 
unit 4 mc.pdf
unit 4 mc.pdfunit 4 mc.pdf
unit 4 mc.pdf
ssuserdd904d
 
Pin diagram of 8085
Pin diagram of 8085Pin diagram of 8085
Pin diagram of 8085
ShivamSood22
 
5 pin-diagram-of-8085-181203034237
5 pin-diagram-of-8085-1812030342375 pin-diagram-of-8085-181203034237
5 pin-diagram-of-8085-181203034237
sunilkumar4879
 
Chapter 2_1(8086 System configuration).pptx
Chapter 2_1(8086 System configuration).pptxChapter 2_1(8086 System configuration).pptx
Chapter 2_1(8086 System configuration).pptx
melaku76
 

Similar to COA PRESENTATION 8085 machine cycle.pptx (20)

8086 micro processor
8086 micro processor8086 micro processor
8086 micro processor
 
PPT-1.pptx
PPT-1.pptxPPT-1.pptx
PPT-1.pptx
 
PPT-1.pptx
PPT-1.pptxPPT-1.pptx
PPT-1.pptx
 
timing_diagram_of_8085.pptx
timing_diagram_of_8085.pptxtiming_diagram_of_8085.pptx
timing_diagram_of_8085.pptx
 
T-states in microprocessor 8085
T-states in microprocessor 8085T-states in microprocessor 8085
T-states in microprocessor 8085
 
8085
80858085
8085
 
8085 Architecture
8085 Architecture8085 Architecture
8085 Architecture
 
architect.ppt
architect.pptarchitect.ppt
architect.ppt
 
MICROPROCESSOR AND INTERFACING
MICROPROCESSOR AND INTERFACING MICROPROCESSOR AND INTERFACING
MICROPROCESSOR AND INTERFACING
 
8085 (1)
8085 (1)8085 (1)
8085 (1)
 
EE8551 mpmc unit 1 module 5
EE8551 mpmc unit 1   module 5EE8551 mpmc unit 1   module 5
EE8551 mpmc unit 1 module 5
 
Microprocessor Basics 8085 Ch-1
Microprocessor Basics 8085 Ch-1Microprocessor Basics 8085 Ch-1
Microprocessor Basics 8085 Ch-1
 
8085 microproceesor ppt
8085 microproceesor ppt8085 microproceesor ppt
8085 microproceesor ppt
 
Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086
 
EEE- BEE603 - Microprocessor and Microcontroller- Mr K Dwarakesh_220819_18121...
EEE- BEE603 - Microprocessor and Microcontroller- Mr K Dwarakesh_220819_18121...EEE- BEE603 - Microprocessor and Microcontroller- Mr K Dwarakesh_220819_18121...
EEE- BEE603 - Microprocessor and Microcontroller- Mr K Dwarakesh_220819_18121...
 
Microprocessor and Microcontroller.pdf
Microprocessor and Microcontroller.pdfMicroprocessor and Microcontroller.pdf
Microprocessor and Microcontroller.pdf
 
unit 4 mc.pdf
unit 4 mc.pdfunit 4 mc.pdf
unit 4 mc.pdf
 
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
 
Chapter 2_1(8086 System configuration).pptx
Chapter 2_1(8086 System configuration).pptxChapter 2_1(8086 System configuration).pptx
Chapter 2_1(8086 System configuration).pptx
 

Recently uploaded

top nidhi software solution freedownload
top nidhi software solution freedownloadtop nidhi software solution freedownload
top nidhi software solution freedownload
vrstrong314
 
Lecture 1 Introduction to games development
Lecture 1 Introduction to games developmentLecture 1 Introduction to games development
Lecture 1 Introduction to games development
abdulrafaychaudhry
 
Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus Compute wth IRI Workflows - GlobusWorld 2024Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus
 
Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024
Globus
 
Visitor Management System in India- Vizman.app
Visitor Management System in India- Vizman.appVisitor Management System in India- Vizman.app
Visitor Management System in India- Vizman.app
NaapbooksPrivateLimi
 
How to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good PracticesHow to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good Practices
Globus
 
Using IESVE for Room Loads Analysis - Australia & New Zealand
Using IESVE for Room Loads Analysis - Australia & New ZealandUsing IESVE for Room Loads Analysis - Australia & New Zealand
Using IESVE for Room Loads Analysis - Australia & New Zealand
IES VE
 
Designing for Privacy in Amazon Web Services
Designing for Privacy in Amazon Web ServicesDesigning for Privacy in Amazon Web Services
Designing for Privacy in Amazon Web Services
KrzysztofKkol1
 
Quarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden ExtensionsQuarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden Extensions
Max Andersen
 
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoamOpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
takuyayamamoto1800
 
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
Juraj Vysvader
 
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERRORTROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
Tier1 app
 
Into the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdfInto the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdf
Ortus Solutions, Corp
 
Software Testing Exam imp Ques Notes.pdf
Software Testing Exam imp Ques Notes.pdfSoftware Testing Exam imp Ques Notes.pdf
Software Testing Exam imp Ques Notes.pdf
MayankTawar1
 
Vitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume MontevideoVitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume Montevideo
Vitthal Shirke
 
Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024
Globus
 
Strategies for Successful Data Migration Tools.pptx
Strategies for Successful Data Migration Tools.pptxStrategies for Successful Data Migration Tools.pptx
Strategies for Successful Data Migration Tools.pptx
varshanayak241
 
Multiple Your Crypto Portfolio with the Innovative Features of Advanced Crypt...
Multiple Your Crypto Portfolio with the Innovative Features of Advanced Crypt...Multiple Your Crypto Portfolio with the Innovative Features of Advanced Crypt...
Multiple Your Crypto Portfolio with the Innovative Features of Advanced Crypt...
Hivelance Technology
 
First Steps with Globus Compute Multi-User Endpoints
First Steps with Globus Compute Multi-User EndpointsFirst Steps with Globus Compute Multi-User Endpoints
First Steps with Globus Compute Multi-User Endpoints
Globus
 
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
Globus
 

Recently uploaded (20)

top nidhi software solution freedownload
top nidhi software solution freedownloadtop nidhi software solution freedownload
top nidhi software solution freedownload
 
Lecture 1 Introduction to games development
Lecture 1 Introduction to games developmentLecture 1 Introduction to games development
Lecture 1 Introduction to games development
 
Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus Compute wth IRI Workflows - GlobusWorld 2024Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus Compute wth IRI Workflows - GlobusWorld 2024
 
Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024
 
Visitor Management System in India- Vizman.app
Visitor Management System in India- Vizman.appVisitor Management System in India- Vizman.app
Visitor Management System in India- Vizman.app
 
How to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good PracticesHow to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good Practices
 
Using IESVE for Room Loads Analysis - Australia & New Zealand
Using IESVE for Room Loads Analysis - Australia & New ZealandUsing IESVE for Room Loads Analysis - Australia & New Zealand
Using IESVE for Room Loads Analysis - Australia & New Zealand
 
Designing for Privacy in Amazon Web Services
Designing for Privacy in Amazon Web ServicesDesigning for Privacy in Amazon Web Services
Designing for Privacy in Amazon Web Services
 
Quarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden ExtensionsQuarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden Extensions
 
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoamOpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
 
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
 
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERRORTROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
 
Into the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdfInto the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdf
 
Software Testing Exam imp Ques Notes.pdf
Software Testing Exam imp Ques Notes.pdfSoftware Testing Exam imp Ques Notes.pdf
Software Testing Exam imp Ques Notes.pdf
 
Vitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume MontevideoVitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume Montevideo
 
Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024
 
Strategies for Successful Data Migration Tools.pptx
Strategies for Successful Data Migration Tools.pptxStrategies for Successful Data Migration Tools.pptx
Strategies for Successful Data Migration Tools.pptx
 
Multiple Your Crypto Portfolio with the Innovative Features of Advanced Crypt...
Multiple Your Crypto Portfolio with the Innovative Features of Advanced Crypt...Multiple Your Crypto Portfolio with the Innovative Features of Advanced Crypt...
Multiple Your Crypto Portfolio with the Innovative Features of Advanced Crypt...
 
First Steps with Globus Compute Multi-User Endpoints
First Steps with Globus Compute Multi-User EndpointsFirst Steps with Globus Compute Multi-User Endpoints
First Steps with Globus Compute Multi-User Endpoints
 
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
 

COA PRESENTATION 8085 machine cycle.pptx

  • 1.
  • 2. • THE TIME NEEDED FOR COMPLETING ONE OPERATION OF ACCESSING MEMORY, I/O OR ACKNOWLEDGING AN EXTERNAL REQUEST IS TERMED AS MACHINE CYCLE. IT IS COMPRISED OF T-STATES. T-STATE • ONE PORTION OF THE OPERATION COMPLETED IN ONE CLOCK PERIOD IS TERMED AS T- STATE.
  • 3. 8085 PROCESSOR HAVE 7 BASIC MACHINE CYCLES: 1. OPCODE FETCH (OF) 2. MEMORY READ (MR) 3. MEMORY WRITE (MW) 4. I/O READ (IOR) 5. I/O WRITE (IOW) 6. INTERRUPT ACKNOWLEDGE (IA) 7. BUS IDLE (B)
  • 4. • THE OPCODE IS STORED IN MEMORY. IN ORDER TO FETCH THE OPCODE FROM MEMORY, PROCESSOR EXECUTES THE OPCODE FETCH MACHINE CYCLE. SO, EVERY INSTRUCTION STARTS WITH OPCODE FETCH MACHINE (OFM) CYCLE. • THE TIME TAKEN BY THE MICROPROCESSOR TO EXECUTE THE OPCODE FETCH CYCLE IS 4T (T- STATES). • INORDER TO FETCH THE OPCODE FROM MEMORY, THE FIRST 3 T-STATES ARE USED. THE REMAINING T-STATE IS USED FOR INTERNAL OPERATIONS BY THE MICROPROCESSOR.
  • 5. S. No T state Operation 1 T1 The microprocessor places the higher order 8-bits of the memory address on A15 – A8 address bus and the lower order 8-bits of the memory address on AD7 – AD0 address / data bus. 2 The microprocessor makes the ALE signal HIGH and at the middle of T1 state, ALE signal goes LOW. 3 The status signals are changed as IO/𝑀’ = 0, S1 =1 and S0 = 1. These status signals do not change throughout the OF machine cycle. 4 T2 The microprocessor makes the RD’ line LOW to enable memory read and increments the Program Counter. 5 The contents on D7 – D0 (i.e. the Opcode) are placed on the address / data bus. 6 T3 The microprocessor transfers the Opcode on the address / data bus to Instruction Register (IR). 7 The microprocessor makes the RD’ line HIGH to disable memory read. 8 T4 The microprocessor decodes the instruction.
  • 6. • Single byte instructions require only Opcode Fetch machine cycles. But, 2- byte and 3-byte instructions require additional machine cycles to read the operands from memory. The additional machine cycle is called Memory Read machine cycle. • The MR machine cycle takes 3 T- states.
  • 7. Sr.No T state Operation 1 T1 The microprocessor places the higher order 8-bits of the memory address on A15 – A8 address bus and the lower order 8-bits of the memory address on AD7 – AD0 address / data bus. 2 The microprocessor make the ALE Signal HIGH and at the middle of T1 state ,ALE signal goes LOW 3 The status signals are changed as IO/𝑀’ = 0, S1 =1 and S0 = 0. These status signals do not change throughout the memory read machine cycle. 4 T2 The microprocessor makes the RD’ line LOW to enable memory read and increments the Program Counter. 5 The contents on D7 – D0 (i.e. the data) are placed on the address / data bus. 6 T3 The data loaded on the address / data bus is moved to the microprocessor. 7 The microprocessor makes the RD’ line HIGH to disable the memory read operation.
  • 8. • Microprocessor uses the Memory Write machine cycle for sending the data in one of the registers to memory. • The MW machine cycle takes 3 T- states.
  • 9. S. No T state Operation 1 T1 The microprocessor places the higher order 8-bits of the memory address on A15 – A8 address bus and the lower order 8-bits of the memory address on AD7 – AD0 address / data bus. 2 The microprocessor makes the ALE signal HIGH and at the middle of T1 state, ALE signal goes LOW. 3 The status signals are changed as IO/𝑀’ = 0, S1 =0 and S0 = 1. These status signals do not change throughout the memory write machine cycle. 4 T2 The microprocessor makes the 𝑊𝑅’ line LOW to enable memory write. 5 The contents of the specified register are placed on the address / data bus. 6 T3 The data placed on the address / data bus is transferred to the specified memory location. 7 The microprocessor makes the 𝑊𝑅’ line HIGH to disable the memory write operation.
  • 10. • Microprocessor uses the I/O Read machine cycle for receiving a data byte from the I/O port or from the peripheral in I/O mapped I/O systems. • The IN instruction uses this machine cycle during execution. The IOR machine cycle takes 3 T-states.
  • 11. S. No T state Operation 1 T1 The microprocessor places the address of the I/O port specified in the instruction on A15 – A8 address bus and also on AD7 – AD0 address / data bus. 2 The microprocessor makes the ALE signal HIGH and at the middle of T1 state, ALE signal goes LOW. 3 The status signals are changed as IO/𝑀’ = 0, S1 =1 and S0 = 0. These status signals do not change throughout the I/O read machine cycle. 4 T2 The microprocessor makes the 𝑅𝐷’ line LOW to enable I/O read. 5 The contents on D7 – D0 (i.e. the data) are placed on the address / data bus. 6 T3 The data loaded on the address / data bus is moved to the microprocessor ie., to the accumulator. 7 The microprocessor makes the 𝑅𝐷’ line HIGH to disable the I/O read operation.
  • 12. • Microprocessor uses the I/O Write machine cycle for sending a data byte to the I/O port or to the peripheral in I/O mapped I/O systems. • The OUT instruction uses this machine cycle during execution. • The IOR machine cycle takes 3 T- states.
  • 13. S. No T state Operation 1 T1 The microprocessor places the address of the I/O port specified in the instruction on A15 – A8 address bus and also on AD7 – AD0 address / data bus. 2 The microprocessor makes the ALE signal HIGH and at the middle of T1 state, ALE signal goes LOW. 3 The status signals are changed as IO/𝑀’ = 0, S1 =0 and S0 = 1. These status signals do not change throughout the I/O write machine cycle. 4 T2 The microprocessor makes the 𝑊𝑅’ line LOW to enable I/O write. 5 The contents of the Accumulator are placed on the address / data bus. 6 T3 The data placed on the address / data bus is transferred to the specified I/O port. 7 The microprocessor makes the 𝑊𝑅’ line HIGH to disable the I/O write operation
  • 14. IN RESPONSE TO INTR SIGNAL, 8085 EXECUTES INTERRUPT ACKNOWLEDGE MACHINE CYCLE TO READ AN INSTRUCTION FROM THE EXTERNAL DEVICE. THEORETICALLY, THE EXTERNAL DEVICE CAN PLACE ANY INSTRUCTION ON THE DATA BUS IN RESPONSE TO INTA. HOWEVER, ONLY RST AND CALL, SAVE THE PC CONTENTS (RETURN ADDRESS) BEFORE TRANSFERRING CONTROL TO THE INTERRUPT SERVICE ROUTINE. THE NEXT SECTIONS EXPLAIN INTERRUPT ACKNOWLEDGE CYCLE OF 8085 FOR RST AND CALL INSTRUCTIONS.
  • 15. The interrupt acknowledge cycle is similar to the opcode fetch cycle, with two exceptions.The INTA signal is activated instead of the RD signal.The status lines (IO/M, S0 and S1) are 111 instead of 011: RST Instruction
  • 17. • THERE ARE FEW SITUATIONS WHERE THE MACHINE CYCLES ARE NEITHER READ NOR WRITE. THESE SITUATIONS ARE: • FOR EXECUTION OF DAD INSTRUCTION (THIS INSTRUCTION ADDS THE CONTENTS OF A SPECIFIED REGISTER PAIR TO THE CONTENTS OF HL REGISTER PAIR) TEN T STATES ARE REQUIRED. THIS MEANS THAT AFTER EXECUTION OF OPCODE FETCH MACHINE CYCLE, DAD INSTRUCTION REQUIRES 6 EXTRA T-STATES TO ADD 16 BIT CONTENTS OF A SPECIFIED REGISTER PAIR TO THE CONTENTS OF HL REGISTER PAIR. THESE EXTRA T-STATES WHICH ARE DIVIDED INTO TWO MACHINE CYCLES DO NOT INVOLVE ANY MEMORY OR I/O OPERATION. THESE MACHINE CYCLE IN 8085 ARE CALLED BUS IDLE MACHINE CYCLES Bus Idle Cycle
  • 18.