28.10.2014 Views

MMC2107 - Freescale Semiconductor

MMC2107 - Freescale Semiconductor

MMC2107 - Freescale Semiconductor

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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

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

Digital Control<br />

18.10.7.1 Software-Initiated Continuous-Scan Mode<br />

When the software-initiated continuous-scan mode is programmed, the<br />

trigger event is generated automatically by the QADC. Queue execution<br />

begins immediately. If a pause is encountered, another trigger event is<br />

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

When the end-of-queue is reached, another internal trigger event is<br />

generated and queue execution begins again from the beginning of the<br />

queue.<br />

nc...<br />

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

While the time to internally generate and act on a trigger event is very<br />

short, software can momentarily read the status conditions, indicating<br />

that the queue is idle. The trigger overrun flag is never set while in the<br />

software-initiated continuous-scan mode.<br />

The software-initiated continuous-scan mode keeps the result registers<br />

updated more frequently than any of the other queue operating modes.<br />

The software can always read the result table to get the latest converted<br />

value for each channel. The channels scanned are kept up to date by the<br />

QADC without software involvement. Software can read a result value at<br />

any time.<br />

The software-initiated continuous-scan mode may be chosen for either<br />

queue, but is normally used only with queue 2. When the<br />

software-initiated continuous-scan mode is chosen for queue 1, that<br />

queue operates continuously and queue 2, being lower in priority, never<br />

gets executed. The short interval of time between a queue 1 completion<br />

and the subsequent trigger event is not sufficient to allow queue 2<br />

execution to begin.<br />

The software-initiated continuous-scan mode is a useful choice with<br />

queue 2 for converting channels that do not need to be synchronized to<br />

anything, or for the slow-to-change analog channels. Interrupts are<br />

normally not used with the software-initiated continuous-scan mode.<br />

Rather, the software reads the latest conversion result from the result<br />

table at any time. Once initiated, software action is not needed to sustain<br />

conversions of channel.<br />

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

Technical Data<br />

MOTOROLA Queued Analog-to-Digital Converter (QADC) 473<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!