Datasheet

Chapter 14 Analog-to-Digital Converter (S08ADC10V1)
MC9S08AW60 Data Sheet, Rev 2
Freescale Semiconductor 239
14.3.1 Analog Power (V
DDAD
)
The ADC analog portion uses V
DDAD
as its power connection. In some packages, V
DDAD
is connected
internally to V
DD
. If externally available, connect the V
DDAD
pin to the same voltage potential as V
DD
.
External filtering may be necessary to ensure clean V
DDAD
for good results.
14.3.2 Analog Ground (V
SSAD
)
The ADC analog portion uses V
SSAD
as its ground connection. In some packages, V
SSAD
is connected
internally to V
SS
. If externally available, connect the V
SSAD
pin to the same voltage potential as V
SS
.
14.3.3 Voltage Reference High (V
REFH
)
V
REFH
is the high reference voltage for the converter. In some packages, V
REFH
is connected internally to
V
DDAD
. If externally available, V
REFH
may be connected to the same potential as V
DDAD
, or may be
driven by an external source that is between the minimum V
DDAD
spec and the V
DDAD
potential (V
REFH
must never exceed V
DDAD
).
14.3.4 Voltage Reference Low (V
REFL
)
V
REFL
is the low reference voltage for the converter. In some packages, V
REFL
is connected internally to
V
SSAD
. If externally available, connect the V
REFL
pin to the same voltage potential as V
SSAD
.
14.3.5 Analog Channel Inputs (ADx)
The ADC module supports up to 28 separate analog inputs. An input is selected for conversion through the
ADCH channel select bits.
14.4 Register Definition
These memory mapped registers control and monitor operation of the ADC:
Status and control register, ADC1SC1
Status and control register, ADC1SC2
Data result registers, ADC1RH and ADC1RL
Compare value registers, ADC1CVH and ADC1CVL
Configuration register, ADC1CFG
Pin enable registers, APCTL1, APCTL2, APCTL3
14.4.1 Status and Control Register 1 (ADC1SC1)
This section describes the function of the ADC status and control register (ADC1SC1). Writing ADC1SC1
aborts the current conversion and initiates a new conversion (if the ADCH bits are equal to a value other
than all 1s).