Motorola MCF5281 用户手册

下载
页码 816
MOTOROLA
Chapter 27.  Queued Analog-to-Digital Converter (QADC)  
27-39
Digital Control Subsystem
The choice of single-scan or continuous-scan applies to the full queue, and is not applied to
each subqueue. Once a subqueue is initiated, each CCW is executed sequentially until the
last CCW in the subqueue is executed and the pause state is entered. Execution can only
continue with the next CCW, which is the beginning of the next subqueue. A subqueue
cannot be executed a second time before the overall queue execution has been completed.
Figure 27-22. QADC Queue Operation with Pause
Trigger events which occur during the execution of a subqueue are ignored, but the trigger
overrun flag is set. When a continuous-scan mode is selected, a trigger event occurring after
the completion of the last subqueue (after the queue completion flag is set), causes the
execution to continue with the first subqueue, starting with the first CCW in the queue.
When the QADC encounters a CCW with the pause bit set, the queue enters the paused state
after completing the conversion specified in the CCW with the pause bit. The pause flag is
set in QASR0, and a pause interrupt may be requested. The status of the queue is shown to
be paused, indicating completion of a subqueue. The QADC then waits for another trigger
event to again begin execution of the next subqueue.
Beginning of Queue 1
00
Channel Select,
Sample, Hold, 
A/D Conversion
Conversion Command
Result Word Table
0
Pause
 Word (CCW) Table
0
0
1
0
0
0
1
0
Pause
00
P
0
Pause
0
0
1
0
1
0
1
0
Pause
P
End of Queue 1
Beginning of Queue 2
BQ2
Pause
Pause
End of Queue 2
P
1
0
63
63