
QADC
REFERENCE MANUAL
DIGITAL CONTROL
MOTOROLA
7-9
the result table at any time. Once initiated, software action is not needed to sustain
conversions of channel.
7.3.3.2 External Trigger Continuous-Scan Mode
The QADC provides external trigger pins for both queues. When the external trigger
software initiated continuous-scan mode is selected, a transition on the associated ex-
ternal trigger pin initiates queue execution. The polarity of the external trigger signal is
programmable, so that the software can choose to begin queue execution on the rising
or falling edge. Each CCW is read and the indicated conversions are performed until
an end-of-queue condition is encountered. When the next external trigger edge is de-
tected, the queue execution begins again automatically. Software initialization is not
needed between trigger events.
Some applications need to synchronize the sampling of analog channels to external
events. There are cases when it is not possible to use software initiation of the queue
scan sequence, since interrupt response times vary.
7.3.3.3 Periodic Timer Continuous-Scan Mode
The QADC includes a dedicated periodic/interval timer for initiating a scan sequence
for queue 2 only. Software selects a programmable timer interval ranging from 128 to
128K times the QCLK period in binary multiples. The QCLK period is prescaled down
from the intermodule bus (IMB) MCU clock.
When the periodic timer continuous-scan mode is selected, the timer begins counting.
After the programmed interval elapses, the timer generated trigger event starts the
queue. The timer is then reloaded and begins counting again. Meanwhile, the QADC
automatically performs the conversions in the queue until an end-of-queue condition
or a pause is encountered. When a pause occurs, the QADC waits for the periodic in-
terval to expire again, then continues with the queue. After end-of-queue has been de-
tected, the next trigger event causes queue execution to begin again with the first
CCW in queue 2.
The periodic timer generates a trigger event whenever the time interval elapses. The
trigger event may cause the queue execution to continue following a pause or queue
completion, or may be considered a trigger overrun. As with all continuous-scan queue
operating modes, software action is not needed between trigger events.
Software enables the completion interrupt when using the periodic timer continuous-
scan mode. When the interrupt occurs, the software knows that the periodically col-
lected analog results have just been taken. The software can use the periodic interrupt
to obtain non-analog inputs as well, such as contact closures, as part of a periodic look
at all inputs.
7.4 QADC Clock (QCLK) Generation
Figure 7-2
is a block diagram of the clock subsystem. The QCLK provides the timing
for the A/D converter state machine which controls the timing of the conversion. The
QCLK is also the input to a 17-stage binary divider which implements the periodic/in-
F
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
.