CHAPTER 11 A/D CONVERTER
523
User’s Manual U15195EJ5V0UD
The relationship between the analog voltage input to an analog input pin (ANI0m or ANI1n) and the value of the
A/D conversion result register (ADCR0m or ADCR1n) is as follows (m = 0 to 5, n = 0 to 7):
V
IN
ADCR = INT ( ×1,024 + 0.5)
AV
DD
Or,
AV
DD
AV
DD
(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
DD
: AV
DD0
or AV
DD1
pin voltage
ADCR: Value of A/D conversion result register (ADCR0m or ADCR1n)
Figure 11-3 illustrates the relationship between the analog input voltages and A/D conversion results.
Figure 11-3. Relationship Between Analog Input Voltages and A/D Conversion Results
1,023
1,022
1,021
3
2
1
0
Input voltage/AV
DDm
1
2,048
1
1,024
3
2,048
2
1,024
5
2,048
3
1,024
2,043
2,048
1,022
1,024
2,045
2,048
1,023
1,024
2,047
2,048
1
A/D conversion result
(ADCRx)
Remark
m = 0, 1
x = 00 to 05, 10 to 17
Содержание PD703114
Страница 2: ...2 User s Manual U15195EJ5V0UD MEMO ...