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

nc...<br />

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

NOTE:<br />

when a queue operating mode for queue 1 is selected and a trigger<br />

event occurs for queue 1 with BQ2 set to 0, queue 1 execution is<br />

terminated after CCW0 is read. Conversions do not occur.<br />

The BQ2[6:0] pointer may be changed dynamically, to alternate<br />

between queue 2 scan sequences. A change in BQ2[6:0] after<br />

queue 2 has begun or if queue 2 has a trigger pending does not affect<br />

queue 2 until queue 2 is started again. For example, two scan<br />

sequences could be defined as follows: The first sequence starts at<br />

CCW10, with a pause after CCW11 and an EOQ programmed in<br />

CCW15; the second sequence starts at CCW16, with a pause after<br />

CCW17 and an EOQ programmed in CCW39.<br />

With BQ2[6:0] set to CCW10 and the continuous-scan mode<br />

selected, queue execution begins. When the pause is encountered in<br />

CCW11, a software interrupt routine can redefine BQ2[6:0] to be<br />

CCW16. Therefore, after the end-of-queue is recognized in CCW15,<br />

an internal retrigger event is generated and execution restarts at<br />

CCW16. When the pause software interrupt occurs again, software<br />

can change BQ2 back to CCW10. After the end-of-queue is<br />

recognized in CCW39, an internal retrigger event is created and<br />

execution now restarts at CCW10.<br />

If BQ2[6:0] is changed while queue 1 is active, the effect of BQ2[6:0]<br />

as an end-of-queue indication for queue 1 is immediate. However,<br />

beware of the risk of losing the end-of-queue 1 when changing<br />

BQ2[6:0]. Using EOQ (chan63) to end queue 1 is recommended.<br />

If BQ2[6:0] was assigned to the CCW that queue 1 is currently working<br />

on, then that conversion is completed before BQ2[6:0] takes effect.<br />

Each time a CCW is read for queue 1, the CCW location is compared<br />

with the current value of the BQ2[6:0] pointer to detect a possible<br />

end-of-queue condition. For example, if BQ2[6:0] is changed to<br />

CCW3 while queue 1 is converting CCW2, queue 1 is terminated after<br />

the conversion is completed. However, if BQ2[6:0] is changed to<br />

CCW1 while queue 1 is converting CCW2, the QADC would not<br />

recognize a BQ2[6:0] end-of-queue condition until queue 1 execution<br />

reached CCW1 again, presumably on the next pass through the<br />

queue.<br />

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

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