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 />

completion interrupt, or queue status are used to determine when the<br />

queue has completed.<br />

nc...<br />

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

After the single-scan enable bit is set, a trigger event causes the QADC<br />

to begin execution with the first CCW in the queue. The single-scan<br />

enable bit remains set until the queue is completed. After the queue<br />

reaches completion, the QADC resets the single-scan enable bit to 0. If<br />

the single-scan enable bit is written to a 1 or a 0 by the software before<br />

the queue scan is complete, the queue is not affected. However, if the<br />

software changes the queue operating mode, the new queue operating<br />

mode and the value of the single-scan enable bit are recognized<br />

immediately. The conversion in progress is aborted and the new queue<br />

operating mode takes effect.<br />

In the software-initiated single-scan mode, the writing of a 1 to the<br />

single-scan enable bit causes the QADC to generate a trigger event<br />

internally and the queue execution begins immediately. In the other<br />

single-scan queue operating modes, once the single-scan enable bit is<br />

written, the selected trigger event must occur before the queue can start.<br />

The single-scan enable bit allows the entire queue to be scanned once.<br />

A trigger overrun is captured if a trigger event occurs during queue<br />

execution in an edge-sensitive external trigger mode or a<br />

periodic/interval timer mode.<br />

In the interval timer single-scan mode, the next expiration of the timer is<br />

the trigger event for the queue. After the queue execution is complete,<br />

the queue status is shown as idle. The software can restart the queue by<br />

setting the single-scan enable bit to a 1. Queue execution begins with<br />

the first CCW in the queue.<br />

18.10.6.1 Software-Initiated Single-Scan Mode<br />

Software can initiate the execution of a scan sequence for queues 1 or 2<br />

by selecting the software-initiated single-scan mode, and writing the<br />

single-scan enable bit in QACR1 or QACR2. A trigger event is generated<br />

internally and the QADC immediately begins execution of the first CCW<br />

in the queue. If a pause occurs, another trigger event is generated<br />

internally, and then execution continues without pausing.<br />

The QADC automatically performs the conversions in the queue until an<br />

end-of-queue condition is encountered. The queue remains idle until the<br />

software again sets the single-scan enable bit. While the time to<br />

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

468 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!