NEC V850ES/F 3-L Series User Manual page 675

32-bit single-chip microcontroller
Table of Contents

Advertisement

A/D Converter (ADC)
A/D conversion result
Figure 19-2
The relationship between the analog voltage input to the analog input pins
ANInmm and the A/D conversion result (of A/D conversion result register n
ADAnCRm is as follows:
V
IN
----------------- - 1024
ADnCRm
=
INT
(
AV
REF
or
AV
(
)
----------------- -
ADAnCRm 0,5
1024
INT( ):
Function that returns the integer of the value in ( )
V
:
Analog input voltage at AINn pin
IN
AV
:
AV
pin voltage
REF
REF0
ADAnCRm: Value of A/D conversion result register n (ADAnCRm)
Figure 19-2 shows the relationship between the analog input voltage and the
A/D conversion results.
SAR
1,023
1,022
1,021
3
2
1
0
1
1
3
2,048
1,024
2,048
Relationship between analog input voltage and A/D conversion results
User's Manual U18743EE1V2UM00
+
0,5
)
REF
<
(
V
ADAnCRm
IN
2
5
3
2,043
1,024
2,048
1,024
2,048
Input voltage/AV
REF
AV
)
REF
----------------- -
+
0,5
1024
ADAnCRm
FFC0H
FF80H
FF40H
00C0H
0080H
0040H
0000H
1,022
2,045
1,023
2,047
1
1,024
2,048
1,024
2,048
Chapter 19
675

Advertisement

Table of Contents
loading

Table of Contents