Input Voltage And Conversion Results - Renesas RL78/G1P Hardware User Manual

16-bit single-chip microcontroller
Hide thumbs Also See for RL78/G1P:
Table of Contents

Advertisement

RL78/G1P

9.5 Input Voltage and Conversion Results

The relationship between the analog input voltage input to the analog input pins (ANI0 to ANI7, ANI16) and the
theoretical A/D conversion result (stored in the 12-bit A/D conversion result register (ADCR)) is shown by the following
expression.
V
AIN
ADCR = INT (
AV
REF
or
AV
(ADCR - 0.5) 
4096
where, INT( ):
Function which returns integer part of value in parentheses
V
:
Analog input voltage
AIN
AV
:
AV
REF
REF
ADCR: A/D conversion result register (ADCR) value
Figure 9-16 shows the relationship between the analog input voltage and the A/D conversion result.
Figure 9-16. Relationship Between Analog Input Voltage and A/D Conversion Result
A/D conversion result
Remark AV
: The + side reference voltage of the A/D converter. This can be selected from AV
REF
reference voltage (1.45 V), and V
R01UH0895EJ0100 Rev.1.00
Nov 29, 2019
 4096 + 0.5)
REF
 V
< (ADCR + 0.5) 
AIN
pin voltage
SAR
4095
4094
4093
3
2
1
0
1
1
8192
4096
AV
REF
4096
3
2
5
3
8187
8192
4096
8192
4096
8192
Input voltage/AV
.
DD
CHAPTER 9 A/D CONVERTER
ADCR
0FFFH
0FFEH
0FFDH
0003H
0002H
0001H
0000H
4094
8189
4095
8191
1
4096
8192
4096
8192
REF
, the internal
REFP
270

Advertisement

Table of Contents
loading

Table of Contents