
GP Bus DMA Controller
Élan™SC520 Microcontroller User’s Manual
14-19
The operations of these buffers are described in detail in Chapter 11, “Write Buffer and
Read Buffer”.
14.5.10.2
Preemptive Latency
The following events could delay a GP-DMA acknowledgment.
■
SDRAM refresh cycle (the acknowledgment is given; however, the transfer is delayed)
■
PCI requests
■
A higher priority GP-DMA request
■
A cache write-back, if the GP-DMA target is in a dirty cache-line (the acknowledgment
is given; however, the transfer is delayed)
■
Slow transfers to ROM/GP bus
Once a demand transfer or block transfer has started, if the GP-DMA controller is trying to
read from a SDRAM region that is in the cache, the transfer is paused while a cache snoop
occurs. If the cache holds data in the cache line that the GP-DMA controller is accessing,
a cache-line write-back cycle may also occur.
14.6
INITIALIZATION
The GP-DMA controller is reset by a system reset. In addition, the slave and the master
controllers each have a software reset source, from the Slave DMA Controller Reset
(SLDMARST) register (Port 000Dh and the Master DMA Controller Reset (MSTDMARST)
register (Port 00DAh), respectively.
The GP-DMA controller is enabled after system reset, but all channels are masked off. This
is also the state after the DMA Controller Reset registers are written to. All channels default
to normal GP-DMA mode. The operating frequency defaults to 4 MHz.
14.6.1
Example Configurations
14.6.1.1
Configuring an 8-Bit Channel in Normal GP-DMA Mode
In normal GP-DMA mode, there are four 8-bit channels: 0, 1, 2, and 3. Any internal request
from the serial ports or any external request can be mapped to one of these channels. The
following steps configure an 8-bit channel.
1. Enable the DMA slave core.
2. Program Channel 4 to use cascade mode via the TRNMOD field in the Master DMA
Channel 4–7 Mode (MSTDMAMODE) register (Port 00D6h) and unmask Channel 4.
3. Program operating frequency if not using the default 4 MHz.
4. Map the request to a specific channel.
5. Program the memory address, transfer count, page address, and extended page
address of the associated channel.
6. Program DMA mode, type, address increment mode, and priority mode.
7. Unmask the channel request in the Slave DMA General Mask (SLDMAGENMSK)
register (Port 000Fh). At this point, the GP-DMA controller is ready to accept the external
request.
Содержание Elan SC520
Страница 1: ...lan SC520 Microcontroller User s Manual Order 22004A...
Страница 4: ...iv lan SC520 Microcontroller User s Manual...
Страница 28: ...Introduction xxviii lan SC520 Microcontroller User s Manual...
Страница 42: ...Architectural Overview 1 14 lan SC520 Microcontroller User s Manual...
Страница 78: ...System Initialization 3 22 lan SC520 Microcontroller User s Manual...
Страница 108: ...Clock Generation and Control 5 10 lan SC520 Microcontroller User s Manual...
Страница 118: ...Reset Generation 6 10 lan SC520 Microcontroller User s Manual...
Страница 148: ...System Arbitration 8 24 lan SC520 Microcontroller User s Manual...
Страница 214: ...SDRAM Controller 10 36 lan SC520 Microcontroller User s Manual...
Страница 230: ...Write Buffer and Read Buffer 11 16 lan SC520 Microcontroller User s Manual...
Страница 288: ...GP Bus DMA Controller 14 22 lan SC520 Microcontroller User s Manual...
Страница 316: ...Programmable Interval Timer 16 8 lan SC520 Microcontroller User s Manual...
Страница 328: ...Software Timer 18 4 lan SC520 Microcontroller User s Manual...
Страница 346: ...Real Time Clock 20 12 lan SC520 Microcontroller User s Manual...
Страница 360: ...UART Serial Ports 21 14 lan SC520 Microcontroller User s Manual...
Страница 414: ...AMDebug Technology 26 8 lan SC520 Microcontroller User s Manual...