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

Pd78058f series; pd78058fy 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-6 shows the relation between the analog input voltage and the A/D conversion result.
Figure 14-6. Relationship 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
REF0
5
3
507
254
509
512
256
512
256
512
Input Voltage/AV
REF0
255
511
1
256
512
271

Advertisement

Table of Contents
loading

Table of Contents