English
Language : 

MC908AP8CFBE Datasheet, PDF (250/324 Pages) Freescale Semiconductor, Inc – Microcontrollers
Analog-to-Digital Converter (ADC)
$005C
$005D
$005E
Read: AD9
AD8
AD7
AD6
AD5
ADC Data Register Low 2
(ADRL3)
Write:
R
R
R
R
R
Reset: 0
0
0
0
0
Read: AD9
AD8
AD7
AD6
AD5
ADC Data Register Low 3
(ADRL3)
Write:
R
R
R
R
R
Reset: 0
0
0
0
0
ADC Auto-scan Control Read: 0
0
0
0
0
Register Write:
(ADASCR) Reset: 0
0
0
0
0
= Unimplemented
R
Figure 15-1. ADC I/O Register Summary
AD4
AD3
R
R
0
0
AD4
AD3
R
R
0
0
AUTO1 AUTO0
0
0
= Reserved
AD2
R
0
AD2
R
0
ASCAN
0
15.3 Functional Description
The ADC provides eight pins for sampling external sources at pins PTA0/ADC0–PTA7/ADC7. An analog
multiplexer allows the single ADC converter to select one of eight ADC channels as ADC voltage in
(VADIN). VADIN is converted by the successive approximation register-based analog-to-digital converter.
When the conversion is completed, ADC places the result in the ADC data register, high and low byte
(ADRH0 and ADRL0), and sets a flag or generates an interrupt.
An additional three ADC data registers (ADRL1–ADRL3) are available to store the individual converted
data for ADC channels ADC1–ADC3 when the auto-scan mode is enabled. Data from channel ADC0 is
stored in ADRL0 in the auto-scan mode.
Figure 15-2 shows the structure of the ADC module.
15.3.1 ADC Port I/O Pins
PTA0–PTA7 are general-purpose I/O pins that are shared with the ADC channels. The channel select
bits, ADCH[4:0], define which ADC channel/port pin will be used as the input signal. The ADC overrides
the port I/O logic by forcing that pin as input to the ADC. The remaining ADC channels/port pins are
controlled by the port I/O logic and can be used as general-purpose I/O. Writes to the port data register
or data direction register will not have any affect on the port pin that is selected by the ADC. Read of a
port pin which is in use by the ADC will return the pin condition if the corresponding DDR bit is at logic 0.
If the DDR bit is at logic 1, the value in the port data latch is read.
15.3.2 Voltage Conversion
When the input voltage to the ADC equals VREFH, the ADC converts the signal to $3FF (full scale). If the
input voltage equals VREFL, the ADC converts it to $000. Input voltages between VREFH and VREFL are a
straight-line linear conversion. All other input voltages will result in $3FF if greater than VREFH and $000
if less than VREFL.
NOTE
Input voltage should not exceed the analog supply voltages.
MC68HC908AP Family Data Sheet, Rev. 4
248
Freescale Semiconductor