03.01.2015 Views

80C186EC/80C188EC Microprocessor User's Manual

80C186EC/80C188EC Microprocessor User's Manual

80C186EC/80C188EC Microprocessor User's Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

DIRECT MEMORY ACCESS UNIT<br />

Channel arbitration within the DMA Unit first begins on the module level. Each module prioritizes<br />

its two DMA requests (if active) and then presents a module request to the Inter-Module Arbitration<br />

Logic. If both modules are requesting transfers, the Inter-Module Arbitration Logic<br />

decides which of the two modules has highest priority and grants that module control of the bus.<br />

10.2 PROGRAMMING THE DMA UNIT<br />

A total of six Peripheral Control Block registers configure each DMA channel. Two additional<br />

registers are used to specify parameters for inter-module priority, internal DMA request multiplexing<br />

and DMA suspension.<br />

10.2.1 DMA Channel Parameters<br />

The first step in programming the DMA Unit is to set up the parameters for each channel.<br />

10.2.1.1 Programming the Source and Destination Pointers<br />

The following parameters are programmable for the source and destination pointers:<br />

• pointer address<br />

• address space (memory or I/O)<br />

• automatic pointer indexing (increment, decrement or no change) after transfer<br />

Two 16-bit Peripheral Control Block registers define each of the 20-bit pointers. Figures 10.7 and<br />

10.8 show the layout of the DMA Source Pointer address registers, and Figures 10.9 and 10.10<br />

show the layout of the DMA Destination Pointer address registers. The DSA19:16 and<br />

DDA19:16 (high-order address bits) are driven on the bus even if I/O transfers have been programmed.<br />

When performing I/O transfers within the normal 64K I/O space only, the high-order<br />

bits in the pointer registers must be cleared.<br />

10-15

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

Saved successfully!

Ooh no, something went wrong!