779
A/D Converter (ADC)
Chapter 20
Preliminary User’s Manual U17566EE1V2UM00
The relationship between the analog voltage input to the analog input pins
(ANI0 to ANI11) and the A/D conversion result (of A/D conversion result
register n (ADCR0n)) is as follows:
or
INT( ):
Function that returns the integer of the value in ( )
V
IN
:
Analog input voltage
AV
REF
:
AV
REF
pin voltage
ADCR0: Value of A/D conversion result register n (ADCR0n)
Figure 20-2
shows the relationship between the analog input voltage and the
A/D conversion results.
Figure 20-2
Relationship between analog input voltage and A/D conversion results
ADCR0
INT
V
IN
AV
REF
------------------
1024
•
0,5
+
(
)
=
ADCR0 0,5
–
(
)
AV
REF
1024
------------------
•
V
IN
ADCR0 0,5
+
(
)
AV
REF
1024
------------------
•
<
≤
1,02
3
1,022
1,021
3
2
1
0
Inp
u
t volt
a
ge/AV
REF
1
2,04
8
1
1,024
3
2,04
8
2
1,024
5
2,04
8
3
1,024
2,04
3
2,04
8
1,022
1,024
2,045
2,04
8
1,02
3
1,024
2,047
2,04
8
1
A/D conver
s
ion re
su
lt
s
ADCR0n
S
AR
FFC0H
FF
8
0H
FF40H
00C0H
00
8
0H
0040H
0000H
electronic components distributor