A/D Converter Operations; Basic Operations Of A/D Converter - NEC PD78056F User Manual

Pd78058f series; pd78058fy series 8-bit single-chip microcontrollers
Table of Contents

Advertisement

14.4 A/D Converter Operations

14.4.1 Basic operations of A/D converter

(1) Set the number of analog input channels with A/D converter input select register (ADIS).
(2) From among the analog input channels set with ADIS, select one channel for A/D conversion with A/D converter
mode register (ADM).
(3) The voltage input to the selected analog input channel is sampled by the sample & hold circuit.
(4) Sampling for the specified period of time sets the sample & hold circuit to the hold state so that the circuit
holds the input analog voltage until termination of A/D conversion.
(5) Bit 7 of the sequential conversion register (SAR) is set. The serial resistance string's voltage tap is set at (1/
2) AV
by the tap selector.
REF0
(6) The difference in voltages between the serial resistance string's voltage tap and the analog input is compared
by the voltage comparator. If the analog input is greater than (1/2) AV
is. Also, if it is less than (1/2) AV
(7) Next, bit 6 of SAR is automatically set and the operation proceeds to the next comparison. In this case, the
series resistor string voltage tap is selected according to the preset value of bit 7 as described below.
• Bit 7 = 1 : (3/4) AV
• Bit 7 = 0 : (1/4) AV
The voltage tap and analog input voltage are compared and bit 6 of SAR is manipulated with the result as
follows.
• Analog input voltage
• Analog input voltage
(8) Comparison of this sort continues up to bit 0 of SAR.
(9) Upon completion of the comparison of 8 bits, any effective digital resultant value remains in SAR and the
resultant value is transferred to and latched in the A/D conversion result register (ADCR).
At the same time, the A/D conversion termination interrupt request (INTAD) can also be generated.
CHAPTER 14 A/D CONVERTER
, the MSB is reset.
REF0
REF0
REF0
Voltage tap : Bit 6 = 1
Voltage tap : Bit 6 = 0
, the MSB of SAR remains set as
REF0
269

Advertisement

Table of Contents
loading

Table of Contents