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

Register Descriptions<br />

QUEUE 1<br />

QUEUE 2<br />

ACTIVE<br />

IDLE<br />

ACTIVE<br />

TRIGGER PENDING<br />

IDLE (PAUSED)<br />

TRIGGER PENDING<br />

nc...<br />

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

IDLE (PAUSED)<br />

ACTIVE<br />

Figure 18-12. Queue Status Transition<br />

CWP[5:0] — Command Word Pointer Field<br />

The CWP allows the software to know which CCW is executing at<br />

present, or was last completed. The command word pointer is a<br />

software read-only field, and write operations have no effect. The<br />

CWP allows software to monitor the progress of the QADC scan<br />

sequence. The CWP field is a CCW word pointer with a valid range of<br />

0 to 63.<br />

When a queue enters the paused state, the CWP points to the CCW<br />

with the pause bit set. While in pause, the CWP value is maintained<br />

until a trigger event occurs on the same queue or the other queue.<br />

Usually, the CWP is updated a few clock cycles before the queue<br />

status field shows that the queue has become active. For example,<br />

software may read a CWP pointing to a CCW in queue 2, and the<br />

status field shows queue 1 paused, queue 2 trigger pending.<br />

When the QADC finishes the scan of the queue, the CWP points to<br />

the CCW where the end-of-queue condition was detected. Therefore,<br />

when the end-of-queue condition is a CCW with the EOQ code<br />

(channel 63), the CWP points to the CCW containing the EOQ.<br />

When the last CCW in a queue is in the last CCW table location<br />

(CCW63), and it does not contain the EOQ code, the end-of-queue is<br />

detected when the following CCW is read, so the CWP points to word<br />

CCW0.<br />

Finally, when queue 1 operation is terminated after a CCW is read<br />

that is defined as BQ2, the CWP points to the same CCW as BQ2.<br />

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

Technical Data<br />

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