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

18.5 Modes of Operation<br />

This subsection describes the two modes of operation:<br />

• Debug mode<br />

• Stop mode<br />

18.5.1 Debug Mode<br />

nc...<br />

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

If the QDBG bit in the module configuration register (QADCMCR) is set,<br />

then the QADC enters debug mode when background debug mode is<br />

enabled and a breakpoint is processed.<br />

When in debug mode and the QDBG bit is set, the QADC finishes any<br />

conversion in progress and then freezes. Depending on when debug<br />

mode is asserted, the three possible queue freeze scenarios are:<br />

• When a queue is not executing, the QADC freezes immediately.<br />

• When a queue is executing, the QADC completes the current<br />

conversion and then freezes.<br />

• If during the execution of the current conversion, the queue<br />

operating mode for the active queue is changed, or a queue 2<br />

abort occurs, the QADC freezes immediately.<br />

When the QADC enters debug mode while a queue is active, the current<br />

CCW location of the queue pointer is saved.<br />

Debug mode:<br />

• Stops the analog clock<br />

• Holds the periodic/interval timer in reset<br />

• Prevents external trigger events from being captured<br />

• Keeps all QADC registers and RAM accessible<br />

Although the QADC saves a pointer to the next CCW in the current<br />

queue, the software can force the QADC to execute a different CCW by<br />

writing new queue operating modes for normal operation. The QADC<br />

looks at the queue operating modes, the current queue pointer, and any<br />

pending trigger events to decide which CCW to execute.<br />

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

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