20-12
MPC860 PowerQUICC UserÕs Manual
MOTOROLA
Part V. The Communications Processor Module
20.3.4.2 Auto-Buffering and Buffer-Chaining
Buffer-chaining is designed to move large amounts of noncontiguous blocks of data. Even
though each block needs a separate BD, the BDs can be chained together and serviced as a
group. Auto-buffering is used to repeatedly service a BD chain. Note that a chain can range
from one BD to the whole BD table in length.
Setting the CM bit (continuous mode) in a BDÕs status-and-control Þeld enables
auto-buffering; clearing the CM bit enables buffer-chaining (normal mode). The CM bit
must be explicitly programmed for each BD.
When auto-buffering, the descriptorÕs V bit will not be cleared after CPM processingÑthe
BD remains valid for immediate transfer as the current BD pointer cycles through the table.
When buffer-chaining, the CPM invalidates the current BD after processing to allow the
user (the core) to safely manipulate the contents of the buffer and modify its BD. Note that
the V bit behavior is the only difference between auto-buffering and buffer-chainingÑ
auto-buffering can be thought of as continuous buffer-chaining. One use of auto-buffering
is for continuous monitoring of an external instrument, such as an A/D converter.
Set the L bit (last) in the status-and-control Þeld to mark the last BD of a chain. When the
CPM completes a chain, it ßags IDSR[DONE], triggering a maskable interrupt to the core.
The I bit (individual BD interrupt) behavior is independent of the L bitÑthe user may
disable individual BD interrupts (and/or mask them) for multi-buffer chains.
20.3.5 IDMA CP Commands
The core issues the following IDMA commands to the CP:
¥
INIT
IDMA
ÑThe CPM resets the IDMA internal state. The current BD pointer is
reset to the top of the BD table (IBASE).
¥
STOP
IDMA
ÑThe CP terminates current IDMA transfers. IDSR[DONE] is set, and
the current BD is closed. If the destination is memory, the IDMA internal storage
buffer is transferred before termination, regardless of the source. If the destination
is a peripheral, the internal storage buffer is ßushed and the transfer terminated
without writing to the peripheral. At the next request, the next BD in the table is
processed.
See Section , ÒThe PowerPC core can issue commands to control communications via the
CP command register (CPCR). The CP commands handle special cases, such as initializing
or stopping a channel, and are protocol-dependent.,Ó for the mechanics of issuing CP
commands.
20.3.6 IDMA Channel Operation
An IDMA channel operation consists of the following eventsÑIDMA channel
initialization, data transfer, and block termination. In the initialization phase, the core loads
the global IDMA channel information into the IDMA parameter RAM, builds the IDMA
BD table, and starts the channel. In the transfer phase, the CPM accepts a transfer request,
Содержание MPC860 PowerQUICC
Страница 3: ...MPC860UM AD 07 98 REV 1 MPC860 PowerQUICC ª UserÕs Manual ...
Страница 36: ...xxxvi MPC860 PowerQUICC UserÕs Manual MOTOROLA CONTENTS Paragraph Number Title Page Number ...
Страница 78: ...I iv MPC860 PowerQUICC UserÕs Manual MOTOROLA Part I Overview ...
Страница 88: ...1 10 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part I Overview ...
Страница 114: ...3 16 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part I Overview ...
Страница 226: ...8 32 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part II PowerPC Microprocessor Module ...
Страница 262: ...9 36 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part II PowerPC Microprocessor Module ...
Страница 274: ...III iv MPC860 PowerQUICC UserÕs Manual MOTOROLA Part III Configuration ...
Страница 320: ...12 12 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part III Configuration ...
Страница 325: ...MOTOROLA Part IV Hardware Interface IV v Part IV Hardware Interface ...
Страница 326: ...IV vi MPC860 PowerQUICC UserÕs Manual MOTOROLA Part IV Hardware Interface ...
Страница 352: ...13 26 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part IV Hardware Interface ...
Страница 394: ...14 42 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part IV Hardware Interface ...
Страница 426: ...15 32 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part IV Hardware Interface ...
Страница 530: ...17 26 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part IV Hardware Interface ...
Страница 632: ...21 44 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part V The Communications Processor Module ...
Страница 660: ...22 28 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part V The Communications Processor Module ...
Страница 708: ...24 24 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part V The Communications Processor Module ...
Страница 748: ...27 20 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part V The Communications Processor Module ...
Страница 846: ...31 20 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part V The Communications Processor Module ...
Страница 914: ...35 12 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part V The Communications Processor Module ...
Страница 948: ...36 34 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part V The Communications Processor Module ...
Страница 998: ...37 48 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part VI Debug and Test ...
Страница 1016: ...A 10 MPC860 PowerQUICC UserÕs Manual MOTOROLA Appendixes ...
Страница 1024: ...B 8 MPC860 PowerQUICC UserÕs Manual MOTOROLA Appendixes ...
Страница 1030: ...C 6 MPC860 PowerQUICC UserÕs Manual MOTOROLA Appendixes ...
Страница 1086: ...Glossary 12 MPC860 PowerQUICC UserÕs Manual MOTOROLA ...
Страница 1106: ......