English
Language : 

MC9S12KG128_10 Datasheet, PDF (243/606 Pages) Freescale Semiconductor, Inc – HCS12 Microcontrollers
Chapter 7 Analog-to-Digital Converter (ATD10B16CV3) Block Description
7.3.2.15 Port Data Register 1 (PORTAD1)
The data port associated with the ATD is input-only. The port pins are shared with the analog A/D inputs
AN7-0.
R
W
Reset
Pin
Function
7
PTAD7
1
AN 7
6
PTAD6
5
PTAD5
4
PTAD4
3
PTAD3
2
PTAD2
1
1
1
1
1
AN6
AN5
AN4
AN3
AN2
= Unimplemented or Reserved
Figure 7-17. Port Data Register 1 (PORTAD1)
Read: Anytime
Write: Anytime, no effect
The A/D input channels may be used for general-purpose digital input.
Table 7-26. PORTAD1 Field Descriptions
1
PTAD1
1
AN1
0
PTAD0
1
AN0
Field
7:0
PTAD[7:8]
Description
A/D Channel x (ANx) Digital Input Bits — If the digital input buffer on the ANx pin is enabled (IENx=1) or
channel x is enabled as external trigger (ETRIGE = 1, ETRIGCH[3-0] = x, ETRIGSEL = 0) read returns the
logic level on ANx pin (signal potentials not meeting VIL or VIH specifications will have an indeterminate value)).
If the digital input buffers are disabled (IENx = 0) and channel x is not enabled as external trigger, read returns
a “1”.
Reset sets all PORTAD1 bits to “1”.
MC9S12KG128 Data Sheet, Rev. 1.16
Freescale Semiconductor
243