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

Register Descriptions<br />

nc...<br />

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

RESUME — Queue 2 Resume Bit<br />

RESUME selects the queue 2 resumption point after suspension due<br />

to queue 1. If RESUME is changed during the execution of queue 2,<br />

the change is not recognized until an end-of-queue condition is<br />

reached or the queue operating mode of queue 2 is changed.<br />

The primary reason for selecting re-execution of the entire queue or<br />

subqueue is to guarantee that all samples are taken consecutively in<br />

one scan (coherency).<br />

When subqueues are not used, queue 2 execution restarts after<br />

suspension with the first CCW in queue 2. When a pause has<br />

previously occurred in queue 2 execution, queue execution restarts<br />

after suspension with the first CCW in the current subqueue.<br />

A subqueue is considered to be a stand-alone sequence of<br />

conversions. Once a pause flag has been set to report subqueue<br />

completion, that subqueue is not repeated until all CCWs in queue 2<br />

are executed.<br />

An example of using the RESUME bit is when the frequency of<br />

queue 1 trigger events prohibit queue 2 completion. If the rate of<br />

queue 1 execution is too high, it is best for queue 2 execution to<br />

continue with the CCW that was being converted when queue 2 was<br />

suspended. This allows queue 2 to eventually complete execution.<br />

1 = After suspension, begin execution with the aborted CCW in<br />

queue 2.<br />

0 = After suspension, begin execution with the first CCW of<br />

queue 2 or the current subqueue of queue 2.<br />

BQ2[6:0] — Beginning of Queue 2 Field<br />

BQ2[6:0] indicates the CCW location where queue 2 begins. To allow<br />

the length of queue 1 and queue 2 to vary, a programmable pointer<br />

identifies the CCW table location where queue 2 begins. The BQ2<br />

field also serves as an end-of-queue condition for queue 1. Setting<br />

BQ2[6:0] beyond physical CCW table memory space allows queue 1<br />

all 64 entries.<br />

Software defines the beginning of queue 2 by programming the BQ2<br />

field in QACR2. BQ2 is usually programmed before or at the same<br />

time as the queue operating mode for queue 2 is selected. If BQ2 is<br />

64 or greater, queue 2 has no entries, the entire CCW table is<br />

dedicated to queue 1 and CCW63 is the end-of-queue 1. If BQ2[6:0]<br />

is 0, the entire CCW table is dedicated to queue 2. As a special case,<br />

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

Technical Data<br />

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