How can I understand whether an instruction is a fetch or read or

  • Thread starter Thread starter kuchun
  • Start date Start date
  • Tags Tags
    Instruction
Click For Summary

Discussion Overview

The discussion focuses on understanding the distinctions between fetch, read, and write instructions in the context of the 8085 microprocessor. Participants explore the timing diagrams associated with these operations and inquire about the number of T states required for specific instructions.

Discussion Character

  • Technical explanation
  • Conceptual clarification
  • Debate/contested
  • Homework-related

Main Points Raised

  • One participant seeks clarification on how to differentiate between fetch, read, and write instructions, specifically in relation to the 8085 microprocessor.
  • Another participant explains that a "fetch" refers to the read cycle for instruction bytes, while "read" and "write" instructions pertain to data operations in memory.
  • A participant questions the timing diagram of the opcode fetch instruction, noting discrepancies in the duration of the ALE signal and the AD0-AD7 lines during the first T-state.
  • Further elaboration is provided regarding the timing of the ALE signal and the behavior of address lines in relation to clock edges and potential delays.
  • A participant expresses interest in the timing diagram for the CALL instruction in the 8085 microprocessor.

Areas of Agreement / Disagreement

Participants present various viewpoints on the timing diagrams and the behavior of signals, indicating that there is no consensus on the specifics of the timing behavior or the use of delay circuits in the 8085.

Contextual Notes

Some assumptions about the timing diagrams and the operation of the 8085 microprocessor remain unresolved, particularly regarding the behavior of signals during specific T-states and the potential for one-shot delay circuits.

kuchun
Messages
11
Reaction score
1
How can I understand whether an instruction is a fetch or read or write instruction?..Please explain with examples of microprocessor 8085 instruction.
How can I count the no. of T states required by a particular 8085 microprocessor instruction?
Thank you
 
Computer science news on Phys.org


A "fetch" means the read cycle used to read the code bytes that make up an instruction. There isn't a "fetch" instruction. A "read" instruction is one that reads data from memory (like LDA), and a "write" instruction is one that writes data (like STA).

For the number of cycles for each instruction do a web search for "8085 opcode". Here's an example:

http://www.pastraiser.com/cpu/i8085/i8085_opcodes.html

Just curious, why the 8085? Are these still available?
 


Thanks for your quick reply..I got the picture..But I have another question regarding the timing diagram of opcode fetch instruction:
We know that for the 1st T-state of the fetch cycle "ALE" signal remains high, thus enabling the AD0-AD7 to carry the lower order address.. But in the timing diagram the "ALE" signal is shown high only for a part of the 1st T-state, not for the total duration of the 1st T-state, whereas the AD0-AD7 lines carry the lower order memory address for the total duration of the 1st T-state..How is it possible?
 


kuchun said:
Thanks for your quick reply..I got the picture..But I have another question regarding the timing diagram of opcode fetch instruction: We know that for the 1st T-state of the fetch cycle "ALE" signal remains high, thus enabling the AD0-AD7 to carry the lower order address.. But in the timing diagram the "ALE" signal is shown high only for a part of the 1st T-state, not for the total duration of the 1st T-state, whereas the AD0-AD7 lines carry the lower order memory address for the total duration of the 1st T-state..How is it possible?
This is an edge triggered device. The rising or falling edges of the primary clock drives everything else, with a slight delay, which may or may not be shown in these timing diagrams. ALE drops on the rising edge of the clock. The address lines are guaranteed to be set and stable when ALE drops, and that is when the 8085 latches used to hold an address are triggered. It doesn't matter when AD0-AD7 are dropped, as long as they are dropped long enough after ALE is dropped to not corrupt the address latches. AD0-AD7 are probably dropped on the next primary clock edge.

I don't know if an 8085 uses anyone shot delay circuits which can create delays independent of the primary clock. A one shot delay circuit relies on a fixed or programmable number of gate delays thorugh a series of transitors to generate a crude fixed pulse duration independent of the primary clock. These are not that accurate because gate delays can vary a bit from chip to chip.
 


I want to know the timing diagram of CALL instruction in 8085..
 

Similar threads

  • · Replies 29 ·
Replies
29
Views
4K
Replies
10
Views
4K
  • · Replies 1 ·
Replies
1
Views
980
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 25 ·
Replies
25
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K