
QADC
REFERENCE MANUAL
DIGITAL CONTROL
MOTOROLA
7-19
RES — Queue 2 Resume
RES selects the queue 2 resumption point after suspension due to queue 1. If RES is
changed during the execution of queue 2, the change is not recognized until an end-
of-queue condition is reached, or the queue operating mode of queue 2 is changed.
The primary reason for selecting re-execution of the entire queue or subqueue is to
guarantee that all samples are taken consecutively in one scan (coherency).
When subqueues are not used, queue 2 execution restarts after suspension with the
first CCW in queue 2. When a pause has previously occurred in queue 2 execution,
queue execution restarts after suspension with the first CCW in the current subqueue.
A subqueue is considered to be a stand-alone sequence of conversions. Once a
pause flag has been set to report subqueue completion, that subqueue is not repeated
until all CCWs in queue 2 are executed.
An example of using the resume bit is when the frequency of queue 1 trigger events
prohibit queue 2 completion. If the rate of queue 1 execution is too high, it is best for
queue 2 execution to continue with the CCW that was being converted when queue 2
was suspended. This allows queue 2 to eventually complete execution.
0 = After suspension, begin execution with the first CCW in queue 2 or the current
subqueue.
1 = After suspension, begin execution with the aborted CCW in queue 2.
BQ2[5:0] — Beginning of Queue 2
The BQ2 field indicates the CCW location where queue 2 begins. To allow the length
of queue 1 and queue 2 to vary, a programmable pointer identifies the CCW table lo-
cation where queue 2 begins. The BQ2 field also serves as an end-of-queue condition
for queue 1.
Software defines the beginning of queue 2 by programming the BQ2 field in QACR2.
BQ2 is usually programmed before or at the same time as the queue operating mode
for queue 2 is selected. If BQ2 is 40 or greater, queue 2 does not have any entries,
and the entire CCW table is dedicated to queue 1. If BQ2 is 0, the entire CCW table is
10110
Periodic timer continuous-scan mode: time = QCLK period x 2
9
Periodic timer continuous-scan mode: time = QCLK period x 2
10
Periodic timer continuous-scan mode: time = QCLK period x 2
11
Periodic timer continuous-scan mode: time = QCLK period x 2
12
Periodic timer continuous-scan mode: time = QCLK period x 2
13
Periodic timer continuous-scan mode: time = QCLK period x 2
14
Periodic timer continuous-scan mode: time = QCLK period x 2
15
Periodic timer continuous-scan mode: time = QCLK period x 2
16
Periodic timer continuous-scan mode: time = QCLK period x 2
17
Reserved mode
10111
11000
11001
11010
11011
11100
11101
11110
11111
Table 7-5 Queue 2 Operating Modes (Continued)
MQ2[12:8]
Operating Modes
F
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
.