Presentation on theme: "SYSTEM CLOCK Clock (CLK) : input signal which synchronize the internal and external operations of the microprocessor."— Presentation transcript:
1SYSTEM CLOCKClock (CLK) : input signal which synchronize the internal and external operations of the microprocessor.
2CLOCK GENERATOR ICThe clock source is generated by 8284 ( clock generator and Driver IC )CLK ( 8) of 8284 is connected to pin /80868284 also supplies it with 2 of it's control lines – RESET and READY. The RESET signal does resets the This line can also be used by other peripherals on the computer so that they reset when the 8088 resets.READY used to slow down the 8088 ; Dfrom IO circuit thru RD1 and RD2A crystal oscillator is connected between X1 and X2 which provides a FUNDAMENTAL CRYSTAL FREQUENCY. ( FCF)33% duty cycle the FCF is divided by 3 internally by 8244 to provide the necessary CLKoutput pin pclk provide 50% of duty cycle to drive periperal devices
3BUS CYCLE AND TIME STATES A bus cycle defines the basic operation that a microprocessor performs to communicate with external devices.Examples of bus cycle are memory read, memory write, input/output read and input/output write.A bus cycle corresponds to a sequence of events that starts with an address being output on the system bus followed by a read or write data transfer.During these operations, a series of control signal are also produced by the MPU to control the direction and timing of the bus.Each bus cycle consists of at least four clock periods, T1, T2, T3 and T4.These clock period are also called T-state.These 4 clock states gives a bus cycle duration of ( 125 ns * 4 ) = 500 ns in a 8-Mhz 8088Idle State: no bus activity ; one clock periodWait state : controlled by READY signal ; inserted between T3 and T4 when READY = 0 . Bus cycle will complete when READY = 1
4Bus Cycle and Time States T1 - start of bus cycle. Actions include setting control signals to give the required values for ALE, DTR, IO/M putting a valid address onto the address bus.T2 - the RD or WR control signals are issued, DEN is asserted and in the case of a write, data is put onto the data bus. The DEN turns on the data bus buffers to connect the CPU to the external data bus. The READY input to the CPU is sampled at the end of T2 and if READY is low, a wait state TW (one or more) is inserted before T3 begins.T3 - this clock period is provided to allow memory to access the data. Ifthe bus cycle is a read cycle, the data bus is sampled at the end of T3.T4 - all bus signals are deactivated in preparation for the nextclock cycle. The 8088 also finishes sampling the data (in a readcycle) in this period. For the write cycle, the trailing edge of theWR signal transfers data to the memory or I/O, which activatesand write when WR returns to logic 1 level.
5System Timing Diagrams T-State:One clock period is referred to as a T-StateT-StateAn operation takes an integer number of T-StatesCPU Bus Cycle:A bus cycle consists of 4 or more T-StatesT1T2T3T4
6Memory Read Timing Diagrams Dump address on address bus.Issue a read ( RD ) and set M/ IO to 1.Wait for memory access cycle.
10Bus Timing During T 1 : The address is placed on the Address/Data bus. Control signals M/ IO , ALE and DT/ R specify memory or I/O, latch the address onto the address bus and set the direction of data transfer on data bus.During T 2 :8086 issues the RD or WR signal, DEN , and, for a write, the data.DEN enables the memory or I/O device to receive the data for writes and the 8086 to receive the data for reads.During T 3 :This cycle is provided to allow memory to access data.READY is sampled at the end of T 2 .If low, T 3 becomes a wait state.Otherwise, the data bus is sampled at the end of T 3 .During T 4 :All bus signals are deactivated, in preparation for next bus cycle.Data is sampled for reads, writes occur for writes.
11Setup & Hold TimeSetup time – The time before the rising edge of the clock, while the data must be valid and constantHold time – The time after the rising edge of the clock during which the data must remain valid and constant
13Bus TimingTiming:Each BUS CYCLE on the 8086 equals four system clocking periods (T states).The clock rate is 5MHz , therefore one Bus Cycle is 800ns .The transfer rate is 1.25MHz .Memory specs (memory access time) must match constraints of system timing.For example, bus timing for a read operation shows almost 600ns are needed to read data.However, memory must access faster due to setup times, e.g. Address setup and data setup.This subtracts off about 150ns .Therefore, memory must access in at least 450ns minus another 30-40ns guard band for buffers and decoders. 420ns DRAM required for the 8086.
1410.6 System Time Diagrams - CPU Bus Cycle TWT4CLKALEIO/MA16- A19A8- A15RDAD0- AD7DT/RREADYDENAddress latches store the actual valuesA16-A19A0- A7Memory Cycle (I/O cycle is similar but IO/M = 1)The slow device drives READY= 0S3- S6Tri-stateA8- A15the P samples READY(if 0 a WAIT state follows)Read Cycle(instruction fetch and memory operand read)P reads Data BusD0- D7 (Data in)WRAD0- AD7DT/RWrite Cycle (memory operand write)A0- A7D0- D7 (Data out)DENDirection “READ” for the Data BufferEnables Data BufferMemory reads Data BusDirection “READ” for the Data BufferEnables Data Buffer