SlideShare a Scribd company logo
State Transition
Diagram
What is State Transition Diagram?
 The state transition diagram represents the microprocessor’s internal
operations, which consists of circle to represent the states and directed
line segments to represent transitions between the states.
 A 8085 microprocessor generally have 10 states i.e. T1, T2, T3, T4, T5 ,T6
,TWAIT, TRESET, THALT, and THOLD.
 T1 to T6 represents the 6 clock cycles of the processor, as usually a machine
cycle consists of 3 to 6 T-states and rest of the states are the different
states achieved by the microprocessor dues to various control signals, e.g.
on receiving RESET signal processor in the TRESET state and similarly on
receiving HOLD signal it is in the THOLD state.
 The next state in the state transition diagram is decided by many of the
control signals i.e. INTERRUPT SIGNALS, HOLD, RESETIN , HALT, READY.
States of 8085
 When the 8085 switched on or the RESETIN control signal is low, then the
microprocessor is in the TRESET state and remains in this state until the RESETIN
signal remains low.
 When RESETIN become 1, then the microprocessor will go into the T1 state of a
machine cycle.
 Whenever the HLT instruction executes the microprocessor enters into the
THALT state.
 8085 microprocessor remains in the Twait state until READY pin is low. This
usually happens when the microprocessor in interacting with the slow memory,
in which microprocessor has to wait for some clock cycles until the memory is
ready with data.
 When there is high on the HOLD pin of 8085 the microprocessor enters into
the THOLD state. HOLD pin become HIGH when DMA wants to access the buses.
THALT state
 Whenever the HLT instruction executes, the 8085 enters into the THALT
state.
 When the current fetched instruction is HLT, then in T4 state the control
unit decodes the opcode of HLT and set an internal HALT flip-flop of
microprocessor. After T4 the microprocessor enters into the T1 state of the
next machine cycle.
 After entering into the T1 cycle of next machine cycle, microprocessor
always checks the HALT flip-flip, which might be set in the pervious clock
cycle.
 If it is found set then, instead of entering into the T2 microprocessor
enters into the THALT state otherwise in the T2.
 Thus 5 T- states , T1 , T2, T3, T4 of the current machine cycle and T1 of the
next machine cycle, are required to reach the THALT state.
THALT state
 In the HALT state, the address and address/data buses along with RD, WR , IO/
M are placed in their high independence states (floated).
 There are only three ways to exit from a THALT state.
1. A low an RESETIN input of the 8085 resets the entire system and, comes out
of THALT state and enters into TRESET state and remains their as long as RESETIN
is active.
2. The second way to get out of the THALT state is to make the HOLD signal input
high. The processor then enters into the THOLD state, but when the HOLD pin
goes low again, the CPU returns to the THALT state.
3. The third method of coming out of a THALT state is when an interrupt signal is
active. This method works only if interrupts were enabled with an enable
interrupt (IE) instruction in the program before HALT instruction is executed.
Whenever interrupt comes microprocessor leaves the THALT state and start
executing the ISR.
Transition Diagram of THALT State
TWAIT State
 Sometimes µΡ is used with memories or I/O devices which have longer
access time. To accommodate long access time, the 8085A has a state
called the TWAIT state.
 If the µΡ doesn't enter into THALT state, then it proceeds into the T2 state of
the machine cycle. Here it cheeks the READY pin.
 If READY pin is low, means I/O devices or memory are not ready, so
processor has to wait, then the µΡ goes to the TWAIT state and remains
there until READY pin goes high. If READY line is high then the µΡ enters
into the T3 state.
 When the READY signal becomes logic ‘1’ the µΡ comes out of TWAIT state
and enters into T3 state and the current machine cycle continues, TWAIT
states continues to be inserted as long as READY is low.
State Transition Diagram of TWAIT state
HOLD State THOLD
 Before going to the T3 state from T2 state, after check for the READY pin, 8085
verifies whether the HOLD pin is high or not. If it is HIGH, the microprocessor sets
the HLDA flip-flop before enters into the T3 state.
 The µΡ enter in this state, if same external device wants direct memory access so
that a stirs of data can be transferred at a fast rate. The device requesting for DMA
makes the HOLD signal input high.
 There are two possibilities when HOLD signal become High.
