M68HC16 Z SERIES
REGISTER SUMMARY
USER’S MANUAL
D-45
D.6.9 Port QS Pin Assignment Register/Data Direction Register
Clearing a bit in PQSPAR assigns the corresponding pin to general-purpose I/O. Set-
ting a bit assigns the pin to the QSPI. PQSPAR does not affect operation of the SCI.
displays PQSPAR pin assignments.
DDRQS determines whether pins configured for general-purpose I/O are inputs or out-
puts. Clearing a bit makes the corresponding pin an input; setting a bit makes the pin
an output. DDRQS affects both QSPI function and I/O function.
shows the
effect of DDRQS on QSM pin function.
PQSPAR — PORT QS Pin Assignment Register
$YFFC16
DDRQS — PORT QS Data Direction Register
$YFFC17
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
NOT
USED
PQSPA6 PQSPA5 PQSPA4 PQSPA3
NOT
USED
PQSPA1 PQSPA0 DDQS7 DDQS6 DDQS5 DDQS4 DDQS3 DDQS2 DDQS1 DDQS0
RESET:
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Table D-33 PQSPAR Pin Assignments
PQSPAR Field
PQSPAR Bit
Pin Function
PQSPA0
0
1
PQS0
MISO
PQSPA1
0
1
PQS1
MOSI
—
—
—
PQS2
1
SCK
NOTES:
1. PQS2 is a digital I/O pin unless the SPI is enabled (SPE set in
SPCR1), in which case it becomes the QSPI serial clock SCK.
PQSPA3
0
1
PQS3
PCS0/SS
PQSPA4
0
1
PQS4
PCS1
PQSPA5
0
1
PQS5
PCS2
PQSPA6
0
1
PQS6
PCS3
—
—
—
PQS7
2
TXD
2. PQS7 is a digital I/O pin unless the SCI transmitter is enabled (TE set
in SCCR1), in which case it becomes the SCI serial output TXD.
F
re
e
sc
a
le
S
e
m
ic
o
n
d
u
c
to
r,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
c
.
..