28.10.2014 Views

MMC2107 - Freescale Semiconductor

MMC2107 - Freescale Semiconductor

MMC2107 - Freescale Semiconductor

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Freescale</strong> <strong>Semiconductor</strong>, Inc.<br />

Queued Analog-to-Digital Converter (QADC)<br />

18.10.6.3 External Gated Single-Scan Mode<br />

nc...<br />

<strong>Freescale</strong> <strong>Semiconductor</strong>, I<br />

18.10.6.4 Interval Timer Single-Scan Mode<br />

The QADC provides external gating for queue 1 only. When external<br />

gated single-scan mode is selected, the input level on the associated<br />

external trigger pin enables and disables queue execution. The polarity<br />

of the external gated signal is fixed so only a high level opens the gate<br />

and a low level closes the gate. Once the gate is open, each CCW is<br />

read and the indicated conversions are performed until the gate is<br />

closed. Software must enable the scan to occur by setting the<br />

single-scan enable bit for queue 1. If a pause in a CCW is encountered,<br />

the pause flag does not become set, and execution continues without<br />

pausing.<br />

While the gate is open, queue 1 executes one time. Each CCW is read<br />

and the indicated conversions are performed until an end-of-queue<br />

condition is encountered. When queue 1 completes, the QADC sets the<br />

completion flag (CF1) and clears the single-scan enable bit. Software<br />

may set the single-scan enable bit again to allow another scan of queue<br />

1 to be initiated during the next open gate.<br />

If the gate closes before queue 1 completes execution, the current CCW<br />

completes, execution of queue 1 stops, the single-scan enable bit is<br />

cleared, and the PF1 bit is set. Software can read the CWPQ1 to<br />

determine the last valid conversion in the queue. Software must set the<br />

single-scan enable bit again and should clear the PF1 bit before another<br />

scan of queue 1 is initiated during the next open gate. The start of queue<br />

1 is always the first CCW in the CCW table.<br />

Since the condition of the gate is only sampled after each conversion<br />

during queue execution, closing the gate for a period less than a<br />

conversion time interval does not guarantee the closure will be captured.<br />

Both queues can use the periodic/interval timer in a single-scan queue<br />

operating mode. The timer interval can range from 128 to 128 KQCLK<br />

cycles in binary multiples. When the interval timer single-scan mode is<br />

selected and the software sets the single-scan enable bit in QACR1(2),<br />

the timer begins counting. When the time interval elapses, an internal<br />

trigger event is created to start the queue and the QADC begins<br />

execution with the first CCW.<br />

Technical Data <strong>MMC2107</strong> – Rev. 2.0<br />

470 Queued Analog-to-Digital Converter (QADC) MOTOROLA<br />

For More Information On This Product,<br />

Go to: www.freescale.com

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!