302
CHAPTER 15 A/D CONVERTER
15.4.2 Input voltage and conversion results
The relation between the analog input voltage input to the analog input pins (ANI0 to ANI7) and the A/D conversion
result (the value stored in ADCR) is shown by the following expression.
ADCR = INT (
x 256 + 0.5)
or
(ADCR – 0.5) x
≤
V
IN
< (ADCR + 0.5) x
Where,
INT( ) : Function which returns integer parts of value in parentheses.
V
IN
: Analog input voltage
AV
REF0
: AV
REF0
pin voltage
ADCR : A/D conversion result register (ADCR)
Figure 15-6 shows the relation between the analog input voltage and the A/D conversion result.
Figure 15-6. Relationships between Analog Input Voltage and A/D Conversion Result
V
IN
AV
REF0
AV
REF0
256
AV
REF0
256
1
512
1
256
3
512
2
256
5
512
3
256
507
512
254
256
509
512
255
256
511
512
1
255
254
253
3
2
1
0
A/D Conversion
Results
(ADCR)
Input Voltage/AV
REF0
Содержание PD78076
Страница 2: ...2 MEMO ...
Страница 12: ...12 MEMO ...
Страница 48: ...48 MEMO ...
Страница 64: ...64 MEMO ...
Страница 82: ...82 MEMO ...
Страница 100: ...100 MEMO ...
Страница 130: ...130 MEMO ...
Страница 180: ...180 MEMO ...
Страница 222: ...222 MEMO ...
Страница 248: ...248 MEMO ...
Страница 288: ...288 MEMO ...
Страница 308: ...308 MEMO ...
Страница 364: ...364 MEMO ...
Страница 494: ...494 MEMO ...
Страница 526: ...526 MEMO ...
Страница 544: ...544 MEMO ...
Страница 558: ...558 MEMO ...
Страница 580: ...580 MEMO ...
Страница 596: ...596 MEMO ...
Страница 598: ...598 MEMO ...
Страница 626: ...626 MEMO ...