1. The µΡ may be in the THALT state and then the HOLD signal input becomes high. In
this situation, the µΡ first sets the HLDA F/F. (HOLD acknowledge F/F) & then enters
the THOLD state.
2. the µΡ is executing same m/c cycle. While execution µΡ cheek the HOLD signal at
some unique points during a m/c cycle, usually after every 2 clock cycles i.e. after
T2 and T4.
HOLD State THOLD
 HOLD signal is asynchronous is nature. The µΡ synchronize this request and at
proper time in a m/c cycle by providing the HLDA signal by setting HLDA F/F- for the
requesting device. The THOLD state is entered after current m/c cycle is completed.
 The HOLD signal is checked during T2 state after (READY input has been checked)
and also during T4 state (provided if the concerned m/c cycle requires T5& T6 state,
also).
 If the HOLD signal is found high the HLDA F/F is set and the processor enter the
THOLD state after the current m/c cycle.
 The microprocessor exits the THOLD state when HOLD pin becomes 0 and continuous
its previous operation from the point at which it was suspended by the HOLD
request. On exiting the THOLD state, it resets the HLDA f/f and check for the HALT f/f.
Contd.
 If the HALT f/f is found to be set then the microprocessor enters into the THALT state
else enters into the T1 state of the next machine cycle.
 Before enter into the T1 state of the next machine cycle, microprocessor checks whether
it is the last machine cycle of the current instruction cycle or not. If it is the last machine
cycle then check for the interrupt otherwise enters into the T1 state of next machine
cycle.
 Microprocessor does not check for the interrupt request until the end of the instruction
cycle, however it checks for the HOLD signal after every machine cycle and enters into
THOLD state at the end of current machine cycle if the signal is active.
Transition diagram of THOLD state
State transition diagram 8085

More Related Content

What's hot

Unit 3 mpmc
Unit 3 mpmcUnit 3 mpmc
Unit 3 mpmc
tamilnesaner
 
8085 interrupts
8085 interrupts8085 interrupts
8085 interrupts
Ram Babu
 
8085 Architecture & Memory Interfacing1
8085 Architecture & Memory Interfacing18085 Architecture & Memory Interfacing1
8085 Architecture & Memory Interfacing1
techbed
 
Shifters
ShiftersShifters
Addressing sequencing
Addressing sequencingAddressing sequencing
Addressing sequencing
rajshreemuthiah
 
Interfacing external memory in 8051
Interfacing external memory in 8051Interfacing external memory in 8051
Interfacing external memory in 8051
ssuser3a47cb
 
8086 in minimum mode
8086 in minimum mode8086 in minimum mode
8086 in minimum mode
Sridari Iyer
 
System bus timing 8086
System bus timing 8086System bus timing 8086
System bus timing 8086
mpsrekha83
 
Microprogram Control
Microprogram Control Microprogram Control
Microprogram Control
Anuj Modi
 
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
Prof. Swapnil V. Kaware
 
Interfacing LCD with 8051 Microcontroller
Interfacing LCD with 8051 MicrocontrollerInterfacing LCD with 8051 Microcontroller
Interfacing LCD with 8051 Microcontroller
Pantech ProLabs India Pvt Ltd
 
8085 interfacing with memory chips
8085 interfacing with memory chips8085 interfacing with memory chips
8085 interfacing with memory chips
Srikrishna Thota
 
8086 microprocessor-architecture
8086 microprocessor-architecture8086 microprocessor-architecture
8086 microprocessor-architecture
prasadpawaskar
 
Memory interfacing of microcontroller 8051
Memory interfacing of microcontroller 8051Memory interfacing of microcontroller 8051
Memory interfacing of microcontroller 8051
Nilesh Bhaskarrao Bahadure
 
8086 memory segmentation
8086 memory segmentation8086 memory segmentation
8086 memory segmentation
mahalakshmimalini
 
8086 pin diagram description
8086 pin diagram description8086 pin diagram description
8086 pin diagram description
Akhil Singal
 
Direct memory access (dma) with 8257 DMA Controller
Direct memory access (dma) with 8257 DMA ControllerDirect memory access (dma) with 8257 DMA Controller
Direct memory access (dma) with 8257 DMA Controller
Muhammed Afsal Villan
 
8259 Programmable Interrupt Controller by vijay
8259 Programmable Interrupt Controller by vijay8259 Programmable Interrupt Controller by vijay
8259 Programmable Interrupt Controller by vijay
Vijay Kumar
 
