BAT32G1x9 user manual | Chapter 15 A/D converter
507 / 1149
Rev.1.02
15.3
Input voltage and conversion result
Analog input voltage of the analog input
pin (
ANIx
) and theoretical
A/D
conversion result (1
2-bit
A/D
conversion result register
(ADCR
)) has the following expression relationship.
INT(): A function that returns the integer portion of a numeric value in parentheses
VAIN:
Analog input voltage
AVREF:
AVREF
pin voltage
ADCR:
The value of the A/D conversion result register (ADCR
).
SAR:
Successive approximation registers
The analog input voltage and the A/D
conversion result are shown in the following figure.
Figure15-19 Analog input voltage vs. A/D conversion result
Note: AVREF is the positive (+) reference voltage of the A/D converter, and AVREFP or VDD can be
selected
。