Input Voltage And Conversion Results - NEC 78014Y Series User Manual

8-bit single-chip microcontrollers
Table of Contents

Advertisement

14.4.2 Input voltage and conversion results

The relationship between the analog input voltage input to the analog input pins (ANI0 to ANI7) and the A/D
conversion result (the value stored in the A/D conversion result register (ADCR)) is expressed by the following
expression.
ADCR = INT(
or
(ADCR – 0.5) ×
where
INT ( ) : Function which returns integer parts of value in parentheses.
V
AV
ADCR
Figure 14-5 shows the relationship between the analog input voltage and the A/D conversion result.
Figure 14-5. Relationship between Analog Input Voltage and A/D Conversion Result
www.DataSheet4U.com
A/D Conversion
Results (ADCR)
256
CHAPTER 14 A/D CONVERTER
V
IN
× 256 + 0.5)
AV
REF
AV
REF
≤ V
< (ADCR + 0.5) ×
IN
256
: Analog input voltage
IN
: AV
pin voltage
REF
REF
: A/D conversion result register (ADCR) value
255
254
253
3
2
1
0
1
1
512
256
AV
REF
256
3
2
5
3
507
512
256
512
256
512
Input Voltage/AV
REF
254
509
255
511
1
256
512
256
512

Advertisement

Table of Contents
loading

Table of Contents