Académique Documents
Professionnel Documents
Culture Documents
diagram
Instruction cycle:
Thistermisdefinedasthenumberofstepsrequiredbythecpu
tocompletetheentireprocessie.Fetchingandexecutionofone
instruction.Thefetchandexecutecyclesarecarriedoutin
synchronizationwiththeclock.
In the 8085, an instruction cycle may consist of 1 to 6 machine
cycles.
Machine cycle:
Itisthetimerequiredbythemicroprocessortocompletethe
operationofaccessingthememorydevicesorI/Odevices.In
machinecyclevariousoperationslikeopcodefetch,memoryread,
memorywrite,I/Oread,I/Owriteareperformed.
AD7-AD0 Latch
A7-A0
D7-D0
2001H 32
The Memory Write Operation
In a memory write operation:
The 8085 places the address on the address
bus
Identifies the operation as a memory write
(IO/M=0, s1=0, s0=1).
Places the contents of the accumulator on the
data bus and asserts the signal WR.
During the last T-state, the contents of the
data bus are saved into the memory location.
I/O read operation
It is used to fetch one byte from an IO port.
It requires 3 T-States.
During T1, The Lower Byte of IO address is duplicated into higher order address
bus A8-A15.
During T2, ALE goes low, RD (bar) goes low and data appears on AD0-AD7 as
input from IO device.
It requires 3 T-States.
During T2, ALE goes low, WR (bar) goes low and data appears
on AD0-AD7 to write data into IO device.
During T3, Data remains on AD0-AD7 till WR(bar) is low.