Serial Communication in 8051
Serial Communication in 8051Serial Communication in 8051
Serial Communication in 8051
Sudhanshu Janwadkar
 
Microprocessor 8085 complete
Microprocessor 8085 completeMicroprocessor 8085 complete
Microprocessor 8085 complete
Shubham Singh
 

What's hot (20)

Unit 3 mpmc
Unit 3 mpmcUnit 3 mpmc
Unit 3 mpmc
 
8085 interrupts
8085 interrupts8085 interrupts
8085 interrupts
 
8085 Architecture & Memory Interfacing1
8085 Architecture & Memory Interfacing18085 Architecture & Memory Interfacing1
8085 Architecture & Memory Interfacing1
 
Shifters
ShiftersShifters
Shifters
 
Addressing sequencing
Addressing sequencingAddressing sequencing
Addressing sequencing
 
Interfacing external memory in 8051
Interfacing external memory in 8051Interfacing external memory in 8051
Interfacing external memory in 8051
 
8086 in minimum mode
8086 in minimum mode8086 in minimum mode
8086 in minimum mode
 
System bus timing 8086
System bus timing 8086System bus timing 8086
System bus timing 8086
 
Microprogram Control
Microprogram Control Microprogram Control
Microprogram Control
 
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
 
Interfacing LCD with 8051 Microcontroller
Interfacing LCD with 8051 MicrocontrollerInterfacing LCD with 8051 Microcontroller
Interfacing LCD with 8051 Microcontroller
 
8085 interfacing with memory chips
8085 interfacing with memory chips8085 interfacing with memory chips
8085 interfacing with memory chips
 
8086 microprocessor-architecture
8086 microprocessor-architecture8086 microprocessor-architecture
8086 microprocessor-architecture
 
Memory interfacing of microcontroller 8051
Memory interfacing of microcontroller 8051Memory interfacing of microcontroller 8051
Memory interfacing of microcontroller 8051
 
8086 memory segmentation
8086 memory segmentation8086 memory segmentation
8086 memory segmentation
 
8086 pin diagram description
8086 pin diagram description8086 pin diagram description
8086 pin diagram description
 
Direct memory access (dma) with 8257 DMA Controller
Direct memory access (dma) with 8257 DMA ControllerDirect memory access (dma) with 8257 DMA Controller
Direct memory access (dma) with 8257 DMA Controller
 
8259 Programmable Interrupt Controller by vijay
8259 Programmable Interrupt Controller by vijay8259 Programmable Interrupt Controller by vijay
8259 Programmable Interrupt Controller by vijay
 
Serial Communication in 8051
Serial Communication in 8051Serial Communication in 8051
Serial Communication in 8051
 
Microprocessor 8085 complete
Microprocessor 8085 completeMicroprocessor 8085 complete
Microprocessor 8085 complete
 

Similar to State transition diagram 8085

Timer programming for 8051 using embedded c
Timer programming for 8051 using embedded cTimer programming for 8051 using embedded c
Timer programming for 8051 using embedded c
Vikas Dongre
 
Timing n interrupt.pptx
Timing n interrupt.pptxTiming n interrupt.pptx
Timing n interrupt.pptx
JasaRChoudhary
 
9 timer programming
9 timer programming9 timer programming
9 timer programming
Channabasappa Kudarihal
 
8086 datasheet
8086 datasheet8086 datasheet
8086 datasheet
8086 datasheet8086 datasheet
8086 datasheet
Renga Prabhu
 
unit 4 mc.pdf
unit 4 mc.pdfunit 4 mc.pdf
unit 4 mc.pdf
ssuserdd904d
 
4.Timer_1.ppt
4.Timer_1.ppt4.Timer_1.ppt
4.Timer_1.ppt
YashwanthChandra7
 
Machine Cycle 1.pptx
Machine Cycle 1.pptxMachine Cycle 1.pptx
Machine Cycle 1.pptx
KiruthikaRajasekaran
 
8051 Timers
8051 Timers8051 Timers
UNIT 5 Interfacing and Mixed Signal Controller.pptx
UNIT 5 Interfacing and Mixed Signal Controller.pptxUNIT 5 Interfacing and Mixed Signal Controller.pptx
UNIT 5 Interfacing and Mixed Signal Controller.pptx
Gowrishankar C
 
