Input Voltage And Conversion Results; Relations Between Analog Input Voltage And A/D Conversion Result - NEC PD78052 User Manual

Pd78054 series; pd78054y series 8-bit single-chip microcontrollers
Table of Contents

Advertisement

14.4.2 Input voltage and conversion results

The relation between the analog input voltage input to the analog input pins (ANI0 to ANI7) and the A/D conversion
result (the value stored in A/D conversion result register (ADCR)) is shown by the following expression.
V
IN
ADCR = INT (
AV
REF0
or
AV
REF0
(ADCR – 0.5)
256
Where,
INT( ) : Function which returns integer parts of value in parentheses.
V
: Analog input voltage
IN
AV
: AV
REF0
REF0
ADCR : Value of A/D conversion result register (ADCR)
Figure 14-7 shows the relation between the analog input voltage and the A/D conversion result.
Figure 14-7. Relations between Analog Input Voltage and A/D Conversion Result
A/D Conversion
Results
(ADCR)
CHAPTER 14 A/D CONVERTER
256 + 0.5)
AV
V
< (ADCR + 0.5)
IN
256
pin voltage
255
254
253
3
2
1
0
1
1
3
2
512
256
512
256
512
REF0
5
3
507
254
509
255
256
512
256
512
256
Input Voltage/AV
REF0
511
1
512
275

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents