Download adcrm/d

Transcript
PDR — Port Data Register
$XXXX02
15
8
7
Port ADB Output Data
0
Port ADA Input Data
RESET:
0
0
0
0
0
0
0
0
State of input pins
3.4 ADC Test Register (ADCTEST)
ADCTEST — ADC Test Register
ADCTEST is used only during factory testing of the MCU.
$XXXX06
3.5 Initialization Checklist
To initialize the ADC submodule and begin a conversion sequence, follow these steps:
1. Write to the ADCMCR to ensure the STOP and FREEZE bits are cleared and
assign the desired value to the SUPV bit.
2. Write to ADCTL0 to select the sample time, ADC clock prescaler, and 8- or 10bit resolution.
3. Write to ADCTL1 to select the conversion mode (SCAN, MULT, and S8CM bits)
and conversion channel or channels (CD:CA) and to begin a conversion sequence.
Once a conversion sequence has begun, the type of conversion mode selected determines the programming sequence. Refer to SECTION 5 DIGITAL CONTROL SUBSYSTEM for additional information on conversion modes and the ADC control and
status registers.
MOTOROLA
3-4
CONFIGURATION AND CONTROL
ADC
REFERENCE MANUAL