Input Voltage And Conversion Result - NEC V850/SA1 mPD703015 Preliminary User's Manual

32-/16-bit single-chip microcontrollers
Table of Contents

Advertisement

11.4.2 Input voltage and conversion result

The analog voltages input to the analog input pins (ANI0 through ANI11) and the result of the A/D conversion
(contents of the A/D conversion result register (ADCR)) are related as follows:
V
IN
ADCR = INT(
AV
REF
Or,
AV
(ADCR − 0.5) ×
1024
INT ( ) : Function that returns integer of value in ( )
V
: Analog input voltage
IN
AV
: AV
pin voltage
REF
REF
ADCR : Value of the A/D conversion result register (ADCR)
Figure 11-5 shows the relation between the analog input voltage and A/D conversion result.
Figure 11-5. Relation between Analog Input Voltage and A/D Conversion Result
A/D conversion result
(ADCR)
310
CHAPTER 11
× 1024 + 0.5)
REF
≤ V
< (ADCR + 0.5) ×
IN
1023
1022
1021
3
2
1
0
1
1
3
2048 1024 20481024 2048 1024
A/D CONVERTER
AV
REF
1024
2
5
3
2043 1022 20451023 2047 1
2048 1024 20481024 2048
Input voltage/AV
REF

Advertisement

Table of Contents
loading

Table of Contents