mc9s12q128 Freescale Semiconductor, Inc, mc9s12q128 Datasheet - Page 248
mc9s12q128
Manufacturer Part Number
mc9s12q128
Description
Hcs12 Microcontrollers
Manufacturer
Freescale Semiconductor, Inc
Datasheet
1.MC9S12Q128.pdf
(644 pages)
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
MC9S12Q128
Manufacturer:
FREESCALE
Quantity:
4 000
Company:
Part Number:
mc9s12q128CFU
Manufacturer:
FREESCALE
Quantity:
5
Company:
Part Number:
mc9s12q128CPBE16
Manufacturer:
FREESCAL
Quantity:
372
Company:
Part Number:
mc9s12q128MFUE16
Manufacturer:
MOTOROLA
Quantity:
591
Part Number:
mc9s12q128MFUE16
Manufacturer:
FREESCALE
Quantity:
20 000
Company:
Part Number:
mc9s12q128VFU16
Manufacturer:
FREESCALE
Quantity:
1 831
- Current page: 248 of 644
- Download datasheet (4Mb)
Chapter 8 Analog-to-Digital Converter (ATD10B8C) Block Description
8.5.1.3
Configure how many conversions you want to perform in one sequence and define other settings in
ATDCTL3.
Example: Write S4C=1 to do 4 conversions per sequence.
8.5.1.4
Configure resolution, sampling time and ATD clock speed in ATDCTL4.
Example: Use default for resolution and sampling time by leaving SRES8, SMP1 and SMP0 clear. For a
bus clock of 40MHz write 9 to PR4-0, this gives an ATD clock of 0.5*40MHz/(9+1) = 2MHz which is
within the allowed range for f
8.5.1.5
Configure starting channel, single/multiple channel, continuous or single sequence and result data format
in ATDCTL5. Writing ATDCTL5 will start the conversion, so make sure your write ATDCTL5 in the last
step.
Example: Leave CC,CB,CA clear to start on channel AN0. Write MULT=1 to convert channel AN0 to
AN3 in a sequence (4 conversion per sequence selected in ATDCTL3).
8.5.2
8.5.2.1
Disable the ATD Interrupt by writing ASCIE=0 in ATDCTL2. This will also abort any ongoing conversion
sequence.
It is important to clear the interrupt enable at this point, prior to step 3, as depending on the device clock
gating it may not always be possible to clear it or the SCF flag once the module is disabled (ADPU=0).
8.5.2.2
Clear the SCF flag by writing a 1 in ATDSTAT0.
(Remaining flags will be cleared with the next start of a conversions, but SCF flag should be cleared to
avoid SCF interrupt.)
8.5.2.3
Power down ATD by writing ADPU=0 in ATDCTL2.
8.6
At reset the ATD10B8C is in a power down state. The reset state of each individual bit is listed within
Section 8.3.2, “Register Descriptions”
248
Resets
Aborting an A/D conversion
Step 3
Step 4
Step 5
Step 1
Step 2
Step 3
ATDCLK
.
which details the registers and their bit-field.
MC9S12Q128
Rev 1.09
Freescale Semiconductor
Related parts for mc9s12q128
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
Microcontrollers
Manufacturer:
FREESCALE [Freescale Semiconductor, Inc]
Datasheet:
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet: