Chapter 4 Analog-to-Digital Converter (ATD10B16CV4) Block Description
MC9S12XDP512 Data Sheet, Rev. 2.17
Freescale Semiconductor
153
4.4.1.2
Analog Input Multiplexer
The analog input multiplexer connects one of the 16 external analog input channels to the sample and hold
machine.
4.4.1.3
Sample Buffer Amplifier
The sample amplifier is used to buffer the input analog signal so that the storage node can be quickly
charged to the sample potential.
4.4.1.4
Analog-to-Digital (A/D) Machine
The A/D machine performs analog to digital conversions. The resolution is program selectable at either 8
or 10 bits. The A/D machine uses a successive approximation architecture. It functions by comparing the
storedanalogsamplepotentialwithaseriesofdigitallygeneratedanalogpotentials.Byfollowingabinary
search algorithm, the A/D machine locates the approximating potential that is nearest to the sampled
potential.
When not converting the A/D machine disables its own clocks. The analog electronics continue drawing
quiescentcurrent.Thepowerdown(ADPU)bitmustbesettodisableboththedigitalclocksandtheanalog
power consumption.
Only analog input signals within the potential range of V
RL
to V
RH
(A/D reference potentials) will result
in a non-railed digital output codes.
4.4.2
Digital Sub-Block
This subsectionexplains someof thedigital featuresin moredetail.See registerdescriptions forall details.
4.4.2.1
External Trigger Input
The external trigger feature allows the user to synchronize ATD conversions to the external environment
eventsratherthanrelyingonsoftwaretosignaltheATDmodulewhenATDconversionsaretotakeplace.
The external trigger signal (out of reset ATD channel 15, configurable in ATDCTL1) is programmable to
be edge or level sensitive with polarity control.
Table 4-27
gives a brief description of the different
combinations of control bits and their effect on the external trigger function.
During a conversion, if additional active edges are detected the overrun error flag ETORF is set.
Table 4-27. External Trigger Control Bits
ETRIGLE
ETRIGP
ETRIGE
SCAN
Description
X
X
0
0
1
1
X
X
0
1
0
1
0
0
1
1
1
1
0
1
X
X
X
X
Ignores external trigger. Performs one conversion sequence and stops.
Ignores external trigger. Performs continuous conversion sequences.
Falling edge triggered. Performs one conversion sequence per trigger.
Rising edge triggered. Performs one conversion sequence per trigger.
Trigger active low. Performs continuous conversions while trigger is active.
Trigger active high. Performs continuous conversions while trigger is active.