SE PAI Unit 5_Timer Programming in 8051 microcontroller_Part 1
SE PAI Unit 5_Timer Programming in 8051 microcontroller_Part 1SE PAI Unit 5_Timer Programming in 8051 microcontroller_Part 1
SE PAI Unit 5_Timer Programming in 8051 microcontroller_Part 1
KanchanPatil34
 
Micro c lab7(timers)
Micro c lab7(timers)Micro c lab7(timers)
Micro c lab7(timers)
Mashood
 
8086 Programing.ppt
8086 Programing.ppt8086 Programing.ppt
8086 Programing.ppt
DrRRAMAN
 
Interrupt programming with 8051 microcontroller
Interrupt programming with 8051  microcontrollerInterrupt programming with 8051  microcontroller
Interrupt programming with 8051 microcontroller
Ankit Bhatnagar
 
Timers
TimersTimers
Timers
afzal pa
 
Pin8086
Pin8086Pin8086
Pin8086
Mohansonale1
 
8051 timers--2
   8051 timers--2   8051 timers--2
8051 timers--2
Syed Basharat Hussain
 
UNIT 5.pptx
UNIT 5.pptxUNIT 5.pptx
UNIT 5.pptx
BASKARS53
 
TIMERS.pptx
TIMERS.pptxTIMERS.pptx
TIMERS.pptx
maheswariM7
 
Unit 2 Timing Diagram.pdf
Unit 2 Timing Diagram.pdfUnit 2 Timing Diagram.pdf
Unit 2 Timing Diagram.pdf
HimanshuPant41
 

Similar to State transition diagram 8085 (20)

Timer programming for 8051 using embedded c
Timer programming for 8051 using embedded cTimer programming for 8051 using embedded c
Timer programming for 8051 using embedded c
 
Timing n interrupt.pptx
Timing n interrupt.pptxTiming n interrupt.pptx
Timing n interrupt.pptx
 
9 timer programming
9 timer programming9 timer programming
9 timer programming
 
8086 datasheet
8086 datasheet8086 datasheet
8086 datasheet
 
8086 datasheet
8086 datasheet8086 datasheet
8086 datasheet
 
unit 4 mc.pdf
unit 4 mc.pdfunit 4 mc.pdf
unit 4 mc.pdf
 
4.Timer_1.ppt
4.Timer_1.ppt4.Timer_1.ppt
4.Timer_1.ppt
 
Machine Cycle 1.pptx
Machine Cycle 1.pptxMachine Cycle 1.pptx
Machine Cycle 1.pptx
 
8051 Timers
8051 Timers8051 Timers
8051 Timers
 
UNIT 5 Interfacing and Mixed Signal Controller.pptx
UNIT 5 Interfacing and Mixed Signal Controller.pptxUNIT 5 Interfacing and Mixed Signal Controller.pptx
UNIT 5 Interfacing and Mixed Signal Controller.pptx
 
SE PAI Unit 5_Timer Programming in 8051 microcontroller_Part 1
SE PAI Unit 5_Timer Programming in 8051 microcontroller_Part 1SE PAI Unit 5_Timer Programming in 8051 microcontroller_Part 1
SE PAI Unit 5_Timer Programming in 8051 microcontroller_Part 1
 
Micro c lab7(timers)
Micro c lab7(timers)Micro c lab7(timers)
Micro c lab7(timers)
 
8086 Programing.ppt
8086 Programing.ppt8086 Programing.ppt
8086 Programing.ppt
 
Interrupt programming with 8051 microcontroller
Interrupt programming with 8051  microcontrollerInterrupt programming with 8051  microcontroller
Interrupt programming with 8051 microcontroller
 
Timers
TimersTimers
Timers
 
Pin8086
Pin8086Pin8086
Pin8086
 
8051 timers--2
   8051 timers--2   8051 timers--2
8051 timers--2
 
UNIT 5.pptx
UNIT 5.pptxUNIT 5.pptx
UNIT 5.pptx
 
TIMERS.pptx
TIMERS.pptxTIMERS.pptx
TIMERS.pptx
 
Unit 2 Timing Diagram.pdf
Unit 2 Timing Diagram.pdfUnit 2 Timing Diagram.pdf
Unit 2 Timing Diagram.pdf
 

More from ShivamSood22

Interrupts of 8085
Interrupts of 8085Interrupts of 8085
Interrupts of 8085
ShivamSood22
 
8257 DMA Controller
8257 DMA Controller8257 DMA Controller
8257 DMA Controller
ShivamSood22
 
