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

During the stop mode, the CWP is reset to 0, since the control<br />

registers and the analog logic are reset. When the debug mode is<br />

entered, the CWP is unchanged; it points to the last executed CCW.<br />

18.8.6.2 QADC Status Register 1<br />

Stop mode resets the register ($3f3f)<br />

nc...<br />

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

Address: 0x00ca_0012 and 0x00ca_0013<br />

Bit 15 14 13 12 11 10 9 Bit 8<br />

Read: 0 0 CWPQ15 CWPQ14 CWPQ13 CWPQ12 CWPQ11 CWPQ10<br />

Write:<br />

Reset: 0 0 1 1 1 1 1 1<br />

Read: Anytime<br />

Write: Never<br />

Bit 7 6 5 4 3 2 1 Bit 0<br />

Read: 0 0 CWPQ25 CWPQ24 CWPQ23 CWPQ22 CWPQ21 CWPQ20<br />

Write:<br />

Reset: 0 0 1 1 1 1 1 1<br />

= Writes have no effect and the access terminates without a transfer error exception.<br />

Figure 18-13. QADC Status Register 1 (QASR1)<br />

CWPQ1[5:0] — Queue 1 Command Word Pointer Field<br />

CWPQ1[5:0] allows the software to know what CCW was last<br />

completed for queue 1. This field is a software read-only field, and<br />

write operations have no effect. CWPQ1 allows software to read the<br />

last executed CCW in queue 1, regardless of which queue is active.<br />

The CWPQ1[5:0] field is a CCW word pointer with a valid range of 0<br />

to 63 (0x3f).<br />

In contrast to CWP, CPWQ1 is updated when the conversion result is<br />

written. When the QADC finishes a conversion in queue 1, both the<br />

result register is written and the CWPQ1 is updated.<br />

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

that is defined as BQ2, CWP points to BQ2 while CWPQ1 points to<br />

the last CCW queue 1.<br />

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

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