English
Language : 

MC68HC11KW1 Datasheet, PDF (124/238 Pages) Motorola, Inc – High-density complementary metal oxide semiconductor HCMOS) microcontroller unit
6.10
Port K
Port K is an 8-bit bidirectional port, with both data and data direction registers. In addition to their I/O
capabilities, five of port K’s pins are shared with Timer 3 functions, as shown in the following table.
Pin
Alternative
function
PK7
C4

PK6
OC3

PK5
PK4
OC2
OC1
 See Section 9 for


more information.

PK3
ECIN

6 6.10.1 PORTK — Port K data register
Port K data (PORTK)
Address bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
State
on reset
$009E PK7 PK6 PK5 PK4 PK3 PK2 PK1 PK0 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.
6.10.2 DDRK — Data direction register for port K
Data direction K (DDRK)
Address bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
State
on reset
$009F DDK7 DDK6 DDK5 DDK4 DDK3 DDK2 DDK1 DDK0 0000 0000
DDK[7:0] — Data direction for port K
1 (set) – The corresponding pin is configured as an output.
0 (clear) – The corresponding pin is configured as an input.
6-12
PARALLEL INPUT/OUTPUT
MC68HC11KW1