mc9s12c32mpb16 Freescale Semiconductor, Inc, mc9s12c32mpb16 Datasheet - Page 236

no-image

mc9s12c32mpb16

Manufacturer Part Number
mc9s12c32mpb16
Description
Hcs12 Microcontrollers
Manufacturer
Freescale Semiconductor, Inc
Datasheet
Chapter 8 Analog-to-Digital Converter (ATD10B8C) Block Description
8.3.2.6
This register selects the type of conversion sequence and the analog input channels sampled. Writes to this
register will abort current conversion sequence and start a new conversion sequence.
Read: Anytime
Write: Anytime
236
Module Base + 0x0005
CC, CB, CA
Reset
DSGN
SCAN
MULT
Field
DJM
2–1
7
6
5
4
W
R
DJM
Result Register Data Justification — This bit controls justification of conversion data in the result registers.
See
0 Left justified data in the result registers
1 Right justified data in the result registers
Result Register Data Signed or Unsigned Representation — This bit selects between signed and unsigned
conversion data representation in the result registers. Signed data is represented as 2’s complement. Signed
data is not available in right justification. See
(ATDDRHx/ATDDRLx)”
0 Unsigned data representation in the result registers
1 Signed data representation in the result registers
Table 8-10
Table 8-11
signal range between 0 and 5.12 Volts.
Continuous Conversion Sequence Mode — This bit selects whether conversion sequences are performed
continuously or only once.
0 Single conversion sequence
1 Continuous conversion sequences (scan mode)
Multi-Channel Sample Mode — When MULT is 0, the ATD sequence controller samples only from the specified
analog input channel for an entire conversion sequence. The analog channel is selected by channel selection
code (control bits CC/CB/CA located in ATDCTL5). When MULT is 1, the ATD sequence controller samples
across channels. The number of channels sampled is determined by the sequence length value (S8C, S4C, S2C,
S1C). The first analog channel examined is determined by channel selection code (CC, CB, CA control bits);
subsequent channels sampled in the sequence are determined by incrementing the channel selection code.
0 Sample only one channel
1 Sample across several channels
Analog Input Channel Select Code — These bits select the analog input channel(s) whose signals are
sampled and converted to digital codes.
channels. In the case of single channel scans (MULT = 0), this selection code specified the channel examined.
In the case of multi-channel scans (MULT = 1), this selection code represents the first channel to be examined
in the conversion sequence. Subsequent channels are determined by incrementing channel selection code;
selection codes that reach the maximum value wrap around to the minimum value.
ATD Control Register 5 (ATDCTL5)
0
7
Section 8.3.2.13, “ATD Conversion Result Registers (ATDDRHx/ATDDRLx)”
= Unimplemented or Reserved
summarizes the result data formats available and how they are set up using the control bits.
illustrates the difference between the signed and unsigned, left justified output codes for an input
DSGN
0
6
Figure 8-8. ATD Control Register 5 (ATDCTL5)
for details.
Table 8-9. ATDCTL5 Field Descriptions
SCAN
MC9S12C-Family / MC9S12GC-Family
0
5
Table 8-12
MULT
Rev 01.23
Section 8.3.2.13, “ATD Conversion Result Registers
0
4
Description
lists the coding used to select the various analog input
0
0
3
CC
0
2
for details.
Freescale Semiconductor
CB
0
1
CA
0
0

Related parts for mc9s12c32mpb16