CHAPTER 11 A/D CONVERTER
User’s Manual U13850EJ4V0UM
353
11.4.2 Input voltage and conversion result
The analog voltages input to the analog input pins (ANI0 to ANI11) and the result of the A/D conversion (contents
of the A/D conversion result register (ADCR)) are related as follows:
ADCR = INT(
×
1024 + 0.5)
Or,
(ADCR
−
0.5)
×
≤
V
IN
< (ADCR + 0.5)
×
INT ( ): Function that returns integer of value in ( )
V
IN
:
Analog input voltage
AV
REF
: AV
REF
pin voltage
ADCR: Value of the A/D conversion result register (ADCR)
The relationship between the analog input voltage and A/D conversion result is shown below.
Figure 11-6. Relationship Between Analog Input Voltage and A/D Conversion Result
1
1
3
2
5
3
2043 1022 20451023 2047
1
2048 1024 20481024 2048 1024
2048 1024 20481024 2048
0
1
2
3
1021
1022
1023
A/D conversion result
(ADCR)
Input voltage/AV
REF
V
IN
AV
REF
AV
REF
1024
AV
REF
1024
Содержание MPD703030A
Страница 2: ...User s Manual U13850EJ4V0UM 2 MEMO ...
Страница 514: ...User s Manual U13850EJ4V0UM 514 MEMO ...