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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

DIRECT MEMORY ACCESS UNIT<br />

When internal DMA requests are selected, the source of the internal request must be programmed.<br />

The Internal DMA Request Multiplexer is programmable on a module basis only. The<br />

two channels in a module can be programmed to both respond to Timer 2 or both respond to the<br />

serial port. A module cannot be programmed to have one channel respond to Timer 2 and one<br />

channel respond to the serial port. The source of internal DMA requests for each module is controlled<br />

by the IDRQA and IDRQB bits in the DMA Priority Register (see Figure 10-14).<br />

10.2.1.4 Arming the DMA Channel<br />

Each DMA channel must be armed before it can recognize DMA requests. A channel is armed<br />

by setting its STRT (Start) bit in the DMA Control Register (Figure 10-13 on page 10-20). The<br />

STRT bit can be modified only if the CHG (Change Start) bit is set at the same time. The CHG<br />

bit is a safeguard to prevent accidentally arming a DMA channel while modifying other channel<br />

parameters.<br />

A DMA channel is disarmed by clearing its STRT bit. The STRT bit is cleared either directly by<br />

software or by the channel itself when it is programmed to terminate on terminal count.<br />

10.2.1.5 Selecting Channel Synchronization<br />

The synchronization method for a channel is controlled by the SYN1:0 bits in the DMA Control<br />

Register (Figure 10-13 on page 10-20).<br />

NOTE<br />

The combination SYN1:0=11 is reserved and will result in unpredictable<br />

operation. When IDRQ is set (internal requests selected) the channel must<br />

always be programmed for source-synchronized transfers (SYN1:0=01).<br />

When programmed for unsynchronized transfers (SYN1:0=00), the DMA channel will begin to<br />

transfer data as soon as the STRT bit is set.<br />

10-23

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

Saved successfully!

Ooh no, something went wrong!