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.1.1 Queue Priority<br />

Queue 1 has priority over queue 2 execution. These cases show the<br />

conditions under which queue 1 asserts its priority:<br />

nc...<br />

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

• When a queue is not active, a trigger event for queue 1 or queue<br />

2 causes the corresponding queue execution to begin.<br />

• When queue 1 is active and a trigger event occurs for queue 2,<br />

queue 2 cannot begin execution until queue 1 reaches completion<br />

or the paused state. The status register records the trigger event<br />

by reporting the queue 2 status as trigger pending. Additional<br />

trigger events for queue 2, which occur before execution can<br />

begin, are captured as trigger overruns.<br />

• When queue 2 is active and a trigger event occurs for queue 1, the<br />

current queue 2 conversion is aborted. The status register reports<br />

the queue 2 status as suspended. Any trigger events occurring for<br />

queue 2 while queue 2 is suspended are captured as trigger<br />

overruns. Once queue 1 reaches the completion or the paused<br />

state, queue 2 begins executing again. The programming of the<br />

RESUME bit in QACR2 determines which CCW is executed in<br />

queue 2.<br />

• When simultaneous trigger events occur for queue 1 and queue 2,<br />

queue 1 begins execution and the queue 2 status is changed to<br />

trigger pending.<br />

• Subqueues that are paused<br />

The pause feature can be used to divide queue 1 and/or queue 2 into<br />

multiple subqueues. A subqueue is defined by setting the pause bit in<br />

the last CCW of the subqueue.<br />

Figure 18-22 shows the CCW format and an example of using pause to<br />

create subqueues. Queue 1 is shown with four CCWs in each subqueue<br />

and queue 2 has two CCWs in each subqueue.<br />

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

Technical Data<br />

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