
MC68HC05F32
MOTOROLA
9-1
A/D CONVERTER
9
A/D CONVERTER
The analog to digital converter system consists of a 12-channel, multiplexed input to a successive
approximation A/D converter. Eight of the A/D input channels are connected to pins PD0–PD7 and
the particular input to be selected is determined by the setting/clearing of the CHx bits in the A/D
status/control register at $4F. A further four channels are available internally for test purposes. In
addition to the A/D status/control register (ADSCR) there is one 8-bit result data register at
address $4E.
The A/D converter is ratiometric and a dedicated pin, VREFH, is used to supply the upper
reference voltage level of each analog input. The lower voltage reference point, VREFL, is internally
connected to the AVSS pin. An input voltage equal to or greater than VRH converts to $FF (full
scale) with no overow indication. For ratiometric conversions, the source of each analog input
should use VREFH as the supply voltage and be referenced to AVSS.
The A/D converter can operate from either the bus clock or an internal RC type oscillator. The
internal RC type oscillator is activated by the ADRC bit in the A/D status/control register (ADRC)
and can be used to give a sufciently high clock rate to the A/D converter when the bus speed is
too low to provide accurate results (see
Section 9.2.1). When the A/D converter is not being used
it can be disconnected using the ADON bit in the ADSCR register, in order to save power (see
9.1
A/D converter operation
The A/D converter consists of an analog multiplexer, an 8-bit digital-to-analog capacitor array, a
comparator and a successive approximation register (SAR). See
Figure 9-1.The A/D reference inputs is applied to a precision internal digital-to-analog converter. Control logic
drives this D/A converter and the analog output is successively compared with the analog input
sampled at the beginning of the conversion. The conversion is monotonic with no missing codes.
The result of each successive comparison is stored in the SAR and, when the conversion is
complete, the contents of the SAR are transferred to the read-only result data register ($4E), and
the conversion complete ag, COCO, is set in the A/D status/control register ($4F).
TPG
87
05F32Book Page 1 Tuesday, June 8, 1999 7:55 am