10-Bit A/D Converter Operation; Basic Operations Of 10-Bit A/D Converter - NEC mPD780344 Series User Manual

8-bit single-chip microcontrollers
Table of Contents

Advertisement

CHAPTER 13 10-BIT A/D CONVERTER ( µ PD780354, 780354Y SUBSERIES)

13.4 10-Bit A/D Converter Operation

13.4.1 Basic operations of 10-bit A/D converter

<1> Select one channel for A/D conversion using analog input channel specification register 0 (ADS0).
<2> The voltage input to the selected analog input channel is sampled by the sample & hold circuit.
<3> When sampling has been done for a certain time, the sample & hold circuit is placed in the hold state and
the input analog voltage is held until the A/D conversion operation is ended.
<4> Bit 9 of the successive approximation register (SAR) is set. The series resistor string voltage tap is set to
(1/2) AV
by the tap selector.
DD
<5> The voltage difference between the series resistor string voltage tap and analog input is compared by the
voltage comparator. If the analog input is greater than (1/2) AV
input is smaller than (1/2) AV
<6> Next, bit 8 of SAR is automatically set, and the operation proceeds to the next comparison. The series resistor
string voltage tap is selected according to the preset value of bit 9, as described below.
• Bit 9 = 1: (3/4) AV
• Bit 9 = 0: (1/4) AV
The voltage tap and analog input voltage are compared and bit 8 of SAR is manipulated as follows.
• Analog input voltage ≥ Voltage tap: Bit 8 = 1
• Analog input voltage < Voltage tap: Bit 8 = 0
<7> Comparison is continued in this way up to bit 0 of SAR.
<8> Upon completion of the comparison of 10 bits, an effective digital result value remains in SAR, and the result
value is transferred to and latched in A/D conversion result register 0 (ADCR0).
At the same time, the A/D conversion end interrupt request (INTAD0) can also be generated.
Cautions 1. Start conversion (ADCS0 = 1) after 14 µ s have elapsed following the setting of ADCE0. If
ADCE0 is not used, the first conversion result immediately after the setting of ADCS0 is
undefined.
2. In standby mode, the A/D converter operation is stopped.
250
, the MSB is reset.
DD
DD
DD
User's Manual U15798EJ2V0UD
, the MSB of SAR remains set. If the analog
DD

Advertisement

Table of Contents
loading

Table of Contents