MPC555
/
MPC556
QUEUED ANALOG-TO-DIGITAL CONVERTER MODULE-64
MOTOROLA
USER’S MANUAL
Rev. 15 October 2000
13-21
single-scan enable bit. Software may set the single-scan enable bit again to allow an-
other scan of queue 1 to be initiated during the next open gate.
If the gate closes before queue 1 completes execution, the current CCW completes,
execution of queue 1 stops, the single-scan enable bit is cleared, and the PF1 bit is
set. Software can read the CWPQ1 to determine the last valid conversion in the queue.
Software must set the single-scan enable bit again and should clear the PF1 bit before
another scan of queue 1 is initiated during the next open gate. The start of queue 1 is
always the first CCW in the CCW table.
Interval Timer Single-Scan Mode
. Both queues can use the periodic/interval timer in
a single-scan queue operating mode. The timer interval can range from 128 to 128
Kbytes times the QCLK period in binary multiples. When the interval timer single-scan
mode is selected and the software sets the single-scan enable bit in QACR1(2), the
timer begins counting. When the time interval elapses, an internal trigger event is cre-
ated to start the queue and the QADC64 begins execution with the first CCW.
The QADC64 automatically performs the conversions in the queue until a pause or an
end-of-queue condition is encountered. When a pause occurs, queue execution stops
until the timer interval elapses again, and queue execution continues. When the queue
execution reaches an end of queue situation the single-scan enable bit is cleared.
Software may set the single-scan enable bit again, allowing another scan of the queue
to be initiated by the interval timer.
The interval timer generates a trigger event whenever the time interval elapses. The
trigger event may cause the queue execution to continue following a pause, or may be
considered a trigger overrun. Once the queue execution is completed, the single-scan
enable bit must be set again to enable the timer to count again.
Normally only one queue will be enabled for interval timer single-scan mode and the
timer will reset at the end of queue. However, if both queues are enabled for either sin-
gle-scan or continuous interval timer mode, the end of queue condition will not reset
the timer while the other queue is active. In this case, the timer will reset when both
queues have reached end of queue.
The interval timer single-scan mode can be used in applications which need coherent
results, for example:
• When it is necessary that all samples are guaranteed to be taken during the same
scan of the analog pins
• When the interrupt rate in the periodic timer continuous-scan mode would be too
high
• In sensitive battery applications, where the single-scan mode uses less power
than the software initiated continuous-scan mode
13.10.3.4 Continuous-Scan Modes
When the application software wants to execute multiple passes through a sequence
of conversions defined by a queue, a continuous-scan queue operating mode is se-
F
re
e
sc
a
le
S
e
m
ic
o
n
d
u
c
to
r,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
c
.
..