17.05.2015 Views

16-Bit Microprocessor Handbook

16-Bit Microprocessor Handbook

16-Bit Microprocessor Handbook

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Most microprocessor.s have a Bus Request input signal that can be used by external logic to request<br />

access to the System Busses. In a PACE or INS8900 system. the NHAL T input signal<br />

can be used to force the CPU into a Processor Stall. as described earlier. and thus free<br />

the System Busses for DMA operations. The Acknowledge Interrupt (ACK INT) pulse on<br />

the CONTIN output line shown in Figure 1-10 is then equivalent to a Bus Grant signal.<br />

and the DMA controller may begin the data transfer. When the transfer is complete. the<br />

CONTIN line is used as a control input line to the CPU to terminate the Processor Stall.<br />

Cycle-stealing DMA operations typically transfer a single word via the System Busses during a<br />

brief interval when the CPU is not using the busses. With this method. CPU operations need<br />

not be stopped; instead. they are only slowed down slightly. or in some cases not affected at<br />

all. In order to implement cycle-stealing DMA. external logic must have a way of detect­<br />

DMA BLOCK<br />

DATA TRANSFERS<br />

INITIATED BY<br />

EXTERNAL LOGIC<br />

IN PACE AND<br />

INS8900<br />

SYSTEMS<br />

CYCLE-STEALING<br />

DMA IN PACE<br />

AND INS8900<br />

SYSTEMS<br />

ing those time intervals when the CPU will not be using the System Busses. There are' '--------...<br />

two ways that this can be accomplished with the INS8900 or PACE CPU. The first method involves the use of the EX­<br />

TEND input signal to the CPU to suppress or suspend input/output operations; the second method uses a special technique<br />

to sense when the CPU is beginning an internal (non-I/O) machine cycle.<br />

Earlier we described how to use the EXTEND input signal to lengthen the CPU input/output cycles.<br />

The EXTEND signal can also be used to prevent the CPU from beginning an I/O cycle. and<br />

thus ensure that the System Busses will be available to external devices for DMA operations.<br />

Figure 1-11 illustrates both uses of the EXTEND signal. The CPU looks at the EXTEND input signal<br />

at internal clock phases T1 and T6. Notice that during I/O cycles the IDS or ODS signal goes<br />

high at the beginning of T6 and low at the beginning of T1. If EXTEND is high during T6. then extra<br />

clock cycles are inserted after T8; this is the method that would be used to lengthen an I/O cy-<br />

EXTEND USED<br />

TO SUSPEND<br />

INS8900 AND<br />

PACE I/O<br />

DURING DMA<br />

OPERATIONS<br />

cle. If EXTEND is high during T1. then extra clock cycles are inserted between T3 and T4; this is the method we would<br />

use for DMA operations.<br />

The trailing edge of IDS/ODS indicates that the CPU has just completed an I/O cycle and is therefore not using the<br />

System Busses at this instant. By setting EXTEND high at this time. we suppress the beginning of another I/O cycle<br />

while we use the busses for a DMA transfer.<br />

Notice that we are merely lengthening the beginning of the machine cycle. and thus delaying that part of the machine<br />

cycle where the CPU might begin I/O activity. We do not know whether the current machine cycle will be an internal<br />

machine cycle or an I/O cycle. and we do not care. We have merely stolen the busses by slowing down the CPU.<br />

750 nsec 1.5 j1.sec<br />

Internal I . I ~ ~ I I .. ~I I<br />

Clock Phase :T1 T2 T3 T4 T5 T6 T7 T8 EEl T1 T2 T3 E E T4 T5 T6 T7 T81T1 T2 T3 E E E E T4 T5 T61<br />

, I I I<br />

IDS/ODS I<br />

j...---""<br />

BUS<br />

AVAILABLE<br />

CPU I/O CYCLE CPU I/O CYCLE CPU I/O CYCLE<br />

EXTENDED ONE CLOCK DELAYED ONE CLOCK DELAYED TWO CLOCK<br />

PERIOD PERIOD PERIODS<br />

!<br />

I<br />

1.5 j1.sec 2.25 j1.Sec<br />

.. .1 C .l<br />

Figure 1-11. Using PACE EXTEND Signal for Cycle-Stealing DMA<br />

1-17

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!