mcf51jf128 Freescale Semiconductor, Inc, mcf51jf128 Datasheet - Page 668

no-image

mcf51jf128

Manufacturer Part Number
mcf51jf128
Description
Mcf51jf128 Reference Manual
Manufacturer
Freescale Semiconductor, Inc
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
mcf51jf128VLH
Manufacturer:
MITSUBISHI
Quantity:
321
Part Number:
mcf51jf128VLH
Manufacturer:
FREESCALE
Quantity:
5 097
Part Number:
mcf51jf128VLH
Manufacturer:
Freescale Semiconductor
Quantity:
10 000
Part Number:
mcf51jf128VLH
Manufacturer:
FREESCALE
Quantity:
5 097
Initialization information
29.5 Initialization information
This section gives an example that provides some basic direction on how to initialize and
configure the ADC module. You can configure the module for 12-bit, 10-bit, or 8-bit
single-ended resolution, single or continuous conversion, and a polled or interrupt
approach, among many other options. Refer to
29-59
29.5.1 ADC module initialization example
This section provides details about the ADC module initialization.
29.5.1.1 Initialization sequence
Before the ADC module can be used to complete conversions, an initialization procedure
must be performed. A typical sequence is as follows:
668
1. Calibrate the ADC by following the calibration instructions in
2. Update the configuration register (CFG) to select the input clock source and the
3. Update status and control register 2 (SC2) to select the conversion trigger (hardware
4. Update status and control register 3 (SC3) to select whether conversions will be
5. Update the status and control register (SC1:SC1n) to enable or disable conversion
divide ratio used to generate the internal clock, ADCK. This register is also used for
selecting sample time and low-power configuration.
or software) and compare function options, if enabled.
continuous or completed only once (ADCO) and to select whether to perform
hardware averaging.
complete interrupts. Also, select the input channel on which to perform conversions.
for information used in this example.
Hexadecimal values are designated by a preceding 0x, binary
values designated by a preceding %, and decimal values have
no preceding character.
MCF51JF128 Reference Manual, Rev. 2, 03/2011
Preliminary
Note
Table
29-57,
Table
29-58, and
Calibration
Freescale Semiconductor, Inc.
Table
function.

Related parts for mcf51jf128