23.04.2013 Views

TMPM330 - Keil

TMPM330 - Keil

TMPM330 - Keil

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.

Under development<br />

13.4.4 A/D Conversion Modes and A/D Conversion Completion Interrupts<br />

<strong>TMPM330</strong> (rev 0.4) 13-19<br />

<strong>TMPM330</strong><br />

For A/D conversion, the following four operation modes are supported. For normal A/D<br />

conversion, an operation mode can be selected by setting ADMOD0 to an<br />

appropriate setting. For top-priority A/D conversion, the fixed channel single conversion<br />

mode is automatically selected, irrespective of the ADMOD0 setting.<br />

• Fixed channel single conversion mode<br />

• Channel scan single conversion mode<br />

• Fixed channel repeat conversion mode<br />

• Channel scan repeat conversion mode<br />

(1)Normal A/D conversion<br />

An operation mode is selected with ADMOD0. As A/D conversion<br />

starts, ADMOD0 is set to "1." When specified A/D conversion is completed,<br />

the A/D conversion completion interrupt (INTAD) is generated, and ADMOD0<br />

showing the completion of A/D conversion is set to "1." If ="0," <br />

returns to "0" concurrently with the setting of EOCF. If is set to "1," <br />

remains at "1" and A/D conversion continues.<br />

1. Fixed channel single conversion mode<br />

If ADMOD0 is set to "00," A/D conversion is performed in the fixed<br />

channel single conversion mode.<br />

In this mode, A/D conversion is performed once for one channel selected. After A/D<br />

conversion is completed, ADMOD0 is set to "1," ADMOD0 is cleared to<br />

"0," and the interrupt request INTAD is generated. is cleared to "0" upon read.<br />

2. Channel scan single conversion mode<br />

If ADMOD0 is set to "01," A/D conversion is performed in the channel<br />

scan single conversion mode.<br />

In this mode, A/D conversion is performed once for each scan channel selected. After<br />

A/D scan conversion is completed, ADMOD0 is set to "1," ADMOD0 is<br />

cleared to "0," and the interrupt request INTAD is generated. is cleared to "0"<br />

upon read.<br />

Analog/ Digital Converter

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!