CHAPTER 12 A/D CONVERTER
Preliminary User’s Manual U16315EJ1V0UD
234
12.4.2 Input voltage and conversion results
The relationship between the analog input voltage input to the analog input pins (ANI0 to ANI7) and the A/D
conversion result (stored in the A/D conversion result register (ADCR)) is shown by the following expression.
ADCR = INT (
×
1024 + 0.5)
or
(ADCR
−
0.5)
×
−
V
IN
< (ADCR + 0.5)
×
where, INT( ):
Function which returns integer part of value in parentheses
V
IN
:
Analog input voltage
AV
REF
:
AV
REF
pin voltage
ADCR: A/D conversion result register (ADCR) value
Figure 12-10 shows the relationship between the analog input voltage and the A/D conversion result.
Figure 12-10. Relationship Between Analog Input Voltage and A/D Conversion Result
1023
1022
1021
3
2
1
0
A/D conversion result
(ADCR)
1
2048
1
1024
3
2048
2
1024
5
2048
3
1024
2043
2048
1022
1024
2045
2048
1023
1024
2047
2048
1
Input voltage/AV
REF
V
IN
AV
REF
AV
REF
1024
AV
REF
1024
Содержание 78K0/KD1 Series
Страница 2: ...Preliminary User s Manual U16315EJ1V0UD 2 MEMO ...
Страница 444: ...Preliminary User s Manual U16315EJ1V0UD 444 MEMO ...