English
Language : 

MC68HC11KW1 Datasheet, PDF (115/238 Pages) Motorola, Inc – High-density complementary metal oxide semiconductor HCMOS) microcontroller unit
6.2
Port B
Port B is an 8-bit bidirectional port, with both data and data direction registers. In addition to their
I/O capability, port B pins are used as the non-multiplexed high order address pins, as shown in
the following table.
Pin
Alternative
function
PB0
ADDR8

PB1
ADDR9


In expanded or test
PB2
ADDR10
PB3
ADDR11
PB4
ADDR12



mode, the pins
become the high



order address lines
and port B is not
PB5
ADDR13
PB6
ADDR14
PB7
ADDR15



included in the
memory map.


6
The state of the pins on reset is mode dependent. In single chip or bootstrap mode, port B pins
are high-impedance inputs with selectable internal pull-up resistors (see Section 6.11). In
expanded or test mode, port B pins are high order address outputs and PORTB/DDRB are not in
the memory map.
6.2.1 PORTB — Port B data register
Port B data (PORTB)
Address bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
State
on reset
$0004 PB7 PB6 PB5 PB4 PB3 PB2 PB1 PB0 undefined
These bits may be read and written at any time and are not affected by reset.
6.2.2 DDRB — Data direction register for port B
Data direction B (DDRB)
Address bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
State
on reset
$0002 DDB7 DDB6 DDB5 DDB4 DDB3 DDB2 DDB1 DDB0 0000 0000
DDB[7:0] — Data direction for port B
1 (set) – The corresponding pin is configured as an output.
0 (clear) – The corresponding pin is configured as an input.
MC68HC11KW1
PARALLEL INPUT/OUTPUT
6-3