RL78/G15 CHAPTER 10 A/D CONVERTER
R01UH0959EJ0110 Rev.1.10 Page 333 of 765
Mar 7, 2023
10.5 Input Voltage and Conversion Results
The relationship between the analog input voltage input to the analog input (ANI0 to ANI10, internal reference voltage)
and the theoretical A/D conversion result (stored in the 10-bit A/D conversion result register (ADCR)) is shown by the
following expression.
SAR = INT
V
V
× 1024 + 0.5
ADCR = SAR × 64
or
(
ADCR
64
0.5) ×
V
1024
V
< (
ADCR
64
+ 0.5) ×
V
1024
here,
( ):
Function which returns integer part of value in parentheses
AIN
:
:
A/D conversion result register (ADCR) value
:
approximation register