2. MACHINE CYCLE
β’ One cycle of clock is called a state or t-state.
β’ The bus cycle of the 8086 microprocessor consists of at least four
clock periods.
β’ These four time states are called T1, T2, T3 and T4.
β’ This group of states is called a MACHINE CYCLE.
β’ The total time required to fetch and execute an instruction is called
an INSTRUCTION CYCLE.
β’ An instruction cycle consists of one or more machine cycle.
4. 8086 Read bus cycle
β’ At the first clocking period in a bus cycle T1:
β’ The address of the memory or I/O location is sent out via the address
bus and the address/data bus connections.
β’ (The address/data bus is multiplexed and sometimes contains
memory-addressing information, sometimes data.)
β’ During TI, control signals ALE, ππβπΜ , and π/ ππΜ Μ Μ are also output.
β’ The ππ/ πΜ or π/ ππΜ Μ Μ
signal indicates whether the address bus
contains a memory address or an I/O device (port) number.
5. 8086 Read bus cycle
β’ During T2:
β’ The ππΜ Μ Μ Μ
or ππ Μ Μ Μ Μ Μ
signal, DEN, and in the case of a write, the data to be
written appear on the data bus.
β’ These events cause the memory or I/O device to begin to perform a
read or a write.
β’ The πππ Μ Μ Μ Μ Μ Μ
signal the data bus buffers, If this happens to be a write bus
cycle, the data are sent out to the memory or I/O through the data
bus.
β’ READY is sampled at the end of T2 , If READY is low at this time, T3
becomes a wait state (Tw)
6. 8086 Read bus cycle
β’ During Tw: This clocking period is provided to allow the memory time
to access data.
β’ If the bus cycle happens to be a read bus cycle, the data bus is
sampled at the end of T3.
β’ During T4: All bus signals are deactivated in preparation for the next
bus cycle. This is also the time when the 8086 samples the data bus
connections for data that are read from memory or I/O.
β’ In addition, at this point, the trailing edge of the ππ Μ Μ Μ Μ Μ
signal transfers
data to the memory or I/O, which activates and writes when the ππ Μ Μ Μ Μ Μ
signal returns to logic 1 level.
8. 8086 Write bus cycle
β’ If data are written to the memory then the microprocessor outputs
the memory address on the address bus, outputs the data to be
written into memory on the data bus, and issues a write (ππΜ Μ Μ Μ Μ
) to
memory and ππ/ πΜ = 0 for the 8088 and π/ ππΜ Μ Μ
= 1 for the 8086.
β’ If data are read from the memory then the microprocessor outputs
the memory address on the address bus, issues a read memory signal
(ππΜ Μ Μ Μ
), and accepts the data via the data bus.