English
Language : 

MC68HC11PH8 Datasheet, PDF (83/264 Pages) Motorola, Inc – High-density Complementary Metal Oxide Semiconductor (HCMOS) Microcomputer Unit
4.4
Port D
Port D is a 6-bit bidirectional port, with both data and data direction registers. In addition to their I/O
capability, port D pins are shared with SCI1 and SPI1 functions, as shown in the following table.
Pin
Alternate
function
PD0
RXD1
 See Section 5 for
PD1
TXD1
 more information.
4
PD2
MISO1

PD3
MOSI1
 See Section 7 for
PD4
SCK1


more information.
PD5
SS1

On reset the pins are configured as general purpose high-impedance inputs.
4.4.1 PORTD — Port D data register
Port D data (PORTD)
Address bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
State
on reset
$0008 0
0 PD5 PD4 PD3 PD2 PD1 PD0 undeÞned
This is a read/write register and is not affected by reset. The bits may be read and written at any
time, but, when a pin is allocated to its alternate function, a write to the corresponding register bit
has no effect on the pin state.
4.4.2 DDRD — Data direction register for port D
Data direction D (DDRD)
Address bit 7
$0009 0
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
State
on reset
0 DDD5 DDD4 DDD3 DDD2 DDD1 DDD0 0000 0000
Bits [7:6] — Reserved; always read zero
DDD[5:0] — Data direction for port D
1 (set) – The corresponding pin is configured as an output.
0 (clear) – The corresponding pin is configured as an input.
MC68HC11PH8
PARALLEL INPUT/OUTPUT
TPG
MOTOROLA
4-5