8259 Interrupt Controller
8259 Interrupt Controller8259 Interrupt Controller
8259 Interrupt Controller
ShivamSood22
 
8251 USART
8251 USART8251 USART
8251 USART
ShivamSood22
 
Data transfer techniques 8085
Data transfer techniques 8085Data transfer techniques 8085
Data transfer techniques 8085
ShivamSood22
 
Pin diagram of 8085
Pin diagram of 8085Pin diagram of 8085
Pin diagram of 8085
ShivamSood22
 
Addressing modes 8085
Addressing modes 8085Addressing modes 8085
Addressing modes 8085
ShivamSood22
 
Architecture of 8085
Architecture of 8085Architecture of 8085
Architecture of 8085
ShivamSood22
 
Endianness 8085
Endianness 8085Endianness 8085
Endianness 8085
ShivamSood22
 

More from ShivamSood22 (9)

Interrupts of 8085
Interrupts of 8085Interrupts of 8085
Interrupts of 8085
 
8257 DMA Controller
8257 DMA Controller8257 DMA Controller
8257 DMA Controller
 
8259 Interrupt Controller
8259 Interrupt Controller8259 Interrupt Controller
8259 Interrupt Controller
 
8251 USART
8251 USART8251 USART
8251 USART
 
Data transfer techniques 8085
Data transfer techniques 8085Data transfer techniques 8085
Data transfer techniques 8085
 
Pin diagram of 8085
Pin diagram of 8085Pin diagram of 8085
Pin diagram of 8085
 
Addressing modes 8085
Addressing modes 8085Addressing modes 8085
Addressing modes 8085
 
Architecture of 8085
Architecture of 8085Architecture of 8085
Architecture of 8085
 
Endianness 8085
Endianness 8085Endianness 8085
Endianness 8085
 

Recently uploaded

Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
University of Maribor
 
Recycled Concrete Aggregate in Construction Part II
Recycled Concrete Aggregate in Construction Part IIRecycled Concrete Aggregate in Construction Part II
Recycled Concrete Aggregate in Construction Part II
Aditya Rajan Patra
 
ISPM 15 Heat Treated Wood Stamps and why your shipping must have one
ISPM 15 Heat Treated Wood Stamps and why your shipping must have oneISPM 15 Heat Treated Wood Stamps and why your shipping must have one
ISPM 15 Heat Treated Wood Stamps and why your shipping must have one
Las Vegas Warehouse
 
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student MemberIEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
VICTOR MAESTRE RAMIREZ
 
Comparative analysis between traditional aquaponics and reconstructed aquapon...
Comparative analysis between traditional aquaponics and reconstructed aquapon...Comparative analysis between traditional aquaponics and reconstructed aquapon...
Comparative analysis between traditional aquaponics and reconstructed aquapon...
bijceesjournal
 
Properties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptxProperties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptx
MDSABBIROJJAMANPAYEL
 
Textile Chemical Processing and Dyeing.pdf
Textile Chemical Processing and Dyeing.pdfTextile Chemical Processing and Dyeing.pdf
Textile Chemical Processing and Dyeing.pdf
NazakatAliKhoso2
 
Question paper of renewable energy sources
Question paper of renewable energy sourcesQuestion paper of renewable energy sources
Question paper of renewable energy sources
mahammadsalmanmech
 
132/33KV substation case study Presentation
132/33KV substation case study Presentation132/33KV substation case study Presentation
132/33KV substation case study Presentation
kandramariana6
 
Computational Engineering IITH Presentation
Computational Engineering IITH PresentationComputational Engineering IITH Presentation
Computational Engineering IITH Presentation
co23btech11018
 
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
insn4465
 
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdfBPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
MIGUELANGEL966976
 
Generative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of contentGenerative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of content
Hitesh Mohapatra
 
Understanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine LearningUnderstanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine Learning
SUTEJAS
 
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECTCHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
jpsjournal1
 
Manufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptxManufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptx
Madan Karki
 
The Python for beginners. This is an advance computer language.
The Python for beginners. This is an advance computer language.The Python for beginners. This is an advance computer language.
The Python for beginners. This is an advance computer language.
sachin chaurasia
 
Modelagem de um CSTR com reação endotermica.pdf
Modelagem de um CSTR com reação endotermica.pdfModelagem de um CSTR com reação endotermica.pdf
Modelagem de um CSTR com reação endotermica.pdf
camseq
 
