English
Language : 

MC68HC11KW1 Datasheet, PDF (122/238 Pages) Motorola, Inc – High-density complementary metal oxide semiconductor HCMOS) microcontroller unit
6.8
Port H
Port H is an 8-bit, bidirectional port, with both data and data direction registers. In addition to their
I/O capability, port H pins are shared with chip select and PWM functions, as shown in the
following table.
Pin
Alternative
function
PH7 CSPROG
PH6 CSGP2
PH5 CSGP1
PH4
CSIO

 See Section 4 for


more information.

PH3
PWM4

6
PH2
PH1
PWM3
PWM2
 See Section 9 for


more information.

PH0
PWM1
6.8.1 PORTH — Port H data register
Port H data (PORTH)
Address bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
State
on reset
$007C PH7 PH6 PH5 PH4 PH3 PH2 PH1 PH0 undefined
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. Port H has internal, software
selectable pull-up resistors which are controlled by the PPAR register. See Section 6.11.1.
6.8.2 DDRH — Data direction register for port H
Data direction H (DDRH)
Address bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
State
on reset
$007D DDH7 DDH6 DDH5 DDH4 DDH3 DDH2 DDH1 DDH0 0000 0000
DDH[7:0] — Data direction for port H
1 (set) – The corresponding pin is configured as an output.
0 (clear) – The corresponding pin is configured as an input.
6-10
PARALLEL INPUT/OUTPUT
MC68HC11KW1