
QADC
REFERENCE MANUAL
CONFIGURATION AND CONTROL
MOTOROLA
3-7
Port A pins are referred to as PQA[7:0] when used as a bidirectional 8-bit input/output
port that may be used for general-purpose digital input signals or digital open drain
pull-down output signals. Port A can also be used for analog inputs (AN[59:52], exter-
nal trigger inputs (ETRIG[2:1]), and external multiplexer address outputs (MA[2:0]).
Port B pins are referred to as PQB[7:0] when used as an input-only 8-bit digital port
that may be used for general-purpose digital input signals. Data for PQB[7:0] is ac-
cessed in the lower half of the QPDR. Port B can also be used for nonmultiplexed
(AN[51:48]/AN[3:0]) and multiplexed (ANz, ANy, ANx, ANw) analog inputs.
PORTQA and PORTQB are unaffected by reset.
3.5.2 Port Data Direction Register
The port data direction register (DDRQA) is associated with the port A digital I/O pins.
The bidirectional pins have somewhat higher leakage and capacitance specifications.
Refer to
APPENDIX A ELECTRICAL CHARACTERISTICS
for more information. Any
bit in this register set to one configures the corresponding pin as an output. Any bit in
this register cleared to zero configures the corresponding pin as an input. The software
is responsible for ensuring that DDR bits are not set to one on pins used for analog
inputs. When the DDR bit is set to one and the pin is selected for analog conversion,
the voltage sampled is that of the output digital driver as influenced by the load.
NOTE
Caution should be exercised when mixing digital and analog inputs.
This should be isolated as much as possible. Rise and fall times
should be as large as possible to minimize AC coupling effects.
Since port B is input-only, a data direction register is not needed. Therefore, the lower
byte of the port data direction register is not implemented. Read operations on the re-
served bits return zeros, and writes have no effect.
PORTQA — Port A Data Register
PORTQB — Port B Data Register
$####06
$####07
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
PQA7
PQA6
PQA5
PQA4
PQA3
PQA2
PQA1
PQA0
PQB7
PQB6
PQB5
PQB4
PQB3
PQB2
PQB1
PQB0
RESET:
U
ANALOG CHANNEL:
AN59
AN58
EXTERNAL TRIGGER INPUTS:
U
U
U
U
U
U
U
U
U
U
U
U
U
U
U
AN57
AN56
AN55
AN54
AN53
AN52
AN51
AN50
AN49
AN48
AN3
AN2
AN1
AN0
ETRIG2 ETRIG1
MULTIPLEXED ADDRESS OUTPUTS:
MA2
MA1
MA0
MULTIPLEXED ANALOG INPUTS:
ANz
ANy
ANx
ANw
F
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
.