New techniques for characterising damage in rock slopes.pdf
New techniques for characterising damage in rock slopes.pdfNew techniques for characterising damage in rock slopes.pdf
New techniques for characterising damage in rock slopes.pdf
wisnuprabawa3
 
spirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptxspirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptx
Madan Karki
 

Recently uploaded (20)

Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
 
Recycled Concrete Aggregate in Construction Part II
Recycled Concrete Aggregate in Construction Part IIRecycled Concrete Aggregate in Construction Part II
Recycled Concrete Aggregate in Construction Part II
 
ISPM 15 Heat Treated Wood Stamps and why your shipping must have one
ISPM 15 Heat Treated Wood Stamps and why your shipping must have oneISPM 15 Heat Treated Wood Stamps and why your shipping must have one
ISPM 15 Heat Treated Wood Stamps and why your shipping must have one
 
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student MemberIEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
 
Comparative analysis between traditional aquaponics and reconstructed aquapon...
Comparative analysis between traditional aquaponics and reconstructed aquapon...Comparative analysis between traditional aquaponics and reconstructed aquapon...
Comparative analysis between traditional aquaponics and reconstructed aquapon...
 
Properties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptxProperties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptx
 
Textile Chemical Processing and Dyeing.pdf
Textile Chemical Processing and Dyeing.pdfTextile Chemical Processing and Dyeing.pdf
Textile Chemical Processing and Dyeing.pdf
 
Question paper of renewable energy sources
Question paper of renewable energy sourcesQuestion paper of renewable energy sources
Question paper of renewable energy sources
 
132/33KV substation case study Presentation
132/33KV substation case study Presentation132/33KV substation case study Presentation
132/33KV substation case study Presentation
 
Computational Engineering IITH Presentation
Computational Engineering IITH PresentationComputational Engineering IITH Presentation
Computational Engineering IITH Presentation
 
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
 
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdfBPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
 
Generative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of contentGenerative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of content
 
Understanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine LearningUnderstanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine Learning
 
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECTCHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
 
Manufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptxManufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptx
 
The Python for beginners. This is an advance computer language.
The Python for beginners. This is an advance computer language.The Python for beginners. This is an advance computer language.
The Python for beginners. This is an advance computer language.
 
Modelagem de um CSTR com reação endotermica.pdf
Modelagem de um CSTR com reação endotermica.pdfModelagem de um CSTR com reação endotermica.pdf
Modelagem de um CSTR com reação endotermica.pdf
 
New techniques for characterising damage in rock slopes.pdf
New techniques for characterising damage in rock slopes.pdfNew techniques for characterising damage in rock slopes.pdf
New techniques for characterising damage in rock slopes.pdf
 
spirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptxspirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptx
 

