CHAPTER 13 A/D CONVERTER
657
User’s Manual U14492EJ3V0UD
The relationship between the analog voltage input to an analog input pin (ANI0n or ANI1n) and the value of the A/D
conversion result register (ADCR0n or ADCR1n) is as follows (n = 0 to 7):
V
IN
ADCR = INT ( × 1,024 + 0.5)
AV
REF
Or,
AV
REF
AV
REF
(ADCR
−
0.5) ×
≤
V
IN
< (ADCR + 0.5) ×
1,024
1,024
INT ( ): Function that returns integer of value in ( )
V
IN
: Analog
input
voltage
AV
REF
: AV
REF0
or AV
REF1
pin voltage
ADCR: Value of A/D conversion result register (ADCR0n or ADCR1n)
Figure 13-3 illustrates the relationship between the analog input voltages and A/D conversion results.
Figure 13-3. Relationship Between Analog Input Voltages and A/D Conversion Results
1023
1022
1021
3
2
1
0
Input voltage/AV
REFm
1
2048
1
1024
3
2048
2
1024
5
2048
3
1024
2043
2048
1022
1024
2045
2048
1023
1024
2047
2048
1
A/D conversion result
(ADCRn)
Remark
m = 0, 1
n = 00 to 07, 10 to 17
Содержание V850E/IA1 mPD703116
Страница 2: ...2 User s Manual U14492EJ3V0UD MEMO...