TMP19A43
16.2.4 A/D Conversion Modes and A/D Conversion Completion Interrupts
For A/D conversion, the following four operation modes are supported. For normal A/D conversion, an
operation mode can be selected by setting ADMOD0<2:1> to an appropriate setting. For top-priority
A/D conversion, the fixed channel single conversion mode is automatically selected, irrespective of the
ADMOD0<2:1> setting.
Fixed channel single conversion mode
Channel scan single conversion mode
Fixed channel repeat conversion mode
Channel scan repeat conversion mode
(1)
Normal A/D conversion
An operation mode is selected with ADMOD0<REPEAT, SCAN>. As A/D conversion starts,
ADMOD0<ADBFN> is set to "1." When specified A/D conversion is completed, the A/D
conversion completion interrupt (INTAD) is generated, and ADMOD0<EOCF> showing the
completion of A/D conversion is set to "1." If <REPEAT>="0," <ADBFN> returns to "0"
concurrently with the setting of EOCF. If <REPEAT> is set to "1," <ADBFN> remains at "1" and
A/D conversion continues.
c
Fixed channel single conversion mode
If ADMOD0 <REPEAT, SCAN> is set to "00," A/D conversion is performed in the fixed channel
single conversion mode.
In this mode, A/D conversion is performed once for one channel selected. After A/D conversion is
completed, ADMOD0<EOCF> is set to "1," ADMOD0<ADBF> is cleared to "0," and the interrupt
request INTAD is generated. <EOCF> is cleared to "0" upon read.
d
Channel scan single conversion mode
If ADMOD0 <REPET,SCAN> is set to "01," A/D conversion is performed in the channel scan
single conversion mode.
In this mode, A/D conversion is performed once for each scan channel selected. After A/D scan
conversion is completed, ADMOD0<EOCF> is set to "1," ADMOD0<ADBF> is cleared to "0,"
and the interrupt request INTAD is generated. <EOCF> is cleared to "0" upon read.
e
Fixed channel repeat conversion mode
If ADMOD0<REPEAT,SCAN> is set to "10," A/D conversion is performed in fixed channel repeat
conversion mode.
In this mode, A/D conversion is performed repeatedly for one channel selected. After A/D
conversion is completed, ADMOD <EOCF> is set to "1." ADMOD0 <ADBF> is not cleared to
"0." It remains at "1." The timing with which the interrupt request INTAD is generated can be
selected by setting ADMOD0 <ITM1:0> to an appropriate setting. <EOCF> is set with the same
timing as this interrupt INTAD is generated.
<EOCF> is cleared to "0" upon read.
With <ITM1:0> set to "00," an interrupt request is generated each time one A/D conversion is
completed. In this case, the conversion results are always stored in the storage register ADREG08.
After the conversion result is stored, EOCF changes to "1."
With <ITM1:0> set to "01," an interrupt request is generated each time four A/D conversion are
completed. In this case, the conversion results are sequentially stored in storage registers
ADREG08 through ADREG3B. After the conversion results are stored in ADREG3B, <EOCF> is
set to "1," and the storage of subsequent conversion results starts from ADREG08. <EOCF> is
TMP19A43(rev2.0) 16-15
Analog/Digital Converter