State transition diagram 8085

  • 2. What is State Transition Diagram?  The state transition diagram represents the microprocessor’s internal operations, which consists of circle to represent the states and directed line segments to represent transitions between the states.  A 8085 microprocessor generally have 10 states i.e. T1, T2, T3, T4, T5 ,T6 ,TWAIT, TRESET, THALT, and THOLD.  T1 to T6 represents the 6 clock cycles of the processor, as usually a machine cycle consists of 3 to 6 T-states and rest of the states are the different states achieved by the microprocessor dues to various control signals, e.g. on receiving RESET signal processor in the TRESET state and similarly on receiving HOLD signal it is in the THOLD state.  The next state in the state transition diagram is decided by many of the control signals i.e. INTERRUPT SIGNALS, HOLD, RESETIN , HALT, READY.
  • 3. States of 8085  When the 8085 switched on or the RESETIN control signal is low, then the microprocessor is in the TRESET state and remains in this state until the RESETIN signal remains low.  When RESETIN become 1, then the microprocessor will go into the T1 state of a machine cycle.  Whenever the HLT instruction executes the microprocessor enters into the THALT state.  8085 microprocessor remains in the Twait state until READY pin is low. This usually happens when the microprocessor in interacting with the slow memory, in which microprocessor has to wait for some clock cycles until the memory is ready with data.  When there is high on the HOLD pin of 8085 the microprocessor enters into the THOLD state. HOLD pin become HIGH when DMA wants to access the buses.
  • 4. THALT state  Whenever the HLT instruction executes, the 8085 enters into the THALT state.  When the current fetched instruction is HLT, then in T4 state the control unit decodes the opcode of HLT and set an internal HALT flip-flop of microprocessor. After T4 the microprocessor enters into the T1 state of the next machine cycle.  After entering into the T1 cycle of next machine cycle, microprocessor always checks the HALT flip-flip, which might be set in the pervious clock cycle.  If it is found set then, instead of entering into the T2 microprocessor enters into the THALT state otherwise in the T2.  Thus 5 T- states , T1 , T2, T3, T4 of the current machine cycle and T1 of the next machine cycle, are required to reach the THALT state.
  • 5. THALT state  In the HALT state, the address and address/data buses along with RD, WR , IO/ M are placed in their high independence states (floated).  There are only three ways to exit from a THALT state. 1. A low an RESETIN input of the 8085 resets the entire system and, comes out of THALT state and enters into TRESET state and remains their as long as RESETIN is active. 2. The second way to get out of the THALT state is to make the HOLD signal input high. The processor then enters into the THOLD state, but when the HOLD pin goes low again, the CPU returns to the THALT state. 3. The third method of coming out of a THALT state is when an interrupt signal is active. This method works only if interrupts were enabled with an enable interrupt (IE) instruction in the program before HALT instruction is executed. Whenever interrupt comes microprocessor leaves the THALT state and start executing the ISR.
  • 6. Transition Diagram of THALT State
  • 7. TWAIT State  Sometimes µΡ is used with memories or I/O devices which have longer access time. To accommodate long access time, the 8085A has a state called the TWAIT state.  If the µΡ doesn't enter into THALT state, then it proceeds into the T2 state of the machine cycle. Here it cheeks the READY pin.  If READY pin is low, means I/O devices or memory are not ready, so processor has to wait, then the µΡ goes to the TWAIT state and remains there until READY pin goes high. If READY line is high then the µΡ enters into the T3 state.  When the READY signal becomes logic ‘1’ the µΡ comes out of TWAIT state and enters into T3 state and the current machine cycle continues, TWAIT states continues to be inserted as long as READY is low.
  • 8. State Transition Diagram of TWAIT state
  • 9. HOLD State THOLD  Before going to the T3 state from T2 state, after check for the READY pin, 8085 verifies whether the HOLD pin is high or not. If it is HIGH, the microprocessor sets the HLDA flip-flop before enters into the T3 state.  The µΡ enter in this state, if same external device wants direct memory access so that a stirs of data can be transferred at a fast rate. The device requesting for DMA makes the HOLD signal input high.  There are two possibilities when HOLD signal become High. 1. The µΡ may be in the THALT state and then the HOLD signal input becomes high. In this situation, the µΡ first sets the HLDA F/F. (HOLD acknowledge F/F) & then enters the THOLD state. 2. the µΡ is executing same m/c cycle. While execution µΡ cheek the HOLD signal at some unique points during a m/c cycle, usually after every 2 clock cycles i.e. after T2 and T4.
  • 10. HOLD State THOLD  HOLD signal is asynchronous is nature. The µΡ synchronize this request and at proper time in a m/c cycle by providing the HLDA signal by setting HLDA F/F- for the requesting device. The THOLD state is entered after current m/c cycle is completed.  The HOLD signal is checked during T2 state after (READY input has been checked) and also during T4 state (provided if the concerned m/c cycle requires T5& T6 state, also).  If the HOLD signal is found high the HLDA F/F is set and the processor enter the THOLD state after the current m/c cycle.  The microprocessor exits the THOLD state when HOLD pin becomes 0 and continuous its previous operation from the point at which it was suspended by the HOLD request. On exiting the THOLD state, it resets the HLDA f/f and check for the HALT f/f.
  • 11. Contd.  If the HALT f/f is found to be set then the microprocessor enters into the THALT state else enters into the T1 state of the next machine cycle.  Before enter into the T1 state of the next machine cycle, microprocessor checks whether it is the last machine cycle of the current instruction cycle or not. If it is the last machine cycle then check for the interrupt otherwise enters into the T1 state of next machine cycle.  Microprocessor does not check for the interrupt request until the end of the instruction cycle, however it checks for the HOLD signal after every machine cycle and enters into THOLD state at the end of current machine cycle if the signal is active.
  • 12. Transition diagram of THOLD state