Operation Modes - NEC V850ES/F 3-L Series User Manual

32-bit single-chip microcontroller
Table of Contents

Advertisement

A/D Converter (ADC)

19.4.3 Operation modes

(1)
ANI1
A/D conversion
ADA0CR1
INTAD
INTAD1
Conversion start
set ADA0M0.ADA0CE = 1
Figure 19-4
(2)
Four operation modes are available as the modes in which to set the ANInmm
pins: continuous select mode, continuous scan mode, one-shot select mode
and one-shot scan mode..
The operation mode is selected by the ADAnMD1 and ADAnMD0 bits of the
ADAnM0 register.
Continuous select mode
In this mode, the voltage of one analog input pin selected by the ADAnS
register is continuously converted into a digital value.
The conversion result is stored in the ADAnCRm register corresponding to the
analog input pin. In this mode, an analog input pin corresponds to an
ADAnCRm 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 ADAnCE bit of the ADAnM0 register is cleared to 0.
Data
Data 1
Data 1
Data 2
(ANI1)
(ANI1)
Data 1
(ANI1)
Timing example of continuous select mode operation (ADA0S = 01H)
Continuous scan mode
In this mode, analog input pins are sequentially selected, from the ANI0 pin to
the pin specified by the ADAnS register, and their values are converted into
digital values.
The result of each conversion is stored in the ADAnCRm register
corresponding to the analog input pin. When conversion of the analog input pin
specified by the ADAnS 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 ADAnCE bit of the ADAnM0 register is cleared to 0.
User's Manual U18743EE1V2UM00
Data
3
Data
4
2
Data 4
Data 3
(ANI1)
(ANI1)
Data 2
Data 3
(ANI1)
(ANI1)
Chapter 19
Data
5
Data
6
Data 5
Data 6
(ANI1)
(ANI1)
Data 4
Data 5
Data 6
(ANI1)
(ANI1)
(ANI1)
683

Advertisement

Table of Contents
loading

Table of Contents