783
A/D Converter (ADC)
Chapter 20
Preliminary User’s Manual U17566EE1V2UM00
20.4.3
Operation modes
Two operation modes are available as the modes in which to set the ANIn
pins: continuous select mode and continuous scan mode.
The operation mode is selected by the ADA0MD1 and ADA0MD0 bits of the
ADA0M0 register.
(1)
Continuous select mode
In this mode, the voltage of one analog input pin selected by the ADA0S
register is continuously converted into a digital value.
The conversion result is stored in the ADCR0n register corresponding to the
analog input pin. In this mode, an analog input pin corresponds to an ADCR0n
register on a one-to-one basis. Each time A/D conversion is completed, the A/
D conversion end interrupt request signal (INTAD) is generated. After
completion of conversion, the next conversion is started, unless the ADA0CE
bit of the ADA0M0 register is cleared to 0.
Figure 20-4
Timing example of continuous select mode operation (ADA0S = 01H)
(2)
Continuous scan mode
In this mode, analog input pins are sequentially selected, from the ANI0 pin to
the pin specified by the ADA0S register, and their values are converted into
digital values.
The result of each conversion is stored in the ADCR0n register corresponding
to the analog input pin. When conversion of the analog input pin specified by
the ADA0S register is complete, the A/D conversion end interrupt request
signal (INTAD) is generated, and A/D conversion is started again from the
ANI0 pin, unless the ADA0CE bit of the ADA0M0 register is cleared to 0.
ANI1
A/D conver
s
ion
D
a
t
a
1
(
ANI1)
D
a
t
a
2
(ANI1)
D
a
t
a
3
(ANI1)
D
a
t
a
4
(ANI1)
D
a
t
a
5
(
ANI1)
D
a
t
a
6
(ANI1)
D
a
t
a
1
D
a
t
a
2
D
a
t
a
3
D
a
t
a
4
D
a
t
a
5
D
a
t
a
6
D
a
t
a
1
(ANI1)
D
a
t
a
2
(ANI1)
D
a
t
a
3
(ANI1)
D
a
t
a
4
(ANI1)
D
a
t
a
5
(ANI1)
ADCR01
INTAD
Conver
s
ion
s
t
a
rt
s
et ADA0M0.ADA0CE = 1
D
a
t
a
6
(ANI1)
electronic components distributor