
R01UH0336EJ0102 Rev.1.02
Page 1292 of 1538
Jul 17, 2014
V850E2/PG4-L
Section 23 A/D Converter
(2)
Setting about Storage of Conversion Result
(a)
Alignment Specification of Conversion Result
The ADCAnCTL1.ADCAnCRAC bit can specify whether the 12-bit or 10-bit A/
D conversion result is right-aligned (ADCAnCRAC = 0) or left-aligned
(ADCAnCRAC = 1).
(b)
Reading and Clearing Conversion Result
The ADCAnCTL1.ADCAnRCL bit can specify whether the A/D conversion
result ADCAnCmCR is retained or cleared after being read out.
(3)
Relationship between Analog Input Voltage and A/D Conversion Result
There is a relationship between the analog input voltages that are input to the
analog input pin (ADCAnIm) and the A/D conversion result values (values of
the ADCAnLCR[15:00] bits, ADCAnCmCR[15:00] bits and
ADCAnDBiCR[15:00] bits), as shown in the following equations.
or
INT( ):
A function which returns the integer part of the
value in parentheses
V
IAN
:
Analog input voltage
AV
REFnP
:
AV
REFnP
pin voltage
AV
REFnM
:
AV
REFnM
pin voltage
A/D conversion results: Values of the ADCAnLCR[15:00] bits,
ADCAnCmCR[15:00] bits and ADCAnDBiCR[15:00]
bits
k:
Resolution
A/D conversion result value = INT ( × 2
k
+ 0.5)
V
IAN
- AV
REFnM
AV
REFnP
- AV
REFnM
AV
REFnP
- AV
REFnM
2
k
AV
REFnP
- AV
REFnM
2
k
(A/D conversion result value - 0.5)
×
≤
V
IAN
- AV
REFnM
< (A/D conversion result value + 0.5)
×