mc9s12c32mpb16 Freescale Semiconductor, Inc, mc9s12c32mpb16 Datasheet - Page 243

no-image

mc9s12c32mpb16

Manufacturer Part Number
mc9s12c32mpb16
Description
Hcs12 Microcontrollers
Manufacturer
Freescale Semiconductor, Inc
Datasheet
8.3.2.12
The data port associated with the ATD is general purpose I/O. The port pins are shared with the analog
A/D inputs AN7–AN0.
Read: Anytime
Write: Anytime, no effect
The A/D input channels may be used for general-purpose digital I/0.
8.3.2.13
The A/D conversion results are stored in 8 read-only result registers ATDDRHx/ATDDRLx. The result
data is formatted in the result registers based on two criteria. First there is left and right justification; this
selection is made using the DJM control bit in ATDCTL5. Second there is signed and unsigned data; this
selection is made using the DSGN control bit in ATDCTL5. Signed data is stored in 2’s complement
format and only exists in left justified format. Signed data selected for right justified format is ignored.
Read: Anytime
Write: Anytime, no effect in normal modes
Freescale Semiconductor
Function
Module Base + 0x000F
PTAD[7:0]
Reset
Field
Pin
7
W
R
PTAD7
AN7
A/D Channel x (ANx) Digital Input (x = 7, 6, 5, 4, 3, 2, 1, 0) — If the digital input buffer on the ANx pin is enabled
(IENx = 1) read returns the logic level on ANx pin (signal potentials not meeting V
an indeterminate value)).
If the digital input buffers are disabled (IENx = 0), read returns a “1”.
Reset sets all PORTAD bits to “1”.
Port Data Register (PORTAD)
ATD Conversion Result Registers (ATDDRHx/ATDDRLx)
1
7
= Unimplemented or Reserved
PTAD6
AN6
1
6
Figure 8-14. Port Data Register (PORTAD)
Table 8-18. PORTAD Field Descriptions
PTAD5
MC9S12C-Family / MC9S12GC-Family
AN5
1
5
PTAD4
Rev 01.23
AN4
1
4
Chapter 8 Analog-to-Digital Converter (ATD10B8C) Block Description
Description
PTAD3
AN3‘
1
3
PTAD2
AN2
1
2
IL
or V
IH
PTAD1
AN1
specifications will have
1
1
PTAD0
AN0
1
0
243

Related parts for mc9s12c32mpb16