Professional Documents
Culture Documents
Timing Diagram MP 8085
Timing Diagram MP 8085
Instructions
Timing Diagram
• Timing Diagram is a graphical representation.
– The time required to access the memory or input/output devices is called machine
cycle.
• Each instruction of the 8085 processor consists of one to five machine cycles, i.e., when
the 8085 processor executes an instruction, it will execute some of the machine cycles in
a specific order.
Instruction Cycle
•When S1S0 = 00, ie µP is in halt state, it will not use external bus, so any other device can use
external bus if required.
•For reading and writing operation, µP will generate RD and WR’ signals in the second clock cycle
whereas S1S0 signals are generated in the first clock cycle of machine cycle.
•So, S1S0 signals can be used as reading and writing signals in first clock cycle if required.
•S1S0 signals can be used to distinguish whether µP is reading data from memory (S1S0=10) or
opcode from memory (S1S0=11)
Opcode Fetch Machine Cycle Of 8085
• The opcodes are stored in memory. So, the processor executes the
opcode fetch machine cycle to fetch the opcode from memory.
• 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.
• The total time required by µP to transfer 8-bit instruction opcode from
selected memory location to instruction register and to decode this opcode is
called OFMC
– T1 Clock Cycle: µP will transfer 16-bit memory location address from PC to
address pins A15 –A8 and AD7-AD0. To latch 8 LSBs of address AD7 to AD0 pins
µP gives logic 1 pulse on ALE. At the same time µP gives IO/M’=0 and the status
output S1S0=11. The 16 bit memory location address with IO/M’=0 is used to select
1 memory location.
– T2 Clock Cycle: µP will remove 8 LSBs of address from address pins AD7 to AD0
pins. So, AD7 to AD0 pins becomes floating and then µP gives RD’=0. So 8 bit
instruction opcode is transferred from selected memory location to µP data pins
AD7-AD0.
– T3 Clock Cycle: µP will transfer 8 bit instruction code from data pins AD7-AD0 to
IR.
• T2 Clock cycle: µP will remove 8 LSBs of Address from AD7 to AD0 pins and
then µP gives RD’=0, so 8 bit data is transferred from selected memory location/ IO
port to µP data pins AD7 to AD0.
• T3 Clock Cycle: µP will transfer 8 bit data from data pins AD7 to AD0 to
corresponding internal 8 bit register
Memory Write/ IO Write Machine Cycle
Of 8085
• The memory write machine cycle is executed by
the processor to write a data byte in memory. The
processor takes 3T states to execute this cycle.
• The total time required by µP to store 8 bit data of accumulator into one
selected IO port is called as IOWMC. (3 Clock Cycles).
– T1 Clock Cycle: µP will transfer 16 bit memory location address or 8 bit IO port address on address
pins A15 to A8 and AD7 to AD0. To latch 8 LSBs of address of AD7 to ADO pins, µP gives ALE=1.
To indicate that the address on address bus is of IO port/memory, µP gives IO/M’=1/0 respectively. At
the same time, µP will output status S1S0=10. 16 bit memory location address with IO/M’=0 is used
to select one memory location. Similarly, 8 bit IO port address with IO/M’ = 1 is used to select one
IO.
– T2 Clock Cycle: µP will remove 8 LSBs of address from AD7 to AD0 pins at the same time µP will
transfer 8 bit data from internal register to AD7 to AD0 pins. Then µP gives writing signal WR’=0.
So, writing operation starts.
– T3 Clock Cycle: The 8 bit data transferred by µP will get stored into selected memory location/ IO
poet i.e data writing operation is completed.
I/O Read Machine Cycle Of 8085
• The I/O Read machine cycle is executed by the
processor to Read a data byte from the I/O port
or from a peripheral, which is I/O, mapped in
the system.
• The processor takes 3T states to execute this
machine cycle.
I/O Write Machine 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.
Notes for Timing Diagram
• OFMC = 4 c/c and rest of the m/c = 3 c/c
• AD7 to AD0:
EXAMPLES
Timing Diagram For MVI B, 43H
• Fetching the opcode 06H from the memory 2000H. (Opcode
fetch machine cycle)
• The opcode of the STA instruction is said to be 32H. It is fetched from the memory 41FFH (see fig). – OF
machine cycle.
• Then the lower order memory address is read(6A). – Memory Read Machine Cycle
• Read the higher order memory address (52) – Memory Read Machine Cycle.
• The combinations of both the addresses are considered and the content from accumulator is written in
526A. – Memory Write Machine Cycle
• Assume the memory address for the instruction and let the content of accumulator is C7H. So, C7H from
accumulator is now stored in 526A.