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

Interrupts<br />

However, status flags must be cleared after an interrupt is serviced, in<br />

to disable the interrupt request<br />

In both polled and interrupt-driven operating modes, status flags must be<br />

re-enabled after an event occurs. Flags are re-enabled by clearing<br />

appropriate QASR bits in a particular sequence. The register must first<br />

be read, then 0s must be written to the flags that are to be cleared. If a<br />

new event occurs between the time that the register is read and the time<br />

that it is written, the associated flag is not cleared.<br />

nc...<br />

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

18.12.2 Interrupt Sources<br />

The QADC includes four sources of interrupt requests, each of which is<br />

separately enabled. Each time the result is written for the last conversion<br />

command word (CCW) in a queue, the completion flag for the<br />

corresponding queue is set, and when enabled, an interrupt request is<br />

generated. In the same way, each time the result is written for a CCW<br />

with the pause bit set, the queue pause flag is set, and when enabled,<br />

an interrupt request is generated. Refer to Table 18-18.<br />

The pause and complete interrupts for queue 1 and queue 2 have<br />

separate interrupt vector levels, so that each source can be separately<br />

serviced.<br />

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

Technical Data<br />

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